hash-threshold 8 statement ok CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok INSERT INTO tab0 VALUES(89,91,82) statement ok INSERT INTO tab0 VALUES(35,97,1) statement ok INSERT INTO tab0 VALUES(24,86,33) statement ok INSERT INTO tab1 VALUES(64,10,57) statement ok INSERT INTO tab1 VALUES(3,26,54) statement ok INSERT INTO tab1 VALUES(80,13,96) statement ok INSERT INTO tab2 VALUES(7,31,27) statement ok INSERT INTO tab2 VALUES(79,17,38) statement ok INSERT INTO tab2 VALUES(78,59,26) query I rowsort SELECT ALL - - ( - 56 ) AS col1 FROM tab0 cor0 ---- -56 -56 -56 query I rowsort SELECT - ( - 20 ) * col2 AS col2 FROM tab2 AS cor0 ---- 520 540 760 query I rowsort SELECT ALL + 64 + - col0 AS col2 FROM tab1 AS cor0 ---- -16 0 61 query I rowsort SELECT ALL ( ( + col0 ) ) FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT DISTINCT - ( + 12 ) FROM tab1 AS cor0 ---- -12 query I rowsort SELECT ALL - col0 - - cor0.col2 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT + 86 AS col2 FROM tab0 AS cor0 ---- 86 86 86 query I rowsort SELECT ALL col2 * + 45 * col2 AS col2 FROM tab0 cor0 ---- 302580 45 49005 query I rowsort SELECT + - ( col2 ) * col1 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9 SELECT DISTINCT CAST( 53 AS SIGNED ) + col0 * - col0 AS col0 FROM tab2 AS cor0 ---- -6031 -6188 4 skipif mysql # not compatible query I rowsort label-9 SELECT DISTINCT CAST ( 53 AS INTEGER ) + col0 * - col0 AS col0 FROM tab2 AS cor0 ---- -6031 -6188 4 query I rowsort SELECT ALL - ( col1 ) + col2 AS col1 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT ALL + 65 * col2 FROM tab0 ---- 2145 5330 65 query I rowsort SELECT 86 AS col2 FROM tab2 ---- 86 86 86 query I rowsort SELECT ALL - 31 - + col0 FROM tab0 AS cor0 ---- -120 -55 -66 onlyif mysql # use DIV operator for integer division query I rowsort label-14 SELECT ALL + col2 DIV col2 AS col0 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-14 SELECT ALL + col2 / col2 AS col0 FROM tab0 cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + 83 ) + col2 col0 FROM tab2 AS cor0 ---- -45 -56 -57 query I rowsort SELECT ALL + col1 * + 42 - - col2 * 55 FROM tab1 AS cor0 ---- 3555 4062 5826 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 cor2 ---- 972 values hashing to 465d072d2d9eababbfc8e88b82707474 query I rowsort SELECT DISTINCT + 82 * + col0 + col2 FROM tab2 AS cor0 ---- 601 6422 6516 query I rowsort SELECT - 92 AS col0 FROM tab0 cor0 ---- -92 -92 -92 query I rowsort SELECT ALL 33 + col0 AS col2 FROM tab0 AS cor0 ---- 122 57 68 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * cor0.col2 col2 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + col2 * col2 AS col0 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT 53 AS col0 FROM tab0 AS cor0 ---- 53 53 53 query I rowsort SELECT + 12 AS col0 FROM tab0 ---- 12 12 12 query I rowsort SELECT DISTINCT - ( + col1 ) AS col0 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT - 1 + + col2 FROM tab0 ---- 0 32 81 query I rowsort SELECT col1 + 22 * + col2 * col0 AS col0 FROM tab1 ---- 168973 3590 80266 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 73 col1 FROM tab0 AS cor0 ---- 73 73 73 query I rowsort SELECT - col2 + - cor0.col2 + cor0.col1 FROM tab2 AS cor0 ---- -23 -59 7 query I rowsort SELECT DISTINCT + - col0 * ( - 18 ) FROM tab2 AS cor0 ---- 126 1404 1422 query I rowsort SELECT - col2 + ( col1 ) * + col1 AS col2 FROM tab0 AS cor0 ---- 7363 8199 9408 query I rowsort SELECT + + col0 * col1 * col0 + col1 + + ( + col0 ) * cor0.col0 FROM tab2 AS cor0 ---- 112355 1599 365099 query I rowsort SELECT - col2 + 58 FROM tab1 AS cor0 ---- -38 1 4 query I rowsort SELECT col1 + ( ( - col1 ) ) AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - tab1.col2 + + tab1.col1 * + col2 AS col2 FROM tab1 ---- 1152 1350 513 query I rowsort SELECT - cor0.col0 + + col2 * - col2 FROM tab0 AS cor0 ---- -1113 -36 -6813 query I rowsort SELECT DISTINCT - col0 * 24 + + 12 + - col1 * 91 FROM tab2 AS cor0 ---- -2977 -3431 -7229 query I rowsort SELECT ALL + - col2 + cor0.col2 * col2 AS col1 FROM tab2 AS cor0 ---- 1406 650 702 onlyif mysql # use DIV operator for integer division query I rowsort label-39 SELECT - col0 - col2 DIV + col0 AS col0 FROM tab0 AS cor0 ---- -25 -35 -89 skipif mysql # not compatible query I rowsort label-39 SELECT - col0 - col2 / + col0 AS col0 FROM tab0 AS cor0 ---- -25 -35 -89 query I rowsort SELECT - col1 + + col1 * col0 AS col2 FROM tab0 ---- 1978 3298 8008 query I rowsort SELECT col2 * + ( cor0.col1 ) AS col1 FROM tab0 cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-42 SELECT + ( + ( - col2 ) ) * - col1 + - col0 DIV col1 AS col2 FROM tab2 AS cor0 ---- 1533 642 837 skipif mysql # not compatible query I rowsort label-42 SELECT + ( + ( - col2 ) ) * - col1 + - col0 / col1 AS col2 FROM tab2 AS cor0 ---- 1533 642 837 query I rowsort SELECT - ( 30 ) FROM tab2 AS cor0 ---- -30 -30 -30 query I rowsort SELECT ( - col1 ) * col2 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 cor0, tab1, tab2 AS cor1 ---- 972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79 query I rowsort SELECT + 98 + cor0.col1 + + ( 46 ) AS col0 FROM tab2 AS cor0 ---- 161 175 203 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-47 SELECT - cor0.col1 + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-47 SELECT - cor0.col1 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - col2 + 73 col2 FROM tab1 AS cor0 ---- -10 26 45 query I rowsort SELECT + - cor0.col2 + col2 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT - + 65 * + col2 FROM tab0 AS cor0 ---- -2145 -5330 -65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - col2 + - col1 col0 FROM tab1 ---- -54 -57 -96 query I rowsort SELECT tab0.col2 FROM tab0, tab1, tab1 cor0 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT - - col1 * col1 + ( ( col2 ) ) AS col2 FROM tab2 AS cor0 ---- 327 3507 988 query I rowsort SELECT ( - col0 ) + + col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT - col1 * + col1 + 76 FROM tab2 AS cor0 ---- -213 -3405 -885 query I rowsort SELECT ALL + col0 + - ( + 64 ) AS col0 FROM tab1 AS cor0 ---- -61 0 16 query I rowsort SELECT + + col0 + - col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - col0 + - 22 AS col0 FROM tab0 AS cor0 ---- -111 -46 -57 query I rowsort SELECT ALL + cor1.col1 * + 72 AS col0 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1 ---- 81 values hashing to 723aaf0a11828ece5566f0b90c61fcbc query I rowsort SELECT cor0.col0 * cor0.col1 + + col1 * - col2 AS col2 FROM tab2 AS cor0 ---- -620 3068 697 query I rowsort SELECT 66 * col0 * + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 3234 401544 411906 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2 ---- 3645 values hashing to 08000767d0a951e4a7a7f8edda07fb64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 14 col0 FROM tab2, tab1 AS cor0 ---- -14 onlyif mysql # use DIV operator for integer division query I rowsort label-64 SELECT ALL - col2 DIV 84 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-64 SELECT ALL - col2 / 84 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT - 85 AS col2 FROM tab0 ---- -85 -85 -85 query I rowsort SELECT ALL - col2 * + ( col2 ) + col2 + - tab1.col0 * col0 AS col1 FROM tab1 ---- -15520 -2871 -7288 query I rowsort SELECT - ( + col1 ) * - col0 + - 34 AS col2 FROM tab2 ---- 1309 183 4568 query I rowsort SELECT DISTINCT + ( col0 ) AS col1 FROM tab1 ---- 3 64 80 query I rowsort SELECT + col1 * - cor0.col1 AS col0 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT DISTINCT ( col1 ) * + col1 AS col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT DISTINCT - col2 * + col1 + - col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 onlyif mysql # use DIV operator for integer division query I rowsort label-72 SELECT + 21 DIV - col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-72 SELECT + 21 / - col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 + col0 * 89 FROM tab0 cor0 ---- 2160 3150 8010 onlyif mysql # use DIV operator for integer division query I rowsort label-74 SELECT ALL + ( col1 ) DIV + col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-74 SELECT ALL + ( col1 ) / + col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-75 SELECT DISTINCT col1 DIV - cor0.col2 + + ( + col2 ) FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-75 SELECT DISTINCT col1 / - cor0.col2 + + ( + col2 ) FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + col1 + 27 AS col2 FROM tab0 ---- 113 118 124 onlyif mysql # use DIV operator for integer division query I rowsort label-77 SELECT ALL CAST( col2 AS SIGNED ) DIV col1 FROM tab2 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-77 SELECT ALL CAST ( col2 AS INTEGER ) / col1 FROM tab2 ---- 0 0 2 query I rowsort SELECT + 49 * col0 - col0 AS col0 FROM tab1 ---- 144 3072 3840 query I rowsort SELECT DISTINCT 86 - col2 AS col1 FROM tab0 ---- 4 53 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 45 - col1 col1 FROM tab2 ---- -14 14 28 onlyif mysql # use DIV operator for integer division query I rowsort label-81 SELECT - col2 * tab1.col1 DIV - ( - col0 ) - col2 FROM tab1 ---- -111 -522 -65 skipif mysql # not compatible query I rowsort label-81 SELECT - col2 * tab1.col1 / - ( - col0 ) - col2 FROM tab1 ---- -111 -522 -65 query I rowsort SELECT 52 + - col0 FROM tab2 ---- -26 -27 45 onlyif mysql # use DIV operator for integer division query I rowsort label-83 SELECT + col1 * + col1 + tab1.col1 + col0 DIV col1 AS col2 FROM tab1 ---- 116 188 702 skipif mysql # not compatible query I rowsort label-83 SELECT + col1 * + col1 + tab1.col1 + col0 / col1 AS col2 FROM tab1 ---- 116 188 702 query I rowsort SELECT col0 * tab0.col0 AS col1 FROM tab0 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-85 SELECT + + col1 DIV col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-85 SELECT + + col1 / col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 onlyif mysql # use DIV operator for integer division query I rowsort label-86 SELECT DISTINCT ( - col1 ) + col0 DIV col0 AS col0 FROM tab0 AS cor0 ---- -85 -90 -96 skipif mysql # not compatible query I rowsort label-86 SELECT DISTINCT ( - col1 ) + col0 / col0 AS col0 FROM tab0 AS cor0 ---- -85 -90 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-87 SELECT ( col1 ) DIV 91 AS col0 FROM tab0 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-87 SELECT ( col1 ) / 91 AS col0 FROM tab0 AS cor0 ---- 0 1 1 query I rowsort SELECT + tab2.col2 AS col1 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT DISTINCT - col0 * ( col1 ) AS col0 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT 29 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 query I rowsort SELECT DISTINCT + 97 FROM tab2, tab1 AS cor0 ---- 97 query I rowsort SELECT + cor0.col0 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT + + 3 AS col1 FROM tab1 AS cor0 ---- 3 3 3 onlyif mysql # use DIV operator for integer division query I rowsort label-94 SELECT ALL - ( + col0 ) + col0 DIV 21 + + col0 AS col0 FROM tab2 AS cor0 ---- 0 3 3 skipif mysql # not compatible query I rowsort label-94 SELECT ALL - ( + col0 ) + col0 / 21 + + col0 AS col0 FROM tab2 AS cor0 ---- 0 3 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + - col0 col2 FROM tab2 cor0 ---- -137 -38 -96 query I rowsort SELECT - - 89 AS col2 FROM tab0 AS cor0 ---- 89 89 89 query I rowsort SELECT ALL ( - 25 ) FROM tab2 AS cor0 ---- -25 -25 -25 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + 5 col2 FROM tab2 AS cor0 ---- 12 83 84 query I rowsort SELECT DISTINCT - col2 * col2 + col0 FROM tab0 cor0 ---- -1065 -6635 34 query I rowsort SELECT ALL + ( col2 ) * cor0.col0 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT + cor0.col0 + - 80 AS col1 FROM tab2 AS cor0 ---- -1 -2 -73 query I rowsort SELECT ALL - col2 * cor0.col2 AS col1 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT - col1 - + 84 AS col0 FROM tab1 ---- -110 -94 -97 query I rowsort SELECT col2 + + 50 FROM tab2 ---- 76 77 88 query I rowsort SELECT 96 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 22c5141a629f0ef396738ee2c8be6303 onlyif mysql # use DIV operator for integer division query I rowsort label-107 SELECT ALL + - col2 DIV + cor0.col0 FROM tab2 cor0 ---- -3 0 0 skipif mysql # not compatible query I rowsort label-107 SELECT ALL + - col2 / + cor0.col0 FROM tab2 cor0 ---- -3 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-108 SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-108 SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + - col2 * cor0.col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col1 * + col0 + ( + cor0.col2 ) * - col0 col1 FROM tab2 AS cor0 ---- -406 -4345 -6630 query I rowsort SELECT DISTINCT - - 96 FROM tab0 cor0 ---- 96 query I rowsort SELECT ALL - col1 + + col2 AS col0 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT ALL - - ( - col1 ) + col2 AS col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT + + col2 * col0 + col2 AS col0 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT DISTINCT 16 * + col0 FROM tab1 AS cor0 ---- 1024 1280 48 query I rowsort SELECT DISTINCT - cor0.col1 * - col1 AS col1 FROM tab0 cor0 ---- 7396 8281 9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 86 + - col1 col2 FROM tab1 AS cor0 ---- 60 73 76 query I rowsort SELECT - col1 + + cor0.col2 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT - 26 FROM tab1 AS cor0 ---- -26 query I rowsort SELECT + 87 AS col1 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 8661ffbd1a72897c495405c53b816e50 query I rowsort SELECT col0 + + col1 + col1 AS col1 FROM tab2 ---- 113 196 69 query I rowsort SELECT ALL + col2 * col2 + - col1 FROM tab0 ---- -96 1003 6633 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 76 + - col0 col1 FROM tab0 ---- -13 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-124 SELECT DISTINCT col0 * col0 * col0 + - col0 + col0 DIV col1 AS col1 FROM tab2 ---- 336 474475 492964 skipif mysql # not compatible query I rowsort label-124 SELECT DISTINCT col0 * col0 * col0 + - col0 + col0 / col1 AS col1 FROM tab2 ---- 336 474475 492964 query I rowsort SELECT ALL col2 * col0 + - col1 * + 59 AS col1 FROM tab0 ---- -4282 -5688 1929 query I rowsort SELECT DISTINCT - 83 + col0 FROM tab0 ---- -48 -59 6 query I rowsort SELECT - cor0.col0 * - 28 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 9824bb722e221c0f2ae79c21d5a651d2 query I rowsort SELECT DISTINCT + col1 * + tab2.col1 * col0 FROM tab2 ---- 22831 271518 6727 query I rowsort SELECT DISTINCT 61 + 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 97 onlyif mysql # use DIV operator for integer division query I rowsort label-130 SELECT - cor0.col2 DIV + col1 + ( - col2 ) AS col1 FROM tab1 cor0 ---- -103 -56 -62 skipif mysql # not compatible query I rowsort label-130 SELECT - cor0.col2 / + col1 + ( - col2 ) AS col1 FROM tab1 cor0 ---- -103 -56 -62 query I rowsort SELECT DISTINCT + cor0.col0 * + col1 AS col2 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT - col1 * col2 + 2 AS col1 FROM tab1 cor0 ---- -1246 -1402 -568 query I rowsort SELECT ALL + col0 * + cor0.col1 AS col0 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - - 44 + - col2 AS col0 FROM tab1 AS cor0 ---- -10 -13 -52 query I rowsort SELECT ALL - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 33 * + cor0.col0 col1 FROM tab0 AS cor0 ---- 1155 2937 792 query I rowsort SELECT DISTINCT col0 + + col1 AS col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT - + 75 AS col1 FROM tab2 AS cor0 ---- -75 onlyif mysql # use DIV operator for integer division query I rowsort label-139 SELECT ALL - ( col2 ) * + 23 + + col1 DIV + tab0.col0 AS col0 FROM tab0 ---- -1885 -21 -756 skipif mysql # not compatible query I rowsort label-139 SELECT ALL - ( col2 ) * + 23 + + col1 / + tab0.col0 AS col0 FROM tab0 ---- -1885 -21 -756 onlyif mysql # use DIV operator for integer division query I rowsort label-140 SELECT DISTINCT + + col2 * cor0.col1 + ( + col1 ) DIV - cor0.col0 AS col2 FROM tab2 AS cor0 ---- 1534 646 833 skipif mysql # not compatible query I rowsort label-140 SELECT DISTINCT + + col2 * cor0.col1 + ( + col1 ) / - cor0.col0 AS col2 FROM tab2 AS cor0 ---- 1534 646 833 query I rowsort SELECT + 27 AS col2 FROM tab2 ---- 27 27 27 query I rowsort SELECT DISTINCT + + col1 * + ( col2 ) AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL col2 + - col1 AS col1 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT - col0 * - cor0.col0 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT + - col1 + + 71 FROM tab1 AS cor0 ---- 45 58 61 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-146 SELECT ALL + col1 * - CAST( NULL AS SIGNED ) + - ( + cor0.col1 + ( + col2 ) ) * + col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-146 SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) + - ( + cor0.col1 + ( + col2 ) ) * + col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 * ( col2 ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT - + col0 + - 31 * cor0.col2 FROM tab1 AS cor0 ---- -1677 -1831 -3056 query I rowsort SELECT cor0.col0 + col1 AS col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT col2 * + cor0.col1 * cor0.col0 FROM tab1 cor0 ---- 36480 4212 99840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 * 71 + - 26 col2 FROM tab0 AS cor0 ---- 2317 45 5796 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - col0 col2 FROM tab0 cor0 ---- -1225 -576 -7921 query I rowsort SELECT ALL + ( + cor0.col1 ) FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT ALL tab1.col0 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT col0 * - col2 - + col1 AS col1 FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT ALL - - cor0.col0 + - col2 AS col2 FROM tab0 cor0 ---- -9 34 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-157 SELECT 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-157 SELECT CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL + - 49 - 82 FROM tab0 AS cor0 ---- -131 -131 -131 query I rowsort SELECT DISTINCT - - col1 * col2 - + col1 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT - + col2 - ( - col0 ) AS col1 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT + cor0.col0 * 40 FROM tab2 AS cor0 ---- 280 3120 3160 query I rowsort SELECT ALL + + cor0.col1 + col2 AS col2 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ALL - + col1 - + col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT DISTINCT + + 98 FROM tab1 AS cor0 ---- 98 query I rowsort SELECT DISTINCT - col0 + col0 AS col1 FROM tab0 cor0 ---- 0 query I rowsort SELECT ALL col2 + - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT - + 75 + col2 AS col0 FROM tab0 AS cor0 ---- -42 -74 7 query I rowsort SELECT DISTINCT - 26 * col0 FROM tab2 AS cor0 ---- -182 -2028 -2054 query I rowsort SELECT ALL + col0 * - cor0.col0 - - 16 * + col1 AS col2 FROM tab2 AS cor0 ---- -5140 -5969 447 query I rowsort SELECT DISTINCT 79 * col2 + + ( + 16 ) FROM tab0 AS cor0 ---- 2623 6494 95 onlyif mysql # use DIV operator for integer division query I rowsort label-171 SELECT col0 DIV - col1 + 52 AS col1 FROM tab1 AS cor0 ---- 46 46 52 skipif mysql # not compatible query I rowsort label-171 SELECT col0 / - col1 + 52 AS col1 FROM tab1 AS cor0 ---- 46 46 52 query I rowsort SELECT ALL + cor0.col0 * col2 + col1 FROM tab0 cor0 ---- 132 7389 878 onlyif mysql # use DIV operator for integer division query I rowsort label-173 SELECT - col1 + + col1 DIV ( col2 ) FROM tab0 AS cor0 ---- -84 -90 0 skipif mysql # not compatible query I rowsort label-173 SELECT - col1 + + col1 / ( col2 ) FROM tab0 AS cor0 ---- -84 -90 0 query I rowsort SELECT DISTINCT + - col0 * - col0 + + col1 * - col1 + cor0.col2 AS col1 FROM tab2 AS cor0 ---- -885 2629 5990 onlyif mysql # use DIV operator for integer division query I rowsort label-175 SELECT + - col2 * col1 + 54 DIV col2 col1 FROM tab0 AS cor0 ---- -2837 -43 -7462 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-175 SELECT + - col2 * col1 + 54 / col2 col1 FROM tab0 AS cor0 ---- -2837 -43 -7462 query I rowsort SELECT 22 * + col2 + + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 1191 1318 2192 query I rowsort SELECT ALL - col1 - col2 AS col0 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT - col0 * - tab0.col1 + col2 AS col1 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT 42 AS col2 FROM tab0 ---- 42 42 42 onlyif mysql # use DIV operator for integer division query I rowsort label-180 SELECT ALL col2 * col1 + col1 DIV ( + col0 ) AS col2 FROM tab0 ---- 2841 7463 99 skipif mysql # not compatible query I rowsort label-180 SELECT ALL col2 * col1 + col1 / ( + col0 ) AS col2 FROM tab0 ---- 2841 7463 99 query I rowsort SELECT ALL 80 AS col1 FROM tab0 ---- 80 80 80 query I rowsort SELECT ALL + ( col1 + + col2 ) FROM tab2 ---- 55 58 85 query I rowsort SELECT - cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT - ( col0 ) + - col1 AS col0 FROM tab1 ---- -29 -74 -93 query I rowsort SELECT 87 FROM tab2, tab2 AS cor0 ---- 9 values hashing to fa0cdd86483844cda3bb806e032d5c64 query I rowsort SELECT + 72 - - col1 AS col1 FROM tab2 cor0 ---- 103 131 89 query I rowsort SELECT - col0 * col1 + col2 * 29 FROM tab1 AS cor0 ---- 1013 1488 1744 onlyif mysql # use DIV operator for integer division query I rowsort label-188 SELECT + + col2 DIV col1 + col0 * + 28 FROM tab2 cor0 ---- 196 2184 2214 skipif mysql # not compatible query I rowsort label-188 SELECT + + col2 / col1 + col0 * + 28 FROM tab2 cor0 ---- 196 2184 2214 query I rowsort SELECT col1 * col2 - + col1 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT + - ( col0 ) * - col0 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT ALL ( + col1 ) + - ( - col1 ) AS col1 FROM tab0 cor0 ---- 172 182 194 onlyif mysql # use DIV operator for integer division query I rowsort label-192 SELECT + ( - col2 ) + col1 DIV - col0 FROM tab0 AS cor0 ---- -3 -36 -83 skipif mysql # not compatible query I rowsort label-192 SELECT + ( - col2 ) + col1 / - col0 FROM tab0 AS cor0 ---- -3 -36 -83 query I rowsort SELECT ALL - 57 FROM tab2 cor0 ---- -57 -57 -57 query I rowsort SELECT ALL - + col0 * - col2 + col1 AS col2 FROM tab0 AS cor0 ---- 132 7389 878 onlyif mysql # use DIV operator for integer division query I rowsort label-195 SELECT - col0 * cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-195 SELECT - col0 * cor0.col1 / col1 AS col2 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL + - 94 * col2 FROM tab2 AS cor0 ---- -2444 -2538 -3572 query I rowsort SELECT DISTINCT + 54 * + col2 FROM tab2 AS cor0 ---- 1404 1458 2052 query I rowsort SELECT + 52 + - col1 AS col0 FROM tab1 AS cor0 ---- 26 39 42 query I rowsort SELECT col2 * col2 + col2 AS col1 FROM tab2 cor0 ---- 1482 702 756 query I rowsort SELECT ALL - col1 * + 25 + + col1 AS col1 FROM tab1 AS cor0 ---- -240 -312 -624 query I rowsort SELECT DISTINCT - col2 - col2 FROM tab2 cor0 ---- -52 -54 -76 query I rowsort SELECT - col1 * 46 AS col2 FROM tab1 AS cor0 ---- -1196 -460 -598 query I rowsort SELECT tab0.col1 * ( + 89 ) AS col2 FROM tab0 ---- 7654 8099 8633 query I rowsort SELECT - col0 * + ( col2 ) AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + + 57 FROM tab0 AS cor0 ---- 57 57 57 query I rowsort SELECT + cor0.col2 + cor0.col1 * col0 AS col1 FROM tab0 AS cor0 ---- 2097 3396 8181 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab2 AS cor0, tab0, tab0 cor1 ---- 972 values hashing to 09b120a8ff13ebafea7af10c2152241b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 60 * + col2 col2 FROM tab1 AS cor0 ---- -3240 -3420 -5760 query I rowsort SELECT - ( 26 ) AS col2 FROM tab2 AS cor0 ---- -26 -26 -26 query I rowsort SELECT - + ( + col0 ) * - col0 AS col0 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT - - cor0.col0 + 69 AS col2 FROM tab0 AS cor0 ---- 104 158 93 skipif mysql # not compatible query I rowsort SELECT CAST ( 95 AS REAL ) AS col0 FROM tab2 AS cor0 ---- 95 95 95 query I rowsort SELECT ALL col1 + col2 * cor0.col0 * col0 FROM tab2 cor0 ---- 1354 158243 237175 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 20 + + col0 * + col2 col1 FROM tab0 AS cor0 ---- 55 7318 812 query I rowsort SELECT - 85 * - col1 AS col0 FROM tab1 AS cor0 ---- 1105 2210 850 onlyif mysql # use DIV operator for integer division query I rowsort label-216 SELECT DISTINCT + ( 47 ) - - col2 DIV - 78 AS col1 FROM tab0 AS cor0 ---- 46 47 skipif mysql # not compatible query I rowsort label-216 SELECT DISTINCT + ( 47 ) - - col2 / - 78 AS col1 FROM tab0 AS cor0 ---- 46 47 query I rowsort SELECT ALL - ( - 2 ) * + col0 AS col1 FROM tab0 AS cor0 ---- 178 48 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 + col0 col2 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT + col0 * - ( col2 ) FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + col2 * 4 FROM tab2 ---- 104 108 152 query I rowsort SELECT DISTINCT + ( cor0.col2 ) FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 32 * - col0 col2 FROM tab0 AS cor0 ---- -1120 -2848 -768 query I rowsort SELECT ALL + 86 * col0 * - col0 + + col1 FROM tab1 AS cor0 ---- -352246 -550387 -748 query I rowsort SELECT DISTINCT + col2 - - col0 FROM tab0 cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-225 SELECT ALL + + col1 * col1 DIV - col2 AS col2 FROM tab0 AS cor0 ---- -100 -224 -9409 skipif mysql # not compatible query I rowsort label-225 SELECT ALL + + col1 * col1 / - col2 AS col2 FROM tab0 AS cor0 ---- -100 -224 -9409 query I rowsort SELECT + ( ( - col0 ) ) + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort SELECT DISTINCT - CAST ( ( col2 ) AS REAL ) FROM tab2 AS cor0 ---- -26 -27 -38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-228 SELECT CAST( NULL AS SIGNED ) * cor0.col1 + + col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-228 SELECT CAST ( NULL AS INTEGER ) * cor0.col1 + + col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col1 + 39 * col1 FROM tab2 AS cor0 ---- 1240 2360 680 query I rowsort SELECT - 3 AS col2 FROM tab1 cor0 ---- -3 -3 -3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-231 SELECT 51 * - ( - tab2.col2 ) * CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-231 SELECT 51 * - ( - tab2.col2 ) * CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-232 SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-232 SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT col2 + + col0 AS col1 FROM tab0 AS cor0 ---- 171 36 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 41 col0 FROM tab2 AS cor0 ---- 41 41 41 query I rowsort SELECT ALL + - col0 + cor0.col1 * cor0.col0 + - 48 FROM tab0 AS cor0 ---- 1992 3312 7962 query I rowsort SELECT - 17 * - col1 FROM tab2 AS cor0 ---- 1003 289 527 query I rowsort SELECT - cor0.col1 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8 query IIIIIIIII rowsort SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 243 values hashing to ce53c0e8839c969b0513568da6eb2c4b query I rowsort SELECT ALL 17 AS col0 FROM tab2 ---- 17 17 17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-240 SELECT + col2 + + CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-240 SELECT + col2 + + CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort SELECT DISTINCT - col1 + CAST ( 66 + - col0 AS REAL ) * col2 FROM tab0 AS cor0 ---- -1977 -66 1300 query I rowsort SELECT - col0 + ( + col1 ) + - col0 FROM tab2 AS cor0 ---- -141 -97 17 query I rowsort SELECT DISTINCT + cor0.col1 + 63 + col2 AS col1 FROM tab2 AS cor0 ---- 118 121 148 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2 ---- 3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad query I rowsort SELECT ALL - col0 * col1 * - col1 AS col1 FROM tab0 AS cor0 ---- 177504 329315 737009 onlyif mysql # use DIV operator for integer division query I rowsort label-246 SELECT DISTINCT col1 DIV + ( + col2 ) AS col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-246 SELECT DISTINCT col1 / + ( + col2 ) AS col2 FROM tab0 AS cor0 ---- 1 2 97 query I rowsort SELECT - col0 + + 64 - col1 FROM tab2 AS cor0 ---- -32 -73 26 query I rowsort SELECT ALL + - cor0.col2 * col1 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT col2 * col0 + col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ALL + tab2.col2 + col2 FROM tab2 ---- 52 54 76 query I rowsort SELECT ALL col2 + + col1 + col0 * col1 AS col0 FROM tab1 ---- 1149 158 707 query I rowsort SELECT ALL - + tab1.col1 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-253 SELECT + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-253 SELECT + 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-254 SELECT + col2 * ( - col2 ) + - col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-254 SELECT + col2 * ( - col2 ) + - col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-255 SELECT - 31 DIV cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to d1b3390bf3c224e527bf68f43fea665f skipif mysql # not compatible query I rowsort label-255 SELECT - 31 / cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to d1b3390bf3c224e527bf68f43fea665f query I rowsort SELECT ALL col2 + ( - col0 * - tab0.col0 ) FROM tab0 ---- 1226 609 8003 query I rowsort SELECT 81 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2 ---- 243 values hashing to dec8958dcbae2730e4a629faa86c7c01 query I rowsort SELECT ALL - 27 * col1 AS col0 FROM tab1 AS cor0 ---- -270 -351 -702 query I rowsort SELECT ( col1 ) * + col2 AS col0 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT ALL + - col2 * col0 + col1 * - 94 + - col0 AS col0 FROM tab1 cor0 ---- -2609 -4652 -8982 query I rowsort SELECT DISTINCT + - col2 + col2 AS col1 FROM tab1 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 63 * - col2 + col1 col1 FROM tab2 AS cor0 ---- 1697 1732 2411 query I rowsort SELECT DISTINCT - col2 - col2 * col2 AS col1 FROM tab0 AS cor0 ---- -1122 -2 -6806 query I rowsort SELECT ALL col0 + + col2 * - col2 + - col0 * col0 * - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1259 17943 642887 query I rowsort SELECT + + col1 * col2 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL + 65 FROM tab2 cor0 ---- 65 65 65 query I rowsort SELECT ALL cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 onlyif mysql # use DIV operator for integer division query I rowsort label-268 SELECT ALL cor0.col2 * col2 DIV 85 AS col0 FROM tab2 AS cor0 ---- 16 7 8 skipif mysql # not compatible query I rowsort label-268 SELECT ALL cor0.col2 * col2 / 85 AS col0 FROM tab2 AS cor0 ---- 16 7 8 query I rowsort SELECT DISTINCT + col1 * - 58 AS col0 FROM tab1 AS cor0 ---- -1508 -580 -754 onlyif mysql # use DIV operator for integer division query I rowsort label-270 SELECT ALL + col0 * - 97 + col2 DIV + col2 AS col0 FROM tab1 cor0 ---- -290 -6207 -7759 skipif mysql # not compatible query I rowsort label-270 SELECT ALL + col0 * - 97 + col2 / + col2 AS col0 FROM tab1 cor0 ---- -290 -6207 -7759 query I rowsort SELECT DISTINCT - - col0 + - col0 * + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0 ---- -231 -40896 -83120 onlyif mysql # use DIV operator for integer division query I rowsort label-272 SELECT DISTINCT - cor0.col2 + + 28 * col2 DIV - cor0.col2 col1 FROM tab1 AS cor0 ---- -124 -82 -85 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-272 SELECT DISTINCT - cor0.col2 + + 28 * col2 / - cor0.col2 col1 FROM tab1 AS cor0 ---- -124 -82 -85 query I rowsort SELECT col0 * 41 FROM tab2 AS cor0 ---- 287 3198 3239 onlyif mysql # use DIV operator for integer division query I rowsort label-274 SELECT - col0 DIV - ( 73 ) FROM tab2 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-274 SELECT - col0 / - ( 73 ) FROM tab2 AS cor0 ---- 0 1 1 query I rowsort SELECT + tab1.col0 - + col2 * tab1.col2 FROM tab1 ---- -2913 -3185 -9136 query I rowsort SELECT DISTINCT + - 52 + col2 * + col1 * 48 FROM tab0 AS cor0 ---- 136172 358124 4604 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-277 SELECT + ( - col1 ) * cor0.col2 + CAST( col2 AS SIGNED ) + + col0 FROM tab0 AS cor0 ---- -2781 -61 -7291 skipif mysql # not compatible query I rowsort label-277 SELECT + ( - col1 ) * cor0.col2 + CAST ( col2 AS INTEGER ) + + col0 FROM tab0 AS cor0 ---- -2781 -61 -7291 onlyif mysql # use DIV operator for integer division query I rowsort label-278 SELECT DISTINCT col1 DIV - 50 FROM tab2 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-278 SELECT DISTINCT col1 / - 50 FROM tab2 AS cor0 ---- -1 0 onlyif mysql # use DIV operator for integer division query I rowsort label-279 SELECT ALL CAST( + col1 AS SIGNED ) * tab2.col1 + 80 DIV - tab2.col1 AS col2 FROM tab2 ---- 285 3480 959 skipif mysql # not compatible query I rowsort label-279 SELECT ALL CAST ( + col1 AS INTEGER ) * tab2.col1 + 80 / - tab2.col1 AS col2 FROM tab2 ---- 285 3480 959 query I rowsort SELECT + 8 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 33069adc3c1142d31511ec88fcfa40af onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-281 SELECT - - CAST( col1 AS SIGNED ) + - col2 col2 FROM tab1 AS cor0 ---- -28 -47 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-281 SELECT - - CAST ( col1 AS INTEGER ) + - col2 col2 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT ALL + + 38 * col0 + - col1 AS col2 FROM tab0 AS cor0 ---- 1233 3291 826 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col1 - - ( col0 ) * 12 col1 FROM tab0 AS cor0 ---- 202 323 977 query I rowsort SELECT - col1 * 36 - - col1 FROM tab0 AS cor0 ---- -3010 -3185 -3395 query I rowsort SELECT ALL + ( 55 ) + cor0.col2 AS col1 FROM tab1 cor0 ---- 109 112 151 query I rowsort SELECT DISTINCT - cor0.col1 FROM tab0, tab1 cor0, tab1 cor1 ---- -10 -13 -26 query I rowsort SELECT ALL - col1 + - col0 AS col0 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT ALL - col0 + col0 * - col0 FROM tab1 cor0 ---- -12 -4160 -6480 query I rowsort SELECT - - 31 AS col1 FROM tab2 cor0 ---- 31 31 31 query I rowsort SELECT DISTINCT - col2 + - col0 * - cor0.col0 + - cor0.col2 FROM tab0 AS cor0 ---- 1223 510 7757 query I rowsort SELECT DISTINCT col0 + ( - col2 ) * - 42 FROM tab2 ---- 1141 1170 1675 query I rowsort SELECT + cor0.col2 + - col0 * 81 AS col0 FROM tab1 AS cor0 ---- -189 -5127 -6384 query I rowsort SELECT ALL ( col1 ) + + ( + 27 ) AS col1 FROM tab0 AS cor0 ---- 113 118 124 query I rowsort SELECT DISTINCT + col2 * - col1 + col1 * + 75 * col0 FROM tab1 cor0 ---- 4446 47430 76752 query I rowsort SELECT DISTINCT + - col2 * cor0.col2 - - 37 * col2 * - col2 FROM tab1 AS cor0 ---- -110808 -123462 -350208 query I rowsort SELECT + ( - cor0.col2 ) + col2 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT 56 + col1 * col0 AS col2 FROM tab0 AS cor0 ---- 2120 3451 8155 query I rowsort SELECT + - col2 * col0 + 83 FROM tab1 AS cor0 ---- -3565 -7597 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * col2 col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT 90 + ( - col1 * col0 ) AS col2 FROM tab0 ---- -1974 -3305 -8009 query I rowsort SELECT 38 AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7 query I rowsort SELECT ALL - col2 + 93 AS col2 FROM tab2 ---- 55 66 67 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-303 SELECT DISTINCT CAST( NULL AS SIGNED ) + ( - col2 ) AS col1 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-303 SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( - col2 ) AS col1 FROM tab0 ---- NULL query I rowsort SELECT DISTINCT + col2 + + tab2.col1 * col0 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT DISTINCT col2 + + col1 * col0 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT + col2 * col2 + - col0 * 45 * + col1 + 42 AS col1 FROM tab1 AS cor0 ---- -25509 -37542 -552 query I rowsort SELECT ALL 16 AS col1 FROM tab1 AS cor0 ---- 16 16 16 query I rowsort SELECT - 70 * col1 + col0 * 23 AS col1 FROM tab1 AS cor0 ---- -1751 772 930 query I rowsort SELECT DISTINCT + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 3 64 80 query I rowsort SELECT 39 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf 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 + 11 AS col1 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 69116737f3f57e2e3273f6dbb04d036c query I rowsort SELECT ALL 64 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9 query I rowsort SELECT ALL + 81 AS col2 FROM tab1, tab2, tab0 cor0 ---- 27 values hashing to 0a85639e0dddbffdab2cb16b027cb360 query I rowsort SELECT ALL + col1 * col0 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - - ( col1 ) * + cor0.col2 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-317 SELECT col0 DIV col0 + - col0 FROM tab2 ---- -6 -77 -78 skipif mysql # not compatible query I rowsort label-317 SELECT col0 / col0 + - col0 FROM tab2 ---- -6 -77 -78 query I rowsort SELECT 41 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e query I rowsort SELECT col1 * + ( col1 ) * col2 + col2 AS col2 FROM tab1 ---- 16320 36558 5757 query I rowsort SELECT + cor0.col1 * + col0 * cor0.col2 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT ( + cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT - + 22 * - 27 AS col0 FROM tab2 AS cor0 ---- 594 594 594 query I rowsort SELECT + col2 + - col2 * + col1 FROM tab1 ---- -1152 -1350 -513 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( - 56 ) col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6 query I rowsort SELECT + ( + 44 ) FROM tab2 ---- 44 44 44 query I rowsort SELECT ALL 85 FROM tab1, tab1 AS cor0 ---- 9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b query I rowsort SELECT ALL + + col2 + + cor0.col0 * col1 FROM tab0 AS cor0 ---- 2097 3396 8181 onlyif mysql # use DIV operator for integer division query I rowsort label-328 SELECT + - col2 DIV cor0.col1 AS col1 FROM tab2 cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-328 SELECT + - col2 / cor0.col1 AS col1 FROM tab2 cor0 ---- -2 0 0 query I rowsort SELECT ALL - - col2 + + col2 * + col2 FROM tab1 cor0 ---- 2970 3306 9312 query I rowsort SELECT DISTINCT - + cor0.col0 * col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-331 SELECT - col2 DIV + 49 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-331 SELECT - col2 / + 49 FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT DISTINCT + + 89 FROM tab2 AS cor0 ---- 89 query I rowsort SELECT ALL - col0 * 12 + col2 AS col1 FROM tab2 AS cor0 ---- -57 -910 -910 query I rowsort SELECT DISTINCT col0 * - 58 AS col2 FROM tab2 AS cor0 ---- -406 -4524 -4582 query I rowsort SELECT DISTINCT - - col2 + - 62 FROM tab0 AS cor0 ---- -29 -61 20 query I rowsort SELECT + - ( + col0 ) * - col0 + - col2 AS col0 FROM tab2 cor0 ---- 22 6058 6203 query I rowsort SELECT - col1 + 85 * + col0 * - col0 FROM tab2 AS cor0 ---- -4196 -517199 -530502 query I rowsort SELECT ALL + 74 AS col2 FROM tab0 AS cor0 ---- 74 74 74 query I rowsort SELECT DISTINCT col0 + 33 FROM tab1 AS cor0 ---- 113 36 97 onlyif mysql # use DIV operator for integer division query I rowsort label-340 SELECT - - col1 * col1 DIV - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -1 -1 -12 skipif mysql # not compatible query I rowsort label-340 SELECT - - col1 * col1 / - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -1 -1 -12 query I rowsort SELECT - + col2 + col2 * - 57 FROM tab2 AS cor0 ---- -1508 -1566 -2204 onlyif mysql # use DIV operator for integer division query I rowsort label-342 SELECT - - col1 DIV - 17 FROM tab2 AS cor0 ---- -1 -1 -3 skipif mysql # not compatible query I rowsort label-342 SELECT - - col1 / - 17 FROM tab2 AS cor0 ---- -1 -1 -3 query I rowsort SELECT DISTINCT + col2 + ( cor0.col2 ) * cor0.col2 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT - col0 * 74 + col0 AS col2 FROM tab1 AS cor0 ---- -219 -4672 -5840 query I rowsort SELECT DISTINCT cor0.col2 * 86 FROM tab2, tab1 AS cor0 ---- 4644 4902 8256 query I rowsort SELECT DISTINCT - 78 AS col0 FROM tab1, tab0, tab1 AS cor0 ---- -78 onlyif mysql # use DIV operator for integer division query I rowsort label-347 SELECT DISTINCT col0 * 48 DIV col1 AS col1 FROM tab0 ---- 13 17 46 skipif mysql # not compatible query I rowsort label-347 SELECT DISTINCT col0 * 48 / col1 AS col1 FROM tab0 ---- 13 17 46 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 92 + 58 col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 3be1163443bad1a5685b4d7d207b1d61 query I rowsort SELECT + 47 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d onlyif mysql # use DIV operator for integer division query I rowsort label-350 SELECT - col1 + + col2 DIV + col2 FROM tab1 AS cor0 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-350 SELECT - col1 + + col2 / + col2 FROM tab1 AS cor0 ---- -12 -25 -9 query I rowsort SELECT + col2 + 76 * col2 FROM tab2 AS cor0 ---- 2002 2079 2926 query I rowsort SELECT + col2 * + 42 AS col2 FROM tab0 AS cor0 ---- 1386 3444 42 query I rowsort SELECT ALL + 87 AS col2 FROM tab1 ---- 87 87 87 query I rowsort SELECT ALL - ( + col1 ) FROM tab0 ---- -86 -91 -97 query I rowsort SELECT - 26 - + 32 * col0 AS col1 FROM tab2 cor0 ---- -250 -2522 -2554 query I rowsort SELECT - - cor0.col0 - cor0.col1 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT col2 * col1 + + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT - ( col0 ) * + col1 + col1 * 45 * col2 AS col1 FROM tab2 AS cor0 ---- 27727 37448 64428 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-359 SELECT ALL CAST( 93 AS SIGNED ) + - cor0.col1 * - col0 col1 FROM tab1 AS cor0 ---- 1133 171 733 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-359 SELECT ALL CAST ( 93 AS INTEGER ) + - cor0.col1 * - col0 col1 FROM tab1 AS cor0 ---- 1133 171 733 query I rowsort SELECT ALL col1 * + ( cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT + col2 * col1 + - ( + col1 ) FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT 67 + - col0 AS col2 FROM tab1 AS cor0 ---- -13 3 64 onlyif mysql # use DIV operator for integer division query I rowsort label-363 SELECT - col0 + - col0 DIV - col2 col0 FROM tab0 AS cor0 ---- -24 -88 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-363 SELECT - col0 + - col0 / - col2 col0 FROM tab0 AS cor0 ---- -24 -88 0 query I rowsort SELECT + - col0 + - cor0.col0 * 38 AS col1 FROM tab2 AS cor0 ---- -273 -3042 -3081 query I rowsort SELECT col1 + - tab2.col1 AS col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT - 18 * col0 AS col2 FROM tab1 AS cor0 ---- -1152 -1440 -54 query I rowsort SELECT ALL - col0 - col1 AS col0 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT ALL + 22 + - col0 AS col0 FROM tab0 AS cor0 ---- -13 -2 -67 query I rowsort SELECT ALL + col2 * - col1 - col1 FROM tab0 AS cor0 ---- -194 -2924 -7553 query I rowsort SELECT DISTINCT - - ( col0 ) AS col0 FROM tab0 cor0 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-371 SELECT DISTINCT - col0 - - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-371 SELECT DISTINCT - col0 - - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL - col2 * - cor0.col1 * - ( 63 ) FROM tab2 cor0 ---- -40698 -52731 -96642 query I rowsort SELECT - 47 * col0 + ( 49 ) FROM tab0 AS cor0 ---- -1079 -1596 -4134 query I rowsort SELECT ALL + ( col2 ) - + cor0.col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col0 + 94 AS col2 FROM tab0 AS cor0 ---- 118 129 183 query I rowsort SELECT - col1 * - cor0.col2 + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -70 1326 208 query I rowsort SELECT + col2 + ( - col0 ) AS col2 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT + col1 * col0 * col2 + + col1 FROM tab1 AS cor0 ---- 36490 4238 99853 query I rowsort SELECT col0 + 83 FROM tab0 AS cor0 ---- 107 118 172 query I rowsort SELECT + - col1 + + col2 * col2 AS col0 FROM tab2 AS cor0 ---- 1427 617 698 query I rowsort SELECT DISTINCT cor0.col2 + + col2 + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 246 3 99 query I rowsort SELECT ALL col1 * col2 - + 59 AS col0 FROM tab1 AS cor0 ---- 1189 1345 511 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col2 col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT tab2.col2 * + col1 + col1 * col2 AS col1 FROM tab2 ---- 1292 1674 3068 onlyif mysql # use DIV operator for integer division query I rowsort label-385 SELECT - ( - 26 ) + col0 DIV + CAST( col0 AS SIGNED ) FROM tab0 cor0 ---- 27 27 27 skipif mysql # not compatible query I rowsort label-385 SELECT - ( - 26 ) + col0 / + CAST ( col0 AS INTEGER ) FROM tab0 cor0 ---- 27 27 27 query I rowsort SELECT ( - ( col0 ) ) * - col2 * col0 + - col0 * 59 AS col1 FROM tab0 AS cor0 ---- -840 17592 644271 query I rowsort SELECT ALL + - 49 * col0 FROM tab0 AS cor0 ---- -1176 -1715 -4361 query I rowsort SELECT 21 AS col0 FROM tab1 AS cor0 ---- 21 21 21 query I rowsort SELECT + ( + ( + col2 ) ) + - 53 * 14 FROM tab2 AS cor0 ---- -704 -715 -716 query I rowsort SELECT DISTINCT + ( 69 ) * - tab0.col1 FROM tab0 ---- -5934 -6279 -6693 query I rowsort SELECT + col1 * - col2 * col1 AS col1 FROM tab2 ---- -10982 -25947 -90506 query I rowsort SELECT ALL - 25 + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -18 53 54 query I rowsort SELECT col1 * tab0.col1 AS col0 FROM tab0 ---- 7396 8281 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-394 SELECT + ( - ( col0 ) ) * col1 DIV + col0 - + col1 FROM tab2 ---- -118 -34 -62 skipif mysql # not compatible query I rowsort label-394 SELECT + ( - ( col0 ) ) * col1 / + col0 - + col1 FROM tab2 ---- -118 -34 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-395 SELECT ALL col0 DIV - col1 - - col2 FROM tab2 ---- 25 27 34 skipif mysql # not compatible query I rowsort label-395 SELECT ALL col0 / - col1 - - col2 FROM tab2 ---- 25 27 34 query I rowsort SELECT + 3 * + col1 AS col1 FROM tab1 cor0 ---- 30 39 78 query I rowsort SELECT DISTINCT - col2 - + 51 FROM tab1 ---- -105 -108 -147 query I rowsort SELECT DISTINCT tab0.col0 - 7 FROM tab0 ---- 17 28 82 query I rowsort SELECT DISTINCT + 77 + - cor0.col1 AS col1 FROM tab0, tab0 AS cor0 ---- -14 -20 -9 query I rowsort SELECT cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2 ---- 972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab2 AS cor2 ---- 3645 values hashing to b62c1ebc681aca72d13feadb888b3be7 query I rowsort SELECT DISTINCT col0 * + 94 + + col2 AS col1 FROM tab2 ---- 685 7358 7464 query I rowsort SELECT DISTINCT cor0.col2 + - col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT + + col1 * col2 + 22 AS col2 FROM tab1 AS cor0 ---- 1270 1426 592 query I rowsort SELECT DISTINCT col0 * 37 + + col1 FROM tab0 ---- 1392 3384 974 query I rowsort SELECT - col0 + 94 AS col0 FROM tab0 ---- 5 59 70 query I rowsort SELECT - tab0.col0 * + 93 AS col0 FROM tab0 ---- -2232 -3255 -8277 query I rowsort SELECT ( 75 ) FROM tab0 ---- 75 75 75 query I rowsort SELECT DISTINCT - + 40 + col0 * - col0 AS col1 FROM tab2 AS cor0 ---- -6124 -6281 -89 query I rowsort SELECT + - cor0.col0 * 55 + - col2 AS col1 FROM tab1 AS cor0 ---- -219 -3577 -4496 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 67 + 93 col0 FROM tab1 cor0 ---- 160 160 160 query I rowsort SELECT - col0 + + col1 AS col2 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT DISTINCT - + 5 + - 65 AS col1 FROM tab1 AS cor0 ---- -70 query I rowsort SELECT ALL + - ( + 4 ) * - col2 AS col1 FROM tab1 AS cor0 ---- 216 228 384 query I rowsort SELECT DISTINCT col2 * col2 + col0 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT col1 * 65 + + col2 * ( 95 ) AS col1 FROM tab1 AS cor0 ---- 6065 6820 9965 query I rowsort SELECT DISTINCT col2 * - 7 FROM tab2 cor0 ---- -182 -189 -266 query I rowsort SELECT + col2 * col0 + - col2 AS col0 FROM tab2 AS cor0 ---- 162 2002 2964 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( cor0.col0 ) col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT - col2 + col2 * + ( 67 * - col0 ) AS col2 FROM tab2 ---- -12690 -135902 -201172 query I rowsort SELECT ( - tab2.col0 ) + cor0.col0 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to d40e76ad3ecba1cdc513f741425fe08a query I rowsort SELECT ALL 18 AS col1 FROM tab1 AS cor0 ---- 18 18 18 query I rowsort SELECT ALL - + col0 * col1 AS col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-425 SELECT ALL - col1 DIV - col1 + + ( - col0 ) * col0 AS col1 FROM tab1 AS cor0 ---- -4095 -6399 -8 skipif mysql # not compatible query I rowsort label-425 SELECT ALL - col1 / - col1 + + ( - col0 ) * col0 AS col1 FROM tab1 AS cor0 ---- -4095 -6399 -8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-426 SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + col1 - - col2 * ( col0 ) AS col0 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-426 SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + col1 - - col2 * ( col0 ) AS col0 FROM tab1 cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 - - 17 col1 FROM tab2 AS cor0 ---- 34 48 76 query I rowsort SELECT - col1 + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-429 SELECT - col1 DIV - CAST( - col2 AS SIGNED ) - + col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-429 SELECT - col1 / - CAST ( - col2 AS INTEGER ) - + col1 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT ALL + col1 + + 92 * col1 * cor0.col2 AS col1 FROM tab1 AS cor0 ---- 114829 129194 52450 onlyif mysql # use DIV operator for integer division query I rowsort label-431 SELECT ALL + col2 + - col0 DIV col0 + col2 * col2 * - col2 FROM tab0 AS cor0 ---- -1 -35905 -551287 skipif mysql # not compatible query I rowsort label-431 SELECT ALL + col2 + - col0 / col0 + col2 * col2 * - col2 FROM tab0 AS cor0 ---- -1 -35905 -551287 query I rowsort SELECT col0 - ( col2 ) AS col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT ALL + col0 * col1 + col1 AS col1 FROM tab1 AS cor0 ---- 104 1053 650 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 84 col1 FROM tab1 ---- 84 query I rowsort SELECT DISTINCT + col0 * + 42 + - col0 AS col2 FROM tab0 AS cor0 ---- 1435 3649 984 query I rowsort SELECT DISTINCT - col1 - + col2 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT + - col2 - col1 AS col2 FROM tab0 cor0 ---- -119 -173 -98 query I rowsort SELECT DISTINCT + - col1 * ( ( cor0.col2 ) * + col2 ) + col0 * + col1 AS col1 FROM tab1 AS cor0 ---- -118768 -31850 -75738 query I rowsort SELECT ALL 30 - col2 FROM tab1 ---- -24 -27 -66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * - ( 11 * - col0 ) col1 FROM tab2 cor0 ---- 2079 22308 33022 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-441 SELECT - col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-441 SELECT - col1 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col1 * - 71 + ( - col2 ) AS col0 FROM tab0 AS cor0 ---- -6139 -6543 -6888 query I rowsort SELECT DISTINCT + tab0.col1 * 80 AS col1 FROM tab0 ---- 6880 7280 7760 query I rowsort SELECT col1 * col0 * - col0 AS col2 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT + + col1 + 70 * col0 AS col2 FROM tab2 AS cor0 ---- 521 5519 5547 query I rowsort SELECT + + col0 + cor0.col1 * col2 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT + col2 * + ( + col1 ) FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT - tab2.col1 + - col2 FROM tab2 ---- -55 -58 -85 query I rowsort SELECT DISTINCT + cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( - ( col2 ) ) + + ( col2 ) col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-451 SELECT CAST( col0 AS SIGNED ) * cor0.col2 + - col2 FROM tab2 AS cor0 ---- 162 2002 2964 skipif mysql # not compatible query I rowsort label-451 SELECT CAST ( col0 AS INTEGER ) * cor0.col2 + - col2 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT - - col0 + - 53 * + col0 AS col2 FROM tab0 cor0 ---- -1248 -1820 -4628 query I rowsort SELECT ALL + tab1.col1 + + tab1.col1 AS col0 FROM tab1 ---- 20 26 52 query I rowsort SELECT DISTINCT + col2 * + ( - col0 ) FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT + - cor0.col2 FROM tab1, tab0, tab1 AS cor0, tab2 ---- -54 -57 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-456 SELECT ALL + col1 + col0 DIV tab0.col0 AS col0 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-456 SELECT ALL + col1 + col0 / tab0.col0 AS col0 FROM tab0 ---- 87 92 98 onlyif mysql # use DIV operator for integer division query I rowsort label-457 SELECT ALL tab0.col2 + - 19 DIV - 24 AS col1 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-457 SELECT ALL tab0.col2 + - 19 / - 24 AS col1 FROM tab0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-458 SELECT col2 * + CAST( col1 * col1 AS SIGNED ) AS col1 FROM tab0 ---- 244068 679042 9409 skipif mysql # not compatible query I rowsort label-458 SELECT col2 * + CAST ( col1 * col1 AS INTEGER ) AS col1 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT + 64 * + col2 FROM tab0 AS cor0 ---- 2112 5248 64 onlyif mysql # use DIV operator for integer division query I rowsort label-460 SELECT cor0.col2 DIV col2 + - col0 * + col2 FROM tab1 AS cor0 ---- -161 -3647 -7679 skipif mysql # not compatible query I rowsort label-460 SELECT cor0.col2 / col2 + - col0 * + col2 FROM tab1 AS cor0 ---- -161 -3647 -7679 query I rowsort SELECT DISTINCT - col2 + + cor0.col0 * 20 FROM tab1 AS cor0 ---- 1223 1504 6 query I rowsort SELECT col1 + - cor0.col2 * + cor0.col1 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT ALL - col0 + col1 AS col1 FROM tab2 cor0 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-464 SELECT + ( - col2 ) DIV cor0.col2 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-464 SELECT + ( - col2 ) / cor0.col2 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL + + ( - col1 ) FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT + - 7 + - col2 * + 41 FROM tab0 AS cor0 ---- -1360 -3369 -48 query I rowsort SELECT col0 + + ( + tab1.col0 + - tab1.col2 ) * - col2 * + col0 FROM tab1 ---- -25472 122960 8265 onlyif mysql # use DIV operator for integer division query I rowsort label-468 SELECT ALL - 16 DIV + 84 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-468 SELECT ALL - 16 / + 84 FROM tab1 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-469 SELECT CAST( NULL AS SIGNED ) + - tab2.col2 col1 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-469 SELECT CAST ( NULL AS INTEGER ) + - tab2.col2 col1 FROM tab2 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-470 SELECT ( col0 ) * - col1 * - CAST( NULL AS SIGNED ) + col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-470 SELECT ( col0 ) * - col1 * - CAST ( NULL AS INTEGER ) + col0 FROM tab1 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-471 SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-471 SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-472 SELECT CAST( ( col0 ) * + 34 + col1 AS SIGNED ) AS col2 FROM tab1 ---- 128 2186 2733 skipif mysql # not compatible query I rowsort label-472 SELECT CAST ( ( col0 ) * + 34 + col1 AS INTEGER ) AS col2 FROM tab1 ---- 128 2186 2733 query I rowsort SELECT ALL col0 + - tab2.col0 + col0 * 17 AS col1 FROM tab2 ---- 119 1326 1343 query I rowsort SELECT ALL + col2 + tab1.col2 FROM tab1 ---- 108 114 192 query I rowsort SELECT - col1 + col1 * - 90 FROM tab2 AS cor0 ---- -1547 -2821 -5369 query I rowsort SELECT ALL - 91 + cor0.col2 AS col0 FROM tab0 AS cor0 ---- -58 -9 -90 query I rowsort SELECT DISTINCT - 31 FROM tab2 AS cor0 ---- -31 query I rowsort SELECT ALL 37 * + cor0.col0 FROM tab2 cor0 ---- 259 2886 2923 query I rowsort SELECT ALL - cor0.col0 + - col1 AS col2 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT - + col2 + + col2 * + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1406 650 702 query I rowsort SELECT + col2 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT - 57 + - col0 * - col1 * col1 FROM tab0 AS cor0 ---- 177447 329258 736952 query I rowsort SELECT cor0.col1 + ( + col0 ) * + col1 * col1 FROM tab0 AS cor0 ---- 177590 329412 737100 query I rowsort SELECT ALL + 6 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 5d1cb90ed58fa7573895d2f95b211821 query I rowsort SELECT ALL - 55 * + 84 - col1 AS col0 FROM tab0 AS cor0 ---- -4706 -4711 -4717 query I rowsort SELECT ALL ( - col2 ) + - col1 * ( - ( col0 ) ) + col0 FROM tab1 cor0 ---- 1024 27 647 query I rowsort SELECT DISTINCT - 82 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2 ---- -82 query I rowsort SELECT DISTINCT + col2 * - cor0.col0 - - ( - col2 ) FROM tab1 AS cor0 ---- -216 -3705 -7776 query I rowsort SELECT ALL col2 * col2 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT - 98 + - col0 AS col0 FROM tab2 AS cor0 ---- -105 -176 -177 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 25 + col0 col1 FROM tab1 AS cor0 ---- -22 39 55 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-492 SELECT + CAST( NULL AS SIGNED ) * - col1 * col1 AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-492 SELECT + CAST ( NULL AS INTEGER ) * - col1 * col1 AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + 10 FROM tab1 ---- 10 10 10 onlyif mysql # use DIV operator for integer division query I rowsort label-494 SELECT DISTINCT col1 DIV - col1 - + col0 FROM tab0 AS cor0 ---- -25 -36 -90 skipif mysql # not compatible query I rowsort label-494 SELECT DISTINCT col1 / - col1 - + col0 FROM tab0 AS cor0 ---- -25 -36 -90 query I rowsort SELECT ALL + col2 + col2 AS col2 FROM tab1 cor0 ---- 108 114 192 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-496 SELECT DISTINCT col1 + - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-496 SELECT DISTINCT col1 + - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - 51 * col1 + col1 AS col0 FROM tab2 AS cor0 ---- -1550 -2950 -850 query I rowsort SELECT + + col0 + cor0.col2 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT ALL + - ( + col2 ) * + 9 + col1 AS col1 FROM tab2 AS cor0 ---- -175 -212 -325 query I rowsort SELECT DISTINCT + + col1 - - col1 * col1 * - col0 AS col0 FROM tab0 AS cor0 ---- -177418 -329218 -736918 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + col1 col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL col0 + + 36 FROM tab1 ---- 100 116 39 query I rowsort SELECT ALL + + 67 * tab1.col0 AS col0 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 94deb655cbd335c2b72ace3303b0f70b query I rowsort SELECT 86 FROM tab2 ---- 86 86 86 query I rowsort SELECT + col0 - - 70 AS col2 FROM tab2 AS cor0 ---- 148 149 77 query I rowsort SELECT - col0 + col1 + + col0 FROM tab0 cor0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-507 SELECT + - col2 + + CAST( - col2 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0 ---- -2970 -3306 -9312 skipif mysql # not compatible query I rowsort label-507 SELECT + - col2 + + CAST ( - col2 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0 ---- -2970 -3306 -9312 query I rowsort SELECT col2 * ( ( cor0.col1 ) ) + col0 AS col1 FROM tab2 cor0 ---- 1612 725 844 query I rowsort SELECT col0 - ( ( col1 ) ) FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT + col0 * col1 * + cor0.col0 + col2 AS col0 FROM tab0 AS cor0 ---- 118826 49569 720893 query I rowsort SELECT col2 * 63 - col1 AS col2 FROM tab0 AS cor0 ---- -34 1993 5075 query I rowsort SELECT DISTINCT - tab1.col0 AS col1 FROM tab1, tab2 cor0 ---- -3 -64 -80 query I rowsort SELECT ALL + col1 * - col1 * col0 FROM tab1 ---- -13520 -2028 -6400 query I rowsort SELECT - col0 * ( + 77 ) - col1 FROM tab2 AS cor0 ---- -570 -6065 -6100 query I rowsort SELECT + - col0 + col2 * col1 FROM tab0 AS cor0 ---- 2814 62 7373 onlyif mysql # use DIV operator for integer division query I rowsort label-516 SELECT - col0 DIV col0 col0 FROM tab0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-516 SELECT - col0 / col0 col0 FROM tab0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT + col2 - col1 * + col0 FROM tab1 ---- -24 -583 -944 onlyif mysql # use DIV operator for integer division query I rowsort label-518 SELECT DISTINCT + col0 * 52 - - ( col0 ) DIV col1 FROM tab0 ---- 1248 1820 4628 skipif mysql # not compatible query I rowsort label-518 SELECT DISTINCT + col0 * 52 - - ( col0 ) / col1 FROM tab0 ---- 1248 1820 4628 query I rowsort SELECT ALL col1 * 19 FROM tab0 AS cor0 ---- 1634 1729 1843 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-520 SELECT - CAST( - cor0.col1 AS SIGNED ) * + col1 col0 FROM tab2 AS cor0 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-520 SELECT - CAST ( - cor0.col1 AS INTEGER ) * + col1 col0 FROM tab2 AS cor0 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 93 col0 FROM tab0 AS cor0 ---- -93 query I rowsort SELECT DISTINCT - + 27 AS col0 FROM tab2 AS cor0 ---- -27 query I rowsort SELECT DISTINCT + + 63 * - col1 FROM tab2 AS cor0 ---- -1071 -1953 -3717 onlyif mysql # use DIV operator for integer division query I rowsort label-524 SELECT ALL - + ( - col0 ) DIV col0 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-524 SELECT ALL - + ( - col0 ) / col0 FROM tab2 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-525 SELECT col0 DIV - 70 col1 FROM tab1 ---- -1 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-525 SELECT col0 / - 70 col1 FROM tab1 ---- -1 0 0 query I rowsort SELECT + tab2.col2 * col1 + col0 * col1 * + 33 FROM tab2 ---- 153400 44965 7998 query I rowsort SELECT - col0 * - col1 AS col2 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT DISTINCT col2 * + col2 - - col0 FROM tab1 ---- 2919 3313 9296 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-529 SELECT DISTINCT + col1 - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-529 SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 ---- NULL query I rowsort SELECT - col1 + tab0.col0 * + 2 - + col2 AS col0 FROM tab0 ---- -28 -71 5 query I rowsort SELECT col1 * ( col1 ) + - col1 FROM tab1 ---- 156 650 90 query I rowsort SELECT - col0 * - col2 + col0 + 5 * 63 AS col1 FROM tab2 AS cor0 ---- 2421 3396 511 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-533 SELECT - CAST( NULL AS SIGNED ) * 89 + col1 - - col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-533 SELECT - CAST ( NULL AS INTEGER ) * 89 + col1 - - col2 FROM tab2 AS cor0 ---- NULL NULL NULL query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2 ---- 3645 values hashing to 64312dc66df177d8c745c63c0bdd4dc7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col1 + - col0 col1 FROM tab0 cor0 ---- -2088 -3430 -8188 query I rowsort SELECT DISTINCT - col0 * col0 AS col1 FROM tab2 cor0 ---- -49 -6084 -6241 query I rowsort SELECT DISTINCT - + 26 * cor0.col2 FROM tab0 AS cor0 ---- -2132 -26 -858 query I rowsort SELECT ALL - 83 FROM tab0 AS cor0 ---- -83 -83 -83 query I rowsort SELECT ALL - ( col2 ) * col1 + - 31 FROM tab2 AS cor0 ---- -1565 -677 -868 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * 51 + col0 + - cor0.col2 col2 FROM tab0 AS cor0 ---- -1233 -1751 -4532 query I rowsort SELECT ALL col0 * ( col1 ) + - col0 FROM tab0 cor0 ---- 2040 3360 8010 query I rowsort SELECT DISTINCT + 4 FROM tab0 AS cor0 ---- 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( - col0 ) * col2 + col1 col2 FROM tab0 AS cor0 ---- -706 -7207 62 onlyif mysql # use DIV operator for integer division query I rowsort label-544 SELECT ALL - col1 * 85 + col2 * + 99 + + col0 DIV + col0 AS col1 FROM tab2 AS cor0 ---- -2440 2318 39 skipif mysql # not compatible query I rowsort label-544 SELECT ALL - col1 * 85 + col2 * + 99 + + col0 / + col0 AS col1 FROM tab2 AS cor0 ---- -2440 2318 39 query I rowsort SELECT ALL + col2 * - ( + col0 ) FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - 89 - tab2.col0 AS col2 FROM tab2 ---- -167 -168 -96 query I rowsort SELECT 53 AS col2 FROM tab2 ---- 53 53 53 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-548 SELECT + CAST( 81 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 0a85639e0dddbffdab2cb16b027cb360 skipif mysql # not compatible query I rowsort label-548 SELECT + CAST ( 81 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 0a85639e0dddbffdab2cb16b027cb360 query I rowsort SELECT - - 42 AS col0 FROM tab1 AS cor0 ---- 42 42 42 query I rowsort SELECT DISTINCT + 12 + col0 AS col2 FROM tab1 AS cor0 ---- 15 76 92 query I rowsort SELECT ALL + - col0 + cor0.col1 FROM tab1 cor0 ---- -54 -67 23 onlyif mysql # use DIV operator for integer division query I rowsort label-552 SELECT ALL + col2 + - col0 DIV 31 AS col1 FROM tab1 AS cor0 ---- 54 55 94 skipif mysql # not compatible query I rowsort label-552 SELECT ALL + col2 + - col0 / 31 AS col1 FROM tab1 AS cor0 ---- 54 55 94 query I rowsort SELECT - col1 * - ( col1 ) + col2 FROM tab0 AS cor0 ---- 7429 8363 9410 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-554 SELECT + cor0.col1 * + CAST( col2 AS SIGNED ) FROM tab2 cor0 ---- 1534 646 837 skipif mysql # not compatible query I rowsort label-554 SELECT + cor0.col1 * + CAST ( col2 AS INTEGER ) FROM tab2 cor0 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-555 SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-555 SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT + col0 * 12 + - col0 FROM tab1 AS cor0 ---- 33 704 880 onlyif mysql # use DIV operator for integer division query I rowsort label-557 SELECT DISTINCT col2 + 39 DIV col1 AS col0 FROM tab2 AS cor0 ---- 26 28 40 skipif mysql # not compatible query I rowsort label-557 SELECT DISTINCT col2 + 39 / col1 AS col0 FROM tab2 AS cor0 ---- 26 28 40 query I rowsort SELECT ALL - - col0 + + col2 * + col0 AS col1 FROM tab2 AS cor0 ---- 196 2106 3081 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 7 col2 FROM tab0 AS cor0 ---- 7 7 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 + - col1 col2 FROM tab0 AS cor0 ---- -172 -182 -194 query I rowsort SELECT + col2 * - cor0.col0 - 12 * - col0 FROM tab2 AS cor0 ---- -105 -1092 -2054 query I rowsort SELECT DISTINCT + cor0.col2 + + col2 AS col1 FROM tab1 cor0 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-563 SELECT DISTINCT + - 39 - + col1 DIV - col1 AS col0 FROM tab1 AS cor0 ---- -38 skipif mysql # not compatible query I rowsort label-563 SELECT DISTINCT + - 39 - + col1 / - col1 AS col0 FROM tab1 AS cor0 ---- -38 query I rowsort SELECT DISTINCT - 95 * + col1 - 67 AS col0 FROM tab0 AS cor0 ---- -8237 -8712 -9282 query I rowsort SELECT ALL + col0 * col1 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 + - col1 * col0 * col2 col2 FROM tab2 AS cor0 ---- -119626 -50996 -5832 query I rowsort SELECT + - ( col2 ) - col1 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT DISTINCT 49 * col1 + 18 AS col2 FROM tab1 cor0 ---- 1292 508 655 query I rowsort SELECT - ( - col0 ) + - col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT ( col1 ) + tab0.col1 AS col0 FROM tab0 ---- 172 182 194 query I rowsort SELECT col1 - 13 FROM tab1 ---- -3 0 13 onlyif mysql # use DIV operator for integer division query I rowsort label-572 SELECT - ( + col1 ) DIV + col2 + 43 DIV ( col0 ) AS col1 FROM tab0 ---- -1 -1 -96 skipif mysql # not compatible query I rowsort label-572 SELECT - ( + col1 ) / + col2 + 43 / ( col0 ) AS col1 FROM tab0 ---- -1 -1 -96 query I rowsort SELECT - - 41 * col0 + + col2 FROM tab0 AS cor0 ---- 1017 1436 3731 query I rowsort SELECT 95 + ( col2 ) FROM tab0 ---- 128 177 96 query I rowsort SELECT - 18 * + col2 AS col0 FROM tab0 AS cor0 ---- -1476 -18 -594 query I rowsort SELECT DISTINCT + col2 * + col1 * tab2.col2 + tab2.col1 FROM tab2 ---- 22630 24565 39943 query I rowsort SELECT 82 AS col2 FROM tab1 ---- 82 82 82 query I rowsort SELECT 98 + + 50 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 36fe9a243dc625516d8a332d544c71b9 query I rowsort SELECT ALL - col0 + col0 * - 15 AS col1 FROM tab1 AS cor0 ---- -1024 -1280 -48 query I rowsort SELECT DISTINCT 90 FROM tab0, tab1 cor0 ---- 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-581 SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif mysql # not compatible query I rowsort label-581 SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c query I rowsort SELECT - cor0.col2 + col2 * - col0 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT col0 * - 55 * + col1 FROM tab2 AS cor0 ---- -11935 -253110 -73865 query I rowsort SELECT - col1 + + 36 FROM tab0 ---- -50 -55 -61 query I rowsort SELECT DISTINCT - ( tab0.col1 ) FROM tab0, tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT + col0 * - col0 * + col0 FROM tab1 ---- -262144 -27 -512000 query I rowsort SELECT DISTINCT + col2 * + col1 AS col2 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT ALL cor1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT DISTINCT 16 FROM tab1 ---- 16 query I rowsort SELECT - 44 + + col2 FROM tab0 ---- -11 -43 38 query I rowsort SELECT ALL - 89 FROM tab0 AS cor0 ---- -89 -89 -89 query I rowsort SELECT DISTINCT ( + ( + col0 ) ) + + col2 - - col2 * col2 FROM tab1 AS cor0 ---- 2973 3370 9392 query I rowsort SELECT DISTINCT + 54 + 17 FROM tab0 AS cor0 ---- 71 query I rowsort SELECT + 82 * 14 FROM tab1 AS cor0 ---- 1148 1148 1148 onlyif mysql # use DIV operator for integer division query I rowsort label-595 SELECT 18 DIV col2 AS col1 FROM tab0 AS cor0 ---- 0 0 18 skipif mysql # not compatible query I rowsort label-595 SELECT 18 / col2 AS col1 FROM tab0 AS cor0 ---- 0 0 18 query I rowsort SELECT ALL ( - col2 ) * - col0 AS col2 FROM tab0 ---- 35 7298 792 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2 AS cor1 ---- 972 values hashing to e610acd60f342127e6cdba18673d9f0e query I rowsort SELECT DISTINCT - 63 FROM tab2 cor0 ---- -63 query I rowsort SELECT ( 89 ) AS col0 FROM tab1 AS cor0 ---- 89 89 89 query I rowsort SELECT - ( 7 ) * col2 AS col0 FROM tab1 AS cor0 ---- -378 -399 -672 query I rowsort SELECT ALL - + col2 + ( col0 ) FROM tab1 cor0 ---- -16 -51 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor0.col0 + - col1 col0 FROM tab2 AS cor0 ---- -137 -38 -96 skipif mysql # not compatible query I rowsort SELECT DISTINCT - CAST ( + col1 * col1 + ( - ( col2 ) ) * ( + col2 ) AS REAL ) AS col2 FROM tab1 ---- 2240 3149 9047 query I rowsort SELECT ALL + tab1.col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT + + 87 + cor0.col0 FROM tab1 AS cor0 ---- 151 167 90 onlyif mysql # use DIV operator for integer division query I rowsort label-606 SELECT + col1 DIV + col1 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-606 SELECT + col1 / + col1 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT col2 + + col0 AS col2 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT + col1 * - col0 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT col2 * 65 FROM tab2 ---- 1690 1755 2470 query I rowsort SELECT ALL + tab0.col2 * + ( + cor0.col1 ) AS col1 FROM tab0, tab1, tab2 cor0 ---- 27 values hashing to 4ac56eb1b1201b1b07557b39398f9b85 query I rowsort SELECT + + cor0.col0 * col0 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT ALL + - col1 + - col2 AS col1 FROM tab1 cor0 ---- -109 -67 -80 query I rowsort SELECT tab0.col2 * - 44 FROM tab0 ---- -1452 -3608 -44 query I rowsort SELECT + + col1 - cor0.col2 AS col2 FROM tab2 cor0 ---- -21 33 4 query I rowsort SELECT - - col2 + - 36 FROM tab1 AS cor0 ---- 18 21 60 query I rowsort SELECT ALL + col2 + + col1 + col0 AS col0 FROM tab0 AS cor0 ---- 133 143 262 query I rowsort SELECT 91 FROM tab0, tab2 cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT - cor0.col1 + + col2 AS col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT - + ( + 21 ) AS col1 FROM tab2 AS cor0 ---- -21 -21 -21 query I rowsort SELECT - col0 + + col0 + - col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT + ( 21 ) AS col2 FROM tab2 AS cor0 ---- 21 21 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col2 ) * col0 * + col0 + col2 col1 FROM tab1 AS cor0 ---- 233529 540 614496 query I rowsort SELECT ALL - cor1.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT + col0 * + col2 + col2 * - col2 FROM tab1 AS cor0 ---- -1536 -2754 399 query I rowsort SELECT - tab1.col2 + tab1.col2 + + col1 AS col1 FROM tab1 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 col2 FROM tab1 WHERE ( col2 - - col0 ) NOT IN ( col0 ) ---- -54 -57 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-627 SELECT DISTINCT col2 DIV - col2 AS col0 FROM tab1 ---- -1 skipif mysql # not compatible query I rowsort label-627 SELECT DISTINCT col2 / - col2 AS col0 FROM tab1 ---- -1 onlyif mysql # use DIV operator for integer division query I rowsort label-628 SELECT ALL + tab1.col0 DIV - col0 col1 FROM tab1 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-628 SELECT ALL + tab1.col0 / - col0 col1 FROM tab1 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-629 SELECT ALL tab2.col2 DIV - col1 AS col1 FROM tab2 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-629 SELECT ALL tab2.col2 / - col1 AS col1 FROM tab2 ---- -2 0 0 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + col2 = NULL ---- query I rowsort SELECT DISTINCT - col1 - - col0 * col0 FROM tab1 ---- -17 4086 6387 onlyif mysql # use DIV operator for integer division query I rowsort label-632 SELECT ALL col2 DIV tab1.col1 AS col0 FROM tab1 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-632 SELECT ALL col2 / tab1.col1 AS col0 FROM tab1 ---- 2 5 7 query III rowsort SELECT * FROM tab0 WHERE NOT ( col2 - + col0 * + col2 ) NOT IN ( col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-634 SELECT DISTINCT + col2 DIV + col2 col2 FROM tab1 ---- 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-634 SELECT DISTINCT + col2 / + col2 col2 FROM tab1 ---- 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - + col0 col2 FROM tab1 AS cor0 ---- 0 0 0 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= col0 ---- query III rowsort SELECT * FROM tab1 WHERE NOT + col1 + col2 NOT IN ( col0 * tab1.col2 + col2 ) ---- query I rowsort SELECT ALL + tab2.col1 - + col1 AS col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT + col2 - tab1.col0 AS col0 FROM tab1 ---- -7 16 51 query I rowsort SELECT col0 * col2 - tab0.col2 * col0 AS col0 FROM tab0 ---- 0 0 0 query III rowsort SELECT * FROM tab1 WHERE NOT NULL >= NULL ---- query I rowsort SELECT col0 * col2 * col1 AS col0 FROM tab1 ---- 36480 4212 99840 query III rowsort SELECT * FROM tab0 WHERE NOT col1 + + col1 * - col1 NOT IN ( col2 + tab0.col1 + col0 * + col1 ) ---- query I rowsort SELECT - col1 * + tab2.col1 AS col2 FROM tab2 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * col2 col1 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT - col2 - col2 AS col1 FROM tab2 ---- -52 -54 -76 query I rowsort SELECT + col2 * - col0 * + col0 AS col2 FROM tab0 ---- -1225 -19008 -649522 query I rowsort SELECT col1 * col1 - tab1.col0 AS col0 FROM tab1 ---- 36 673 89 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) IN ( col2 ) ---- query I rowsort SELECT + col1 + + col0 AS col1 FROM tab0 ---- 110 132 180 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( col0 ) IN ( + col0 ) ---- query III rowsort SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND NULL ---- query I rowsort SELECT - col0 * - col1 + col0 AS col1 FROM tab1 ---- 1120 704 81 onlyif mysql # use DIV operator for integer division query I rowsort label-654 SELECT ALL + col0 DIV - col0 + col1 FROM tab2 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-654 SELECT ALL + col0 / - col0 + col1 FROM tab2 ---- 16 30 58 onlyif mysql # use DIV operator for integer division query I rowsort label-655 SELECT + col1 - col0 DIV tab0.col0 AS col2 FROM tab0 ---- 85 90 96 skipif mysql # not compatible query I rowsort label-655 SELECT + col1 - col0 / tab0.col0 AS col2 FROM tab0 ---- 85 90 96 query I rowsort SELECT + + col1 * + cor0.col1 FROM tab1 AS cor0 ---- 100 169 676 onlyif mysql # use DIV operator for integer division query I rowsort label-657 SELECT + cor0.col0 DIV - col2 AS col0 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-657 SELECT + cor0.col0 / - col2 AS col0 FROM tab0 AS cor0 ---- -1 -35 0 query I rowsort SELECT DISTINCT - col2 * col0 * col2 FROM tab1 ---- -207936 -737280 -8748 query I rowsort SELECT DISTINCT col2 * tab2.col2 * - col1 FROM tab2 ---- -22599 -24548 -39884 query I rowsort SELECT - tab0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f query I rowsort SELECT ALL col0 - - col2 AS col1 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT - col1 * - col2 * - col1 + - col2 * + col1 FROM tab0 AS cor0 ---- -246906 -686504 -9506 query I rowsort SELECT + col0 + - col2 * + col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 query I rowsort SELECT ALL - col1 * col1 + col2 FROM tab2 AS cor0 ---- -251 -3455 -934 onlyif mysql # use DIV operator for integer division query I rowsort label-665 SELECT - - cor0.col2 * col1 DIV + col1 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-665 SELECT - - cor0.col2 * col1 / + col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL + - col0 + 81 AS col2 FROM tab0 cor0 ---- -8 46 57 query I rowsort SELECT DISTINCT + + cor0.col1 * + 56 FROM tab0 AS cor0 ---- 4816 5096 5432 query I rowsort SELECT DISTINCT - - col2 * + col1 AS col1 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT ALL + + cor0.col2 AS col2 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT col1 * 1 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT ALL cor0.col0 + col0 * col0 AS col2 FROM tab2 AS cor0 ---- 56 6162 6320 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + 10 col0 FROM tab1 AS cor0 ---- 20 23 36 query I rowsort SELECT + - col0 * - ( + col2 ) AS col1 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - - cor0.col0 AS col0 FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT DISTINCT 92 * col2 FROM tab1 ---- 4968 5244 8832 query I rowsort SELECT ALL - tab1.col1 * 41 + - col0 - col0 AS col1 FROM tab1 ---- -1072 -538 -693 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-677 SELECT - col1 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-677 SELECT - col1 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col1 * col1 + 45 AS col2 FROM tab1 AS cor0 ---- 145 214 721 query I rowsort SELECT col1 * - col2 + col1 AS col0 FROM tab0 ---- -2752 -7371 0 onlyif mysql # use DIV operator for integer division query I rowsort label-680 SELECT DISTINCT col0 - + col2 DIV col1 FROM tab2 ---- 7 77 78 skipif mysql # not compatible query I rowsort label-680 SELECT DISTINCT col0 - + col2 / col1 FROM tab2 ---- 7 77 78 query I rowsort SELECT ALL + col0 + col2 * col1 FROM tab1 ---- 1328 1407 634 query I rowsort SELECT ALL + tab1.col1 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 ) ---- query I rowsort SELECT ALL - col1 * + col1 * col0 + + col0 - tab2.col1 AS col2 FROM tab2 ---- -22769 -271499 -6751 query I rowsort SELECT ALL - col1 * + tab0.col0 * col2 AS col1 FROM tab0 WHERE col0 * col0 IN ( col2 * col0 * + col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + tab1.col2 + + col2 col2 FROM tab1 ---- 1344 1458 627 query I rowsort SELECT ALL + col0 - tab2.col0 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT col1 + - col1 AS col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NULL IN ( col2 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab2.col0 * + tab2.col2 col1 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT col2 * col2 * col2 AS col0 FROM tab1 ---- 157464 185193 884736 query I rowsort SELECT ALL + tab2.col1 * + col0 AS col0 FROM tab2 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-692 SELECT col1 DIV tab2.col0 AS col2 FROM tab2 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-692 SELECT col1 / tab2.col0 AS col2 FROM tab2 ---- 0 0 4 query I rowsort SELECT - tab0.col1 + col0 + tab0.col0 FROM tab0 ---- -27 -38 87 query I rowsort SELECT DISTINCT tab2.col2 * + col0 AS col0 FROM tab2 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-695 SELECT DISTINCT - col0 + - col2 * - col0 + - tab1.col0 DIV - col2 AS col1 FROM tab1 ---- 159 3585 7600 skipif mysql # not compatible query I rowsort label-695 SELECT DISTINCT - col0 + - col2 * - col0 + - tab1.col0 / - col2 AS col1 FROM tab1 ---- 159 3585 7600 query I rowsort SELECT ALL col0 + - col0 * - col1 + + tab2.col1 * - tab2.col0 AS col2 FROM tab2 ---- 7 78 79 query I rowsort SELECT DISTINCT + + cor0.col2 FROM tab1, tab2, tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT + - col0 * col0 FROM tab2 cor0 ---- -49 -6084 -6241 query I rowsort SELECT ALL + - 99 * col0 FROM tab1 AS cor0 ---- -297 -6336 -7920 query I rowsort SELECT - col0 * + col2 + col0 AS col2 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT + ( + col2 ) * + 79 AS col0 FROM tab2 cor0 ---- 2054 2133 3002 query I rowsort SELECT DISTINCT + col1 - col0 AS col2 FROM tab1 cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT - col2 + 24 * col2 AS col2 FROM tab0 AS cor0 ---- 1886 23 759 query I rowsort SELECT col2 * + 80 FROM tab1 AS cor0 ---- 4320 4560 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-705 SELECT DISTINCT - col0 + - CAST( ( + col1 ) + + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -175 -215 -45 skipif mysql # not compatible query I rowsort label-705 SELECT DISTINCT - col0 + - CAST ( ( + col1 ) + + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -175 -215 -45 query I rowsort SELECT ALL + col0 * 76 FROM tab0 AS cor0 ---- 1824 2660 6764 query I rowsort SELECT - - col0 * - col1 AS col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * 16 col2 FROM tab1 AS cor0 ---- -1024 -1280 -48 query I rowsort SELECT ALL + col2 * - 25 AS col2 FROM tab0 AS cor0 ---- -2050 -25 -825 query I rowsort SELECT DISTINCT - col2 + col2 * - col0 FROM tab2 AS cor0 ---- -2054 -216 -3040 query I rowsort SELECT ALL + - col2 + col1 * cor0.col1 FROM tab1 AS cor0 ---- 43 622 73 query I rowsort SELECT ALL cor0.col0 * + ( - col1 ) FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT + col2 * 35 AS col0 FROM tab1 AS cor0 ---- 1890 1995 3360 query I rowsort SELECT DISTINCT - ( + cor0.col2 ) AS col1 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT + 97 FROM tab1 AS cor0 ---- 97 97 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( 58 ) * + col1 col0 FROM tab0 AS cor0 ---- -4988 -5278 -5626 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 43 col0 FROM tab2 cor0 ---- 43 43 43 query I rowsort SELECT - tab0.col1 + ( col2 ) FROM tab0 ---- -53 -9 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT DISTINCT - 83 + cor0.col1 * - 66 FROM tab0 AS cor0 ---- -5759 -6089 -6485 query I rowsort SELECT - 84 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2 ---- 81 values hashing to aaabc1266a1bb4f477091ffbc243c849 query I rowsort SELECT + 36 + cor0.col2 FROM tab2 AS cor0 ---- 62 63 74 query I rowsort SELECT ALL - ( - col2 ) * col2 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT - + ( - col2 ) + 37 * col0 * col1 AS col1 FROM tab1 AS cor0 ---- 23737 2940 38576 query I rowsort SELECT 29 + - col1 FROM tab0 AS cor0 ---- -57 -62 -68 query I rowsort SELECT DISTINCT 98 + 18 * - col1 AS col0 FROM tab1 ---- -136 -370 -82 query I rowsort SELECT 62 + col1 * col1 FROM tab2 ---- 1023 351 3543 query I rowsort SELECT ALL + cor0.col1 * + col2 * 57 AS col0 FROM tab1 AS cor0 ---- 32490 71136 80028 query I rowsort SELECT ALL - col1 * + col1 + col2 * + ( 4 ) AS col2 FROM tab2 ---- -137 -3377 -853 query I rowsort SELECT DISTINCT ( + 31 ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 31 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0, tab0 AS cor1 ---- 972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9 query I rowsort SELECT col1 + 10 AS col0 FROM tab2 cor0 ---- 27 41 69 query I rowsort SELECT ALL ( col2 ) + + 81 AS col0 FROM tab0 ---- 114 163 82 query I rowsort SELECT + col0 + - col1 * tab1.col1 AS col2 FROM tab1 ---- -36 -673 -89 query I rowsort SELECT - - col1 + col1 * ( - col0 ) * col0 FROM tab0 AS cor0 ---- -118728 -49450 -720720 query I rowsort SELECT DISTINCT - cor0.col0 - col0 FROM tab2 AS cor0 ---- -14 -156 -158 query I rowsort SELECT ALL - cor0.col1 - cor0.col2 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT + col0 + + col1 * col0 * - cor0.col2 FROM tab0 AS cor0 ---- -3360 -664029 -68088 query I rowsort SELECT ALL + col2 * col1 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT DISTINCT - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 ---- -3 -64 -80 query I rowsort SELECT - ( - tab0.col0 ) FROM tab0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * - col0 col0 FROM tab2 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-743 SELECT ALL col0 DIV col1 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-743 SELECT ALL col0 / col1 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col2 * col0 * col1 FROM tab1 ---- -36480 -4212 -99840 query I rowsort SELECT + tab0.col1 * - col0 AS col2 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT col1 * + col0 * col0 AS col0 FROM tab1 ---- 234 40960 83200 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + col2 + col0 * + col2 NOT BETWEEN - col1 AND - col1 AND NULL NOT IN ( - col2 * - col2 ) ---- query I rowsort SELECT cor0.col1 + - col1 * + col2 AS col2 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT ALL - col1 + col2 AS col0 FROM tab0 cor0 ---- -53 -9 -96 query I rowsort SELECT - col2 + - col1 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT DISTINCT ( col2 ) * col1 + - col0 * tab0.col1 AS col1 FROM tab0 ---- -3298 -637 774 query I rowsort SELECT ALL ( col0 ) + - col2 FROM tab1 ---- -16 -51 7 query I rowsort SELECT col0 + + 27 * col0 + + col2 AS col1 FROM tab2 ---- 2210 223 2250 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col1 * col0 col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT ALL col2 + - ( col1 * + col1 ) FROM tab2 ---- -251 -3455 -934 query I rowsort SELECT ALL - col2 + + 68 FROM tab1 AS cor0 ---- -28 11 14 query I rowsort SELECT ALL - + 12 FROM tab0 AS cor0 ---- -12 -12 -12 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * + 27 col2 FROM tab1 ---- 270 351 702 onlyif mysql # use DIV operator for integer division query I rowsort label-759 SELECT DISTINCT + + 79 DIV col1 AS col0 FROM tab2 AS cor0 ---- 1 2 4 skipif mysql # not compatible query I rowsort label-759 SELECT DISTINCT + + 79 / col1 AS col0 FROM tab2 AS cor0 ---- 1 2 4 query I rowsort SELECT DISTINCT + cor0.col0 + + col1 * col2 + + col2 FROM tab2 AS cor0 ---- 1638 763 871 query I rowsort SELECT - col1 * col0 - col0 FROM tab2 AS cor0 ---- -1422 -224 -4680 onlyif mysql # use DIV operator for integer division query I rowsort label-762 SELECT col1 DIV cor0.col2 + - col2 * - cor0.col1 * + col2 FROM tab0 AS cor0 ---- 194 611885 93656 skipif mysql # not compatible query I rowsort label-762 SELECT col1 / cor0.col2 + - col2 * - cor0.col1 * + col2 FROM tab0 AS cor0 ---- 194 611885 93656 query I rowsort SELECT 21 * - tab2.col2 FROM tab2 ---- -546 -567 -798 onlyif mysql # use DIV operator for integer division query I rowsort label-764 SELECT - 72 DIV col1 AS col2 FROM tab2 AS cor0 ---- -1 -2 -4 skipif mysql # not compatible query I rowsort label-764 SELECT - 72 / col1 AS col2 FROM tab2 AS cor0 ---- -1 -2 -4 query I rowsort SELECT - + 84 + + col0 FROM tab1 AS cor0 ---- -20 -4 -81 onlyif mysql # use DIV operator for integer division query I rowsort label-766 SELECT + + col0 * + col1 + cor0.col1 * + col0 - col1 DIV col0 FROM tab2 AS cor0 ---- 2686 430 9204 skipif mysql # not compatible query I rowsort label-766 SELECT + + col0 * + col1 + cor0.col1 * + col0 - col1 / col0 FROM tab2 AS cor0 ---- 2686 430 9204 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + tab1.col2 ) + - col2 * - col0 + - col2 col1 FROM tab1 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + col0 - col0 col0 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT - + col0 * + col1 + col2 AS col2 FROM tab0 AS cor0 ---- -2031 -3394 -8017 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + ( + col2 ) + cor0.col2 * - col1 col1 FROM tab0 cor0 ---- -2805 -7380 -96 query I rowsort SELECT DISTINCT - 4 + tab0.col0 AS col1 FROM tab0, tab1 cor0 ---- 20 31 85 query I rowsort SELECT + col2 * col1 * + cor0.col1 FROM tab0 AS cor0 ---- 244068 679042 9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-773 SELECT CAST( NULL AS SIGNED ) * ( - tab1.col2 ) + col1 AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-773 SELECT CAST ( NULL AS INTEGER ) * ( - tab1.col2 ) + col1 AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT 22 * - 71 * col0 - + col0 FROM tab0 ---- -139107 -37512 -54705 onlyif mysql # use DIV operator for integer division query I rowsort label-775 SELECT DISTINCT col1 DIV - col2 - col2 FROM tab0 ---- -35 -83 -98 skipif mysql # not compatible query I rowsort label-775 SELECT DISTINCT col1 / - col2 - col2 FROM tab0 ---- -35 -83 -98 query I rowsort SELECT col0 + + col2 - col1 * col2 FROM tab1 ---- -1072 -1347 -449 query I rowsort SELECT DISTINCT 78 - tab0.col2 AS col0 FROM tab0 ---- -4 45 77 query I rowsort SELECT DISTINCT 37 - + col1 AS col2 FROM tab2 ---- -22 20 6 query I rowsort SELECT - 64 + + col1 + - col2 AS col0 FROM tab1 ---- -111 -147 -92 query I rowsort SELECT DISTINCT col1 - col1 AS col1 FROM tab2 ---- 0 query I rowsort SELECT DISTINCT - cor0.col2 AS col2 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT ALL + + 35 + cor0.col0 * ( col0 ) FROM tab1 AS cor0 ---- 4131 44 6435 query I rowsort SELECT 61 + 56 FROM tab2, tab1 AS cor0 ---- 9 values hashing to fffa05abe62cb539edc957636b354583 query I rowsort SELECT 94 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to a4d239626cf0546ac1b2f57bb8407089 onlyif mysql # use DIV operator for integer division query I rowsort label-785 SELECT DISTINCT - tab0.col2 * 40 DIV - tab0.col2 + ( 74 ) FROM tab0, tab0 AS cor0 ---- 114 skipif mysql # not compatible query I rowsort label-785 SELECT DISTINCT - tab0.col2 * 40 / - tab0.col2 + ( 74 ) FROM tab0, tab0 AS cor0 ---- 114 query I rowsort SELECT ALL - col0 + - tab2.col0 * + col2 * - col2 FROM tab2 ---- 113997 5096 52650 query I rowsort SELECT - col2 - + 60 FROM tab1 ---- -114 -117 -156 query I rowsort SELECT DISTINCT col1 + - ( - col1 ) FROM tab2 ---- 118 34 62 query I rowsort SELECT - cor0.col0 + - 76 FROM tab2 cor0 ---- -154 -155 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 11 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to f4d199584b44732f1a897e6691b4ea00 query I rowsort SELECT - col0 + 14 * - col1 FROM tab0 AS cor0 ---- -1228 -1363 -1393 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-792 SELECT + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-792 SELECT + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + cor0.col0 + + col0 AS col1 FROM tab1 cor0 ---- 128 160 6 query I rowsort SELECT + 2 * - 7 FROM tab1 AS cor0 ---- -14 -14 -14 query I rowsort SELECT + ( + col1 ) * col1 * col2 FROM tab0 AS cor0 ---- 244068 679042 9409 query I rowsort SELECT + ( - 61 ) * col1 AS col1 FROM tab0 AS cor0 ---- -5246 -5551 -5917 query I rowsort SELECT DISTINCT + 4 + + col1 + col0 AS col0 FROM tab0 cor0 ---- 114 136 184 query I rowsort SELECT DISTINCT + + col1 + + col1 + col1 FROM tab1 AS cor0 ---- 30 39 78 query I rowsort SELECT ALL + + 31 + col0 AS col2 FROM tab2 AS cor0 ---- 109 110 38 query I rowsort SELECT col0 + 8 AS col0 FROM tab0 AS cor0 ---- 32 43 97 query I rowsort SELECT DISTINCT - cor0.col1 + + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 20 col1 FROM tab0 AS cor0 ---- 20 20 20 query I rowsort SELECT + + col0 * col0 AS col2 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT tab0.col0 + tab0.col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL + cor1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT DISTINCT 25 + + cor0.col1 FROM tab0 cor0 ---- 111 116 122 query I rowsort SELECT ALL + col1 - col0 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT ALL - ( - col1 * + col1 + + col1 ) AS col0 FROM tab0 ---- 7310 8190 9312 query I rowsort SELECT - ( + 5 ) + tab0.col0 FROM tab0 ---- 19 30 84 query I rowsort SELECT DISTINCT + 4 FROM tab1 cor0 ---- 4 query I rowsort SELECT ALL - 87 + + ( + cor0.col2 ) * col1 * - col1 FROM tab2 AS cor0 ---- -11069 -26034 -90593 query I rowsort SELECT - - 7 FROM tab0 AS cor0 ---- 7 7 7 query I rowsort SELECT ALL + cor0.col1 + ( col0 ) * ( col0 ) - col0 * + ( col0 ) FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + - cor0.col0 * col0 - - col2 * + col0 FROM tab2 AS cor0 ---- -3239 -4056 140 query I rowsort SELECT 94 + + col1 * - col1 FROM tab0 AS cor0 ---- -7302 -8187 -9315 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-816 SELECT - + CAST( - ( col1 ) AS SIGNED ) * - cor0.col1 + 60 AS col2 FROM tab2 AS cor0 ---- -229 -3421 -901 skipif mysql # not compatible query I rowsort label-816 SELECT - + CAST ( - ( col1 ) AS INTEGER ) * - cor0.col1 + 60 AS col2 FROM tab2 AS cor0 ---- -229 -3421 -901 query I rowsort SELECT DISTINCT + col2 * - col1 + col1 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT DISTINCT - ( + col0 ) + 63 FROM tab2 AS cor0 ---- -15 -16 56 query I rowsort SELECT ALL 6 * cor0.col0 AS col0 FROM tab2 AS cor0 ---- 42 468 474 onlyif mysql # use DIV operator for integer division query I rowsort label-820 SELECT ALL + 33 DIV col2 FROM tab0 AS cor0 ---- 0 1 33 skipif mysql # not compatible query I rowsort label-820 SELECT ALL + 33 / col2 FROM tab0 AS cor0 ---- 0 1 33 query I rowsort SELECT DISTINCT + col1 + - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - - 30 FROM tab2 cor0 ---- 30 30 30 query I rowsort SELECT ALL - - ( col2 ) FROM tab0 cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-824 SELECT DISTINCT + - col0 * - col0 + 97 DIV - 63 AS col0 FROM tab0 AS cor0 ---- 1224 575 7920 skipif mysql # not compatible query I rowsort label-824 SELECT DISTINCT + - col0 * - col0 + 97 / - 63 AS col0 FROM tab0 AS cor0 ---- 1224 575 7920 query I rowsort SELECT DISTINCT + col1 + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT - 93 * - col2 + + 30 FROM tab0 AS cor0 ---- 123 3099 7656 query I rowsort SELECT ALL + ( + col0 ) FROM tab2 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 79 + + 78 col2 FROM tab1 ---- 157 157 157 query I rowsort SELECT - - 87 * + col0 AS col0 FROM tab1 AS cor0 ---- 261 5568 6960 query I rowsort SELECT col1 - + 89 FROM tab2 ---- -30 -58 -72 query I rowsort SELECT - col1 * col2 + + col2 + - cor0.col0 * + 1 * ( col1 * - ( - 48 ) ) AS col0 FROM tab1 AS cor0 ---- -31233 -5094 -51072 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * col0 col2 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT - col1 * - col0 AS col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL - cor0.col0 + ( col0 ) * col2 FROM tab2 AS cor0 ---- 182 1950 2923 query I rowsort SELECT - - col0 + - col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - col2 - ( 76 * cor0.col0 ) FROM tab1 AS cor0 ---- -282 -4921 -6176 query I rowsort SELECT ALL + + col1 + ( + cor0.col1 ) FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT DISTINCT - col0 + + 56 AS col0 FROM tab1 AS cor0 ---- -24 -8 53 onlyif mysql # use DIV operator for integer division query I rowsort label-839 SELECT col0 + + cor0.col0 DIV col1 FROM tab2 AS cor0 ---- 7 79 83 skipif mysql # not compatible query I rowsort label-839 SELECT col0 + + cor0.col0 / col1 FROM tab2 AS cor0 ---- 7 79 83 query I rowsort SELECT ALL + col1 * col1 AS col1 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT ALL - col2 * ( - col2 ) FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT DISTINCT + + col0 - - col2 AS col2 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT ALL - 88 FROM tab0, tab1, tab1 cor0 ---- 27 values hashing to eb8cbefa7d831e1a0183e919e2caef32 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 52 + + col1 + col1 * - 33 col0 FROM tab0 ---- -2700 -2860 -3052 query I rowsort SELECT DISTINCT - col0 - - col1 FROM tab0 ---- 2 62 query I rowsort SELECT ALL + cor0.col0 * - col0 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT - cor0.col0 + ( + col2 ) * - col1 AS col2 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT ALL cor0.col0 * ( cor0.col2 + - col1 ) * - col0 AS col1 FROM tab1 AS cor0 ---- -192512 -252 -531200 query I rowsort SELECT ALL - + col0 * + 78 AS col0 FROM tab1 AS cor0 ---- -234 -4992 -6240 query I rowsort SELECT - 5 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 74665fbb47d5b17da011bca567195b21 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-851 SELECT - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-851 SELECT - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT DISTINCT + + ( 88 ) AS col1 FROM tab2 AS cor0 ---- 88 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1, tab1 cor2 ---- 972 values hashing to 9af67d6f98010464af5d560bf949d487 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab1.col1 + col0 col0 FROM tab1 ---- -23 54 67 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-855 SELECT + col0 - - CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-855 SELECT + col0 - - CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col1 * ( - ( - col2 ) ) + 80 * col0 AS col1 FROM tab2 ---- 1397 6966 7774 query I rowsort SELECT tab1.col1 * - col0 AS col0 FROM tab1 ---- -1040 -640 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-858 SELECT ALL + tab0.col2 DIV col2 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-858 SELECT ALL + tab0.col2 / col2 FROM tab0 ---- 1 1 1 query I rowsort SELECT - + col1 * + col0 + + 36 FROM tab1 AS cor0 ---- -1004 -42 -604 query I rowsort SELECT + 71 * - col1 + - col0 AS col1 FROM tab0 AS cor0 ---- -6130 -6550 -6922 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-861 SELECT DISTINCT + col2 + col1 * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0 ---- 327 3507 988 skipif mysql # not compatible query I rowsort label-861 SELECT DISTINCT + col2 + col1 * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 ---- 327 3507 988 query I rowsort SELECT + 72 * - col1 AS col0 FROM tab1 ---- -1872 -720 -936 query I rowsort SELECT ALL - cor0.col2 * 2 AS col1 FROM tab1 AS cor0 ---- -108 -114 -192 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * cor0.col1 col1 FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-865 SELECT ALL - - col2 DIV col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-865 SELECT ALL - - col2 / col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT 26 FROM tab2, tab1 cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 query I rowsort SELECT DISTINCT - col2 * 74 FROM tab1 ---- -3996 -4218 -7104 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + col1 col1 FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-869 SELECT - - col1 * CAST( col1 AS SIGNED ) + col0 FROM tab1 AS cor0 ---- 164 249 679 skipif mysql # not compatible query I rowsort label-869 SELECT - - col1 * CAST ( col1 AS INTEGER ) + col0 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT DISTINCT + col0 * - 59 AS col1 FROM tab0 cor0 ---- -1416 -2065 -5251 onlyif mysql # use DIV operator for integer division query I rowsort label-871 SELECT - col1 DIV - col2 AS col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-871 SELECT - col1 / - col2 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col2 * 60 * - 14 + - col0 AS col1 FROM tab0 AS cor0 ---- 27696 68791 805 onlyif mysql # use DIV operator for integer division query I rowsort label-873 SELECT - + col0 + cor0.col0 DIV col1 FROM tab1 cor0 ---- -3 -58 -74 skipif mysql # not compatible query I rowsort label-873 SELECT - + col0 + cor0.col0 / col1 FROM tab1 cor0 ---- -3 -58 -74 query I rowsort SELECT ALL - col0 + + 14 AS col1 FROM tab1 ---- -50 -66 11 query I rowsort SELECT DISTINCT 84 AS col1 FROM tab2 ---- 84 query I rowsort SELECT 29 - - col1 * cor0.col2 * - 98 AS col1 FROM tab0 AS cor0 ---- -278095 -731247 -9477 query I rowsort SELECT ALL - col0 * 59 + - col1 FROM tab2 AS cor0 ---- -444 -4661 -4678 query I rowsort SELECT DISTINCT 6 * 68 AS col2 FROM tab2 AS cor0 ---- 408 query I rowsort SELECT DISTINCT + col2 + 66 FROM tab1 ---- 120 123 162 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2 ---- 3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c query I rowsort SELECT ALL col0 + 18 * tab1.col1 AS col0 FROM tab1 ---- 244 314 471 query I rowsort SELECT ALL + col0 + col2 - - col0 AS col2 FROM tab2 cor0 ---- 182 196 41 query I rowsort SELECT 14 + ( col1 ) AS col1 FROM tab0 AS cor0 ---- 100 105 111 query I rowsort SELECT DISTINCT + - col0 + col0 * - col2 * - 38 FROM tab2 AS cor0 ---- 113997 7175 76986 query I rowsort SELECT ALL + 89 * + col1 FROM tab2 AS cor0 ---- 1513 2759 5251 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-886 SELECT ALL - CAST( 42 AS SIGNED ) FROM tab2 AS cor0 ---- -42 -42 -42 skipif mysql # not compatible query I rowsort label-886 SELECT ALL - CAST ( 42 AS INTEGER ) FROM tab2 AS cor0 ---- -42 -42 -42 query I rowsort SELECT col1 - - col2 * col1 * + col1 FROM tab0 AS cor0 ---- 244154 679133 9506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 - col2 col1 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 91 + - ( col2 ) AS col1 FROM tab0 AS cor0 ---- -124 -173 -92 query I rowsort SELECT DISTINCT col1 * col2 + col1 * + 44 - 1 * + col2 FROM tab0 AS cor0 ---- 11384 4364 6589 query I rowsort SELECT + col0 + + cor0.col2 * + col0 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT ALL + ( + 16 ) FROM tab0 AS cor0 ---- 16 16 16 query I rowsort SELECT + col1 - 70 FROM tab2 AS cor0 ---- -11 -39 -53 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-894 SELECT DISTINCT CAST( col1 AS SIGNED ) * col0 * cor0.col0 + 38 AS col0 FROM tab1 AS cor0 ---- 272 40998 83238 skipif mysql # not compatible query I rowsort label-894 SELECT DISTINCT CAST ( col1 AS INTEGER ) * col0 * cor0.col0 + 38 AS col0 FROM tab1 AS cor0 ---- 272 40998 83238 query I rowsort SELECT DISTINCT - + 59 + - 62 FROM tab2 AS cor0 ---- -121 query I rowsort SELECT + col2 * - col2 + - col1 FROM tab0 AS cor0 ---- -1175 -6815 -98 query I rowsort SELECT - col2 + col0 * - col0 FROM tab2 AS cor0 ---- -6110 -6279 -76 query I rowsort SELECT ALL + col2 * + col0 * col2 AS col2 FROM tab0 AS cor0 ---- 26136 35 598436 query I rowsort SELECT DISTINCT - col1 + + col1 AS col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + + 42 - 57 * + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -15 -1839 -4632 query I rowsort SELECT + + col2 - col1 * col1 AS col2 FROM tab2 AS cor0 ---- -251 -3455 -934 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-902 SELECT - - cor0.col0 + - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-902 SELECT - - cor0.col0 + - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col2 * + cor0.col0 + col0 * col0 FROM tab1 AS cor0 ---- -1280 -153 448 query I rowsort SELECT - 42 * col2 + ( - 88 * + col0 ) FROM tab0 AS cor0 ---- -11276 -3122 -3498 query I rowsort SELECT + - 91 + + col1 FROM tab2 AS cor0 ---- -32 -60 -74 query I rowsort SELECT + col0 * col1 + + ( cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT ( col0 ) * 32 + - 34 * + cor0.col2 FROM tab2 AS cor0 ---- -694 1236 1612 query I rowsort SELECT col1 * + col2 + - col1 * - col2 * col2 FROM tab0 cor0 ---- 194 619346 96492 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * + col1 - col1 col0 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT + col1 - col1 * 78 * - col2 FROM tab2 AS cor0 ---- 119711 50405 65317 onlyif mysql # use DIV operator for integer division query I rowsort label-911 SELECT - col1 + - col2 DIV col0 FROM tab0 AS cor0 ---- -87 -91 -97 skipif mysql # not compatible query I rowsort label-911 SELECT - col1 + - col2 / col0 FROM tab0 AS cor0 ---- -87 -91 -97 query I rowsort SELECT 90 + + col2 FROM tab0 AS cor0 ---- 123 172 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-913 SELECT DISTINCT - + col1 + - CAST( 31 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -48 -62 -90 skipif mysql # not compatible query I rowsort label-913 SELECT DISTINCT - + col1 + - CAST ( 31 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -48 -62 -90 query I rowsort SELECT ALL col1 + 16 * 28 FROM tab2 AS cor0 ---- 465 479 507 onlyif mysql # use DIV operator for integer division query I rowsort label-915 SELECT col2 DIV ( cor0.col1 * + col0 ) + 35 FROM tab2 AS cor0 ---- 35 35 35 skipif mysql # not compatible query I rowsort label-915 SELECT col2 / ( cor0.col1 * + col0 ) + 35 FROM tab2 AS cor0 ---- 35 35 35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 86 * - col0 col1 FROM tab0 ---- -2064 -3010 -7654 onlyif mysql # use DIV operator for integer division query I rowsort label-917 SELECT ALL - cor0.col0 DIV 99 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-917 SELECT ALL - cor0.col0 / 99 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT - + 39 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 504d14939d58aeb4a14f31c80de5b53e query I rowsort SELECT - - ( cor0.col0 ) * col1 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT - col2 + - col0 AS col1 FROM tab2 ---- -104 -117 -34 query I rowsort SELECT DISTINCT ( col1 ) * col0 + - 86 * col2 FROM tab0 ---- -774 1047 3309 onlyif mysql # use DIV operator for integer division query I rowsort label-922 SELECT col2 DIV ( col0 ) FROM tab1 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-922 SELECT col2 / ( col0 ) FROM tab1 ---- 0 1 18 query I rowsort SELECT - 5 AS col0 FROM tab1 AS cor0 ---- -5 -5 -5 query I rowsort SELECT ALL - - col1 * 47 AS col1 FROM tab0 cor0 ---- 4042 4277 4559 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-925 SELECT + 81 * cor0.col1 + CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-925 SELECT + 81 * cor0.col1 + CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 cor1, tab2 AS cor2 ---- 972 values hashing to 591a9a93560839231c038a1e10bd240a query I rowsort SELECT cor0.col0 + cor0.col0 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 10977325261681ddca962e0a5d2b348b query I rowsort SELECT DISTINCT 90 FROM tab0 ---- 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * 93 col0 FROM tab0 AS cor0 ---- -3069 -7626 -93 query I rowsort SELECT DISTINCT + + cor0.col2 * + 89 FROM tab0 AS cor0 ---- 2937 7298 89 query I rowsort SELECT col1 * 36 AS col2 FROM tab0 AS cor0 ---- 3096 3276 3492 query I rowsort SELECT 61 * + 33 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e23cf695ce7d6c3848d97e7665e70af8 query I rowsort SELECT 7 - cor0.col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 3e0ed3ce98242559291fd9172740660b query I rowsort SELECT DISTINCT + ( - 6 ) * cor0.col1 AS col1 FROM tab0, tab0 AS cor0 ---- -516 -546 -582 query I rowsort SELECT ALL col2 * + 88 AS col2 FROM tab2 ---- 2288 2376 3344 onlyif mysql # use DIV operator for integer division query I rowsort label-936 SELECT DISTINCT - 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-936 SELECT DISTINCT - col1 / - col2 col0 FROM tab0 ---- 1 2 97 query I rowsort SELECT + 3 AS col1 FROM tab0, tab1 cor0 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-938 SELECT col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-938 SELECT col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + col0 - col2 FROM tab0 ---- -9 34 7 query I rowsort SELECT 60 AS col1 FROM tab2 ---- 60 60 60 onlyif mysql # use DIV operator for integer division query I rowsort label-941 SELECT + + col0 DIV - cor0.col1 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-941 SELECT + + col0 / - cor0.col1 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL - col2 * - col2 AS col0 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT + - 99 + + cor0.col0 FROM tab0 AS cor0 ---- -10 -64 -75 query I rowsort SELECT DISTINCT + col0 + + col0 * 16 FROM tab2 AS cor0 ---- 119 1326 1343 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-945 SELECT DISTINCT - CAST( col1 AS SIGNED ) - - col0 FROM tab2 ---- -24 19 62 skipif mysql # not compatible query I rowsort label-945 SELECT DISTINCT - CAST ( col1 AS INTEGER ) - - col0 FROM tab2 ---- -24 19 62 onlyif mysql # use DIV operator for integer division query I rowsort label-946 SELECT ( tab1.col1 ) DIV + tab1.col0 + + col1 - - tab1.col2 AS col2 FROM tab1 ---- 109 67 88 skipif mysql # not compatible query I rowsort label-946 SELECT ( tab1.col1 ) / + tab1.col0 + + col1 - - tab1.col2 AS col2 FROM tab1 ---- 109 67 88 query I rowsort SELECT - ( - cor0.col0 ) * + col1 + + col2 AS col2 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT + col0 * + tab2.col2 AS col2 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT + 98 FROM tab2, tab0, tab2 AS cor0, tab1 ---- 81 values hashing to 6624b1f09c0594f5576803ac29f4499d query I rowsort SELECT + + col2 * + col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT + col0 + col2 * - ( cor0.col2 ) FROM tab0 AS cor0 ---- -1065 -6635 34 query I rowsort SELECT DISTINCT - 24 + + col1 FROM tab2 ---- -7 35 7 query I rowsort SELECT DISTINCT + 78 + + col0 * + col0 * + 47 + tab2.col2 AS col1 FROM tab2 ---- 2408 286052 293443 query I rowsort SELECT + - col0 + - col2 * - col2 AS col0 FROM tab2 AS cor0 ---- 1365 598 722 query I rowsort SELECT + cor0.col1 + + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL + + 37 FROM tab0 AS cor0 ---- 37 37 37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-957 SELECT col0 + col1 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 cor0 ---- -576 -75 -960 skipif mysql # not compatible query I rowsort label-957 SELECT col0 + col1 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 cor0 ---- -576 -75 -960 query I rowsort SELECT + - col1 * col1 + - ( - col1 * - col0 ) FROM tab0 AS cor0 ---- -12804 -16380 -9460 query I rowsort SELECT 51 AS col2 FROM tab2 ---- 51 51 51 query I rowsort SELECT ALL 36 * col2 + + col2 * - col0 AS col2 FROM tab1 ---- -1596 -4224 1782 query I rowsort SELECT DISTINCT 15 * col1 * col2 + + 61 * - col1 * ( 26 ) FROM tab1 ---- -1898 -20176 -7310 query I rowsort SELECT ALL col0 * - col0 + 8 AS col1 FROM tab2 ---- -41 -6076 -6233 query I rowsort SELECT 49 + - col2 FROM tab1 cor0 ---- -47 -5 -8 query I rowsort SELECT ALL - - ( col1 ) AS col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT + - col2 * + col0 + - 52 * 45 FROM tab0 AS cor0 ---- -2375 -3132 -9638 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col0 + col2 * ( - col2 ) col2 FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT + + col2 + + 50 * - 84 AS col1 FROM tab1 AS cor0 ---- -4104 -4143 -4146 onlyif mysql # use DIV operator for integer division query I rowsort label-968 SELECT col0 DIV col0 + + col1 * - col0 AS col1 FROM tab1 AS cor0 ---- -1039 -639 -77 skipif mysql # not compatible query I rowsort label-968 SELECT col0 / col0 + + col1 * - col0 AS col1 FROM tab1 AS cor0 ---- -1039 -639 -77 query I rowsort SELECT + cor0.col1 + cor0.col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL + col0 * - 17 + + 51 FROM tab0 cor0 ---- -1462 -357 -544 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-971 SELECT col0 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-971 SELECT col0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * + col2 col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + + col0 * - ( - col1 ) FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL - col1 * 35 + - col1 AS col0 FROM tab1 AS cor0 ---- -360 -468 -936 query I rowsort SELECT + cor0.col0 + 99 AS col1 FROM tab0 AS cor0 ---- 123 134 188 query I rowsort SELECT - 35 + col0 FROM tab0 ---- -11 0 54 query I rowsort SELECT ALL - + col0 * + col0 * col2 AS col2 FROM tab1 cor0 ---- -233472 -486 -614400 onlyif mysql # use DIV operator for integer division query I rowsort label-978 SELECT DISTINCT + col2 + cor0.col1 DIV col1 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-978 SELECT DISTINCT + col2 + cor0.col1 / col1 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT DISTINCT cor0.col0 + - 69 AS col0 FROM tab2 AS cor0 ---- -62 10 9 query I rowsort SELECT + cor0.col0 * + col2 + col1 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT DISTINCT + col2 * - 32 + + col0 * - col0 AS col2 FROM tab0 AS cor0 ---- -10545 -1257 -1632 onlyif mysql # use DIV operator for integer division query I rowsort label-982 SELECT DISTINCT + col0 * + 44 + - col2 DIV col1 col0 FROM tab0 AS cor0 ---- 1056 1540 3916 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-982 SELECT DISTINCT + col0 * + 44 + - col2 / col1 col0 FROM tab0 AS cor0 ---- 1056 1540 3916 query I rowsort SELECT - 38 + + col0 AS col2 FROM tab1 AS cor0 ---- -35 26 42 query I rowsort SELECT + cor0.col2 * - 65 AS col1 FROM tab0 AS cor0 ---- -2145 -5330 -65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * + col1 col2 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT + col1 * ( cor0.col0 ) FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL + col2 + - 16 * + col1 FROM tab0 AS cor0 ---- -1343 -1374 -1551 query I rowsort SELECT + ( - col1 ) * + col1 AS col1 FROM tab2 AS cor0 ---- -289 -3481 -961 onlyif mysql # use DIV operator for integer division query I rowsort label-989 SELECT DISTINCT + + 62 + + 44 DIV col2 AS col0 FROM tab1 AS cor0 ---- 62 skipif mysql # not compatible query I rowsort label-989 SELECT DISTINCT + + 62 + + 44 / col2 AS col0 FROM tab1 AS cor0 ---- 62 query I rowsort SELECT ALL - col1 + - 66 AS col1 FROM tab1 cor0 ---- -76 -79 -92 query I rowsort SELECT ALL + - 50 AS col2 FROM tab2 AS cor0 ---- -50 -50 -50 query I rowsort SELECT + 44 FROM tab2 AS cor0 ---- 44 44 44 query I rowsort SELECT DISTINCT - 29 * col0 - col1 FROM tab0 AS cor0 ---- -1112 -2672 -782 query I rowsort SELECT DISTINCT - col2 * + 93 FROM tab1 AS cor0 ---- -5022 -5301 -8928 query I rowsort SELECT + + 8 AS col1 FROM tab1 AS cor0 ---- 8 8 8 query I rowsort SELECT + 19 * - 68 FROM tab2 AS cor0 ---- -1292 -1292 -1292 query I rowsort SELECT DISTINCT + - 84 FROM tab1 AS cor0 ---- -84 query I rowsort SELECT - 70 * - ( col2 * - col0 ) FROM tab1 cor0 ---- -11340 -255360 -537600 query I rowsort SELECT DISTINCT + col0 + - col0 * - col0 AS col2 FROM tab0 cor0 ---- 1260 600 8010 query I rowsort SELECT DISTINCT + ( ( + cor0.col2 ) ) + col1 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT ALL - ( + col1 ) + - col1 AS col1 FROM tab1 AS cor0 ---- -20 -26 -52 query I rowsort SELECT ALL + col1 + + col1 * 48 AS col2 FROM tab1 AS cor0 ---- 1274 490 637 query I rowsort SELECT ALL - col2 - + col2 AS col0 FROM tab0 AS cor0 ---- -164 -2 -66 query I rowsort SELECT DISTINCT 95 - - col2 FROM tab0 cor0 ---- 128 177 96 query I rowsort SELECT ALL cor0.col2 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT DISTINCT cor0.col2 * col2 + col2 * 10 AS col0 FROM tab2 AS cor0 ---- 1824 936 999 query I rowsort SELECT ALL col2 - col0 AS col2 FROM tab1 ---- -7 16 51 query I rowsort SELECT + col0 - - 73 AS col2 FROM tab0 AS cor0 ---- 108 162 97 query I rowsort SELECT col0 * ( + cor0.col1 ) + col2 + - col1 AS col0 FROM tab1 cor0 ---- 106 1123 687 query I rowsort SELECT ALL col2 + 28 FROM tab0 ---- 110 29 61 query I rowsort SELECT + col0 + + 61 FROM tab0 AS cor0 ---- 150 85 96 query I rowsort SELECT + col1 + cor0.col1 + col0 AS col1 FROM tab1 AS cor0 ---- 106 55 84 query I rowsort SELECT 29 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 skipif mysql # not compatible query I rowsort SELECT DISTINCT + col2 + + CAST ( 57 AS REAL ) AS col2 FROM tab0 ---- 139 58 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1015 SELECT ALL col1 + + CAST( NULL AS DECIMAL ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1015 SELECT ALL col1 + + CAST ( NULL AS REAL ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT cor0.col2 FROM tab1, tab0, tab0 cor0 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 onlyif mysql # use DIV operator for integer division query I rowsort label-1017 SELECT + col0 DIV + col1 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1017 SELECT + col0 / + col1 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT ( - 27 ) + col0 AS col2 FROM tab1 ---- -24 37 53 query I rowsort SELECT ALL - ( - tab0.col2 + + 53 ) FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1 ---- 81 values hashing to 2f2cfdb16c4c63745aa5e95150c16913 query I rowsort SELECT 92 FROM tab2, tab2 cor0 ---- 9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1021 SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1021 SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1022 SELECT - 58 DIV - 89 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1022 SELECT - 58 / - 89 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col0 - 81 AS col1 FROM tab0 AS cor0 ---- -46 -57 8 query I rowsort SELECT DISTINCT + 58 + ( - col0 ) AS col2 FROM tab1 AS cor0 ---- -22 -6 55 query I rowsort SELECT ALL - + ( ( col2 ) ) * col1 - + col0 FROM tab1 cor0 ---- -1328 -1407 -634 query I rowsort SELECT DISTINCT - - col1 + - 23 FROM tab1 AS cor0 ---- -10 -13 3 query I rowsort SELECT ALL ( - cor0.col0 ) AS col2 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL - ( - 80 ) + + col2 AS col1 FROM tab2 AS cor0 ---- 106 107 118 query I rowsort SELECT ALL + + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + col0 + + col2 * 67 FROM tab2 AS cor0 ---- 1816 1820 2625 query I rowsort SELECT DISTINCT 64 * col2 FROM tab1 cor0 ---- 3456 3648 6144 query I rowsort SELECT - col0 * col0 * - 8 FROM tab0 AS cor0 ---- 4608 63368 9800 query I rowsort SELECT ALL + - col0 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT DISTINCT + cor0.col2 AS col0 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT + col2 + + ( col0 ) * col1 AS col0 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT + cor0.col1 * col1 + col2 + col1 * col1 FROM tab1 AS cor0 ---- 1406 257 434 query I rowsort SELECT + col2 + - col0 * col0 FROM tab0 ---- -1224 -543 -7839 query I rowsort SELECT ALL 39 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf onlyif mysql # use DIV operator for integer division query I rowsort label-1039 SELECT + tab0.col2 DIV tab0.col0 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-1039 SELECT + tab0.col2 / tab0.col0 FROM tab0 ---- 0 0 1 query I rowsort SELECT ALL + + col2 * + 79 FROM tab1 AS cor0 ---- 4266 4503 7584 query I rowsort SELECT DISTINCT + - col2 * col1 AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL - + col0 * - col0 + + col2 AS col0 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT col0 + + col1 + + col0 * + col0 * col1 FROM tab2 AS cor0 ---- 106193 1557 359093 query I rowsort SELECT - col2 * col2 + col0 AS col0 FROM tab0 AS cor0 ---- -1065 -6635 34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1045 SELECT ALL + + col1 * ( + col0 ) + - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1045 SELECT ALL + + col1 * ( + col0 ) + - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 + + 12 FROM tab2 cor0 ---- 29 43 71 query I rowsort SELECT DISTINCT - - col2 + col0 + col0 FROM tab2 AS cor0 ---- 182 196 41 onlyif mysql # use DIV operator for integer division query I rowsort label-1048 SELECT ALL - col1 DIV - col0 - col1 FROM tab2 AS cor0 ---- -17 -27 -59 skipif mysql # not compatible query I rowsort label-1048 SELECT ALL - col1 / - col0 - col1 FROM tab2 AS cor0 ---- -17 -27 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 * cor0.col2 col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT col1 * - col2 * - col2 AS col2 FROM tab1 AS cor0 ---- 119808 32490 75816 query I rowsort SELECT col2 + - 48 + - col2 FROM tab0 AS cor0 ---- -48 -48 -48 query I rowsort SELECT 49 + + 96 AS col1 FROM tab0 AS cor0 ---- 145 145 145 query I rowsort SELECT - 74 AS col1 FROM tab2 AS cor0 ---- -74 -74 -74 onlyif mysql # use DIV operator for integer division query I rowsort label-1054 SELECT - col2 * col2 DIV col2 AS col1 FROM tab1 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-1054 SELECT - col2 * col2 / col2 AS col1 FROM tab1 ---- -54 -57 -96 query I rowsort SELECT col0 - col1 * col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT ( 56 ) + - col1 AS col1 FROM tab1 AS cor0 ---- 30 43 46 query I rowsort SELECT - cor0.col1 * + 49 + + col2 AS col2 FROM tab2 AS cor0 ---- -1492 -2865 -795 query I rowsort SELECT DISTINCT - col2 * + col0 - - col1 AS col2 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT ALL 13 AS col1 FROM tab2 ---- 13 13 13 onlyif mysql # use DIV operator for integer division query I rowsort label-1060 SELECT - col0 * - col2 + col0 DIV - col0 AS col2 FROM tab2 AS cor0 ---- 188 2027 3001 skipif mysql # not compatible query I rowsort label-1060 SELECT - col0 * - col2 + col0 / - col0 AS col2 FROM tab2 AS cor0 ---- 188 2027 3001 onlyif mysql # use DIV operator for integer division query I rowsort label-1061 SELECT + 99 DIV - col0 AS col1 FROM tab1 AS cor0 ---- -1 -1 -33 skipif mysql # not compatible query I rowsort label-1061 SELECT + 99 / - col0 AS col1 FROM tab1 AS cor0 ---- -1 -1 -33 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab0 AS cor2 ---- 972 values hashing to 3406497351e4789c89a295ee9b64b201 query I rowsort SELECT DISTINCT - 48 * 73 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- -3504 query I rowsort SELECT + tab2.col1 + + col1 * + 41 FROM tab2 ---- 1302 2478 714 query I rowsort SELECT - - col2 + + ( col0 ) FROM tab2 AS cor0 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 30 col1 FROM tab0 ---- -30 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 95 * + col1 col1 FROM tab2 ---- 1615 2945 5605 query I rowsort SELECT DISTINCT - col1 + - col0 * + col1 AS col2 FROM tab1 ---- -104 -1053 -650 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 + col2 + + cor0.col1 AS col1 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT cor0.col1 + col0 * - col1 + col0 * col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - col2 * - col0 - + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0 ---- 14596 1584 70 query I rowsort SELECT ALL - cor0.col1 * - col1 AS col2 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT cor0.col2 - + col2 AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT col1 * + col0 AS col1 FROM tab1 cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - cor0.col2 - col1 col0 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT DISTINCT - col1 * cor0.col2 + + col2 AS col0 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT DISTINCT col1 - - col1 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT - - cor0.col1 + - col0 FROM tab2 AS cor0 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-1080 SELECT DISTINCT + cor0.col2 DIV - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-1080 SELECT DISTINCT + cor0.col2 / - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -1 query I rowsort SELECT ALL - cor0.col0 * col0 + col0 AS col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 onlyif mysql # use DIV operator for integer division query I rowsort label-1082 SELECT col2 AS col2 FROM tab1 WHERE col0 IN ( - col0 DIV tab1.col1 + + col0 ) ---- 54 skipif mysql # not compatible query I rowsort label-1082 SELECT col2 AS col2 FROM tab1 WHERE col0 IN ( - col0 / tab1.col1 + + col0 ) ---- 54 query I rowsort SELECT ALL + col0 + + tab1.col1 AS col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT DISTINCT col0 + - cor0.col0 / col1 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( cor0.col2 ) ---- query I rowsort SELECT - - col0 + cor0.col0 * + cor0.col1 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT ALL cor0.col0 + + col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT - col1 * + col1 + - col0 * col2 AS col0 FROM tab0 AS cor0 ---- -15579 -8188 -9444 query I rowsort SELECT DISTINCT - col0 * col1 * col1 FROM tab0 ---- -177504 -329315 -737009 query I rowsort SELECT ALL col2 * + col0 + col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT ALL - col2 - - col1 AS col2 FROM tab2 cor0 ---- -21 33 4 onlyif mysql # use DIV operator for integer division query I rowsort label-1091 SELECT - tab0.col0 DIV + tab0.col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1091 SELECT - tab0.col0 / + tab0.col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT col0 * cor0.col2 + col1 AS col0 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT DISTINCT - col2 * + col1 + col1 AS col2 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT - col2 + + col1 * - col0 - + col1 FROM tab2 ---- -1398 -275 -4687 query I rowsort SELECT DISTINCT col0 - col2 FROM tab0 ---- -9 34 7 query I rowsort SELECT DISTINCT col2 * + col1 * col0 - + col2 AS col1 FROM tab1 ---- 36423 4158 99744 query I rowsort SELECT DISTINCT tab2.col2 - col2 FROM tab2 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1098 SELECT DISTINCT - col1 DIV - tab1.col1 - - col2 col0 FROM tab1 ---- 55 58 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1098 SELECT DISTINCT - col1 / - tab1.col1 - - col2 col0 FROM tab1 ---- 55 58 97 query I rowsort SELECT + col2 * + col1 AS col0 FROM tab2 ---- 1534 646 837 query I rowsort SELECT + tab2.col2 - + col0 FROM tab2 ---- -41 -52 20 query I rowsort SELECT col1 * - col1 - col2 AS col0 FROM tab0 ---- -7429 -8363 -9410 query I rowsort SELECT tab0.col2 + col2 AS col0 FROM tab0 ---- 164 2 66 query I rowsort SELECT ALL + 59 * + col2 * col1 FROM tab2 AS cor0 ---- 38114 49383 90506 query I rowsort SELECT + col2 + col2 AS col1 FROM tab1 cor0 ---- 108 114 192 query I rowsort SELECT DISTINCT - + col2 + + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 2862 3192 9120 query I rowsort SELECT - col2 * col1 - + 40 AS col0 FROM tab1 AS cor0 ---- -1288 -1444 -610 query I rowsort SELECT - - col0 - - col0 AS col2 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT + col1 + col0 * - 16 FROM tab1 AS cor0 ---- -1014 -1267 -22 query I rowsort SELECT - col0 + - col2 * - 50 * col0 AS col2 FROM tab2 AS cor0 ---- 101322 150021 9443 query I rowsort SELECT - col0 + col2 * col2 AS col2 FROM tab0 ---- -34 1065 6635 query I rowsort SELECT DISTINCT col2 FROM tab0 WHERE NULL >= col1 ---- query I rowsort SELECT DISTINCT col2 * col2 + col1 FROM tab0 ---- 1175 6815 98 query I rowsort SELECT ALL tab0.col2 - tab0.col0 AS col1 FROM tab0 ---- -34 -7 9 onlyif mysql # use DIV operator for integer division query I rowsort label-1114 SELECT DISTINCT - col0 DIV + col0 AS col0 FROM tab2 ---- -1 skipif mysql # not compatible query I rowsort label-1114 SELECT DISTINCT - col0 / + col0 AS col0 FROM tab2 ---- -1 query I rowsort SELECT - col1 * - tab1.col0 + col1 * + col0 FROM tab1 WHERE - col2 - col0 <> - col2 ---- 1280 156 2080 query I rowsort SELECT ALL col0 + + tab0.col0 FROM tab0 WHERE NULL IN ( tab0.col1 * col0 * + col0 ) ---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col1 + - col1 ) ---- query I rowsort SELECT col0 + + tab2.col0 AS col0 FROM tab2 ---- 14 156 158 query I rowsort SELECT ALL col0 - col2 AS col2 FROM tab0 ---- -9 34 7 query I rowsort SELECT ALL - col2 + - col2 FROM tab0 ---- -164 -2 -66 query I rowsort SELECT DISTINCT + 15 + + tab0.col0 * - ( col2 ) FROM tab0 ---- -20 -7283 -777 query I rowsort SELECT 78 AS col2 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to d8e5ef4db3419fc251e82c50ba04e048 query I rowsort SELECT 23 + + col1 + + 63 AS col0 FROM tab2 ---- 103 117 145 query I rowsort SELECT ALL - ( col0 ) * + tab1.col2 + col2 FROM tab1 ---- -108 -3591 -7584 onlyif mysql # use DIV operator for integer division query I rowsort label-1125 SELECT DISTINCT + 24 DIV col1 + + col1 FROM tab1 ---- 12 14 26 skipif mysql # not compatible query I rowsort label-1125 SELECT DISTINCT + 24 / col1 + + col1 FROM tab1 ---- 12 14 26 query I rowsort SELECT - + col2 + - col2 * cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1482 -702 -756 query I rowsort SELECT ALL col1 * cor0.col2 AS col0 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-1128 SELECT DISTINCT - + col2 + + col0 DIV - cor0.col1 FROM tab2 AS cor0 ---- -27 -42 skipif mysql # not compatible query I rowsort label-1128 SELECT DISTINCT - + col2 + + col0 / - cor0.col1 FROM tab2 AS cor0 ---- -27 -42 query I rowsort SELECT ALL + cor0.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT ALL + 49 + - col1 * + 93 * - col2 AS col0 FROM tab2 AS cor0 ---- 142711 60127 77890 query I rowsort SELECT ALL - 8 + - col2 AS col0 FROM tab2 ---- -34 -35 -46 query I rowsort SELECT ALL 7 + col1 FROM tab2 ---- 24 38 66 query I rowsort SELECT ALL tab1.col0 * - ( 61 ) FROM tab1, tab1 cor0 ---- 9 values hashing to c792bd96b6665050f0d569a6a2b825c2 query I rowsort SELECT + col2 + col1 FROM tab2 WHERE NOT + col0 / col0 IN ( - col1 + tab2.col2 ) ---- 55 58 85 query I rowsort SELECT + col0 * - col2 AS col1 FROM tab1 ---- -162 -3648 -7680 query III rowsort SELECT * FROM tab0 WHERE col1 IN ( - tab0.col2 * col0 + col0 * + col1 * tab0.col0 ) ---- query I rowsort SELECT col2 + - col1 + col0 FROM tab2 ---- 100 3 45 query I rowsort SELECT col1 + + col1 - tab2.col0 FROM tab2 ---- -45 40 55 query III rowsort SELECT ALL * FROM tab2 WHERE ( NULL ) > NULL ---- query I rowsort SELECT tab0.col1 + - col0 AS col1 FROM tab0 ---- 2 62 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + + col0 * - col1 col1 FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT - col2 * col0 FROM tab2 WHERE NULL = NULL ---- query I rowsort SELECT tab0.col0 * col1 FROM tab0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - col1 col2 FROM tab2 ---- -24 19 62 query I rowsort SELECT + col1 + + col0 * + col2 AS col1 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT ALL col2 * - col1 + + col1 AS col1 FROM tab0 WHERE ( - col1 * - col1 ) NOT IN ( - col2 ) ---- -2752 -7371 0 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= + col1 ---- query I rowsort SELECT 2 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 535345c50a19fdab97ce05d1837b1f09 query I rowsort SELECT ALL - col1 * cor0.col2 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - col1 * - cor0.col1 + + cor0.col0 FROM tab0 AS cor0 ---- 7420 8370 9444 query I rowsort SELECT 10 AS col0 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176 query I rowsort SELECT + + col0 - ( + ( - cor0.col0 ) ) * - col1 * col2 AS col2 FROM tab1 AS cor0 ---- -36416 -4209 -99760 query I rowsort SELECT col1 + 94 AS col0 FROM tab2 AS cor0 ---- 111 125 153 query I rowsort SELECT DISTINCT 59 + + col1 FROM tab0 ---- 145 150 156 query I rowsort SELECT DISTINCT col2 * col1 + - col2 * + col2 AS col2 FROM tab2 ---- -798 108 858 query I rowsort SELECT ALL - col2 + - col2 * + ( col1 ) AS col2 FROM tab0 ---- -2871 -7544 -98 query I rowsort SELECT + - 12 + - col1 * - cor0.col1 FROM tab0 AS cor0 ---- 7384 8269 9397 query I rowsort SELECT 94 + + cor0.col1 FROM tab2 AS cor0 ---- 111 125 153 query I rowsort SELECT - + ( + cor0.col2 ) FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT ALL col0 + 70 FROM tab0 AS cor0 ---- 105 159 94 onlyif mysql # use DIV operator for integer division query I rowsort label-1161 SELECT DISTINCT + - col2 + cor0.col2 DIV - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-1161 SELECT DISTINCT + - col2 + cor0.col2 / - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT ALL + col2 + ( + col0 + cor0.col0 ) * col2 FROM tab2 AS cor0 ---- 405 4082 6042 query I rowsort SELECT - + 79 AS col1 FROM tab0 cor0 ---- -79 -79 -79 query I rowsort SELECT DISTINCT - - cor0.col2 + ( cor0.col0 ) FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT - - cor0.col2 * col0 + + col1 + - col0 AS col0 FROM tab2 cor0 ---- 2009 213 2940 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1166 SELECT CAST( NULL AS DECIMAL ) * tab0.col0 AS col1 FROM tab0, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1166 SELECT CAST ( NULL AS REAL ) * tab0.col0 AS col1 FROM tab0, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT col1 + - 85 FROM tab1 ---- -59 -72 -75 query I rowsort SELECT ALL col2 * ( col0 ) FROM tab1 ---- 162 3648 7680 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2 ---- 3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455 query I rowsort SELECT DISTINCT - + ( cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT + ( - 19 ) * + col0 AS col2 FROM tab0 AS cor0 ---- -1691 -456 -665 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 99 col1 FROM tab2 AS cor0 ---- 99 99 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( 28 ) col0 FROM tab0 AS cor0 ---- 28 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * - col1 col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL 36 * 84 FROM tab0 AS cor0 ---- 3024 3024 3024 query I rowsort SELECT ALL - col1 * + col2 * col0 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab2 AS cor0, tab1, tab2 cor1 ---- 972 values hashing to bcf430f79386b43bc4077271fcd15cf0 onlyif mysql # use DIV operator for integer division query I rowsort label-1178 SELECT ALL 45 + cor0.col1 * col0 DIV col0 col1 FROM tab0 AS cor0 ---- 131 136 142 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1178 SELECT ALL 45 + cor0.col1 * col0 / col0 col1 FROM tab0 AS cor0 ---- 131 136 142 query I rowsort SELECT DISTINCT + ( col0 ) AS col1 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT DISTINCT + - col0 + col1 * - col1 AS col1 FROM tab2 AS cor0 ---- -3559 -368 -968 query I rowsort SELECT DISTINCT col2 * + col2 AS col1 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT + - cor0.col0 * col1 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT - ( - col1 ) * + col2 AS col0 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL - 12 * 61 AS col2 FROM tab1 ---- -732 -732 -732 onlyif mysql # use DIV operator for integer division query I rowsort label-1185 SELECT ALL + ( 48 + col0 ) DIV - col0 col2 FROM tab0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1185 SELECT ALL + ( 48 + col0 ) / - col0 col2 FROM tab0 ---- -1 -2 -3 query I rowsort SELECT DISTINCT + 2 AS col2 FROM tab0 ---- 2 query I rowsort SELECT DISTINCT + 90 FROM tab1 ---- 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT col0 + cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- 1422 224 4680 onlyif mysql # use DIV operator for integer division query I rowsort label-1190 SELECT - col0 DIV - ( 92 * + col0 ) + cor0.col0 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-1190 SELECT - col0 / - ( 92 * + col0 ) + cor0.col0 FROM tab2 AS cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col1 + + col2 col1 FROM tab1 AS cor0 ---- 157 265 730 query I rowsort SELECT cor0.col0 + + 69 * + cor0.col2 AS col1 FROM tab1 cor0 ---- 3729 3997 6704 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1193 SELECT - CAST( NULL AS SIGNED ) * cor0.col2 + - cor0.col2 / col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1193 SELECT - CAST ( NULL AS INTEGER ) * cor0.col2 + - cor0.col2 / col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( col1 ) * col1 * cor0.col1 AS col2 FROM tab1 cor0 ---- -1000 -17576 -2197 query I rowsort SELECT 75 AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to 22042bfd4d787415457a42bb93d48eea onlyif mysql # use DIV operator for integer division query I rowsort label-1196 SELECT ALL - ( - col0 ) DIV col0 + - col2 * col2 + col0 DIV col0 FROM tab1 ---- -2914 -3247 -9214 skipif mysql # not compatible query I rowsort label-1196 SELECT ALL - ( - col0 ) / col0 + - col2 * col2 + col0 / col0 FROM tab1 ---- -2914 -3247 -9214 query I rowsort SELECT ALL ( 85 ) * col1 * col0 + + tab1.col1 AS col0 FROM tab1 ---- 54410 6656 88413 query I rowsort SELECT DISTINCT + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 24 35 89 query I rowsort SELECT - 31 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa query I rowsort SELECT - + cor0.col1 + - col0 AS col0 FROM tab2 AS cor0 ---- -137 -38 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-1201 SELECT + col2 DIV 89 - col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-1201 SELECT + col2 / 89 - col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT + - col1 + - ( + col2 ) * col0 FROM tab0 AS cor0 ---- -132 -7389 -878 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1203 SELECT - + CAST( col0 AS SIGNED ) + + col2 * cor0.col1 + - col0 AS col1 FROM tab0 AS cor0 ---- 27 2790 7284 skipif mysql # not compatible query I rowsort label-1203 SELECT - + CAST ( col0 AS INTEGER ) + + col2 * cor0.col1 + - col0 AS col1 FROM tab0 AS cor0 ---- 27 2790 7284 query I rowsort SELECT 2 + col2 - - col2 * 50 FROM tab2 AS cor0 ---- 1328 1379 1940 query I rowsort SELECT DISTINCT - + 20 * col1 + + col2 AS col2 FROM tab0 AS cor0 ---- -1687 -1738 -1939 query I rowsort SELECT + ( - 81 ) + + col2 * - 48 AS col0 FROM tab1 AS cor0 ---- -2673 -2817 -4689 query I rowsort SELECT ALL 56 + + cor0.col0 + - col1 * col2 FROM tab0 AS cor0 ---- -2758 -6 -7317 onlyif mysql # use DIV operator for integer division query I rowsort label-1208 SELECT ALL + - col0 DIV 17 AS col1 FROM tab0 AS cor0 ---- -1 -2 -5 skipif mysql # not compatible query I rowsort label-1208 SELECT ALL + - col0 / 17 AS col1 FROM tab0 AS cor0 ---- -1 -2 -5 query I rowsort SELECT + - col0 + + 16 AS col1 FROM tab1 cor0 ---- -48 -64 13 query I rowsort SELECT DISTINCT ( col0 ) * col0 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT ALL - 75 * col0 + + cor0.col0 + 4 FROM tab1 AS cor0 ---- -218 -4732 -5916 query I rowsort SELECT + 39 * col1 + col1 + + col1 * + col0 FROM tab0 AS cor0 ---- 11739 5504 7275 query I rowsort SELECT ALL + cor0.col0 + col0 * col1 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT - col0 - - col0 AS col2 FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1215 SELECT ( - col0 ) * - CAST( - ( - tab2.col2 ) AS SIGNED ) * + col1 + col2 DIV - col1 FROM tab2 ---- 119652 51032 5859 skipif mysql # not compatible query I rowsort label-1215 SELECT ( - col0 ) * - CAST ( - ( - tab2.col2 ) AS INTEGER ) * + col1 + col2 / - col1 FROM tab2 ---- 119652 51032 5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( - col1 * 95 ) col0 FROM tab0 ---- -8170 -8645 -9215 query I rowsort SELECT + col2 * col2 AS col2 FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT 8 * + cor0.col1 FROM tab2 AS cor0 ---- 136 248 472 query I rowsort SELECT DISTINCT - - col2 * + col0 * - col2 AS col2 FROM tab0 AS cor0 ---- -26136 -35 -598436 query I rowsort SELECT DISTINCT 52 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1 ---- 52 query I rowsort SELECT DISTINCT - - 54 * - cor0.col1 FROM tab0 AS cor0 ---- -4644 -4914 -5238 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * cor0.col1 col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - 51 + + col0 AS col0 FROM tab2 AS cor0 ---- -44 27 28 query I rowsort SELECT + 4 AS col1 FROM tab1 cor0 ---- 4 4 4 query I rowsort SELECT DISTINCT - - cor0.col1 * col0 + col1 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT ALL - - cor0.col1 + 8 * + col2 FROM tab0 AS cor0 ---- 105 350 747 query I rowsort SELECT DISTINCT + col0 + + cor0.col1 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1228 SELECT DISTINCT col1 * CAST( col1 AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0 ---- 164 249 679 skipif mysql # not compatible query I rowsort label-1228 SELECT DISTINCT col1 * CAST ( col1 AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT - + cor0.col2 * - 46 AS col1 FROM tab0 AS cor0 ---- 1518 3772 46 query I rowsort SELECT + + col0 + - 21 * + col0 FROM tab0 AS cor0 ---- -1780 -480 -700 query I rowsort SELECT ALL + - col0 + col1 * cor0.col2 FROM tab2 AS cor0 ---- 1456 567 830 onlyif mysql # use DIV operator for integer division query I rowsort label-1232 SELECT DISTINCT + - col1 DIV ( cor0.col0 ) + col2 * cor0.col1 FROM tab0 AS cor0 ---- 2835 7461 95 skipif mysql # not compatible query I rowsort label-1232 SELECT DISTINCT + - col1 / ( cor0.col0 ) + col2 * cor0.col1 FROM tab0 AS cor0 ---- 2835 7461 95 query I rowsort SELECT - cor0.col1 * - 16 AS col0 FROM tab2 cor0 ---- 272 496 944 query I rowsort SELECT ALL + tab1.col0 * col0 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT tab1.col2 * + 69 FROM tab1, tab1 AS cor0 ---- 9 values hashing to b3ca073f7dfc7033ccbb2e2cf6ac7ec6 query I rowsort SELECT DISTINCT - 17 * + col2 * + ( + col1 + - col2 ) AS col1 FROM tab1 ---- 135456 25704 45543 query I rowsort SELECT DISTINCT - - col1 * 93 AS col1 FROM tab0 cor0 ---- 7998 8463 9021 onlyif mysql # use DIV operator for integer division query I rowsort label-1238 SELECT ALL + col1 DIV col0 AS col2 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-1238 SELECT ALL + col1 / col0 AS col2 FROM tab1 AS cor0 ---- 0 0 8 query I rowsort SELECT ALL + cor0.col0 * - col0 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT - + col1 * - col0 * + col1 FROM tab0 cor0 ---- 177504 329315 737009 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 95 col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 query I rowsort SELECT cor0.col1 + + 72 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 5ba838030ac7b5fe57f73a94945e4873 query I rowsort SELECT + col1 * cor0.col2 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT + - col0 * - 79 FROM tab2 AS cor0 ---- 553 6162 6241 query I rowsort SELECT + + 45 + col1 * - col1 FROM tab1 AS cor0 ---- -124 -55 -631 onlyif mysql # use DIV operator for integer division query I rowsort label-1246 SELECT - col2 DIV - col0 + + col0 DIV - col0 FROM tab2 ---- -1 -1 2 skipif mysql # not compatible query I rowsort label-1246 SELECT - col2 / - col0 + + col0 / - col0 FROM tab2 ---- -1 -1 2 query I rowsort SELECT + col2 * - ( col1 ) + + col0 AS col1 FROM tab2 ---- -1456 -567 -830 query I rowsort SELECT - col2 + 17 FROM tab1 ---- -37 -40 -79 query I rowsort SELECT + - col1 * col1 + + cor0.col0 FROM tab1 AS cor0 ---- -36 -673 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-1250 SELECT ALL + cor0.col0 DIV - col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1250 SELECT ALL + cor0.col0 / - col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + 39 FROM tab1, tab1 cor0 ---- 9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf query I rowsort SELECT + 69 AS col2 FROM tab2, tab0, tab1 cor0 ---- 27 values hashing to 2810c3097fe4771e273cfff903357b40 query I rowsort SELECT DISTINCT - 50 + - col0 AS col1 FROM tab1 AS cor0 ---- -114 -130 -53 query I rowsort SELECT + ( + col0 ) * - 14 AS col1 FROM tab2 AS cor0 ---- -1092 -1106 -98 onlyif mysql # use DIV operator for integer division query I rowsort label-1255 SELECT DISTINCT - 51 DIV - cor0.col0 AS col0 FROM tab1 AS cor0 ---- 0 17 skipif mysql # not compatible query I rowsort label-1255 SELECT DISTINCT - 51 / - cor0.col0 AS col0 FROM tab1 AS cor0 ---- 0 17 query I rowsort SELECT - - cor0.col1 + - col1 * col1 FROM tab1 AS cor0 ---- -156 -650 -90 query I rowsort SELECT - col2 * col2 * cor0.col0 FROM tab2 AS cor0 ---- -114076 -5103 -52728 onlyif mysql # use DIV operator for integer division query I rowsort label-1258 SELECT 49 + + tab1.col0 DIV col1 + + 70 DIV + col1 FROM tab1 ---- 51 60 62 skipif mysql # not compatible query I rowsort label-1258 SELECT 49 + + tab1.col0 / col1 + + 70 / + col1 FROM tab1 ---- 51 60 62 onlyif mysql # use DIV operator for integer division query I rowsort label-1259 SELECT ( + tab0.col1 ) DIV + col2 + col1 * + tab0.col2 AS col2 FROM tab0 ---- 194 2840 7463 skipif mysql # not compatible query I rowsort label-1259 SELECT ( + tab0.col1 ) / + col2 + col1 * + tab0.col2 AS col2 FROM tab0 ---- 194 2840 7463 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1 ---- 972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7 query I rowsort SELECT DISTINCT + - 27 + - col2 AS col2 FROM tab1 AS cor0 ---- -123 -81 -84 query I rowsort SELECT DISTINCT cor0.col1 * - col2 AS col0 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL + col2 + col2 * cor0.col2 * col2 FROM tab1 AS cor0 ---- 157518 185250 884832 query I rowsort SELECT + cor0.col0 + col1 AS col0 FROM tab0 AS cor0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + + cor0.col1 * 45 col2 FROM tab1 AS cor0 ---- 1116 393 489 query I rowsort SELECT ALL ( col2 ) * 73 AS col0 FROM tab0 AS cor0 ---- 2409 5986 73 query I rowsort SELECT ALL - col2 * + col0 - - col2 AS col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT DISTINCT - + cor0.col0 AS col0 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - col1 * + cor0.col1 FROM tab1 cor0 ---- -100 -169 -676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 4 col2 FROM tab1 ---- 4 4 4 query I rowsort SELECT ALL - 22 - cor0.col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 753805ee6fc23b1a9bcf19d843e5eaac onlyif mysql # use DIV operator for integer division query I rowsort label-1272 SELECT - 9 DIV ( + col0 ) AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1272 SELECT - 9 / ( + col0 ) AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 + + 52 * - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -1692 -17 -4175 query I rowsort SELECT DISTINCT 90 AS col0 FROM tab1, tab2, tab0 AS cor0, tab0 ---- 90 query I rowsort SELECT ( - col0 ) + col2 AS col2 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT DISTINCT - col2 + + col2 * - col2 FROM tab0 AS cor0 ---- -1122 -2 -6806 onlyif mysql # use DIV operator for integer division query I rowsort label-1277 SELECT DISTINCT + col2 + + col2 DIV + col1 AS col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-1277 SELECT DISTINCT + col2 + + col2 / + col1 AS col2 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-1278 SELECT col1 + col1 DIV col1 AS col2 FROM tab1 cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-1278 SELECT col1 + col1 / col1 AS col2 FROM tab1 cor0 ---- 11 14 27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 23 * - col1 col1 FROM tab2 AS cor0 ---- -1357 -391 -713 query I rowsort SELECT + 30 + col0 * - col2 FROM tab2 AS cor0 ---- -159 -1998 -2972 query I rowsort SELECT + col0 + tab2.col0 * + col0 FROM tab2 ---- 56 6162 6320 query I rowsort SELECT 55 + + col0 FROM tab0 AS cor0 ---- 144 79 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1283 SELECT ALL - col1 - - CAST( cor0.col0 AS SIGNED ) col0 FROM tab0 AS cor0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1283 SELECT ALL - col1 - - CAST ( cor0.col0 AS INTEGER ) col0 FROM tab0 AS cor0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col1 + col2 + + col1 col2 FROM tab2 AS cor0 ---- 1398 275 4687 query I rowsort SELECT DISTINCT + cor0.col1 + - ( + ( - col1 ) ) FROM tab1 AS cor0 ---- 20 26 52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1286 SELECT ALL col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1286 SELECT ALL col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 * + 22 + + col1 FROM tab2 AS cor0 ---- 1357 391 713 query I rowsort SELECT DISTINCT + - col1 + col2 * col2 * col0 FROM tab1 AS cor0 ---- 207926 737267 8722 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1289 SELECT - col0 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1289 SELECT - col0 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * col0 * col1 + + col1 col1 FROM tab0 AS cor0 ---- -3298 -664027 -68026 query I rowsort SELECT DISTINCT - - col1 + col1 AS col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT - + cor0.col2 + 24 AS col2 FROM tab2 AS cor0 ---- -14 -2 -3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1293 SELECT + col1 * + CAST( NULL AS SIGNED ) + 55 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1293 SELECT + col1 * + CAST ( NULL AS INTEGER ) + 55 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + col1 + col1 * col1 AS col0 FROM tab2 AS cor0 ---- 272 3422 930 query I rowsort SELECT + - col0 * col0 + ( col2 * col1 ) FROM tab2 AS cor0 ---- -4550 -5595 788 onlyif mysql # use DIV operator for integer division query I rowsort label-1296 SELECT DISTINCT col2 DIV - col2 + 28 * + col0 FROM tab0 ---- 2491 671 979 skipif mysql # not compatible query I rowsort label-1296 SELECT DISTINCT col2 / - col2 + 28 * + col0 FROM tab0 ---- 2491 671 979 query I rowsort SELECT ALL cor0.col1 - col1 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1298 SELECT - + col1 + - CAST( + 86 AS SIGNED ) * cor0.col0 AS col1 FROM tab1 AS cor0 ---- -284 -5514 -6893 skipif mysql # not compatible query I rowsort label-1298 SELECT - + col1 + - CAST ( + 86 AS INTEGER ) * cor0.col0 AS col1 FROM tab1 AS cor0 ---- -284 -5514 -6893 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab0 AS cor2 ---- 3645 values hashing to 8e88b3a69c24fc01553b0c32bf7748d0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1300 SELECT - CAST( 3 AS SIGNED ) + col0 * + 87 AS col2 FROM tab2 AS cor0 ---- 606 6783 6870 skipif mysql # not compatible query I rowsort label-1300 SELECT - CAST ( 3 AS INTEGER ) + col0 * + 87 AS col2 FROM tab2 AS cor0 ---- 606 6783 6870 query I rowsort SELECT + 17 * col2 FROM tab2 AS cor0 ---- 442 459 646 query I rowsort SELECT cor0.col1 + col0 * col2 AS col1 FROM tab1 AS cor0 ---- 188 3658 7693 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + col1 col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - - 70 FROM tab1 AS cor0 ---- 70 70 70 query I rowsort SELECT tab0.col0 * tab0.col0 FROM tab0 ---- 1225 576 7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 74 col1 FROM tab1, tab2 AS cor0 ---- -74 query I rowsort SELECT + - 65 AS col0 FROM tab1 AS cor0 ---- -65 -65 -65 query I rowsort SELECT + 98 + + col1 FROM tab1 AS cor0 ---- 108 111 124 query I rowsort SELECT + - 67 FROM tab2 AS cor0 ---- -67 -67 -67 query I rowsort SELECT + - col0 * - col0 AS col0 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT ALL tab0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query IIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 cor2 ---- 972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * 23 col1 FROM tab2 AS cor0 ---- -598 -621 -874 query I rowsort SELECT + cor0.col0 * cor0.col2 - - 84 AS col1 FROM tab1 AS cor0 ---- 246 3732 7764 query I rowsort SELECT - cor0.col2 * - 27 + col1 FROM tab1 AS cor0 ---- 1484 1549 2605 query I rowsort SELECT DISTINCT - - 31 + col0 * 10 * + 2 + col1 AS col2 FROM tab2 AS cor0 ---- 1628 1650 202 query I rowsort SELECT + cor0.col2 * + col0 * + col1 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT ALL + ( col1 ) + + 35 AS col1 FROM tab0 AS cor0 ---- 121 126 132 onlyif mysql # use DIV operator for integer division query I rowsort label-1319 SELECT ALL - col2 * col2 - - cor0.col0 DIV 86 FROM tab0 AS cor0 ---- -1 -1089 -6723 skipif mysql # not compatible query I rowsort label-1319 SELECT ALL - col2 * col2 - - cor0.col0 / 86 FROM tab0 AS cor0 ---- -1 -1089 -6723 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 93 + col1 col1 FROM tab2 cor0 ---- 110 124 152 query I rowsort SELECT ALL + 69 + col1 - 32 FROM tab2 AS cor0 ---- 54 68 96 query I rowsort SELECT + + col2 + + col2 AS col0 FROM tab0 cor0 ---- 164 2 66 query I rowsort SELECT DISTINCT - col0 + + col1 AS col0 FROM tab2 cor0 ---- -19 -62 24 query I rowsort SELECT ALL - col0 + col2 + 56 FROM tab0 AS cor0 ---- 22 49 65 query I rowsort SELECT + 97 * + col1 AS col0 FROM tab0 cor0 ---- 8342 8827 9409 query I rowsort SELECT - col1 + - col2 * col2 FROM tab2 AS cor0 ---- -1461 -735 -760 query I rowsort SELECT ALL + cor0.col1 * - cor0.col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT - col0 * + col0 * 59 + + col2 AS col0 FROM tab0 ---- -33951 -467257 -72274 query I rowsort SELECT ALL tab2.col2 - + col0 AS col2 FROM tab2 ---- -41 -52 20 query I rowsort SELECT 33 + col1 * col1 AS col2 FROM tab0 cor0 ---- 7429 8314 9442 query I rowsort SELECT DISTINCT - 86 * + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -2064 -3010 -7654 query I rowsort SELECT DISTINCT + - ( col2 ) * + cor0.col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL + cor0.col0 * col1 AS col2 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - + col1 * 38 AS col2 FROM tab2 AS cor0 ---- -1178 -2242 -646 query I rowsort SELECT - 44 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2 query I rowsort SELECT - col0 * col1 + col0 FROM tab2 cor0 ---- -1264 -210 -4524 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1337 SELECT ALL + col2 + CAST( + 65 AS SIGNED ) * col1 * - col1 + - col2 col2 FROM tab0 ---- -480740 -538265 -611585 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1337 SELECT ALL + col2 + CAST ( + 65 AS INTEGER ) * col1 * - col1 + - col2 col2 FROM tab0 ---- -480740 -538265 -611585 query I rowsort SELECT ALL - 51 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 08d3853e39924d3c636260a6dd856837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1339 SELECT ALL tab2.col0 + - CAST( col0 AS SIGNED ) AS col2 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1339 SELECT ALL tab2.col0 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + ( col1 ) ) * + tab2.col0 * - ( col0 + col2 ) col2 FROM tab2 ---- -157131 -478608 -7378 query I rowsort SELECT - ( col1 ) * tab0.col0 + ( 61 ) FROM tab0 ---- -2003 -3334 -8038 query I rowsort SELECT ALL ( + 95 ) AS col1 FROM tab0 ---- 95 95 95 query I rowsort SELECT ALL + - col1 + col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 26 + cor0.col1 * col2 FROM tab2 AS cor0 ---- 1508 620 811 query I rowsort SELECT col2 + + cor0.col1 * col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT + - col0 + 7 * col2 FROM tab0 AS cor0 ---- -28 207 485 query I rowsort SELECT ALL - ( col0 ) * col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - 45 * + col2 FROM tab1 ---- -2430 -2565 -4320 query I rowsort SELECT ALL - cor0.col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT DISTINCT ( - col1 ) * - col2 AS col1 FROM tab2 ---- 1534 646 837 query I rowsort SELECT + ( col1 ) + col0 * + col2 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT ALL 61 * 30 * - col2 FROM tab1 AS cor0 ---- -104310 -175680 -98820 query I rowsort SELECT ALL - col1 * + 21 + + col1 FROM tab0 AS cor0 ---- -1720 -1820 -1940 query I rowsort SELECT - col1 * 16 + + cor0.col0 FROM tab1 AS cor0 ---- -128 -413 -96 query I rowsort SELECT DISTINCT + 29 * col0 AS col2 FROM tab1 cor0 ---- 1856 2320 87 query I rowsort SELECT ALL 70 * - 63 + + col2 FROM tab1 AS cor0 ---- -4314 -4353 -4356 query I rowsort SELECT col2 + col1 AS col1 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT 48 AS col2 FROM tab1 AS cor0 ---- 48 48 48 query I rowsort SELECT DISTINCT + col2 + + col1 + col0 * + ( col2 * - col1 ) AS col1 FROM tab2 AS cor0 ---- -119567 -50979 -5801 query I rowsort SELECT ALL + col1 * col1 * col2 AS col1 FROM tab2 AS cor0 ---- 10982 25947 90506 onlyif mysql # use DIV operator for integer division query I rowsort label-1361 SELECT DISTINCT - - col0 DIV 5 AS col2 FROM tab1 cor0 ---- 0 12 16 skipif mysql # not compatible query I rowsort label-1361 SELECT DISTINCT - - col0 / 5 AS col2 FROM tab1 cor0 ---- 0 12 16 query I rowsort SELECT ALL - 21 * col0 AS col1 FROM tab1 AS cor0 ---- -1344 -1680 -63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + col1 col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT - cor1.col0 FROM tab0, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT ALL - col2 + 22 FROM tab2 cor0 ---- -16 -4 -5 query I rowsort SELECT 52 * 71 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to a13c2cc29505017d714bc4cb9a1ed8e1 query I rowsort SELECT DISTINCT - + cor0.col1 * col1 + 89 * col1 FROM tab1 AS cor0 ---- 1638 790 988 query I rowsort SELECT ALL 30 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 6c98840ed134c765d56389f4150075f0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * col1 + col2 * - col0 col1 FROM tab0 ---- 1272 3360 801 onlyif mysql # use DIV operator for integer division query I rowsort label-1370 SELECT - col1 DIV + 82 + col2 col1 FROM tab1 AS cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1370 SELECT - col1 / + 82 + col2 col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT - col0 * + cor0.col0 - 20 * col0 FROM tab2 AS cor0 ---- -189 -7644 -7821 onlyif mysql # use DIV operator for integer division query I rowsort label-1372 SELECT DISTINCT - col2 * col0 - - cor0.col1 DIV - cor0.col1 col1 FROM tab0 AS cor0 ---- -36 -7299 -793 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1372 SELECT DISTINCT - col2 * col0 - - cor0.col1 / - cor0.col1 col1 FROM tab0 AS cor0 ---- -36 -7299 -793 query I rowsort SELECT ALL + - cor0.col1 - col0 FROM tab1 cor0 ---- -29 -74 -93 query I rowsort SELECT col1 + - ( col1 ) AS col2 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1375 SELECT ALL - col0 + - 92 DIV - col0 col1 FROM tab0 AS cor0 ---- -21 -33 -88 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1375 SELECT ALL - col0 + - 92 / - col0 col1 FROM tab0 AS cor0 ---- -21 -33 -88 query I rowsort SELECT ALL - cor0.col2 + - 70 AS col2 FROM tab2 AS cor0 ---- -108 -96 -97 query I rowsort SELECT DISTINCT - + col2 - cor0.col2 * + col2 FROM tab0 AS cor0 ---- -1122 -2 -6806 query I rowsort SELECT DISTINCT col1 + - ( + col0 ) * col1 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT + col0 + 95 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 130 3159 7879 query I rowsort SELECT - - col1 * 2 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT col1 * + 89 * tab2.col1 + + tab2.col0 AS col0 FROM tab2 ---- 25800 309887 85536 onlyif mysql # use DIV operator for integer division query I rowsort label-1382 SELECT DISTINCT - ( ( - cor0.col2 ) ) + - 48 DIV + tab1.col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 9115b037c95ff1a62729a222a459e792 skipif mysql # not compatible query I rowsort label-1382 SELECT DISTINCT - ( ( - cor0.col2 ) ) + - 48 / + tab1.col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 9115b037c95ff1a62729a222a459e792 query I rowsort SELECT + col0 + col0 - col2 AS col2 FROM tab0 ---- 15 69 96 query I rowsort SELECT ALL + ( cor0.col0 ) + col0 * cor0.col1 FROM tab1 AS cor0 ---- 1120 704 81 onlyif mysql # use DIV operator for integer division query I rowsort label-1385 SELECT - col2 * col2 DIV - col2 + - col1 FROM tab0 AS cor0 ---- -53 -9 -96 skipif mysql # not compatible query I rowsort label-1385 SELECT - col2 * col2 / - col2 + - col1 FROM tab0 AS cor0 ---- -53 -9 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-1386 SELECT - - col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-1386 SELECT - - col1 / cor0.col0 AS col0 FROM tab1 AS cor0 ---- 0 0 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1387 SELECT ALL - CAST( - col2 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-1387 SELECT ALL - CAST ( - col2 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT + ( col2 ) * + cor0.col2 FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-1389 SELECT DISTINCT 16 DIV - col0 AS col2 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-1389 SELECT DISTINCT 16 / - col0 AS col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL + - 77 + 89 FROM tab1 AS cor0 ---- 12 12 12 query I rowsort SELECT - - col2 * col2 + col1 * + col1 FROM tab0 AS cor0 ---- 15005 8485 9410 skipif mysql # not compatible query I rowsort SELECT DISTINCT + - CAST ( - col0 AS REAL ) AS col1 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-1393 SELECT DISTINCT + col2 * 8 + + col0 DIV - col1 AS col1 FROM tab2 ---- 207 216 300 skipif mysql # not compatible query I rowsort label-1393 SELECT DISTINCT + col2 * 8 + + col0 / - col1 AS col1 FROM tab2 ---- 207 216 300 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1394 SELECT col1 + + CAST( col0 AS SIGNED ) + + col2 AS col2 FROM tab1 ---- 131 189 83 skipif mysql # not compatible query I rowsort label-1394 SELECT col1 + + CAST ( col0 AS INTEGER ) + + col2 AS col2 FROM tab1 ---- 131 189 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1395 SELECT col0 + CAST( col0 AS SIGNED ) FROM tab0 ---- 178 48 70 skipif mysql # not compatible query I rowsort label-1395 SELECT col0 + CAST ( col0 AS INTEGER ) FROM tab0 ---- 178 48 70 query I rowsort SELECT + col0 * ( + 33 ) AS col2 FROM tab2 AS cor0 ---- 231 2574 2607 query I rowsort SELECT col0 * col2 + + col0 * 38 FROM tab1 ---- 10720 276 6080 query I rowsort SELECT cor0.col0 FROM tab0, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT - tab1.col1 * - col0 + 36 FROM tab1 ---- 1076 114 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + col1 * + col2 col0 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT ALL + - 70 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 35707a5d99c98b2657c084a50ff1b073 query I rowsort SELECT + col0 + 87 AS col2 FROM tab0 AS cor0 ---- 111 122 176 query I rowsort SELECT - col0 + ( - ( + cor0.col0 ) ) * ( cor0.col1 + - cor0.col2 ) AS col1 FROM tab2 cor0 ---- -2652 -35 1580 query I rowsort SELECT DISTINCT + 80 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 cor2 ---- 80 query I rowsort SELECT ALL 43 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 199105619049271147956de52e7f5ed4 query I rowsort SELECT ALL col2 - col1 FROM tab2 AS cor0 ---- -33 -4 21 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1407 SELECT ALL ( + col1 + + tab0.col2 ) * - CAST( NULL AS SIGNED ) col0 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1407 SELECT ALL ( + col1 + + tab0.col2 ) * - CAST ( NULL AS INTEGER ) col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL - ( 0 ) + col2 * + 47 FROM tab1 ---- 2538 2679 4512 query I rowsort SELECT + col2 * 55 + tab2.col1 * ( 74 ) * col1 FROM tab2 ---- 23476 259024 72599 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1410 SELECT ALL - - ( 49 ) * + col2 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 2643 2729 4624 skipif mysql # not compatible query I rowsort label-1410 SELECT ALL - - ( 49 ) * + col2 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 2643 2729 4624 query I rowsort SELECT ALL - col2 * - col1 * col0 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT + col2 * - col2 AS col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT + col2 + col1 * ( 45 * col0 + - 27 ) AS col1 FROM tab2 AS cor0 ---- 205523 60014 8955 query I rowsort SELECT ALL - + col2 + - col1 * - col2 * + 84 FROM tab2 cor0 ---- 128830 54226 70281 query I rowsort SELECT 62 * 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to a3cd0c222721872271d7e71ac4f2fa00 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1416 SELECT + + col0 + - col0 * - CAST( + 3 * cor0.col1 AS SIGNED ) FROM tab2 AS cor0 ---- 13884 4108 658 skipif mysql # not compatible query I rowsort label-1416 SELECT + + col0 + - col0 * - CAST ( + 3 * cor0.col1 AS INTEGER ) FROM tab2 AS cor0 ---- 13884 4108 658 onlyif mysql # use DIV operator for integer division query I rowsort label-1417 SELECT + - col0 + + col2 DIV col0 - - ( col2 ) FROM tab1 AS cor0 ---- -7 17 69 skipif mysql # not compatible query I rowsort label-1417 SELECT + - col0 + + col2 / col0 - - ( col2 ) FROM tab1 AS cor0 ---- -7 17 69 query I rowsort SELECT - col2 + - col1 + col1 AS col0 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT col0 + 38 + + col2 FROM tab2 ---- 142 155 72 query I rowsort SELECT + col2 + - col1 + - col1 * 94 AS col1 FROM tab1 AS cor0 ---- -1139 -2416 -893 query I rowsort SELECT + col2 * + col2 + col2 AS col0 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT + col1 * tab0.col1 - + ( col0 + - col0 ) FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT col1 * col1 + - col0 + + col1 * tab1.col0 FROM tab1 ---- 1129 676 751 query I rowsort SELECT DISTINCT + tab1.col0 FROM tab1, tab2, tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT ALL 49 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to a40d8754a5be3ce2309c61bfd3e00197 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT DISTINCT col2 - col0 * + CAST ( + col0 + col2 AS REAL ) col0 FROM tab0 ---- -1259 -1335 -15137 query I rowsort SELECT + - 50 + - col1 FROM tab1 AS cor0 ---- -60 -63 -76 onlyif mysql # use DIV operator for integer division query I rowsort label-1428 SELECT DISTINCT col2 * + tab1.col0 DIV + col0 FROM tab1 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-1428 SELECT DISTINCT col2 * + tab1.col0 / + col0 FROM tab1 ---- 54 57 96 query I rowsort SELECT DISTINCT + 43 * 99 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 4257 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1430 SELECT - 65 + col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1430 SELECT - 65 + col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + col0 + + tab1.col0 * 65 FROM tab1 ---- 198 4224 5280 query I rowsort SELECT + - col1 * + col0 + - ( + 0 ) FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT - - ( 12 ) FROM tab1, tab2 AS cor0 ---- 9 values hashing to d4f5a8e032294c3b9342821617800972 onlyif mysql # use DIV operator for integer division query I rowsort label-1434 SELECT - 70 DIV + col2 + - col0 * + cor0.col2 FROM tab1 AS cor0 ---- -163 -3649 -7680 skipif mysql # not compatible query I rowsort label-1434 SELECT - 70 / + col2 + - col0 * + cor0.col2 FROM tab1 AS cor0 ---- -163 -3649 -7680 query I rowsort SELECT + col2 * 3 + col2 + col1 FROM tab1 AS cor0 ---- 238 242 397 query I rowsort SELECT DISTINCT + col2 * cor0.col2 FROM tab1 AS cor0 ---- 2916 3249 9216 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1437 SELECT - col0 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-1437 SELECT - col0 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - col1 * + 92 AS col0 FROM tab2 cor0 ---- -1564 -2852 -5428 onlyif mysql # use DIV operator for integer division query I rowsort label-1439 SELECT - + col1 DIV col1 + col1 AS col1 FROM tab1 AS cor0 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-1439 SELECT - + col1 / col1 + col1 AS col1 FROM tab1 AS cor0 ---- 12 25 9 skipif mysql # not compatible query I rowsort SELECT col1 + CAST ( - 80 * col2 AS REAL ) AS col2 FROM tab0 AS cor0 ---- -2554 -6469 17 query I rowsort SELECT ALL - tab2.col1 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 query I rowsort SELECT DISTINCT col0 + 8 AS col2 FROM tab0 AS cor0 ---- 32 43 97 query I rowsort SELECT - col1 + + 54 AS col0 FROM tab1 AS cor0 ---- 28 41 44 onlyif mysql # use DIV operator for integer division query I rowsort label-1444 SELECT ALL col2 + col0 * col2 DIV col0 AS col1 FROM tab1 AS cor0 ---- 108 114 192 skipif mysql # not compatible query I rowsort label-1444 SELECT ALL col2 + col0 * col2 / col0 AS col1 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT DISTINCT + col0 * ( col1 ) AS col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT + cor0.col1 * 81 + + col2 * + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 10269 4059 5022 query I rowsort SELECT - col2 + - 47 * + col1 FROM tab1 AS cor0 ---- -1276 -527 -707 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 # support for MySQL specific system types and syntax query I rowsort label-1449 SELECT + col2 * - ( + col0 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1449 SELECT + col2 * - ( + col0 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + 4 FROM tab1 AS cor0 ---- 4 4 4 query I rowsort SELECT col0 * col0 + + ( - col2 + col0 ) FROM tab2 ---- 29 6136 6282 query I rowsort SELECT DISTINCT + col0 * 72 FROM tab1 ---- 216 4608 5760 query I rowsort SELECT - + col1 * col2 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL 27 + col1 * - ( - col2 ) FROM tab2 AS cor0 ---- 1561 673 864 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 cor0, tab1, tab0 AS cor1 ---- 972 values hashing to e84152c0bf436177d3b3d80e42832d4f query I rowsort SELECT DISTINCT - col2 + col1 * - col0 FROM tab0 AS cor0 ---- -2097 -3396 -8181 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1457 SELECT ALL + - col1 * + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 skipif mysql # not compatible query I rowsort label-1457 SELECT ALL + - col1 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL + cor0.col1 * col2 + + col2 AS col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT - 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62 query I rowsort SELECT + col0 + 37 AS col2 FROM tab0 AS cor0 ---- 126 61 72 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1461 SELECT - col1 * CAST( + ( col1 ) AS SIGNED ) col0 FROM tab2 AS cor0 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1461 SELECT - col1 * CAST ( + ( col1 ) AS INTEGER ) col0 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT + col2 * - col0 FROM tab1 ---- -162 -3648 -7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1463 SELECT ALL col1 - CAST( NULL AS SIGNED ) / + 19 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1463 SELECT ALL col1 - CAST ( NULL AS INTEGER ) / + 19 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + cor0.col0 * 68 + + 93 * - col2 AS col2 FROM tab0 AS cor0 ---- -13678 -2473 -4701 query I rowsort SELECT col1 * + ( + 36 + col1 ) AS col2 FROM tab2 AS cor0 ---- 2077 5605 901 query I rowsort SELECT ALL + col0 - + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - + col0 + - col0 * - col2 * - col1 AS col0 FROM tab0 AS cor0 ---- -3430 -664207 -68136 onlyif mysql # use DIV operator for integer division query I rowsort label-1468 SELECT + col2 + - ( - cor0.col2 ) DIV col0 FROM tab0 AS cor0 ---- 1 34 82 skipif mysql # not compatible query I rowsort label-1468 SELECT + col2 + - ( - cor0.col2 ) / col0 FROM tab0 AS cor0 ---- 1 34 82 query I rowsort SELECT ALL - col1 + + ( + col1 ) * - col0 AS col0 FROM tab2 AS cor0 ---- -1360 -248 -4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 67 col2 FROM tab0 AS cor0 ---- 67 67 67 query I rowsort SELECT DISTINCT - 96 AS col2 FROM tab1, tab1 AS cor0 ---- -96 query I rowsort SELECT DISTINCT + col2 * 75 FROM tab1 AS cor0 ---- 4050 4275 7200 query I rowsort SELECT 82 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to df00d19f178a708f636b036dcb6c6f87 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1475 SELECT tab0.col1 + + ( cor0.col0 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1475 SELECT tab0.col1 + + ( cor0.col0 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + cor0.col2 + col1 AS col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + col1 * + col0 + col2 * col0 - col2 AS col0 FROM tab2 AS cor0 ---- 379 4307 6604 query I rowsort SELECT col0 + + cor0.col1 * - ( + col0 + + cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- -1171 -1553 -8005 query I rowsort SELECT cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 onlyif mysql # use DIV operator for integer division query I rowsort label-1480 SELECT DISTINCT + col1 * - col0 - cor0.col0 DIV - col1 col0 FROM tab2 cor0 ---- -1339 -217 -4601 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1480 SELECT DISTINCT + col1 * - col0 - cor0.col0 / - col1 col0 FROM tab2 cor0 ---- -1339 -217 -4601 query I rowsort SELECT + col0 * col0 - - 65 * - cor0.col2 FROM tab2 AS cor0 ---- -1706 3771 4394 query I rowsort SELECT ALL - col1 + - col1 AS col1 FROM tab0 AS cor0 ---- -172 -182 -194 query I rowsort SELECT DISTINCT cor0.col2 * 47 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 1551 3854 47 query I rowsort SELECT ALL + tab2.col1 - col1 * + col0 FROM tab2 ---- -1326 -186 -4543 onlyif mysql # use DIV operator for integer division query I rowsort label-1485 SELECT ALL 1 + col0 DIV tab0.col1 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1485 SELECT ALL 1 + col0 / tab0.col1 FROM tab0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-1486 SELECT ALL + col2 + col0 DIV CAST( ( col0 ) AS SIGNED ) FROM tab1 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-1486 SELECT ALL + col2 + col0 / CAST ( ( col0 ) AS INTEGER ) FROM tab1 ---- 55 58 97 query I rowsort SELECT + cor0.col1 AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT + tab2.col1 * col1 FROM tab2 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT col1 * col2 + + col2 + - col1 FROM tab0 cor0 ---- 1 2785 7453 query I rowsort SELECT - col1 * col2 + - cor0.col0 + 17 * - col1 AS col0 FROM tab2 AS cor0 ---- -1014 -1371 -2615 query I rowsort SELECT + ( 77 * cor0.col0 ) AS col1 FROM tab0, tab0 cor0 ---- 9 values hashing to 780f5ba541769c8f3ef3c8c584a78ef8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 92 * + col0 col1 FROM tab1 ---- -276 -5888 -7360 query I rowsort SELECT ALL + 62 FROM tab0 AS cor0 ---- 62 62 62 query I rowsort SELECT ALL col0 + + col0 * col1 FROM tab1 ---- 1120 704 81 query I rowsort SELECT 84 + col0 FROM tab1 ---- 148 164 87 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1497 SELECT + col0 + CAST( col0 AS SIGNED ) AS col1 FROM tab1 ---- 128 160 6 skipif mysql # not compatible query I rowsort label-1497 SELECT + col0 + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 ---- 128 160 6 query I rowsort SELECT 17 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 43298e43365fccb5146ea32003753c92 query I rowsort SELECT DISTINCT + col2 * ( col2 ) AS col1 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT - + col1 + col0 FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT - col2 + - ( col1 ) * cor0.col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT DISTINCT + col1 * ( - col0 + col1 ) AS col2 FROM tab0 ---- 182 5332 6014 onlyif mysql # use DIV operator for integer division query I rowsort label-1503 SELECT col0 DIV 53 + - col1 + col0 col1 FROM tab1 ---- -23 55 68 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1503 SELECT col0 / 53 + - col1 + col0 col1 FROM tab1 ---- -23 55 68 query I rowsort SELECT col2 * ( 70 * col0 ) FROM tab2 ---- 13230 141960 210140 query I rowsort SELECT - col0 * col0 * - col0 AS col2 FROM tab0 AS cor0 ---- 13824 42875 704969 onlyif mysql # use DIV operator for integer division query I rowsort label-1506 SELECT - col0 * col2 DIV + 87 FROM tab2 AS cor0 ---- -2 -23 -34 skipif mysql # not compatible query I rowsort label-1506 SELECT - col0 * col2 / + 87 FROM tab2 AS cor0 ---- -2 -23 -34 query I rowsort SELECT DISTINCT col1 * + ( - 20 + col0 ) AS col2 FROM tab1 cor0 ---- -442 440 780 query I rowsort SELECT - cor0.col1 + cor0.col1 * 11 + + col1 AS col2 FROM tab0 AS cor0 ---- 1001 1067 946 query I rowsort SELECT + + col1 + - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT + col1 * 45 + col0 + - col2 * col1 AS col2 FROM tab0 AS cor0 ---- -3278 1056 4303 query I rowsort SELECT + col2 + 19 * col0 AS col0 FROM tab2 AS cor0 ---- 1508 1539 160 query I rowsort SELECT DISTINCT + + col0 * cor0.col2 AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL - + col1 * 95 AS col0 FROM tab1 AS cor0 ---- -1235 -2470 -950 onlyif mysql # use DIV operator for integer division query I rowsort label-1514 SELECT DISTINCT CAST( col2 AS SIGNED ) DIV tab2.col0 AS col2 FROM tab2 ---- 0 3 skipif mysql # not compatible query I rowsort label-1514 SELECT DISTINCT CAST ( col2 AS INTEGER ) / tab2.col0 AS col2 FROM tab2 ---- 0 3 query I rowsort SELECT 81 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267 query I rowsort SELECT ( 76 ) + col2 AS col0 FROM tab1 ---- 130 133 172 query I rowsort SELECT DISTINCT ( + ( col2 ) ) FROM tab0 ---- 1 33 82 query I rowsort SELECT + col2 + col0 * - col0 FROM tab0 ---- -1224 -543 -7839 query I rowsort SELECT col0 * - col1 + + col0 AS col0 FROM tab2 ---- -1264 -210 -4524 query I rowsort SELECT col2 + 21 FROM tab0 AS cor0 ---- 103 22 54 query I rowsort SELECT DISTINCT + + col0 * + 89 FROM tab1 AS cor0 ---- 267 5696 7120 query I rowsort SELECT ALL + - col1 + - ( cor0.col0 ) + col1 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT + - ( col2 ) + - col2 FROM tab1 AS cor0 ---- -108 -114 -192 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 * col0 * col1 col0 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT - + 5 + + col0 + - col2 AS col1 FROM tab2 AS cor0 ---- -25 36 47 onlyif mysql # use DIV operator for integer division query I rowsort label-1526 SELECT DISTINCT - 21 DIV cor0.col1 FROM tab2 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-1526 SELECT DISTINCT - 21 / cor0.col1 FROM tab2 AS cor0 ---- -1 0 query I rowsort SELECT DISTINCT col0 * - col1 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT 39 + col0 AS col0 FROM tab1 AS cor0 ---- 103 119 42 onlyif mysql # use DIV operator for integer division query I rowsort label-1529 SELECT ALL col2 * cor0.col2 DIV + col0 FROM tab0 cor0 ---- 0 45 75 skipif mysql # not compatible query I rowsort label-1529 SELECT ALL col2 * cor0.col2 / + col0 FROM tab0 cor0 ---- 0 45 75 query I rowsort SELECT DISTINCT - col2 * + col1 * col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT ALL + 71 FROM tab1 AS cor0 ---- 71 71 71 onlyif mysql # use DIV operator for integer division query I rowsort label-1532 SELECT - col2 DIV + col1 - col2 * col1 FROM tab1 AS cor0 ---- -1255 -1406 -575 skipif mysql # not compatible query I rowsort label-1532 SELECT - col2 / + col1 - col2 * col1 FROM tab1 AS cor0 ---- -1255 -1406 -575 query I rowsort SELECT ALL - ( + col2 ) * + cor0.col0 FROM tab0 cor0 ---- -35 -7298 -792 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1534 SELECT ALL - CAST( NULL AS SIGNED ) - 69 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1534 SELECT ALL - CAST ( NULL AS INTEGER ) - 69 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + 16 + + col2 * col1 + col2 FROM tab0 ---- 114 2887 7560 query I rowsort SELECT 61 * - col0 FROM tab0 ---- -1464 -2135 -5429 query I rowsort SELECT DISTINCT + 12 * + col0 - + col2 FROM tab2 ---- 57 910 query I rowsort SELECT 87 * col0 + col2 + col2 AS col1 FROM tab0 ---- 2154 3047 7907 query I rowsort SELECT - col0 * cor0.col1 * cor0.col0 + - col0 + cor0.col2 FROM tab1 AS cor0 ---- -183 -40967 -83184 query I rowsort SELECT DISTINCT 49 * cor0.col0 AS col1 FROM tab0 AS cor0 ---- 1176 1715 4361 query I rowsort SELECT 59 * + cor0.col2 FROM tab1 AS cor0 ---- 3186 3363 5664 query I rowsort SELECT ALL cor0.col2 + + col0 + + 9 AS col0 FROM tab1 AS cor0 ---- 130 185 66 query I rowsort SELECT + col2 * + cor0.col0 + - 93 AS col0 FROM tab2 AS cor0 ---- 1935 2909 96 query I rowsort SELECT col2 * 25 + - col0 + + col0 FROM tab1 ---- 1350 1425 2400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1545 SELECT - CAST( 17 AS SIGNED ) + col2 + + tab0.col1 FROM tab0 ---- 102 156 81 skipif mysql # not compatible query I rowsort label-1545 SELECT - CAST ( 17 AS INTEGER ) + col2 + + tab0.col1 FROM tab0 ---- 102 156 81 query I rowsort SELECT + - 13 + - 9 AS col0 FROM tab0 AS cor0 ---- -22 -22 -22 query IIIIIIIIIIII rowsort SELECT * FROM tab1, tab2 cor0, tab2 cor1, tab2 AS cor2 ---- 972 values hashing to 163d7732097d78f1cda7f65c2cea5a08 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1548 SELECT + CAST( 0 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-1548 SELECT + CAST ( 0 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT 89 + + 49 FROM tab0 AS cor0 ---- 138 138 138 query I rowsort SELECT DISTINCT col2 * + col2 + col1 FROM tab1 ---- 2942 3259 9229 query I rowsort SELECT + col0 * col2 + col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT 0 + - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT - + cor0.col1 FROM tab1, tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT + col2 + + col1 + + col0 * col0 FROM tab2 AS cor0 ---- 107 6169 6296 query I rowsort SELECT DISTINCT ( + 51 ) FROM tab1 ---- 51 query I rowsort SELECT - col2 + ( ( + col0 ) ) AS col1 FROM tab1 cor0 ---- -16 -51 7 query I rowsort SELECT + - cor0.col1 * - 0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - cor0.col1 + + tab0.col2 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to efedfe558be8ae4bf065663019286f1f onlyif mysql # use DIV operator for integer division query I rowsort label-1559 SELECT - col1 DIV col1 + 45 AS col0 FROM tab2 ---- 44 44 44 skipif mysql # not compatible query I rowsort label-1559 SELECT - col1 / col1 + 45 AS col0 FROM tab2 ---- 44 44 44 onlyif mysql # use DIV operator for integer division query I rowsort label-1560 SELECT DISTINCT ( col1 ) DIV col2 col1 FROM tab1 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1560 SELECT DISTINCT ( col1 ) / col2 col1 FROM tab1 ---- 0 query I rowsort SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0 ---- 24 35 89 query I rowsort SELECT DISTINCT + ( + col2 + + 84 * col1 ) FROM tab0 ---- 7257 7726 8149 query I rowsort SELECT DISTINCT + 37 - + 57 FROM tab0, tab0 AS cor0 ---- -20 query I rowsort SELECT ALL cor0.col2 * - 70 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to b10298cd906e891aea3c841dd0ebe30c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1565 SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1565 SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - + col2 + - 37 * 74 FROM tab2 AS cor0 ---- -2764 -2765 -2776 query I rowsort SELECT + col1 + - ( col0 ) FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT col0 * + 44 FROM tab2 AS cor0 ---- 308 3432 3476 query I rowsort SELECT - - col2 - - ( col2 ) AS col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT - col1 * - cor0.col0 AS col1 FROM tab1 cor0 ---- 1040 640 78 onlyif mysql # use DIV operator for integer division query I rowsort label-1571 SELECT ALL - col0 + 26 DIV cor0.col2 FROM tab0 AS cor0 ---- -24 -89 -9 skipif mysql # not compatible query I rowsort label-1571 SELECT ALL - col0 + 26 / cor0.col2 FROM tab0 AS cor0 ---- -24 -89 -9 query I rowsort SELECT ALL tab0.col1 * col1 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT - - cor0.col2 + ( col2 ) AS col1 FROM tab2 AS cor0 ---- 52 54 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1574 SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1574 SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + 43 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to ee5108f6248be48c54e069545f81c5d9 query I rowsort SELECT DISTINCT 80 FROM tab0, tab0 cor0, tab1 AS cor1 ---- 80 query I rowsort SELECT 66 - col1 * col2 FROM tab2 AS cor0 ---- -1468 -580 -771 query I rowsort SELECT cor0.col1 + 27 * + col0 + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 2229 2243 227 query I rowsort SELECT + ( - col0 ) * col2 + - cor0.col2 + - 63 AS col2 FROM tab1 AS cor0 ---- -279 -3768 -7839 query I rowsort SELECT 24 * + col0 + - col1 + - 45 FROM tab2 AS cor0 ---- 1768 1834 92 query I rowsort SELECT ALL - col0 - - col2 AS col0 FROM tab2 ---- -41 -52 20 query I rowsort SELECT + + ( cor0.col0 ) * + col0 - + 63 FROM tab1 AS cor0 ---- -54 4033 6337 query I rowsort SELECT DISTINCT 82 + + col0 FROM tab2 AS cor0 ---- 160 161 89 query I rowsort SELECT DISTINCT - cor0.col2 * col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-1585 SELECT DISTINCT ( - 58 ) + + col0 * 44 DIV - col2 AS col0 FROM tab1 AS cor0 ---- -107 -60 -94 skipif mysql # not compatible query I rowsort label-1585 SELECT DISTINCT ( - 58 ) + + col0 * 44 / - col2 AS col0 FROM tab1 AS cor0 ---- -107 -60 -94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col0 * col2 - col1 col0 FROM tab2 AS cor0 ---- 1292 158125 237141 query I rowsort SELECT ALL - 54 + - col2 FROM tab1 cor0 ---- -108 -111 -150 query I rowsort SELECT ALL - + col2 * col2 * col0 AS col1 FROM tab2 AS cor0 ---- -114076 -5103 -52728 query I rowsort SELECT DISTINCT - col0 * + col0 + col1 * 66 FROM tab2 AS cor0 ---- -2190 -5119 1997 query I rowsort SELECT ALL - 58 + - col1 AS col2 FROM tab0 AS cor0 ---- -144 -149 -155 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1591 SELECT - - CAST( ( col2 ) AS SIGNED ) * 67 FROM tab1 AS cor0 ---- 3618 3819 6432 skipif mysql # not compatible query I rowsort label-1591 SELECT - - CAST ( ( col2 ) AS INTEGER ) * 67 FROM tab1 AS cor0 ---- 3618 3819 6432 query I rowsort SELECT - 41 * + 19 * col0 AS col0 FROM tab2 AS cor0 ---- -5453 -60762 -61541 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( - cor0.col2 ) - col2 col0 FROM tab0 AS cor0 ---- -164 -2 -66 onlyif mysql # use DIV operator for integer division query I rowsort label-1594 SELECT ALL CAST( col0 AS SIGNED ) DIV col1 AS col1 FROM tab2 cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-1594 SELECT ALL CAST ( col0 AS INTEGER ) / col1 AS col1 FROM tab2 cor0 ---- 0 1 4 query I rowsort SELECT DISTINCT + 71 * col0 + + 73 AS col1 FROM tab2 ---- 5611 5682 570 query I rowsort SELECT - col2 + col1 * + col2 * ( + col2 + col1 ) FROM tab1 AS cor0 ---- 112266 135936 38133 query I rowsort SELECT + + 64 + - cor0.col1 FROM tab0 AS cor0 ---- -22 -27 -33 query I rowsort SELECT col0 * cor0.col1 + - col1 AS col0 FROM tab0 cor0 ---- 1978 3298 8008 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1599 SELECT - 23 + cor0.col1 * CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0 ---- 7373 8258 9386 skipif mysql # not compatible query I rowsort label-1599 SELECT - 23 + cor0.col1 * CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0 ---- 7373 8258 9386 query I rowsort SELECT + cor0.col1 + 5 FROM tab1 AS cor0 ---- 15 18 31 query I rowsort SELECT - + col1 + + 98 AS col1 FROM tab2 AS cor0 ---- 39 67 81 query I rowsort SELECT + + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 query I rowsort SELECT DISTINCT - col0 + col2 + - col2 * - 61 FROM tab2 ---- 1534 1667 2277 query I rowsort SELECT DISTINCT 76 + - tab2.col2 AS col2 FROM tab2 ---- 38 49 50 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1605 SELECT - col2 + + col0 / CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1605 SELECT - col2 + + col0 / CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 + - col1 * col1 AS col2 FROM tab2 AS cor0 ---- -210 -3403 -954 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 + cor0.col2 * col0 col0 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT ALL col0 + + col0 * col0 + 13 AS col0 FROM tab0 ---- 1273 613 8023 query I rowsort SELECT ALL + - col2 + - ( + col0 ) AS col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT + - cor0.col2 * col0 + 43 FROM tab1 AS cor0 ---- -119 -3605 -7637 query I rowsort SELECT ALL - - col1 * 82 FROM tab1 cor0 ---- 1066 2132 820 query I rowsort SELECT DISTINCT col2 * - cor0.col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT col2 + + ( - 30 ) * - col2 FROM tab1 AS cor0 ---- 1674 1767 2976 query I rowsort SELECT ALL + col0 + 71 * + ( - col0 ) * - col1 FROM tab1 AS cor0 ---- 45504 5541 73920 query I rowsort SELECT + col1 + + ( - col2 * + col0 ) AS col0 FROM tab0 AS cor0 ---- -706 -7207 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1616 SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif mysql # not compatible query I rowsort label-1616 SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c query I rowsort SELECT DISTINCT - + col1 * 42 AS col0 FROM tab2 cor0 ---- -1302 -2478 -714 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1618 SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1618 SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL - - col2 * + col2 + + col2 AS col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT ALL col2 * 65 AS col1 FROM tab1 AS cor0 ---- 3510 3705 6240 query I rowsort SELECT - + col1 * col2 + - 19 AS col2 FROM tab2 cor0 ---- -1553 -665 -856 query I rowsort SELECT + ( + tab2.col1 ) FROM tab2 ---- 17 31 59 query I rowsort SELECT DISTINCT - + cor0.col0 * + 20 AS col2 FROM tab0 AS cor0 ---- -1780 -480 -700 query I rowsort SELECT + + col2 + - 25 - - col1 AS col0 FROM tab2 AS cor0 ---- 30 33 60 query I rowsort SELECT DISTINCT 22 AS col0 FROM tab1 cor0 ---- 22 query I rowsort SELECT ALL col0 - col0 * + col1 AS col2 FROM tab2 ---- -1264 -210 -4524 query I rowsort SELECT ALL - ( 81 ) + + col0 + ( + cor0.col2 + + col1 * - 80 ) AS col1 FROM tab1 cor0 ---- -2104 -760 -945 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1628 SELECT CAST( NULL AS SIGNED ) * cor0.col2 + + col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1628 SELECT CAST ( NULL AS INTEGER ) * cor0.col2 + + col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - ( - 65 ) + col2 * - ( + col2 ) FROM tab1 AS cor0 ---- -2981 -3314 -9281 onlyif mysql # use DIV operator for integer division query I rowsort label-1630 SELECT ALL + + ( 73 ) + - col2 + + col0 DIV 18 AS col0 FROM tab2 AS cor0 ---- 39 46 51 skipif mysql # not compatible query I rowsort label-1630 SELECT ALL + + ( 73 ) + - col2 + + col0 / 18 AS col0 FROM tab2 AS cor0 ---- 39 46 51 query I rowsort SELECT 70 AS col1 FROM tab1 AS cor0 ---- 70 70 70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1632 SELECT DISTINCT + + col0 / + col1 - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1632 SELECT DISTINCT + + col0 / + col1 - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + + 30 * col1 - + col2 * + 26 FROM tab1 AS cor0 ---- -1182 -2106 -624 query I rowsort SELECT - - ( + 18 ) + col1 FROM tab2 AS cor0 ---- 35 49 77 query I rowsort SELECT ALL - - ( col2 ) FROM tab2 AS cor0 ---- 26 27 38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 77 * col1 col0 FROM tab0 AS cor0 ---- -6622 -7007 -7469 query I rowsort SELECT DISTINCT ( col2 ) + col1 * + 86 + ( cor0.col0 ) FROM tab1 AS cor0 ---- 1294 2293 981 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 + - col0 * col2 col2 FROM tab1 cor0 ---- -165 -3712 -7760 query I rowsort SELECT ALL + + col0 + col1 AS col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT + + 98 AS col1 FROM tab0 AS cor0 ---- 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1641 SELECT DISTINCT - CAST( col0 AS SIGNED ) * - cor0.col0 + - ( col2 ) col2 FROM tab2 AS cor0 ---- 22 6058 6203 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1641 SELECT DISTINCT - CAST ( col0 AS INTEGER ) * - cor0.col0 + - ( col2 ) col2 FROM tab2 AS cor0 ---- 22 6058 6203 query I rowsort SELECT - 92 AS col0 FROM tab1 AS cor0 ---- -92 -92 -92 query I rowsort SELECT ALL - + col2 * col1 * + col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT + cor0.col2 * + col2 AS col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT - cor0.col0 + + cor0.col1 - ( + 99 ) AS col1 FROM tab1 AS cor0 ---- -153 -166 -76 onlyif mysql # use DIV operator for integer division query I rowsort label-1646 SELECT DISTINCT + cor0.col2 DIV col1 FROM tab2 AS cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-1646 SELECT DISTINCT + cor0.col2 / col1 FROM tab2 AS cor0 ---- 0 2 onlyif mysql # use DIV operator for integer division query I rowsort label-1647 SELECT col0 DIV 40 FROM tab1 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-1647 SELECT col0 / 40 FROM tab1 ---- 0 1 2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1648 SELECT - + ( cor0.col2 ) * CAST( + col1 AS SIGNED ) + col2 col0 FROM tab2 AS cor0 ---- -1508 -608 -810 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1648 SELECT - + ( cor0.col2 ) * CAST ( + col1 AS INTEGER ) + col2 col0 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT DISTINCT + 23 + - cor0.col0 FROM tab1 cor0 ---- -41 -57 20 query I rowsort SELECT ALL - col2 * + col2 + col0 AS col2 FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT DISTINCT - 79 + - col0 AS col0 FROM tab2 AS cor0 ---- -157 -158 -86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 * + cor0.col0 + + ( - col0 ) * col0 - col2 col1 FROM tab1 AS cor0 ---- -505 1184 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1653 SELECT DISTINCT - CAST( 36 AS SIGNED ) - col2 AS col2 FROM tab0 ---- -118 -37 -69 skipif mysql # not compatible query I rowsort label-1653 SELECT DISTINCT - CAST ( 36 AS INTEGER ) - col2 AS col2 FROM tab0 ---- -118 -37 -69 onlyif mysql # use DIV operator for integer division query I rowsort label-1654 SELECT ALL - + col1 + cor0.col2 DIV col2 FROM tab0 AS cor0 ---- -85 -90 -96 skipif mysql # not compatible query I rowsort label-1654 SELECT ALL - + col1 + cor0.col2 / col2 FROM tab0 AS cor0 ---- -85 -90 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-1655 SELECT ALL + + col0 DIV - col1 - col1 * + 11 FROM tab2 AS cor0 ---- -191 -341 -650 skipif mysql # not compatible query I rowsort label-1655 SELECT ALL + + col0 / - col1 - col1 * + 11 FROM tab2 AS cor0 ---- -191 -341 -650 query I rowsort SELECT ALL + 95 + col1 AS col2 FROM tab0 AS cor0 ---- 181 186 192 query I rowsort SELECT ALL ( + col1 ) * col2 + + col0 * col1 + 71 * - 98 AS col0 FROM tab0 AS cor0 ---- -2056 -3466 8603 onlyif mysql # use DIV operator for integer division query I rowsort label-1658 SELECT ALL + 42 * col0 DIV col0 AS col0 FROM tab2 AS cor0 ---- 42 42 42 skipif mysql # not compatible query I rowsort label-1658 SELECT ALL + 42 * col0 / col0 AS col0 FROM tab2 AS cor0 ---- 42 42 42 query I rowsort SELECT - - col0 * col2 + + ( - cor0.col0 + - col1 ) * col1 FROM tab2 AS cor0 ---- -6055 -989 1370 query I rowsort SELECT + ( col0 ) + tab0.col1 * col1 FROM tab0 ---- 7420 8370 9444 query I rowsort SELECT - 67 + col2 AS col1 FROM tab0 ---- -34 -66 15 query I rowsort SELECT col1 * + col0 + col2 FROM tab1 ---- 1136 132 697 query I rowsort SELECT DISTINCT tab1.col2 * col0 * col2 FROM tab1 ---- 207936 737280 8748 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1664 SELECT DISTINCT col0 + - col1 * - CAST( - col0 + - col1 AS SIGNED ) FROM tab2 ---- -1171 -1553 -8005 skipif mysql # not compatible query I rowsort label-1664 SELECT DISTINCT col0 + - col1 * - CAST ( - col0 + - col1 AS INTEGER ) FROM tab2 ---- -1171 -1553 -8005 query I rowsort SELECT + 51 FROM tab2, tab2 cor0, tab0 cor1 ---- 27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5 query I rowsort SELECT DISTINCT - 72 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 cor2 ---- -72 query I rowsort SELECT + 65 * + col1 FROM tab1 ---- 1690 650 845 onlyif mysql # use DIV operator for integer division query I rowsort label-1668 SELECT ALL - col1 + col1 * col2 DIV col2 - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-1668 SELECT ALL - col1 + col1 * col2 / col2 - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 63 col1 FROM tab1 AS cor0 ---- -63 query I rowsort SELECT DISTINCT - ( col2 ) * + col1 + col0 * col1 FROM tab0 ---- -774 3298 637 query I rowsort SELECT - ( 29 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 0cc9ddad93fc783055518ae4b6be054b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1672 SELECT ALL col0 + - tab1.col1 * - CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1672 SELECT ALL col0 + - tab1.col1 * - CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1673 SELECT + col0 * + CAST( - col0 AS SIGNED ) + - col1 AS col1 FROM tab2 ---- -6143 -6258 -80 skipif mysql # not compatible query I rowsort label-1673 SELECT + col0 * + CAST ( - col0 AS INTEGER ) + - col1 AS col1 FROM tab2 ---- -6143 -6258 -80 query I rowsort SELECT + col2 * - ( + col1 ) AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT - - col2 + - col2 AS col1 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL cor0.col2 AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2 ---- 3645 values hashing to 7eb416b97f0ed263f6364cf59aa64c2b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 37 col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to a10b03e72860b949bdff53827700a9a8 query I rowsort SELECT col0 * + col0 + col2 * 48 * col2 FROM tab0 ---- 1273 330673 52848 query I rowsort SELECT + 82 + 27 FROM tab2 ---- 109 109 109 query I rowsort SELECT 59 AS col0 FROM tab2 ---- 59 59 59 skipif mysql # not compatible query I rowsort SELECT DISTINCT + + CAST ( + col0 AS REAL ) + col1 / + 80 AS col2 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT DISTINCT ( 85 ) FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2 ---- 85 query I rowsort SELECT ALL + 50 FROM tab0 AS cor0 ---- 50 50 50 query I rowsort SELECT ALL - 55 FROM tab1 AS cor0 ---- -55 -55 -55 query I rowsort SELECT + 52 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 7f4ae30893ab330784829711032ae599 query I rowsort SELECT DISTINCT 60 FROM tab0, tab0 AS cor0 ---- 60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1688 SELECT DISTINCT cor0.col2 - CAST( tab0.col2 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cf8dcc9b14d0bff309a9568199cacbe8 skipif mysql # not compatible query I rowsort label-1688 SELECT DISTINCT cor0.col2 - CAST ( tab0.col2 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cf8dcc9b14d0bff309a9568199cacbe8 query I rowsort SELECT + cor0.col0 * col2 + + col0 + 71 AS col0 FROM tab2 AS cor0 ---- 2177 267 3152 query I rowsort SELECT + + 81 * col0 + col1 + - col1 FROM tab2 AS cor0 ---- 567 6318 6399 query I rowsort SELECT DISTINCT 7 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2 ---- 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col2 col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT cor0.col0 * cor0.col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 458b4c13e6825f9686b15a38663930f4 query I rowsort SELECT - - ( + col0 ) FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL col0 - + col1 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT ALL cor0.col1 * col2 AS col0 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + col2 + - col1 AS col0 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT - col1 - + tab0.col1 * + col2 FROM tab0 ---- -194 -2924 -7553 query I rowsort SELECT DISTINCT - tab2.col0 + + col1 FROM tab2 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-1700 SELECT ALL + col2 DIV tab1.col2 + + col1 * col1 FROM tab1 ---- 101 170 677 skipif mysql # not compatible query I rowsort label-1700 SELECT ALL + col2 / tab1.col2 + + col1 * col1 FROM tab1 ---- 101 170 677 query I rowsort SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * tab0.col1 col1 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT + + col0 + - 82 * 40 AS col0 FROM tab0 AS cor0 ---- -3191 -3245 -3256 onlyif mysql # use DIV operator for integer division query I rowsort label-1704 SELECT DISTINCT + 7 DIV - col0 AS col1 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-1704 SELECT DISTINCT + 7 / - col0 AS col1 FROM tab0 ---- 0 query I rowsort SELECT DISTINCT 74 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 74 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1706 SELECT ALL + col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1706 SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT cor1.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2 ---- 81 values hashing to e28bf7f922650ca423ade3642ce0285b query I rowsort SELECT DISTINCT - col0 * 89 FROM tab1 cor0 ---- -267 -5696 -7120 onlyif mysql # use DIV operator for integer division query I rowsort label-1709 SELECT ALL + col1 DIV + 50 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1709 SELECT ALL + col1 / + 50 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 * 84 FROM tab2 AS cor0 ---- -1428 -2604 -4956 query I rowsort SELECT DISTINCT + col0 + col1 * col1 FROM tab1 cor0 ---- 164 249 679 query IIIIII rowsort SELECT * FROM tab1, tab0 cor0 WHERE NOT NULL < NULL ---- query I rowsort SELECT ALL 28 AS col0 FROM tab2 ---- 28 28 28 query I rowsort SELECT DISTINCT 65 AS col2 FROM tab0 ---- 65 query I rowsort SELECT - + col0 + + col1 * col0 + col2 FROM tab0 AS cor0 ---- 2073 3361 8092 query I rowsort SELECT DISTINCT 88 AS col1 FROM tab1 AS cor0 ---- 88 query I rowsort SELECT + + col1 + col2 AS col2 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT ALL - 55 + col1 AS col2 FROM tab0 AS cor0 ---- 31 36 42 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1719 SELECT DISTINCT + CAST( NULL AS SIGNED ) - + ( + col2 ) AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-1719 SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + ( + col2 ) AS col2 FROM tab1 ---- NULL query I rowsort SELECT + tab0.col1 + tab0.col2 AS col1 FROM tab0 ---- 119 173 98 query I rowsort SELECT + - 52 + 0 + col0 FROM tab0 AS cor0 ---- -17 -28 37 query I rowsort SELECT DISTINCT 90 FROM tab0, tab1 AS cor0 ---- 90 query I rowsort SELECT - col2 * 93 AS col1 FROM tab0 ---- -3069 -7626 -93 query I rowsort SELECT 39 * + 9 AS col0 FROM tab2 ---- 351 351 351 query I rowsort SELECT 90 * col0 - - tab0.col2 FROM tab0 ---- 2193 3151 8092 query I rowsort SELECT col1 * + col1 * col1 - + col1 AS col1 FROM tab2 ---- 205320 29760 4896 query I rowsort SELECT + 68 + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 132 148 71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 18 col1 FROM tab2 cor0 ---- 18 18 18 query I rowsort SELECT ( col2 ) * cor0.col1 + col0 + - col1 AS col1 FROM tab0 AS cor0 ---- 2776 35 7460 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1730 SELECT DISTINCT + col1 * col0 / - CAST( NULL AS SIGNED ) FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1730 SELECT DISTINCT + col1 * col0 / - CAST ( NULL AS INTEGER ) FROM tab0 cor0 ---- NULL query I rowsort SELECT + ( col2 ) * + col2 + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1482 702 756 onlyif mysql # use DIV operator for integer division query I rowsort label-1732 SELECT 40 + + col0 DIV 92 AS col0 FROM tab1 AS cor0 ---- 40 40 40 skipif mysql # not compatible query I rowsort label-1732 SELECT 40 + + col0 / 92 AS col0 FROM tab1 AS cor0 ---- 40 40 40 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1733 SELECT col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1733 SELECT col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col2 - - ( + ( + col1 ) ) * - 42 FROM tab0 ---- -3579 -3740 -4073 query I rowsort SELECT - 94 * col0 + cor0.col0 + - cor0.col0 FROM tab2 AS cor0 ---- -658 -7332 -7426 query I rowsort SELECT cor0.col2 * 30 - + col0 FROM tab2 AS cor0 ---- 1061 702 803 query I rowsort SELECT ALL 70 + col2 FROM tab1 AS cor0 ---- 124 127 166 query I rowsort SELECT DISTINCT + - ( cor0.col1 ) * + cor0.col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT ALL - col1 * col0 * + cor0.col1 FROM tab0 AS cor0 ---- -177504 -329315 -737009 query I rowsort SELECT DISTINCT col1 * ( col2 ) AS col0 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT + col2 + - col2 - 25 FROM tab1 ---- -25 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab2.col1 * + col0 col0 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT + col0 * tab0.col2 + - 61 AS col1 FROM tab0 ---- -26 7237 731 query I rowsort SELECT col1 * + ( col1 ) FROM tab1 ---- 100 169 676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1745 SELECT col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab0 ---- 171 36 57 skipif mysql # not compatible query I rowsort label-1745 SELECT col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 ---- 171 36 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1746 SELECT - col0 + CAST( 12 * - col0 AS SIGNED ) + + ( + 37 ) AS col1 FROM tab1 ---- -1003 -2 -795 skipif mysql # not compatible query I rowsort label-1746 SELECT - col0 + CAST ( 12 * - col0 AS INTEGER ) + + ( + 37 ) AS col1 FROM tab1 ---- -1003 -2 -795 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + - col0 col0 FROM tab2 ---- -137 -38 -96 query I rowsort SELECT ALL col2 - + ( ( tab2.col0 ) ) FROM tab2 ---- -41 -52 20 query I rowsort SELECT 56 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to b5ba4b44e3deadce1edb30e76df61200 query I rowsort SELECT ALL 26 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 query I rowsort SELECT ALL + + col1 - col2 FROM tab0 AS cor0 ---- 53 9 96 onlyif mysql # use DIV operator for integer division query I rowsort label-1752 SELECT - CAST( + 89 AS SIGNED ) DIV col0 + ( col1 ) * + col2 FROM tab2 AS cor0 ---- 1533 645 825 skipif mysql # not compatible query I rowsort label-1752 SELECT - CAST ( + 89 AS INTEGER ) / col0 + ( col1 ) * + col2 FROM tab2 AS cor0 ---- 1533 645 825 query I rowsort SELECT DISTINCT + + col2 * + col0 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - - 77 + 93 AS col1 FROM tab0 AS cor0 ---- 170 query I rowsort SELECT - - 93 + + col1 AS col1 FROM tab2 AS cor0 ---- 110 124 152 query I rowsort SELECT ALL - 77 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 3a24155cb91ceff1e67bb51c07b72107 query I rowsort SELECT + col1 * ( - col2 ) - col0 FROM tab1 AS cor0 ---- -1328 -1407 -634 query I rowsort SELECT DISTINCT 64 * + col2 AS col2 FROM tab0 AS cor0 ---- 2112 5248 64 query I rowsort SELECT DISTINCT - ( col1 ) * col0 AS col0 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT - + col2 + 92 + col2 FROM tab2 AS cor0 ---- 92 92 92 query I rowsort SELECT ALL + - cor0.col0 * + col0 AS col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-1762 SELECT CAST( col2 AS SIGNED ) - cor0.col1 DIV ( - ( + col2 ) ) col1 FROM tab1 cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1762 SELECT CAST ( col2 AS INTEGER ) - cor0.col1 / ( - ( + col2 ) ) col1 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT ALL col1 * 91 FROM tab1 AS cor0 ---- 1183 2366 910 query I rowsort SELECT - ( - ( col1 ) ) * col2 AS col0 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT - 70 + - col2 * - col2 FROM tab2 AS cor0 ---- 1374 606 659 query I rowsort SELECT ALL - + col1 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT - cor0.col0 * - 38 AS col2 FROM tab1 AS cor0 ---- 114 2432 3040 query I rowsort SELECT ALL + col2 + 77 FROM tab0 AS cor0 ---- 110 159 78 query I rowsort SELECT DISTINCT cor0.col0 FROM tab1, tab2 cor0 ---- 7 78 79 query I rowsort SELECT tab1.col1 - col1 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT + 56 + col2 AS col0 FROM tab0 ---- 138 57 89 query I rowsort SELECT DISTINCT - col0 + + col1 * + 48 FROM tab1 AS cor0 ---- 1245 416 544 query I rowsort SELECT ALL col2 * cor0.col0 + + col0 + + col2 * - col1 FROM tab2 AS cor0 ---- -641 2435 572 onlyif mysql # use DIV operator for integer division query I rowsort label-1774 SELECT + 58 * col1 DIV col1 FROM tab1 AS cor0 ---- 58 58 58 skipif mysql # not compatible query I rowsort label-1774 SELECT + 58 * col1 / col1 FROM tab1 AS cor0 ---- 58 58 58 query I rowsort SELECT - - 0 FROM tab1 AS cor0 ---- 0 0 0 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + 71 * - col1 col0 FROM tab0 AS cor0 ---- -6073 -6379 -6886 onlyif mysql # use DIV operator for integer division query I rowsort label-1778 SELECT - cor0.col2 + cor0.col1 DIV col0 col2 FROM tab1 AS cor0 ---- -46 -57 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1778 SELECT - cor0.col2 + cor0.col1 / col0 col2 FROM tab1 AS cor0 ---- -46 -57 -96 query I rowsort SELECT ALL + col2 + ( + ( col0 ) ) * + 3 AS col1 FROM tab0 AS cor0 ---- 105 106 349 onlyif mysql # use DIV operator for integer division query I rowsort label-1780 SELECT 57 DIV - cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to d3ad8e75f46aa119b367957a8241be83 skipif mysql # not compatible query I rowsort label-1780 SELECT 57 / - cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to d3ad8e75f46aa119b367957a8241be83 onlyif mysql # use DIV operator for integer division query I rowsort label-1781 SELECT ALL + + col1 * col0 DIV + 93 FROM tab1 AS cor0 ---- 0 11 6 skipif mysql # not compatible query I rowsort label-1781 SELECT ALL + + col1 * col0 / + 93 FROM tab1 AS cor0 ---- 0 11 6 query I rowsort SELECT col0 * ( cor0.col0 ) FROM tab2 AS cor0 ---- 49 6084 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * + col2 col1 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1784 SELECT ALL - cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1784 SELECT ALL - cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + + col2 * 7 + col2 FROM tab0 AS cor0 ---- 264 656 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1786 SELECT col1 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-1786 SELECT col1 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-1787 SELECT ALL col0 + + cor0.col1 * col2 + col1 DIV col1 FROM tab0 AS cor0 ---- 133 2863 7552 skipif mysql # not compatible query I rowsort label-1787 SELECT ALL col0 + + cor0.col1 * col2 + col1 / col1 FROM tab0 AS cor0 ---- 133 2863 7552 query I rowsort SELECT ALL - cor0.col2 + + col2 * 4 FROM tab0 AS cor0 ---- 246 3 99 query I rowsort SELECT ALL + - col2 + + col2 AS col0 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * + col2 col2 FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-1791 SELECT + ( col1 ) + - cor0.col0 DIV + col1 AS col2 FROM tab1 AS cor0 ---- 26 4 7 skipif mysql # not compatible query I rowsort label-1791 SELECT + ( col1 ) + - cor0.col0 / + col1 AS col2 FROM tab1 AS cor0 ---- 26 4 7 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 cor2 ---- 972 values hashing to 63ccb67e72ebac679a0221202c067b9e query I rowsort SELECT col1 * - 0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1794 SELECT + col0 - + 37 DIV + 7 FROM tab2 ---- 2 73 74 skipif mysql # not compatible query I rowsort label-1794 SELECT + col0 - + 37 / + 7 FROM tab2 ---- 2 73 74 query I rowsort SELECT - - 8 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to ffc5b4c98b57ae546521175995c49c57 query I rowsort SELECT ALL 16 * - col1 - ( + cor0.col0 ) * + col0 AS col2 FROM tab0 AS cor0 ---- -1952 -2777 -9377 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1797 SELECT - CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-1797 SELECT - CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT + 91 * col1 FROM tab2 AS cor0 ---- 1547 2821 5369 query I rowsort SELECT DISTINCT - 86 + + col0 + + cor0.col0 * + col2 AS col0 FROM tab0 AS cor0 ---- -16 730 7301 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + 50 + col2 col1 FROM tab1 cor0 ---- 4 46 7 query I rowsort SELECT ALL + col0 + col1 * - col0 AS col1 FROM tab0 ---- -2040 -3360 -8010 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab2.col2 col0 FROM tab2, tab0 cor0, tab1 cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 85 col2 FROM tab0 ---- 85 85 85 query I rowsort SELECT 8 * - col2 * - col0 FROM tab1 ---- 1296 29184 61440 query I rowsort SELECT DISTINCT cor0.col1 - - col2 AS col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT col1 + cor0.col1 * ( col2 ) AS col0 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT - cor0.col2 + 8 FROM tab0, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to d51d9e9b60d66e4e27a5405cc60d2063 query I rowsort SELECT DISTINCT 2 FROM tab2, tab0 cor0 ---- 2 onlyif mysql # use DIV operator for integer division query I rowsort label-1809 SELECT ( + col2 ) DIV col2 AS col1 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1809 SELECT ( + col2 ) / col2 AS col1 FROM tab1 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-1810 SELECT ALL col2 DIV ( col1 + 7 ) AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1810 SELECT ALL col2 / ( col1 + 7 ) AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL ( - 24 ) AS col2 FROM tab2 AS cor0 ---- -24 -24 -24 query I rowsort SELECT ALL col1 + col2 + col0 AS col1 FROM tab0 cor0 ---- 133 143 262 query I rowsort SELECT - + 82 * col2 AS col1 FROM tab2 AS cor0 ---- -2132 -2214 -3116 query I rowsort SELECT DISTINCT 93 * 16 FROM tab0 AS cor0 ---- 1488 query I rowsort SELECT DISTINCT col1 * col2 AS col1 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT - + ( + cor0.col1 ) + - col1 FROM tab0 AS cor0 ---- -172 -182 -194 onlyif mysql # use DIV operator for integer division query I rowsort label-1817 SELECT - tab2.col0 DIV + ( + 15 ) FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5c07636c475555372c6281b48c5892b8 skipif mysql # not compatible query I rowsort label-1817 SELECT - tab2.col0 / + ( + 15 ) FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5c07636c475555372c6281b48c5892b8 query I rowsort SELECT cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 55 58 85 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1, tab2 AS cor0, tab1 AS cor1 ---- 972 values hashing to 4c0813b2179303fdf58f082d81d6d03c query I rowsort SELECT ALL + cor0.col2 * 7 FROM tab2 AS cor0 ---- 182 189 266 query I rowsort SELECT DISTINCT - col1 * - 11 + + 21 * col2 FROM tab1 cor0 ---- 1307 1420 2159 query I rowsort SELECT col2 * col1 AS col2 FROM tab0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1823 SELECT - col2 * + CAST( col1 AS SIGNED ) + col1 * + ( - col1 * + col2 ) FROM tab2 AS cor0 ---- -11628 -26784 -92040 skipif mysql # not compatible query I rowsort label-1823 SELECT - col2 * + CAST ( col1 AS INTEGER ) + col1 * + ( - col1 * + col2 ) FROM tab2 AS cor0 ---- -11628 -26784 -92040 query I rowsort SELECT col1 + - col0 * col0 AS col0 FROM tab2 cor0 ---- -18 -6025 -6224 query I rowsort SELECT - + cor0.col0 * col1 + + col0 * col0 FROM tab1 AS cor0 ---- -69 3456 5360 query I rowsort SELECT DISTINCT - 34 FROM tab1, tab2 AS cor0 ---- -34 query I rowsort SELECT DISTINCT - cor0.col2 + 49 AS col1 FROM tab1 cor0 ---- -47 -5 -8 query I rowsort SELECT - col0 + cor0.col0 * - col0 FROM tab2 AS cor0 ---- -56 -6162 -6320 query I rowsort SELECT - col1 * + ( col0 ) * ( col2 + cor0.col0 * col1 ) AS col1 FROM tab0 AS cor0 ---- -11529420 -4328208 -66257919 query I rowsort SELECT + 72 AS col1 FROM tab1 AS cor0 ---- 72 72 72 query I rowsort SELECT + 38 * - 44 FROM tab0 AS cor0 ---- -1672 -1672 -1672 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1832 SELECT CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-1832 SELECT CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 17 31 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1833 SELECT - CAST( NULL AS SIGNED ) / + cor0.col1 + - col2 * col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1833 SELECT - CAST ( NULL AS INTEGER ) / + cor0.col1 + - col2 * col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - 2 * col1 * - col2 FROM tab2 AS cor0 ---- -1292 -1674 -3068 query I rowsort SELECT - 34 * col0 AS col2 FROM tab2 AS cor0 ---- -238 -2652 -2686 query I rowsort SELECT ALL - 28 + 19 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to caf28657beb43049740febe1fa9ded5a query I rowsort SELECT col2 * + 47 + cor0.col1 FROM tab2 AS cor0 ---- 1281 1300 1803 query I rowsort SELECT + cor0.col1 * - col1 + - col2 AS col1 FROM tab2 cor0 ---- -327 -3507 -988 onlyif mysql # use DIV operator for integer division query I rowsort label-1839 SELECT - 92 DIV col0 + + col0 FROM tab1 ---- -27 63 79 skipif mysql # not compatible query I rowsort label-1839 SELECT - 92 / col0 + + col0 FROM tab1 ---- -27 63 79 query I rowsort SELECT col1 + - cor0.col2 * col0 + - 96 AS col1 FROM tab1 cor0 ---- -232 -3734 -7763 query I rowsort SELECT ALL col0 * col2 * + col1 + 31 * col2 + - col1 AS col1 FROM tab0 ---- 3329 666569 69049 query I rowsort SELECT ALL ( - col1 ) * + col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1843 SELECT + CAST( NULL AS SIGNED ) + col0 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-1843 SELECT + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col1 - + 31 FROM tab1 AS cor0 ---- -18 -21 -5 query I rowsort SELECT col0 + 61 AS col2 FROM tab1 AS cor0 ---- 125 141 64 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1846 SELECT ALL - cor0.col1 + - col2 * + CAST( + 81 AS SIGNED ) col1 FROM tab1 AS cor0 ---- -4400 -4627 -7789 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1846 SELECT ALL - cor0.col1 + - col2 * + CAST ( + 81 AS INTEGER ) col1 FROM tab1 AS cor0 ---- -4400 -4627 -7789 query I rowsort SELECT ALL - cor0.col2 + col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT DISTINCT + col0 * - col2 AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT - - col2 * + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 1 1089 6724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 66 col1 FROM tab2 ---- 66 66 66 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1851 SELECT DISTINCT col1 + - col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1851 SELECT DISTINCT col1 + - col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL + + col1 * col1 * + ( - col1 ) AS col0 FROM tab1 AS cor0 ---- -1000 -17576 -2197 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1853 SELECT DISTINCT + + 37 + cor0.col2 * CAST( - 23 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -561 -584 -837 skipif mysql # not compatible query I rowsort label-1853 SELECT DISTINCT + + 37 + cor0.col2 * CAST ( - 23 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -561 -584 -837 query I rowsort SELECT - + col1 + col0 * col0 AS col1 FROM tab1 AS cor0 ---- -17 4086 6387 query I rowsort SELECT DISTINCT + col0 * + col0 + col1 AS col2 FROM tab2 ---- 6143 6258 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 41 + + col1 col1 FROM tab1 ---- 51 54 67 query I rowsort SELECT - ( ( - col1 ) ) FROM tab2 ---- 17 31 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1858 SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-1858 SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL ( + col0 * - col2 ) + - 39 AS col2 FROM tab1 ---- -201 -3687 -7719 query I rowsort SELECT DISTINCT + 73 AS col2 FROM tab0 ---- 73 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1861 SELECT - CAST( + 94 AS SIGNED ) AS col2 FROM tab1 ---- -94 -94 -94 skipif mysql # not compatible query I rowsort label-1861 SELECT - CAST ( + 94 AS INTEGER ) AS col2 FROM tab1 ---- -94 -94 -94 query I rowsort SELECT 63 * col0 FROM tab2 ---- 441 4914 4977 query I rowsort SELECT + col1 + + 19 FROM tab1 ---- 29 32 45 query I rowsort SELECT DISTINCT + col0 * col2 + ( cor0.col1 + - ( - cor0.col0 ) ) AS col1 FROM tab1 AS cor0 ---- 191 3722 7773 query I rowsort SELECT ALL col0 - + 80 * col2 FROM tab2 cor0 ---- -2002 -2153 -2961 query I rowsort SELECT - + cor0.col2 + - 21 AS col1 FROM tab0 AS cor0 ---- -103 -22 -54 query I rowsort SELECT DISTINCT cor0.col1 + + 70 * col0 AS col2 FROM tab2 AS cor0 ---- 521 5519 5547 query I rowsort SELECT + cor0.col1 * - 82 FROM tab2 AS cor0 ---- -1394 -2542 -4838 query I rowsort SELECT DISTINCT + - col1 * - col0 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL + col2 * col2 + + ( col0 ) * col2 FROM tab0 AS cor0 ---- 14022 1881 36 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1871 SELECT + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1871 SELECT + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - col0 * + col2 + + col2 AS col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT cor0.col2 + + col0 * col0 * col1 FROM tab0 AS cor0 ---- 118826 49569 720893 query I rowsort SELECT - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT - col0 + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1876 SELECT col0 - - col0 DIV - col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-1876 SELECT col0 - - col0 / - col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT - col0 * cor0.col1 + + col0 * + col2 * col0 AS col2 FROM tab1 AS cor0 ---- 232832 408 613360 query I rowsort SELECT col2 + - 88 * + col0 + - col1 FROM tab0 AS cor0 ---- -2165 -3176 -7841 query I rowsort SELECT DISTINCT 81 AS col2 FROM tab2 AS cor0 ---- 81 query I rowsort SELECT ALL + col1 + + col0 * - 84 AS col1 FROM tab1 cor0 ---- -226 -5366 -6707 query I rowsort SELECT + cor0.col1 - - ( 23 ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to ddd4ed39f1cf356da22540247fd21a95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * + cor0.col2 * - col2 col1 FROM tab2 AS cor0 ---- 17576 19683 54872 query I rowsort SELECT DISTINCT 72 + col1 * + col0 + - cor0.col1 * + col0 AS col0 FROM tab2 cor0 ---- 72 query I rowsort SELECT DISTINCT - + col2 * col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT - + 72 AS col1 FROM tab2 AS cor0 ---- -72 -72 -72 query I rowsort SELECT DISTINCT - cor0.col0 * col0 + + col0 AS col1 FROM tab2 AS cor0 ---- -42 -6006 -6162 query I rowsort SELECT DISTINCT + - 55 + col0 AS col0 FROM tab1 AS cor0 ---- -52 25 9 query I rowsort SELECT + col0 + + 3 AS col0 FROM tab2 AS cor0 ---- 10 81 82 query I rowsort SELECT DISTINCT + + 5 AS col1 FROM tab0, tab1, tab2 AS cor0 ---- 5 query I rowsort SELECT DISTINCT 42 FROM tab0 ---- 42 query I rowsort SELECT 38 AS col0 FROM tab0 ---- 38 38 38 query I rowsort SELECT ALL + col2 * col0 * - tab2.col2 AS col1 FROM tab2 ---- -114076 -5103 -52728 query I rowsort SELECT col0 + col1 * 73 * + col0 AS col2 FROM tab1 ---- 46784 5697 76000 query I rowsort SELECT DISTINCT 14 + - cor0.col2 FROM tab1 AS cor0 ---- -40 -43 -82 query I rowsort SELECT ALL - + col0 + 69 FROM tab1 AS cor0 ---- -11 5 66 query I rowsort SELECT ALL + col2 * 12 FROM tab2 AS cor0 ---- 312 324 456 query I rowsort SELECT 37 + cor0.col1 * cor0.col0 FROM tab1 AS cor0 ---- 1077 115 677 query I rowsort SELECT DISTINCT - ( col1 ) + - col1 AS col0 FROM tab0 AS cor0 ---- -172 -182 -194 query I rowsort SELECT ALL - 0 + col1 * - col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT col0 + - col0 * + col2 AS col2 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT ALL + + ( col0 ) * col2 AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT - 53 * ( - col2 ) FROM tab1 AS cor0 ---- 2862 3021 5088 query I rowsort SELECT ALL 42 AS col0 FROM tab0 cor0 ---- 42 42 42 query I rowsort SELECT DISTINCT + 27 FROM tab1 AS cor0 ---- 27 query I rowsort SELECT 28 + col1 FROM tab0 AS cor0 ---- 114 119 125 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1906 SELECT - col1 + CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1906 SELECT - col1 + CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + 69 * col0 * - col2 col1 FROM tab0 ---- -2318 -503471 -54562 query I rowsort SELECT - col1 + ( col1 ) FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL - col2 + col1 AS col2 FROM tab0 ---- 53 9 96 query I rowsort SELECT col2 - 30 AS col0 FROM tab1 ---- 24 27 66 query I rowsort SELECT tab2.col0 - - 91 AS col2 FROM tab2 ---- 169 170 98 query I rowsort SELECT + col1 * 73 + col1 AS col0 FROM tab1 ---- 1924 740 962 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + 23 + + col1 * tab0.col2 col1 FROM tab0 ---- 2328 4816 9555 query I rowsort SELECT DISTINCT - col2 + 4 FROM tab2 ---- -22 -23 -34 query I rowsort SELECT DISTINCT col0 + col0 * tab0.col1 AS col0 FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT col1 + - col1 * col2 + - col1 AS col0 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT ( - ( + col1 ) ) + - ( + col1 ) * + col2 FROM tab2 ---- -1593 -663 -868 query I rowsort SELECT DISTINCT + 2 FROM tab2 ---- 2 query I rowsort SELECT - 32 AS col1 FROM tab2 ---- -32 -32 -32 query I rowsort SELECT ALL ( col1 ) + + col2 AS col0 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT + 47 * col1 AS col1 FROM tab1 AS cor0 ---- 1222 470 611 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 1 * - col2 * - col1 col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-1923 SELECT DISTINCT - + col1 - col0 DIV + col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-1923 SELECT DISTINCT - + col1 - col0 / + col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort SELECT + CAST ( - 38 AS REAL ) AS col2 FROM tab2 ---- -38 -38 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 13 col0 FROM tab2 AS cor0 ---- 13 13 13 onlyif mysql # use DIV operator for integer division query I rowsort label-1926 SELECT ALL cor0.col2 DIV cor0.col0 - cor0.col0 DIV col2 FROM tab1 AS cor0 ---- -1 1 18 skipif mysql # not compatible query I rowsort label-1926 SELECT ALL cor0.col2 / cor0.col0 - cor0.col0 / col2 FROM tab1 AS cor0 ---- -1 1 18 query I rowsort SELECT DISTINCT - 26 * col2 AS col0 FROM tab1 ---- -1404 -1482 -2496 query I rowsort SELECT ALL - 75 AS col2 FROM tab0 ---- -75 -75 -75 query I rowsort SELECT ( 49 ) * + col2 AS col2 FROM tab2 ---- 1274 1323 1862 query I rowsort SELECT ALL col2 * 64 + - cor0.col2 AS col2 FROM tab1 AS cor0 ---- 3402 3591 6048 query I rowsort SELECT col2 * + 98 FROM tab0 ---- 3234 8036 98 query I rowsort SELECT ALL - col1 + + cor0.col2 + 27 * + 92 FROM tab2 AS cor0 ---- 2451 2480 2505 query I rowsort SELECT + - ( 19 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4 query I rowsort SELECT DISTINCT - - col2 * col0 - + col2 FROM tab0 AS cor0 ---- 34 7216 759 query I rowsort SELECT ALL - col1 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT - + cor0.col1 * col2 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - 29 AS col0 FROM tab2 AS cor0 ---- -29 -29 -29 query I rowsort SELECT + 70 * + col2 AS col1 FROM tab0 AS cor0 ---- 2310 5740 70 query I rowsort SELECT + col2 * + cor0.col1 * - 91 + - col2 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -261096 -686504 -8924 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + col0 col0 FROM tab2 AS cor0 ---- 137 38 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + + col2 * col1 * - col1 col0 FROM tab1 cor0 ---- -16128 -36450 -5643 query I rowsort SELECT 47 * cor0.col2 AS col1 FROM tab0 AS cor0 ---- 1551 3854 47 query I rowsort SELECT - - ( col1 ) * col1 AS col2 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT + col2 * 85 AS col0 FROM tab2 ---- 2210 2295 3230 query I rowsort SELECT + 78 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1946 SELECT DISTINCT col0 * + CAST( col2 AS SIGNED ) + col0 FROM tab0 ---- 70 7387 816 skipif mysql # not compatible query I rowsort label-1946 SELECT DISTINCT col0 * + CAST ( col2 AS INTEGER ) + col0 FROM tab0 ---- 70 7387 816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + 86 col2 FROM tab2 AS cor0 ---- 103 117 145 onlyif mysql # use DIV operator for integer division query I rowsort label-1948 SELECT ALL - + cor0.col2 DIV - col0 + - col0 + - col1 AS col1 FROM tab0 AS cor0 ---- -109 -132 -180 skipif mysql # not compatible query I rowsort label-1948 SELECT ALL - + cor0.col2 / - col0 + - col0 + - col1 AS col1 FROM tab0 AS cor0 ---- -109 -132 -180 onlyif mysql # use DIV operator for integer division query I rowsort label-1949 SELECT + - col2 DIV col1 - - cor0.col1 FROM tab1 AS cor0 ---- 24 5 6 skipif mysql # not compatible query I rowsort label-1949 SELECT + - col2 / col1 - - cor0.col1 FROM tab1 AS cor0 ---- 24 5 6 query I rowsort SELECT cor0.col1 - cor0.col2 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ALL + cor0.col0 + col1 * - cor0.col2 * + col0 AS col2 FROM tab1 AS cor0 ---- -36416 -4209 -99760 query I rowsort SELECT ALL + col1 * col1 + + col1 FROM tab0 AS cor0 ---- 7482 8372 9506 onlyif mysql # use DIV operator for integer division query I rowsort label-1953 SELECT DISTINCT + col2 DIV cor0.col1 FROM tab2 AS cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-1953 SELECT DISTINCT + col2 / cor0.col1 FROM tab2 AS cor0 ---- 0 2 query I rowsort SELECT ALL - col0 * - 20 + col1 AS col2 FROM tab0 AS cor0 ---- 1871 566 797 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1955 SELECT - col2 * CAST( NULL AS DECIMAL ) + - col0 + col1 AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1955 SELECT - col2 * CAST ( NULL AS REAL ) + - col0 + col1 AS col2 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - cor0.col0 + - 1 FROM tab0 AS cor0 ---- -25 -36 -90 query I rowsort SELECT ALL + col1 * 22 AS col1 FROM tab2 AS cor0 ---- 1298 374 682 query I rowsort SELECT ALL + - cor0.col2 * + 95 FROM tab2 AS cor0 ---- -2470 -2565 -3610 query I rowsort SELECT - col0 * - col2 + + col2 AS col0 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT + col1 * col1 + col2 FROM tab1 AS cor0 ---- 157 265 730 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1961 SELECT - - CAST( NULL AS DECIMAL ) + col1 + col2 * col1 * col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1961 SELECT - - CAST ( NULL AS REAL ) + col1 + col2 * col1 * col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT ( + 24 ) AS col2 FROM tab1 AS cor0 ---- 24 query I rowsort SELECT - + col1 * col0 + col1 * - col1 FROM tab0 cor0 ---- -12804 -16380 -9460 query I rowsort SELECT + + ( - col0 ) * - col0 AS col2 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT - ( + col2 ) + col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT tab2.col0 + - col1 * tab2.col0 FROM tab2 ---- -1264 -210 -4524 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + col1 col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT - - col2 * + 73 AS col0 FROM tab2 AS cor0 ---- 1898 1971 2774 query I rowsort SELECT - - col0 + 55 * col2 FROM tab1 AS cor0 ---- 2973 3199 5360 query I rowsort SELECT + cor0.col0 FROM tab2, tab0, tab1 cor0 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT 60 * + tab1.col1 FROM tab1 ---- 1560 600 780 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1973 SELECT ALL + col1 + CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1973 SELECT ALL + col1 + CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 32 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to cf4f01ac97eb83445b1721f3ae28961a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1975 SELECT ALL col2 / CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1975 SELECT ALL col2 / CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 87 FROM tab0 AS cor0 ---- -87 query I rowsort SELECT + + col0 * - ( col2 ) FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-1978 SELECT + col0 * - cor0.col0 + 92 DIV col0 AS col0 FROM tab2 AS cor0 ---- -36 -6083 -6240 skipif mysql # not compatible query I rowsort label-1978 SELECT + col0 * - cor0.col0 + 92 / col0 AS col0 FROM tab2 AS cor0 ---- -36 -6083 -6240 query I rowsort SELECT 42 + 8 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 314aace40e704c20a6be06204a329f80 query I rowsort SELECT ALL 5 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 6035628694bdea36f584f3649088551d query I rowsort SELECT - 71 + col0 * - col0 FROM tab0 AS cor0 ---- -1296 -647 -7992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 - - col0 * ( col2 ) col2 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT - col0 + col0 * col2 FROM tab2 AS cor0 ---- 182 1950 2923 query I rowsort SELECT + - col2 + + cor0.col0 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT - cor0.col0 + cor0.col1 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 023677f2362ebf8bd60cb629f4090df4 onlyif mysql # use DIV operator for integer division query I rowsort label-1986 SELECT + col2 - col0 DIV + col1 AS col1 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-1986 SELECT + col2 - col0 / + col1 AS col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL col1 - col2 FROM tab0 ---- 53 9 96 query I rowsort SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1989 SELECT + col2 * CAST( col0 AS SIGNED ) * col1 + 12 AS col1 FROM tab0 AS cor0 ---- 3407 664130 68124 skipif mysql # not compatible query I rowsort label-1989 SELECT + col2 * CAST ( col0 AS INTEGER ) * col1 + 12 AS col1 FROM tab0 AS cor0 ---- 3407 664130 68124 query I rowsort SELECT + - col1 + col0 AS col1 FROM tab2 cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT col1 * col0 + + col2 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + cor0.col1 * col2 col2 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1993 SELECT + col2 + CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 skipif mysql # not compatible query I rowsort label-1993 SELECT + col2 + CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT col1 + col0 AS col0 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1995 SELECT ALL - col0 + CAST( col2 AS SIGNED ) FROM tab1 ---- -7 16 51 skipif mysql # not compatible query I rowsort label-1995 SELECT ALL - col0 + CAST ( col2 AS INTEGER ) FROM tab1 ---- -7 16 51 query I rowsort SELECT - + col0 * + col1 * col0 + - col0 - - col2 FROM tab0 AS cor0 ---- -118859 -49527 -720818 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1997 SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) + col1 * col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1997 SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) + col1 * col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - col0 * - col1 FROM tab0 cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-1999 SELECT ALL + - col2 - ( cor0.col1 ) DIV col1 AS col1 FROM tab0 AS cor0 ---- -2 -34 -83 skipif mysql # not compatible query I rowsort label-1999 SELECT ALL + - col2 - ( cor0.col1 ) / col1 AS col1 FROM tab0 AS cor0 ---- -2 -34 -83 query I rowsort SELECT cor0.col1 + 22 FROM tab2 cor0 ---- 39 53 81 onlyif mysql # use DIV operator for integer division query I rowsort label-2001 SELECT ALL - col0 DIV + col0 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2001 SELECT ALL - col0 / + col0 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT col1 * + 64 AS col0 FROM tab2 AS cor0 ---- 1088 1984 3776 query I rowsort SELECT ALL - 80 * col0 FROM tab1 AS cor0 ---- -240 -5120 -6400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2004 SELECT ALL + - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2004 SELECT ALL + - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2005 SELECT DISTINCT + + 49 * - col1 + - cor0.col2 DIV + ( col1 * col1 ) FROM tab2 AS cor0 ---- -1519 -2891 -833 skipif mysql # not compatible query I rowsort label-2005 SELECT DISTINCT + + 49 * - col1 + - cor0.col2 / + ( col1 * col1 ) FROM tab2 AS cor0 ---- -1519 -2891 -833 query I rowsort SELECT + + 94 AS col0 FROM tab2 AS cor0 ---- 94 94 94 query I rowsort SELECT DISTINCT 57 FROM tab0 AS cor0 ---- 57 query I rowsort SELECT ALL 90 * - col2 AS col0 FROM tab0 cor0 ---- -2970 -7380 -90 query I rowsort SELECT 24 AS col0 FROM tab2 AS cor0 ---- 24 24 24 query I rowsort SELECT ALL + - col0 * - col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - col2 + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - 96 AS col0 FROM tab2 AS cor0 ---- -96 -96 -96 query I rowsort SELECT DISTINCT - cor0.col2 + col0 FROM tab1 AS cor0 ---- -16 -51 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col0 * col1 col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT 0 * - col0 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 63 + col1 + + 5 col1 FROM tab0 AS cor0 ---- 28 33 39 query I rowsort SELECT DISTINCT - - col1 * - cor0.col2 + + 17 FROM tab2 cor0 ---- -1517 -629 -820 onlyif mysql # use DIV operator for integer division query I rowsort label-2018 SELECT DISTINCT - + col0 DIV + cor0.col0 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-2018 SELECT DISTINCT - + col0 / + cor0.col0 FROM tab0 AS cor0 ---- -1 query I rowsort SELECT ALL + - cor0.col0 + + col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT ALL + + col2 * + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1 1089 6724 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2021 SELECT ALL - CAST( + 82 AS SIGNED ) AS col1 FROM tab0 ---- -82 -82 -82 skipif mysql # not compatible query I rowsort label-2021 SELECT ALL - CAST ( + 82 AS INTEGER ) AS col1 FROM tab0 ---- -82 -82 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-2022 SELECT DISTINCT col2 DIV + col0 AS col0 FROM tab1 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-2022 SELECT DISTINCT col2 / + col0 AS col0 FROM tab1 ---- 0 1 18 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col1 + tab0.col2 col1 FROM tab0 ---- -53 -9 -96 query I rowsort SELECT ALL + col0 * col1 * + col1 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT col0 * - col2 + + col2 AS col1 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT DISTINCT col1 + col1 * + col0 + col0 * + col0 FROM tab1 AS cor0 ---- 113 4746 7453 query I rowsort SELECT ALL + + col2 * - cor0.col0 + col0 AS col2 FROM tab2 AS cor0 ---- -182 -1950 -2923 query I rowsort SELECT ALL col0 - - col1 AS col2 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL + + col0 + - col0 + - col0 * + col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT col2 * col0 + col2 * col1 AS col0 FROM tab2 cor0 ---- 1026 3562 3648 query I rowsort SELECT DISTINCT - + cor0.col2 + - col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT - + cor0.col0 + col1 * col0 AS col2 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT DISTINCT + - cor0.col2 + - col1 * col0 AS col1 FROM tab2 cor0 ---- -1381 -244 -4628 query I rowsort SELECT - col2 * - col2 + - col2 * - col1 FROM tab0 AS cor0 ---- 14186 3927 98 query I rowsort SELECT cor0.col1 + - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT ALL - col0 + + col1 * + col2 * + col0 FROM tab2 AS cor0 ---- 119574 50955 5852 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col1 * - col0 + - col2 col1 FROM tab2 cor0 ---- 1305 190 4576 query I rowsort SELECT ALL col2 * col2 * + cor0.col1 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT + col2 - col0 AS col1 FROM tab2 ---- -41 -52 20 query I rowsort SELECT 82 + + col0 * - col1 AS col0 FROM tab1 AS cor0 ---- -558 -958 4 query I rowsort SELECT DISTINCT + 43 + + col2 AS col1 FROM tab1 cor0 ---- 100 139 97 query I rowsort SELECT ALL col1 + cor0.col2 * + col1 * col2 AS col2 FROM tab1 AS cor0 ---- 119821 32500 75842 query I rowsort SELECT ALL + + col1 + col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT - - cor0.col2 * - col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT - + 66 FROM tab0 AS cor0 ---- -66 query I rowsort SELECT + ( + col2 ) FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT + cor0.col1 * col2 AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL 57 * col0 + - col1 * + col0 FROM tab1 AS cor0 ---- 3008 3520 93 query I rowsort SELECT + - col0 * col2 * + col1 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT - + col0 * - col2 + - col2 FROM tab2 cor0 ---- 162 2002 2964 query I rowsort SELECT ALL - ( - col2 ) + cor0.col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ALL col2 + - col0 AS col1 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT + col2 * cor0.col1 + cor0.col1 FROM tab0 cor0 ---- 194 2924 7553 query I rowsort SELECT ALL 7 FROM tab1 ---- 7 7 7 query I rowsort SELECT col0 * - tab1.col2 * col2 + col1 + - col0 FROM tab1 ---- -207990 -737347 -8725 query I rowsort SELECT ALL 9 - + col2 * + col1 AS col2 FROM tab1 ---- -1239 -1395 -561 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + col0 ) + + col0 * col2 + col1 col0 FROM tab0 ---- 167 7478 902 query I rowsort SELECT DISTINCT col2 - + col1 FROM tab1 ---- 28 47 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 80 col0 FROM tab2 AS cor0 ---- -80 -80 -80 query I rowsort SELECT ALL col2 + - col2 AS col0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT + - col0 - - cor0.col0 * - col0 * + cor0.col1 FROM tab1 AS cor0 ---- -237 -41024 -83280 query I rowsort SELECT DISTINCT - + cor0.col2 * col0 - + col2 * + col1 AS col0 FROM tab0 AS cor0 ---- -132 -14760 -3630 query I rowsort SELECT ALL - col0 * col1 FROM tab0 cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-2064 SELECT ALL + col0 DIV + col1 AS col1 FROM tab1 AS cor0 ---- 0 6 6 skipif mysql # not compatible query I rowsort label-2064 SELECT ALL + col0 / + col1 AS col1 FROM tab1 AS cor0 ---- 0 6 6 query I rowsort SELECT DISTINCT col1 + col0 * tab0.col2 AS col2 FROM tab0 ---- 132 7389 878 query I rowsort SELECT - col2 * col1 AS col1 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT - 83 + + col0 AS col0 FROM tab1 ---- -19 -3 -80 query I rowsort SELECT 95 * col1 AS col2 FROM tab2 ---- 1615 2945 5605 query I rowsort SELECT DISTINCT col1 * col2 + - col0 FROM tab2 ---- 1456 567 830 query I rowsort SELECT DISTINCT - 55 + + col2 FROM tab2 ---- -17 -28 -29 query I rowsort SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL NOT IN ( + tab0.col0 + col2 + col1 / + col0 ) ---- query I rowsort SELECT col0 AS col1 FROM tab0 WHERE NOT col2 * + col2 + + tab0.col1 NOT IN ( col1 ) ---- query I rowsort SELECT DISTINCT col1 + - col1 * col0 + col1 FROM tab1 ---- -1014 -26 -620 query I rowsort SELECT + tab0.col1 * col1 FROM tab0 ---- 7396 8281 9409 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL ) ---- query I rowsort SELECT DISTINCT - col0 * col0 + tab0.col2 + + tab0.col1 AS col2 FROM tab0 ---- -1127 -457 -7748 query I rowsort SELECT col2 + - col0 + + col2 AS col0 FROM tab0 ---- -33 42 75 query III rowsort SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND ( NULL ) ---- query I rowsort SELECT DISTINCT - col1 * + col0 AS col2 FROM tab0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-2080 SELECT + col0 * col0 DIV col2 FROM tab1 ---- 0 66 71 skipif mysql # not compatible query I rowsort label-2080 SELECT + col0 * col0 / col2 FROM tab1 ---- 0 66 71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * col1 col1 FROM tab2 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 - col2 * + col1 * tab1.col0 col0 FROM tab1 ---- -36490 -4238 -99853 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * col0 col1 FROM tab0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - col0 * - col0 AS col1 FROM tab2 ---- 49 6084 6241 query I rowsort SELECT ALL col0 * tab0.col2 AS col0 FROM tab0 ---- 35 7298 792 query I rowsort SELECT ALL - col0 * col1 * col1 FROM tab2 ---- -22831 -271518 -6727 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * - col2 * - col0 col2 FROM tab1 ---- 36480 4212 99840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + col1 * - tab1.col1 + col1 col2 FROM tab1 ---- -143 -624 -80 query I rowsort SELECT ALL col1 * col1 + col1 AS col2 FROM tab1 ---- 110 182 702 query I rowsort SELECT col2 * + col2 AS col0 FROM tab2 ---- 1444 676 729 query I rowsort SELECT DISTINCT col1 + + col1 AS col2 FROM tab2 ---- 118 34 62 query I rowsort SELECT col0 * col0 + col2 FROM tab1 ---- 4153 63 6496 query I rowsort SELECT ALL tab2.col1 * + col2 - col0 FROM tab2 ---- 1456 567 830 onlyif mysql # use DIV operator for integer division query I rowsort label-2094 SELECT DISTINCT + col0 + - col0 DIV col0 FROM tab1 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-2094 SELECT DISTINCT + col0 + - col0 / col0 FROM tab1 ---- 2 63 79 query I rowsort SELECT - col0 / col1 - col1 FROM tab2 WHERE NOT ( NULL ) > - col1 * col0 * - col2 ---- query I rowsort SELECT col1 - + col2 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT - col0 * - col1 + col2 * col2 * - col2 FROM tab1 ---- -157386 -184553 -883696 query I rowsort SELECT col1 * col2 FROM tab0 WHERE NOT col0 IN ( - col0 ) ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-2099 SELECT ALL - col1 * + col0 DIV + col0 + col2 * col1 AS col1 FROM tab0 ---- 0 2752 7371 skipif mysql # not compatible query I rowsort label-2099 SELECT ALL - col1 * + col0 / + col0 + col2 * col1 AS col1 FROM tab0 ---- 0 2752 7371 query I rowsort SELECT ALL - col2 - + col2 FROM tab2 ---- -52 -54 -76 query III rowsort SELECT * FROM tab1 WHERE NOT NULL > ( col1 + col0 ) ---- query I rowsort SELECT col1 * col1 * - col2 AS col0 FROM tab0 ---- -244068 -679042 -9409 query III rowsort SELECT * FROM tab1 WHERE NULL IN ( - col2 * + col1 * + col2 + col0 * - col0 * - col2 + col0 * + col1 ) ---- query I rowsort SELECT - col0 + + col1 * col2 FROM tab1 ---- 1168 1401 506 query I rowsort SELECT col1 * col2 * - col2 - - col0 AS col2 FROM tab0 ---- -611795 -62 -93630 query I rowsort SELECT ALL tab1.col1 / col2 + - col2 FROM tab1 WHERE + col1 = col0 * + col1 ---- query I rowsort SELECT DISTINCT - col1 * col1 + - col0 AS col0 FROM tab0 cor0 ---- -7420 -8370 -9444 query I rowsort SELECT + + col0 * - col1 AS col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + col0 + cor0.col1 * cor0.col1 FROM tab2 AS cor0 ---- 3559 368 968 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + + col0 col2 FROM tab1 AS cor0 ---- 121 176 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + - col2 * - cor0.col1 col0 FROM tab0 AS cor0 ---- 194 2924 7553 onlyif mysql # use DIV operator for integer division query I rowsort label-2112 SELECT DISTINCT - col0 * col0 DIV col1 AS col1 FROM tab2 AS cor0 ---- -1 -103 -367 skipif mysql # not compatible query I rowsort label-2112 SELECT DISTINCT - col0 * col0 / col1 AS col1 FROM tab2 AS cor0 ---- -1 -103 -367 query I rowsort SELECT col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col2 * col1 + - col2 col1 FROM tab0 ---- 2805 7380 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 col1 FROM tab1, tab2 cor0 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT - col0 * col1 - col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT - col0 - col0 FROM tab2 AS cor0 ---- -14 -156 -158 query I rowsort SELECT col2 * col1 FROM tab1 cor0 WHERE NULL IN ( col0 * - col2 + + col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2119 SELECT - 72 DIV col0 AS col2 FROM tab1 AS cor0 ---- -1 -24 0 skipif mysql # not compatible query I rowsort label-2119 SELECT - 72 / col0 AS col2 FROM tab1 AS cor0 ---- -1 -24 0 query I rowsort SELECT col1 + - col2 - col1 AS col2 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT ALL 50 AS col0 FROM tab0 ---- 50 50 50 query I rowsort SELECT - 13 AS col2 FROM tab2 cor0 ---- -13 -13 -13 query I rowsort SELECT 93 * col0 AS col0 FROM tab2 AS cor0 ---- 651 7254 7347 query I rowsort SELECT + col2 + + col2 AS col1 FROM tab2 cor0 ---- 52 54 76 query I rowsort SELECT ALL ( col2 ) + col2 * + 31 FROM tab1 AS cor0 ---- 1728 1824 3072 query I rowsort SELECT + col1 * col1 - col2 FROM tab1 AS cor0 ---- 43 622 73 query I rowsort SELECT + + ( ( - col1 ) ) + + ( col0 ) FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL + 81 AS col0 FROM tab1 AS cor0 ---- 81 81 81 query I rowsort SELECT DISTINCT - cor0.col0 * + col0 AS col0 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT + col0 + cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 7420 8370 9444 query I rowsort SELECT DISTINCT + 71 * col1 AS col1 FROM tab2 AS cor0 ---- 1207 2201 4189 query I rowsort SELECT - + col0 + - col0 AS col0 FROM tab2 AS cor0 ---- -14 -156 -158 query I rowsort SELECT ALL 91 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2134 SELECT - col2 * col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2134 SELECT - col2 * col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - 52 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 81 values hashing to bee61227972ad9a02705a1cd2b945aee query I rowsort SELECT ALL 3 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba query I rowsort SELECT - - cor0.col2 * ( col0 ) FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT + + 33 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2139 SELECT DISTINCT - CAST( 59 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- -59 skipif mysql # not compatible query I rowsort label-2139 SELECT DISTINCT - CAST ( 59 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- -59 onlyif mysql # use DIV operator for integer division query I rowsort label-2140 SELECT tab0.col1 DIV 62 AS col0 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2140 SELECT tab0.col1 / 62 AS col0 FROM tab0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-2141 SELECT ALL col0 + - ( - tab1.col1 ) DIV + col0 AS col1 FROM tab1 ---- 11 64 80 skipif mysql # not compatible query I rowsort label-2141 SELECT ALL col0 + - ( - tab1.col1 ) / + col0 AS col1 FROM tab1 ---- 11 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-2142 SELECT tab1.col1 DIV 73 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2142 SELECT tab1.col1 / 73 FROM tab1 ---- 0 0 0 query I rowsort SELECT col0 * 15 FROM tab2 ---- 105 1170 1185 query I rowsort SELECT DISTINCT col2 * col1 + ( - col2 ) * - col2 FROM tab2 cor0 ---- 1566 2090 2210 query I rowsort SELECT - - col1 * ( - col1 ) FROM tab0 AS cor0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-2146 SELECT - 87 DIV + cor0.col1 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to 10801b3149af80a3ee50a58dd0e66a56 skipif mysql # not compatible query I rowsort label-2146 SELECT - 87 / + cor0.col1 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to 10801b3149af80a3ee50a58dd0e66a56 query I rowsort SELECT ALL 32 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to d30a2acbf33c88274474306936d3227b query I rowsort SELECT DISTINCT + cor0.col0 * 18 AS col1 FROM tab1 AS cor0 ---- 1152 1440 54 query I rowsort SELECT - 17 AS col0 FROM tab1 AS cor0 ---- -17 -17 -17 query I rowsort SELECT DISTINCT + ( 62 ) - col1 AS col1 FROM tab2 ---- 3 31 45 query I rowsort SELECT DISTINCT + col0 - - col2 FROM tab2 ---- 104 117 34 query I rowsort SELECT - col1 + col1 * - col1 FROM tab1 ---- -110 -182 -702 query I rowsort SELECT DISTINCT col2 - - 6 FROM tab0 ---- 39 7 88 onlyif mysql # use DIV operator for integer division query I rowsort label-2154 SELECT ( tab0.col2 ) * col2 + + col2 DIV tab0.col1 FROM tab0 ---- 1 1089 6724 skipif mysql # not compatible query I rowsort label-2154 SELECT ( tab0.col2 ) * col2 + + col2 / tab0.col1 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT ALL - 41 * col0 + + col0 AS col0 FROM tab1 ---- -120 -2560 -3200 query I rowsort SELECT tab0.col2 * - col0 * - tab0.col1 + + tab0.col0 - col0 FROM tab0 ---- 3395 664118 68112 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + col2 * + col1 col0 FROM tab1 ---- 1168 1401 506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col1 col1 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 onlyif mysql # use DIV operator for integer division query I rowsort label-2159 SELECT DISTINCT + - col0 DIV ( col1 ) + col0 FROM tab2 AS cor0 ---- 7 75 77 skipif mysql # not compatible query I rowsort label-2159 SELECT DISTINCT + - col0 / ( col1 ) + col0 FROM tab2 AS cor0 ---- 7 75 77 query I rowsort SELECT DISTINCT + - 28 * - col1 AS col2 FROM tab1 AS cor0 ---- 280 364 728 onlyif mysql # use DIV operator for integer division query I rowsort label-2161 SELECT 2 DIV col0 + + ( col2 ) AS col0 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-2161 SELECT 2 / col0 + + ( col2 ) AS col0 FROM tab2 ---- 26 27 38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 15 + - col1 col2 FROM tab2 ---- -16 -2 -44 query I rowsort SELECT DISTINCT + 34 AS col2 FROM tab1 ---- 34 query I rowsort SELECT + 37 * - col2 FROM tab0 AS cor0 ---- -1221 -3034 -37 query I rowsort SELECT + tab0.col2 * tab0.col0 * 72 + - 71 AS col0 FROM tab0 ---- 2449 525385 56953 query I rowsort SELECT ALL col0 + col2 * - 2 + + col1 * + col0 AS col2 FROM tab0 ---- 2022 3428 8024 onlyif mysql # use DIV operator for integer division query I rowsort label-2167 SELECT - + col2 DIV - col0 AS col1 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-2167 SELECT - + col2 / - col0 AS col1 FROM tab0 AS cor0 ---- 0 0 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2168 SELECT cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2168 SELECT cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col2 + ( - cor0.col1 ) * - col2 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # use DIV operator for integer division query I rowsort label-2170 SELECT DISTINCT + - col0 + - col0 DIV + 37 AS col1 FROM tab0 cor0 ---- -24 -35 -91 skipif mysql # not compatible query I rowsort label-2170 SELECT DISTINCT + - col0 + - col0 / + 37 AS col1 FROM tab0 cor0 ---- -24 -35 -91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 + + ( 2 ) col0 FROM tab0 AS cor0 ---- -84 -89 -95 query I rowsort SELECT + cor0.col2 * + ( col1 + - col0 ) FROM tab2 AS cor0 ---- -2356 -494 648 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 * col0 + - col2 * + col0 + - 86 col2 FROM tab1 AS cor0 ---- -170 -3094 -6726 query I rowsort SELECT DISTINCT + col0 * col0 * - ( 58 * + col1 + col0 ) AS col2 FROM tab2 AS cor0 ---- -21294000 -6646665 -88445 query I rowsort SELECT + col0 + tab2.col0 AS col0 FROM tab2 ---- 14 156 158 query I rowsort SELECT ALL col2 * + col1 + cor0.col2 * col0 FROM tab1 AS cor0 ---- 1566 4218 8928 query I rowsort SELECT DISTINCT + col0 * + col0 + - col2 AS col0 FROM tab0 AS cor0 ---- 1224 543 7839 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + + ( col0 + cor0.col0 ) col0 FROM tab2 AS cor0 ---- 175 215 45 query I rowsort SELECT - col0 * 6 FROM tab2 ---- -42 -468 -474 query I rowsort SELECT DISTINCT + - col0 * col0 * 59 AS col0 FROM tab1 AS cor0 ---- -241664 -377600 -531 query I rowsort SELECT DISTINCT col2 - + col2 FROM tab2 cor0 ---- 0 query I rowsort SELECT - col1 + 71 * 96 AS col2 FROM tab2 AS cor0 ---- 6757 6785 6799 query I rowsort SELECT cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT ALL - - col2 * ( col0 ) AS col1 FROM tab2 cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-2185 SELECT - - col2 DIV col2 + 32 AS col0 FROM tab1 AS cor0 ---- 33 33 33 skipif mysql # not compatible query I rowsort label-2185 SELECT - - col2 / col2 + 32 AS col0 FROM tab1 AS cor0 ---- 33 33 33 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + col2 * col2 col1 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT ALL + col1 - + ( col1 ) * - col2 FROM tab2 cor0 ---- 1593 663 868 query I rowsort SELECT col0 * col2 + - col0 FROM tab0 ---- 0 7209 768 query I rowsort SELECT ALL + tab1.col0 - 97 FROM tab1 ---- -17 -33 -94 query I rowsort SELECT col0 + + col2 + col2 * + col0 AS col0 FROM tab0 ---- 71 7469 849 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 5 - + cor0.col0 col2 FROM tab0, tab1 cor0 ---- 9 values hashing to 9f92aed8a5efc07928b43adad961ed71 query I rowsort SELECT ALL + + 92 AS col2 FROM tab1 cor0 ---- 92 92 92 query I rowsort SELECT - col1 + - 0 AS col0 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT DISTINCT 91 FROM tab0 AS cor0 ---- 91 query I rowsort SELECT DISTINCT cor0.col1 + + 30 FROM tab1 AS cor0 ---- 40 43 56 query I rowsort SELECT + col0 + ( - col2 ) * 42 AS col0 FROM tab1 AS cor0 ---- -2265 -2330 -3952 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 DISTINCT col0 * + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2199 SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2199 SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col0 * - col2 col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT + cor0.col2 + + col1 * ( col1 ) * col1 FROM tab2 AS cor0 ---- 205405 29818 4951 query I rowsort SELECT ALL 37 * col2 AS col0 FROM tab0 AS cor0 ---- 1221 3034 37 query I rowsort SELECT ALL + 60 * col2 - col1 AS col1 FROM tab2 cor0 ---- 1501 1589 2263 query I rowsort SELECT cor0.col0 + col2 AS col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT DISTINCT + ( col0 ) + 37 * + col2 + col0 AS col1 FROM tab1 AS cor0 ---- 2004 2237 3712 query I rowsort SELECT cor0.col2 + + col2 + col1 FROM tab2 AS cor0 ---- 111 85 93 query I rowsort SELECT DISTINCT col0 * - cor0.col0 * - col0 AS col1 FROM tab1 AS cor0 ---- 262144 27 512000 query I rowsort SELECT DISTINCT + 3 FROM tab1 AS cor0 ---- 3 query I rowsort SELECT - 0 + + col2 + 64 * 72 AS col0 FROM tab0 cor0 ---- 4609 4641 4690 onlyif mysql # use DIV operator for integer division query I rowsort label-2210 SELECT - + 34 DIV - cor0.col0 + cor0.col0 DIV - col2 + + col0 AS col2 FROM tab1 AS cor0 ---- 14 63 80 skipif mysql # not compatible query I rowsort label-2210 SELECT - + 34 / - cor0.col0 + cor0.col0 / - col2 + + col0 AS col2 FROM tab1 AS cor0 ---- 14 63 80 query I rowsort SELECT ALL 9 AS col0 FROM tab2 AS cor0 ---- 9 9 9 query I rowsort SELECT - 84 + col2 FROM tab0 ---- -2 -51 -83 query I rowsort SELECT ALL + ( 58 ) - col0 FROM tab2 ---- -20 -21 51 query I rowsort SELECT + 68 + - col0 AS col2 FROM tab0 AS cor0 ---- -21 33 44 query I rowsort SELECT ALL - 97 AS col0 FROM tab2 cor0 ---- -97 -97 -97 query I rowsort SELECT + ( - col0 ) * - col0 * col0 + col1 FROM tab1 AS cor0 ---- 262154 512013 53 query I rowsort SELECT ALL + + 94 + + col1 FROM tab1 AS cor0 ---- 104 107 120 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 9 col1 FROM tab0 ---- 9 9 9 onlyif mysql # use DIV operator for integer division query I rowsort label-2219 SELECT - + 2 DIV col0 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2219 SELECT - + 2 / col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2220 SELECT - col1 * + col0 DIV - col0 AS col0 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-2220 SELECT - col1 * + col0 / - col0 AS col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT - col0 * - col2 * + col2 AS col1 FROM tab0 AS cor0 ---- 26136 35 598436 query I rowsort SELECT 12 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6 query I rowsort SELECT - + col0 * col2 + - col2 AS col2 FROM tab1 AS cor0 ---- -216 -3705 -7776 query I rowsort SELECT + col0 + 60 FROM tab1 AS cor0 ---- 124 140 63 onlyif mysql # use DIV operator for integer division query I rowsort label-2225 SELECT + col1 + - ( 96 ) + col2 DIV + 56 AS col0 FROM tab0 AS cor0 ---- -10 -4 1 skipif mysql # not compatible query I rowsort label-2225 SELECT + col1 + - ( 96 ) + col2 / + 56 AS col0 FROM tab0 AS cor0 ---- -10 -4 1 query I rowsort SELECT + col1 + 62 - 46 FROM tab0 cor0 ---- 102 107 113 query I rowsort SELECT col0 * + 25 + - 22 + + col2 AS col0 FROM tab1 AS cor0 ---- 107 1635 2074 query I rowsort SELECT - + col2 + col0 * col0 FROM tab0 AS cor0 ---- 1224 543 7839 query I rowsort SELECT + col1 * + 85 + col2 * + col0 FROM tab0 cor0 ---- 15033 8102 8280 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 47 col2 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d query I rowsort SELECT DISTINCT col1 * col2 + 98 FROM tab2 ---- 1632 744 935 query I rowsort SELECT DISTINCT - ( + col0 ) * col1 FROM tab1 ---- -1040 -640 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-2233 SELECT + col0 DIV + col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2233 SELECT + col0 / + col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT + 45 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 14cec871edc37b5056cda01c8331fdca query I rowsort SELECT col1 * - col2 * col1 FROM tab0 ---- -244068 -679042 -9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 45 col0 FROM tab2 AS cor0 ---- -45 -45 -45 query I rowsort SELECT cor0.col1 * col2 FROM tab1 cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-2238 SELECT ALL + + 20 * col1 DIV col0 FROM tab0 AS cor0 ---- 20 55 71 skipif mysql # not compatible query I rowsort label-2238 SELECT ALL + + 20 * col1 / col0 FROM tab0 AS cor0 ---- 20 55 71 query I rowsort SELECT 98 AS col0 FROM tab2 AS cor0 ---- 98 98 98 query I rowsort SELECT DISTINCT col1 * - col0 + col1 * + col2 AS col0 FROM tab1 AS cor0 ---- -70 1326 208 query I rowsort SELECT DISTINCT + - 51 + col0 FROM tab2 AS cor0 ---- -44 27 28 query I rowsort SELECT DISTINCT + col0 + 82 FROM tab2 cor0 ---- 160 161 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2243 SELECT ALL + CAST( - cor0.col2 AS SIGNED ) FROM tab2 cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-2243 SELECT ALL + CAST ( - cor0.col2 AS INTEGER ) FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT + col0 + + 94 FROM tab0 cor0 ---- 118 129 183 query I rowsort SELECT - + 48 FROM tab2 AS cor0 ---- -48 -48 -48 onlyif mysql # use DIV operator for integer division query I rowsort label-2246 SELECT col1 DIV + col2 + col1 FROM tab0 ---- 194 88 92 skipif mysql # not compatible query I rowsort label-2246 SELECT col1 / + col2 + col1 FROM tab0 ---- 194 88 92 query I rowsort SELECT DISTINCT 69 + + col2 * + col1 AS col2 FROM tab1 AS cor0 ---- 1317 1473 639 query I rowsort SELECT ALL - + 14 + 4 FROM tab0 AS cor0 ---- -10 -10 -10 query I rowsort SELECT ALL - - col0 + + 0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT DISTINCT 40 - col2 FROM tab0 AS cor0 ---- -42 39 7 query I rowsort SELECT 56 AS col0 FROM tab2 AS cor0 ---- 56 56 56 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 41 - 61 col0 FROM tab2 AS cor0 ---- -20 query I rowsort SELECT DISTINCT col2 * 57 FROM tab1 ---- 3078 3249 5472 query I rowsort SELECT ALL + 98 FROM tab0, tab0 cor0 ---- 9 values hashing to f9dee8c21116f1aed64ac5160e190809 query I rowsort SELECT DISTINCT col0 * ( - col0 ) AS col1 FROM tab1 ---- -4096 -6400 -9 query I rowsort SELECT 73 + cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to e5b3cf1f2f9e2440155cc3538087e933 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2257 SELECT DISTINCT tab1.col2 * CAST( + 16 AS SIGNED ) col0 FROM tab1 ---- 1536 864 912 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2257 SELECT DISTINCT tab1.col2 * CAST ( + 16 AS INTEGER ) col0 FROM tab1 ---- 1536 864 912 query I rowsort SELECT tab2.col0 * + ( tab2.col2 ) AS col0 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 24e20ca2b8a28088cc71698417e1f489 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + + 92 col1 FROM tab2 AS cor0 ---- 33 61 75 query I rowsort SELECT ALL + + 86 FROM tab2 cor0 ---- 86 86 86 onlyif mysql # use DIV operator for integer division query I rowsort label-2261 SELECT - 96 * + 29 - - cor0.col0 DIV - 33 FROM tab1 cor0 ---- -2784 -2785 -2786 skipif mysql # not compatible query I rowsort label-2261 SELECT - 96 * + 29 - - cor0.col0 / - 33 FROM tab1 cor0 ---- -2784 -2785 -2786 query I rowsort SELECT + - col0 * col1 + col1 AS col0 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT + - col0 * - col0 + - col0 FROM tab1 AS cor0 ---- 4032 6 6320 query I rowsort SELECT ALL + + col2 * + ( - col2 + - col0 ) FROM tab1 AS cor0 ---- -16896 -3078 -6897 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2265 SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 21 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2265 SELECT DISTINCT + CAST ( NULL AS REAL ) + 21 AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL - + col0 + - 76 FROM tab0 AS cor0 ---- -100 -111 -165 query I rowsort SELECT ( + col2 ) * - col1 * col0 + cor0.col2 AS col2 FROM tab1 AS cor0 ---- -36423 -4158 -99744 query I rowsort SELECT - + ( 85 ) - - col0 AS col2 FROM tab1 cor0 ---- -21 -5 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col0 - col0 col2 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT - col0 - col2 * col2 * - cor0.col1 AS col2 FROM tab2 AS cor0 ---- 22592 24469 39806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 + + cor0.col2 col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - 66 * 49 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 617ddca27680dca3ee9cdd2587231ca2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * - col2 col1 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT - cor0.col2 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e onlyif mysql # use DIV operator for integer division query I rowsort label-2275 SELECT + + col2 + col2 DIV - ( 51 ) AS col2 FROM tab0 AS cor0 ---- 1 33 81 skipif mysql # not compatible query I rowsort label-2275 SELECT + + col2 + col2 / - ( 51 ) AS col2 FROM tab0 AS cor0 ---- 1 33 81 query I rowsort SELECT col0 * - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-2277 SELECT + - ( col1 ) DIV col2 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-2277 SELECT + - ( col1 ) / col2 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT - col0 + - col2 + - col2 FROM tab0 AS cor0 ---- -253 -37 -90 query I rowsort SELECT + + 75 AS col2 FROM tab2 AS cor0 ---- 75 75 75 query I rowsort SELECT - - col2 + col0 AS col0 FROM tab2 AS cor0 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-2281 SELECT - col1 DIV 73 AS col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2281 SELECT - col1 / 73 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - + col2 * ( + 96 ) * + col2 AS col1 FROM tab2 AS cor0 ---- -138624 -64896 -69984 query I rowsort SELECT ALL + - col2 * 92 FROM tab1 AS cor0 ---- -4968 -5244 -8832 query I rowsort SELECT DISTINCT - col1 + - col1 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT ALL + cor0.col2 * - 46 * - col1 FROM tab0 cor0 ---- 130548 343252 4462 query I rowsort SELECT cor0.col1 + - 74 FROM tab0 AS cor0 ---- 12 17 23 query I rowsort SELECT DISTINCT - + col1 * col2 + col0 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT + col2 + col0 * - col2 AS col1 FROM tab1 AS cor0 ---- -108 -3591 -7584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * + ( - col0 ) + col2 col0 FROM tab2 cor0 ---- 1381 244 4628 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2290 SELECT + col1 + CAST( 99 AS SIGNED ) col1 FROM tab2 AS cor0 ---- 116 130 158 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2290 SELECT + col1 + CAST ( 99 AS INTEGER ) col1 FROM tab2 AS cor0 ---- 116 130 158 query I rowsort SELECT DISTINCT 62 AS col1 FROM tab0 ---- 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2292 SELECT ALL - col1 * CAST( + 46 AS SIGNED ) FROM tab2 AS cor0 ---- -1426 -2714 -782 skipif mysql # not compatible query I rowsort label-2292 SELECT ALL - col1 * CAST ( + 46 AS INTEGER ) FROM tab2 AS cor0 ---- -1426 -2714 -782 query I rowsort SELECT + cor0.col1 + ( + col2 + + col2 ) AS col2 FROM tab2 AS cor0 ---- 111 85 93 query I rowsort SELECT ALL col2 * 83 FROM tab0 AS cor0 ---- 2739 6806 83 query I rowsort SELECT + + col1 + cor0.col2 FROM tab2 AS cor0 ---- 55 58 85 query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2 AS cor2 ---- 972 values hashing to 82def1c3361e635dd4cf447edc22edb9 query I rowsort SELECT ALL - cor0.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT - 84 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to aaabc1266a1bb4f477091ffbc243c849 query I rowsort SELECT DISTINCT col1 * + col1 * cor0.col2 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT + - col2 + + col0 AS col2 FROM tab2 cor0 ---- -20 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-2301 SELECT ALL - col0 * cor0.col2 + 12 DIV + cor0.col0 AS col2 FROM tab1 AS cor0 ---- -158 -3648 -7680 skipif mysql # not compatible query I rowsort label-2301 SELECT ALL - col0 * cor0.col2 + 12 / + cor0.col0 AS col2 FROM tab1 AS cor0 ---- -158 -3648 -7680 query I rowsort SELECT ALL - - col1 - - col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT ALL 0 - col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT ALL - 50 - col2 FROM tab2 AS cor0 ---- -76 -77 -88 query I rowsort SELECT + 13 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed onlyif mysql # use DIV operator for integer division query I rowsort label-2306 SELECT DISTINCT - ( + col2 ) DIV + tab1.col2 - col1 * 67 col1 FROM tab1 ---- -1743 -671 -872 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2306 SELECT DISTINCT - ( + col2 ) / + tab1.col2 - col1 * 67 col1 FROM tab1 ---- -1743 -671 -872 query I rowsort SELECT + ( - col2 + tab0.col1 ) FROM tab0 ---- 53 9 96 query I rowsort SELECT DISTINCT ( + tab1.col2 ) FROM tab1 ---- 54 57 96 query I rowsort SELECT ALL - 24 FROM tab1 ---- -24 -24 -24 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2310 SELECT + CAST( col2 * col1 AS SIGNED ) FROM tab0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-2310 SELECT + CAST ( col2 * col1 AS INTEGER ) FROM tab0 ---- 2838 7462 97 query I rowsort SELECT + tab1.col2 + col1 * + 62 FROM tab1 ---- 1666 677 902 query I rowsort SELECT col1 * col1 * - col0 AS col2 FROM tab0 ---- -177504 -329315 -737009 query I rowsort SELECT DISTINCT + col0 * col2 + col1 AS col1 FROM tab0 ---- 132 7389 878 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col0 * + col2 col2 FROM tab0 AS cor0 ---- 34 7216 759 query I rowsort SELECT - + cor0.col1 + - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -118 -34 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-2316 SELECT DISTINCT 73 * col2 + col2 DIV + 69 FROM tab1 ---- 3942 4161 7009 skipif mysql # not compatible query I rowsort label-2316 SELECT DISTINCT 73 * col2 + col2 / + 69 FROM tab1 ---- 3942 4161 7009 query I rowsort SELECT ALL + col2 + - col0 * ( - tab2.col0 + + col2 ) FROM tab2 ---- -113 3277 4082 query I rowsort SELECT ALL + tab2.col0 * col1 + - 64 * col2 * col1 AS col2 FROM tab2 ---- -40001 -53351 -93574 query I rowsort SELECT - - col0 + col2 * col1 * + 56 FROM tab0 cor0 ---- 158952 417961 5467 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2320 SELECT DISTINCT + CAST( + col1 AS SIGNED ) * col2 FROM tab2 AS cor0 ---- 1534 646 837 skipif mysql # not compatible query I rowsort label-2320 SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT col1 * col0 + + col2 AS col1 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT + 85 - col0 FROM tab0 cor0 ---- -4 50 61 query I rowsort SELECT ALL - col0 - 33 AS col2 FROM tab2 AS cor0 ---- -111 -112 -40 query I rowsort SELECT ALL + cor0.col2 AS col0 FROM tab2, tab2 cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT ALL - ( 58 ) FROM tab0 AS cor0 ---- -58 -58 -58 query I rowsort SELECT ALL + cor0.col2 FROM tab1, tab0 cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2327 SELECT DISTINCT + CAST( col1 AS SIGNED ) * col2 FROM tab1 AS cor0 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-2327 SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2328 SELECT ALL col0 * - CAST( col2 AS SIGNED ) - + col1 FROM tab1 ---- -188 -3658 -7693 skipif mysql # not compatible query I rowsort label-2328 SELECT ALL col0 * - CAST ( col2 AS INTEGER ) - + col1 FROM tab1 ---- -188 -3658 -7693 query I rowsort SELECT - col0 * - 32 + + col2 * col0 + col1 FROM tab1 ---- 10253 284 5706 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2330 SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 + tab0.col2 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-2330 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 + tab0.col2 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort SELECT CAST ( + col2 * + col0 AS REAL ) AS col0 FROM tab0 ---- 35 7298 792 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2332 SELECT ALL CAST( - ( + col1 ) AS SIGNED ) + ( - col1 ) FROM tab1 ---- -20 -26 -52 skipif mysql # not compatible query I rowsort label-2332 SELECT ALL CAST ( - ( + col1 ) AS INTEGER ) + ( - col1 ) FROM tab1 ---- -20 -26 -52 query I rowsort SELECT - col0 * - ( tab1.col1 ) FROM tab1 ---- 1040 640 78 query I rowsort SELECT - 97 * 73 * - col0 + - col1 FROM tab2 ---- 49536 552259 559382 onlyif mysql # use DIV operator for integer division query I rowsort label-2335 SELECT ALL - ( + col2 ) DIV cor0.col0 col1 FROM tab2 AS cor0 ---- -3 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2335 SELECT ALL - ( + col2 ) / cor0.col0 col1 FROM tab2 AS cor0 ---- -3 0 0 query I rowsort SELECT cor0.col1 * col2 + col1 AS col2 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT DISTINCT - - cor0.col1 + 80 AS col1 FROM tab0 AS cor0 ---- 166 171 177 onlyif mysql # use DIV operator for integer division query I rowsort label-2338 SELECT 53 + 83 DIV + col0 FROM tab2 AS cor0 ---- 54 54 64 skipif mysql # not compatible query I rowsort label-2338 SELECT 53 + 83 / + col0 FROM tab2 AS cor0 ---- 54 54 64 query I rowsort SELECT DISTINCT - 51 + + col0 AS col2 FROM tab2 cor0 ---- -44 27 28 onlyif mysql # use DIV operator for integer division query I rowsort label-2340 SELECT - ( col2 ) * col2 DIV - 30 + col0 AS col0 FROM tab1 AS cor0 ---- 100 172 387 skipif mysql # not compatible query I rowsort label-2340 SELECT - ( col2 ) * col2 / - 30 + col0 AS col0 FROM tab1 AS cor0 ---- 100 172 387 query I rowsort SELECT ALL + 55 + + col1 FROM tab2 ---- 114 72 86 query I rowsort SELECT DISTINCT - ( - 26 ) * col2 + - ( col1 + col1 ) FROM tab2 AS cor0 ---- 558 640 954 query I rowsort SELECT ALL 11 FROM tab0 ---- 11 11 11 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 88 - col1 col0 FROM tab2 ---- -105 -119 -147 query I rowsort SELECT DISTINCT - 32 * + col2 * + col0 AS col1 FROM tab0 ---- -1120 -233536 -25344 query I rowsort SELECT DISTINCT 58 FROM tab0 AS cor0 ---- 58 query I rowsort SELECT + tab2.col2 + col0 AS col0 FROM tab2 ---- 104 117 34 query I rowsort SELECT ALL - 25 * + col1 FROM tab1 ---- -250 -325 -650 query I rowsort SELECT ALL - col1 * cor0.col0 + + col2 FROM tab0 cor0 ---- -2031 -3394 -8017 query I rowsort SELECT DISTINCT + + col1 + - ( + col0 ) FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT ALL col2 + 44 * + col0 * + col1 AS col2 FROM tab1 AS cor0 ---- 28217 3486 45856 onlyif mysql # use DIV operator for integer division query I rowsort label-2352 SELECT DISTINCT - - col0 DIV col1 - cor0.col2 * col1 FROM tab2 AS cor0 ---- -1533 -642 -837 skipif mysql # not compatible query I rowsort label-2352 SELECT DISTINCT - - col0 / col1 - cor0.col2 * col1 FROM tab2 AS cor0 ---- -1533 -642 -837 query I rowsort SELECT + ( 3 * + tab0.col1 ) AS col1 FROM tab0, tab1 cor0 ---- 9 values hashing to 16bd3289454b6dfcfe499e7691eab850 query I rowsort SELECT + ( + 46 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 31818c9d4d325eb248735c97cb1dce39 query I rowsort SELECT + col1 * 8 FROM tab1 AS cor0 ---- 104 208 80 query I rowsort SELECT DISTINCT + col1 * + 59 * + cor0.col2 FROM tab2 AS cor0 ---- 38114 49383 90506 onlyif mysql # use DIV operator for integer division query I rowsort label-2357 SELECT ALL - col1 DIV - 43 AS col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2357 SELECT ALL - col1 / - 43 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col2 * + 96 AS col1 FROM tab1 AS cor0 ---- 5184 5472 9216 query I rowsort SELECT DISTINCT - - cor0.col1 * + 95 * col0 FROM tab1 AS cor0 ---- 60800 7410 98800 query I rowsort SELECT + cor0.col1 * - 76 FROM tab1 AS cor0 ---- -1976 -760 -988 query I rowsort SELECT ALL - col0 + col0 * - col2 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT ALL - - col2 + ( ( + col0 ) ) FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT DISTINCT + + col1 * - ( col1 ) AS col0 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT DISTINCT col1 + - col2 - + col1 FROM tab2 AS cor0 ---- -26 -27 -38 onlyif mysql # use DIV operator for integer division query I rowsort label-2365 SELECT DISTINCT col0 + - col0 DIV col2 AS col2 FROM tab0 AS cor0 ---- 0 24 88 skipif mysql # not compatible query I rowsort label-2365 SELECT DISTINCT col0 + - col0 / col2 AS col2 FROM tab0 AS cor0 ---- 0 24 88 query I rowsort SELECT - 66 FROM tab1, tab0 AS cor0 ---- 9 values hashing to a408108d423d7784b7d610cb779e515a onlyif mysql # use DIV operator for integer division query I rowsort label-2367 SELECT DISTINCT + col1 DIV - tab1.col1 AS col1 FROM tab1 ---- -1 skipif mysql # not compatible query I rowsort label-2367 SELECT DISTINCT + col1 / - tab1.col1 AS col1 FROM tab1 ---- -1 onlyif mysql # use DIV operator for integer division query I rowsort label-2368 SELECT DISTINCT - col1 DIV + ( + col0 ) + col2 * col0 AS col2 FROM tab0 AS cor0 ---- 33 7297 789 skipif mysql # not compatible query I rowsort label-2368 SELECT DISTINCT - col1 / + ( + col0 ) + col2 * col0 AS col2 FROM tab0 AS cor0 ---- 33 7297 789 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col0 + + col1 * 32 col0 FROM tab0 cor0 ---- 2776 3001 3139 onlyif mysql # use DIV operator for integer division query I rowsort label-2370 SELECT col0 + cor0.col0 DIV + col2 AS col2 FROM tab1 AS cor0 ---- 3 65 80 skipif mysql # not compatible query I rowsort label-2370 SELECT col0 + cor0.col0 / + col2 AS col2 FROM tab1 AS cor0 ---- 3 65 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2371 SELECT ALL - col2 * CAST( + col2 AS SIGNED ) AS col0 FROM tab0 ---- -1 -1089 -6724 skipif mysql # not compatible query I rowsort label-2371 SELECT ALL - col2 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 ---- -1 -1089 -6724 onlyif mysql # use DIV operator for integer division query I rowsort label-2372 SELECT + col0 + cor0.col1 DIV + col1 col2 FROM tab1 AS cor0 ---- 4 65 81 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2372 SELECT + col0 + cor0.col1 / + col1 col2 FROM tab1 AS cor0 ---- 4 65 81 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2 ---- 3645 values hashing to def82b52aa9c83b91991d7d043276abe query I rowsort SELECT + ( - col1 ) * + col0 AS col0 FROM tab1 cor0 ---- -1040 -640 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 + + col1 col0 FROM tab0 AS cor0 ---- 53 9 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT CAST ( + col1 AS REAL ) col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT - col1 * - 95 * cor0.col1 FROM tab0 cor0 ---- 702620 786695 893855 onlyif mysql # use DIV operator for integer division query I rowsort label-2378 SELECT - + cor0.col1 DIV col1 AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2378 SELECT - + cor0.col1 / col1 AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT - cor0.col1 * - 2 AS col2 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT col1 * + 42 AS col0 FROM tab0 AS cor0 ---- 3612 3822 4074 query I rowsort SELECT col1 * - ( - col1 * - col2 ) AS col0 FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT - - cor0.col2 * - col1 FROM tab2 cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-2383 SELECT ALL + 45 DIV col0 FROM tab0 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-2383 SELECT ALL + 45 / col0 FROM tab0 AS cor0 ---- 0 1 1 query I rowsort SELECT - cor0.col0 + cor0.col1 * + col2 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT ALL - 48 + + cor0.col0 AS col0 FROM tab2 AS cor0 ---- -41 30 31 query I rowsort SELECT - col1 * - col0 AS col0 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + 97 AS col2 FROM tab1 AS cor0 ---- 97 query I rowsort SELECT ALL + ( - col1 ) + 71 + - col2 AS col0 FROM tab2 cor0 ---- -14 13 16 onlyif mysql # use DIV operator for integer division query I rowsort label-2389 SELECT - col1 + col1 DIV col2 AS col1 FROM tab1 cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-2389 SELECT - col1 + col1 / col2 AS col1 FROM tab1 cor0 ---- -10 -13 -26 query I rowsort SELECT 70 + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 101 129 87 query I rowsort SELECT DISTINCT + ( + col2 ) + - tab1.col2 FROM tab1 ---- 0 query I rowsort SELECT DISTINCT + 52 * cor0.col0 FROM tab1 AS cor0 ---- 156 3328 4160 query I rowsort SELECT DISTINCT + 98 * + col0 + col1 AS col1 FROM tab0 cor0 ---- 2438 3527 8813 query I rowsort SELECT - + col1 + - cor0.col2 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT col0 + - col2 AS col2 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT + col0 * + col1 + - col2 AS col1 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT col0 * ( + col2 * col1 ) FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT + col1 * + ( 73 ) + - col2 AS col1 FROM tab0 AS cor0 ---- 6245 6561 7080 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2399 SELECT + col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2399 SELECT + col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 29 * + tab2.col2 AS col0 FROM tab2 ---- 1102 754 783 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab2 cor0, tab2, tab2 AS cor1 ---- 972 values hashing to 163d7732097d78f1cda7f65c2cea5a08 query I rowsort SELECT ALL + 11 AS col0 FROM tab2 ---- 11 11 11 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 25 col2 FROM tab1 cor0 ---- -25 -25 -25 query I rowsort SELECT - - col1 * + col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT ALL - 46 * + col0 AS col1 FROM tab0 AS cor0 ---- -1104 -1610 -4094 query I rowsort SELECT ( + tab1.col0 ) AS col1 FROM tab1 ---- 3 64 80 query I rowsort SELECT 76 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 30b8941a700cffd5b983116383bd42d5 query I rowsort SELECT + cor0.col2 * cor0.col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT - ( - col0 ) + cor0.col2 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT col1 * - tab0.col2 AS col0 FROM tab0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-2411 SELECT - 63 DIV cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to f8caee3e75605cf312e51afdb8dc6d64 skipif mysql # not compatible query I rowsort label-2411 SELECT - 63 / cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to f8caee3e75605cf312e51afdb8dc6d64 query I rowsort SELECT DISTINCT - 61 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1 ---- -61 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 62 * cor1.col1 + ( 40 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to cdb1225a6514fe8881073199a8bd7c01 query I rowsort SELECT - - col1 + 20 FROM tab1 AS cor0 ---- 30 33 46 query I rowsort SELECT + cor0.col2 + - 93 + col2 FROM tab1 AS cor0 ---- 15 21 99 query I rowsort SELECT ALL - tab0.col1 AS col0 FROM tab0, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT ALL col1 * 63 AS col1 FROM tab0 ---- 5418 5733 6111 query I rowsort SELECT ALL col1 + + tab1.col0 * col1 * col0 FROM tab1 ---- 260 40970 83213 query I rowsort SELECT DISTINCT - 72 + 50 + + col1 AS col1 FROM tab1 ---- -12 -9 4 query I rowsort SELECT + 0 * - 52 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 47 + col1 col1 FROM tab0 AS cor0 ---- 39 44 50 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 15 * - col2 col2 FROM tab0 AS cor0 ---- 1230 15 495 query I rowsort SELECT ALL + - 91 * col0 AS col2 FROM tab1 AS cor0 ---- -273 -5824 -7280 query I rowsort SELECT DISTINCT + ( 59 ) * col2 + + col2 FROM tab2 AS cor0 ---- 1560 1620 2280 query I rowsort SELECT ALL 10 AS col0 FROM tab0 AS cor0 ---- 10 10 10 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2426 SELECT ALL + CAST( NULL AS SIGNED ) * + col0 + col0 col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2426 SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 + col0 col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col1 * col0 + col1 AS col2 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT DISTINCT col1 * + ( - col2 ) FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT - + ( ( col2 ) ) * + 13 + + cor0.col2 FROM tab1 AS cor0 ---- -1152 -648 -684 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2430 SELECT DISTINCT + - CAST( NULL AS SIGNED ) / + col2 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2430 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / + col2 FROM tab2 cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2431 SELECT - cor0.col2 * - col1 + + col1 * CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2431 SELECT - cor0.col2 * - col1 + + col1 * CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2432 SELECT ALL ( - col0 ) DIV col1 + col1 AS col1 FROM tab2 AS cor0 ---- 13 31 58 skipif mysql # not compatible query I rowsort label-2432 SELECT ALL ( - col0 ) / col1 + col1 AS col1 FROM tab2 AS cor0 ---- 13 31 58 onlyif mysql # use DIV operator for integer division query I rowsort label-2433 SELECT + cor0.col1 DIV 88 + + col2 FROM tab0 AS cor0 ---- 2 33 83 skipif mysql # not compatible query I rowsort label-2433 SELECT + cor0.col1 / 88 + + col2 FROM tab0 AS cor0 ---- 2 33 83 query I rowsort SELECT - col1 * + 80 + cor0.col2 FROM tab0 AS cor0 ---- -6847 -7198 -7759 query I rowsort SELECT + col1 * col2 + - cor0.col1 FROM tab1 AS cor0 ---- 1235 1378 560 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab0 AS cor2 ---- 3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6 query I rowsort SELECT + 8 AS col1 FROM tab0 AS cor0 ---- 8 8 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 9 col0 FROM tab0 cor0 ---- 9 query I rowsort SELECT + 86 + - cor0.col1 FROM tab1 AS cor0 ---- 60 73 76 query I rowsort SELECT DISTINCT 65 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 65 query I rowsort SELECT ALL + + col1 + col0 * 84 * col0 AS col1 FROM tab0 AS cor0 ---- 102997 48470 665455 query I rowsort SELECT col2 * + col2 AS col0 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT - col0 + col1 * col2 AS col1 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT DISTINCT - col1 * col0 + - tab0.col0 AS col2 FROM tab0 ---- -2088 -3430 -8188 query I rowsort SELECT ALL + + col2 * + col2 * col0 AS col1 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT - col2 * + col0 + ( + cor0.col1 ) FROM tab0 cor0 ---- -706 -7207 62 query I rowsort SELECT ALL - - col2 * + 79 FROM tab2 AS cor0 ---- 2054 2133 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-2448 SELECT 78 DIV - 55 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b skipif mysql # not compatible query I rowsort label-2448 SELECT 78 / - 55 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b query I rowsort SELECT ALL - 82 AS col2 FROM tab2 ---- -82 -82 -82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2450 SELECT ALL + CAST( 36 AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 skipif mysql # not compatible query I rowsort label-2450 SELECT ALL + CAST ( 36 AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 query I rowsort SELECT ALL + + col2 * - 90 AS col2 FROM tab2 AS cor0 ---- -2340 -2430 -3420 query I rowsort SELECT DISTINCT cor0.col0 + - col0 * + col0 + col2 FROM tab2 AS cor0 ---- -15 -5980 -6124 query I rowsort SELECT - cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT col0 * 30 + + col0 + - col0 * col2 AS col0 FROM tab0 AS cor0 ---- -4539 -48 1050 query I rowsort SELECT DISTINCT + col0 * col0 + + col2 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT DISTINCT 49 FROM tab1, tab1 AS cor0 ---- 49 query I rowsort SELECT 16 FROM tab0 cor0 ---- 16 16 16 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2458 SELECT ALL - CAST( NULL AS SIGNED ) * - col1 + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2458 SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( - col2 ) col0 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-2460 SELECT ALL ( - cor0.col2 ) DIV - cor0.col0 + cor0.col0 * + 50 col2 FROM tab2 AS cor0 ---- 353 3900 3950 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2460 SELECT ALL ( - cor0.col2 ) / - cor0.col0 + cor0.col0 * + 50 col2 FROM tab2 AS cor0 ---- 353 3900 3950 query I rowsort SELECT + tab0.col1 + - tab0.col1 AS col1 FROM tab0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + col1 * - col2 - col1 col2 FROM tab2 ---- -1515 -584 -861 query I rowsort SELECT DISTINCT + col2 - col1 * - 68 AS col1 FROM tab0 ---- 5881 6270 6597 query I rowsort SELECT DISTINCT col0 + 74 * tab0.col2 - col1 AS col0 FROM tab0 ---- 12 2380 6066 query I rowsort SELECT col1 + ( - 35 ) AS col1 FROM tab2 ---- -18 -4 24 query I rowsort SELECT tab2.col1 * 32 AS col0 FROM tab2 ---- 1888 544 992 query I rowsort SELECT ALL + 87 + - col0 FROM tab2 AS cor0 ---- 8 80 9 query I rowsort SELECT + ( - col1 ) + + col0 * col1 AS col0 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT + - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to b234798d4706314ba14eaad539d0aa88 query I rowsort SELECT + + 6 * + col1 AS col1 FROM tab0 AS cor0 ---- 516 546 582 query I rowsort SELECT - ( + col2 ) * cor0.col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT - - col0 + col2 * + col0 FROM tab0 cor0 ---- 70 7387 816 query I rowsort SELECT - - col0 + - col2 * col2 * col1 AS col0 FROM tab1 AS cor0 ---- -119728 -32426 -75813 query I rowsort SELECT + col0 + + col1 * - cor0.col1 FROM tab0 AS cor0 ---- -7372 -8192 -9374 onlyif mysql # use DIV operator for integer division query I rowsort label-2475 SELECT + + ( col1 ) DIV - cor0.col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-2475 SELECT + + ( col1 ) / - cor0.col0 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT DISTINCT - ( col0 ) * col2 AS col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + - col0 + - col0 * col1 col2 FROM tab1 AS cor0 ---- -1200 -768 -84 query I rowsort SELECT - col2 * + col0 + + col1 + col2 FROM tab1 AS cor0 ---- -3581 -7571 -82 query I rowsort SELECT ALL - 74 AS col0 FROM tab0 ---- -74 -74 -74 query I rowsort SELECT DISTINCT - cor0.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- -7 -78 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-2481 SELECT ALL + ( - col0 ) DIV tab0.col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2481 SELECT ALL + ( - col0 ) / tab0.col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT + + col1 * + 13 - + col0 AS col1 FROM tab0 AS cor0 ---- 1094 1226 query I rowsort SELECT DISTINCT - 36 AS col1 FROM tab0 AS cor0 ---- -36 query I rowsort SELECT + - ( - col2 ) + col0 FROM tab2 AS cor0 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 43 col1 FROM tab1 AS cor0 ---- -43 query I rowsort SELECT ( 77 ) FROM tab2 AS cor0 ---- 77 77 77 onlyif mysql # use DIV operator for integer division query I rowsort label-2487 SELECT ALL + 22 DIV - 97 + + col0 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-2487 SELECT ALL + 22 / - 97 + + col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ( - 56 ) FROM tab0 AS cor0 ---- -56 -56 -56 query I rowsort SELECT DISTINCT ( 28 ) AS col0 FROM tab1 AS cor0 ---- 28 skipif mysql # not compatible query I rowsort SELECT DISTINCT + col0 * CAST ( 81 * col0 AS REAL ) + col2 * col1 FROM tab0 ---- 49494 649063 99322 query I rowsort SELECT + 47 FROM tab0 cor0 ---- 47 47 47 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 61 col1 FROM tab1 ---- -61 -61 -61 query I rowsort SELECT ALL - - ( col1 ) + + col1 + + col2 AS col0 FROM tab0 AS cor0 ---- 195 205 264 query I rowsort SELECT DISTINCT ( col1 + col1 ) * + col2 AS col2 FROM tab1 ---- 1140 2496 2808 query I rowsort SELECT tab2.col0 * + col2 + + col0 AS col2 FROM tab2 ---- 196 2106 3081 query III rowsort SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > col0 * - col0 ---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col1 / col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2498 SELECT DISTINCT tab1.col1 * col1 DIV col0 - col2 * - col0 FROM tab1 ---- 3649 387 7682 skipif mysql # not compatible query I rowsort label-2498 SELECT DISTINCT tab1.col1 * col1 / col0 - col2 * - col0 FROM tab1 ---- 3649 387 7682 query I rowsort SELECT DISTINCT tab2.col1 * col1 - col2 * tab2.col0 FROM tab2 ---- -2713 1453 772 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 * + col1 ) BETWEEN ( NULL ) AND ( + col2 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT - cor0.col2 + col1 * col0 * + cor0.col2 FROM tab1 AS cor0 ---- 36423 4158 99744 query I rowsort SELECT + col0 + - tab0.col2 * col1 AS col0 FROM tab0 ---- -2814 -62 -7373 query I rowsort SELECT col2 * + tab2.col1 AS col0 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ALL + col1 + - col0 AS col1 FROM tab0 WHERE NOT NULL >= ( - col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2505 SELECT - col1 DIV tab0.col0 FROM tab0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-2505 SELECT - col1 / tab0.col0 FROM tab0 ---- -1 -2 -3 query I rowsort SELECT ALL col0 * - col2 AS col1 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT col0 * + col1 * col2 + col1 AS col2 FROM tab0 ---- 3492 664209 68198 query I rowsort SELECT ALL + tab1.col2 + + col0 + + col1 FROM tab1 ---- 131 189 83 query I rowsort SELECT col0 + col0 * col2 AS col0 FROM tab2 ---- 196 2106 3081 query I rowsort SELECT DISTINCT col0 + col0 AS col0 FROM tab1 ---- 128 160 6 onlyif mysql # use DIV operator for integer division query I rowsort label-2511 SELECT + col1 DIV tab1.col0 FROM tab1 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-2511 SELECT + col1 / tab1.col0 FROM tab1 ---- 0 0 8 onlyif mysql # use DIV operator for integer division query I rowsort label-2512 SELECT DISTINCT - col2 + col2 DIV - col1 + + col2 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-2512 SELECT DISTINCT - col2 + col2 / - col1 + + col2 FROM tab0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - cor0.col0 * cor0.col1 col1 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT + col0 * - col1 * col0 + + cor0.col1 + col1 AS col0 FROM tab2 AS cor0 ---- -106063 -1457 -358838 query I rowsort SELECT - tab0.col2 * col0 * tab0.col2 AS col0 FROM tab0 ---- -26136 -35 -598436 query I rowsort SELECT DISTINCT col2 AS col0 FROM tab2 WHERE col2 * col2 <> NULL ---- query I rowsort SELECT ALL tab1.col1 * col1 * + col0 AS col2 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT ALL + - cor0.col2 * col2 AS col1 FROM tab0 cor0 ---- -1 -1089 -6724 query I rowsort SELECT - + col0 + + cor0.col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + - col2 * + col1 + + col0 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT + col2 * col2 - - col2 * col0 FROM tab1 AS cor0 ---- 16896 3078 6897 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + - col1 col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT + - col0 - col0 FROM tab2 AS cor0 ---- -14 -156 -158 query I rowsort SELECT - col0 + - cor0.col2 * col1 AS col1 FROM tab1 AS cor0 ---- -1328 -1407 -634 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2525 SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-2525 SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + tab2.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT - + col2 * + col2 FROM tab0 cor0 ---- -1 -1089 -6724 query I rowsort SELECT ALL - - cor0.col0 * + ( - col2 ) FROM tab1 AS cor0 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-2529 SELECT col1 DIV + col0 + col1 * + col2 AS col2 FROM tab0 AS cor0 ---- 2841 7463 99 skipif mysql # not compatible query I rowsort label-2529 SELECT col1 / + col0 + col1 * + col2 AS col2 FROM tab0 AS cor0 ---- 2841 7463 99 onlyif mysql # use DIV operator for integer division query I rowsort label-2530 SELECT + col2 DIV - col2 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2530 SELECT + col2 / - col2 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 16 col0 FROM tab1 AS cor0 ---- -16 -16 -16 query I rowsort SELECT DISTINCT cor0.col1 + ( col1 ) FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT - tab0.col0 + - tab0.col2 + + 6 FROM tab0, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to 8ecff7af23d32b38cd2576de87efc016 query I rowsort SELECT DISTINCT 83 AS col2 FROM tab1 AS cor0 ---- 83 query I rowsort SELECT DISTINCT - col0 * + col0 AS col0 FROM tab0 cor0 ---- -1225 -576 -7921 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( - col2 AS REAL ) + col0 AS col1 FROM tab2 AS cor0 ---- -20 41 52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2537 SELECT DISTINCT - CAST( col1 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-2537 SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT - col2 + ( - tab2.col2 ) + col0 * + 60 AS col1 FROM tab2 ---- 366 4628 4664 query I rowsort SELECT DISTINCT + col2 + + col1 AS col2 FROM tab1 ---- 109 67 80 query I rowsort SELECT col1 - 92 AS col0 FROM tab1 ---- -66 -79 -82 query I rowsort SELECT + col2 * - col0 + 29 FROM tab2 ---- -160 -1999 -2973 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 26 + col1 * - col0 col0 FROM tab2 cor0 ---- -1317 -191 -4576 query I rowsort SELECT - col0 - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT DISTINCT - col0 * cor0.col2 + 21 FROM tab2 AS cor0 ---- -168 -2007 -2981 query I rowsort SELECT DISTINCT col0 - col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT - - 80 * - col1 + + col2 FROM tab0 AS cor0 ---- -6847 -7198 -7759 query I rowsort SELECT ALL - 64 * - col0 - - cor0.col0 FROM tab0 AS cor0 ---- 1560 2275 5785 query I rowsort SELECT + ( col0 ) * - col0 + - col0 AS col2 FROM tab1 cor0 ---- -12 -4160 -6480 query I rowsort SELECT + + col2 * col0 + col1 AS col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT - - 89 * - col1 - - col1 FROM tab2 AS cor0 ---- -1496 -2728 -5192 query I rowsort SELECT col2 - col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 81 col0 FROM tab0 ---- 81 81 81 query I rowsort SELECT ALL 24 AS col0 FROM tab0 ---- 24 24 24 query I rowsort SELECT DISTINCT + + cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-2556 SELECT - + 50 * - cor0.col0 + + 12 DIV - col2 col0 FROM tab0 AS cor0 ---- 1200 1738 4450 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2556 SELECT - + 50 * - cor0.col0 + + 12 / - col2 col0 FROM tab0 AS cor0 ---- 1200 1738 4450 query I rowsort SELECT - + cor0.col0 + - col1 * 99 FROM tab0 AS cor0 ---- -8538 -9098 -9638 query I rowsort SELECT + + cor0.col2 + col1 * cor0.col2 AS col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT ALL col0 - col1 * + col2 FROM tab1 ---- -1168 -1401 -506 query I rowsort SELECT ALL - 35 - col0 * + 81 AS col2 FROM tab2 ---- -602 -6353 -6434 query I rowsort SELECT ALL col2 - + col2 * - ( col2 * + col2 ) AS col1 FROM tab2 ---- 17602 19710 54910 query I rowsort SELECT DISTINCT col0 - + col2 FROM tab1 ---- -16 -51 7 query I rowsort SELECT DISTINCT + col2 * ( + col0 + cor0.col1 ) FROM tab0 AS cor0 ---- 132 14760 3630 query I rowsort SELECT ALL + col0 - col0 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2565 SELECT DISTINCT col2 DIV col1 + col1 * col2 * col0 + + col2 AS col0 FROM tab2 AS cor0 ---- 119678 51074 5886 skipif mysql # not compatible query I rowsort label-2565 SELECT DISTINCT col2 / col1 + col1 * col2 * col0 + + col2 AS col0 FROM tab2 AS cor0 ---- 119678 51074 5886 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * + col1 - - col1 col1 FROM tab2 AS cor0 ---- -272 -3422 -930 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + + col1 col2 FROM tab1 ---- 109 67 80 skipif mysql # not compatible query I rowsort SELECT DISTINCT col0 + tab1.col1 * + CAST ( col1 AS REAL ) AS col2 FROM tab1 ---- 164 249 679 query I rowsort SELECT DISTINCT col1 * col2 + ( tab2.col0 ) * col1 * - col0 FROM tab2 ---- -105451 -357422 -682 query I rowsort SELECT + col2 + col2 + - col1 AS col1 FROM tab0 ---- -20 -95 73 query I rowsort SELECT + tab0.col0 * col1 + 33 + col0 AS col1 FROM tab0 ---- 2121 3463 8221 query I rowsort SELECT ALL 34 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa query I rowsort SELECT DISTINCT 34 + + col2 FROM tab1 ---- 130 88 91 onlyif mysql # use DIV operator for integer division query I rowsort label-2574 SELECT DISTINCT ( col1 ) - - ( + col2 ) * - col0 DIV + col0 FROM tab0 ---- 53 9 96 skipif mysql # not compatible query I rowsort label-2574 SELECT DISTINCT ( col1 ) - - ( + col2 ) * - col0 / + col0 FROM tab0 ---- 53 9 96 query I rowsort SELECT - 32 + + col1 - - col0 FROM tab2 ---- 105 6 64 query I rowsort SELECT - 62 + col1 AS col0 FROM tab2 ---- -3 -31 -45 query I rowsort SELECT tab0.col0 + col1 * - col1 * + tab0.col1 + col0 FROM tab0 ---- -636008 -753393 -912603 query I rowsort SELECT ALL + col0 * col2 * - 22 - tab2.col2 * + col1 * + col2 FROM tab2 ---- -26757 -84500 -90592 onlyif mysql # use DIV operator for integer division query I rowsort label-2579 SELECT DISTINCT tab2.col2 + + tab2.col0 DIV 55 FROM tab2 ---- 27 39 skipif mysql # not compatible query I rowsort label-2579 SELECT DISTINCT tab2.col2 + + tab2.col0 / 55 FROM tab2 ---- 27 39 query I rowsort SELECT col1 * - tab1.col1 FROM tab1 ---- -100 -169 -676 query I rowsort SELECT DISTINCT 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 63 onlyif mysql # use DIV operator for integer division query I rowsort label-2582 SELECT ALL tab0.col1 + - col2 DIV col1 AS col1 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-2582 SELECT ALL tab0.col1 + - col2 / col1 AS col1 FROM tab0 ---- 86 91 97 onlyif mysql # use DIV operator for integer division query I rowsort label-2583 SELECT DISTINCT + col2 DIV 92 + 97 col1 FROM tab2 cor0 ---- 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2583 SELECT DISTINCT + col2 / 92 + 97 col1 FROM tab2 cor0 ---- 97 query I rowsort SELECT DISTINCT + col0 - cor0.col1 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT + + col2 + 80 AS col0 FROM tab1 AS cor0 ---- 134 137 176 query I rowsort SELECT ALL - cor0.col0 + 93 * + 20 AS col2 FROM tab1 AS cor0 ---- 1780 1796 1857 query I rowsort SELECT + col1 - ( 42 + col1 ) FROM tab0 AS cor0 ---- -42 -42 -42 query I rowsort SELECT + + col1 + cor0.col1 * cor0.col1 * - cor0.col1 FROM tab1 AS cor0 ---- -17550 -2184 -990 onlyif mysql # use DIV operator for integer division query I rowsort label-2589 SELECT ALL - + col0 DIV col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2589 SELECT ALL - + col0 / col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2590 SELECT DISTINCT - col1 * col0 + + 26 DIV - col2 FROM tab0 AS cor0 ---- -2064 -3421 -8099 skipif mysql # not compatible query I rowsort label-2590 SELECT DISTINCT - col1 * col0 + + 26 / - col2 FROM tab0 AS cor0 ---- -2064 -3421 -8099 query I rowsort SELECT cor0.col1 + ( cor0.col0 ) FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT col1 * ( col0 ) FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT col1 - - col1 AS col1 FROM tab1 AS cor0 ---- 20 26 52 onlyif mysql # use DIV operator for integer division query I rowsort label-2594 SELECT ALL + cor0.col2 DIV - col0 + col2 FROM tab0 AS cor0 ---- 1 32 82 skipif mysql # not compatible query I rowsort label-2594 SELECT ALL + cor0.col2 / - col0 + col2 FROM tab0 AS cor0 ---- 1 32 82 onlyif mysql # use DIV operator for integer division query I rowsort label-2595 SELECT ALL + col2 DIV - CAST( col1 * col2 AS SIGNED ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2595 SELECT ALL + col2 / - CAST ( col1 * col2 AS INTEGER ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col2 * - ( + col0 ) + - cor0.col0 FROM tab2 cor0 ---- 182 1950 2923 onlyif mysql # use DIV operator for integer division query I rowsort label-2597 SELECT + col2 + 92 DIV - col0 AS col2 FROM tab1 AS cor0 ---- 24 56 95 skipif mysql # not compatible query I rowsort label-2597 SELECT + col2 + 92 / - col0 AS col2 FROM tab1 AS cor0 ---- 24 56 95 query I rowsort SELECT DISTINCT - - col2 * - col2 + - col0 FROM tab0 AS cor0 ---- -1113 -36 -6813 query I rowsort SELECT ALL ( + 31 ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to c3c6f92f0ca72d71793339f88a57e336 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 93 col1 FROM tab1 ---- -93 -93 -93 query I rowsort SELECT DISTINCT - + col1 * col2 * col2 AS col0 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT 83 * col1 AS col1 FROM tab2 cor0 ---- 1411 2573 4897 query I rowsort SELECT cor0.col1 * - col1 FROM tab2 AS cor0 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * 47 col2 FROM tab1 AS cor0 ---- -1222 -470 -611 query I rowsort SELECT ALL - - col1 + + col1 AS col2 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT col1 + - col2 * + ( 60 + col0 ) FROM tab0 AS cor0 ---- -12127 -2686 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col1 + 78 col1 FROM tab1 AS cor0 ---- 178 247 754 query I rowsort SELECT DISTINCT - - col2 + - col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT - 22 AS col2 FROM tab0 AS cor0 ---- -22 query I rowsort SELECT + col1 * + cor0.col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT + col2 + + col0 * col1 AS col0 FROM tab1 ---- 1136 132 697 query I rowsort SELECT ALL - + col1 * + col1 + - ( col0 + cor0.col2 * + col1 ) FROM tab2 cor0 ---- -1014 -1805 -5093 query I rowsort SELECT - - ( + col2 ) FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT 74 FROM tab2 AS cor0 ---- 74 74 74 query I rowsort SELECT ALL - cor0.col1 * col1 + - 89 FROM tab1 AS cor0 ---- -189 -258 -765 query I rowsort SELECT ALL - col0 * - col0 + - col1 * 25 AS col2 FROM tab2 AS cor0 ---- -726 4609 5816 query I rowsort SELECT DISTINCT - 89 + + col1 * 46 - + col1 FROM tab2 AS cor0 ---- 1306 2566 676 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2 ---- 3645 values hashing to 2270901c73a658a63f841c68db8155ba query I rowsort SELECT ALL - col1 * 47 FROM tab1 AS cor0 ---- -1222 -470 -611 query I rowsort SELECT ALL - - col2 + - col2 FROM tab1 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2621 SELECT CAST( NULL AS SIGNED ) * + 2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2621 SELECT CAST ( NULL AS INTEGER ) * + 2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * + 89 col0 FROM tab2 AS cor0 ---- 2314 2403 3382 query I rowsort SELECT ALL + + 74 AS col2 FROM tab0 cor0 ---- 74 74 74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 48 col0 FROM tab1 AS cor0 ---- -48 query I rowsort SELECT DISTINCT + tab2.col0 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1 ---- 7 78 79 query I rowsort SELECT DISTINCT + + 43 AS col2 FROM tab0 AS cor0 ---- 43 query I rowsort SELECT DISTINCT 71 AS col0 FROM tab2 AS cor0 ---- 71 query I rowsort SELECT - + 14 FROM tab0 cor0 ---- -14 -14 -14 query I rowsort SELECT - - 71 * + col0 AS col0 FROM tab1 AS cor0 ---- 213 4544 5680 query I rowsort SELECT DISTINCT + + col0 + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-2631 SELECT - col2 DIV 4 + - cor0.col0 FROM tab2 AS cor0 ---- -13 -84 -88 skipif mysql # not compatible query I rowsort label-2631 SELECT - col2 / 4 + - cor0.col0 FROM tab2 AS cor0 ---- -13 -84 -88 query I rowsort SELECT DISTINCT cor0.col0 + - col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - cor0.col1 + + 83 AS col2 FROM tab2 AS cor0 ---- 24 52 66 query I rowsort SELECT DISTINCT + - col0 * + col1 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL col1 + - col0 AS col0 FROM tab0 ---- 2 62 62 query I rowsort SELECT col2 * ( col1 ) + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 1612 725 844 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 46 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 2f97924b57b73102233df7c9ce8ad602 query I rowsort SELECT ALL col1 + + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + + ( col2 ) + col2 * - 99 col0 FROM tab0 AS cor0 ---- -1 -3148 -7945 onlyif mysql # use DIV operator for integer division query I rowsort label-2640 SELECT DISTINCT + col0 DIV ( col1 ) + col1 AS col2 FROM tab2 AS cor0 ---- 21 31 60 skipif mysql # not compatible query I rowsort label-2640 SELECT DISTINCT + col0 / ( col1 ) + col1 AS col2 FROM tab2 AS cor0 ---- 21 31 60 query I rowsort SELECT DISTINCT + + cor0.col0 * - col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-2642 SELECT DISTINCT + col0 DIV ( col1 ) AS col0 FROM tab1 AS cor0 ---- 0 6 skipif mysql # not compatible query I rowsort label-2642 SELECT DISTINCT + col0 / ( col1 ) AS col0 FROM tab1 AS cor0 ---- 0 6 onlyif mysql # use DIV operator for integer division query I rowsort label-2643 SELECT + - col2 DIV col0 + col2 * - col0 FROM tab2 AS cor0 ---- -192 -2028 -3002 skipif mysql # not compatible query I rowsort label-2643 SELECT + - col2 / col0 + col2 * - col0 FROM tab2 AS cor0 ---- -192 -2028 -3002 query I rowsort SELECT + 32 * cor0.col1 + col2 AS col0 FROM tab0 AS cor0 ---- 2785 2994 3105 query I rowsort SELECT - col2 * cor0.col2 * + col2 AS col0 FROM tab0 AS cor0 ---- -1 -35937 -551368 query I rowsort SELECT + + 39 * + 37 AS col1 FROM tab1 AS cor0 ---- 1443 1443 1443 query I rowsort SELECT DISTINCT - 90 + - cor0.col0 AS col1 FROM tab0 AS cor0 ---- -114 -125 -179 query I rowsort SELECT + col1 + col0 * - col2 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT ALL + ( + col0 ) FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT ALL + + col0 * - col1 * col0 AS col1 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT - 66 * + 21 + - col0 FROM tab1 AS cor0 ---- -1389 -1450 -1466 query I rowsort SELECT col1 + + 63 AS col0 FROM tab1 ---- 73 76 89 onlyif mysql # use DIV operator for integer division query I rowsort label-2653 SELECT + col2 DIV tab0.col1 + tab0.col2 + col0 FROM tab0 ---- 171 36 57 skipif mysql # not compatible query I rowsort label-2653 SELECT + col2 / tab0.col1 + tab0.col2 + col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT ALL col0 + + col0 AS col2 FROM tab1 ---- 128 160 6 onlyif mysql # use DIV operator for integer division query I rowsort label-2655 SELECT - col0 * - 82 + tab0.col0 DIV - col2 + + 0 FROM tab0 ---- 1968 2835 7297 skipif mysql # not compatible query I rowsort label-2655 SELECT - col0 * - 82 + tab0.col0 / - col2 + + 0 FROM tab0 ---- 1968 2835 7297 query I rowsort SELECT ALL - 72 - + 16 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 467301f887614eb7beda22c561b0fad2 query I rowsort SELECT ALL - 42 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 9894093f29c0defae91347934f060329 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + - col0 col0 FROM tab1 ---- -7 16 51 query I rowsort SELECT ALL cor0.col1 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2660 SELECT - + CAST( NULL AS SIGNED ) + + 92 * col0 * col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2660 SELECT - + CAST ( NULL AS INTEGER ) + + 92 * col0 * col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 97 FROM tab1, tab0 AS cor0 ---- 9 values hashing to e4a6bd848a69226cbb7ad3d154be321b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor1.col1 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2 ---- 86 91 97 query I rowsort SELECT DISTINCT 86 * 16 FROM tab2, tab2 AS cor0 ---- 1376 query I rowsort SELECT DISTINCT - col2 + - 36 FROM tab0 ---- -118 -37 -69 query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab1 cor0, tab2, tab2 cor1 ---- 972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859 query I rowsort SELECT + col1 + - col1 - col1 AS col2 FROM tab0 AS cor0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col2 col1 FROM tab2 AS cor0 ---- 52 54 76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor1.col1 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT - 76 AS col2 FROM tab2 ---- -76 -76 -76 query I rowsort SELECT + 73 FROM tab1 AS cor0 ---- 73 73 73 onlyif mysql # use DIV operator for integer division query I rowsort label-2671 SELECT ALL - 57 + 3 DIV + cor0.col2 FROM tab0 AS cor0 ---- -54 -57 -57 skipif mysql # not compatible query I rowsort label-2671 SELECT ALL - 57 + 3 / + cor0.col2 FROM tab0 AS cor0 ---- -54 -57 -57 query I rowsort SELECT ALL 57 * tab0.col2 * - col0 FROM tab0 ---- -1995 -415986 -45144 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col2 col1 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT - 30 AS col1 FROM tab0 ---- -30 -30 -30 query I rowsort SELECT col2 + + col1 AS col2 FROM tab0 cor0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 * + 53 col1 FROM tab0 cor0 ---- -1749 -4346 -53 query I rowsort SELECT ALL col2 + col2 * + cor0.col0 FROM tab2 AS cor0 ---- 2054 216 3040 onlyif mysql # use DIV operator for integer division query I rowsort label-2678 SELECT DISTINCT - col1 + + 79 DIV + col0 AS col1 FROM tab0 AS cor0 ---- -83 -91 -95 skipif mysql # not compatible query I rowsort label-2678 SELECT DISTINCT - col1 + + 79 / + col0 AS col1 FROM tab0 AS cor0 ---- -83 -91 -95 onlyif mysql # use DIV operator for integer division query I rowsort label-2679 SELECT ALL + + cor0.col2 * col1 DIV - col1 + col2 * col1 FROM tab1 AS cor0 ---- 1152 1350 513 skipif mysql # not compatible query I rowsort label-2679 SELECT ALL + + cor0.col2 * col1 / - col1 + col2 * col1 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT - col2 * + ( cor0.col0 ) - col2 AS col0 FROM tab1 cor0 ---- -216 -3705 -7776 query I rowsort SELECT DISTINCT + col1 * col2 + + col0 * col2 AS col0 FROM tab2 cor0 ---- 1026 3562 3648 query I rowsort SELECT DISTINCT col1 + col0 * - col1 AS col0 FROM tab2 cor0 ---- -1326 -186 -4543 query I rowsort SELECT - - col1 + + 0 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + ( - col2 ) - - col0 * col1 FROM tab0 ---- 2031 3394 8017 query I rowsort SELECT DISTINCT + 8 + + col2 * - tab0.col1 FROM tab0 ---- -2830 -7454 -89 query I rowsort SELECT DISTINCT col1 + - col2 + + ( 88 ) AS col2 FROM tab0 ---- 141 184 97 query I rowsort SELECT - col0 * + col2 * col0 AS col1 FROM tab2 ---- -1323 -158184 -237158 query I rowsort SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT - col2 * - col2 - + 78 AS col2 FROM tab0 cor0 ---- -77 1011 6646 query I rowsort SELECT + - 9 + col2 FROM tab0 cor0 ---- -8 24 73 query I rowsort SELECT - ( col1 ) + col0 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT col1 + + ( cor0.col0 ) * cor0.col1 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT ALL - + col1 * + ( col1 ) AS col1 FROM tab1 cor0 ---- -100 -169 -676 onlyif mysql # use DIV operator for integer division query I rowsort label-2694 SELECT ALL - col2 + - col2 DIV - col0 FROM tab1 AS cor0 ---- -36 -57 -95 skipif mysql # not compatible query I rowsort label-2694 SELECT ALL - col2 + - col2 / - col0 FROM tab1 AS cor0 ---- -36 -57 -95 query I rowsort SELECT DISTINCT + col0 + + 98 - + col2 FROM tab1 AS cor0 ---- 105 47 82 query I rowsort SELECT ALL - cor0.col1 * - 78 AS col0 FROM tab1 AS cor0 ---- 1014 2028 780 query I rowsort SELECT DISTINCT col1 + 78 AS col2 FROM tab1 AS cor0 ---- 104 88 91 query I rowsort SELECT col1 + ( - col0 ) FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT + + cor0.col1 + col2 * - col2 FROM tab1 AS cor0 ---- -2890 -3239 -9203 query I rowsort SELECT + - col0 * col0 AS col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT ALL ( col0 ) * - col1 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT ALL tab1.col0 * + col1 AS col0 FROM tab1 ---- 1040 640 78 query I rowsort SELECT 0 * - tab1.col1 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col0 + cor0.col0 * - col2 col0 FROM tab2 AS cor0 ---- -1659 2574 28 query I rowsort SELECT - 37 AS col2 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 395d44ccbce08828bc493e93ec3d9207 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + col1 col0 FROM tab2 ---- 0 0 0 query III rowsort SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND NULL ---- query III rowsort SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 ) ---- query I rowsort SELECT DISTINCT tab2.col2 * tab2.col1 * - col1 - col2 FROM tab2 ---- -11020 -25974 -90532 query I rowsort SELECT ALL col1 * col2 + - col2 FROM tab1 ---- 1152 1350 513 query I rowsort SELECT DISTINCT tab2.col2 * + col0 FROM tab2 WHERE NULL IN ( tab2.col1 * - col2 ) ---- query I rowsort SELECT ALL col1 * col1 - + col0 AS col1 FROM tab2 ---- 210 3403 954 query I rowsort SELECT + col2 + col2 + + tab2.col1 * + col0 FROM tab2 ---- 1419 271 4654 query I rowsort SELECT - col1 FROM tab2 WHERE NOT NULL IN ( col1 ) ---- query I rowsort SELECT ALL - col1 * - col1 + col2 FROM tab0 WHERE - col2 / col0 BETWEEN NULL AND col2 ---- query I rowsort SELECT col2 FROM tab2 WHERE NULL < NULL ---- query I rowsort SELECT ALL col0 * + col2 + - col1 AS col0 FROM tab1 ---- 136 3638 7667 query I rowsort SELECT DISTINCT + col1 + - col1 AS col1 FROM tab0 ---- 0 query I rowsort SELECT DISTINCT - col2 - + col0 * col0 * - col1 FROM tab2 ---- 106059 1492 358930 onlyif mysql # use DIV operator for integer division query I rowsort label-2720 SELECT col1 DIV tab2.col1 + + col1 AS col0 FROM tab2 ---- 18 32 60 skipif mysql # not compatible query I rowsort label-2720 SELECT col1 / tab2.col1 + + col1 AS col0 FROM tab2 ---- 18 32 60 query I rowsort SELECT ALL - col2 + tab0.col2 FROM tab0 ---- 0 0 0 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN col1 AND NULL ---- query I rowsort SELECT ALL 79 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1 query I rowsort SELECT - col2 + + cor0.col1 + + col0 FROM tab1 AS cor0 ---- -25 -3 17 query I rowsort SELECT + col2 + col0 - col0 AS col1 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT - col0 + tab2.col1 * - col1 FROM tab2 ---- -3559 -368 -968 onlyif mysql # use DIV operator for integer division query I rowsort label-2727 SELECT ALL tab2.col0 + col1 DIV - col0 AS col1 FROM tab2 ---- 3 78 79 skipif mysql # not compatible query I rowsort label-2727 SELECT ALL tab2.col0 + col1 / - col0 AS col1 FROM tab2 ---- 3 78 79 query I rowsort SELECT + col0 FROM tab1 WHERE NOT - col1 <> NULL ---- query I rowsort SELECT ALL col2 * col1 + col1 AS col1 FROM tab0 ---- 194 2924 7553 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND col0 * col0 * tab1.col2 - - col1 ---- query I rowsort SELECT + col2 + + col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 AND NULL ---- query I rowsort SELECT DISTINCT + col1 + col2 * col2 + - col2 AS col2 FROM tab0 AS cor0 ---- 1142 6733 97 query I rowsort SELECT ALL + col0 - col0 * + 33 FROM tab0 AS cor0 ---- -1120 -2848 -768 query I rowsort SELECT DISTINCT - + col1 * + col2 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT 42 + col0 * + ( col1 ) AS col1 FROM tab2 AS cor0 ---- 1385 259 4644 query I rowsort SELECT - 6 AS col0 FROM tab0 cor0 ---- -6 -6 -6 query I rowsort SELECT ALL - - col2 + + col2 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT - + ( + col2 ) AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT - + cor0.col2 + - col1 AS col0 FROM tab1 AS cor0 ---- -109 -67 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-2740 SELECT ALL 46 DIV col0 + col1 + - col2 DIV col0 AS col1 FROM tab1 AS cor0 ---- 10 12 23 skipif mysql # not compatible query I rowsort label-2740 SELECT ALL 46 / col0 + col1 + - col2 / col0 AS col1 FROM tab1 AS cor0 ---- 10 12 23 query I rowsort SELECT DISTINCT - 46 - + col2 * + cor0.col0 AS col0 FROM tab2 cor0 ---- -2074 -235 -3048 query I rowsort SELECT ALL + 49 FROM tab0 AS cor0 ---- 49 49 49 query I rowsort SELECT DISTINCT col1 * col0 + 12 AS col0 FROM tab0 AS cor0 ---- 2076 3407 8111 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + - cor0.col1 - cor0.col0 col1 FROM tab2 AS cor0 ---- -11 -111 -58 query I rowsort SELECT + ( cor0.col1 ) AS col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL + + col1 * col1 + - col1 AS col2 FROM tab1 AS cor0 ---- 156 650 90 query I rowsort SELECT + 64 AS col2 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9 query I rowsort SELECT ALL 57 FROM tab2 ---- 57 57 57 query I rowsort SELECT DISTINCT - ( col1 ) AS col1 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT + 4 + cor0.col2 * - cor0.col0 FROM tab1 AS cor0 ---- -158 -3644 -7676 query I rowsort SELECT - 86 FROM tab0 cor0 ---- -86 -86 -86 query I rowsort SELECT DISTINCT 55 FROM tab0 AS cor0 ---- 55 query I rowsort SELECT ALL - 48 + - col0 + cor0.col0 FROM tab0 AS cor0 ---- -48 -48 -48 query I rowsort SELECT DISTINCT - - cor0.col2 * - 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- -2268 -2394 -4032 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2755 SELECT DISTINCT cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 cor0, tab1 cor1 ---- NULL skipif mysql # not compatible query I rowsort label-2755 SELECT DISTINCT cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 cor0, tab1 cor1 ---- NULL query I rowsort SELECT col1 * col0 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT + - col1 * col2 + col0 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT ALL - ( - 10 + col0 ) * + 34 FROM tab2 ---- -2312 -2346 102 query I rowsort SELECT DISTINCT + col1 * - col2 AS col1 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT ALL ( - tab2.col0 ) AS col1 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT - col2 + + col2 * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 162 2002 2964 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2762 SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2762 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2763 SELECT ALL col0 + 19 + - col1 * col2 DIV cor0.col1 col0 FROM tab1 AS cor0 ---- -32 26 3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2763 SELECT ALL col0 + 19 + - col1 * col2 / cor0.col1 col0 FROM tab1 AS cor0 ---- -32 26 3 query I rowsort SELECT DISTINCT + + col0 + + col1 AS col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL col1 * - col2 + - col1 * + 36 AS col1 FROM tab2 AS cor0 ---- -1258 -1953 -3658 query I rowsort SELECT - + 80 AS col0 FROM tab0 AS cor0 ---- -80 -80 -80 query I rowsort SELECT ALL + + 39 * cor0.col1 FROM tab0 AS cor0 ---- 3354 3549 3783 query I rowsort SELECT ALL col2 + - cor0.col2 * - col2 FROM tab2 cor0 ---- 1482 702 756 query I rowsort SELECT DISTINCT col0 + - cor0.col1 FROM tab0 AS cor0 ---- -2 -62 query I rowsort SELECT - col1 - + col2 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT - cor0.col0 + - col1 FROM tab1 cor0 ---- -29 -74 -93 query I rowsort SELECT col1 * col0 * 23 + + col1 + col1 * - 25 * - col0 FROM tab2 ---- 10447 220955 64481 query I rowsort SELECT DISTINCT - 79 + - col0 AS col2 FROM tab0 ---- -103 -114 -168 query I rowsort SELECT - col0 + - col2 * tab1.col0 AS col1 FROM tab1 ---- -165 -3712 -7760 query I rowsort SELECT DISTINCT col2 + col0 * col0 AS col2 FROM tab2 ---- 6110 6279 76 query I rowsort SELECT DISTINCT col0 * col1 + - col0 * + tab2.col0 AS col1 FROM tab2 ---- -1482 -4898 168 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 34 col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 1146d159f0b9b4378a8b738b963f7039 query I rowsort SELECT ALL + - col0 * col1 * - 81 AS col2 FROM tab1 cor0 ---- 51840 6318 84240 query I rowsort SELECT DISTINCT + col2 * - 76 + + 23 + + col1 AS col2 FROM tab1 AS cor0 ---- -4055 -4299 -7260 query I rowsort SELECT DISTINCT + col1 * 83 FROM tab2 AS cor0 ---- 1411 2573 4897 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 * - ( - col2 * col2 ) + cor0.col0 * - 60 * col2 col1 FROM tab1 AS cor0 ---- -1198080 -18468 -426816 query I rowsort SELECT - col1 + - col0 * ( col0 ) FROM tab0 AS cor0 ---- -1322 -662 -8012 query I rowsort SELECT DISTINCT + 69 FROM tab1, tab0 cor0 ---- 69 query I rowsort SELECT DISTINCT - tab1.col1 * 50 AS col2 FROM tab1 ---- -1300 -500 -650 query I rowsort SELECT ALL + col1 + 9 - - col0 * - 8 AS col2 FROM tab2 AS cor0 ---- -16 -556 -606 query I rowsort SELECT - + 71 AS col1 FROM tab2 AS cor0 ---- -71 -71 -71 onlyif mysql # use DIV operator for integer division query I rowsort label-2787 SELECT DISTINCT col0 DIV - ( - col1 ) + ( + 1 * col2 ) AS col0 FROM tab0 cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-2787 SELECT DISTINCT col0 / - ( - col1 ) + ( + 1 * col2 ) AS col0 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT ALL - - col1 * + cor0.col0 + - 65 * 7 * cor0.col1 FROM tab0 cor0 ---- -33306 -37066 -40740 query I rowsort SELECT ALL + 91 FROM tab0 ---- 91 91 91 query I rowsort SELECT col1 + + cor0.col0 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT - + col1 * - col2 + - 35 FROM tab0 AS cor0 ---- 2803 62 7427 query I rowsort SELECT col2 * - cor0.col2 - + col0 * + 60 AS col2 FROM tab2 AS cor0 ---- -1149 -5356 -6184 query I rowsort SELECT ALL + + 59 + - col0 FROM tab0 AS cor0 ---- -30 24 35 query I rowsort SELECT + col2 * - col2 + + 99 FROM tab0 AS cor0 ---- -6625 -990 98 query I rowsort SELECT 39 AS col2 FROM tab1 ---- 39 39 39 query I rowsort SELECT DISTINCT + tab2.col1 FROM tab2, tab2 AS cor0, tab1 cor1 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 56 col2 FROM tab2 ---- 56 56 56 query I rowsort SELECT - 96 FROM tab2 cor0 ---- -96 -96 -96 query I rowsort SELECT + 41 AS col0 FROM tab0 AS cor0 ---- 41 41 41 query I rowsort SELECT + cor0.col2 * cor0.col1 AS col1 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT 69 * col0 FROM tab1 AS cor0 ---- 207 4416 5520 query I rowsort SELECT + col0 * - cor0.col2 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT - - col0 * - ( col1 ) + - col0 AS col1 FROM tab0 AS cor0 ---- -2088 -3430 -8188 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2804 SELECT - col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2804 SELECT - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - col2 * + ( col2 ) FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT col2 * - col0 - + ( - cor0.col2 ) * + col2 AS col2 FROM tab2 AS cor0 ---- -1352 -1558 540 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 24 col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef query I rowsort SELECT + + cor0.col2 * - 93 + - col1 FROM tab1 AS cor0 ---- -5048 -5311 -8941 query I rowsort SELECT 43 AS col2 FROM tab0 ---- 43 43 43 query I rowsort SELECT + 55 AS col1 FROM tab2 ---- 55 55 55 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab0 cor0, tab2 cor1, tab2, tab2 cor2 ---- 3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db query I rowsort SELECT DISTINCT + 13 * 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 403 onlyif mysql # use DIV operator for integer division query I rowsort label-2813 SELECT - ( col0 ) + ( + cor0.col0 ) * - col1 DIV col1 AS col0 FROM tab2 cor0 ---- -14 -156 -158 skipif mysql # not compatible query I rowsort label-2813 SELECT - ( col0 ) + ( + cor0.col0 ) * - col1 / col1 AS col0 FROM tab2 cor0 ---- -14 -156 -158 onlyif mysql # use DIV operator for integer division query I rowsort label-2814 SELECT + col1 * + col0 DIV - col0 FROM tab2 AS cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-2814 SELECT + col1 * + col0 / - col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT ALL col0 * + 7 AS col1 FROM tab0 ---- 168 245 623 query I rowsort SELECT 50 FROM tab1, tab2 AS cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 query I rowsort SELECT DISTINCT col1 * - col2 + col1 - cor0.col2 FROM tab2 AS cor0 ---- -1501 -667 -833 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 + + col1 + col1 col1 FROM tab0 AS cor0 ---- 196 229 271 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 AS cor1, tab0, tab1 AS cor2 ---- 3645 values hashing to 29937e0f604055b7324ce0c354a5e778 query I rowsort SELECT ALL col1 * col1 + - col1 + col1 * + cor0.col1 FROM tab1 AS cor0 ---- 1326 190 325 query I rowsort SELECT DISTINCT - 12 + - cor0.col0 FROM tab0 AS cor0 ---- -101 -36 -47 query I rowsort SELECT 6 FROM tab0 AS cor0 ---- 6 6 6 query I rowsort SELECT DISTINCT tab2.col1 + col0 AS col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT DISTINCT 17 + - col2 AS col1 FROM tab1 ---- -37 -40 -79 query I rowsort SELECT DISTINCT - ( col2 ) + col1 * tab0.col0 FROM tab0 ---- 2031 3394 8017 onlyif mysql # use DIV operator for integer division query I rowsort label-2826 SELECT 17 DIV - col0 + col1 * CAST( 99 AS SIGNED ) + - col2 FROM tab0 ---- 8481 8927 9602 skipif mysql # not compatible query I rowsort label-2826 SELECT 17 / - col0 + col1 * CAST ( 99 AS INTEGER ) + - col2 FROM tab0 ---- 8481 8927 9602 query I rowsort SELECT 24 + col0 + col1 AS col0 FROM tab1 ---- 117 53 98 query I rowsort SELECT DISTINCT - tab2.col0 FROM tab2, tab1, tab0 cor0 ---- -7 -78 -79 query I rowsort SELECT 35 AS col1 FROM tab0 ---- 35 35 35 query I rowsort SELECT ALL - ( + 23 ) - + col1 AS col1 FROM tab1 ---- -33 -36 -49 query I rowsort SELECT 77 * - col2 AS col0 FROM tab0 ---- -2541 -6314 -77 query I rowsort SELECT DISTINCT - - 51 + - ( col2 ) FROM tab2 AS cor0 ---- 13 24 25 onlyif mysql # use DIV operator for integer division query I rowsort label-2833 SELECT ALL + col1 * 3 + - col1 DIV col1 AS col2 FROM tab1 AS cor0 ---- 29 38 77 skipif mysql # not compatible query I rowsort label-2833 SELECT ALL + col1 * 3 + - col1 / col1 AS col2 FROM tab1 AS cor0 ---- 29 38 77 query I rowsort SELECT + 5 + col0 AS col1 FROM tab0 AS cor0 ---- 29 40 94 query I rowsort SELECT ALL 90 + - cor0.col1 FROM tab0 AS cor0 ---- -1 -7 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + ( 16 ) col2 FROM tab1 AS cor0 ---- 16 16 16 query I rowsort SELECT DISTINCT - + ( col0 ) AS col1 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT 94 + - col1 * col0 FROM tab0 AS cor0 ---- -1970 -3301 -8005 query I rowsort SELECT ALL - 71 * - cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to acdeb6aa6fcec40cdc845ab87fe943cc query I rowsort SELECT col0 - tab2.col2 * + col2 FROM tab2 ---- -1365 -598 -722 query I rowsort SELECT ALL - tab1.col0 AS col2 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT + + col1 * col2 AS col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT - 91 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- -91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 * - col1 + ( cor0.col2 ) * col0 col1 FROM tab1 AS cor0 ---- -1242 3078 6432 query I rowsort SELECT - + col2 * 53 FROM tab0 AS cor0 ---- -1749 -4346 -53 query I rowsort SELECT - col2 + col1 * 90 AS col1 FROM tab0 AS cor0 ---- 7707 8108 8729 query I rowsort SELECT DISTINCT - + col2 * 31 AS col1 FROM tab0 AS cor0 ---- -1023 -2542 -31 query I rowsort SELECT DISTINCT col1 + + col2 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT - + col0 * + 88 AS col2 FROM tab1 cor0 ---- -264 -5632 -7040 query I rowsort SELECT - col0 + col0 * col2 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT ALL cor0.col0 + col1 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT + col2 * 49 AS col1 FROM tab2 AS cor0 ---- 1274 1323 1862 query I rowsort SELECT DISTINCT col0 + + 17 FROM tab1 AS cor0 ---- 20 81 97 query I rowsort SELECT ALL + cor0.col0 - + col0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - ( + 38 ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to e8c064543bf0f2e57329db1bb0a411e3 query I rowsort SELECT DISTINCT + - cor0.col1 * + col1 * col1 AS col1 FROM tab1 AS cor0 ---- -1000 -17576 -2197 onlyif mysql # use DIV operator for integer division query I rowsort label-2857 SELECT ALL + col2 DIV ( 46 ) FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2857 SELECT ALL + col2 / ( 46 ) FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2858 SELECT DISTINCT - + cor0.col0 DIV - ( + col0 ) + + col2 AS col2 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-2858 SELECT DISTINCT - + cor0.col0 / - ( + col0 ) + + col2 AS col2 FROM tab1 AS cor0 ---- 55 58 97 query I rowsort SELECT ALL - col1 * 59 * 31 + - col0 AS col2 FROM tab0 AS cor0 ---- -157318 -166528 -177448 onlyif mysql # use DIV operator for integer division query I rowsort label-2860 SELECT + col1 + + col0 DIV 58 FROM tab2 AS cor0 ---- 18 31 60 skipif mysql # not compatible query I rowsort label-2860 SELECT + col1 + + col0 / 58 FROM tab2 AS cor0 ---- 18 31 60 query I rowsort SELECT DISTINCT - + col2 * ( col2 * + col2 ) + col1 FROM tab2 AS cor0 ---- -17517 -19652 -54855 query I rowsort SELECT DISTINCT col0 * + tab1.col0 * col1 AS col2 FROM tab1 ---- 234 40960 83200 query I rowsort SELECT ALL + ( - cor0.col1 ) AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 query I rowsort SELECT ALL 22 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9 query I rowsort SELECT + cor0.col2 * + col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT col1 * ( - col1 ) FROM tab2 AS cor0 ---- -289 -3481 -961 onlyif mysql # use DIV operator for integer division query I rowsort label-2867 SELECT cor0.col1 * + col0 + + col0 DIV - col1 AS col1 FROM tab1 AS cor0 ---- 1034 634 78 skipif mysql # not compatible query I rowsort label-2867 SELECT cor0.col1 * + col0 + + col0 / - col1 AS col1 FROM tab1 AS cor0 ---- 1034 634 78 query I rowsort SELECT col0 + cor0.col1 * col2 AS col1 FROM tab2 cor0 ---- 1612 725 844 query I rowsort SELECT - ( col1 ) * col2 AS col0 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL - - 58 AS col1 FROM tab2 AS cor0 ---- 58 58 58 query I rowsort SELECT ALL + 53 + col1 * - col2 FROM tab2 AS cor0 ---- -1481 -593 -784 onlyif mysql # use DIV operator for integer division query I rowsort label-2872 SELECT col1 + - col0 DIV col0 AS col2 FROM tab1 AS cor0 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-2872 SELECT col1 + - col0 / col0 AS col2 FROM tab1 AS cor0 ---- 12 25 9 query I rowsort SELECT ( - col2 ) + - cor0.col1 * - cor0.col1 FROM tab2 cor0 ---- 251 3455 934 query I rowsort SELECT DISTINCT + 78 * - col0 FROM tab2 AS cor0 ---- -546 -6084 -6162 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2875 SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2875 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL - cor0.col0 * + 97 FROM tab0 AS cor0 ---- -2328 -3395 -8633 query I rowsort SELECT DISTINCT ( ( - col2 ) ) + col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT 85 - tab0.col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to dd7de3faf507aef2edb7093685bc0283 query I rowsort SELECT ALL - tab2.col0 * - col0 * + 87 FROM tab2 ---- 4263 529308 542967 query I rowsort SELECT DISTINCT 26 FROM tab2, tab1 AS cor0 ---- 26 query I rowsort SELECT - col0 * col2 * col0 AS col1 FROM tab0 AS cor0 ---- -1225 -19008 -649522 query I rowsort SELECT 71 * - col2 AS col2 FROM tab1 cor0 ---- -3834 -4047 -6816 onlyif mysql # use DIV operator for integer division query I rowsort label-2883 SELECT col1 DIV ( col2 ) + col0 * - 48 AS col0 FROM tab0 ---- -1150 -1583 -4271 skipif mysql # not compatible query I rowsort label-2883 SELECT col1 / ( col2 ) + col0 * - 48 AS col0 FROM tab0 ---- -1150 -1583 -4271 query I rowsort SELECT tab2.col1 + - col2 * + col2 FROM tab2 ---- -1427 -617 -698 query I rowsort SELECT ALL + - col0 + + col2 * 98 AS col0 FROM tab0 cor0 ---- 3210 63 7947 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2886 SELECT DISTINCT col1 + - cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2886 SELECT DISTINCT col1 + - cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2887 SELECT - 39 + + col0 DIV 50 AS col1 FROM tab2 AS cor0 ---- -38 -38 -39 skipif mysql # not compatible query I rowsort label-2887 SELECT - 39 + + col0 / 50 AS col1 FROM tab2 AS cor0 ---- -38 -38 -39 query I rowsort SELECT ALL + col0 * + cor0.col2 AS col0 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT - - col1 + + col2 AS col0 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-2890 SELECT DISTINCT 84 DIV + col2 col1 FROM tab0 AS cor0 ---- 1 2 84 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2890 SELECT DISTINCT 84 / + col2 col1 FROM tab0 AS cor0 ---- 1 2 84 query I rowsort SELECT ALL - col0 * + col2 + 52 FROM tab1 AS cor0 ---- -110 -3596 -7628 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col1 col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT + col0 * - col0 + - col0 * - col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - 37 * + col2 AS col1 FROM tab2 AS cor0 ---- -1406 -962 -999 query I rowsort SELECT ALL - col1 * - col2 + ( col1 ) * - cor0.col0 FROM tab0 AS cor0 ---- -3298 -637 774 onlyif mysql # use DIV operator for integer division query I rowsort label-2896 SELECT + - 88 DIV + cor0.col1 FROM tab1 AS cor0 ---- -3 -6 -8 skipif mysql # not compatible query I rowsort label-2896 SELECT + - 88 / + cor0.col1 FROM tab1 AS cor0 ---- -3 -6 -8 onlyif mysql # use DIV operator for integer division query I rowsort label-2897 SELECT ALL - col0 DIV col0 AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2897 SELECT ALL - col0 / col0 AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT 43 * cor0.col1 FROM tab1 AS cor0 ---- 1118 430 559 query I rowsort SELECT DISTINCT + - col0 * col0 + + 92 FROM tab2 AS cor0 ---- -5992 -6149 43 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2900 SELECT ALL ( - col1 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2900 SELECT ALL ( - col1 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( - cor0.col0 ) * ( + ( cor0.col1 ) ) + - col0 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT DISTINCT 14 AS col2 FROM tab0, tab0 AS cor0 ---- 14 query I rowsort SELECT DISTINCT 80 * col0 AS col1 FROM tab1 cor0 ---- 240 5120 6400 query I rowsort SELECT - col1 * cor0.col1 + + col2 AS col0 FROM tab0 AS cor0 ---- -7363 -8199 -9408 onlyif mysql # use DIV operator for integer division query I rowsort label-2905 SELECT ALL col1 DIV col0 AS col1 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-2905 SELECT ALL col1 / col0 AS col1 FROM tab1 AS cor0 ---- 0 0 8 onlyif mysql # use DIV operator for integer division query I rowsort label-2906 SELECT cor0.col2 + - col1 * 57 DIV 13 FROM tab2 cor0 ---- -108 -232 -36 skipif mysql # not compatible query I rowsort label-2906 SELECT cor0.col2 + - col1 * 57 / 13 FROM tab2 cor0 ---- -108 -232 -36 query I rowsort SELECT ALL + + ( - col1 ) AS col0 FROM tab1 AS cor0 ---- -10 -13 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-2908 SELECT + col2 + col0 DIV ( - col1 ) FROM tab1 AS cor0 ---- 51 54 90 skipif mysql # not compatible query I rowsort label-2908 SELECT + col2 + col0 / ( - col1 ) FROM tab1 AS cor0 ---- 51 54 90 query I rowsort SELECT DISTINCT col1 * + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT + col2 * + 42 * col1 FROM tab1 AS cor0 ---- 23940 52416 58968 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * - col0 col0 FROM tab1 cor0 ---- 4096 6400 9 query I rowsort SELECT - - 83 + + col0 AS col0 FROM tab2 cor0 ---- 161 162 90 query I rowsort SELECT col1 * - col2 + tab0.col2 AS col2 FROM tab0 ---- -2805 -7380 -96 query I rowsort SELECT ALL + 28 * col1 + ( col0 * col1 ) FROM tab0 ---- 10647 4472 6111 query I rowsort SELECT DISTINCT + - ( col2 ) + - col2 FROM tab2 AS cor0 ---- -52 -54 -76 onlyif mysql # use DIV operator for integer division query I rowsort label-2917 SELECT - col2 * + ( cor0.col1 ) + - col0 DIV + col1 FROM tab1 AS cor0 ---- -1254 -1404 -576 skipif mysql # not compatible query I rowsort label-2917 SELECT - col2 * + ( cor0.col1 ) + - col0 / + col1 FROM tab1 AS cor0 ---- -1254 -1404 -576 query I rowsort SELECT + 39 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 121 40 72 query I rowsort SELECT - 82 FROM tab1 cor0 ---- -82 -82 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col1 col1 FROM tab1 cor0 ---- -10 -13 -26 query I rowsort SELECT ALL - 37 FROM tab2 AS cor0 ---- -37 -37 -37 query I rowsort SELECT DISTINCT - - 87 + - col0 AS col1 FROM tab0 AS cor0 ---- -2 52 63 query I rowsort SELECT + col2 - col0 * col0 FROM tab1 AS cor0 ---- -4039 -6304 45 query I rowsort SELECT DISTINCT 53 + - 66 + col2 FROM tab1 AS cor0 ---- 41 44 83 query I rowsort SELECT - cor0.col0 * - col1 + col1 * 75 AS col1 FROM tab0 AS cor0 ---- 10670 14924 8514 query I rowsort SELECT DISTINCT 40 FROM tab1, tab1 AS cor0 ---- 40 query I rowsort SELECT col0 + col2 * - col1 * col2 FROM tab0 ---- -611795 -62 -93630 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 88 * - 24 + - col1 + + col0 col2 FROM tab1 AS cor0 ---- -2045 -2058 -2135 query I rowsort SELECT - 65 + cor0.col2 + col2 * col1 * 61 FROM tab1 AS cor0 ---- 34762 76159 85633 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab2 cor1 ---- 972 values hashing to 1e9d01970ae508486ddabec967bb176c onlyif mysql # use DIV operator for integer division query I rowsort label-2931 SELECT + 14 DIV cor0.col1 + col2 * col0 + cor0.col0 * - ( + col1 + col2 ) AS col1 FROM tab2 cor0 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-2931 SELECT + 14 / cor0.col1 + col2 * col0 + cor0.col0 * - ( + col1 + col2 ) AS col1 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT - cor0.col2 FROM tab0, tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT ALL 18 FROM tab2 ---- 18 18 18 query I rowsort SELECT - 37 * tab2.col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 4f3c6a9d7dceed416fc2f007769035c0 query I rowsort SELECT ALL + ( - cor1.col1 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to b234798d4706314ba14eaad539d0aa88 query I rowsort SELECT DISTINCT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 24 35 89 query I rowsort SELECT - col0 * - col0 + - col0 AS col2 FROM tab2 ---- 42 6006 6162 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2938 SELECT + CAST( 60 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 skipif mysql # not compatible query I rowsort label-2938 SELECT + CAST ( 60 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT - col2 * + ( 50 ) + col2 AS col1 FROM tab0 cor0 ---- -1617 -4018 -49 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col1 + - 50 col1 FROM tab2 AS cor0 ---- -109 -67 -81 query I rowsort SELECT DISTINCT col2 + - col2 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT DISTINCT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 ---- 7 78 79 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab1 cor3 ---- 3645 values hashing to 199388980dc5177ebebcfdbc0408ba02 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2944 SELECT + - col0 * - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 ---- 4096 6400 9 skipif mysql # not compatible query I rowsort label-2944 SELECT + - col0 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT - 82 FROM tab1, tab0 AS cor0 ---- 9 values hashing to f800b0aad28b82b2deb67f7045c9a45c query I rowsort SELECT + + ( col0 ) AS col2 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL ( 39 * + col1 + - 25 ) FROM tab0 ---- 3329 3524 3758 query I rowsort SELECT 70 - col2 AS col1 FROM tab2 ---- 32 43 44 query I rowsort SELECT ALL + cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT 41 AS col1 FROM tab1 ---- 41 41 41 query I rowsort SELECT + 84 FROM tab1 ---- 84 84 84 query I rowsort SELECT + tab0.col2 + + cor0.col0 AS col0 FROM tab0, tab2 cor0 ---- 9 values hashing to b4ebc83f877e470e18dc15ed6c0cf8e8 query I rowsort SELECT ALL - cor0.col1 + col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 91 + col2 FROM tab1 AS cor0 ---- -34 -37 5 onlyif mysql # use DIV operator for integer division query I rowsort label-2955 SELECT 77 DIV - col2 FROM tab1 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-2955 SELECT 77 / - col2 FROM tab1 AS cor0 ---- -1 -1 0 query I rowsort SELECT + + ( col0 ) * - col1 + col0 FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT - + cor0.col1 + + col1 AS col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2958 SELECT - + col1 + + col2 DIV 45 AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-2958 SELECT - + col1 + + col2 / 45 AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT + col0 * - 94 * - col1 FROM tab1 AS cor0 ---- 60160 7332 97760 query I rowsort SELECT + + col2 * col1 + + 4 FROM tab0 AS cor0 ---- 101 2842 7466 query I rowsort SELECT DISTINCT - cor0.col0 FROM tab1, tab0 cor0 ---- -24 -35 -89 query I rowsort SELECT + - col2 * cor0.col0 + 97 AS col0 FROM tab1 AS cor0 ---- -3551 -65 -7583 query I rowsort SELECT - col0 * ( col2 ) * - cor0.col2 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT - ( + col1 ) * 54 + + col1 AS col0 FROM tab1 cor0 ---- -1378 -530 -689 query I rowsort SELECT DISTINCT - col0 + + col1 AS col2 FROM tab0 AS cor0 ---- 2 62 onlyif mysql # use DIV operator for integer division query I rowsort label-2966 SELECT ALL col2 + + col2 DIV col2 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-2966 SELECT ALL col2 + + col2 / col2 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort SELECT CAST ( - 38 AS REAL ) AS col1 FROM tab0, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to e8c064543bf0f2e57329db1bb0a411e3 query I rowsort SELECT ALL col0 + col2 * ( - col0 ) FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT DISTINCT 24 FROM tab2 AS cor0 ---- 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + + col1 * col0 col2 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT - 65 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57 query I rowsort SELECT DISTINCT + - 99 FROM tab0 AS cor0 ---- -99 onlyif mysql # use DIV operator for integer division query I rowsort label-2973 SELECT DISTINCT col1 DIV col2 col1 FROM tab0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2973 SELECT DISTINCT col1 / col2 col1 FROM tab0 ---- 1 2 97 query I rowsort SELECT ALL - col0 + col2 * + col0 * cor0.col0 AS col1 FROM tab1 AS cor0 ---- 233408 483 614320 query I rowsort SELECT DISTINCT 44 AS col0 FROM tab0, tab1, tab0 AS cor0 ---- 44 query I rowsort SELECT + 23 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 546d49aa433406dd83ea19885588e658 query I rowsort SELECT - - 79 * col0 AS col1 FROM tab1 AS cor0 ---- 237 5056 6320 query I rowsort SELECT ALL - 26 FROM tab2 ---- -26 -26 -26 query I rowsort SELECT - tab1.col0 * + col2 + col0 * col2 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL col1 * col2 + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT DISTINCT col2 * 66 * col1 + - col1 FROM tab1 AS cor0 ---- 37610 82355 92638 query I rowsort SELECT ALL + col2 + + ( - col1 * cor0.col2 ) - 96 * + col2 AS col1 FROM tab1 AS cor0 ---- -10368 -5985 -6534 query I rowsort SELECT col1 + - 38 AS col0 FROM tab0 AS cor0 ---- 48 53 59 query I rowsort SELECT DISTINCT col0 + 25 FROM tab0 AS cor0 ---- 114 49 60 query I rowsort SELECT + 32 FROM tab1 cor0 ---- 32 32 32 query I rowsort SELECT ALL + + cor0.col1 - cor0.col0 AS col0 FROM tab0 cor0 ---- 2 62 62 query I rowsort SELECT DISTINCT col1 * col0 - ( + tab2.col0 + col2 ) AS col2 FROM tab2 ---- 1226 183 4498 query I rowsort SELECT + col0 * col1 * - col0 AS col2 FROM tab2 ---- -106097 -1519 -358956 query I rowsort SELECT - + 85 + + 76 * col0 AS col0 FROM tab0 AS cor0 ---- 1739 2575 6679 query I rowsort SELECT ALL 59 * 13 + col2 * + col0 AS col1 FROM tab2 ---- 2795 3769 956 query I rowsort SELECT DISTINCT 30 + + col0 FROM tab1 ---- 110 33 94 query I rowsort SELECT - col1 + - cor0.col2 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT ALL + 2 * + 1 AS col1 FROM tab2 AS cor0 ---- 2 2 2 query I rowsort SELECT DISTINCT + - 26 * col0 + col0 * col1 AS col0 FROM tab1 AS cor0 ---- -1024 -1040 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2995 SELECT DISTINCT - - 36 DIV col0 + col1 AS col2 FROM tab0 AS cor0 ---- 87 91 98 skipif mysql # not compatible query I rowsort label-2995 SELECT DISTINCT - - 36 / col0 + col1 AS col2 FROM tab0 AS cor0 ---- 87 91 98 query I rowsort SELECT + + 96 FROM tab1 AS cor0 ---- 96 96 96 query I rowsort SELECT - + 37 * + ( cor0.col2 ) + + col0 AS col0 FROM tab2 AS cor0 ---- -1327 -884 -992 query I rowsort SELECT - - col1 + 31 FROM tab0 AS cor0 ---- 117 122 128 query I rowsort SELECT ALL 50 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1 ---- 81 values hashing to 6932c991110d256d3f92f3e9538f8040 query I rowsort SELECT DISTINCT + 4 * col1 + col2 AS col0 FROM tab0 ---- 377 389 446 onlyif mysql # use DIV operator for integer division query I rowsort label-3001 SELECT ( + col0 ) + - col0 DIV CAST( - col2 AS SIGNED ) FROM tab0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-3001 SELECT ( + col0 ) + - col0 / CAST ( - col2 AS INTEGER ) FROM tab0 ---- 24 70 90 query I rowsort SELECT ( 14 ) + tab2.col1 AS col0 FROM tab2 ---- 31 45 73 query I rowsort SELECT + col0 + ( tab2.col0 ) + - tab2.col2 * + tab2.col0 FROM tab2 ---- -175 -1872 -2844 query I rowsort SELECT ALL col0 + + col0 AS col1 FROM tab1 ---- 128 160 6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3005 SELECT ALL CAST( col1 AS SIGNED ) + + col2 * ( - col2 ) col1 FROM tab1 cor0 ---- -2890 -3239 -9203 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3005 SELECT ALL CAST ( col1 AS INTEGER ) + + col2 * ( - col2 ) col1 FROM tab1 cor0 ---- -2890 -3239 -9203 query I rowsort SELECT ALL col1 * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL 62 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 15 * - col1 * + col0 + + col1 col0 FROM tab0 AS cor0 ---- 121576 31046 51022 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3009 SELECT ( cor0.col2 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3009 SELECT ( cor0.col2 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 29 AS col1 FROM tab0 AS cor0 ---- 29 29 29 query I rowsort SELECT DISTINCT col0 * col2 + + ( col1 ) FROM tab1 AS cor0 ---- 188 3658 7693 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col2 * + col0 col1 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT - col2 * - col2 + col1 * 71 * - cor0.col2 FROM tab2 AS cor0 ---- -108238 -44422 -58698 query I rowsort SELECT ALL + - col2 * col2 * ( 27 ) + col0 AS col2 FROM tab0 AS cor0 ---- -181459 -29379 8 query I rowsort SELECT ALL 75 * - col1 AS col2 FROM tab2 AS cor0 ---- -1275 -2325 -4425 query I rowsort SELECT - + 22 + col1 FROM tab0 AS cor0 ---- 64 69 75 query I rowsort SELECT ALL cor0.col2 * col0 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL - col1 + cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + cor0.col2 - col0 * ( col0 ) AS col0 FROM tab2 AS cor0 ---- -22 -6058 -6203 onlyif mysql # use DIV operator for integer division query I rowsort label-3020 SELECT DISTINCT - + col1 DIV col0 + col1 FROM tab2 AS cor0 ---- 17 27 59 skipif mysql # not compatible query I rowsort label-3020 SELECT DISTINCT - + col1 / col0 + col1 FROM tab2 AS cor0 ---- 17 27 59 query I rowsort SELECT col2 + 9 + + cor0.col1 FROM tab0 AS cor0 ---- 107 128 182 query I rowsort SELECT ALL - + col1 + 63 * - 27 FROM tab1 AS cor0 ---- -1711 -1714 -1727 query I rowsort SELECT + col1 + ( + 83 ) * - col0 * - ( 15 ) FROM tab0 AS cor0 ---- 110896 29966 43672 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3024 SELECT DISTINCT col0 * CAST( col1 + col0 AS SIGNED ) FROM tab0 AS cor0 ---- 16020 2640 4620 skipif mysql # not compatible query I rowsort label-3024 SELECT DISTINCT col0 * CAST ( col1 + col0 AS INTEGER ) FROM tab0 AS cor0 ---- 16020 2640 4620 query I rowsort SELECT + - col2 * + 81 * col1 AS col1 FROM tab2 cor0 ---- -124254 -52326 -67797 query I rowsort SELECT DISTINCT - col1 + col1 * - ( - col1 ) AS col1 FROM tab1 cor0 ---- 156 650 90 query I rowsort SELECT ALL + col1 * + cor0.col1 AS col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT DISTINCT col2 + + ( + 49 ) * - col0 FROM tab0 AS cor0 ---- -1143 -1714 -4279 query I rowsort SELECT + col1 * - ( 58 + + col1 ) * col2 AS col2 FROM tab1 AS cor0 ---- -117936 -38760 -88608 query I rowsort SELECT ALL + col2 * + col2 * 34 FROM tab1 cor0 ---- 110466 313344 99144 query I rowsort SELECT DISTINCT - col2 * + 55 FROM tab1 cor0 ---- -2970 -3135 -5280 query I rowsort SELECT ALL + col1 * + cor0.col0 + col0 + col1 * + col2 FROM tab0 cor0 ---- 15650 3527 4926 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3033 SELECT ALL + CAST( NULL AS SIGNED ) * 86 / col0 col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3033 SELECT ALL + CAST ( NULL AS INTEGER ) * 86 / col0 col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + col0 + + col0 - - cor0.col2 col2 FROM tab2 AS cor0 ---- 2132 223 3119 query I rowsort SELECT - cor0.col1 * col1 + + col0 AS col2 FROM tab0 AS cor0 ---- -7372 -8192 -9374 query I rowsort SELECT DISTINCT cor0.col2 + 72 FROM tab2 AS cor0 ---- 110 98 99 query I rowsort SELECT col1 + 36 + col2 * + 53 * + col2 AS col0 FROM tab2 AS cor0 ---- 35923 38704 76585 query I rowsort SELECT DISTINCT + 30 * col0 * + col1 AS col1 FROM tab1 AS cor0 ---- 19200 2340 31200 query I rowsort SELECT ALL + + ( 63 ) * - cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 27 values hashing to de0605fa10632751d2cba5dfc0db578a query I rowsort SELECT tab1.col2 * ( - col2 * tab1.col0 ) FROM tab1 ---- -207936 -737280 -8748 query I rowsort SELECT ALL - col1 * tab1.col0 - + 67 FROM tab1 ---- -1107 -145 -707 query I rowsort SELECT - 77 * 67 FROM tab2, tab1 AS cor0 ---- 9 values hashing to ccdbcc59cd635f9d37ad48a7982aef07 query I rowsort SELECT ALL + col0 - - 77 AS col0 FROM tab0 AS cor0 ---- 101 112 166 query I rowsort SELECT + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 57 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 57 query I rowsort SELECT + - 29 FROM tab1 AS cor0 ---- -29 -29 -29 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3047 SELECT DISTINCT + col2 + col2 * CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -1056 -6642 0 skipif mysql # not compatible query I rowsort label-3047 SELECT DISTINCT + col2 + col2 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -1056 -6642 0 query I rowsort SELECT ALL - + col0 * - col0 AS col2 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT - ( col2 ) AS col2 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT + 88 * cor0.col2 + col0 * - col1 FROM tab2 cor0 ---- -2314 2001 2159 onlyif mysql # use DIV operator for integer division query I rowsort label-3051 SELECT - 21 DIV cor0.col2 FROM tab0 AS cor0 ---- -21 0 0 skipif mysql # not compatible query I rowsort label-3051 SELECT - 21 / cor0.col2 FROM tab0 AS cor0 ---- -21 0 0 query I rowsort SELECT ALL - 11 AS col1 FROM tab2 AS cor0 ---- -11 -11 -11 query I rowsort SELECT - - col0 + - col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL + + 50 * col1 * + 86 + - col1 FROM tab0 AS cor0 ---- 369714 391209 417003 onlyif mysql # use DIV operator for integer division query I rowsort label-3055 SELECT + col0 * col0 DIV + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-3055 SELECT + col0 * col0 / + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL + 45 + - col0 * 73 AS col2 FROM tab2 AS cor0 ---- -466 -5649 -5722 query I rowsort SELECT - col0 * - col1 + 9 AS col1 FROM tab0 AS cor0 ---- 2073 3404 8108 query I rowsort SELECT - + 68 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- -204 -4352 -5440 query I rowsort SELECT - 89 * + col1 + 17 FROM tab1 AS cor0 ---- -1140 -2297 -873 query I rowsort SELECT + + 64 + col0 FROM tab2 AS cor0 ---- 142 143 71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 44 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 0cc3e52e781e46962291c3060c6ae73b query I rowsort SELECT 65 FROM tab1, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to 1c9d0bf96cd3361942fadad668138b9c query I rowsort SELECT DISTINCT cor0.col2 * + tab0.col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd query I rowsort SELECT + col2 + + ( + col1 ) AS col0 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT + col1 + 5 AS col2 FROM tab2 AS cor0 ---- 22 36 64 query I rowsort SELECT + cor0.col1 * ( - 2 + - col0 * - col1 ) AS col1 FROM tab1 AS cor0 ---- 13494 1976 6380 query I rowsort SELECT - + col1 * ( col0 ) + col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT ALL - 14 AS col0 FROM tab1 ---- -14 -14 -14 onlyif mysql # use DIV operator for integer division query I rowsort label-3069 SELECT ALL 61 DIV - col1 AS col2 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3069 SELECT ALL 61 / - col1 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL + 37 FROM tab1 ---- 37 37 37 query I rowsort SELECT DISTINCT col1 + - col2 AS col1 FROM tab2 cor0 ---- -21 33 4 onlyif mysql # use DIV operator for integer division query I rowsort label-3072 SELECT - - cor0.col0 + 15 DIV cor0.col2 AS col2 FROM tab0 AS cor0 ---- 24 50 89 skipif mysql # not compatible query I rowsort label-3072 SELECT - - cor0.col0 + 15 / cor0.col2 AS col2 FROM tab0 AS cor0 ---- 24 50 89 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 col1 + + 57 AS col0 FROM tab1 AS cor0 ---- 67 70 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3075 SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3075 SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 cor0 ---- NULL query I rowsort SELECT DISTINCT col1 * ( col1 ) AS col2 FROM tab2 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + ( cor0.col0 ) + - col0 * + col0 col0 FROM tab1 AS cor0 ---- -4032 -6 -6320 query I rowsort SELECT ALL col1 + + col2 + col0 * - col2 AS col0 FROM tab0 ---- -673 -7125 63 query I rowsort SELECT col2 + - cor0.col1 * + 12 AS col0 FROM tab2 AS cor0 ---- -166 -345 -682 onlyif mysql # use DIV operator for integer division query I rowsort label-3080 SELECT col2 DIV col0 FROM tab2 AS cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-3080 SELECT col2 / col0 FROM tab2 AS cor0 ---- 0 0 3 query I rowsort SELECT col2 * - col0 + col1 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT DISTINCT col2 + 74 + - col2 FROM tab2 ---- 74 query I rowsort SELECT + ( - cor0.col2 ) FROM tab2, tab1 AS cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT DISTINCT + cor0.col0 AS col0 FROM tab0, tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT 17 * - tab1.col2 + - col0 FROM tab1 ---- -1033 -1712 -921 query I rowsort SELECT DISTINCT tab2.col0 - col0 FROM tab2 ---- 0 query I rowsort SELECT + 8 * + col1 + col1 AS col2 FROM tab1 cor0 ---- 117 234 90 query I rowsort SELECT - 55 + + col2 FROM tab1 AS cor0 ---- -1 2 41 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3089 SELECT col1 + col2 * - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -1427 -617 -698 skipif mysql # not compatible query I rowsort label-3089 SELECT col1 + col2 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -1427 -617 -698 onlyif mysql # use DIV operator for integer division query I rowsort label-3090 SELECT - - col2 DIV + col2 + + col0 FROM tab1 cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-3090 SELECT - - col2 / + col2 + + col0 FROM tab1 cor0 ---- 4 65 81 query I rowsort SELECT + cor0.col2 + + col1 * + ( col1 + - col2 ) FROM tab0 AS cor0 ---- 4591 901 9313 query I rowsort SELECT col0 FROM tab0 WHERE col1 + + col2 NOT BETWEEN - col2 + col0 AND - col2 / col1 ---- 24 35 89 query I rowsort SELECT DISTINCT - col1 - col1 AS col0 FROM tab0 ---- -172 -182 -194 query I rowsort SELECT + col1 * col0 * tab1.col1 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT ALL + col1 * tab2.col0 AS col2 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT col2 * - col2 + col2 AS col2 FROM tab1 ---- -2862 -3192 -9120 query I rowsort SELECT - col0 * - tab2.col1 - col0 AS col0 FROM tab2 ---- 1264 210 4524 query I rowsort SELECT DISTINCT - col2 + col2 AS col0 FROM tab1 ---- 0 query I rowsort SELECT + col0 * + col2 AS col2 FROM tab0 ---- 35 7298 792 query I rowsort SELECT DISTINCT col1 * + tab2.col0 AS col2 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT ALL + col0 - - col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT col1 + - col2 AS col1 FROM tab1 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-3103 SELECT DISTINCT - col1 + tab2.col2 DIV + col1 FROM tab2 ---- -15 -31 -59 skipif mysql # not compatible query I rowsort label-3103 SELECT DISTINCT - col1 + tab2.col2 / + col1 FROM tab2 ---- -15 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col2 ) * col0 col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL cor0.col2 * + col2 AS col0 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT - - cor0.col0 + col2 AS col0 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT ALL + col0 + - cor0.col1 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT - 55 + + cor0.col1 * 52 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 384537 430557 489213 query I rowsort SELECT DISTINCT - - 73 * + col1 FROM tab2 cor0 ---- 1241 2263 4307 query I rowsort SELECT DISTINCT - 15 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- -15 query I rowsort SELECT DISTINCT + col0 + + col2 * - cor0.col0 FROM tab0 cor0 ---- -7209 -768 0 query I rowsort SELECT ALL + - col2 * - col2 AS col0 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT + - col1 - + col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT ALL + tab1.col0 * - col0 FROM tab1 ---- -4096 -6400 -9 query I rowsort SELECT ALL + col2 * + col0 * - col1 FROM tab0 WHERE NULL IN ( + col0 - tab0.col0 ) ---- query I rowsort SELECT DISTINCT + col0 * - col2 AS col2 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT ALL - col1 * - col0 * tab2.col0 AS col2 FROM tab2 ---- 106097 1519 358956 onlyif mysql # use DIV operator for integer division query I rowsort label-3118 SELECT tab1.col0 DIV tab1.col0 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-3118 SELECT tab1.col0 / tab1.col0 FROM tab1 ---- 1 1 1 query I rowsort SELECT DISTINCT - 36 * col1 * - col0 FROM tab2 cor0 ---- 165672 48348 7812 query I rowsort SELECT - 35 * col2 FROM tab1 AS cor0 ---- -1890 -1995 -3360 onlyif mysql # use DIV operator for integer division query I rowsort label-3121 SELECT + tab0.col0 * col2 + col1 DIV tab0.col1 FROM tab0 ---- 36 7299 793 skipif mysql # not compatible query I rowsort label-3121 SELECT + tab0.col0 * col2 + col1 / tab0.col1 FROM tab0 ---- 36 7299 793 query I rowsort SELECT ALL - - 21 AS col1 FROM tab1 AS cor0 ---- 21 21 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 * col1 col0 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT - col2 * + col1 + + col1 * + col1 FROM tab2 AS cor0 ---- -357 124 1947 query I rowsort SELECT col0 + - col1 + col2 FROM tab0 AS cor0 ---- -29 -61 80 query III rowsort SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col1 * col1 ) ---- query I rowsort SELECT DISTINCT + tab2.col0 + col1 + + col0 FROM tab2 ---- 175 215 45 query I rowsort SELECT + col1 + - col2 + + col0 FROM tab2 AS cor0 ---- 11 111 58 query I rowsort SELECT - col2 * + col0 + - col2 + + col1 AS col0 FROM tab0 AS cor0 ---- -7289 -739 61 onlyif mysql # use DIV operator for integer division query I rowsort label-3130 SELECT ALL - col0 DIV col1 + + col2 * + col0 * col1 col1 FROM tab2 cor0 ---- 119651 51030 5859 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3130 SELECT ALL - col0 / col1 + + col2 * + col0 * col1 col1 FROM tab2 cor0 ---- 119651 51030 5859 query I rowsort SELECT DISTINCT col1 * col0 * col2 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 3492 664209 68198 query I rowsort SELECT cor0.col1 + col0 + col2 FROM tab2 cor0 ---- 134 163 65 query I rowsort SELECT col0 * + col1 + - col1 * tab0.col2 * - col2 AS col2 FROM tab0 ---- 3492 619983 95718 query III rowsort SELECT * FROM tab1 WHERE col2 IN ( - tab1.col1 * + tab1.col1 ) ---- query I rowsort SELECT ALL tab0.col2 - - tab0.col2 AS col1 FROM tab0 ---- 164 2 66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + col1 col0 FROM tab1 ---- -54 -67 23 query III rowsort SELECT * FROM tab1 WHERE NOT - col2 BETWEEN col0 * col0 * - col0 AND ( - tab1.col0 ) ---- 3 26 54 64 10 57 onlyif mysql # use DIV operator for integer division query I rowsort label-3138 SELECT ALL - col0 DIV + tab1.col1 AS col1 FROM tab1 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-3138 SELECT ALL - col0 / + tab1.col1 AS col1 FROM tab1 ---- -6 -6 0 query I rowsort SELECT DISTINCT + tab2.col2 * col1 * col0 AS col1 FROM tab2 ---- 119652 51034 5859 query III rowsort SELECT * FROM tab2 WHERE ( NULL ) > ( NULL ) ---- query I rowsort SELECT ALL col2 * tab2.col2 AS col1 FROM tab2 ---- 1444 676 729 query I rowsort SELECT col2 * + col1 + col2 FROM tab1 ---- 1344 1458 627 query I rowsort SELECT col2 * tab1.col1 - col0 AS col0 FROM tab1 ---- 1168 1401 506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + col1 - col2 col0 FROM tab1 ---- 10 13 26 query I rowsort SELECT ALL + col1 / - col1 + col2 FROM tab1 WHERE ( NULL ) IN ( tab1.col1 ) ---- query I rowsort SELECT col1 + - col2 + col0 AS col2 FROM tab0 ---- 131 77 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3147 SELECT DISTINCT col2 + col2 * col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3147 SELECT DISTINCT col2 + col2 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - - 7 * - col1 + col0 AS col2 FROM tab0 AS cor0 ---- -548 -578 -644 query I rowsort SELECT DISTINCT + - ( + 44 ) * cor0.col2 + - 99 AS col2 FROM tab2 cor0 ---- -1243 -1287 -1771 query I rowsort SELECT + 68 - + col1 FROM tab2 AS cor0 ---- 37 51 9 query I rowsort SELECT ALL cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d onlyif mysql # use DIV operator for integer division query I rowsort label-3152 SELECT col0 DIV - ( - col1 ) - col1 FROM tab2 ---- -13 -31 -58 skipif mysql # not compatible query I rowsort label-3152 SELECT col0 / - ( - col1 ) - col1 FROM tab2 ---- -13 -31 -58 query I rowsort SELECT DISTINCT - ( tab2.col0 ) + + col2 * 3 AS col0 FROM tab2 ---- 0 35 74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * 87 + + tab1.col2 col0 FROM tab1 ---- 1227 2316 927 query I rowsort SELECT ( col1 + col2 ) FROM tab2 ---- 55 58 85 query I rowsort SELECT DISTINCT col2 + 58 * + col0 FROM tab1 ---- 228 3769 4736 query I rowsort SELECT DISTINCT col1 + - 33 FROM tab0 AS cor0 ---- 53 58 64 query I rowsort SELECT + 45 * 30 + col0 AS col2 FROM tab2 AS cor0 ---- 1357 1428 1429 query I rowsort SELECT ALL + 2 AS col0 FROM tab1 ---- 2 2 2 query I rowsort SELECT ALL + ( tab0.col2 * + tab0.col0 ) AS col1 FROM tab0 ---- 35 7298 792 query I rowsort SELECT + ( + col1 ) FROM tab0 AS cor0 ---- 86 91 97 onlyif mysql # use DIV operator for integer division query I rowsort label-3162 SELECT DISTINCT + col0 DIV col2 - + CAST( + ( col0 ) + - 77 AS SIGNED ) * col0 FROM tab1 AS cor0 ---- -240 222 833 skipif mysql # not compatible query I rowsort label-3162 SELECT DISTINCT + col0 / col2 - + CAST ( + ( col0 ) + - 77 AS INTEGER ) * col0 FROM tab1 AS cor0 ---- -240 222 833 query I rowsort SELECT ALL + - col0 + + col0 - + col0 AS col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ALL col0 - col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col2 + col1 + - cor0.col2 AS col0 FROM tab2 AS cor0 ---- -23 -59 7 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 AS cor2 ---- 3645 values hashing to 51e2051aff75c58a5edaa314f1412983 query I rowsort SELECT - 60 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 067a4b5daf8747042e3b07ca8459859f query I rowsort SELECT ALL col2 + + 31 + - col1 FROM tab1 AS cor0 ---- 114 59 78 query I rowsort SELECT DISTINCT - cor0.col0 * 88 FROM tab1 AS cor0 ---- -264 -5632 -7040 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 * col2 col2 FROM tab1 cor0 ---- 2916 3249 9216 query I rowsort SELECT ALL - col0 + + col1 * - col1 AS col2 FROM tab1 AS cor0 ---- -164 -249 -679 onlyif mysql # use DIV operator for integer division query I rowsort label-3172 SELECT DISTINCT + - col0 + col0 DIV - col0 FROM tab1 AS cor0 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-3172 SELECT DISTINCT + - col0 + col0 / - col0 FROM tab1 AS cor0 ---- -4 -65 -81 query I rowsort SELECT ALL - col1 - ( 20 * - col0 ) FROM tab1 AS cor0 ---- 1270 1587 34 query I rowsort SELECT DISTINCT - - col0 * col2 + col0 AS col1 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT ALL + col0 * + col1 * col1 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT DISTINCT + - col2 + 10 FROM tab2 AS cor0 ---- -16 -17 -28 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 69 col1 FROM tab1 ---- 69 69 69 query I rowsort SELECT ( col2 ) AS col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT + 59 AS col0 FROM tab1 AS cor0 ---- 59 59 59 query I rowsort SELECT DISTINCT 74 FROM tab2 ---- 74 query I rowsort SELECT DISTINCT - 53 FROM tab1, tab0 AS cor0 ---- -53 query I rowsort SELECT + 62 * cor0.col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 6087555f6b5956c2d9a6a8ceb786f1fd onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3183 SELECT DISTINCT - col0 * col2 + CAST( col2 AS SIGNED ) * - col2 * 39 FROM tab0 AS cor0 ---- -269534 -43263 -74 skipif mysql # not compatible query I rowsort label-3183 SELECT DISTINCT - col0 * col2 + CAST ( col2 AS INTEGER ) * - col2 * 39 FROM tab0 AS cor0 ---- -269534 -43263 -74 query I rowsort SELECT col2 * col0 + + 93 FROM tab2 AS cor0 ---- 2121 282 3095 onlyif mysql # use DIV operator for integer division query I rowsort label-3185 SELECT DISTINCT - col1 DIV + col0 col1 FROM tab1 AS cor0 ---- -8 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3185 SELECT DISTINCT - col1 / + col0 col1 FROM tab1 AS cor0 ---- -8 0 query I rowsort SELECT - col1 + col0 * + col0 AS col2 FROM tab1 AS cor0 ---- -17 4086 6387 query I rowsort SELECT + 74 FROM tab2 cor0 ---- 74 74 74 query I rowsort SELECT ALL + cor0.col1 * + col0 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - tab1.col2 * 4 FROM tab1, tab0 cor0 ---- 9 values hashing to d2c66fcc2b9be3995a952b2d251e6913 query I rowsort SELECT - col1 * + 92 FROM tab0 ---- -7912 -8372 -8924 query I rowsort SELECT + col2 * - 77 AS col1 FROM tab0 ---- -2541 -6314 -77 query I rowsort SELECT ALL + + col1 * + col0 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT col1 + + 0 * + col2 FROM tab0 cor0 ---- 86 91 97 onlyif mysql # use DIV operator for integer division query I rowsort label-3194 SELECT DISTINCT col1 DIV 4 AS col0 FROM tab2 AS cor0 ---- 14 4 7 skipif mysql # not compatible query I rowsort label-3194 SELECT DISTINCT col1 / 4 AS col0 FROM tab2 AS cor0 ---- 14 4 7 query I rowsort SELECT DISTINCT - col0 * + 1 FROM tab2 AS cor0 ---- -7 -78 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-3196 SELECT + col0 * ( 20 ) + - col0 DIV - ( 92 ) + - col0 FROM tab1 AS cor0 ---- 1216 1520 57 skipif mysql # not compatible query I rowsort label-3196 SELECT + col0 * ( 20 ) + - col0 / - ( 92 ) + - col0 FROM tab1 AS cor0 ---- 1216 1520 57 query I rowsort SELECT - col0 - col0 * col0 AS col0 FROM tab2 cor0 ---- -56 -6162 -6320 query I rowsort SELECT ALL col1 * 9 + - 94 * - cor0.col1 - col1 * 29 FROM tab0 AS cor0 ---- 6364 6734 7178 onlyif mysql # use DIV operator for integer division query I rowsort label-3199 SELECT + 29 DIV + col0 + - col0 * - col1 * 25 + col2 * + ( - col2 ) AS col2 FROM tab2 AS cor0 ---- 114374 32131 4700 skipif mysql # not compatible query I rowsort label-3199 SELECT + 29 / + col0 + - col0 * - col1 * 25 + col2 * + ( - col2 ) AS col2 FROM tab2 AS cor0 ---- 114374 32131 4700 query I rowsort SELECT DISTINCT - 79 - col2 AS col0 FROM tab2 AS cor0 ---- -105 -106 -117 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT ALL CAST ( col1 AS REAL ) * col2 - - ( + 49 ) * col2 col0 FROM tab0 cor0 ---- 11480 146 4455 query I rowsort SELECT + ( col0 ) + col0 AS col0 FROM tab0 AS cor0 ---- 178 48 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + - 52 col1 FROM tab0 ---- -134 -53 -85 query I rowsort SELECT + - 0 * col2 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT + col2 + col2 + cor0.col1 * - col0 AS col2 FROM tab1 AS cor0 ---- -526 -848 30 query I rowsort SELECT - ( + cor0.col0 ) + col1 AS col1 FROM tab2 AS cor0 ---- -19 -62 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 2 col1 FROM tab1 AS cor0 ---- -2 -2 -2 query I rowsort SELECT DISTINCT - 6 FROM tab1 AS cor0 ---- -6 query I rowsort SELECT + col0 + col0 - col2 FROM tab2 cor0 ---- -13 120 130 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 73 * col2 col2 FROM tab1 AS cor0 ---- 3942 4161 7008 query I rowsort SELECT DISTINCT + cor0.col0 * + 3 * + col0 AS col0 FROM tab0 cor0 ---- 1728 23763 3675 onlyif mysql # use DIV operator for integer division query I rowsort label-3212 SELECT col2 DIV + col1 + col1 AS col2 FROM tab2 cor0 ---- 19 31 59 skipif mysql # not compatible query I rowsort label-3212 SELECT col2 / + col1 + col1 AS col2 FROM tab2 cor0 ---- 19 31 59 query I rowsort SELECT ALL + 51 AS col0 FROM tab2 AS cor0 ---- 51 51 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 22 + col1 col2 FROM tab2 AS cor0 ---- 39 53 81 query I rowsort SELECT + col0 + cor0.col2 * col2 FROM tab0 AS cor0 ---- 1113 36 6813 query IIIIIIIIIIII rowsort SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 * + col2 + - 19 col2 FROM tab1 cor0 ---- -181 -3667 -7699 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab0 AS cor2 ---- 3645 values hashing to 8e88b3a69c24fc01553b0c32bf7748d0 query I rowsort SELECT - cor0.col0 * 67 FROM tab1 cor0 ---- -201 -4288 -5360 query I rowsort SELECT DISTINCT + col2 + + col1 * 11 FROM tab0 ---- 1068 1083 979 query I rowsort SELECT DISTINCT col2 + col1 * + 18 * col0 + + col0 AS col0 FROM tab0 ---- 145953 37209 61146 query I rowsort SELECT 24 FROM tab1, tab1 AS cor0 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef query I rowsort SELECT ALL - col0 - + 98 * tab0.col0 FROM tab0 ---- -2376 -3465 -8811 query I rowsort SELECT - col1 * 40 AS col2 FROM tab1 AS cor0 ---- -1040 -400 -520 query I rowsort SELECT ALL col1 * + ( - col1 ) FROM tab1 ---- -100 -169 -676 query I rowsort SELECT 95 AS col1 FROM tab0 ---- 95 95 95 query I rowsort SELECT cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - col0 col0 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 + + col0 col1 FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # use DIV operator for integer division query I rowsort label-3230 SELECT ALL col2 * - col1 + - col0 DIV - col0 FROM tab0 ---- -2837 -7461 -96 skipif mysql # not compatible query I rowsort label-3230 SELECT ALL col2 * - col1 + - col0 / - col0 FROM tab0 ---- -2837 -7461 -96 query I rowsort SELECT ALL - col0 * col0 - col0 * - col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + col2 + + ( 79 ) AS col1 FROM tab1 cor0 ---- 133 136 175 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * col2 + col2 col0 FROM tab0 ---- 1122 2 6806 query I rowsort SELECT - col0 * - 93 * col2 FROM tab2 ---- 17577 188604 279186 query I rowsort SELECT ALL col1 + ( - tab1.col0 ) * col0 FROM tab1 ---- -4086 -6387 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 56 col1 FROM tab0, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to b5ba4b44e3deadce1edb30e76df61200 query I rowsort SELECT DISTINCT + col0 + ( + col1 * col2 ) FROM tab0 cor0 ---- 132 2862 7551 onlyif mysql # use DIV operator for integer division query I rowsort label-3238 SELECT col0 - ( col0 ) DIV + col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-3238 SELECT col0 - ( col0 ) / + col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT + - cor0.col0 + + col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT ALL + col2 + col2 + - cor0.col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort SELECT CAST ( col2 AS REAL ) / col2 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + - 92 * cor0.col2 FROM tab2 AS cor0 ---- -2392 -2484 -3496 query I rowsort SELECT + col1 * - col1 FROM tab2 cor0 ---- -289 -3481 -961 query I rowsort SELECT ALL cor1.col0 * cor1.col1 FROM tab2, tab1 cor0, tab2 cor1 ---- 27 values hashing to 6387e809cb1e467e8e7184dc79f3a43b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT ALL + 76 * + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 532 5928 6004 query I rowsort SELECT + cor0.col1 + - col0 * - cor0.col0 FROM tab2 AS cor0 ---- 6143 6258 80 query I rowsort SELECT DISTINCT + 34 AS col1 FROM tab0 AS cor0 ---- 34 query I rowsort SELECT DISTINCT + cor0.col1 * - col2 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3250 SELECT - col1 * col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3250 SELECT - col1 * col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col1 * col2 col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT - col1 * + col0 * - col0 AS col1 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT - col2 * + col0 AS col2 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT + 36 AS col0 FROM tab1 AS cor0 ---- 36 query I rowsort SELECT ALL - + 77 AS col1 FROM tab0 AS cor0 ---- -77 -77 -77 query I rowsort SELECT ALL + cor0.col0 * + col2 AS col1 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - + 31 + + col0 * + col1 FROM tab1 AS cor0 ---- 1009 47 609 onlyif mysql # use DIV operator for integer division query I rowsort label-3258 SELECT DISTINCT + col2 * col1 DIV + CAST( - col0 * + col0 AS SIGNED ) FROM tab2 AS cor0 ---- -17 0 skipif mysql # not compatible query I rowsort label-3258 SELECT DISTINCT + col2 * col1 / + CAST ( - col0 * + col0 AS INTEGER ) FROM tab2 AS cor0 ---- -17 0 query I rowsort SELECT 20 + + col0 * + col0 AS col0 FROM tab0 AS cor0 ---- 1245 596 7941 query I rowsort SELECT 57 * - col2 AS col2 FROM tab2 AS cor0 ---- -1482 -1539 -2166 query I rowsort SELECT DISTINCT + 13 * + tab1.col0 FROM tab1 ---- 1040 39 832 onlyif mysql # use DIV operator for integer division query I rowsort label-3262 SELECT ALL col2 DIV col1 AS col1 FROM tab2 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-3262 SELECT ALL col2 / col1 AS col1 FROM tab2 ---- 0 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 50 col1 FROM tab0 ---- -50 -50 -50 query I rowsort SELECT + tab0.col0 * + tab0.col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to e1120e7b687b32270ef70393236e7341 query I rowsort SELECT 43 * + col2 + - 85 FROM tab0 ---- -42 1334 3441 query I rowsort SELECT ALL + col0 * - col2 + col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 onlyif mysql # use DIV operator for integer division query I rowsort label-3267 SELECT DISTINCT - 41 DIV - col2 col2 FROM tab0 AS cor0 ---- 0 1 41 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3267 SELECT DISTINCT - 41 / - col2 col2 FROM tab0 AS cor0 ---- 0 1 41 query I rowsort SELECT cor0.col2 * - col0 * + 30 FROM tab0 AS cor0 ---- -1050 -218940 -23760 query I rowsort SELECT ALL + 27 + - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1507 -619 -810 query I rowsort SELECT DISTINCT col1 + + col0 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT ALL + 79 + col1 - ( + 85 + - col2 ) * - col2 * + tab2.col0 FROM tab2 ---- 11072 119790 141190 query I rowsort SELECT col0 * + 29 - - col1 AS col0 FROM tab0 AS cor0 ---- 1112 2672 782 query I rowsort SELECT - + col2 * + cor0.col2 FROM tab2 cor0 ---- -1444 -676 -729 query I rowsort SELECT - col2 + + 62 + 64 AS col2 FROM tab2 AS cor0 ---- 100 88 99 query I rowsort SELECT 28 * + col2 + + 92 * col2 * tab2.col2 AS col0 FROM tab2 ---- 133912 62920 67824 query I rowsort SELECT DISTINCT + col0 * col1 * 27 AS col1 FROM tab1 ---- 17280 2106 28080 query I rowsort SELECT ( + tab1.col0 ) + - 49 + + col1 AS col1 FROM tab1 ---- -20 25 44 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3278 SELECT + col2 * + col1 * - CAST( col1 AS SIGNED ) + col2 AS col1 FROM tab1 ---- -16128 -36450 -5643 skipif mysql # not compatible query I rowsort label-3278 SELECT + col2 * + col1 * - CAST ( col1 AS INTEGER ) + col2 AS col1 FROM tab1 ---- -16128 -36450 -5643 onlyif mysql # use DIV operator for integer division query I rowsort label-3279 SELECT ALL col0 + col0 DIV - col0 col0 FROM tab1 AS cor0 ---- 2 63 79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3279 SELECT ALL col0 + col0 / - col0 col0 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT DISTINCT - + col2 + col1 FROM tab0 AS cor0 ---- 53 9 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 + col2 col2 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT ALL + - col2 * col0 + col1 AS col1 FROM tab2 cor0 ---- -158 -1969 -2985 query I rowsort SELECT - - 69 FROM tab1 AS cor0 ---- 69 69 69 onlyif mysql # use DIV operator for integer division query I rowsort label-3284 SELECT DISTINCT - - CAST( + col2 AS SIGNED ) DIV cor0.col1 - - 58 AS col2 FROM tab2 AS cor0 ---- 58 60 skipif mysql # not compatible query I rowsort label-3284 SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) / cor0.col1 - - 58 AS col2 FROM tab2 AS cor0 ---- 58 60 query I rowsort SELECT DISTINCT + ( + col1 ) * col1 AS col0 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT ALL + + col1 + ( + col1 ) FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT DISTINCT + - 78 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -6675 -7016 -7565 query I rowsort SELECT ALL + col2 * + col2 + - col0 AS col1 FROM tab2 AS cor0 ---- 1365 598 722 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * col0 + + col2 col1 FROM tab2 ---- -22 -6058 -6203 query I rowsort SELECT + col2 + + 82 * + col0 FROM tab0 ---- 2001 2871 7380 query I rowsort SELECT - col2 - - 80 FROM tab2 ---- 42 53 54 query I rowsort SELECT DISTINCT - tab0.col0 + - col2 AS col2 FROM tab0 ---- -171 -36 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3293 SELECT CAST( 83 AS SIGNED ) + - col2 FROM tab0 ---- 1 50 82 skipif mysql # not compatible query I rowsort label-3293 SELECT CAST ( 83 AS INTEGER ) + - col2 FROM tab0 ---- 1 50 82 query I rowsort SELECT DISTINCT col0 + 59 FROM tab2 AS cor0 ---- 137 138 66 query I rowsort SELECT ALL + + 91 FROM tab2 AS cor0 ---- 91 91 91 query I rowsort SELECT ALL + col0 + col1 * col0 AS col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT DISTINCT col2 + - col1 AS col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT - + ( + cor0.col2 ) + - cor0.col0 FROM tab1 cor0 ---- -121 -176 -57 query I rowsort SELECT DISTINCT + + 29 * - col0 AS col0 FROM tab2 AS cor0 ---- -203 -2262 -2291 query I rowsort SELECT ALL - - ( + col1 ) + cor0.col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT + 25 + - col1 * + col1 AS col0 FROM tab0 AS cor0 ---- -7371 -8256 -9384 query I rowsort SELECT DISTINCT + + col2 * - 23 + col2 FROM tab1 AS cor0 ---- -1188 -1254 -2112 onlyif mysql # use DIV operator for integer division query I rowsort label-3303 SELECT col0 DIV + col1 + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-3303 SELECT col0 / + col1 + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + col2 + + col2 AS col1 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT + + col2 * + col0 + - col2 AS col0 FROM tab2 AS cor0 ---- 162 2002 2964 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3306 SELECT - + col1 * CAST( + 75 AS SIGNED ) + + col0 + + col0 AS col2 FROM tab1 AS cor0 ---- -1944 -622 -815 skipif mysql # not compatible query I rowsort label-3306 SELECT - + col1 * CAST ( + 75 AS INTEGER ) + + col0 + + col0 AS col2 FROM tab1 AS cor0 ---- -1944 -622 -815 query I rowsort SELECT ( col0 ) * col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT 66 * col1 FROM tab0 AS cor0 ---- 5676 6006 6402 onlyif mysql # use DIV operator for integer division query I rowsort label-3309 SELECT + ( + 40 ) DIV col2 + - col1 * + 10 AS col2 FROM tab1 AS cor0 ---- -100 -130 -260 skipif mysql # not compatible query I rowsort label-3309 SELECT + ( + 40 ) / col2 + - col1 * + 10 AS col2 FROM tab1 AS cor0 ---- -100 -130 -260 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + + col1 col0 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT col0 * 82 AS col2 FROM tab0 ---- 1968 2870 7298 query I rowsort SELECT ALL + col0 * - col1 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 17 31 59 query I rowsort SELECT ALL - col0 * + ( col2 ) FROM tab1 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-3315 SELECT ALL - col0 DIV 93 AS col1 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3315 SELECT ALL - col0 / 93 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL ( + 8 ) FROM tab0 ---- 8 8 8 query I rowsort SELECT + 27 FROM tab0 cor0 ---- 27 27 27 query I rowsort SELECT col1 - col0 AS col0 FROM tab1 cor0 ---- -54 -67 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + tab0.col0 * tab0.col2 * col2 col0 FROM tab0 ---- 26136 35 598436 query I rowsort SELECT + 89 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3321 SELECT DISTINCT + CAST( 57 AS SIGNED ) FROM tab2 ---- 57 skipif mysql # not compatible query I rowsort label-3321 SELECT DISTINCT + CAST ( 57 AS INTEGER ) FROM tab2 ---- 57 query I rowsort SELECT ALL + 40 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3 query I rowsort SELECT + col0 * + col0 + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT + ( - col1 ) * - 8 FROM tab2 AS cor0 ---- 136 248 472 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col0 ) col1 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT + col0 * + cor0.col1 + - col1 FROM tab2 AS cor0 ---- 1326 186 4543 query I rowsort SELECT DISTINCT + col1 + col2 * 76 FROM tab0 AS cor0 ---- 173 2594 6323 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 - col2 + - cor0.col1 - cor0.col1 col2 FROM tab2 AS cor0 ---- -144 -72 -89 query I rowsort SELECT + 11 AS col2 FROM tab2 AS cor0 ---- 11 11 11 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 * col0 + + col2 col2 FROM tab1 cor0 ---- 1136 132 697 query I rowsort SELECT DISTINCT + cor0.col1 * + col2 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT 3 FROM tab0 ---- 3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT ( - col2 ) * - CAST ( col0 + + col1 AS REAL ) col2 FROM tab2 ---- 1026 3562 3648 query I rowsort SELECT - cor0.col1 + + 65 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 1be1e1944033f12219bbce29544f13fd onlyif mysql # use DIV operator for integer division query I rowsort label-3336 SELECT + col1 * col2 + + col1 DIV col0 AS col0 FROM tab1 ---- 1248 1412 570 skipif mysql # not compatible query I rowsort label-3336 SELECT + col1 * col2 + + col1 / col0 AS col0 FROM tab1 ---- 1248 1412 570 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 - - col0 col2 FROM tab1 cor0 ---- -16 -51 7 query IIIIIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 AS cor2, tab2 ---- 13122 values hashing to 873b265567dfce995630b6a1ee93c4fc query I rowsort SELECT DISTINCT tab1.col0 + col1 AS col2 FROM tab1 ---- 29 74 93 query I rowsort SELECT ALL + col0 + 21 * 58 FROM tab1 AS cor0 ---- 1221 1282 1298 query I rowsort SELECT + + col1 - - ( cor0.col2 + + col2 ) AS col0 FROM tab2 AS cor0 ---- 111 85 93 query I rowsort SELECT DISTINCT cor0.col1 + 25 FROM tab2 AS cor0 ---- 42 56 84 query I rowsort SELECT ALL - + col1 * ( - col2 ) + - col2 + 69 AS col2 FROM tab2 AS cor0 ---- 1577 677 879 query I rowsort SELECT - - col1 + + col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT ALL col0 * 5 + + cor0.col0 FROM tab1 AS cor0 ---- 18 384 480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3346 SELECT ALL + col2 * CAST( NULL AS SIGNED ) * col0 + col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3346 SELECT ALL + col2 * CAST ( NULL AS INTEGER ) * col0 + col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3347 SELECT - + col0 DIV + 89 + - col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-3347 SELECT - + col0 / + 89 + - col1 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT + col1 + - 22 AS col1 FROM tab2 AS cor0 ---- -5 37 9 query I rowsort SELECT col0 * 54 + - cor0.col1 * - col2 AS col2 FROM tab2 AS cor0 ---- 1215 4912 5746 query I rowsort SELECT DISTINCT - col1 + col1 * + col0 AS col2 FROM tab1 cor0 ---- 1027 52 630 query I rowsort SELECT - 60 + + ( col1 ) * col1 FROM tab2 AS cor0 ---- 229 3421 901 query I rowsort SELECT - + ( ( col0 ) ) * col2 * + col0 AS col1 FROM tab0 AS cor0 ---- -1225 -19008 -649522 query I rowsort SELECT - 71 * - cor0.col2 FROM tab2 cor0 ---- 1846 1917 2698 query I rowsort SELECT ( - col1 ) * + cor0.col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT - 25 * col2 FROM tab2 AS cor0 ---- -650 -675 -950 onlyif mysql # use DIV operator for integer division query I rowsort label-3356 SELECT - col0 + + col0 DIV col1 AS col0 FROM tab1 AS cor0 ---- -3 -58 -74 skipif mysql # not compatible query I rowsort label-3356 SELECT - col0 + + col0 / col1 AS col0 FROM tab1 AS cor0 ---- -3 -58 -74 query I rowsort SELECT + - col1 + cor0.col2 * + ( col1 ) AS col1 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT ( tab1.col1 + tab1.col0 * col2 ) AS col1 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT ALL 61 AS col1 FROM tab0 ---- 61 61 61 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3360 SELECT ALL - CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3360 SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3361 SELECT - 96 * col1 DIV + col2 AS col0 FROM tab1 AS cor0 ---- -13 -16 -46 skipif mysql # not compatible query I rowsort label-3361 SELECT - 96 * col1 / + col2 AS col0 FROM tab1 AS cor0 ---- -13 -16 -46 query I rowsort SELECT DISTINCT 45 FROM tab2 AS cor0 ---- 45 query I rowsort SELECT - - 97 + + cor0.col0 * col0 FROM tab0 cor0 ---- 1322 673 8018 query I rowsort SELECT ALL - + col0 + + col1 AS col2 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT + col1 + - col2 * + col2 AS col2 FROM tab2 AS cor0 ---- -1427 -617 -698 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * + col2 + + col1 col2 FROM tab2 cor0 ---- -1427 -617 -698 onlyif mysql # use DIV operator for integer division query I rowsort label-3367 SELECT + - 6 * col0 DIV - col1 col0 FROM tab2 AS cor0 ---- 1 27 7 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3367 SELECT + - 6 * col0 / - col1 col0 FROM tab2 AS cor0 ---- 1 27 7 query I rowsort SELECT DISTINCT - + col2 * 6 AS col1 FROM tab2 AS cor0 ---- -156 -162 -228 query I rowsort SELECT ALL + + cor0.col1 + 5 AS col0 FROM tab2 AS cor0 ---- 22 36 64 query I rowsort SELECT ALL + - col2 + + col0 AS col1 FROM tab1 AS cor0 ---- -16 -51 7 onlyif mysql # use DIV operator for integer division query I rowsort label-3371 SELECT - col0 DIV - col1 FROM tab2 AS cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-3371 SELECT - col0 / - col1 FROM tab2 AS cor0 ---- 0 1 4 query I rowsort SELECT ALL - col2 * + col1 FROM tab2 ---- -1534 -646 -837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3373 SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3373 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3374 SELECT DISTINCT tab1.col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-3374 SELECT DISTINCT tab1.col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 ---- NULL query I rowsort SELECT ALL 61 AS col1 FROM tab0 AS cor0 ---- 61 61 61 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - cor0.col1 + cor0.col1 col0 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT DISTINCT 86 + - 97 FROM tab1 AS cor0 ---- -11 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3378 SELECT - CAST( NULL AS SIGNED ) * - 73 + col0 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3378 SELECT - CAST ( NULL AS INTEGER ) * - 73 + col0 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 8 + 12 AS col2 FROM tab2 ---- 20 20 20 query I rowsort SELECT DISTINCT + 5 - 90 AS col0 FROM tab2 ---- -85 query I rowsort SELECT + tab0.col1 FROM tab0, tab1 cor0 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query IIIIIIIII rowsort SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab1 cor1 ---- 243 values hashing to 26173f1193178352de9a2e4ca7f09d53 query I rowsort SELECT DISTINCT - cor0.col0 + col0 AS col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - col2 - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -164 -2 -66 query I rowsort SELECT DISTINCT - 22 * col2 * col1 FROM tab2 AS cor0 ---- -14212 -18414 -33748 query I rowsort SELECT DISTINCT tab1.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 3 64 80 query I rowsort SELECT DISTINCT + + col2 * 33 + col0 AS col0 FROM tab0 AS cor0 ---- 1113 2795 68 query I rowsort SELECT - + 5 + + col1 AS col1 FROM tab1 cor0 ---- 21 5 8 query I rowsort SELECT + 57 * cor0.col0 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to defabac90c62aaa8918b99ab737b14d0 query I rowsort SELECT ALL + 15 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd onlyif mysql # use DIV operator for integer division query I rowsort label-3391 SELECT + - col1 DIV col1 AS col2 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3391 SELECT + - col1 / col1 AS col2 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT col0 * 31 AS col0 FROM tab1 AS cor0 ---- 1984 2480 93 query I rowsort SELECT ALL 26 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 query I rowsort SELECT + col0 + 45 AS col1 FROM tab2 AS cor0 ---- 123 124 52 query I rowsort SELECT DISTINCT - col0 - + ( - cor0.col2 ) * col0 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT - col0 + + ( - col0 ) AS col2 FROM tab0 AS cor0 ---- -178 -48 -70 query I rowsort SELECT ALL - - col1 + + col2 * 60 AS col1 FROM tab0 AS cor0 ---- 157 2066 5011 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 * - col1 col1 FROM tab1 cor0 ---- -100 -169 -676 query I rowsort SELECT DISTINCT + - col0 * - col1 + 77 FROM tab0 cor0 ---- 2141 3472 8176 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 + 36 col0 FROM tab1 AS cor0 ---- -28 -44 33 query I rowsort SELECT ALL col0 - col0 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 * - 52 col0 FROM tab1 AS cor0 ---- -1352 -520 -676 query I rowsort SELECT DISTINCT col1 * col0 AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e query I rowsort SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1 ---- 24 35 89 query I rowsort SELECT DISTINCT ( - 6 ) FROM tab1 ---- -6 query I rowsort SELECT DISTINCT ( - col1 ) * + col2 + col2 AS col1 FROM tab1 AS cor0 ---- -1152 -1350 -513 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3408 SELECT ALL CAST( col0 AS SIGNED ) * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 4096 6400 9 skipif mysql # not compatible query I rowsort label-3408 SELECT ALL CAST ( col0 AS INTEGER ) * + 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-3409 SELECT ALL + CAST( + col1 AS SIGNED ) * col1 FROM tab2 AS cor0 ---- 289 3481 961 skipif mysql # not compatible query I rowsort label-3409 SELECT ALL + CAST ( + col1 AS INTEGER ) * col1 FROM tab2 AS cor0 ---- 289 3481 961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3410 SELECT - - CAST( + col2 AS SIGNED ) + col2 FROM tab0 AS cor0 ---- 164 2 66 skipif mysql # not compatible query I rowsort label-3410 SELECT - - CAST ( + col2 AS INTEGER ) + col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT - 83 + col0 * col0 AS col0 FROM tab0 cor0 ---- 1142 493 7838 query I rowsort SELECT 87 + + tab2.col2 * + 36 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to e81962c24049365429445344ece1f2e7 query I rowsort SELECT + - col0 + col0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 59 + - col2 AS col2 FROM tab0 AS cor0 ---- -23 26 58 onlyif mysql # use DIV operator for integer division query I rowsort label-3415 SELECT col0 DIV - col1 + col2 - cor0.col2 FROM tab1 cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-3415 SELECT col0 / - col1 + col2 - cor0.col2 FROM tab1 cor0 ---- -6 -6 0 query I rowsort SELECT DISTINCT - col0 + col2 * + 94 AS col2 FROM tab0 AS cor0 ---- 3078 59 7619 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 * + col0 + + col1 col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT ALL + - col2 * col2 AS col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT ALL + 45 * col1 AS col0 FROM tab1 AS cor0 ---- 1170 450 585 query I rowsort SELECT DISTINCT - 21 + col0 + + 62 * 75 * + col1 AS col1 FROM tab0 AS cor0 ---- 399903 423218 451064 query I rowsort SELECT + col2 + col0 - col1 * col0 AS col1 FROM tab2 AS cor0 ---- -1226 -183 -4498 query I rowsort SELECT ALL + 37 AS col2 FROM tab0 AS cor0 ---- 37 37 37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3423 SELECT - col1 + col0 / col0 + + ( cor0.col2 + CAST( NULL AS SIGNED ) * col2 ) col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3423 SELECT - col1 + col0 / col0 + + ( cor0.col2 + CAST ( NULL AS INTEGER ) * col2 ) col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 77 FROM tab0 AS cor0 ---- -77 -77 -77 query I rowsort SELECT ALL + 89 + col0 FROM tab1 ---- 153 169 92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3426 SELECT col2 + CAST( col0 AS SIGNED ) * col0 FROM tab0 AS cor0 ---- 1226 609 8003 skipif mysql # not compatible query I rowsort label-3426 SELECT col2 + CAST ( col0 AS INTEGER ) * col0 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT DISTINCT - - col2 * - ( col2 ) * + col0 FROM tab1 AS cor0 ---- -207936 -737280 -8748 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3428 SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) - cor0.col2 AS col1 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3428 SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) - cor0.col2 AS col1 FROM tab2 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3429 SELECT DISTINCT - + cor0.col2 + ( cor0.col1 ) DIV - col1 col1 FROM tab0 AS cor0 ---- -2 -34 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3429 SELECT DISTINCT - + cor0.col2 + ( cor0.col1 ) / - col1 col1 FROM tab0 AS cor0 ---- -2 -34 -83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3430 SELECT + + col1 * - CAST( NULL AS DECIMAL ) + - col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3430 SELECT + + col1 * - CAST ( NULL AS REAL ) + - col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3431 SELECT ALL ( col1 ) * col2 DIV + tab1.col1 + col0 AS col1 FROM tab1 ---- 121 176 57 skipif mysql # not compatible query I rowsort label-3431 SELECT ALL ( col1 ) * col2 / + tab1.col1 + col0 AS col1 FROM tab1 ---- 121 176 57 query I rowsort SELECT col0 + + col2 * 7 * - 71 FROM tab2 ---- -12844 -13412 -18807 query I rowsort SELECT DISTINCT col0 + - col2 + 36 AS col0 FROM tab2 ---- 16 77 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( col1 ) + + col2 * - col2 col1 FROM tab0 ---- -1003 -6633 96 query I rowsort SELECT 36 FROM tab2, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to 4d1892e880125dc90345721151acb22c query I rowsort SELECT col2 * + col1 * 56 FROM tab1 ---- 31920 69888 78624 query I rowsort SELECT DISTINCT 29 * - col2 + tab2.col0 * + tab2.col1 FROM tab2 ---- -566 241 3848 query I rowsort SELECT - ( col2 ) * 41 AS col0 FROM tab0 ---- -1353 -3362 -41 query I rowsort SELECT col1 * + tab1.col0 AS col0 FROM tab1 ---- 1040 640 78 query I rowsort SELECT DISTINCT 72 AS col2 FROM tab0 ---- 72 query I rowsort SELECT ALL col0 * + ( tab2.col2 ) * col1 AS col2 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT 72 AS col2 FROM tab2 cor0 ---- 72 72 72 query I rowsort SELECT + + col2 - + 49 AS col2 FROM tab0 AS cor0 ---- -16 -48 33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3444 SELECT CAST( NULL AS DECIMAL ) + + col1 + col1 * + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3444 SELECT CAST ( NULL AS REAL ) + + col1 + col1 * + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 * col2 + col1 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT 66 * cor0.col0 AS col1 FROM tab1 AS cor0 ---- 198 4224 5280 query I rowsort SELECT + col2 * col1 + col2 AS col2 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT + ( col1 ) * tab0.col0 * + col0 AS col1 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT ALL col1 * - 91 AS col0 FROM tab0 ---- -7826 -8281 -8827 query I rowsort SELECT DISTINCT ( tab0.col1 + - col1 ) FROM tab0 ---- 0 query I rowsort SELECT col1 * + 31 FROM tab0 ---- 2666 2821 3007 query I rowsort SELECT tab0.col2 * + tab0.col2 AS col1 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT - tab1.col0 * - cor0.col1 FROM tab1, tab0, tab2 AS cor0 ---- 9 values hashing to 513658d2b0deb2a03e2701049cc4e166 onlyif mysql # use DIV operator for integer division query I rowsort label-3454 SELECT + 12 * + col1 + - col0 DIV tab0.col2 FROM tab0 ---- 1032 1091 1129 skipif mysql # not compatible query I rowsort label-3454 SELECT + 12 * + col1 + - col0 / tab0.col2 FROM tab0 ---- 1032 1091 1129 onlyif mysql # use DIV operator for integer division query I rowsort label-3455 SELECT - col1 DIV 47 col1 FROM tab2 ---- -1 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3455 SELECT - col1 / 47 col1 FROM tab2 ---- -1 0 0 query I rowsort SELECT DISTINCT col0 + col2 * col0 AS col1 FROM tab2 ---- 196 2106 3081 query I rowsort SELECT ALL + col2 + col1 * + col1 + + col0 FROM tab0 ---- 7453 8452 9445 query I rowsort SELECT + col2 + 28 AS col0 FROM tab1 ---- 124 82 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3459 SELECT + + cor0.col1 + CAST( NULL AS DECIMAL ) FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3459 SELECT + + cor0.col1 + CAST ( NULL AS REAL ) FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT + col1 + - col0 * 85 * + col1 FROM tab2 AS cor0 ---- -114138 -18414 -391111 query I rowsort SELECT cor0.col0 AS col1 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT ALL + 55 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3 query I rowsort SELECT - cor0.col0 + + col2 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT col1 + + tab2.col2 FROM tab2 ---- 55 58 85 query I rowsort SELECT 26 + + 94 AS col0 FROM tab1, tab2 cor0 ---- 9 values hashing to 9a76417a0e660b9e47db42d33f8268c3 query I rowsort SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + - 35 col2 FROM tab0 AS cor0 ---- 51 56 62 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2 ---- 3645 values hashing to a1a9b1c1e9ca8f59e89e834a7cdebbd0 query I rowsort SELECT - col1 * 30 FROM tab2 AS cor0 ---- -1770 -510 -930 query I rowsort SELECT ALL col1 + ( + col0 ) FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT - cor0.col1 * + col1 AS col2 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT - - cor0.col2 * + cor0.col2 + col0 FROM tab2 cor0 ---- 1523 736 754 query I rowsort SELECT DISTINCT + col1 * - col0 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + col2 * + tab1.col1 * - col2 + col1 FROM tab1 ---- -119795 -32480 -75790 query I rowsort SELECT DISTINCT col1 * tab0.col1 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT col1 + - tab2.col1 * - col1 FROM tab2 ---- 306 3540 992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col0 * col0 * - col1 col0 FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT - - col2 * + col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - 45 AS col2 FROM tab1 ---- -45 query I rowsort SELECT - 87 * col0 - cor0.col0 AS col1 FROM tab1 AS cor0 ---- -264 -5632 -7040 query I rowsort SELECT ( + col0 ) + col0 AS col2 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT DISTINCT - tab1.col2 + - col2 AS col1 FROM tab1 ---- -108 -114 -192 query I rowsort SELECT ALL tab1.col0 + - col2 AS col2 FROM tab1 ---- -16 -51 7 query I rowsort SELECT col1 * col1 + col1 * + col0 AS col1 FROM tab2 AS cor0 ---- 1178 1632 8083 onlyif mysql # use DIV operator for integer division query I rowsort label-3485 SELECT + col0 * + col2 + col1 * col2 DIV col1 FROM tab2 AS cor0 ---- 2054 216 3040 skipif mysql # not compatible query I rowsort label-3485 SELECT + col0 * + col2 + col1 * col2 / col1 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT col1 + - col1 * col1 FROM tab1 AS cor0 ---- -156 -650 -90 query I rowsort SELECT ALL - 40 FROM tab0 AS cor0 ---- -40 -40 -40 query I rowsort SELECT - 32 AS col0 FROM tab1 AS cor0 ---- -32 -32 -32 query I rowsort SELECT DISTINCT + - col1 * cor0.col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL col1 * - col1 AS col0 FROM tab1 cor0 ---- -100 -169 -676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3491 SELECT DISTINCT col1 + - col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3491 SELECT DISTINCT col1 + - col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT - + col1 * + col2 AS col2 FROM tab0 cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-3493 SELECT - + col2 DIV col1 AS col0 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3493 SELECT - + col2 / col1 AS col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + 41 + col2 AS col1 FROM tab0 AS cor0 ---- 123 42 74 query I rowsort SELECT DISTINCT - 3 * - col2 FROM tab0 ---- 246 3 99 query I rowsort SELECT + 57 * col0 * + col1 FROM tab1 AS cor0 ---- 36480 4446 59280 onlyif mysql # use DIV operator for integer division query I rowsort label-3497 SELECT DISTINCT + col2 DIV col0 FROM tab1 AS cor0 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-3497 SELECT DISTINCT + col2 / col0 FROM tab1 AS cor0 ---- 0 1 18 query I rowsort SELECT - col1 + col0 * col2 AS col2 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT ALL + + ( col0 ) FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-3500 SELECT DISTINCT + col2 DIV col2 AS col0 FROM tab0 ---- 1 skipif mysql # not compatible query I rowsort label-3500 SELECT DISTINCT + col2 / col2 AS col0 FROM tab0 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-3501 SELECT + ( + col0 ) * col1 DIV + col0 FROM tab0 cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-3501 SELECT + ( + col0 ) * col1 / + col0 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT DISTINCT - 44 * col1 FROM tab1 cor0 ---- -1144 -440 -572 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col1 * cor0.col0 + + col2 col0 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT DISTINCT 28 * col1 AS col2 FROM tab0 AS cor0 ---- 2408 2548 2716 query I rowsort SELECT ALL - - 66 + col2 + - col0 AS col1 FROM tab0 AS cor0 ---- 32 59 75 query I rowsort SELECT ALL - - 38 AS col2 FROM tab2 AS cor0 ---- 38 38 38 query I rowsort SELECT DISTINCT + col2 + + col2 FROM tab1 cor0 ---- 108 114 192 query I rowsort SELECT + col0 * - 15 + + col0 FROM tab0 AS cor0 ---- -1246 -336 -490 query I rowsort SELECT DISTINCT - + 0 + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 24 35 89 query I rowsort SELECT DISTINCT col0 + - 42 FROM tab2 cor0 ---- -35 36 37 query I rowsort SELECT - col1 + 97 FROM tab1 AS cor0 ---- 71 84 87 query I rowsort SELECT 13 + ( col2 ) AS col2 FROM tab0 AS cor0 ---- 14 46 95 query I rowsort SELECT DISTINCT col2 * - col0 + - col2 FROM tab2 AS cor0 ---- -2054 -216 -3040 query I rowsort SELECT DISTINCT - ( + col2 ) + - col1 AS col1 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT + + ( + 16 ) + col2 AS col1 FROM tab2 AS cor0 ---- 42 43 54 query I rowsort SELECT ALL + ( ( col0 ) ) AS col0 FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT ALL - col1 * 87 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -7396 -7826 -8342 query I rowsort SELECT + ( col1 ) * - col1 + col1 AS col0 FROM tab1 AS cor0 ---- -156 -650 -90 query I rowsort SELECT + cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT DISTINCT + 9 AS col0 FROM tab0 AS cor0 ---- 9 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2 ---- 3645 values hashing to b8435223668db186a5012e4112253f28 query I rowsort SELECT DISTINCT tab0.col0 * - col0 + col0 + - col0 FROM tab0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT + ( 52 ) + - col2 FROM tab2 ---- 14 25 26 query I rowsort SELECT + ( - 1 ) + + col0 AS col1 FROM tab2 ---- 6 77 78 query I rowsort SELECT - col0 * - tab2.col1 + - col1 * - 32 FROM tab2 ---- 1209 1887 6490 query I rowsort SELECT 33 + + 14 * - col1 AS col2 FROM tab1 ---- -107 -149 -331 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + ( col2 ) ) * col0 * col0 - - tab0.col1 col1 FROM tab0 ---- 1322 19094 649613 query I rowsort SELECT ALL + 94 * col2 AS col2 FROM tab2 AS cor0 ---- 2444 2538 3572 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * - col0 + + col1 col0 FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT DISTINCT - tab2.col2 + + col2 FROM tab2 ---- 0 query I rowsort SELECT ALL + 80 * ( col1 ) + col1 FROM tab1 ---- 1053 2106 810 query I rowsort SELECT - ( 10 ) * col0 AS col0 FROM tab0 ---- -240 -350 -890 query I rowsort SELECT - col1 * col1 + - tab2.col0 FROM tab2 ---- -3559 -368 -968 onlyif mysql # use DIV operator for integer division query I rowsort label-3534 SELECT + col0 DIV - col1 + col0 * tab1.col2 AS col2 FROM tab1 ---- 162 3642 7674 skipif mysql # not compatible query I rowsort label-3534 SELECT + col0 / - col1 + col0 * tab1.col2 AS col2 FROM tab1 ---- 162 3642 7674 query I rowsort SELECT + - 63 * col1 AS col2 FROM tab1 AS cor0 ---- -1638 -630 -819 query I rowsort SELECT 74 + col2 FROM tab1 AS cor0 ---- 128 131 170 onlyif mysql # use DIV operator for integer division query I rowsort label-3537 SELECT + col2 * col2 DIV 55 + col1 FROM tab2 AS cor0 ---- 43 44 71 skipif mysql # not compatible query I rowsort label-3537 SELECT + col2 * col2 / 55 + col1 FROM tab2 AS cor0 ---- 43 44 71 onlyif mysql # use DIV operator for integer division query I rowsort label-3538 SELECT DISTINCT + col1 + col0 DIV col1 AS col2 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-3538 SELECT DISTINCT + col1 + col0 / col1 AS col2 FROM tab0 AS cor0 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + - cor0.col2 + + 23 * col0 col2 FROM tab1 AS cor0 ---- 12 1351 1664 query I rowsort SELECT ALL + 49 AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT DISTINCT col2 + col0 + - col1 FROM tab0 ---- -29 -61 80 query I rowsort SELECT - col0 + col1 * col0 + + col2 * + col1 FROM tab1 ---- 1146 1479 2208 query I rowsort SELECT - col1 * col1 * tab1.col0 + col0 AS col2 FROM tab1 ---- -13440 -2025 -6336 query I rowsort SELECT DISTINCT + col1 + - col0 * + tab1.col1 * col0 AS col2 FROM tab1 ---- -208 -40950 -83187 onlyif mysql # use DIV operator for integer division query I rowsort label-3545 SELECT DISTINCT + col2 + col1 + - ( + col2 + col0 ) DIV + 37 FROM tab0 ---- 118 169 98 skipif mysql # not compatible query I rowsort label-3545 SELECT DISTINCT + col2 + col1 + - ( + col2 + col0 ) / + 37 FROM tab0 ---- 118 169 98 query I rowsort SELECT + col0 * - ( + col2 ) AS col2 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT ALL - tab0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT DISTINCT - col0 + - col0 AS col2 FROM tab1 ---- -128 -160 -6 query I rowsort SELECT ALL - col2 * + 6 + col2 FROM tab2 AS cor0 ---- -130 -135 -190 query I rowsort SELECT DISTINCT col0 + cor0.col2 * + 86 AS col0 FROM tab1 AS cor0 ---- 4647 4966 8336 query I rowsort SELECT + cor0.col1 * ( col0 ) AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-3552 SELECT ALL + - col0 DIV col0 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3552 SELECT ALL + - col0 / col0 FROM tab2 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-3553 SELECT DISTINCT + - col2 * - 76 + - 88 DIV + col2 AS col0 FROM tab0 AS cor0 ---- -12 2506 6231 skipif mysql # not compatible query I rowsort label-3553 SELECT DISTINCT + - col2 * - 76 + - 88 / + col2 AS col0 FROM tab0 AS cor0 ---- -12 2506 6231 query I rowsort SELECT + 15 FROM tab0, tab1 AS cor0 ---- 9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3555 SELECT ALL CAST( NULL AS SIGNED ) + col2 * cor0.col0 + - 73 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-3555 SELECT ALL CAST ( NULL AS INTEGER ) + col2 * cor0.col0 + - 73 col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col2 - col2 * - col2 * - col1 col2 FROM tab1 AS cor0 ---- -119712 -32433 -75762 query I rowsort SELECT DISTINCT - ( + col2 ) * col2 AS col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT + 86 FROM tab2 cor0 ---- 86 onlyif mysql # use DIV operator for integer division query I rowsort label-3559 SELECT + col1 * - 80 - col1 DIV - cor0.col2 FROM tab1 AS cor0 ---- -1040 -2080 -800 skipif mysql # not compatible query I rowsort label-3559 SELECT + col1 * - 80 - col1 / - cor0.col2 FROM tab1 AS cor0 ---- -1040 -2080 -800 onlyif mysql # use DIV operator for integer division query I rowsort label-3560 SELECT ALL + 82 + + col2 DIV - col2 FROM tab0 AS cor0 ---- 81 81 81 skipif mysql # not compatible query I rowsort label-3560 SELECT ALL + 82 + + col2 / - col2 FROM tab0 AS cor0 ---- 81 81 81 query I rowsort SELECT DISTINCT + ( - col0 ) * + col2 + - ( col2 ) FROM tab1 AS cor0 ---- -216 -3705 -7776 query I rowsort SELECT 58 + - col0 FROM tab2 AS cor0 ---- -20 -21 51 query I rowsort SELECT ALL - cor0.col0 + col0 * + col1 AS col0 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT ALL - + col1 + col1 AS col1 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT + cor0.col1 * ( - col0 ) + col2 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT DISTINCT ( - col0 ) + col2 * - 25 + col2 AS col2 FROM tab2 AS cor0 ---- -655 -702 -991 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-3568 SELECT DISTINCT ( + col1 ) * col1 + + cor0.col2 DIV 2 FROM tab1 AS cor0 ---- 128 217 703 skipif mysql # not compatible query I rowsort label-3568 SELECT DISTINCT ( + col1 ) * col1 + + cor0.col2 / 2 FROM tab1 AS cor0 ---- 128 217 703 query I rowsort SELECT - - ( - 32 ) FROM tab0 AS cor0 ---- -32 -32 -32 query I rowsort SELECT ALL cor0.col2 - - col0 * + col1 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT - ( + col1 ) * - col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + ( 24 ) + col1 * + col1 FROM tab2 AS cor0 ---- 313 3505 985 query I rowsort SELECT ALL - - 25 + col1 FROM tab0 AS cor0 ---- 111 116 122 query I rowsort SELECT ALL cor0.col0 * col2 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT - ( + col0 ) + - col2 * ( col0 ) FROM tab1 AS cor0 ---- -165 -3712 -7760 onlyif mysql # use DIV operator for integer division query I rowsort label-3576 SELECT ALL - ( 45 ) + + col2 DIV + col1 FROM tab0 AS cor0 ---- -45 -45 -45 skipif mysql # not compatible query I rowsort label-3576 SELECT ALL - ( 45 ) + + col2 / + col1 FROM tab0 AS cor0 ---- -45 -45 -45 query I rowsort SELECT - col2 * + 20 + - col2 + - col0 FROM tab2 AS cor0 ---- -574 -624 -877 query I rowsort SELECT ALL 22 * + col1 FROM tab0 AS cor0 ---- 1892 2002 2134 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3 ---- 3645 values hashing to 181d902c42955a43a374f13a73d8b0a1 query I rowsort SELECT - col0 + 69 FROM tab1 AS cor0 ---- -11 5 66 query I rowsort SELECT DISTINCT + col1 * + ( col1 ) FROM tab1 ---- 100 169 676 query I rowsort SELECT ALL 66 AS col2 FROM tab2 ---- 66 66 66 query I rowsort SELECT 71 AS col1 FROM tab0 AS cor0 ---- 71 71 71 query I rowsort SELECT ALL + tab2.col1 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 skipif mysql # not compatible query I rowsort SELECT CAST ( 65 AS REAL ) FROM tab2 AS cor0 ---- 65 65 65 query I rowsort SELECT DISTINCT 39 AS col0 FROM tab2, tab0, tab0 AS cor0 ---- 39 query I rowsort SELECT ALL - ( col1 ) * - col2 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT + + cor0.col0 * 23 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 50d0eac07825adb455b119c43853cd72 query I rowsort SELECT - col2 + + col1 + 13 FROM tab1 AS cor0 ---- -15 -34 -70 query I rowsort SELECT + 52 * - col0 FROM tab2 AS cor0 ---- -364 -4056 -4108 query I rowsort SELECT + 76 + col2 * col1 * - ( cor0.col1 ) AS col2 FROM tab2 cor0 ---- -10906 -25871 -90430 query I rowsort SELECT - + 1 * col1 AS col2 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT - col0 + col0 * 26 AS col1 FROM tab2 AS cor0 ---- 175 1950 1975 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col2 col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL + 48 * tab1.col0 FROM tab1 ---- 144 3072 3840 query I rowsort SELECT + cor0.col1 * col1 + 32 AS col0 FROM tab1 AS cor0 ---- 132 201 708 query I rowsort SELECT col2 + - col0 AS col1 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT ALL tab1.col2 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT DISTINCT col0 + col0 + col2 AS col0 FROM tab0 ---- 260 71 81 query I rowsort SELECT + cor0.col2 + - 94 FROM tab1 AS cor0 ---- -37 -40 2 onlyif mysql # use DIV operator for integer division query I rowsort label-3601 SELECT + col2 + + ( ( + col0 ) ) DIV - col2 FROM tab0 AS cor0 ---- -34 33 81 skipif mysql # not compatible query I rowsort label-3601 SELECT + col2 + + ( ( + col0 ) ) / - col2 FROM tab0 AS cor0 ---- -34 33 81 query I rowsort SELECT DISTINCT + col1 * 17 FROM tab1 AS cor0 ---- 170 221 442 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2 ---- 3645 values hashing to e6082e644debd74dcf1042b918d79199 query I rowsort SELECT - col0 * + 6 FROM tab1 AS cor0 ---- -18 -384 -480 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * 42 col2 FROM tab0 AS cor0 ---- -1386 -3444 -42 onlyif mysql # use DIV operator for integer division query I rowsort label-3606 SELECT DISTINCT + - col0 + - col0 DIV ( cor0.col1 ) FROM tab1 AS cor0 ---- -3 -70 -86 skipif mysql # not compatible query I rowsort label-3606 SELECT DISTINCT + - col0 + - col0 / ( cor0.col1 ) FROM tab1 AS cor0 ---- -3 -70 -86 query I rowsort SELECT DISTINCT - col1 * + col0 - - col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT cor0.col2 * cor0.col2 * col1 FROM tab1 AS cor0 ---- 119808 32490 75816 query I rowsort SELECT - 44 * + 60 AS col1 FROM tab0 AS cor0 ---- -2640 -2640 -2640 query I rowsort SELECT ALL col2 * - col1 AS col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL 38 + - 36 FROM tab2 AS cor0 ---- 2 2 2 query I rowsort SELECT DISTINCT 49 - 75 FROM tab1 cor0 ---- -26 query I rowsort SELECT + - 84 + 0 FROM tab2 AS cor0 ---- -84 -84 -84 query I rowsort SELECT ALL + 37 * col1 FROM tab2 AS cor0 ---- 1147 2183 629 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 80 + col0 col2 FROM tab2 AS cor0 ---- -1 -2 -73 query I rowsort SELECT DISTINCT - col1 + col0 + + tab2.col2 * - col1 * + col2 FROM tab2 ---- -22623 -24486 -39865 query I rowsort SELECT DISTINCT - col0 + col0 AS col2 FROM tab2 ---- 0 query I rowsort SELECT DISTINCT col0 * 61 + col1 FROM tab2 ---- 458 4817 4836 query I rowsort SELECT ALL + col2 + ( ( col0 ) + - 43 ) FROM tab0 ---- -7 128 14 query I rowsort SELECT col2 * - 4 - - col2 FROM tab0 ---- -246 -3 -99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + col2 col1 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT + + col2 * - col1 * - col2 + - cor0.col0 - - col0 AS col0 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT ALL - col0 + col2 + col0 * 29 FROM tab1 cor0 ---- 138 1849 2336 query I rowsort SELECT + 71 + - col1 FROM tab0 AS cor0 ---- -15 -20 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-3625 SELECT ALL col1 * cor0.col1 + col0 + - col0 DIV col2 FROM tab0 AS cor0 ---- 7420 8369 9409 skipif mysql # not compatible query I rowsort label-3625 SELECT ALL col1 * cor0.col1 + col0 + - col0 / col2 FROM tab0 AS cor0 ---- 7420 8369 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-3626 SELECT ALL + - col1 DIV - col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-3626 SELECT ALL + - col1 / - col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 query I rowsort SELECT col1 + col2 - + 64 AS col0 FROM tab0 AS cor0 ---- 109 34 55 query I rowsort SELECT - col0 * col2 + - 75 - + col0 AS col2 FROM tab2 AS cor0 ---- -2181 -271 -3156 query I rowsort SELECT 44 + col1 + col0 FROM tab0 AS cor0 ---- 154 176 224 query I rowsort SELECT 23 * + col0 FROM tab0 ---- 2047 552 805 query I rowsort SELECT 78 FROM tab1, tab2, tab0 cor0 ---- 27 values hashing to d8e5ef4db3419fc251e82c50ba04e048 query I rowsort SELECT ALL tab1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col1 * col1 col2 FROM tab2 ---- 289 3481 961 query I rowsort SELECT + 70 * + 78 AS col2 FROM tab0 ---- 5460 5460 5460 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 - col1 col0 FROM tab2 ---- 0 query I rowsort SELECT - 78 AS col1 FROM tab0 AS cor0 ---- -78 -78 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * cor0.col2 col0 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-3638 SELECT DISTINCT - col2 + tab1.col2 DIV - col2 AS col2 FROM tab1 ---- -55 -58 -97 skipif mysql # not compatible query I rowsort label-3638 SELECT DISTINCT - col2 + tab1.col2 / - col2 AS col2 FROM tab1 ---- -55 -58 -97 query I rowsort SELECT col1 - - tab2.col0 AS col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT DISTINCT col1 + - ( col1 * + col1 + col1 ) FROM tab0 ---- -7396 -8281 -9409 query I rowsort SELECT cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT DISTINCT + tab1.col1 * col2 + col2 AS col2 FROM tab1 ---- 1344 1458 627 query I rowsort SELECT DISTINCT + tab1.col0 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 3 64 80 query I rowsort SELECT DISTINCT - ( col1 ) * + col2 + 1 AS col0 FROM tab0 ---- -2837 -7461 -96 query I rowsort SELECT DISTINCT - - 93 AS col0 FROM tab2 AS cor0 ---- 93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 * 1 col1 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT ( col2 ) + + col1 * col2 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3648 SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-3648 SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT - col1 + + cor0.col2 + - col1 * + col1 FROM tab1 AS cor0 ---- -53 -648 -86 query I rowsort SELECT ALL + 63 * - col0 + - col2 AS col0 FROM tab2 ---- -468 -4940 -5015 query I rowsort SELECT + ( + col0 ) + col2 * - 55 FROM tab2 ---- -1352 -1478 -2011 query I rowsort SELECT + - col1 * + col0 + col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT - - col1 * - cor0.col2 + + col2 * + col2 FROM tab0 AS cor0 ---- -1749 -738 -96 query I rowsort SELECT DISTINCT ( col0 ) * col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT + col0 + + cor0.col2 FROM tab2 cor0 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 * - col2 + col0 col0 FROM tab0 AS cor0 ---- -1065 -6635 34 query I rowsort SELECT DISTINCT - 91 * - col1 * - 27 + ( col1 * - cor0.col0 ) FROM tab0 AS cor0 ---- -213366 -231686 -241724 onlyif mysql # use DIV operator for integer division query I rowsort label-3658 SELECT col0 DIV col2 + + ( - 41 ) FROM tab1 ---- -40 -41 -41 skipif mysql # not compatible query I rowsort label-3658 SELECT col0 / col2 + + ( - 41 ) FROM tab1 ---- -40 -41 -41 query I rowsort SELECT ALL + tab0.col2 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3660 SELECT ALL - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-3660 SELECT ALL - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + + 1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 query I rowsort SELECT ALL + + 53 AS col2 FROM tab0 AS cor0 ---- 53 53 53 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + - col2 * - col0 col2 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT ALL 75 - col0 FROM tab0 AS cor0 ---- -14 40 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col0 col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - 70 * - col2 + 2 AS col2 FROM tab0 AS cor0 ---- 2312 5742 72 query I rowsort SELECT + col0 + - col1 AS col2 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT - col2 - + 66 AS col0 FROM tab1 ---- -120 -123 -162 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 27 col1 FROM tab0 AS cor0 ---- 27 27 27 query I rowsort SELECT - + col2 + col1 AS col1 FROM tab2 cor0 ---- -21 33 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + + col1 col1 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT + 80 * - col1 + - cor0.col0 FROM tab0 cor0 ---- -6904 -7369 -7795 query I rowsort SELECT cor0.col2 * - ( + 37 * + col0 ) FROM tab0 cor0 ---- -1295 -270026 -29304 query I rowsort SELECT DISTINCT tab0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 86 91 97 query I rowsort SELECT - col0 + - col0 * col0 AS col1 FROM tab0 cor0 ---- -1260 -600 -8010 query I rowsort SELECT col1 * ( + ( col1 ) * 43 ) AS col2 FROM tab0 ---- 318028 356083 404587 onlyif mysql # use DIV operator for integer division query I rowsort label-3678 SELECT - col2 + - col1 DIV 88 FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-3678 SELECT - col2 + - col1 / 88 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT ALL - col2 + - col0 * col1 AS col2 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT DISTINCT - col0 * + ( col1 ) - + col0 * ( - col1 ) AS col1 FROM tab1 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3681 SELECT ALL + + col0 * - CAST( NULL AS SIGNED ) * cor0.col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3681 SELECT ALL + + col0 * - CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3682 SELECT DISTINCT + cor0.col2 + + col0 DIV - col1 col1 FROM tab1 AS cor0 ---- 51 54 90 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3682 SELECT DISTINCT + cor0.col2 + + col0 / - col1 col1 FROM tab1 AS cor0 ---- 51 54 90 query I rowsort SELECT col2 * + col0 + 63 AS col0 FROM tab1 AS cor0 ---- 225 3711 7743 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3684 SELECT ALL + col0 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3684 SELECT ALL + col0 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3685 SELECT + col1 - + cor0.col0 DIV 77 FROM tab1 AS cor0 ---- 10 12 26 skipif mysql # not compatible query I rowsort label-3685 SELECT + col1 - + cor0.col0 / 77 FROM tab1 AS cor0 ---- 10 12 26 query I rowsort SELECT cor0.col1 * col0 * + col1 + col2 FROM tab2 AS cor0 ---- 22869 271544 6754 onlyif mysql # use DIV operator for integer division query I rowsort label-3687 SELECT + cor0.col1 - cor0.col2 * col2 DIV + col0 FROM tab1 AS cor0 ---- -102 -40 -946 skipif mysql # not compatible query I rowsort label-3687 SELECT + cor0.col1 - cor0.col2 * col2 / + col0 FROM tab1 AS cor0 ---- -102 -40 -946 query I rowsort SELECT DISTINCT + + col2 * - col2 AS col0 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT ALL - - col0 + col0 - + col0 FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-3690 SELECT ALL - - 70 DIV 58 + + cor0.col0 * col1 + - col2 FROM tab2 AS cor0 ---- 1306 191 4577 skipif mysql # not compatible query I rowsort label-3690 SELECT ALL - - 70 / 58 + + cor0.col0 * col1 + - col2 FROM tab2 AS cor0 ---- 1306 191 4577 query I rowsort SELECT + - 55 * + 30 - + col2 * + col2 AS col1 FROM tab1 AS cor0 ---- -10866 -4566 -4899 query I rowsort SELECT DISTINCT + col2 - col0 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT ( 46 ) AS col1 FROM tab0 AS cor0 ---- 46 query I rowsort SELECT - 0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 cor2 ---- 81 values hashing to 1f117f467f45d8c6b7553e2e3c842942 query I rowsort SELECT + col0 + - col0 * + col1 AS col1 FROM tab1 cor0 ---- -576 -75 -960 query I rowsort SELECT ALL - col1 - + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT + col0 + ( - 22 ) FROM tab2 ---- -15 56 57 query I rowsort SELECT - col1 - ( col2 ) AS col2 FROM tab2 ---- -55 -58 -85 query I rowsort SELECT + + col2 + - col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - + 76 FROM tab1 cor0 ---- -76 -76 -76 query I rowsort SELECT ALL - col2 * - 12 FROM tab1 AS cor0 ---- 1152 648 684 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( col2 ) * col1 + 78 * col1 * col0 col1 FROM tab1 AS cor0 ---- 4680 49350 79872 query I rowsort SELECT 63 * + 7 + + col1 * 69 - - col1 FROM tab1 AS cor0 ---- 1141 1351 2261 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3704 SELECT CAST( NULL AS SIGNED ) * + cor0.col2 / + col0 - 68 * col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3704 SELECT CAST ( NULL AS INTEGER ) * + cor0.col2 / + col0 - 68 * col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - 12 + 93 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267 onlyif mysql # use DIV operator for integer division query I rowsort label-3706 SELECT 25 * col2 DIV col1 - - 46 FROM tab1 AS cor0 ---- 188 230 97 skipif mysql # not compatible query I rowsort label-3706 SELECT 25 * col2 / col1 - - 46 FROM tab1 AS cor0 ---- 188 230 97 query I rowsort SELECT - + col1 * cor0.col2 * col2 FROM tab1 AS cor0 ---- -119808 -32490 -75816 query I rowsort SELECT 76 * col1 - + col1 FROM tab1 AS cor0 ---- 1950 750 975 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3709 SELECT ALL - CAST( ( + col1 ) AS SIGNED ) + - col1 AS col1 FROM tab1 ---- -20 -26 -52 skipif mysql # not compatible query I rowsort label-3709 SELECT ALL - CAST ( ( + col1 ) AS INTEGER ) + - col1 AS col1 FROM tab1 ---- -20 -26 -52 query I rowsort SELECT + 4 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 6fec965b60b9885c4af73e85422cfd9b query I rowsort SELECT col1 * - col1 + + 17 AS col1 FROM tab1 AS cor0 ---- -152 -659 -83 query I rowsort SELECT col1 * 61 AS col0 FROM tab2 ---- 1037 1891 3599 onlyif mysql # use DIV operator for integer division query I rowsort label-3713 SELECT ALL + col2 * ( - col0 ) + - col0 DIV + ( col1 ) AS col1 FROM tab1 ---- -162 -3654 -7686 skipif mysql # not compatible query I rowsort label-3713 SELECT ALL + col2 * ( - col0 ) + - col0 / + ( col1 ) AS col1 FROM tab1 ---- -162 -3654 -7686 query I rowsort SELECT DISTINCT 92 FROM tab1 ---- 92 query I rowsort SELECT + col1 + 62 * col2 AS col1 FROM tab2 AS cor0 ---- 1671 1705 2373 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3716 SELECT - col0 + CAST( + 7 AS SIGNED ) AS col1 FROM tab0 cor0 ---- -17 -28 -82 skipif mysql # not compatible query I rowsort label-3716 SELECT - col0 + CAST ( + 7 AS INTEGER ) AS col1 FROM tab0 cor0 ---- -17 -28 -82 query I rowsort SELECT ALL - col0 + col2 * - col1 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3719 SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-3719 SELECT - CAST ( NULL AS INTEGER ) AS col2 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 DISTINCT col2 * + col0 col1 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT DISTINCT col1 * col0 * tab2.col0 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT DISTINCT col2 * - col0 AS col2 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT ALL + tab0.col0 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 onlyif mysql # use DIV operator for integer division query I rowsort label-3724 SELECT DISTINCT col2 DIV - 93 AS col2 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-3724 SELECT DISTINCT col2 / - 93 AS col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL - col2 * + cor0.col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - + col0 AS col1 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT + 22 FROM tab1, tab1 cor0, tab0 AS cor1 ---- 22 query I rowsort SELECT ALL - + col1 * + col2 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + 46 AS col1 FROM tab1 cor0 ---- 46 46 46 query I rowsort SELECT + tab2.col0 AS col2 FROM tab0, tab1 cor0 CROSS JOIN tab2 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT DISTINCT - col0 * col1 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT ( - col1 ) * 34 FROM tab2 ---- -1054 -2006 -578 query I rowsort SELECT - - col0 + + col1 * 7 + col0 * - col1 * - 40 AS col2 FROM tab0 cor0 ---- 136514 324686 83186 query I rowsort SELECT cor0.col1 * + 33 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ca1c3aac59acee4d5db2847dddc1b912 query I rowsort SELECT - cor0.col2 AS col1 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT DISTINCT col2 + 11 AS col2 FROM tab0 ---- 12 44 93 query I rowsort SELECT + col1 * 45 AS col1 FROM tab1 ---- 1170 450 585 query I rowsort SELECT DISTINCT + col0 + + col2 AS col2 FROM tab1 ---- 121 176 57 query I rowsort SELECT col1 * col1 AS col2 FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT DISTINCT - col0 * + col1 + + col1 * - col1 AS col1 FROM tab0 AS cor0 ---- -12804 -16380 -9460 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3741 SELECT col1 / CAST( NULL AS SIGNED ) - + col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3741 SELECT col1 / CAST ( NULL AS INTEGER ) - + col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab2.col2 col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT - - col1 + col1 FROM tab0 cor0 ---- 172 182 194 query I rowsort SELECT - col2 + 75 * - col1 AS col2 FROM tab2 AS cor0 ---- -1313 -2352 -4451 query I rowsort SELECT - ( col1 ) + - col1 FROM tab1 AS cor0 ---- -20 -26 -52 query I rowsort SELECT - col2 * + col0 + col0 * + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3747 SELECT - + 16 DIV - col0 + col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-3747 SELECT - + 16 / - col0 + col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT + ( + cor0.col2 ) + col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT col0 - - 52 FROM tab0 ---- 141 76 87 query I rowsort SELECT + col0 + + col2 * col0 + - col1 AS col0 FROM tab1 ---- 139 3702 7747 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * 5 + col2 col1 FROM tab2 ---- 156 162 228 query I rowsort SELECT + ( tab1.col1 ) * + tab1.col0 + col1 - col1 AS col2 FROM tab1 ---- 1040 640 78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3753 SELECT CAST( + 55 AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0 ---- -34 20 31 skipif mysql # not compatible query I rowsort label-3753 SELECT CAST ( + 55 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0 ---- -34 20 31 query I rowsort SELECT + cor0.col2 - + col1 FROM tab1 AS cor0 ---- 28 47 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3755 SELECT DISTINCT + ( - col2 ) - + col2 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3755 SELECT DISTINCT + ( - col2 ) - + col2 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT col0 * 66 * + col1 + col0 AS col0 FROM tab2 AS cor0 ---- 14329 303810 88717 query I rowsort SELECT + - col0 + - 95 + col0 AS col1 FROM tab1 AS cor0 ---- -95 -95 -95 query I rowsort SELECT + cor0.col0 + + 74 * col0 + col0 FROM tab0 cor0 ---- 1824 2660 6764 query I rowsort SELECT ALL + - 29 + + col1 * col1 FROM tab2 AS cor0 ---- 260 3452 932 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 1 col0 FROM tab2 AS cor0 ---- 1 query I rowsort SELECT - 60 AS col1 FROM tab2 AS cor0 ---- -60 -60 -60 query I rowsort SELECT ALL - cor0.col2 - cor0.col2 FROM tab1 AS cor0 ---- -108 -114 -192 query I rowsort SELECT DISTINCT + + 55 + + col1 FROM tab1 cor0 ---- 65 68 81 query I rowsort SELECT ALL col1 + cor0.col0 * 89 FROM tab0 AS cor0 ---- 2222 3212 8012 onlyif mysql # use DIV operator for integer division query I rowsort label-3765 SELECT ALL + cor0.col2 + col2 DIV - col1 FROM tab2 AS cor0 ---- 26 27 36 skipif mysql # not compatible query I rowsort label-3765 SELECT ALL + cor0.col2 + col2 / - col1 FROM tab2 AS cor0 ---- 26 27 36 onlyif mysql # use DIV operator for integer division query I rowsort label-3766 SELECT + + col1 * col2 + 69 DIV 38 col2 FROM tab2 AS cor0 ---- 1535 647 838 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3766 SELECT + + col1 * col2 + 69 / 38 col2 FROM tab2 AS cor0 ---- 1535 647 838 query I rowsort SELECT DISTINCT cor0.col0 + col0 * - col2 AS col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT ALL - col0 + col2 - 49 FROM tab1 AS cor0 ---- -33 -56 2 query I rowsort SELECT ALL - 64 AS col0 FROM tab2 ---- -64 -64 -64 query I rowsort SELECT DISTINCT - - col0 + - col2 * + col0 AS col1 FROM tab1 cor0 ---- -159 -3584 -7600 query I rowsort SELECT - 20 * col1 * 41 + - 22 * - col1 FROM tab0 AS cor0 ---- -68628 -72618 -77406 query I rowsort SELECT ALL - - 4 * col2 AS col2 FROM tab0 AS cor0 ---- 132 328 4 query I rowsort SELECT - col1 * 82 FROM tab0 AS cor0 ---- -7052 -7462 -7954 query I rowsort SELECT + col1 * 76 AS col1 FROM tab0 AS cor0 ---- 6536 6916 7372 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 * - 39 col2 FROM tab0 AS cor0 ---- -1287 -3198 -39 query I rowsort SELECT - col1 + 26 * 3 AS col0 FROM tab1 AS cor0 ---- 52 65 68 query I rowsort SELECT cor0.col0 * 94 FROM tab1, tab1 AS cor0 ---- 9 values hashing to f921c393277435555824b774774f1983 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor0.col0 + - col1 col2 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT cor0.col0 + - col2 * + 57 AS col0 FROM tab0 AS cor0 ---- -1857 -22 -4585 onlyif mysql # use DIV operator for integer division query I rowsort label-3780 SELECT ALL - - col1 DIV + 10 + col0 FROM tab0 AS cor0 ---- 32 44 98 skipif mysql # not compatible query I rowsort label-3780 SELECT ALL - - col1 / + 10 + col0 FROM tab0 AS cor0 ---- 32 44 98 query I rowsort SELECT ALL + - 65 + - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -119 -122 -161 query I rowsort SELECT ALL - + col0 AS col0 FROM tab2 cor0 ---- -7 -78 -79 query I rowsort SELECT tab2.col0 * + col2 - col0 AS col1 FROM tab2 ---- 182 1950 2923 query I rowsort SELECT cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3785 SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-3785 SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT ALL tab0.col2 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT ALL cor0.col2 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT ALL + 71 * - col2 - - col2 FROM tab2 ---- -1820 -1890 -2660 query I rowsort SELECT DISTINCT + col1 + + cor0.col0 * + col1 AS col2 FROM tab2 AS cor0 ---- 1360 248 4661 onlyif mysql # use DIV operator for integer division query I rowsort label-3790 SELECT ALL col1 + col2 DIV col0 FROM tab0 AS cor0 ---- 87 91 97 skipif mysql # not compatible query I rowsort label-3790 SELECT ALL col1 + col2 / col0 FROM tab0 AS cor0 ---- 87 91 97 query I rowsort SELECT DISTINCT - col1 + col0 * col0 FROM tab0 AS cor0 ---- 1128 490 7830 query I rowsort SELECT DISTINCT + - cor0.col2 + col1 * 42 FROM tab2 AS cor0 ---- 1275 2452 676 query I rowsort SELECT col1 * - col1 + + col2 FROM tab0 AS cor0 ---- -7363 -8199 -9408 query I rowsort SELECT col0 * + ( - col0 ) FROM tab0 AS cor0 ---- -1225 -576 -7921 onlyif mysql # use DIV operator for integer division query I rowsort label-3795 SELECT + col2 DIV tab1.col0 col1 FROM tab1 ---- 0 1 18 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3795 SELECT + col2 / tab1.col0 col1 FROM tab1 ---- 0 1 18 onlyif mysql # use DIV operator for integer division query I rowsort label-3796 SELECT - col2 + tab2.col2 DIV col0 FROM tab2 ---- -24 -26 -38 skipif mysql # not compatible query I rowsort label-3796 SELECT - col2 + tab2.col2 / col0 FROM tab2 ---- -24 -26 -38 query I rowsort SELECT DISTINCT - col1 - col0 * col0 FROM tab0 ---- -1322 -662 -8012 query I rowsort SELECT ALL tab0.col1 + tab0.col0 * - 43 FROM tab0 ---- -1408 -3736 -946 onlyif mysql # use DIV operator for integer division query I rowsort label-3799 SELECT DISTINCT col0 * 78 + - tab1.col1 DIV tab1.col0 + col0 * col2 col1 FROM tab1 ---- 13920 388 8640 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3799 SELECT DISTINCT col0 * 78 + - tab1.col1 / tab1.col0 + col0 * col2 col1 FROM tab1 ---- 13920 388 8640 query I rowsort SELECT + tab0.col2 * - 50 FROM tab0 ---- -1650 -4100 -50 onlyif mysql # use DIV operator for integer division query I rowsort label-3801 SELECT ALL - + col1 * 63 DIV 61 + - col1 AS col0 FROM tab0 AS cor0 ---- -174 -184 -197 skipif mysql # not compatible query I rowsort label-3801 SELECT ALL - + col1 * 63 / 61 + - col1 AS col0 FROM tab0 AS cor0 ---- -174 -184 -197 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col2 * + 86 + + 17 * col1 col0 FROM tab2 AS cor0 ---- -1233 -1795 -2979 query IIIIIIIII rowsort SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL ---- query I rowsort SELECT DISTINCT col0 * + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-3805 SELECT - col1 DIV col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3805 SELECT - col1 / col1 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL + col2 * - col2 + 72 FROM tab0 AS cor0 ---- -1017 -6652 71 query I rowsort SELECT DISTINCT col0 + 28 FROM tab0 AS cor0 ---- 117 52 63 query I rowsort SELECT - + col1 * + 82 FROM tab2 AS cor0 ---- -1394 -2542 -4838 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3809 SELECT ALL - col2 * CAST( - col1 * + col0 AS SIGNED ) + cor0.col2 * col2 * col0 FROM tab1 AS cor0 ---- 12960 244416 837120 skipif mysql # not compatible query I rowsort label-3809 SELECT ALL - col2 * CAST ( - col1 * + col0 AS INTEGER ) + cor0.col2 * col2 * col0 FROM tab1 AS cor0 ---- 12960 244416 837120 query I rowsort SELECT - col2 + + cor0.col1 * ( col1 ) FROM tab2 AS cor0 ---- 251 3455 934 query I rowsort SELECT col1 * col1 + + col1 FROM tab1 AS cor0 ---- 110 182 702 onlyif mysql # use DIV operator for integer division query I rowsort label-3812 SELECT ALL - col2 DIV - cor0.col2 + - col0 col2 FROM tab1 AS cor0 ---- -2 -63 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3812 SELECT ALL - col2 / - cor0.col2 + - col0 col2 FROM tab1 AS cor0 ---- -2 -63 -79 query I rowsort SELECT - 27 AS col0 FROM tab0, tab1 cor0 ---- 9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a query I rowsort SELECT - 20 - col1 FROM tab2 ---- -37 -51 -79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3815 SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 40 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3815 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 40 FROM tab2 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-3816 SELECT 10 DIV - 33 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3816 SELECT 10 / - 33 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + 44 FROM tab2 AS cor0 ---- 44 44 44 query I rowsort SELECT DISTINCT - ( col0 ) * col0 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT cor0.col1 * col1 + + col0 AS col2 FROM tab2 AS cor0 ---- 3559 368 968 query I rowsort SELECT ALL col1 * - col0 - col0 * + 52 * col2 AS col2 FROM tab2 AS cor0 ---- -10045 -110058 -157447 query I rowsort SELECT ALL + - col1 * + col1 + col0 * 55 FROM tab1 AS cor0 ---- -511 3420 4231 query I rowsort SELECT DISTINCT + + col0 * 76 FROM tab0 AS cor0 ---- 1824 2660 6764 query I rowsort SELECT - 37 - + col2 AS col2 FROM tab0 AS cor0 ---- -119 -38 -70 query I rowsort SELECT DISTINCT + - 44 + col1 AS col2 FROM tab1 AS cor0 ---- -18 -31 -34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 * - col0 col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT tab1.col2 FROM tab1, tab2 AS cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT 99 + - 84 FROM tab1, tab2 AS cor0 ---- 15 query I rowsort SELECT ALL - + col0 * - col0 + - 28 FROM tab2 AS cor0 ---- 21 6056 6213 onlyif mysql # use DIV operator for integer division query I rowsort label-3829 SELECT ALL 75 * - col1 - col1 DIV 83 FROM tab1 cor0 ---- -1950 -750 -975 skipif mysql # not compatible query I rowsort label-3829 SELECT ALL 75 * - col1 - col1 / 83 FROM tab1 cor0 ---- -1950 -750 -975 query I rowsort SELECT + 91 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to deebbcfb9c7803a34dca6bd860849afe query I rowsort SELECT ALL - + ( col0 ) + 36 * + 31 FROM tab2 AS cor0 ---- 1037 1038 1109 onlyif mysql # use DIV operator for integer division query I rowsort label-3832 SELECT DISTINCT - cor0.col1 + + cor0.col0 DIV col0 FROM tab0 cor0 ---- -85 -90 -96 skipif mysql # not compatible query I rowsort label-3832 SELECT DISTINCT - cor0.col1 + + cor0.col0 / col0 FROM tab0 cor0 ---- -85 -90 -96 query I rowsort SELECT ALL ( - col0 ) + 60 * col1 AS col2 FROM tab2 AS cor0 ---- 1853 3462 941 query I rowsort SELECT ALL 77 FROM tab0 AS cor0 ---- 77 77 77 query I rowsort SELECT ALL + col2 * - col2 * + ( - col0 ) FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT DISTINCT - - 60 FROM tab2 AS cor0 ---- 60 query I rowsort SELECT ALL + 48 AS col0 FROM tab0 AS cor0 ---- 48 48 48 query I rowsort SELECT DISTINCT 70 * + col0 FROM tab1 AS cor0 ---- 210 4480 5600 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3839 SELECT col0 * CAST( NULL AS SIGNED ) + col2 / col1 AS col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3839 SELECT col0 * CAST ( NULL AS INTEGER ) + col2 / col1 AS col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT cor0.col2 + 47 FROM tab2 AS cor0 ---- 73 74 85 query I rowsort SELECT + col2 - - col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT - 84 * - 1 + cor0.col0 AS col1 FROM tab0 cor0 ---- 108 119 173 query I rowsort SELECT + 21 * + cor0.col1 FROM tab2 AS cor0 ---- 1239 357 651 query I rowsort SELECT 94 + col2 FROM tab0 cor0 ---- 127 176 95 onlyif mysql # use DIV operator for integer division query I rowsort label-3845 SELECT ALL + col1 DIV - col0 AS col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-3845 SELECT ALL + col1 / - col0 AS col0 FROM tab0 AS cor0 ---- -1 -2 -3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3846 SELECT DISTINCT CAST( col1 AS SIGNED ) * col2 FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-3846 SELECT DISTINCT CAST ( col1 AS INTEGER ) * col2 FROM tab0 AS cor0 ---- 2838 7462 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 1 * + col2 col2 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT - col1 * 76 + + col1 AS col2 FROM tab1 ---- -1950 -750 -975 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * + col2 * - col1 col0 FROM tab0 ---- -611884 -93654 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3850 SELECT CAST( NULL AS SIGNED ) + - col1 * - col1 * col1 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3850 SELECT CAST ( NULL AS INTEGER ) + - col1 * - col1 * col1 AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT - 35 + col2 FROM tab0 ---- -2 -34 47 query I rowsort SELECT ALL col0 * + 23 AS col2 FROM tab1 ---- 1472 1840 69 query I rowsort SELECT + + cor0.col0 + + ( 32 ) * + col0 FROM tab1 AS cor0 ---- 2112 2640 99 query I rowsort SELECT ALL 99 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 4b77467dd5f346109d29f6364a7bb8db query I rowsort SELECT + - col0 * col1 * - 21 + + col0 * col2 * col2 FROM tab1 cor0 ---- 10386 221376 759120 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3856 SELECT ALL - col0 + CAST( + cor0.col0 AS SIGNED ) * - col0 FROM tab1 AS cor0 ---- -12 -4160 -6480 skipif mysql # not compatible query I rowsort label-3856 SELECT ALL - col0 + CAST ( + cor0.col0 AS INTEGER ) * - col0 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT - - col0 + ( + 51 ) FROM tab2 AS cor0 ---- 129 130 58 query I rowsort SELECT - + col2 + - col1 * - col2 + col0 FROM tab0 AS cor0 ---- 131 2829 7469 onlyif mysql # use DIV operator for integer division query I rowsort label-3859 SELECT - - col2 * ( col1 ) DIV + col0 + - col0 DIV + col0 + col2 AS col2 FROM tab2 cor0 ---- 145 44 45 skipif mysql # not compatible query I rowsort label-3859 SELECT - - col2 * ( col1 ) / + col0 + - col0 / + col0 + col2 AS col2 FROM tab2 cor0 ---- 145 44 45 onlyif mysql # use DIV operator for integer division query I rowsort label-3860 SELECT + - col1 DIV col0 + - col2 * + col0 AS col2 FROM tab1 AS cor0 ---- -170 -3648 -7680 skipif mysql # not compatible query I rowsort label-3860 SELECT + - col1 / col0 + - col2 * + col0 AS col2 FROM tab1 AS cor0 ---- -170 -3648 -7680 query I rowsort SELECT + ( - col1 ) + col0 AS col2 FROM tab2 AS cor0 ---- -24 19 62 onlyif mysql # use DIV operator for integer division query I rowsort label-3862 SELECT ALL + 81 + + col2 - + col2 * - col2 DIV col2 FROM tab1 AS cor0 ---- 189 195 273 skipif mysql # not compatible query I rowsort label-3862 SELECT ALL + 81 + + col2 - + col2 * - col2 / col2 FROM tab1 AS cor0 ---- 189 195 273 query I rowsort SELECT DISTINCT + ( col0 ) + + cor0.col0 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT ALL + 26 * - col2 + col1 FROM tab0 cor0 ---- -2041 -772 71 query I rowsort SELECT - ( + 90 ) + + col2 AS col2 FROM tab0 AS cor0 ---- -57 -8 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * + tab2.col1 col0 FROM tab2 ---- -289 -3481 -961 query I rowsort SELECT 62 * 41 FROM tab1, tab1 cor0 ---- 9 values hashing to 0dc1b5712f51d90c34aeae2d164e9b99 query I rowsort SELECT - + col1 * - cor0.col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT + - cor0.col0 * col1 * col1 FROM tab1 AS cor0 ---- -13520 -2028 -6400 query I rowsort SELECT ALL - ( + 63 ) AS col0 FROM tab0, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2 onlyif mysql # use DIV operator for integer division query I rowsort label-3871 SELECT ALL 16 DIV col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3871 SELECT ALL 16 / col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL + 72 * col0 * + col0 AS col2 FROM tab1 ---- 294912 460800 648 query I rowsort SELECT DISTINCT 3 AS col1 FROM tab2, tab1, tab1 AS cor0 ---- 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * - tab0.col1 col1 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT - cor0.col0 + ( cor0.col2 ) FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT DISTINCT + 86 * col0 FROM tab2 ---- 602 6708 6794 query I rowsort SELECT 61 * col2 FROM tab1 ---- 3294 3477 5856 onlyif mysql # use DIV operator for integer division query I rowsort label-3878 SELECT - col2 DIV - col0 AS col1 FROM tab1 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-3878 SELECT - col2 / - col0 AS col1 FROM tab1 ---- 0 1 18 query I rowsort SELECT + - col0 * + col1 AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL - col2 * tab0.col0 * col1 FROM tab0 ---- -3395 -664118 -68112 query I rowsort SELECT ( 39 ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229 query I rowsort SELECT ALL + col1 * col2 * + cor0.col2 + - col2 FROM tab1 AS cor0 ---- 119712 32433 75762 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * col1 + - cor0.col2 - - cor0.col0 * + col2 col0 FROM tab1 AS cor0 ---- 1512 4161 8832 query I rowsort SELECT - col2 + col0 + - col2 FROM tab0 AS cor0 ---- -42 -75 33 onlyif mysql # use DIV operator for integer division query I rowsort label-3885 SELECT DISTINCT + col0 + col0 DIV + col2 FROM tab0 AS cor0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-3885 SELECT DISTINCT + col0 + col0 / + col2 FROM tab0 AS cor0 ---- 24 70 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 * col2 + col2 * cor0.col2 - - col0 * col2 col2 FROM tab1 AS cor0 ---- 10545 24576 3240 query I rowsort SELECT DISTINCT 7 FROM tab2 ---- 7 query I rowsort SELECT + tab0.col0 + + col1 AS col1 FROM tab0 ---- 110 132 180 onlyif mysql # use DIV operator for integer division query I rowsort label-3889 SELECT DISTINCT - col2 + col2 DIV - col2 + col2 FROM tab0 ---- -1 skipif mysql # not compatible query I rowsort label-3889 SELECT DISTINCT - col2 + col2 / - col2 + col2 FROM tab0 ---- -1 onlyif mysql # use DIV operator for integer division query I rowsort label-3890 SELECT col1 DIV + col1 + col0 + col0 FROM tab1 ---- 129 161 7 skipif mysql # not compatible query I rowsort label-3890 SELECT col1 / + col1 + col0 + col0 FROM tab1 ---- 129 161 7 query I rowsort SELECT DISTINCT col2 * col0 - - col2 FROM tab0 ---- 36 7380 825 query I rowsort SELECT ALL - col0 - + col1 AS col0 FROM tab1 ---- -29 -74 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-3893 SELECT col1 * col0 DIV + col2 FROM tab0 ---- 3395 62 98 skipif mysql # not compatible query I rowsort label-3893 SELECT col1 * col0 / + col2 FROM tab0 ---- 3395 62 98 onlyif mysql # use DIV operator for integer division query I rowsort label-3894 SELECT ALL + col0 + col2 DIV col0 AS col1 FROM tab1 ---- 21 64 81 skipif mysql # not compatible query I rowsort label-3894 SELECT ALL + col0 + col2 / col0 AS col1 FROM tab1 ---- 21 64 81 query I rowsort SELECT - - cor0.col2 + - col2 * cor0.col0 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT ALL col0 + - col1 * col1 FROM tab2 AS cor0 ---- -210 -3403 -954 query I rowsort SELECT DISTINCT col1 * col0 + col1 + col1 FROM tab1 AS cor0 ---- 1066 130 660 onlyif mysql # use DIV operator for integer division query I rowsort label-3898 SELECT DISTINCT - col0 + + col2 DIV col2 AS col2 FROM tab1 AS cor0 ---- -2 -63 -79 skipif mysql # not compatible query I rowsort label-3898 SELECT DISTINCT - col0 + + col2 / col2 AS col2 FROM tab1 AS cor0 ---- -2 -63 -79 query I rowsort SELECT ALL + - col2 * col2 AS col2 FROM tab1 cor0 ---- -2916 -3249 -9216 onlyif mysql # use DIV operator for integer division query I rowsort label-3900 SELECT - col2 DIV tab1.col0 AS col2 FROM tab1 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-3900 SELECT - col2 / tab1.col0 AS col2 FROM tab1 ---- -1 -18 0 query I rowsort SELECT - col1 + col2 + col2 FROM tab0 ---- -20 -95 73 query I rowsort SELECT + col2 + tab1.col2 AS col2 FROM tab1 ---- 108 114 192 query I rowsort SELECT col0 - col1 FROM tab1 ---- -23 54 67 query I rowsort SELECT - col1 - col0 AS col1 FROM tab0 ---- -110 -132 -180 onlyif mysql # use DIV operator for integer division query I rowsort label-3905 SELECT CAST( - ( col1 ) AS SIGNED ) + - col1 * col0 DIV + col0 FROM tab2 ---- -118 -34 -62 skipif mysql # not compatible query I rowsort label-3905 SELECT CAST ( - ( col1 ) AS INTEGER ) + - col1 * col0 / + col0 FROM tab2 ---- -118 -34 -62 query I rowsort SELECT ALL 3 FROM tab1 ---- 3 3 3 query I rowsort SELECT DISTINCT + ( ( col2 ) ) AS col1 FROM tab0 ---- 1 33 82 query I rowsort SELECT - - ( - cor0.col2 ) + + col1 * + col2 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT col1 * 93 + + col0 AS col1 FROM tab1 ---- 1289 2421 994 query I rowsort SELECT 51 + col0 FROM tab0 AS cor0 ---- 140 75 86 onlyif mysql # use DIV operator for integer division query I rowsort label-3911 SELECT ALL col1 DIV - cor0.col0 + - col1 * col2 FROM tab2 AS cor0 ---- -1534 -646 -841 skipif mysql # not compatible query I rowsort label-3911 SELECT ALL col1 / - cor0.col0 + - col1 * col2 FROM tab2 AS cor0 ---- -1534 -646 -841 query I rowsort SELECT ALL + 37 AS col1 FROM tab2 AS cor0 ---- 37 37 37 query I rowsort SELECT - col1 + - col1 * - col2 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT DISTINCT - + 83 * + col1 * + col2 + - col1 AS col1 FROM tab2 AS cor0 ---- -127381 -53635 -69502 query I rowsort SELECT + 47 FROM tab0 ---- 47 47 47 query I rowsort SELECT - + col2 + - col0 AS col1 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT ALL + 66 + + col1 FROM tab0 cor0 ---- 152 157 163 query I rowsort SELECT ALL + - col0 + - cor0.col2 AS col2 FROM tab0 cor0 ---- -171 -36 -57 query I rowsort SELECT ALL + + col1 * col0 AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - col0 + col0 + - col2 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT ALL col2 * - ( - col2 ) AS col1 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT + ( - cor0.col2 ) * col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT - ( cor0.col0 ) * col2 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL 8 * + 92 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- 81 values hashing to 4b0359ffeb091c314fe9181e828191e8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + ( col1 ) col1 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT - ( - tab0.col2 ) FROM tab0 ---- 1 33 82 query I rowsort SELECT DISTINCT 28 + col0 * - col2 FROM tab2 AS cor0 ---- -161 -2000 -2974 skipif mysql # not compatible query I rowsort SELECT - CAST ( - col1 AS REAL ) FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT 77 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 051bf10c50e061d74ad0a4d205a1c622 query I rowsort SELECT DISTINCT + 39 * col1 + col1 * - ( + col0 ) * col0 FROM tab0 cor0 ---- -115042 -46182 -717262 query I rowsort SELECT cor0.col1 * 26 FROM tab2 AS cor0 ---- 1534 442 806 query I rowsort SELECT ALL tab2.col1 * - ( + col1 ) FROM tab2 ---- -289 -3481 -961 query I rowsort SELECT col1 * cor0.col1 + + col2 FROM tab0 AS cor0 ---- 7429 8363 9410 query I rowsort SELECT + col1 * + col1 + col2 AS col1 FROM tab2 AS cor0 ---- 327 3507 988 onlyif mysql # use DIV operator for integer division query I rowsort label-3935 SELECT 15 DIV + tab1.col2 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-3935 SELECT 15 / + tab1.col2 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT 90 + - col1 * + col1 + col2 AS col2 FROM tab1 ---- -532 17 47 onlyif mysql # use DIV operator for integer division query I rowsort label-3937 SELECT + col2 + - cor0.col1 DIV ( 87 ) AS col0 FROM tab0 AS cor0 ---- 0 33 81 skipif mysql # not compatible query I rowsort label-3937 SELECT + col2 + - cor0.col1 / ( 87 ) AS col0 FROM tab0 AS cor0 ---- 0 33 81 query I rowsort SELECT + ( cor0.col0 ) FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ( col1 ) + - col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT col0 * tab2.col2 + - tab2.col2 AS col2 FROM tab2 ---- 162 2002 2964 query I rowsort SELECT 37 + - ( col1 ) * tab0.col1 + + col2 FROM tab0 ---- -7326 -8162 -9371 query I rowsort SELECT + 73 + col1 AS col0 FROM tab2 ---- 104 132 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3943 SELECT DISTINCT - ( ( + col0 ) ) * + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-3943 SELECT DISTINCT - ( ( + col0 ) ) * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - 61 AS col1 FROM tab1 ---- -61 query I rowsort SELECT + tab0.col1 FROM tab2, tab1, tab0 cor0, tab0 ---- 81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91 query I rowsort SELECT ALL col0 * + 40 + col1 AS col1 FROM tab0 ---- 1046 1497 3651 query I rowsort SELECT + + col1 + + col1 + + col2 AS col1 FROM tab2 cor0 ---- 144 72 89 query I rowsort SELECT ALL - - col2 * + 5 AS col2 FROM tab2 AS cor0 ---- 130 135 190 onlyif mysql # use DIV operator for integer division query I rowsort label-3949 SELECT + col1 DIV col0 AS col1 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-3949 SELECT + col1 / col0 AS col1 FROM tab1 AS cor0 ---- 0 0 8 query I rowsort SELECT DISTINCT col2 + col1 + col2 * - col0 FROM tab2 ---- -131 -1943 -2947 query I rowsort SELECT DISTINCT + cor0.col0 * - 75 AS col0 FROM tab0 AS cor0 ---- -1800 -2625 -6675 query I rowsort SELECT ALL + col1 * + 17 FROM tab1 AS cor0 ---- 170 221 442 query I rowsort SELECT cor0.col1 + ( + ( - col2 ) ) AS col1 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT DISTINCT + cor0.col2 + col2 * + col2 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT DISTINCT col1 * col1 * + tab2.col1 + - tab2.col1 AS col2 FROM tab2 ---- 205320 29760 4896 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 - + col1 col1 FROM tab0 ---- -119 -173 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 67 + col2 col2 FROM tab2 ---- -29 -40 -41 query I rowsort SELECT + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 cor2, tab2 AS cor3 ---- 243 values hashing to 550d3f132ccceae7a20d04477e44e04b onlyif mysql # use DIV operator for integer division query I rowsort label-3959 SELECT DISTINCT col0 DIV ( 79 ) AS col0 FROM tab1 ---- 0 1 skipif mysql # not compatible query I rowsort label-3959 SELECT DISTINCT col0 / ( 79 ) AS col0 FROM tab1 ---- 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + - col2 * ( + col1 ) + - col2 col2 FROM tab0 AS cor0 ---- -195 -2957 -7635 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * col2 * col1 col2 FROM tab2 cor0 ---- 22599 24548 39884 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col0 * 45 + + 16 col0 FROM tab1 AS cor0 ---- 151 2896 3616 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3963 SELECT - col1 + - col0 * - col2 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 ---- 3298 664027 68026 skipif mysql # not compatible query I rowsort label-3963 SELECT - col1 + - col0 * - col2 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 ---- 3298 664027 68026 onlyif mysql # use DIV operator for integer division query I rowsort label-3964 SELECT ALL col0 * 4 DIV - col1 FROM tab1 ---- -24 -25 0 skipif mysql # not compatible query I rowsort label-3964 SELECT ALL col0 * 4 / - col1 FROM tab1 ---- -24 -25 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 * - ( - cor0.col1 ) + col1 + col1 col2 FROM tab0 AS cor0 ---- -2666 -7280 97 query I rowsort SELECT ALL + cor0.col1 - - col2 AS col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT ALL - 30 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb query I rowsort SELECT DISTINCT ( + tab0.col1 ) FROM tab0, tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT - - 22 * 99 FROM tab2, tab0, tab0 AS cor0, tab1 ---- 81 values hashing to 4b97db43fad21ed756a4af081d7278b3 query I rowsort SELECT tab1.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT DISTINCT + col2 * cor0.col2 + - cor0.col1 + + 66 * col1 AS col0 FROM tab0 AS cor0 ---- 12639 6306 6679 query I rowsort SELECT DISTINCT - 4 * col0 + col1 AS col1 FROM tab0 AS cor0 ---- -10 -265 -43 query I rowsort SELECT + - 29 * + col1 AS col2 FROM tab0 AS cor0 ---- -2494 -2639 -2813 onlyif mysql # use DIV operator for integer division query I rowsort label-3974 SELECT + col2 * col2 DIV - col0 AS col1 FROM tab2 AS cor0 ---- -104 -18 -8 skipif mysql # not compatible query I rowsort label-3974 SELECT + col2 * col2 / - col0 AS col1 FROM tab2 AS cor0 ---- -104 -18 -8 query I rowsort SELECT ALL ( + col0 ) * col1 + col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT - - 97 * col0 AS col0 FROM tab1 AS cor0 ---- 291 6208 7760 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3977 SELECT + - CAST( NULL AS SIGNED ) + col1 col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3977 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 ALL + 31 col2 FROM tab1 ---- 31 31 31 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3979 SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-3979 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- NULL query I rowsort SELECT 36 * - col1 * - col2 FROM tab0 ---- 102168 268632 3492 query I rowsort SELECT DISTINCT - tab1.col0 * + col1 + col2 * - col1 AS col0 FROM tab1 ---- -1210 -1482 -2288 query I rowsort SELECT ALL 3 * col0 FROM tab0 AS cor0 ---- 105 267 72 onlyif mysql # use DIV operator for integer division query I rowsort label-3983 SELECT - + cor0.col0 * + col2 + 46 + cor0.col0 DIV + col0 FROM tab2 AS cor0 ---- -142 -1981 -2955 skipif mysql # not compatible query I rowsort label-3983 SELECT - + cor0.col0 * + col2 + 46 + cor0.col0 / + col0 FROM tab2 AS cor0 ---- -142 -1981 -2955 query I rowsort SELECT + - col0 + - col1 * col1 FROM tab0 AS cor0 ---- -7420 -8370 -9444 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 54 * col2 + cor0.col1 * 76 col2 FROM tab1 AS cor0 ---- 3838 4892 6172 onlyif mysql # use DIV operator for integer division query I rowsort label-3986 SELECT - ( col1 ) DIV + col2 - + 22 col1 FROM tab0 AS cor0 ---- -119 -23 -24 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3986 SELECT - ( col1 ) / + col2 - + 22 col1 FROM tab0 AS cor0 ---- -119 -23 -24 query I rowsort SELECT DISTINCT - - col1 * - col2 + 60 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1634 26 783 query I rowsort SELECT DISTINCT col2 - col1 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT + - ( cor0.col0 ) * col1 + - col0 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT ALL col0 * col1 + - col1 AS col0 FROM tab0 cor0 ---- 1978 3298 8008 onlyif mysql # use DIV operator for integer division query I rowsort label-3991 SELECT DISTINCT - - 90 DIV col1 AS col1 FROM tab2 AS cor0 ---- 1 2 5 skipif mysql # not compatible query I rowsort label-3991 SELECT DISTINCT - - 90 / col1 AS col1 FROM tab2 AS cor0 ---- 1 2 5 query I rowsort SELECT ALL + col0 * + col0 FROM tab2 AS cor0 ---- 49 6084 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 col0 FROM tab2 cor0 ---- 26 27 38 query I rowsort SELECT - - cor0.col2 + 62 AS col0 FROM tab0 AS cor0 ---- 144 63 95 query I rowsort SELECT DISTINCT - 36 AS col2 FROM tab2, tab2 AS cor0 ---- -36 query I rowsort SELECT DISTINCT col2 * col1 + - col1 AS col0 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 query I rowsort SELECT 53 + + 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 query I rowsort SELECT ALL + ( col0 + + tab0.col1 ) FROM tab0 ---- 110 132 180 query I rowsort SELECT + 7 * cor0.col1 AS col1 FROM tab2 AS cor0 ---- 119 217 413 query I rowsort SELECT + - col1 - - 70 AS col2 FROM tab0 AS cor0 ---- -16 -21 -27 query I rowsort SELECT + - col1 + + ( col1 ) AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - cor0.col2 * ( - 15 ) + - col1 * - col1 FROM tab2 AS cor0 ---- 1366 3871 859 query I rowsort SELECT + col0 - 34 FROM tab1 cor0 ---- -31 30 46 query I rowsort SELECT DISTINCT col0 * col1 + cor0.col1 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT ALL cor0.col1 - + col0 AS col0 FROM tab0 cor0 ---- 2 62 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4007 SELECT + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-4007 SELECT + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 70 col1 FROM tab2 ---- 70 70 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 80 + 70 * - col1 col1 FROM tab2 AS cor0 ---- -1110 -2090 -4050 query I rowsort SELECT + 4 * - col1 AS col0 FROM tab2 AS cor0 ---- -124 -236 -68 query I rowsort SELECT ALL col0 * + col1 + ( 65 ) * - col0 FROM tab1 cor0 ---- -117 -3520 -4160 query I rowsort SELECT cor0.col2 * col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT 33 AS col1 FROM tab0 ---- 33 33 33 query I rowsort SELECT DISTINCT + 31 FROM tab1, tab1 cor0 ---- 31 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 74 col1 FROM tab0 AS cor0 ---- -74 -74 -74 query I rowsort SELECT ALL col0 * - col0 AS col1 FROM tab1 cor0 ---- -4096 -6400 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col1 + - col0 col2 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT DISTINCT - 92 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1564 -2852 -5428 query I rowsort SELECT ALL - 6 * cor0.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 1ba4e46a1a37d4a35ff8a8e71b0ab001 query I rowsort SELECT 72 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2 ---- 243 values hashing to 512fe086cc46e8ac6353c0d32befbe4a query I rowsort SELECT + + 46 * + col1 FROM tab0 AS cor0 ---- 3956 4186 4462 query I rowsort SELECT DISTINCT cor0.col0 + - col1 AS col1 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT - col1 * col0 * cor0.col0 AS col2 FROM tab0 cor0 ---- -118825 -49536 -720811 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2, tab0 cor1 ---- 972 values hashing to deaaa983f771be544ffdc26f04a18657 query I rowsort SELECT DISTINCT - + cor0.col0 + 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- -39 15 26 query I rowsort SELECT DISTINCT + + col2 AS col1 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT - 94 FROM tab1 AS cor0 ---- -94 -94 -94 query I rowsort SELECT DISTINCT tab0.col1 * + tab0.col1 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT - 6 + + col0 * col0 FROM tab1 ---- 3 4090 6394 query I rowsort SELECT ALL - - col2 + - cor0.col1 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT + tab0.col0 FROM tab1, tab2, tab0 AS cor0, tab0 ---- 24 35 89 query I rowsort SELECT ALL + ( + tab0.col0 ) AS col2 FROM tab0 ---- 24 35 89 query I rowsort SELECT DISTINCT ( - 69 ) * + col2 AS col0 FROM tab0 AS cor0 ---- -2277 -5658 -69 query I rowsort SELECT ALL cor0.col2 * col1 + - col1 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT - - ( - col1 ) * col1 AS col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT - - 11 + - col1 FROM tab2 AS cor0 ---- -20 -48 -6 query I rowsort SELECT + col2 + col2 * + col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT ALL + - col2 + - col0 AS col0 FROM tab2 AS cor0 ---- -104 -117 -34 onlyif mysql # use DIV operator for integer division query I rowsort label-4039 SELECT ALL - col2 + col2 + - col0 DIV col2 AS col2 FROM tab0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-4039 SELECT ALL - col2 + col2 + - col0 / col2 AS col2 FROM tab0 ---- -1 -35 0 query I rowsort SELECT + - ( + col2 ) FROM tab1 AS cor0 ---- -54 -57 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4041 SELECT + CAST( - 66 AS SIGNED ) + - col1 * CAST( NULL AS DECIMAL ) * + col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4041 SELECT + CAST ( - 66 AS INTEGER ) + - col1 * CAST ( NULL AS REAL ) * + col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + - 97 + - 75 + col0 AS col2 FROM tab2 AS cor0 ---- -165 -93 -94 query I rowsort SELECT - col0 + ( - col1 ) + 37 FROM tab0 cor0 ---- -143 -73 -95 query I rowsort SELECT + col2 + + cor0.col0 * + col2 AS col2 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT col1 * + col2 + col2 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT 3 AS col1 FROM tab2 cor0 ---- 3 3 3 query I rowsort SELECT + + col2 + 31 FROM tab0 AS cor0 ---- 113 32 64 query I rowsort SELECT + col0 + - col2 * + col2 * - col2 AS col2 FROM tab1 ---- 157467 185257 884816 query I rowsort SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( + col1 * col1 + col0 ) ---- query III rowsort SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col1 ) ---- query III rowsort SELECT * FROM tab0 WHERE col0 NOT BETWEEN ( + col0 ) AND NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + col2 + - cor0.col1 col0 FROM tab0 AS cor0 WHERE NOT col1 IN ( cor0.col2 ) ---- -62 706 7207 query I rowsort SELECT DISTINCT - col2 * col2 * cor0.col2 FROM tab2 AS cor0 ---- -17576 -19683 -54872 query I rowsort SELECT - col2 * - tab2.col1 FROM tab2 ---- 1534 646 837 query III rowsort SELECT ALL * FROM tab1 WHERE ( col0 ) < NULL ---- query I rowsort SELECT col2 * tab0.col1 * + col0 AS col2 FROM tab0 WHERE NOT ( - col2 ) BETWEEN col2 + + col0 AND col1 ---- 3395 664118 68112 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col0 * col2 ---- query III rowsort SELECT * FROM tab2 WHERE + col0 NOT IN ( + col0 * col0 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT col2 * col0 AS col1 FROM tab0 WHERE NOT ( col2 ) IN ( col2 / - tab0.col2 - + col1 ) ---- 35 7298 792 query I rowsort SELECT DISTINCT - col0 * - col2 * + col1 + col1 AS col2 FROM tab2 ---- 119711 51051 5890 query I rowsort SELECT - tab1.col2 + col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL ---- query I rowsort SELECT col2 - col0 AS col0 FROM tab2 ---- -41 -52 20 query I rowsort SELECT col1 AS col2 FROM tab1 WHERE NULL BETWEEN + col2 AND ( + col1 * + col2 / col0 ) ---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT DISTINCT - tab0.col0 FROM tab0 WHERE - col2 < - col2 + col0 ---- -24 -35 -89 query I rowsort SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND NULL ---- query I rowsort SELECT DISTINCT col1 - col1 AS col2 FROM tab1 ---- 0 query I rowsort SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL ---- query I rowsort SELECT col0 AS col2 FROM tab0 WHERE NOT NULL = tab0.col0 ---- query I rowsort SELECT ALL col1 - col1 AS col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT + + col0 * + col1 * col0 FROM tab2 AS cor0 ---- 106097 1519 358956 onlyif mysql # use DIV operator for integer division query I rowsort label-4073 SELECT ALL - col2 + col2 DIV + col1 FROM tab1 AS cor0 ---- -52 -52 -89 skipif mysql # not compatible query I rowsort label-4073 SELECT ALL - col2 + col2 / + col1 FROM tab1 AS cor0 ---- -52 -52 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - cor0.col2 col0 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT + + col1 + + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT col1 * col0 * + col0 FROM tab1 AS cor0 ---- 234 40960 83200 query I rowsort SELECT + col2 + - cor0.col0 * + col1 * + col1 AS col2 FROM tab0 cor0 ---- -177471 -329314 -736927 query I rowsort SELECT DISTINCT + col2 - + col1 FROM tab1 cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT - col2 * - col0 * col2 AS col2 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT - col0 + cor0.col1 * + col1 AS col0 FROM tab1 AS cor0 ---- 36 673 89 onlyif mysql # use DIV operator for integer division query I rowsort label-4081 SELECT - + col0 * col1 + col0 DIV col1 FROM tab2 cor0 ---- -1339 -217 -4601 skipif mysql # not compatible query I rowsort label-4081 SELECT - + col0 * col1 + col0 / col1 FROM tab2 cor0 ---- -1339 -217 -4601 query I rowsort SELECT ALL + - col1 * + col1 AS col0 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT DISTINCT + + col1 * col1 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT ALL - col1 * - col0 * col2 AS col1 FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-4085 SELECT + col1 * col2 DIV cor0.col0 FROM tab2 cor0 ---- 119 19 8 skipif mysql # not compatible query I rowsort label-4085 SELECT + col1 * col2 / cor0.col0 FROM tab2 cor0 ---- 119 19 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 / col2 + + col0 + col0 col2 FROM tab0 cor0 WHERE NOT ( cor0.col1 ) <= NULL ---- query I rowsort SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE ( - col2 + col0 ) IN ( col0 * - col0 * - col0 ) ---- query I rowsort SELECT - col0 * + col0 + col1 FROM tab2 ---- -18 -6025 -6224 query IIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) >= NULL ---- query I rowsort SELECT DISTINCT col0 * - tab0.col2 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT tab1.col0 * col2 AS col1 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT + col0 AS col1 FROM tab2 WHERE NULL NOT IN ( col2 ) ---- query I rowsort SELECT col0 + col1 * + col1 AS col0 FROM tab1 ---- 164 249 679 query I rowsort SELECT + - col1 * 48 + - col1 * cor0.col2 AS col2 FROM tab1 AS cor0 ---- -1050 -1872 -2652 query I rowsort SELECT + col1 + col2 * - col2 FROM tab0 AS cor0 ---- -1003 -6633 96 onlyif mysql # use DIV operator for integer division query I rowsort label-4096 SELECT + col1 + ( col0 ) DIV col0 FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-4096 SELECT + col1 + ( col0 ) / col0 FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT + col2 + + ( cor0.col1 ) AS col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT 68 + col2 * 34 + col0 FROM tab2 ---- 1030 1439 993 query I rowsort SELECT + col2 + 91 * col0 FROM tab0 cor0 ---- 2217 3186 8181 query I rowsort SELECT - col2 * col1 * col0 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT + col1 + - col2 * ( + col0 ) AS col2 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT - - col0 * - col0 FROM tab0 cor0 ---- -1225 -576 -7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 54 * col1 + col0 * 33 + col1 col0 FROM tab0 ---- 5522 6490 7942 query I rowsort SELECT - 71 * - col0 + - ( 95 ) * - col1 FROM tab0 ---- 11700 14964 9874 onlyif mysql # use DIV operator for integer division query I rowsort label-4105 SELECT DISTINCT col0 + col0 DIV 37 FROM tab2 ---- 7 80 81 skipif mysql # not compatible query I rowsort label-4105 SELECT DISTINCT col0 + col0 / 37 FROM tab2 ---- 7 80 81 query I rowsort SELECT DISTINCT - ( - col1 ) + - ( + col1 ) * + col0 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT DISTINCT + tab0.col1 * + ( - tab0.col1 + + col2 ) * - 73 FROM tab0 ---- 332734 59787 679776 query I rowsort SELECT ALL col1 + ( - col2 ) FROM tab2 cor0 ---- -21 33 4 query I rowsort SELECT cor0.col1 + col1 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 7482 8372 9506 query I rowsort SELECT DISTINCT + col1 * + 48 AS col1 FROM tab0 AS cor0 ---- 4128 4368 4656 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - 2 + 11 col1 FROM tab1 cor0 ---- -117 -149 5 query I rowsort SELECT ALL - - cor0.col2 + + ( + col2 ) FROM tab0 cor0 ---- 164 2 66 query I rowsort SELECT - 1 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1 ---- 81 values hashing to f3aaea07874d9328a91c424c0907a688 query I rowsort SELECT + 61 FROM tab2, tab2 cor0 ---- 9 values hashing to 07149905a72bd87553381f34d19ed290 query I rowsort SELECT ALL - - col1 * 53 + - 91 AS col0 FROM tab1 cor0 ---- 1287 439 598 query I rowsort SELECT DISTINCT col2 + col1 * - col1 + - col2 AS col2 FROM tab2 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT - col2 + col2 + col2 AS col0 FROM tab1 ---- 54 57 96 query I rowsort SELECT ALL col0 * + col1 + + col2 FROM tab2 ---- 1381 244 4628 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + col0 + col1 * col2 col2 FROM tab1 ---- -70 1326 208 onlyif mysql # use DIV operator for integer division query I rowsort label-4120 SELECT ALL - col1 DIV col1 col0 FROM tab0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4120 SELECT ALL - col1 / col1 col0 FROM tab0 ---- -1 -1 -1 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL > ( col2 ) ---- query I rowsort SELECT - col0 * - col1 + - col1 FROM tab2 WHERE NOT col2 + + col0 IN ( col2 * - col2 + col2 ) ---- 1326 186 4543 query I rowsort SELECT ALL tab1.col2 * - tab1.col2 * tab1.col2 + + col0 + col1 FROM tab1 ---- -157435 -185119 -884643 onlyif mysql # use DIV operator for integer division query I rowsort label-4124 SELECT ALL + col0 DIV tab1.col0 - - col0 FROM tab1 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-4124 SELECT ALL + col0 / tab1.col0 - - col0 FROM tab1 ---- 4 65 81 onlyif mysql # use DIV operator for integer division query I rowsort label-4125 SELECT ALL - tab2.col2 * + col0 DIV col0 - col2 AS col2 FROM tab2 ---- -52 -54 -76 skipif mysql # not compatible query I rowsort label-4125 SELECT ALL - tab2.col2 * + col0 / col0 - col2 AS col2 FROM tab2 ---- -52 -54 -76 query I rowsort SELECT DISTINCT tab0.col0 + - col0 FROM tab0 ---- 0 query I rowsort SELECT + tab0.col2 + tab0.col2 AS col2 FROM tab0 ---- 164 2 66 query I rowsort SELECT ALL + + col2 * col0 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL - 30 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to a96370a8187089b6b83ce9bfbade5142 query I rowsort SELECT + 19 + col0 AS col1 FROM tab1 AS cor0 ---- 22 83 99 query I rowsort SELECT + - cor0.col0 * col0 + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -1190 -623 216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + cor0.col0 ) col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT ALL tab2.col0 * + col1 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT - 58 * col1 - col0 AS col1 FROM tab0 AS cor0 ---- -5012 -5367 -5661 onlyif mysql # use DIV operator for integer division query I rowsort label-4135 SELECT - col0 DIV col2 + - ( - col0 ) * col2 * - ( col1 ) FROM tab0 AS cor0 ---- -3430 -664119 -68112 skipif mysql # not compatible query I rowsort label-4135 SELECT - col0 / col2 + - ( - col0 ) * col2 * - ( col1 ) FROM tab0 AS cor0 ---- -3430 -664119 -68112 query I rowsort SELECT DISTINCT 51 * - col2 + - ( col0 ) FROM tab0 cor0 ---- -1707 -4271 -86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 12 * col2 + - col0 * + col1 col0 FROM tab0 AS cor0 ---- -1668 -3383 -7115 onlyif mysql # use DIV operator for integer division query I rowsort label-4138 SELECT col1 + - col0 DIV + col2 FROM tab1 AS cor0 ---- 13 26 9 skipif mysql # not compatible query I rowsort label-4138 SELECT col1 + - col0 / + col2 FROM tab1 AS cor0 ---- 13 26 9 query I rowsort SELECT ALL - ( + 43 ) * col2 + col1 AS col1 FROM tab2 AS cor0 ---- -1059 -1130 -1617 query I rowsort SELECT + + col2 * - col2 + col2 FROM tab2 AS cor0 ---- -1406 -650 -702 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( col2 ) * + col2 * + cor0.col1 col2 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT ALL - + col0 * col1 * col0 AS col1 FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT - ( - cor0.col0 ) FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL + 58 * - col1 AS col0 FROM tab1 AS cor0 ---- -1508 -580 -754 query I rowsort SELECT 0 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT col0 - ( - col0 ) AS col1 FROM tab2 ---- 14 156 158 query I rowsort SELECT 82 FROM tab0, tab2 AS cor0 ---- 9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c query I rowsort SELECT + ( ( - cor0.col2 ) ) + + ( - ( - col1 ) ) AS col1 FROM tab1 cor0 ---- -28 -47 -83 query I rowsort SELECT ( - cor0.col1 ) AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT + + col2 + 4 FROM tab2 AS cor0 ---- 30 31 42 onlyif mysql # use DIV operator for integer division query I rowsort label-4151 SELECT col1 DIV - col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4151 SELECT col1 / - col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4152 SELECT col1 DIV - col1 + col0 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-4152 SELECT col1 / - col1 + col0 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT - col0 + col2 * + cor0.col2 FROM tab2 AS cor0 ---- 1365 598 722 query I rowsort SELECT 34 AS col0 FROM tab0 AS cor0 ---- 34 34 34 query I rowsort SELECT + col0 * - tab2.col0 AS col2 FROM tab2 ---- -49 -6084 -6241 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab2 cor0, tab0 cor1, tab0, tab0 cor2 ---- 3645 values hashing to 97b43fbe79eecd0bc6921392403b666d onlyif mysql # use DIV operator for integer division query I rowsort label-4157 SELECT - col0 DIV col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4157 SELECT - col0 / col1 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col1 * - col1 AS col1 FROM tab1 ---- -100 -169 -676 query I rowsort SELECT cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4160 SELECT ALL - tab0.col2 * CAST( NULL AS DECIMAL ) + col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4160 SELECT ALL - tab0.col2 * CAST ( NULL AS REAL ) + col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + 82 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c 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 DISTINCT + col0 * 16 FROM tab0 AS cor0 ---- 1424 384 560 query I rowsort SELECT + + col0 + ( cor0.col2 + - col1 ) FROM tab1 AS cor0 ---- 111 163 31 query I rowsort SELECT + cor0.col1 + 92 AS col1 FROM tab1 AS cor0 ---- 102 105 118 query I rowsort SELECT DISTINCT + - col1 - 70 FROM tab0 AS cor0 ---- -156 -161 -167 query I rowsort SELECT DISTINCT - col0 + - 33 FROM tab1 AS cor0 ---- -113 -36 -97 query I rowsort SELECT DISTINCT col1 + + col0 - 54 AS col0 FROM tab2 AS cor0 ---- -16 42 83 query I rowsort SELECT + + col0 * - col1 + + 5 FROM tab0 cor0 ---- -2059 -3390 -8094 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 + - col0 col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT 62 FROM tab1 cor0 ---- 62 62 62 query I rowsort SELECT ALL - col0 * 12 AS col1 FROM tab0 cor0 ---- -1068 -288 -420 query I rowsort SELECT - 47 FROM tab0 AS cor0 ---- -47 -47 -47 query I rowsort SELECT DISTINCT col2 * - col0 * + col1 AS col1 FROM tab2 cor0 ---- -119652 -51034 -5859 query I rowsort SELECT - col1 * 39 AS col1 FROM tab1 AS cor0 ---- -1014 -390 -507 query I rowsort SELECT 95 FROM tab1, tab0 AS cor0 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 onlyif mysql # use DIV operator for integer division query I rowsort label-4177 SELECT DISTINCT col1 DIV + col1 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-4177 SELECT DISTINCT col1 / + col1 FROM tab1 AS cor0 ---- 1 query I rowsort SELECT ALL - col0 + cor0.col0 FROM tab0 AS cor0 ---- 0 0 0 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab2 cor2 ---- 3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4180 SELECT ALL + col1 + CAST( - col2 * col0 AS SIGNED ) FROM tab0 ---- -706 -7207 62 skipif mysql # not compatible query I rowsort label-4180 SELECT ALL + col1 + CAST ( - col2 * col0 AS INTEGER ) FROM tab0 ---- -706 -7207 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col0 * col0 col0 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT - col2 + col0 * - ( + col0 + col2 ) * - 50 FROM tab0 AS cor0 ---- 62999 68367 760868 query I rowsort SELECT col0 * - col0 + col1 AS col1 FROM tab2 cor0 ---- -18 -6025 -6224 query I rowsort SELECT ALL + 90 FROM tab2 cor0 ---- 90 90 90 query I rowsort SELECT + col2 - + col1 AS col0 FROM tab1 cor0 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-4186 SELECT ALL 45 DIV ( col2 ) FROM tab0 ---- 0 1 45 skipif mysql # not compatible query I rowsort label-4186 SELECT ALL 45 / ( col2 ) FROM tab0 ---- 0 1 45 query I rowsort SELECT - ( cor0.col1 ) - + ( - col2 ) AS col2 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT cor0.col0 - + col1 AS col2 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT - 80 AS col1 FROM tab2 AS cor0 ---- -80 query I rowsort SELECT DISTINCT 31 AS col2 FROM tab0 AS cor0 ---- 31 query I rowsort SELECT - 58 + + col2 + + 84 AS col2 FROM tab1 ---- 122 80 83 query I rowsort SELECT DISTINCT + + col0 + + col1 AS col1 FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4193 SELECT - - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4193 SELECT - - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col1 + 99 * col1 col2 FROM tab2 AS cor0 ---- 1700 3100 5900 query I rowsort SELECT + col1 * - col1 + col1 AS col1 FROM tab0 AS cor0 ---- -7310 -8190 -9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col0 + 71 + - cor0.col2 col1 FROM tab1 AS cor0 ---- -105 -50 14 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col1 * ( col0 ) col0 FROM tab1 ---- 234 40960 83200 query I rowsort SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab1 cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT tab0.col0 AS col1 FROM tab0, tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT + col0 * col0 * + ( tab0.col0 + + col0 ) AS col2 FROM tab0 ---- 1409938 27648 85750 query I rowsort SELECT DISTINCT col0 - - tab0.col1 AS col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL + col0 + - col2 * + 8 FROM tab0 ---- -240 -567 27 query I rowsort SELECT DISTINCT col2 + col0 * - col0 FROM tab1 ---- -4039 -6304 45 query I rowsort SELECT + - col2 + - col0 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT + 0 * - col0 * col0 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col0 + + ( tab0.col1 ) AS col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL - col0 * - tab2.col0 + + col0 FROM tab2 ---- 56 6162 6320 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0 cor0, tab0, tab1 AS cor1 ---- 972 values hashing to 9af67d6f98010464af5d560bf949d487 query I rowsort SELECT ALL 20 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4 query I rowsort SELECT cor0.col1 - cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to fe2aa4e2d3fac3ceeb710c1055a15bad onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4211 SELECT - col0 + cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4211 SELECT - col0 + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col1 + + col2 AS col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT 27 AS col0 FROM tab1 AS cor0 ---- 27 27 27 query I rowsort SELECT - 54 + col2 * ( + ( col0 ) ) AS col2 FROM tab2 AS cor0 ---- 135 1974 2948 query I rowsort SELECT + - ( + col2 ) FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT + + col2 + - col2 + col2 * 33 AS col0 FROM tab1 AS cor0 ---- 1782 1881 3168 query I rowsort SELECT ALL + + 48 + + col1 * col2 FROM tab1 AS cor0 ---- 1296 1452 618 onlyif mysql # use DIV operator for integer division query I rowsort label-4218 SELECT ALL - + 39 * - col1 DIV + col1 col1 FROM tab1 AS cor0 ---- 39 39 39 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4218 SELECT ALL - + 39 * - col1 / + col1 col1 FROM tab1 AS cor0 ---- 39 39 39 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2 ---- 972 values hashing to 4634d10e8b6b37510bb99745aade36ab query I rowsort SELECT ALL - 75 + col1 AS col0 FROM tab2 cor0 ---- -16 -44 -58 query I rowsort SELECT col2 + col1 * col0 AS col1 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT - 72 + 8 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e query I rowsort SELECT + col2 * - col1 AS col0 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT ALL + tab2.col0 + - col2 + - col0 * col0 * 56 FROM tab2 ---- -2764 -340652 -349455 query I rowsort SELECT DISTINCT col0 * + 12 + + col0 AS col2 FROM tab1 ---- 1040 39 832 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + + col2 * - col0 * col2 col2 FROM tab0 AS cor0 ---- -132 -26222 -598527 query I rowsort SELECT ALL + + col1 + cor0.col1 * col2 AS col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT DISTINCT - tab0.col2 * ( 52 ) + - col1 FROM tab0 ---- -149 -1802 -4355 query I rowsort SELECT DISTINCT col2 + + col1 * - 59 AS col0 FROM tab0 AS cor0 ---- -5041 -5287 -5722 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 * col1 + + col0 * col2 col0 FROM tab1 AS cor0 ---- 1566 4218 8928 query I rowsort SELECT + - col2 + - col2 * + col1 * cor0.col1 FROM tab1 cor0 ---- -16320 -36558 -5757 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + 20 col1 FROM tab0 AS cor0 ---- -13 -62 19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 + col1 col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4234 SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 * + col1 * - col1 AS col1 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4234 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 * + col1 * - col1 AS col1 FROM tab2 cor0 ---- NULL query I rowsort SELECT + + col2 + 43 AS col1 FROM tab1 cor0 ---- 100 139 97 query I rowsort SELECT ALL + + col0 * + col0 AS col0 FROM tab0 AS cor0 ---- 1225 576 7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4237 SELECT + - CAST( col1 AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0 ---- -29 -74 -93 skipif mysql # not compatible query I rowsort label-4237 SELECT + - CAST ( col1 AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT DISTINCT - col0 + + cor0.col2 * + col2 AS col0 FROM tab0 cor0 ---- -34 1065 6635 query I rowsort SELECT - 93 + - ( - col0 ) FROM tab1 AS cor0 ---- -13 -29 -90 query I rowsort SELECT DISTINCT ( col0 ) * + col0 - col2 AS col0 FROM tab1 AS cor0 ---- -45 4039 6304 query I rowsort SELECT DISTINCT - - 48 * ( + cor0.col0 * col0 + cor0.col1 ) FROM tab1 AS cor0 ---- 1680 197088 307824 query I rowsort SELECT ALL - + col0 * col2 AS col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + - col2 + ( col2 ) AS col2 FROM tab1 cor0 ---- 0 query I rowsort SELECT ALL tab0.col1 * - col1 - col1 FROM tab0 ---- -7482 -8372 -9506 query I rowsort SELECT ALL col1 - + tab1.col2 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT ALL - 95 AS col1 FROM tab1 AS cor0 ---- -95 -95 -95 query I rowsort SELECT - 20 + col0 AS col0 FROM tab0 AS cor0 ---- 15 4 69 query I rowsort SELECT col2 + - 72 AS col1 FROM tab1 cor0 ---- -15 -18 24 query I rowsort SELECT + ( - 29 * col0 + col2 ) FROM tab1 ---- -1799 -2224 -33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4250 SELECT ALL CAST( col0 AS SIGNED ) + - col1 * 24 col0 FROM tab0 AS cor0 ---- -2040 -2095 -2293 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4250 SELECT ALL CAST ( col0 AS INTEGER ) + - col1 * 24 col0 FROM tab0 AS cor0 ---- -2040 -2095 -2293 query I rowsort SELECT DISTINCT 73 FROM tab0, tab0 AS cor0 ---- 73 query I rowsort SELECT - col1 - 13 * col1 FROM tab0 AS cor0 ---- -1204 -1274 -1358 query I rowsort SELECT - ( col2 ) + + col1 + - 33 AS col1 FROM tab0 AS cor0 ---- -24 20 63 query I rowsort SELECT - + 69 + - ( col2 ) AS col2 FROM tab2 AS cor0 ---- -107 -95 -96 query I rowsort SELECT + - 68 + col0 AS col1 FROM tab0 AS cor0 ---- -33 -44 21 query I rowsort SELECT - 37 * - col1 FROM tab1 cor0 ---- 370 481 962 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 + col1 col2 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT + ( + col0 + col1 ) AS col2 FROM tab0 ---- 110 132 180 query I rowsort SELECT + tab0.col1 + - col0 + + col0 FROM tab0 ---- 86 91 97 query I rowsort SELECT col1 + + 92 + - col1 FROM tab1 ---- 92 92 92 query I rowsort SELECT + + col1 + col1 * 9 FROM tab0 AS cor0 ---- 860 910 970 query I rowsort SELECT - col2 * - col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT - col1 * - ( col2 ) * col1 FROM tab2 AS cor0 ---- 10982 25947 90506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col0 * - 93 col1 FROM tab1 AS cor0 ---- -279 -5952 -7440 onlyif mysql # use DIV operator for integer division query I rowsort label-4265 SELECT - cor0.col1 DIV + col1 AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4265 SELECT - cor0.col1 / + col1 AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + col0 * ( col1 ) FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - - col0 * + col2 * col0 FROM tab1 AS cor0 ---- 233472 486 614400 query I rowsort SELECT - col2 * - ( col2 ) FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-4269 SELECT DISTINCT + col2 * col1 DIV + col1 FROM tab1 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-4269 SELECT DISTINCT + col2 * col1 / + col1 FROM tab1 ---- 54 57 96 query I rowsort SELECT + + col1 + col1 * + col2 AS col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT ALL 62 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 51dd2771d516ceb935483eded78a5fa0 query I rowsort SELECT DISTINCT col0 * cor0.col0 + + col2 * col0 + col1 * + cor0.col0 FROM tab2 cor0 ---- 10586 12714 455 query I rowsort SELECT + - col0 * - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT + col1 * col2 + 83 AS col2 FROM tab2 cor0 ---- 1617 729 920 query I rowsort SELECT 46 * - col1 * col0 AS col2 FROM tab0 AS cor0 ---- -156170 -372554 -94944 query I rowsort SELECT DISTINCT cor0.col2 * - col1 AS col2 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT col1 * - cor0.col2 AS col1 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT + 84 * col0 AS col0 FROM tab0 AS cor0 ---- 2016 2940 7476 query I rowsort SELECT ALL + 2 + + col0 AS col1 FROM tab1 AS cor0 ---- 5 66 82 query I rowsort SELECT - col0 * + col0 * ( + col2 ) FROM tab2 AS cor0 ---- -1323 -158184 -237158 query I rowsort SELECT DISTINCT 8 * - ( - col0 + + col0 ) * - col2 FROM tab0 ---- 0 query I rowsort SELECT + col1 * col0 AS col0 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + col1 + + col2 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT ALL - col1 * - cor0.col2 + col2 AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT ALL col1 * cor0.col0 + + col2 AS col2 FROM tab2 AS cor0 ---- 1381 244 4628 onlyif mysql # use DIV operator for integer division query I rowsort label-4286 SELECT ALL cor0.col1 * + cor0.col1 * 22 + + col2 - col1 DIV col1 FROM tab2 AS cor0 ---- 21168 6395 76607 skipif mysql # not compatible query I rowsort label-4286 SELECT ALL cor0.col1 * + cor0.col1 * 22 + + col2 - col1 / col1 FROM tab2 AS cor0 ---- 21168 6395 76607 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * tab2.col0 col0 FROM tab2 ---- 1343 217 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col0 col2 FROM tab1, tab0 cor0 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 query I rowsort SELECT ALL + ( + 13 ) + - tab0.col2 * + tab0.col1 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to ba84dad0c0de04ee9b8f9f1c380e2cb3 query I rowsort SELECT 1 * col1 * - col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT - + col1 - - ( - col0 * col1 ) AS col1 FROM tab1 AS cor0 ---- -104 -1053 -650 query IIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2 ---- 972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee query I rowsort SELECT col0 + 66 AS col1 FROM tab0 AS cor0 ---- 101 155 90 query I rowsort SELECT ALL 66 AS col2 FROM tab1, tab0 cor0 ---- 9 values hashing to 29794915b585eea848ad670075452c88 query I rowsort SELECT + + col2 + + 25 AS col2 FROM tab2 AS cor0 ---- 51 52 63 query I rowsort SELECT col0 * 4 - col0 FROM tab1 AS cor0 ---- 192 240 9 onlyif mysql # use DIV operator for integer division query I rowsort label-4297 SELECT + 66 DIV - cor0.col1 + col0 FROM tab2 AS cor0 ---- 5 76 77 skipif mysql # not compatible query I rowsort label-4297 SELECT + 66 / - cor0.col1 + col0 FROM tab2 AS cor0 ---- 5 76 77 onlyif mysql # use DIV operator for integer division query I rowsort label-4298 SELECT - col1 + col1 DIV col2 AS col2 FROM tab0 ---- -84 -90 0 skipif mysql # not compatible query I rowsort label-4298 SELECT - col1 + col1 / col2 AS col2 FROM tab0 ---- -84 -90 0 query I rowsort SELECT + ( col2 ) + col2 AS col0 FROM tab1 ---- 108 114 192 query I rowsort SELECT - 76 - - tab0.col2 FROM tab0 ---- -43 -75 6 query I rowsort SELECT ( cor0.col2 ) FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL - cor0.col0 * 54 * col1 FROM tab1 AS cor0 ---- -34560 -4212 -56160 query I rowsort SELECT + 10 + + col2 FROM tab1 cor0 ---- 106 64 67 query I rowsort SELECT DISTINCT + 63 + cor0.col2 * ( + col2 * - col1 ) FROM tab1 AS cor0 ---- -119745 -32427 -75753 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + tab2.col0 * - cor0.col1 + + 94 col2 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 6e034615abc3b4bf71ae0c255d3a5be9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 - + col1 * col1 col2 FROM tab1 AS cor0 ---- -110 -182 -702 query I rowsort SELECT DISTINCT + - 14 * col1 AS col2 FROM tab2 AS cor0 ---- -238 -434 -826 query I rowsort SELECT ALL + col2 + cor0.col2 * col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT DISTINCT - + cor0.col0 * + col2 AS col0 FROM tab0 cor0 ---- -35 -7298 -792 query I rowsort SELECT 10 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176 query I rowsort SELECT + 30 AS col0 FROM tab2 AS cor0 ---- 30 30 30 query I rowsort SELECT ALL + + 38 + col2 FROM tab0 AS cor0 ---- 120 39 71 query I rowsort SELECT DISTINCT cor0.col0 * col1 + col0 * + col2 - - ( - col1 ) FROM tab0 AS cor0 ---- 15306 2770 3333 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4314 SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 72 AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4314 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 72 AS col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ( - col1 ) - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0 ---- -96 1003 6633 query I rowsort SELECT DISTINCT + - cor0.col2 - col1 FROM tab0 AS cor0 ---- -119 -173 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col0 + - col2 col2 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT ALL - + 48 * cor0.col0 FROM tab0 cor0 ---- -1152 -1680 -4272 query I rowsort SELECT + col2 - - 13 FROM tab2 AS cor0 ---- 39 40 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col0 + col0 * col2 col0 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT ALL - - col0 + cor0.col0 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT ALL - + col2 + + 49 AS col1 FROM tab1 AS cor0 ---- -47 -5 -8 skipif mysql # not compatible query I rowsort SELECT - CAST ( 11 AS INTEGER ) * + col2 + CAST ( + col1 * + col1 + ( + col0 ) AS REAL ) AS col2 FROM tab0 AS cor0 ---- 7057 7468 9433 query I rowsort SELECT ALL 1 AS col0 FROM tab2 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-4325 SELECT ALL - 29 + + 35 * + cor0.col1 - - col2 DIV - 90 FROM tab1 AS cor0 ---- 321 425 881 skipif mysql # not compatible query I rowsort label-4325 SELECT ALL - 29 + + 35 * + cor0.col1 - - col2 / - 90 FROM tab1 AS cor0 ---- 321 425 881 onlyif mysql # use DIV operator for integer division query I rowsort label-4326 SELECT - col1 DIV + ( ( col0 ) ) FROM tab2 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-4326 SELECT - col1 / + ( ( col0 ) ) FROM tab2 ---- -4 0 0 query I rowsort SELECT col0 * - col0 + - col0 AS col0 FROM tab2 AS cor0 ---- -56 -6162 -6320 query I rowsort SELECT DISTINCT col2 * 75 FROM tab0 AS cor0 ---- 2475 6150 75 query I rowsort SELECT DISTINCT col0 + - col0 AS col2 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT + cor0.col2 * + col0 + - ( col2 ) - + col2 AS col2 FROM tab1 AS cor0 ---- 3534 54 7488 query I rowsort SELECT DISTINCT - col0 + col0 - + ( col2 ) * col0 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT ALL 88 * tab0.col2 FROM tab0, tab2 cor0 ---- 9 values hashing to ab5619610da4d20b9373a629516ff9d8 query I rowsort SELECT ALL + cor1.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT DISTINCT col0 + - 18 * - ( col2 ) FROM tab0 ---- 1565 53 618 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4335 SELECT tab0.col2 * CAST( - col2 AS SIGNED ) col1 FROM tab0 ---- -1 -1089 -6724 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4335 SELECT tab0.col2 * CAST ( - col2 AS INTEGER ) col1 FROM tab0 ---- -1 -1089 -6724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * ( + col1 ) + col1 col2 FROM tab0 ---- 7482 8372 9506 query I rowsort SELECT + col2 * ( col2 * - col2 ) + - col2 AS col1 FROM tab1 ---- -157518 -185250 -884832 query I rowsort SELECT col1 * + ( + 69 ) FROM tab2 ---- 1173 2139 4071 query I rowsort SELECT DISTINCT + tab2.col2 AS col1 FROM tab2, tab0 AS cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT + col1 + 37 FROM tab0 ---- 123 128 134 onlyif mysql # use DIV operator for integer division query I rowsort label-4341 SELECT + col1 + + col0 DIV + cor0.col2 FROM tab1 cor0 ---- 11 13 26 skipif mysql # not compatible query I rowsort label-4341 SELECT + col1 + + col0 / + cor0.col2 FROM tab1 cor0 ---- 11 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + col0 + - cor0.col1 col0 FROM tab2 AS cor0 ---- -17 141 97 query I rowsort SELECT ALL + cor0.col1 * 37 + - ( - col0 + col2 ) * col0 AS col0 FROM tab2 AS cor0 ---- 1007 3868 6239 query I rowsort SELECT - col0 + - col0 * cor0.col2 * - col2 FROM tab1 AS cor0 ---- 207872 737200 8745 query I rowsort SELECT + 38 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * - 62 * col0 col1 FROM tab1 ---- -253952 -396800 -558 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 34 col2 FROM tab0 ---- 34 34 34 query I rowsort SELECT + - 39 FROM tab1 cor0 ---- -39 -39 -39 onlyif mysql # use DIV operator for integer division query I rowsort label-4349 SELECT + 28 DIV + col2 AS col1 FROM tab0 AS cor0 ---- 0 0 28 skipif mysql # not compatible query I rowsort label-4349 SELECT + 28 / + col2 AS col1 FROM tab0 AS cor0 ---- 0 0 28 query I rowsort SELECT - 3 + col2 FROM tab1 AS cor0 ---- 51 54 93 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab1, tab2 AS cor0, tab0 AS cor1 ---- 972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55 query I rowsort SELECT DISTINCT 53 * + col0 AS col2 FROM tab1 ---- 159 3392 4240 query I rowsort SELECT ALL col1 * - 59 AS col2 FROM tab0 ---- -5074 -5369 -5723 query I rowsort SELECT ALL - col2 * col0 + + ( - 88 ) AS col0 FROM tab2 AS cor0 ---- -2116 -277 -3090 query I rowsort SELECT + 91 * col1 AS col1 FROM tab0 AS cor0 ---- 7826 8281 8827 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 90 * + col0 + 58 * col1 col0 FROM tab1 AS cor0 ---- 1778 6340 7954 query I rowsort SELECT DISTINCT - 43 * + col2 * col2 + - ( col1 ) AS col2 FROM tab1 AS cor0 ---- -125414 -139717 -396301 query I rowsort SELECT DISTINCT + 77 + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 141 157 80 query I rowsort SELECT - - col1 * col2 + col0 AS col2 FROM tab2 AS cor0 ---- 1612 725 844 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 25 col2 FROM tab1 AS cor0 ---- 25 25 25 query I rowsort SELECT col0 + col2 AS col2 FROM tab1 cor0 ---- 121 176 57 query I rowsort SELECT ALL - - ( col0 ) + - col2 AS col1 FROM tab1 AS cor0 ---- -16 -51 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4363 SELECT DISTINCT - + 76 * cor0.col0 + + CAST( 18 AS SIGNED ) FROM tab0 cor0 ---- -1806 -2642 -6746 skipif mysql # not compatible query I rowsort label-4363 SELECT DISTINCT - + 76 * cor0.col0 + + CAST ( 18 AS INTEGER ) FROM tab0 cor0 ---- -1806 -2642 -6746 query I rowsort SELECT DISTINCT + col2 + col1 * + ( 63 ) FROM tab1 AS cor0 ---- 1692 687 915 query I rowsort SELECT cor0.col0 * col0 AS col0 FROM tab1 cor0 ---- 4096 6400 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 74 col1 FROM tab2 cor0 ---- 74 query I rowsort SELECT ALL - 84 * + cor0.col0 + col1 AS col1 FROM tab0 AS cor0 ---- -1930 -2843 -7385 query I rowsort SELECT ALL - 71 * - col0 FROM tab1 AS cor0 ---- 213 4544 5680 query I rowsort SELECT DISTINCT + + 60 + col2 FROM tab1 AS cor0 ---- 114 117 156 query I rowsort SELECT ALL + + 37 AS col1 FROM tab0 AS cor0 ---- 37 37 37 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab1, tab0 cor0, tab2 ---- 972 values hashing to a9068b700464993db9fae6f630605fde skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col2 col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT + col1 * col0 - - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT + - col0 + + col0 * cor0.col2 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT col2 + + col2 - tab0.col2 * col2 FROM tab0 ---- -1023 -6560 1 onlyif mysql # use DIV operator for integer division query I rowsort label-4376 SELECT - col1 + + ( + col2 ) DIV - col0 FROM tab1 AS cor0 ---- -10 -14 -44 skipif mysql # not compatible query I rowsort label-4376 SELECT - col1 + + ( + col2 ) / - col0 FROM tab1 AS cor0 ---- -10 -14 -44 query I rowsort SELECT + col2 + cor0.col0 - col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT col0 + col0 * col2 AS col1 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT ALL + + col1 - - 15 * + col2 AS col0 FROM tab2 AS cor0 ---- 436 449 587 query I rowsort SELECT DISTINCT + col2 * 13 - cor0.col0 FROM tab0 AS cor0 ---- -22 405 977 query I rowsort SELECT + 5 * - col1 FROM tab2 AS cor0 ---- -155 -295 -85 query I rowsort SELECT + + col0 * - col1 * - col2 AS col2 FROM tab0 AS cor0 ---- 3395 664118 68112 onlyif mysql # use DIV operator for integer division query I rowsort label-4383 SELECT DISTINCT col1 DIV + ( col0 ) + 53 * col1 DIV col0 AS col2 FROM tab1 AS cor0 ---- 467 8 skipif mysql # not compatible query I rowsort label-4383 SELECT DISTINCT col1 / + ( col0 ) + 53 * col1 / col0 AS col2 FROM tab1 AS cor0 ---- 467 8 query I rowsort SELECT DISTINCT + col2 + col2 * + col2 AS col1 FROM tab2 AS cor0 ---- 1482 702 756 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 73 + cor0.col2 * col0 col2 FROM tab0 AS cor0 ---- 108 7371 865 query I rowsort SELECT ( + col1 ) + + col0 AS col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT - + col1 * + 55 + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0 ---- 1486 2699 8501 query I rowsort SELECT - + 2 * col2 * col0 + + 1 FROM tab0 cor0 ---- -14595 -1583 -69 query I rowsort SELECT 68 + 31 FROM tab1 AS cor0 ---- 99 99 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4390 SELECT + ( + col1 ) * - cor0.col2 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0 ---- -1560 -684 -864 skipif mysql # not compatible query I rowsort label-4390 SELECT + ( + col1 ) * - cor0.col2 + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 ---- -1560 -684 -864 query I rowsort SELECT + - 62 + - col1 FROM tab2 AS cor0 ---- -121 -79 -93 query I rowsort SELECT + + 61 * + cor0.col0 FROM tab2 AS cor0 ---- 427 4758 4819 query I rowsort SELECT - 43 AS col1 FROM tab0 AS cor0 ---- -43 -43 -43 query I rowsort SELECT ALL cor0.col0 * - cor0.col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f query I rowsort SELECT 39 * - 41 AS col1 FROM tab0 ---- -1599 -1599 -1599 query I rowsort SELECT - 6 AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to e92b2679faac7be63701967e3f0c0934 query I rowsort SELECT + 55 + col0 - col2 * 85 AS col1 FROM tab2 ---- -2077 -2233 -3096 query I rowsort SELECT col0 + + ( tab1.col1 ) FROM tab1 ---- 29 74 93 query I rowsort SELECT ALL + tab2.col1 + col1 AS col1 FROM tab2 ---- 118 34 62 query I rowsort SELECT 32 + + ( col0 * + 45 ) FROM tab2 ---- 347 3542 3587 query I rowsort SELECT - cor0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e query I rowsort SELECT 25 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 525a55d5ed224a62da65df36731881a7 query I rowsort SELECT DISTINCT - 83 * - col2 - - col0 FROM tab1 cor0 ---- 4485 4795 8048 query I rowsort SELECT - 78 * + col2 - col2 * ( ( col2 ) ) FROM tab2 cor0 ---- -2704 -2835 -4408 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4405 SELECT ALL CAST( NULL AS SIGNED ) + + 21 * col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4405 SELECT ALL CAST ( NULL AS INTEGER ) + + 21 * col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4406 SELECT - col2 + - col1 DIV col0 FROM tab0 cor0 ---- -3 -36 -83 skipif mysql # not compatible query I rowsort label-4406 SELECT - col2 + - col1 / col0 FROM tab0 cor0 ---- -3 -36 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-4407 SELECT 72 * - col2 + - cor0.col1 DIV 16 FROM tab1 AS cor0 ---- -3889 -4104 -6912 skipif mysql # not compatible query I rowsort label-4407 SELECT 72 * - col2 + - cor0.col1 / 16 FROM tab1 AS cor0 ---- -3889 -4104 -6912 query I rowsort SELECT col2 + + col1 * 54 FROM tab2 AS cor0 ---- 1701 3212 956 query I rowsort SELECT ALL + + col0 * - col0 AS col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4410 SELECT col2 * col0 * + CAST( + col0 + - cor0.col2 AS SIGNED ) FROM tab2 AS cor0 ---- -3780 105456 123082 skipif mysql # not compatible query I rowsort label-4410 SELECT col2 * col0 * + CAST ( + col0 + - cor0.col2 AS INTEGER ) FROM tab2 AS cor0 ---- -3780 105456 123082 query I rowsort SELECT + 48 * - col2 + 63 AS col1 FROM tab1 AS cor0 ---- -2529 -2673 -4545 query I rowsort SELECT DISTINCT - col1 + col0 * col0 * col1 + - col1 * col1 AS col1 FROM tab2 cor0 ---- 105791 355416 527 query I rowsort SELECT DISTINCT - 25 + + cor0.col0 FROM tab0 AS cor0 ---- -1 10 64 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4414 SELECT DISTINCT + col0 * - col2 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 ---- -188 -3658 -7693 skipif mysql # not compatible query I rowsort label-4414 SELECT DISTINCT + col0 * - col2 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 ---- -188 -3658 -7693 query I rowsort SELECT ALL + 26 * col0 FROM tab0 AS cor0 ---- 2314 624 910 query I rowsort SELECT 6 + cor0.col2 AS col0 FROM tab2 cor0 ---- 32 33 44 query I rowsort SELECT - col0 * col0 + - 21 FROM tab1 AS cor0 ---- -30 -4117 -6421 query I rowsort SELECT ALL + col2 + + col2 * + col1 FROM tab2 AS cor0 ---- 1560 684 864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 83 col0 FROM tab0, tab2 AS cor0 ---- 83 query I rowsort SELECT ALL - col2 + + col2 AS col2 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4421 SELECT - col0 DIV - col0 + - col0 FROM tab1 AS cor0 ---- -2 -63 -79 skipif mysql # not compatible query I rowsort label-4421 SELECT - col0 / - col0 + - col0 FROM tab1 AS cor0 ---- -2 -63 -79 query I rowsort SELECT DISTINCT + - col2 * col0 + + 25 FROM tab2 AS cor0 ---- -164 -2003 -2977 query I rowsort SELECT ALL col1 * + cor0.col1 + 35 * 33 AS col1 FROM tab0 AS cor0 ---- 10564 8551 9436 query I rowsort SELECT + - col2 + - col1 AS col2 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT DISTINCT - - 16 FROM tab1 AS cor0 ---- 16 query I rowsort SELECT DISTINCT + col1 * col1 + - cor0.col0 * col1 + col1 * - col2 AS col1 FROM tab1 AS cor0 ---- -1110 -2119 -806 query I rowsort SELECT DISTINCT col0 * cor0.col0 + + col0 + + col0 FROM tab2 AS cor0 ---- 6240 63 6399 query I rowsort SELECT - col0 + - ( + cor0.col1 ) * + col1 FROM tab0 AS cor0 ---- -7420 -8370 -9444 query I rowsort SELECT - col1 + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT + col2 * - ( col2 ) AS col0 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT - col0 * 39 FROM tab1 AS cor0 ---- -117 -2496 -3120 query I rowsort SELECT ALL + - col0 * col0 FROM tab1 cor0 ---- -4096 -6400 -9 query I rowsort SELECT ALL - - col0 * - 64 AS col0 FROM tab1 cor0 ---- -192 -4096 -5120 query I rowsort SELECT col1 * + col0 AS col2 FROM tab0 cor0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( 27 ) - - cor0.col2 col2 FROM tab1 AS cor0 ---- 27 30 69 query I rowsort SELECT DISTINCT + + col1 * - col1 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT + cor0.col1 + + col2 * + col2 AS col0 FROM tab2 cor0 ---- 1461 735 760 query I rowsort SELECT DISTINCT + 85 AS col1 FROM tab1 AS cor0 ---- 85 query I rowsort SELECT ALL - + ( - cor0.col1 ) + col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT col0 * - ( + 58 ) - col0 * tab0.col0 AS col0 FROM tab0 ---- -13083 -1968 -3255 query I rowsort SELECT ALL + 8 * + col0 - + col2 FROM tab0 AS cor0 ---- 159 279 630 query I rowsort SELECT DISTINCT + 64 * - col0 AS col0 FROM tab2 AS cor0 ---- -448 -4992 -5056 query I rowsort SELECT ALL + + col1 * col1 FROM tab2 cor0 ---- 289 3481 961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4444 SELECT 29 * - ( col2 + - CAST( NULL AS SIGNED ) * ( col1 ) ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4444 SELECT 29 * - ( col2 + - CAST ( NULL AS INTEGER ) * ( col1 ) ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 29 * + col0 AS col1 FROM tab0 AS cor0 ---- 1015 2581 696 query I rowsort SELECT DISTINCT + col2 * col2 AS col2 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT ALL + - col0 + - col0 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT + 57 + + 8 * col1 FROM tab0 AS cor0 ---- 745 785 833 query I rowsort SELECT DISTINCT col2 + - col1 AS col0 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT - - 63 FROM tab2 AS cor0 ---- 63 query I rowsort SELECT ALL + + ( - 24 ) * + col0 - - col0 FROM tab2 AS cor0 ---- -161 -1794 -1817 query I rowsort SELECT - col0 * 34 * col2 + 52 AS col2 FROM tab0 AS cor0 ---- -1138 -248080 -26876 query I rowsort SELECT + col0 + - col0 * + col2 FROM tab1 AS cor0 ---- -159 -3584 -7600 onlyif mysql # use DIV operator for integer division query I rowsort label-4454 SELECT DISTINCT - ( - col1 ) DIV + col0 + + 20 FROM tab0 cor0 ---- 21 22 23 skipif mysql # not compatible query I rowsort label-4454 SELECT DISTINCT - ( - col1 ) / + col0 + + 20 FROM tab0 cor0 ---- 21 22 23 query I rowsort SELECT + tab2.col0 - col1 AS col2 FROM tab2 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 26 * + col2 * col1 col0 FROM tab2 cor0 ---- 16796 21762 39884 query I rowsort SELECT + - col0 * col1 * + col1 AS col0 FROM tab0 cor0 ---- -177504 -329315 -737009 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 8 col2 FROM tab0 AS cor0 ---- 8 query I rowsort SELECT ALL + + col2 * col0 * cor0.col1 FROM tab0 AS cor0 ---- 3395 664118 68112 onlyif mysql # use DIV operator for integer division query I rowsort label-4460 SELECT DISTINCT + col2 DIV - col1 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-4460 SELECT DISTINCT + col2 / - col1 FROM tab0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4461 SELECT - col1 * CAST( NULL AS SIGNED ) + - 23 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4461 SELECT - col1 * CAST ( NULL AS INTEGER ) + - 23 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + cor1.col1 + - 66 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5c4b24968b31517b20871432235220e6 query I rowsort SELECT DISTINCT + 42 + + col0 * col0 FROM tab2 ---- 6126 6283 91 query I rowsort SELECT ALL + tab2.col2 AS col2 FROM tab2, tab0 cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 onlyif mysql # use DIV operator for integer division query I rowsort label-4465 SELECT ( + col2 ) DIV col0 + col0 + - col1 AS col1 FROM tab0 AS cor0 ---- -2 -61 -62 skipif mysql # not compatible query I rowsort label-4465 SELECT ( + col2 ) / col0 + col0 + - col1 AS col1 FROM tab0 AS cor0 ---- -2 -61 -62 query I rowsort SELECT - ( col1 ) * col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT col1 * 46 + - col2 FROM tab0 ---- 3923 4104 4461 query I rowsort SELECT + 25 * + ( - col1 ) + col1 * + col2 AS col0 FROM tab1 ---- 320 754 923 query I rowsort SELECT + 58 * cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to da6e9e31125edfaa01597c20a1ea2a10 query I rowsort SELECT + col2 + 2 AS col1 FROM tab1 AS cor0 ---- 56 59 98 query I rowsort SELECT ALL + col0 + + ( 36 + col0 * + col2 ) FROM tab1 cor0 ---- 201 3748 7796 query I rowsort SELECT + - ( 12 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to e698dd57d3aac30af14ce35da434bb45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4473 SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4473 SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT 89 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 onlyif mysql # use DIV operator for integer division query I rowsort label-4475 SELECT ALL + tab0.col1 DIV + 69 AS col0 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4475 SELECT ALL + tab0.col1 / + 69 AS col0 FROM tab0 ---- 1 1 1 query I rowsort SELECT ALL 7 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 3362c0cb2b2c663037159d0699d46b76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4477 SELECT DISTINCT + cor0.col2 * + CAST( + ( cor0.col2 ) AS SIGNED ) FROM tab1 AS cor0 ---- 2916 3249 9216 skipif mysql # not compatible query I rowsort label-4477 SELECT DISTINCT + cor0.col2 * + CAST ( + ( cor0.col2 ) AS INTEGER ) FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT + cor0.col2 * ( cor0.col1 ) FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT col0 * 79 AS col0 FROM tab2 AS cor0 ---- 553 6162 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 * ( 53 ) col0 FROM tab0 AS cor0 ---- -1749 -4346 -53 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col1 col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT - cor0.col1 + - cor0.col0 * - col0 + + col2 AS col1 FROM tab1 AS cor0 ---- 37 4143 6483 onlyif mysql # use DIV operator for integer division query I rowsort label-4483 SELECT ALL - - col2 * col2 - - col2 DIV cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1090 2 6725 skipif mysql # not compatible query I rowsort label-4483 SELECT ALL - - col2 * col2 - - col2 / cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1090 2 6725 query I rowsort SELECT - col1 - col2 FROM tab0 WHERE col0 <= - col2 + col2 * + col1 * - col1 ---- query III rowsort SELECT ALL * FROM tab2 WHERE + col2 BETWEEN + col0 AND col0 ---- query I rowsort SELECT col1 * + col2 AS col1 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT ALL - - cor0.col1 - col1 * col2 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT ALL - col0 + col0 + col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT - - cor0.col2 * + col1 + col0 * col1 FROM tab2 AS cor0 ---- 1054 1989 6136 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - + col0 * col0 col1 FROM tab1 cor0 ---- -4032 -6 -6320 query I rowsort SELECT - col0 + - col1 * cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT - col1 * + col0 + col0 * col1 + - col2 AS col0 FROM tab2 ---- -26 -27 -38 query I rowsort SELECT DISTINCT col1 * + col2 * col2 + col2 AS col0 FROM tab0 ---- 611966 93687 98 query I rowsort SELECT ALL - - col1 - + col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT col0 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT col1 * col0 - cor0.col0 FROM tab0 AS cor0 ---- 2040 3360 8010 query I rowsort SELECT col0 + + cor0.col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL col1 * + col2 + col2 * + col2 AS col2 FROM tab2 ---- 1566 2090 2210 query I rowsort SELECT - col0 * + col1 AS col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT - col1 + + tab1.col0 AS col2 FROM tab1 ---- -23 54 67 query I rowsort SELECT - + cor0.col2 * cor0.col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - col1 + + col0 AS col2 FROM tab0 ---- -2 -62 -62 query I rowsort SELECT + tab0.col1 * + tab0.col1 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea query I rowsort SELECT ALL col0 + col0 * col1 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT ALL - + col0 * col1 * col1 FROM tab0 AS cor0 ---- -177504 -329315 -737009 query I rowsort SELECT + ( cor0.col2 ) FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT ALL tab0.col1 AS col1 FROM tab0 WHERE NOT ( - col1 / + col2 ) > ( NULL ) ---- query I rowsort SELECT DISTINCT - col0 + tab2.col2 * - col0 FROM tab2 ---- -196 -2106 -3081 query I rowsort SELECT ALL tab2.col2 + + col1 FROM tab2 ---- 55 58 85 query I rowsort SELECT DISTINCT col2 FROM tab2 WHERE + col1 * + col0 * col2 IN ( col2 * - col1 ) ---- query I rowsort SELECT DISTINCT - tab0.col2 + + col2 AS col1 FROM tab0 ---- 0 query I rowsort SELECT col2 + col0 * tab1.col2 * tab1.col1 AS col0 FROM tab1 ---- 36537 4266 99936 query III rowsort SELECT * FROM tab0 WHERE NOT ( col2 * col2 * col2 ) >= NULL ---- query I rowsort SELECT DISTINCT + col1 + tab2.col0 AS col0 FROM tab2 ---- 137 38 96 query III rowsort SELECT ALL * FROM tab2 WHERE + col2 * col2 <= NULL ---- query I rowsort SELECT DISTINCT - col1 * tab2.col0 * + ( - 9 + col2 ) FROM tab2 ---- -38947 -3906 -78234 query I rowsort SELECT - 24 AS col2 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to f2e40f6e5cdbc2877843191cb261975f onlyif mysql # use DIV operator for integer division query I rowsort label-4518 SELECT - 53 * col2 DIV - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 53 53 53 skipif mysql # not compatible query I rowsort label-4518 SELECT - 53 * col2 / - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 53 53 53 query I rowsort SELECT ALL - 94 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f query I rowsort SELECT DISTINCT cor0.col1 FROM tab2, tab1 cor0 ---- 10 13 26 query I rowsort SELECT cor0.col1 * col0 FROM tab1 AS cor0 ---- 1040 640 78 query III rowsort SELECT * FROM tab1 WHERE NOT NULL <= NULL ---- query I rowsort SELECT DISTINCT + col1 * col0 - tab1.col0 * - col1 AS col0 FROM tab1 ---- 1280 156 2080 query III rowsort SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( - col2 * - col0 * col0 ) AND - col1 * col1 * col0 ---- query I rowsort SELECT ALL - col0 * col0 + col0 FROM tab2 ---- -42 -6006 -6162 query I rowsort SELECT DISTINCT tab0.col2 * col0 FROM tab0 ---- 35 7298 792 query III rowsort SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT col2 * - col0 * - tab2.col2 AS col1 FROM tab2 ---- 114076 5103 52728 query I rowsort SELECT DISTINCT - tab2.col0 * col0 - + col2 FROM tab2 ---- -6110 -6279 -76 query I rowsort SELECT + col2 * col0 * + col0 FROM tab2 ---- 1323 158184 237158 onlyif mysql # use DIV operator for integer division query I rowsort label-4531 SELECT DISTINCT + cor0.col2 DIV - col2 FROM tab1 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-4531 SELECT DISTINCT + cor0.col2 / - col2 FROM tab1 AS cor0 ---- -1 query I rowsort SELECT ALL cor0.col2 + col1 AS col2 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + col0 + + col2 * - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -1065 -6635 34 query I rowsort SELECT DISTINCT col0 + + col0 * - col2 AS col0 FROM tab0 AS cor0 ---- -7209 -768 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4535 SELECT col0 DIV + col1 - - col2 FROM tab2 AS cor0 ---- 27 27 42 skipif mysql # not compatible query I rowsort label-4535 SELECT col0 / + col1 - - col2 FROM tab2 AS cor0 ---- 27 27 42 query I rowsort SELECT + col0 FROM tab0 WHERE NOT col2 = NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col1 + col2 * + col0 col2 FROM tab2 ---- 1026 3562 3648 query III rowsort SELECT ALL * FROM tab1 WHERE NOT col0 + - col2 <= NULL ---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col1 * tab0.col1 * col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 col0 FROM tab1 WHERE NULL NOT IN ( col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-4541 SELECT DISTINCT + col1 + col0 DIV col2 + col2 AS col1 FROM tab0 ---- 119 133 174 skipif mysql # not compatible query I rowsort label-4541 SELECT DISTINCT + col1 + col0 / col2 + col2 AS col1 FROM tab0 ---- 119 133 174 query I rowsort SELECT + col1 + tab0.col2 * col2 AS col0 FROM tab0 ---- 1175 6815 98 query I rowsort SELECT col2 + - col2 * col0 FROM tab0 ---- -34 -7216 -759 query I rowsort SELECT DISTINCT + col2 * col1 - + col0 FROM tab2 ---- 1456 567 830 query I rowsort SELECT tab1.col0 + col0 AS col0 FROM tab1 ---- 128 160 6 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 + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) <= ( NULL ) ---- query I rowsort SELECT ALL + col2 * - col1 - col2 AS col0 FROM tab2 ---- -1560 -684 -864 onlyif mysql # use DIV operator for integer division query I rowsort label-4549 SELECT + col1 * col0 + col1 DIV col0 + - col2 AS col0 FROM tab1 ---- 32 583 944 skipif mysql # not compatible query I rowsort label-4549 SELECT + col1 * col0 + col1 / col0 + - col2 AS col0 FROM tab1 ---- 32 583 944 query I rowsort SELECT DISTINCT - col1 * - tab1.col2 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT ALL + col1 + + col0 AS col2 FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL col2 * col2 * col1 FROM tab1 ---- 119808 32490 75816 query I rowsort SELECT ALL - col0 + - 73 AS col0 FROM tab0 AS cor0 ---- -108 -162 -97 query I rowsort SELECT 55 * + col2 FROM tab1 ---- 2970 3135 5280 query I rowsort SELECT + 92 * col1 AS col1 FROM tab1 AS cor0 ---- 1196 2392 920 query I rowsort SELECT ALL - 93 * cor0.col2 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 6cdd5b24d1c6281a03298fa1c4264604 query I rowsort SELECT + ( tab2.col2 * - col2 ) + - tab2.col0 AS col2 FROM tab2 ---- -1523 -736 -754 query I rowsort SELECT + 50 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 314aace40e704c20a6be06204a329f80 query I rowsort SELECT DISTINCT ( col0 + ( + col0 ) ) AS col0 FROM tab0 ---- 178 48 70 query I rowsort SELECT + col2 + + col2 * col0 FROM tab1 cor0 ---- 216 3705 7776 query I rowsort SELECT - col2 * col1 + 9 * col0 * col0 FROM tab1 cor0 ---- -1323 36294 56352 query I rowsort SELECT + 96 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 22c5141a629f0ef396738ee2c8be6303 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2 ---- 972 values hashing to 4c0813b2179303fdf58f082d81d6d03c query I rowsort SELECT - col1 - - col1 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL col2 + ( + col2 ) AS col2 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT DISTINCT - + col2 + 22 AS col2 FROM tab2 AS cor0 ---- -16 -4 -5 onlyif mysql # use DIV operator for integer division query I rowsort label-4567 SELECT ALL cor0.col2 DIV col2 AS col1 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4567 SELECT ALL cor0.col2 / col2 AS col1 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - cor0.col1 * + col2 + cor0.col1 + + col0 FROM tab1 AS cor0 ---- -1155 -1375 -496 query I rowsort SELECT DISTINCT + col2 * - col1 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT - cor0.col2 * ( - col1 ) * + col2 + 95 FROM tab2 AS cor0 ---- 22694 24643 39979 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * + col2 + cor0.col1 * col2 col2 FROM tab2 AS cor0 ---- 1566 2090 2210 onlyif mysql # use DIV operator for integer division query I rowsort label-4572 SELECT - col2 DIV + 74 FROM tab0 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-4572 SELECT - col2 / + 74 FROM tab0 cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4573 SELECT DISTINCT col1 DIV + col0 AS col0 FROM tab2 cor0 ---- 0 4 skipif mysql # not compatible query I rowsort label-4573 SELECT DISTINCT col1 / + col0 AS col0 FROM tab2 cor0 ---- 0 4 query I rowsort SELECT DISTINCT + cor0.col1 * - 58 + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -1505 -516 -674 query I rowsort SELECT DISTINCT col0 * col1 + - col1 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT ALL + 97 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c query I rowsort SELECT 9 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b query I rowsort SELECT - - ( + cor0.col0 ) FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT - + 8 FROM tab2 AS cor0 ---- -8 -8 -8 query I rowsort SELECT col2 * - col0 AS col2 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT - 58 + cor0.col1 FROM tab2 AS cor0 ---- -27 -41 1 query I rowsort SELECT DISTINCT + - 5 * col1 + + col1 AS col1 FROM tab2 AS cor0 ---- -124 -236 -68 query I rowsort SELECT DISTINCT + - 34 FROM tab0 AS cor0 ---- -34 query I rowsort SELECT DISTINCT - - col2 * + col1 + cor0.col0 * + 47 + col1 FROM tab1 AS cor0 ---- 1571 3588 5021 query I rowsort SELECT 58 FROM tab1, tab1 AS cor0 ---- 9 values hashing to ef6e63aeed2581a168f07646d258f666 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 91 col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT ALL cor0.col2 * + cor0.col0 AS col2 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - col2 + col2 * + 97 * - 23 AS col0 FROM tab0 AS cor0 ---- -183024 -2232 -73656 query I rowsort SELECT DISTINCT - cor0.col2 - - col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT DISTINCT + + cor0.col1 * + cor0.col2 + col1 * col1 AS col0 FROM tab2 AS cor0 ---- 1798 5015 935 query I rowsort SELECT ALL - 83 FROM tab2 cor0 ---- -83 -83 -83 query I rowsort SELECT + - col1 * + col1 AS col2 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT ALL - ( - col2 ) FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + col2 + col0 * 84 AS col2 FROM tab1 AS cor0 ---- 306 5433 6816 query I rowsort SELECT DISTINCT + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT ALL - cor0.col2 + + col0 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT - col0 * col0 AS col1 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT - ( col1 ) * - 7 + ( - col2 * + col0 ) - ( - col2 ) * ( + col2 ) AS col0 FROM tab2 AS cor0 ---- -1439 -939 757 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * + col1 col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT + 11 * + col2 AS col2 FROM tab1 AS cor0 ---- 1056 594 627 query I rowsort SELECT DISTINCT + ( col1 ) * - col1 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT ALL + + col0 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - 96 FROM tab1, tab0 AS cor0 ---- 9 values hashing to c89b545346f99713888a7934e4caa539 query I rowsort SELECT + cor0.col0 * ( col0 ) AS col2 FROM tab1 AS cor0 ---- 4096 6400 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 + col1 col2 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT cor1.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 86 91 97 onlyif mysql # use DIV operator for integer division query I rowsort label-4607 SELECT - col0 DIV col0 + + col1 * + ( col0 ) * cor0.col2 col2 FROM tab0 AS cor0 ---- 3394 664117 68111 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4607 SELECT - col0 / col0 + + col1 * + ( col0 ) * cor0.col2 col2 FROM tab0 AS cor0 ---- 3394 664117 68111 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( - col2 AS REAL ) AS col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL - 62 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c query I rowsort SELECT ALL - col2 * + cor0.col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT - col1 + col2 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT - 93 * col0 FROM tab2 AS cor0 ---- -651 -7254 -7347 query I rowsort SELECT ALL + - 72 * + 87 FROM tab1 AS cor0 ---- -6264 -6264 -6264 query I rowsort SELECT DISTINCT - 81 + cor0.col0 * - cor0.col0 FROM tab2 AS cor0 ---- -130 -6165 -6322 query I rowsort SELECT ALL + col1 + 10 FROM tab1 ---- 20 23 36 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4616 SELECT - tab1.col1 - + CAST( NULL AS SIGNED ) col2 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4616 SELECT - tab1.col1 - + CAST ( NULL AS INTEGER ) col2 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + 36 col1 FROM tab2 ---- 53 67 95 query I rowsort SELECT DISTINCT 91 * - 3 + + col1 AS col1 FROM tab1 ---- -247 -260 -263 query I rowsort SELECT DISTINCT + 17 + col1 AS col0 FROM tab2 ---- 34 48 76 query I rowsort SELECT col2 * - col1 + + tab0.col0 AS col1 FROM tab0 ---- -2814 -62 -7373 skipif mysql # not compatible query I rowsort SELECT CAST ( + col2 AS REAL ) - col1 / - CAST ( + 83 AS INTEGER ) FROM tab2 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-4622 SELECT ALL - 8 DIV 52 + - col0 * + 44 + col2 * + tab2.col0 FROM tab2 ---- -119 -1404 -474 skipif mysql # not compatible query I rowsort label-4622 SELECT ALL - 8 / 52 + - col0 * + 44 + col2 * + tab2.col0 FROM tab2 ---- -119 -1404 -474 query I rowsort SELECT DISTINCT 32 + col2 AS col1 FROM tab0 ---- 114 33 65 onlyif mysql # use DIV operator for integer division query I rowsort label-4624 SELECT ALL ( col1 ) + - col1 DIV - 44 AS col2 FROM tab0 ---- 87 93 99 skipif mysql # not compatible query I rowsort label-4624 SELECT ALL ( col1 ) + - col1 / - 44 AS col2 FROM tab0 ---- 87 93 99 query I rowsort SELECT + 80 - - 84 * col0 AS col2 FROM tab2 ---- 6632 668 6716 query I rowsort SELECT + col0 * col2 + col2 FROM tab0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-4627 SELECT - 32 * col2 + - col1 DIV + 31 FROM tab2 AS cor0 ---- -1216 -833 -865 skipif mysql # not compatible query I rowsort label-4627 SELECT - 32 * col2 + - col1 / + 31 FROM tab2 AS cor0 ---- -1216 -833 -865 query I rowsort SELECT + col0 * + col1 + col2 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT col1 + + col0 * cor0.col2 FROM tab0 AS cor0 ---- 132 7389 878 onlyif mysql # use DIV operator for integer division query I rowsort label-4630 SELECT - ( + col1 ) + - col0 DIV 70 AS col0 FROM tab2 AS cor0 ---- -18 -31 -60 skipif mysql # not compatible query I rowsort label-4630 SELECT - ( + col1 ) + - col0 / 70 AS col0 FROM tab2 AS cor0 ---- -18 -31 -60 query I rowsort SELECT + col2 + col0 * + col2 FROM tab2 ---- 2054 216 3040 onlyif mysql # use DIV operator for integer division query I rowsort label-4632 SELECT DISTINCT tab2.col0 DIV ( 41 ) AS col0 FROM tab2 ---- 0 1 skipif mysql # not compatible query I rowsort label-4632 SELECT DISTINCT tab2.col0 / ( 41 ) AS col0 FROM tab2 ---- 0 1 query I rowsort SELECT ALL + col1 * + 42 FROM tab0 AS cor0 ---- 3612 3822 4074 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4634 SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4634 SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL - + col1 * + 24 FROM tab0 AS cor0 ---- -2064 -2184 -2328 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4636 SELECT DISTINCT + - col0 * CAST( cor0.col0 AS SIGNED ) + col2 FROM tab1 AS cor0 ---- -4039 -6304 45 skipif mysql # not compatible query I rowsort label-4636 SELECT DISTINCT + - col0 * CAST ( cor0.col0 AS INTEGER ) + col2 FROM tab1 AS cor0 ---- -4039 -6304 45 query I rowsort SELECT col2 * 73 AS col2 FROM tab2 AS cor0 ---- 1898 1971 2774 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4638 SELECT col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4638 SELECT col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL - - col2 * col2 + col2 AS col2 FROM tab2 AS cor0 ---- 1482 702 756 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4640 SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4640 SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4641 SELECT - - 94 * ( - col1 ) DIV - ( + col2 ) AS col2 FROM tab1 AS cor0 ---- 12 16 45 skipif mysql # not compatible query I rowsort label-4641 SELECT - - 94 * ( - col1 ) / - ( + col2 ) AS col2 FROM tab1 AS cor0 ---- 12 16 45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4642 SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4642 SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 25 * cor0.col2 FROM tab0 AS cor0 ---- 2050 25 825 query I rowsort SELECT - + 16 + 49 * + col0 AS col0 FROM tab2 AS cor0 ---- 327 3806 3855 onlyif mysql # use DIV operator for integer division query I rowsort label-4645 SELECT col1 + col2 DIV - col0 FROM tab1 AS cor0 ---- 10 12 8 skipif mysql # not compatible query I rowsort label-4645 SELECT col1 + col2 / - col0 FROM tab1 AS cor0 ---- 10 12 8 query I rowsort SELECT 95 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a query I rowsort SELECT ALL - 9 * col1 * col1 FROM tab1 AS cor0 ---- -1521 -6084 -900 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4648 SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-4648 SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL + 49 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT ALL 51 + + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 105 108 147 onlyif mysql # use DIV operator for integer division query I rowsort label-4651 SELECT col0 * col0 + 34 DIV col0 col1 FROM tab1 AS cor0 ---- 20 4096 6400 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4651 SELECT col0 * col0 + 34 / col0 col1 FROM tab1 AS cor0 ---- 20 4096 6400 query I rowsort SELECT + 6 * - col1 FROM tab0 ---- -516 -546 -582 query I rowsort SELECT DISTINCT + + 89 FROM tab0, tab1, tab0 AS cor0 ---- 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor1.col0 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT - tab2.col1 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 query I rowsort SELECT ALL ( - cor0.col0 ) + + col2 FROM tab1 AS cor0 ---- -7 16 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 * col2 + - 27 + - ( cor0.col0 ) col2 FROM tab0 AS cor0 ---- -7414 -843 -97 query I rowsort SELECT DISTINCT - cor0.col0 * + cor0.col2 - - col0 AS col2 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT + 7 - - cor0.col2 AS col2 FROM tab0 cor0 ---- 40 8 89 query I rowsort SELECT DISTINCT - - cor0.col2 + col2 AS col1 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT cor0.col1 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * cor0.col0 col1 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT + col2 * + col1 + + ( - col1 ) FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT ALL col1 - cor0.col0 FROM tab1 cor0 ---- -54 -67 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col2 col0 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT 47 * + col2 + + ( + 1 ) AS col2 FROM tab2 ---- 1223 1270 1787 query I rowsort SELECT ALL 73 FROM tab1, tab2, tab0 cor0 ---- 27 values hashing to 3933a906d17a820ccf95467e2206df8f query I rowsort SELECT ALL - col2 * - col2 + tab2.col0 AS col2 FROM tab2 ---- 1523 736 754 query I rowsort SELECT ALL - 63 + col0 FROM tab1 ---- -60 1 17 onlyif mysql # use DIV operator for integer division query I rowsort label-4670 SELECT + col2 * - col1 DIV col1 + + col0 FROM tab0 ---- -9 34 7 skipif mysql # not compatible query I rowsort label-4670 SELECT + col2 * - col1 / col1 + + col0 FROM tab0 ---- -9 34 7 query I rowsort SELECT ALL cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT - col1 + cor0.col2 * col2 AS col1 FROM tab1 AS cor0 ---- 2890 3239 9203 query I rowsort SELECT - col2 * + col1 * - 22 + cor0.col1 * - cor0.col0 FROM tab0 AS cor0 ---- -1261 156065 60372 query I rowsort SELECT cor0.col1 + 89 AS col2 FROM tab0 AS cor0 ---- 175 180 186 query I rowsort SELECT DISTINCT col2 + col0 * + col0 AS col2 FROM tab2 ---- 6110 6279 76 query I rowsort SELECT + 60 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT - col1 * col2 AS col0 FROM tab0 cor0 ---- -2838 -7462 -97 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 cor2 ---- 972 values hashing to 9600bdf5bac0caec3229e87170cc40b3 query I rowsort SELECT + - col1 * 85 FROM tab2 AS cor0 ---- -1445 -2635 -5015 query I rowsort SELECT col2 + + col0 + col1 * col0 AS col0 FROM tab0 cor0 ---- 2121 3431 8270 query I rowsort SELECT cor0.col2 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - ( + 8 ) + - cor0.col2 * ( - col0 ) * col2 FROM tab0 cor0 ---- 26128 27 598428 onlyif mysql # use DIV operator for integer division query I rowsort label-4683 SELECT ALL - ( - cor0.col0 ) DIV col2 FROM tab0 AS cor0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-4683 SELECT ALL - ( - cor0.col0 ) / col2 FROM tab0 AS cor0 ---- 0 1 35 query I rowsort SELECT DISTINCT col0 + 46 FROM tab0 cor0 ---- 135 70 81 query I rowsort SELECT tab1.col2 + - cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 721a50c429bcec3b993291890e2e98be query I rowsort SELECT DISTINCT col1 + col2 + 29 FROM tab1 ---- 109 138 96 query I rowsort SELECT - col1 + + col2 FROM tab0 cor0 ---- -53 -9 -96 query I rowsort SELECT - - col2 + + cor0.col1 FROM tab2 AS cor0 ---- 55 58 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4689 SELECT + CAST( NULL AS DECIMAL ) FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-4689 SELECT + CAST ( NULL AS REAL ) FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ( - col0 ) + col2 FROM tab1 ---- -7 16 51 query I rowsort SELECT ALL - 48 AS col0 FROM tab1, tab0 cor0 ---- 9 values hashing to 31c94943c073954e4ca20b170ab61f8c query I rowsort SELECT + col2 + - 53 FROM tab2 ---- -15 -26 -27 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4693 SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4693 SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4694 SELECT ALL 23 DIV col0 AS col0 FROM tab2 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-4694 SELECT ALL 23 / col0 AS col0 FROM tab2 ---- 0 0 3 query I rowsort SELECT ALL cor1.col2 + 28 * cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to a8be4580046f54d0357dfb2ef91cdc0e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4696 SELECT ALL CAST( NULL AS SIGNED ) * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-4696 SELECT ALL CAST ( NULL AS INTEGER ) * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + 53 * - col1 + 15 * col2 - col2 * - col1 FROM tab0 AS cor0 ---- -1225 -5029 3869 query I rowsort SELECT + 35 * col1 + col2 + + 82 FROM tab0 cor0 ---- 3125 3349 3478 query I rowsort SELECT - col1 + col2 + col2 FROM tab2 AS cor0 ---- -7 23 59 query I rowsort SELECT - col2 * + col0 + col1 - col2 * - col0 * - col1 AS col0 FROM tab2 AS cor0 ---- -121621 -54019 -6017 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 40 col1 FROM tab0 AS cor0 ---- 40 40 40 query I rowsort SELECT + col1 * - col0 - + col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-4703 SELECT ALL + - 37 + col1 DIV + cor0.col1 AS col2 FROM tab1 cor0 ---- -36 -36 -36 skipif mysql # not compatible query I rowsort label-4703 SELECT ALL + - 37 + col1 / + cor0.col1 AS col2 FROM tab1 cor0 ---- -36 -36 -36 query I rowsort SELECT ALL col2 + + col2 + col0 AS col1 FROM tab0 AS cor0 ---- 253 37 90 query I rowsort SELECT + - col0 * + ( cor0.col2 ) FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT 0 - - cor0.col2 * col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT + 16 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT ALL + 96 * + ( - col2 ) FROM tab0 AS cor0 ---- -3168 -7872 -96 query I rowsort SELECT - 15 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 36 col1 FROM tab1 AS cor0 ---- 36 query I rowsort SELECT DISTINCT 12 AS col2 FROM tab0 AS cor0 ---- 12 query I rowsort SELECT DISTINCT + 65 * col1 FROM tab1 AS cor0 ---- 1690 650 845 query I rowsort SELECT - col2 + - col0 FROM tab2 ---- -104 -117 -34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4714 SELECT - - 6 + col0 * CAST( 83 AS SIGNED ) col1 FROM tab2 AS cor0 ---- 587 6480 6563 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4714 SELECT - - 6 + col0 * CAST ( 83 AS INTEGER ) col1 FROM tab2 AS cor0 ---- 587 6480 6563 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4715 SELECT - CAST( col1 + + col1 AS SIGNED ) FROM tab1 ---- -20 -26 -52 skipif mysql # not compatible query I rowsort label-4715 SELECT - CAST ( col1 + + col1 AS INTEGER ) FROM tab1 ---- -20 -26 -52 query I rowsort SELECT ( + 80 ) AS col1 FROM tab0 ---- 80 80 80 query I rowsort SELECT + 28 AS col1 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 8a39580587f2831072e93c319ff94bbf query I rowsort SELECT - + 42 + - col2 AS col2 FROM tab2 AS cor0 ---- -68 -69 -80 query I rowsort SELECT ALL - 7 AS col1 FROM tab1 ---- -7 -7 -7 onlyif mysql # use DIV operator for integer division query I rowsort label-4720 SELECT ALL - col1 DIV tab2.col1 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4720 SELECT ALL - col1 / tab2.col1 FROM tab2 ---- -1 -1 -1 query I rowsort SELECT ALL - cor0.col1 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-4722 SELECT - col0 + 93 DIV col0 AS col1 FROM tab0 AS cor0 ---- -21 -33 -88 skipif mysql # not compatible query I rowsort label-4722 SELECT - col0 + 93 / col0 AS col1 FROM tab0 AS cor0 ---- -21 -33 -88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4723 SELECT ALL + col0 * CAST( 17 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 119 1326 1343 skipif mysql # not compatible query I rowsort label-4723 SELECT ALL + col0 * CAST ( 17 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 119 1326 1343 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 + - cor0.col2 col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL - col1 + ( + col1 ) AS col2 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4726 SELECT - col1 DIV 30 + col0 * - col2 FROM tab2 AS cor0 ---- -190 -2029 -3002 skipif mysql # not compatible query I rowsort label-4726 SELECT - col1 / 30 + col0 * - col2 FROM tab2 AS cor0 ---- -190 -2029 -3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 50 col1 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 314aace40e704c20a6be06204a329f80 query I rowsort SELECT 1 + col2 * ( - ( tab2.col2 ) ) - - ( + col1 ) FROM tab2 ---- -1426 -616 -697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 33 col1 FROM tab0 ---- 33 33 33 query I rowsort SELECT ALL - tab1.col0 AS col0 FROM tab1, tab2, tab0 cor0 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 * + col2 col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT + + col1 * + 92 + - 88 * - col0 AS col1 FROM tab2 AS cor0 ---- 12292 3468 8516 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4733 SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4733 SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT col0 * 40 * - 25 FROM tab0 AS cor0 ---- -24000 -35000 -89000 query I rowsort SELECT 36 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to 4d1892e880125dc90345721151acb22c query I rowsort SELECT col1 + ( col2 + col1 ) * col2 AS col1 FROM tab2 ---- 1597 2107 2269 query I rowsort SELECT DISTINCT col1 + 8 * 36 AS col0 FROM tab2 ---- 305 319 347 query I rowsort SELECT - tab2.col1 * + col0 + + 38 AS col0 FROM tab2 ---- -1305 -179 -4564 query I rowsort SELECT DISTINCT + col1 + - col2 AS col2 FROM tab0 ---- 53 9 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4740 SELECT ALL - col0 + CAST( + ( - col0 ) AS SIGNED ) FROM tab0 cor0 ---- -178 -48 -70 skipif mysql # not compatible query I rowsort label-4740 SELECT ALL - col0 + CAST ( + ( - col0 ) AS INTEGER ) FROM tab0 cor0 ---- -178 -48 -70 query I rowsort SELECT ALL - - cor0.col1 + + cor0.col1 + + cor0.col1 * col2 AS col1 FROM tab2 AS cor0 ---- 1652 680 899 onlyif mysql # use DIV operator for integer division query I rowsort label-4742 SELECT ALL col1 * cor0.col1 DIV + cor0.col0 + cor0.col2 FROM tab2 AS cor0 ---- 164 41 70 skipif mysql # not compatible query I rowsort label-4742 SELECT ALL col1 * cor0.col1 / + cor0.col0 + cor0.col2 FROM tab2 AS cor0 ---- 164 41 70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4743 SELECT ALL + cor0.col2 * CAST( + 28 * + col0 AS DECIMAL ) + CAST( NULL AS SIGNED ) * col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4743 SELECT ALL + cor0.col2 * CAST ( + 28 * + col0 AS REAL ) + CAST ( NULL AS INTEGER ) * col0 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT + tab0.col1 * col1 + + 55 FROM tab0 ---- 7451 8336 9464 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col1 + + ( col2 + col2 ) col0 FROM tab0 ---- -20 -95 73 query I rowsort SELECT 27 AS col2 FROM tab1 AS cor0 ---- 27 27 27 query I rowsort SELECT ALL - - col0 * - 12 AS col0 FROM tab1 cor0 ---- -36 -768 -960 onlyif mysql # use DIV operator for integer division query I rowsort label-4748 SELECT DISTINCT + - col0 + ( + col1 ) DIV + 6 AS col2 FROM tab2 AS cor0 ---- -2 -69 -77 skipif mysql # not compatible query I rowsort label-4748 SELECT DISTINCT + - col0 + ( + col1 ) / + 6 AS col2 FROM tab2 AS cor0 ---- -2 -69 -77 query I rowsort SELECT + - col0 * - 97 AS col1 FROM tab2 AS cor0 ---- 679 7566 7663 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4750 SELECT + ( - 28 ) * col0 + CAST( NULL AS SIGNED ) + + 82 * col0 / 88 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4750 SELECT + ( - 28 ) * col0 + CAST ( NULL AS INTEGER ) + + 82 * col0 / 88 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( col1 AS REAL ) FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT DISTINCT + cor0.col1 * col0 + col2 + col1 FROM tab0 AS cor0 ---- 2183 3493 8272 query I rowsort SELECT 37 * col2 AS col2 FROM tab2 AS cor0 ---- 1406 962 999 query I rowsort SELECT DISTINCT + cor0.col1 + + 7 AS col0 FROM tab0 cor0 ---- 104 93 98 query I rowsort SELECT DISTINCT - 32 * + col2 FROM tab2 AS cor0 ---- -1216 -832 -864 query I rowsort SELECT ALL + - 67 FROM tab1 AS cor0 ---- -67 -67 -67 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4757 SELECT + CAST( + ( + col2 ) AS SIGNED ) + + col1 * + 3 * col2 + 57 FROM tab1 AS cor0 ---- 1824 3897 4323 skipif mysql # not compatible query I rowsort label-4757 SELECT + CAST ( + ( + col2 ) AS INTEGER ) + + col1 * + 3 * col2 + 57 FROM tab1 AS cor0 ---- 1824 3897 4323 query I rowsort SELECT DISTINCT + 83 + - col0 * + col0 FROM tab0 AS cor0 ---- -1142 -493 -7838 query I rowsort SELECT ALL + - col2 * col0 + + col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT col0 * - col2 * col0 AS col1 FROM tab1 AS cor0 ---- -233472 -486 -614400 query I rowsort SELECT ALL - - 98 FROM tab1 AS cor0 ---- 98 98 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col1 col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + 8 - - col1 AS col0 FROM tab2 cor0 ---- 25 39 67 onlyif mysql # use DIV operator for integer division query I rowsort label-4764 SELECT ALL 96 DIV col0 + col0 * + col0 AS col2 FROM tab1 cor0 ---- 4097 41 6401 skipif mysql # not compatible query I rowsort label-4764 SELECT ALL 96 / col0 + col0 * + col0 AS col2 FROM tab1 cor0 ---- 4097 41 6401 query I rowsort SELECT DISTINCT + - 79 + + col0 FROM tab2 cor0 ---- -1 -72 0 query I rowsort SELECT DISTINCT - + ( col1 ) * + col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT 30 FROM tab2 AS cor0 ---- 30 query I rowsort SELECT - ( col0 ) + ( 17 ) * + col2 * col0 FROM tab1 AS cor0 ---- 130480 2751 61952 query I rowsort SELECT col1 + - col0 * - ( + 86 ) AS col2 FROM tab2 cor0 ---- 633 6767 6811 query I rowsort SELECT ALL + + col1 - col0 AS col2 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT - + col1 - col0 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT + - cor0.col1 * - col2 - ( + col0 ) FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT ALL + + 45 FROM tab0 AS cor0 ---- 45 45 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * + col1 + - ( col1 ) * - col2 col2 FROM tab2 AS cor0 ---- 1054 1989 6136 query I rowsort SELECT DISTINCT - cor0.col1 + col0 FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT ALL col0 * col2 - - 62 AS col1 FROM tab2 AS cor0 ---- 2090 251 3064 query I rowsort SELECT ALL - 92 * - col1 FROM tab2 AS cor0 ---- 1564 2852 5428 query I rowsort SELECT - 50 AS col1 FROM tab2 cor0 ---- -50 -50 -50 query I rowsort SELECT ALL + - col0 * cor0.col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT DISTINCT + col2 * + 4 FROM tab2 cor0 ---- 104 108 152 query I rowsort SELECT - - col1 + + 36 * col1 AS col1 FROM tab2 AS cor0 ---- 1147 2183 629 query I rowsort SELECT DISTINCT col2 * col2 + ( + col0 ) * - ( + col2 ) FROM tab0 AS cor0 ---- -34 -574 297 query I rowsort SELECT col1 + ( - col2 ) AS col2 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT - col0 * + col2 - - cor0.col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT DISTINCT - - cor0.col2 + - ( col1 + col0 ) AS col1 FROM tab2 AS cor0 ---- -11 -111 -58 query I rowsort SELECT + - col1 * - 9 + - col1 FROM tab0 AS cor0 ---- 688 728 776 query I rowsort SELECT col2 + - 6 FROM tab2 AS cor0 ---- 20 21 32 query I rowsort SELECT ALL - col1 - col2 AS col1 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT + ( col0 ) * + 98 - - col2 AS col2 FROM tab1 ---- 348 6329 7936 query I rowsort SELECT - + 90 + col0 AS col0 FROM tab1 AS cor0 ---- -10 -26 -87 query I rowsort SELECT + 27 + col0 * + col1 AS col1 FROM tab1 AS cor0 ---- 105 1067 667 onlyif mysql # use DIV operator for integer division query I rowsort label-4792 SELECT + col0 + col1 DIV + col0 AS col1 FROM tab1 AS cor0 ---- 11 64 80 skipif mysql # not compatible query I rowsort label-4792 SELECT + col0 + col1 / + col0 AS col1 FROM tab1 AS cor0 ---- 11 64 80 query I rowsort SELECT ( col1 ) + - ( 50 ) FROM tab1 cor0 ---- -24 -37 -40 query I rowsort SELECT 27 * col2 AS col2 FROM tab1 ---- 1458 1539 2592 query I rowsort SELECT DISTINCT - col0 + ( tab2.col2 ) FROM tab2 ---- -41 -52 20 query I rowsort SELECT - tab1.col1 + tab1.col2 FROM tab1 ---- 28 47 83 query I rowsort SELECT DISTINCT 71 + ( col2 ) * ( ( - col1 ) ) FROM tab1 ---- -1177 -1333 -499 query I rowsort SELECT DISTINCT - tab1.col1 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col2 col2 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT - - col0 * - col0 + cor0.col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 query I rowsort SELECT + + col0 * + cor0.col1 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT - 98 + + col0 AS col0 FROM tab2 cor0 ---- -19 -20 -91 query I rowsort SELECT DISTINCT col2 + 10 AS col0 FROM tab1 ---- 106 64 67 query I rowsort SELECT - tab1.col0 + + col0 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT col2 + 16 FROM tab0 ---- 17 49 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4806 SELECT DISTINCT - col1 + CAST( - col1 + + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -35 -92 4 skipif mysql # not compatible query I rowsort label-4806 SELECT DISTINCT - col1 + CAST ( - col1 + + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -35 -92 4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4807 SELECT + col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4807 SELECT + col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - col1 * ( - cor0.col2 * - col1 ) AS col2 FROM tab0 AS cor0 ---- 244068 679042 9409 query I rowsort SELECT - cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 onlyif mysql # use DIV operator for integer division query I rowsort label-4810 SELECT ALL + ( col1 ) * col2 DIV tab2.col1 AS col1 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-4810 SELECT ALL + ( col1 ) * col2 / tab2.col1 AS col1 FROM tab2 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-4811 SELECT DISTINCT - col2 DIV + col2 AS col2 FROM tab0 ---- -1 skipif mysql # not compatible query I rowsort label-4811 SELECT DISTINCT - col2 / + col2 AS col2 FROM tab0 ---- -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4812 SELECT - CAST( NULL AS DECIMAL ) + - cor0.col2 + col2 AS col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4812 SELECT - CAST ( NULL AS REAL ) + - cor0.col2 + col2 AS col1 FROM tab2 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4813 SELECT - - 5 DIV - ( - col2 * CAST( 37 AS SIGNED ) ) + + col1 - 24 FROM tab0 AS cor0 ---- 62 67 73 skipif mysql # not compatible query I rowsort label-4813 SELECT - - 5 / - ( - col2 * CAST ( 37 AS INTEGER ) ) + + col1 - 24 FROM tab0 AS cor0 ---- 62 67 73 onlyif mysql # use DIV operator for integer division query I rowsort label-4814 SELECT + col1 * col1 DIV cor0.col0 + - col1 * cor0.col0 * + col2 - - col0 FROM tab2 AS cor0 ---- -119530 -50952 -5715 skipif mysql # not compatible query I rowsort label-4814 SELECT + col1 * col1 / cor0.col0 + - col1 * cor0.col0 * + col2 - - col0 FROM tab2 AS cor0 ---- -119530 -50952 -5715 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 72 + + col0 * col2 - - col1 col2 FROM tab0 AS cor0 ---- 60 7317 806 query I rowsort SELECT ALL 2 AS col2 FROM tab2 ---- 2 2 2 query I rowsort SELECT DISTINCT - col1 * - col0 AS col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT - col1 + 52 FROM tab0 ---- -34 -39 -45 query I rowsort SELECT - - 90 AS col0 FROM tab0 AS cor0 ---- 90 90 90 query I rowsort SELECT - - 98 * cor0.col1 + col1 * cor0.col1 FROM tab1 AS cor0 ---- 1080 1443 3224 query I rowsort SELECT + - 10 AS col0 FROM tab2 AS cor0 ---- -10 -10 -10 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 - + cor0.col2 col2 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT col2 * col1 + ( 59 + + cor0.col2 ) AS col1 FROM tab1 AS cor0 ---- 1403 1517 686 query I rowsort SELECT - col1 * - col2 * + 87 + - col2 FROM tab0 AS cor0 ---- 246873 649112 8438 query I rowsort SELECT + - col1 * - col2 + + col0 AS col0 FROM tab2 cor0 ---- 1612 725 844 query I rowsort SELECT 30 + + col0 FROM tab0 AS cor0 ---- 119 54 65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 col1 FROM tab2 cor0 ---- 26 27 38 query I rowsort SELECT ALL - col2 * + col0 + cor0.col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 onlyif mysql # use DIV operator for integer division query I rowsort label-4829 SELECT ALL tab2.col2 DIV + cor0.col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 692ca1a0a1898498dca9f0efe21c5e82 skipif mysql # not compatible query I rowsort label-4829 SELECT ALL tab2.col2 / + cor0.col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 692ca1a0a1898498dca9f0efe21c5e82 query I rowsort SELECT ALL + 24 + - col1 * + 90 AS col2 FROM tab2 AS cor0 ---- -1506 -2766 -5286 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab2.col0 col2 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT - cor0.col0 * + ( 2 ) FROM tab2 AS cor0 ---- -14 -156 -158 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 + 16 col0 FROM tab1 AS cor0 ---- -38 -41 -80 query I rowsort SELECT - cor0.col1 * cor0.col1 FROM tab2 AS cor0 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + ( + col0 ) col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT - cor0.col0 * + col2 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT - - col0 * + cor0.col1 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT 35 AS col2 FROM tab2 cor0 ---- 35 35 35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab1.col0 + - ( col2 ) col1 FROM tab1 ---- -121 -176 -57 query I rowsort SELECT col2 - - col2 FROM tab1 ---- 108 114 192 query I rowsort SELECT - col2 * col1 + + 84 FROM tab1 AS cor0 ---- -1164 -1320 -486 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 * - cor0.col1 col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT + 89 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 860d55eb6785972467218a9c3badb5ad onlyif mysql # use DIV operator for integer division query I rowsort label-4844 SELECT DISTINCT col2 DIV - col0 AS col1 FROM tab1 AS cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-4844 SELECT DISTINCT col2 / - col0 AS col1 FROM tab1 AS cor0 ---- -1 -18 0 query I rowsort SELECT 92 AS col1 FROM tab0 AS cor0 ---- 92 92 92 query I rowsort SELECT - 20 * col1 * col0 + col1 AS col0 FROM tab1 AS cor0 ---- -12790 -1534 -20787 onlyif mysql # use DIV operator for integer division query I rowsort label-4847 SELECT DISTINCT + - col2 DIV - 53 AS col2 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-4847 SELECT DISTINCT + - col2 / - 53 AS col2 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL cor0.col1 * - 84 FROM tab1 AS cor0 ---- -1092 -2184 -840 query I rowsort SELECT col1 + 23 FROM tab1 AS cor0 ---- 33 36 49 query I rowsort SELECT ALL col2 + - cor0.col1 AS col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT ALL + col1 * ( - cor0.col0 ) + col0 AS col2 FROM tab2 AS cor0 ---- -1264 -210 -4524 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4852 SELECT DISTINCT - cor0.col2 * + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4852 SELECT DISTINCT - cor0.col2 * + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + - col1 + ( 9 + - cor0.col2 ) FROM tab2 AS cor0 ---- -46 -49 -76 query I rowsort SELECT ALL col2 - + 75 * col2 AS col2 FROM tab1 AS cor0 ---- -3996 -4218 -7104 query I rowsort SELECT - col2 * 70 AS col1 FROM tab2 cor0 ---- -1820 -1890 -2660 query I rowsort SELECT DISTINCT - - col2 + 3 + cor0.col0 FROM tab1 AS cor0 ---- 124 179 60 query I rowsort SELECT ALL col0 * + col0 + - col2 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- -1280 -153 448 query I rowsort SELECT ALL col2 + 40 FROM tab2 AS cor0 ---- 66 67 78 query I rowsort SELECT DISTINCT ( 61 ) FROM tab1, tab1 cor0, tab0 AS cor1 ---- 61 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 63 + col1 col0 FROM tab2 ---- 122 80 94 query I rowsort SELECT + ( - tab1.col2 ) * - 51 + 11 AS col1 FROM tab1 ---- 2765 2918 4907 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + col1 col0 FROM tab2 ---- 118 34 62 query I rowsort SELECT ALL + col1 + - col0 * col1 AS col2 FROM tab2 AS cor0 ---- -1326 -186 -4543 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4864 SELECT CAST( col2 AS SIGNED ) + + col2 FROM tab0 cor0 ---- 164 2 66 skipif mysql # not compatible query I rowsort label-4864 SELECT CAST ( col2 AS INTEGER ) + + col2 FROM tab0 cor0 ---- 164 2 66 query I rowsort SELECT DISTINCT + ( ( - cor0.col0 ) ) * + 96 FROM tab0 AS cor0 ---- -2304 -3360 -8544 onlyif mysql # use DIV operator for integer division query I rowsort label-4866 SELECT ALL + + ( col1 ) DIV col2 AS col0 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-4866 SELECT ALL + + ( col1 ) / col2 AS col0 FROM tab0 AS cor0 ---- 1 2 97 query I rowsort SELECT DISTINCT - ( - ( + col2 ) ) AS col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT + + col1 * - ( cor0.col1 ) FROM tab0 cor0 ---- -7396 -8281 -9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * tab0.col2 col0 FROM tab0 ---- 35 7298 792 query I rowsort SELECT ALL + - col2 * cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT 50 + - col1 * + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -2014 -3345 -8049 query I rowsort SELECT + col0 * - ( + col2 ) FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT col1 * - ( + col1 ) FROM tab1 ---- -100 -169 -676 query I rowsort SELECT ALL col0 * + tab2.col1 * col0 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT DISTINCT - col1 + col2 * + tab1.col0 FROM tab1 ---- 136 3638 7667 query I rowsort SELECT - ( col2 ) - - col0 AS col2 FROM tab0 ---- -9 34 7 query I rowsort SELECT DISTINCT - tab2.col1 * - col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT - + col1 + + ( - col0 + cor0.col2 * 97 ) FROM tab2 AS cor0 ---- 2385 2581 3590 query I rowsort SELECT - col1 * col2 * + col2 + - col1 FROM tab2 AS cor0 ---- -22630 -24565 -39943 query I rowsort SELECT - + col1 + + col1 * col0 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT DISTINCT cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 86 91 97 query I rowsort SELECT col2 * 71 AS col2 FROM tab0 ---- 2343 5822 71 query I rowsort SELECT - col1 * + col1 + col2 AS col2 FROM tab0 ---- -7363 -8199 -9408 query I rowsort SELECT ALL - col1 - - col1 * col0 FROM tab1 ---- 1027 52 630 query I rowsort SELECT DISTINCT - 88 FROM tab0, tab1 AS cor0 ---- -88 query I rowsort SELECT ALL ( col1 ) + + col1 FROM tab2 ---- 118 34 62 query I rowsort SELECT DISTINCT col1 + - col2 * col2 FROM tab0 AS cor0 ---- -1003 -6633 96 query I rowsort SELECT + 56 * col1 FROM tab0 AS cor0 ---- 4816 5096 5432 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 54 col1 FROM tab1 AS cor0 ---- 54 query I rowsort SELECT ALL cor0.col0 + + col2 * - col1 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT + 9 * col1 * - col1 + col2 FROM tab0 cor0 ---- -66531 -74447 -84680 query I rowsort SELECT ALL - col1 + + col2 FROM tab0 ---- -53 -9 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-4893 SELECT - 24 DIV col1 AS col0 FROM tab2 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-4893 SELECT - 24 / col1 AS col0 FROM tab2 ---- -1 0 0 query I rowsort SELECT + 12 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to d4f5a8e032294c3b9342821617800972 onlyif mysql # use DIV operator for integer division query I rowsort label-4895 SELECT DISTINCT tab0.col1 + - tab0.col2 * col1 DIV + col1 + + col1 FROM tab0 ---- 100 139 193 skipif mysql # not compatible query I rowsort label-4895 SELECT DISTINCT tab0.col1 + - tab0.col2 * col1 / + col1 + + col1 FROM tab0 ---- 100 139 193 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4896 SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + col1 * - col2 + + col2 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-4896 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 + col1 * - col2 + + col2 FROM tab0 ---- NULL query I rowsort SELECT ALL ( col1 ) * col0 + col0 FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT + col2 + - col0 + - col1 AS col0 FROM tab2 ---- -11 -111 -58 query I rowsort SELECT ALL col2 * - col1 + col0 * tab0.col0 * col2 + - tab0.col2 AS col2 FROM tab0 ---- 1127 16137 641978 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col0 * cor0.col0 + + col2 - - col2 col1 FROM tab0 AS cor0 ---- 1227 642 8085 query I rowsort SELECT DISTINCT + 69 + cor0.col1 * col1 FROM tab2 AS cor0 ---- 1030 3550 358 query I rowsort SELECT ( + col1 ) * col0 + cor0.col0 * - col0 FROM tab0 AS cor0 ---- 1488 178 2170 query I rowsort SELECT - + col1 * - col0 + col2 * col2 AS col0 FROM tab2 AS cor0 ---- 2787 5278 946 query I rowsort SELECT DISTINCT - + 38 + col1 * col0 AS col1 FROM tab2 AS cor0 ---- 1305 179 4564 query I rowsort SELECT ALL + col1 + col0 * col2 * + col1 AS col1 FROM tab2 AS cor0 ---- 119711 51051 5890 query I rowsort SELECT 24 + - col0 + col1 FROM tab0 AS cor0 ---- 26 86 86 query I rowsort SELECT DISTINCT + cor0.col2 + - col0 * col2 FROM tab1 AS cor0 ---- -108 -3591 -7584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 * cor0.col2 col0 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT - + cor0.col1 + + col0 * - col1 FROM tab0 AS cor0 ---- -2150 -3492 -8190 query I rowsort SELECT ALL 12 FROM tab2 cor0 ---- 12 12 12 query I rowsort SELECT DISTINCT 62 * col2 * - col1 FROM tab0 AS cor0 ---- -175956 -462644 -6014 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab2.col2 + + tab2.col0 col0 FROM tab2 ---- -20 41 52 query I rowsort SELECT - col0 - 53 AS col2 FROM tab1 ---- -117 -133 -56 query I rowsort SELECT ALL + cor0.col1 * - col2 * col1 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT DISTINCT + col1 * - col2 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT - col2 + + col0 * + col0 FROM tab2 AS cor0 ---- 22 6058 6203 query I rowsort SELECT - + col2 * - col0 AS col2 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT col0 + - 80 - col0 AS col2 FROM tab2 AS cor0 ---- -80 -80 -80 query I rowsort SELECT DISTINCT - - 85 FROM tab1 AS cor0 ---- 85 query I rowsort SELECT ALL + col2 * 23 FROM tab2 cor0 ---- 598 621 874 query I rowsort SELECT - 71 + col2 AS col0 FROM tab0 cor0 ---- -38 -70 11 query I rowsort SELECT DISTINCT + + col1 * col1 FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT ALL - 82 * - 90 + col1 FROM tab1 AS cor0 ---- 7390 7393 7406 query I rowsort SELECT + ( col2 ) + - col0 + - cor0.col2 * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1403 624 749 onlyif mysql # use DIV operator for integer division query I rowsort label-4925 SELECT + 88 DIV + 89 AS col2 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4925 SELECT + 88 / + 89 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT - cor0.col0 + 29 FROM tab2 AS cor0 ---- -49 -50 22 query I rowsort SELECT - col1 * 1 + col0 * - col2 AS col0 FROM tab1 AS cor0 ---- -188 -3658 -7693 query I rowsort SELECT ALL + - 65 + 88 FROM tab0 AS cor0 ---- 23 23 23 query I rowsort SELECT DISTINCT - + 74 + + col1 * - col0 FROM tab0 AS cor0 ---- -2138 -3469 -8173 query I rowsort SELECT - 52 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 9500afe5646d620d5e8943351a29d082 query I rowsort SELECT ALL - col1 + - cor0.col1 + + col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT ALL - - 65 * + col0 AS col0 FROM tab1 AS cor0 ---- 195 4160 5200 query I rowsort SELECT DISTINCT + - col0 + - col2 + + col0 AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT - + col0 * - cor0.col0 FROM tab0 cor0 ---- 1225 576 7921 query I rowsort SELECT - - col1 + - col1 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4936 SELECT - - col0 * CAST( NULL AS SIGNED ) - 20 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4936 SELECT - - col0 * CAST ( NULL AS INTEGER ) - 20 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col2 * 6 AS col0 FROM tab1 cor0 ---- 324 342 576 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * 37 col2 FROM tab0 AS cor0 ---- -3182 -3367 -3589 query I rowsort SELECT - col1 * + col1 - 87 FROM tab1 AS cor0 ---- -187 -256 -763 onlyif mysql # use DIV operator for integer division query I rowsort label-4940 SELECT ALL + + col2 DIV col0 AS col0 FROM tab0 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-4940 SELECT ALL + + col2 / col0 AS col0 FROM tab0 cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col2 - + col1 col1 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT ALL + col1 * + tab1.col2 + - tab1.col0 FROM tab1 ---- 1168 1401 506 query I rowsort SELECT + col1 + - col1 * - cor0.col1 FROM tab1 AS cor0 ---- 110 182 702 query I rowsort SELECT cor0.col2 - - col1 AS col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT + col1 * col0 - + col2 FROM tab0 cor0 ---- 2031 3394 8017 query I rowsort SELECT - + col1 + ( - 22 ) * - col0 AS col2 FROM tab1 AS cor0 ---- 1398 1747 40 query I rowsort SELECT DISTINCT - 40 AS col1 FROM tab0, tab1 AS cor0 ---- -40 query I rowsort SELECT ALL 5 + + col2 + tab0.col1 FROM tab0 ---- 103 124 178 query I rowsort SELECT ALL col0 + - col0 + 60 AS col0 FROM tab0 ---- 60 60 60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( tab0.col1 ) col0 FROM tab0 ---- 86 91 97 query I rowsort SELECT DISTINCT + col0 + - col2 * + col2 FROM tab1 cor0 ---- -2913 -3185 -9136 query I rowsort SELECT - - 66 FROM tab1 AS cor0 ---- 66 66 66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * - col2 col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT + + col2 * col2 AS col1 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT ALL - ( + col2 ) * - col0 AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT col2 * + col0 AS col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT col0 + 99 * 12 FROM tab2 cor0 ---- 1195 1266 1267 query I rowsort SELECT DISTINCT col2 * - 95 FROM tab0 AS cor0 ---- -3135 -7790 -95 query I rowsort SELECT ALL - + col2 + + ( col2 ) + - col2 AS col1 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT - - col0 + 23 AS col0 FROM tab0 AS cor0 ---- 112 47 58 query I rowsort SELECT ALL - tab2.col1 * col2 * + col0 FROM tab2 ---- -119652 -51034 -5859 onlyif mysql # use DIV operator for integer division query I rowsort label-4962 SELECT + col1 DIV - col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4962 SELECT + col1 / - col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-4963 SELECT col0 DIV col0 col1 FROM tab2 cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4963 SELECT col0 / col0 col1 FROM tab2 cor0 ---- 1 1 1 query I rowsort SELECT + + col0 * col1 + + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT ALL col1 + + 30 AS col1 FROM tab0 AS cor0 ---- 116 121 127 query I rowsort SELECT ALL ( - tab0.col2 ) AS col2 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT col1 + + 63 AS col1 FROM tab2 AS cor0 ---- 122 80 94 query I rowsort SELECT ( col2 ) * col2 AS col2 FROM tab0 AS cor0 ---- 1 1089 6724 onlyif mysql # use DIV operator for integer division query I rowsort label-4969 SELECT ( col1 ) DIV - col1 AS col0 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4969 SELECT ( col1 ) / - col1 AS col0 FROM tab0 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-4970 SELECT + - col2 DIV - col0 AS col2 FROM tab2 AS cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-4970 SELECT + - col2 / - col0 AS col2 FROM tab2 AS cor0 ---- 0 0 3 query I rowsort SELECT + + 15 FROM tab2 cor0 ---- 15 15 15 query I rowsort SELECT DISTINCT + ( col0 * col0 ) FROM tab0 ---- 1225 576 7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 78 + col0 col1 FROM tab2 ---- 156 157 85 query I rowsort SELECT + tab2.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT - col1 + + col0 * + col1 * + cor0.col2 FROM tab2 AS cor0 ---- 119593 51017 5828 query I rowsort SELECT - col0 * + tab1.col2 AS col2 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT DISTINCT 96 FROM tab2, tab1 cor0 ---- 96 query I rowsort SELECT col0 + - ( + col2 ) FROM tab2 ---- -20 41 52 query I rowsort SELECT DISTINCT - 37 AS col2 FROM tab1 ---- -37 query I rowsort SELECT - col0 + col1 + + tab0.col0 AS col1 FROM tab0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4982 SELECT - - CAST( NULL AS SIGNED ) * col2 - 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-4982 SELECT - - CAST ( NULL AS INTEGER ) * col2 - col1 col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 10 * col1 + col2 AS col1 FROM tab1 AS cor0 ---- 157 226 314 query I rowsort SELECT ALL + - col2 * col2 AS col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT + 62 FROM tab2, tab2 cor0 ---- 9 values hashing to 51dd2771d516ceb935483eded78a5fa0 query I rowsort SELECT ALL col0 + + col0 + col2 FROM tab0 ---- 260 71 81 query I rowsort SELECT + 34 FROM tab2, tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 col1 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT ALL 89 * col1 + + col0 FROM tab0 AS cor0 ---- 7678 8188 8668 query I rowsort SELECT 27 + cor0.col0 * ( col1 + + col0 ) AS col2 FROM tab1 AS cor0 ---- 114 4763 7467 query I rowsort SELECT ALL + tab0.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 col1 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT - - cor0.col1 + - col2 * col0 AS col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT ALL + col1 + + col0 * - ( 94 ) AS col0 FROM tab1 AS cor0 ---- -256 -6006 -7507 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4995 SELECT DISTINCT - CAST( 11 AS SIGNED ) FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- -11 skipif mysql # not compatible query I rowsort label-4995 SELECT DISTINCT - CAST ( 11 AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- -11 query I rowsort SELECT ALL + cor0.col0 + + col2 * col2 FROM tab0 cor0 ---- 1113 36 6813 query I rowsort SELECT - col2 * col0 * 13 FROM tab0 AS cor0 ---- -10296 -455 -94874 query I rowsort SELECT + cor0.col0 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a onlyif mysql # use DIV operator for integer division query I rowsort label-4999 SELECT DISTINCT + + col1 + col0 * col1 + + col1 DIV - col2 AS col1 FROM tab0 cor0 ---- 2148 3395 8189 skipif mysql # not compatible query I rowsort label-4999 SELECT DISTINCT + + col1 + col0 * col1 + + col1 / - col2 AS col1 FROM tab0 cor0 ---- 2148 3395 8189 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 33 - - col0 * + col2 col1 FROM tab0 AS cor0 ---- 68 7331 825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5001 SELECT ALL CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5001 SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - 34 * 85 + + col2 * + col0 * - col0 FROM tab0 AS cor0 ---- -21898 -4115 -652412 query I rowsort SELECT - col0 + - 25 FROM tab0 cor0 ---- -114 -49 -60 query I rowsort SELECT DISTINCT cor0.col1 * col2 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL - 78 + col0 + col2 AS col2 FROM tab0 AS cor0 ---- -21 -42 93 query I rowsort SELECT DISTINCT + ( ( - cor0.col1 ) ) AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-5007 SELECT ALL + col1 * ( - col2 ) DIV 43 FROM tab0 AS cor0 ---- -173 -2 -66 skipif mysql # not compatible query I rowsort label-5007 SELECT ALL + col1 * ( - col2 ) / 43 FROM tab0 AS cor0 ---- -173 -2 -66 query I rowsort SELECT ALL col1 * + col1 + col1 AS col0 FROM tab2 AS cor0 ---- 306 3540 992 onlyif mysql # use DIV operator for integer division query I rowsort label-5009 SELECT - + ( + 79 ) DIV - col0 + - cor0.col2 * + 43 * col1 AS col1 FROM tab0 AS cor0 ---- -122031 -320866 -4169 skipif mysql # not compatible query I rowsort label-5009 SELECT - + ( + 79 ) / - col0 + - cor0.col2 * + 43 * col1 AS col1 FROM tab0 AS cor0 ---- -122031 -320866 -4169 query I rowsort SELECT DISTINCT + + col0 + cor0.col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL - + col0 + col0 * - cor0.col1 FROM tab0 AS cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-5012 SELECT 82 DIV col0 + - col2 AS col1 FROM tab1 AS cor0 ---- -27 -56 -95 skipif mysql # not compatible query I rowsort label-5012 SELECT 82 / col0 + - col2 AS col1 FROM tab1 AS cor0 ---- -27 -56 -95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * + col2 * ( col2 ) - col2 col2 FROM tab2 ---- 22572 24510 39858 query I rowsort SELECT col0 * - 7 - ( col2 ) AS col1 FROM tab2 ---- -572 -591 -76 onlyif mysql # use DIV operator for integer division query I rowsort label-5015 SELECT DISTINCT col0 DIV 55 - - tab2.col2 col0 FROM tab2 ---- 27 39 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5015 SELECT DISTINCT col0 / 55 - - tab2.col2 col0 FROM tab2 ---- 27 39 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5016 SELECT CAST( NULL AS SIGNED ) + col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5016 SELECT CAST ( NULL AS INTEGER ) + col2 FROM tab2 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5017 SELECT - tab0.col2 DIV col0 FROM tab0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-5017 SELECT - tab0.col2 / col0 FROM tab0 ---- -1 0 0 query I rowsort SELECT tab2.col0 * 49 FROM tab2 ---- 343 3822 3871 query I rowsort SELECT ALL + - ( - 88 ) FROM tab2 cor0 ---- 88 88 88 query I rowsort SELECT cor0.col0 * + ( col0 ) FROM tab0 AS cor0 ---- 1225 576 7921 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0 cor2 ---- 972 values hashing to 63ccb67e72ebac679a0221202c067b9e query I rowsort SELECT 76 * ( col1 + 77 ) AS col2 FROM tab0 ---- 12388 12768 13224 query I rowsort SELECT DISTINCT - 1 + + col1 * - col0 AS col1 FROM tab1 AS cor0 ---- -1041 -641 -79 query I rowsort SELECT DISTINCT + - 77 FROM tab2 AS cor0 ---- -77 query I rowsort SELECT col1 * col2 * - col0 AS col2 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT ALL - cor0.col2 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT DISTINCT - + cor0.col1 * + col0 + col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT DISTINCT - + ( - col2 ) + col2 FROM tab1 AS cor0 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-5029 SELECT 70 * col1 + - col2 DIV 45 AS col0 FROM tab0 AS cor0 ---- 6020 6369 6790 skipif mysql # not compatible query I rowsort label-5029 SELECT 70 * col1 + - col2 / 45 AS col0 FROM tab0 AS cor0 ---- 6020 6369 6790 query I rowsort SELECT ALL - ( + col1 ) + + tab0.col0 FROM tab0 ---- -2 -62 -62 query I rowsort SELECT cor0.col1 - col0 * col2 * col0 FROM tab2 AS cor0 ---- -1292 -158125 -237141 query I rowsort SELECT - col1 * cor0.col1 + - col2 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT col2 + - col1 AS col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT 91 AS col0 FROM tab2 ---- 91 91 91 query I rowsort SELECT DISTINCT - 71 * - col2 + - col1 AS col0 FROM tab1 ---- 3808 4037 6803 query I rowsort SELECT DISTINCT + 55 * + col1 + + tab1.col2 FROM tab1 ---- 1484 607 811 query I rowsort SELECT col1 + - col0 * col1 AS col1 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT - 18 AS col0 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e onlyif mysql # use DIV operator for integer division query I rowsort label-5039 SELECT DISTINCT - + col1 DIV + col0 FROM tab1 AS cor0 ---- -8 0 skipif mysql # not compatible query I rowsort label-5039 SELECT DISTINCT - + col1 / + col0 FROM tab1 AS cor0 ---- -8 0 query I rowsort SELECT - + cor0.col2 + + 96 * col0 AS col0 FROM tab0 AS cor0 ---- 2271 3359 8462 query I rowsort SELECT cor0.col0 * - 30 FROM tab1 AS cor0 ---- -1920 -2400 -90 query I rowsort SELECT - col0 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-5043 SELECT + + col1 DIV col2 FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5043 SELECT + + col1 / col2 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col0 * cor0.col1 FROM tab0 cor0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - cor0.col1 * cor0.col1 col2 FROM tab1 AS cor0 ---- -100 -169 -676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5046 SELECT ALL - - tab2.col1 / CAST( NULL AS SIGNED ) + 33 AS col2 FROM tab0, tab1, tab1 AS cor0, tab2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif mysql # not compatible query I rowsort label-5046 SELECT ALL - - tab2.col1 / CAST ( NULL AS INTEGER ) + 33 AS col2 FROM tab0, tab1, tab1 AS cor0, tab2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c query I rowsort SELECT DISTINCT 38 * col2 AS col2 FROM tab2 ---- 1026 1444 988 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5048 SELECT - col2 + col2 * CAST( col2 AS SIGNED ) AS col1 FROM tab0 ---- 0 1056 6642 skipif mysql # not compatible query I rowsort label-5048 SELECT - col2 + col2 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 ---- 0 1056 6642 query I rowsort SELECT + col0 + col1 * + 5 FROM tab2 cor0 ---- 162 164 373 query I rowsort SELECT DISTINCT + col1 + 39 FROM tab1 AS cor0 ---- 49 52 65 query I rowsort SELECT ALL - + col0 * + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -49 -6084 -6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * 74 + + col2 - col0 col2 FROM tab0 AS cor0 ---- 2451 40 6061 query I rowsort SELECT DISTINCT - + col0 + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT ALL - cor0.col1 + + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT 26 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to ede8226bb7e602e221f9d98345b4da37 query I rowsort SELECT DISTINCT col1 * + col0 * col0 AS col1 FROM tab1 ---- 234 40960 83200 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1, tab1 AS cor2 ---- 972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col2 col2 FROM tab0, tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT 20 AS col1 FROM tab2 ---- 20 20 20 onlyif mysql # use DIV operator for integer division query I rowsort label-5060 SELECT DISTINCT col0 DIV + col2 AS col2 FROM tab0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-5060 SELECT DISTINCT col0 / + col2 AS col2 FROM tab0 ---- 0 1 35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - col2 col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + - col1 * + col1 * col2 - col2 FROM tab1 AS cor0 ---- -16320 -36558 -5757 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col2 * + col2 - col2 col1 FROM tab0 AS cor0 ---- -1122 -2 -6806 query I rowsort SELECT + col0 * - cor0.col0 + col2 AS col1 FROM tab0 AS cor0 ---- -1224 -543 -7839 query I rowsort SELECT col1 + 97 + + 23 FROM tab1 ---- 130 133 146 query I rowsort SELECT - col2 + col0 * col2 FROM tab2 AS cor0 ---- 162 2002 2964 onlyif mysql # use DIV operator for integer division query I rowsort label-5067 SELECT col2 DIV + col2 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-5067 SELECT col2 / + col2 FROM tab0 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * col2 col1 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT ALL 83 * tab0.col2 AS col0 FROM tab0 ---- 2739 6806 83 query I rowsort SELECT + + cor0.col0 * - 67 AS col0 FROM tab1 cor0 ---- -201 -4288 -5360 query I rowsort SELECT ( - ( - col0 ) ) AS col1 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL - - cor0.col1 + - col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + - 58 * 26 AS col0 FROM tab2 AS cor0 ---- -1508 -1508 -1508 query I rowsort SELECT ALL + col1 + + 10 * col1 FROM tab0 cor0 ---- 1001 1067 946 query I rowsort SELECT col0 * - 32 + col0 FROM tab2 cor0 ---- -217 -2418 -2449 onlyif mysql # use DIV operator for integer division query I rowsort label-5076 SELECT DISTINCT 34 DIV + ( col1 + - col0 ) FROM tab0 AS cor0 ---- 0 17 skipif mysql # not compatible query I rowsort label-5076 SELECT DISTINCT 34 / + ( col1 + - col0 ) FROM tab0 AS cor0 ---- 0 17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5077 SELECT CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-5077 SELECT CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 26 27 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5078 SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-5078 SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT col0 * 32 FROM tab2 AS cor0 ---- 224 2496 2528 query I rowsort SELECT - 73 + + col1 * - col2 * - col0 AS col2 FROM tab0 AS cor0 ---- 3322 664045 68039 query I rowsort SELECT ALL 38 + + col1 FROM tab2 AS cor0 ---- 55 69 97 query I rowsort SELECT + - col2 * col1 + + col0 AS col1 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT DISTINCT col2 + col0 AS col2 FROM tab0 ---- 171 36 57 query I rowsort SELECT ( col2 ) + - col2 * + col1 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT + col2 + - ( col2 ) * - col2 AS col0 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT - - col1 + - col0 AS col2 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT col2 * + ( + col0 ) FROM tab2 ---- 189 2028 3002 query I rowsort SELECT ALL - col2 * - col0 + + ( - col2 ) FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT ALL - 48 - col1 * + ( + 29 ) AS col2 FROM tab2 AS cor0 ---- -1759 -541 -947 query I rowsort SELECT - 91 * cor0.col1 AS col0 FROM tab2 cor0 ---- -1547 -2821 -5369 query I rowsort SELECT + + 39 * col2 FROM tab1 cor0 ---- 2106 2223 3744 query I rowsort SELECT ALL - ( 34 + col0 ) * + 58 FROM tab1 ---- -2146 -5684 -6612 query I rowsort SELECT DISTINCT 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-5094 SELECT DISTINCT + + col0 + + col2 + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 185 256 60 skipif mysql # not compatible query I rowsort label-5094 SELECT DISTINCT + + col0 + + col2 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 185 256 60 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 - col0 - col2 AS col0 FROM tab2 AS cor0 ---- -104 -117 -34 onlyif mysql # use DIV operator for integer division query I rowsort label-5097 SELECT col0 DIV col1 + ( - col1 ) FROM tab1 AS cor0 ---- -26 -4 -7 skipif mysql # not compatible query I rowsort label-5097 SELECT col0 / col1 + ( - col1 ) FROM tab1 AS cor0 ---- -26 -4 -7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5098 SELECT ALL - CAST( - col2 AS SIGNED ) * - tab2.col1 FROM tab2 ---- -1534 -646 -837 skipif mysql # not compatible query I rowsort label-5098 SELECT ALL - CAST ( - col2 AS INTEGER ) * - tab2.col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + - 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- -51 query I rowsort SELECT - tab1.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT DISTINCT - + col1 * col2 + - ( col0 ) AS col1 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT col2 + + ( 72 ) * + col2 AS col1 FROM tab1 cor0 ---- 3942 4161 7008 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + - col2 * - 21 col0 FROM tab0 cor0 ---- -14 1633 669 query I rowsort SELECT + ( cor1.col1 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc onlyif mysql # use DIV operator for integer division query I rowsort label-5105 SELECT + + ( ( + col2 ) ) DIV 33 FROM tab0 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-5105 SELECT + + ( ( + col2 ) ) / 33 FROM tab0 AS cor0 ---- 0 1 2 query I rowsort SELECT DISTINCT 83 + 22 * col2 AS col2 FROM tab1 AS cor0 ---- 1271 1337 2195 query I rowsort SELECT ( 10 ) * tab1.col2 * + cor0.col0 + + 80 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 46f8a83df270990d8024874b990d68a0 query I rowsort SELECT ALL + tab1.col0 * + col1 AS col2 FROM tab1 ---- 1040 640 78 query I rowsort SELECT - 4 AS col0 FROM tab0, tab0 cor0 ---- 9 values hashing to 5784540a5af6ca2be84399d314acd2fd query I rowsort SELECT 1 + - 41 FROM tab1 AS cor0 ---- -40 -40 -40 query I rowsort SELECT + cor0.col2 + - col2 * - col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT + + col0 + + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5113 SELECT ( col1 ) * col1 + - CAST( + 45 AS SIGNED ) FROM tab1 AS cor0 ---- 124 55 631 skipif mysql # not compatible query I rowsort label-5113 SELECT ( col1 ) * col1 + - CAST ( + 45 AS INTEGER ) FROM tab1 AS cor0 ---- 124 55 631 query I rowsort SELECT - col0 - 24 FROM tab2 AS cor0 ---- -102 -103 -31 query I rowsort SELECT DISTINCT + col0 * ( + col2 ) + col1 * + col2 FROM tab1 AS cor0 ---- 1566 4218 8928 query I rowsort SELECT ALL + + cor1.col2 + 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to d4bf81351932dc67f1fff551c325de1b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5117 SELECT DISTINCT cor0.col2 * - CAST( NULL AS DECIMAL ) + - col1 * cor0.col2 col2 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5117 SELECT DISTINCT cor0.col2 * - CAST ( NULL AS REAL ) + - col1 * cor0.col2 col2 FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5118 SELECT col1 * 74 * col2 + col1 * CAST( tab0.col0 AS SIGNED ) FROM tab0 ---- 10573 212076 560287 skipif mysql # not compatible query I rowsort label-5118 SELECT col1 * 74 * col2 + col1 * CAST ( tab0.col0 AS INTEGER ) FROM tab0 ---- 10573 212076 560287 query I rowsort SELECT DISTINCT - col1 + + col2 * - col2 AS col1 FROM tab0 ---- -1175 -6815 -98 query I rowsort SELECT col2 + + 25 * col1 + col0 AS col0 FROM tab0 ---- 2207 2446 2461 query I rowsort SELECT + - col2 + - 59 FROM tab0 AS cor0 ---- -141 -60 -92 query I rowsort SELECT - col1 + cor0.col1 * - cor0.col2 + + col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT + col1 * 14 FROM tab0 AS cor0 ---- 1204 1274 1358 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * 98 col0 FROM tab1 AS cor0 ---- -294 -6272 -7840 query I rowsort SELECT - col2 * 97 * col1 + col1 FROM tab0 AS cor0 ---- -275200 -723723 -9312 query I rowsort SELECT DISTINCT - col2 + col0 * - col1 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT ALL col0 + + 87 AS col1 FROM tab2 ---- 165 166 94 query I rowsort SELECT DISTINCT - col2 * ( + col1 * - col2 ) FROM tab0 AS cor0 ---- 611884 93654 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5129 SELECT CAST( NULL AS SIGNED ) + + 34 FROM tab2, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-5129 SELECT CAST ( NULL AS INTEGER ) + + 34 FROM tab2, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT DISTINCT + col2 + + 89 * + col1 FROM tab1 AS cor0 ---- 1253 2368 947 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5131 SELECT + CAST( NULL AS SIGNED ) + + 0 * - col1 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5131 SELECT + CAST ( NULL AS INTEGER ) + + 0 * - col1 AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT - 80 - + 35 * col2 FROM tab1 ---- -1970 -2075 -3440 query I rowsort SELECT 38 - col1 FROM tab0 ---- -48 -53 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-5134 SELECT - col0 * - col0 + col0 DIV col1 FROM tab2 ---- 49 6085 6245 skipif mysql # not compatible query I rowsort label-5134 SELECT - col0 * - col0 + col0 / col1 FROM tab2 ---- 49 6085 6245 query I rowsort SELECT DISTINCT + 1 * 66 AS col2 FROM tab1 ---- 66 query I rowsort SELECT tab1.col2 - - tab1.col2 AS col2 FROM tab1 ---- 108 114 192 query I rowsort SELECT ALL - 3 FROM tab0 ---- -3 -3 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( + 5 ) col1 FROM tab1 ---- 5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 * + col1 col0 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT 27 AS col0 FROM tab0 AS cor0 ---- 27 query I rowsort SELECT - - 85 * col2 * col0 FROM tab0 cor0 ---- 2975 620330 67320 query I rowsort SELECT DISTINCT + + col1 * col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT col2 * col1 * ( col2 ) FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT ALL - 31 + - col1 AS col2 FROM tab1 AS cor0 ---- -41 -44 -57 query I rowsort SELECT ALL - ( 97 + + col1 ) AS col2 FROM tab1 ---- -107 -110 -123 query I rowsort SELECT + + col0 * + col1 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT ALL - 23 AS col2 FROM tab2 AS cor0 ---- -23 -23 -23 query I rowsort SELECT cor0.col2 * + col0 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT - ( + col2 ) * + 27 FROM tab0 AS cor0 ---- -2214 -27 -891 query I rowsort SELECT 27 * col2 FROM tab1 AS cor0 ---- 1458 1539 2592 query I rowsort SELECT ALL - col1 + col2 * - ( col2 ) * + col1 FROM tab0 AS cor0 ---- -194 -611975 -93740 onlyif mysql # use DIV operator for integer division query I rowsort label-5152 SELECT ALL 58 DIV cor0.col1 FROM tab1 AS cor0 ---- 2 4 5 skipif mysql # not compatible query I rowsort label-5152 SELECT ALL 58 / cor0.col1 FROM tab1 AS cor0 ---- 2 4 5 query I rowsort SELECT DISTINCT + - col2 + col2 AS col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + ( - 70 ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- -70 query I rowsort SELECT + cor0.col1 * 16 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 50352bca2aa89ce0beaab9448c8136c2 query I rowsort SELECT ALL + 43 * col0 + col1 FROM tab1 AS cor0 ---- 155 2762 3453 query I rowsort SELECT DISTINCT - + col1 * - col2 + 43 * + col0 FROM tab2 AS cor0 ---- 1138 4043 4888 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col0 * + col1 col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT 46 * + col2 + col0 FROM tab2 cor0 ---- 1249 1274 1827 query I rowsort SELECT DISTINCT col1 + - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5161 SELECT ALL - cor0.col1 DIV - ( col0 ) + - cor0.col1 AS col0 FROM tab0 cor0 ---- -83 -90 -95 skipif mysql # not compatible query I rowsort label-5161 SELECT ALL - cor0.col1 / - ( col0 ) + - cor0.col1 AS col0 FROM tab0 cor0 ---- -83 -90 -95 query I rowsort SELECT - + col1 * 54 AS col0 FROM tab2 AS cor0 ---- -1674 -3186 -918 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col0 + col2 * + cor0.col0 + cor0.col0 col1 FROM tab1 AS cor0 ---- 168 3776 7840 query I rowsort SELECT + col2 * 45 AS col1 FROM tab0 AS cor0 ---- 1485 3690 45 query I rowsort SELECT ALL - col1 + - 42 * col1 AS col2 FROM tab1 AS cor0 ---- -1118 -430 -559 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5166 SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5166 SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col2 * - col1 + 93 AS col0 FROM tab1 AS cor0 ---- -1155 -1311 -477 query I rowsort SELECT 39 + + col0 FROM tab2 ---- 117 118 46 query I rowsort SELECT DISTINCT 44 AS col0 FROM tab1 ---- 44 query I rowsort SELECT + + col1 * - cor0.col2 AS col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT + 88 AS col0 FROM tab0 ---- 88 88 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5172 SELECT ( + col0 ) * + col0 * + CAST( NULL AS DECIMAL ) + + 99 + + col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5172 SELECT ( + col0 ) * + col0 * + CAST ( NULL AS REAL ) + + 99 + + col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 12 AS col1 FROM tab2 AS cor0 ---- 12 12 12 query I rowsort SELECT - + ( - ( col0 ) ) FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT + - 52 + col1 AS col0 FROM tab0 AS cor0 ---- 34 39 45 query I rowsort SELECT - + col1 * - cor0.col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT ALL ( col2 ) + + col2 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT DISTINCT - col1 * - col0 AS col2 FROM tab1 cor0 ---- 1040 640 78 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 + 96 * col0 FROM tab2 AS cor0 ---- 672 7488 7584 query I rowsort SELECT ALL - 97 + - ( - cor0.col1 ) FROM tab2 AS cor0 ---- -38 -66 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT - 68 + + 39 AS col0 FROM tab2 cor0 ---- -29 -29 -29 query I rowsort SELECT ALL + 71 * 55 AS col2 FROM tab1 cor0 ---- 3905 3905 3905 query I rowsort SELECT ALL + col2 + col0 AS col2 FROM tab0 ---- 171 36 57 query I rowsort SELECT ALL - 62 * col1 * - col1 + + col1 AS col2 FROM tab2 AS cor0 ---- 17935 215881 59613 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5187 SELECT ALL + + CAST( NULL AS SIGNED ) * + col2 + - col0 * + col1 - + 9 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5187 SELECT ALL + + CAST ( NULL AS INTEGER ) * + col2 + - col0 * + col1 - + 9 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 - - col1 * + col1 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT + col2 * - col2 + col1 FROM tab2 cor0 ---- -1427 -617 -698 query I rowsort SELECT ALL + - ( + ( col0 ) ) FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT DISTINCT 82 - col0 FROM tab2 AS cor0 ---- 3 4 75 skipif mysql # not compatible query I rowsort SELECT - col0 / ( - col2 ) + + CAST ( - ( - col1 ) AS REAL ) AS col0 FROM tab1 AS cor0 ---- 11 13 26 query I rowsort SELECT - col1 - col1 * - tab0.col0 AS col1 FROM tab0 ---- 1978 3298 8008 query I rowsort SELECT + 35 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5195 SELECT ALL CAST( col0 * col0 AS SIGNED ) + ( - col2 ) FROM tab1 ---- -45 4039 6304 skipif mysql # not compatible query I rowsort label-5195 SELECT ALL CAST ( col0 * col0 AS INTEGER ) + ( - col2 ) FROM tab1 ---- -45 4039 6304 onlyif mysql # use DIV operator for integer division query I rowsort label-5196 SELECT DISTINCT + - 46 DIV col2 + 25 * 0 AS col2 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5196 SELECT DISTINCT + - 46 / col2 + 25 * 0 AS col2 FROM tab1 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + col1 ) * col2 col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT col0 * 45 * - col1 FROM tab2 ---- -207090 -60435 -9765 query I rowsort SELECT ALL col0 * - col1 * col1 AS col1 FROM tab2 ---- -22831 -271518 -6727 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2 ---- 3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2 ---- 3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c onlyif mysql # use DIV operator for integer division query I rowsort label-5202 SELECT + col1 + ( col0 ) DIV - col1 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-5202 SELECT + col1 + ( col0 ) / - col1 FROM tab0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5203 SELECT - + CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5203 SELECT - + CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5204 SELECT - cor0.col0 * col2 DIV col2 AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-5204 SELECT - cor0.col0 * col2 / col2 AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + + 60 col2 FROM tab1 ---- 114 117 156 query I rowsort SELECT DISTINCT - + cor1.col1 * cor0.col0 + cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 8ac79680d916c580d2035ecbc544774f query I rowsort SELECT ALL + 85 FROM tab1 ---- 85 85 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 col1 FROM tab1 cor0 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 col2 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT 13 * ( - col0 ) FROM tab1 AS cor0 ---- -1040 -39 -832 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5211 SELECT CAST( - 36 AS SIGNED ) * + col2 col0 FROM tab0 AS cor0 ---- -1188 -2952 -36 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5211 SELECT CAST ( - 36 AS INTEGER ) * + col2 col0 FROM tab0 AS cor0 ---- -1188 -2952 -36 query I rowsort SELECT + 91 AS col0 FROM tab0 AS cor0 ---- 91 91 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5213 SELECT ALL CAST( + 28 AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 8a39580587f2831072e93c319ff94bbf skipif mysql # not compatible query I rowsort label-5213 SELECT ALL CAST ( + 28 AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 8a39580587f2831072e93c319ff94bbf query I rowsort SELECT + 6 * 31 FROM tab0 cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 7c201b64e0e5870bf1ece59e22cba4f7 query I rowsort SELECT + 93 * col1 * col0 AS col0 FROM tab2 ---- 124899 20181 427986 query I rowsort SELECT ALL - col1 * - col1 + col1 * 69 FROM tab2 AS cor0 ---- 1462 3100 7552 query I rowsort SELECT ALL + 0 + col2 AS col1 FROM tab2 AS cor0 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-5218 SELECT 51 DIV col2 + col2 * + col0 AS col1 FROM tab0 AS cor0 ---- 7298 793 86 skipif mysql # not compatible query I rowsort label-5218 SELECT 51 / col2 + col2 * + col0 AS col1 FROM tab0 AS cor0 ---- 7298 793 86 query I rowsort SELECT DISTINCT - 4 + cor0.col2 FROM tab0 AS cor0 ---- -3 29 78 query I rowsort SELECT - col2 - - col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL + col0 + col0 FROM tab0 cor0 ---- 178 48 70 query I rowsort SELECT - 7 AS col1 FROM tab0 AS cor0 ---- -7 -7 -7 query I rowsort SELECT DISTINCT + 95 * col1 AS col1 FROM tab2 AS cor0 ---- 1615 2945 5605 onlyif mysql # use DIV operator for integer division query I rowsort label-5224 SELECT ALL - + col2 DIV + cor0.col1 + 60 AS col1 FROM tab2 AS cor0 ---- 58 60 60 skipif mysql # not compatible query I rowsort label-5224 SELECT ALL - + col2 / + cor0.col1 + 60 AS col1 FROM tab2 AS cor0 ---- 58 60 60 query I rowsort SELECT col2 * col1 + 4 AS col0 FROM tab0 AS cor0 ---- 101 2842 7466 query I rowsort SELECT DISTINCT cor0.col2 + + col2 FROM tab1 AS cor0 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-5227 SELECT + cor0.col0 + 26 DIV ( col0 ) FROM tab1 cor0 ---- 11 64 80 skipif mysql # not compatible query I rowsort label-5227 SELECT + cor0.col0 + 26 / ( col0 ) FROM tab1 cor0 ---- 11 64 80 query I rowsort SELECT - col1 + - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT DISTINCT + - cor0.col2 + col0 + 42 AS col2 FROM tab2 AS cor0 ---- 22 83 94 query I rowsort SELECT - - col1 * - col0 + - 49 AS col1 FROM tab1 cor0 ---- -1089 -127 -689 query I rowsort SELECT + col0 * - col0 AS col1 FROM tab1 cor0 ---- -4096 -6400 -9 query I rowsort SELECT - + col0 - - 57 * - 82 FROM tab2 AS cor0 ---- -4681 -4752 -4753 query I rowsort SELECT - col2 + + col1 AS col1 FROM tab0 ---- 53 9 96 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3 ---- 3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29 query I rowsort SELECT DISTINCT - col1 * col2 + - 94 FROM tab2 AS cor0 ---- -1628 -740 -931 query I rowsort SELECT ALL + cor0.col2 * - ( 62 ) * col1 - - 20 AS col0 FROM tab2 AS cor0 ---- -40032 -51874 -95088 query I rowsort SELECT ALL + col1 - 4 * + 63 AS col1 FROM tab0 cor0 ---- -155 -161 -166 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * - 14 col2 FROM tab1 AS cor0 ---- -1344 -756 -798 query I rowsort SELECT - col1 - + ( - 27 ) FROM tab2 AS cor0 ---- -32 -4 10 query I rowsort SELECT - col1 + 20 AS col0 FROM tab0 AS cor0 ---- -66 -71 -77 query I rowsort SELECT - 4 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5784540a5af6ca2be84399d314acd2fd onlyif mysql # use DIV operator for integer division query I rowsort label-5242 SELECT + 9 DIV 28 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5242 SELECT + 9 / 28 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - + 95 AS col0 FROM tab2 AS cor0 ---- -95 query I rowsort SELECT ALL + 58 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to ef6e63aeed2581a168f07646d258f666 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5245 SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-5245 SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * - cor0.col0 col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT 60 FROM tab2, tab1 AS cor0 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab0.col2 col0 FROM tab0, tab2 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT col1 + - ( 59 ) FROM tab1 ---- -33 -46 -49 query I rowsort SELECT - 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 46 + - cor0.col2 * 7 col2 FROM tab1 AS cor0 ---- -332 -353 -626 query I rowsort SELECT col1 + - col2 * 40 * + 49 FROM tab1 cor0 ---- -105814 -111710 -188147 query I rowsort SELECT ALL ( tab2.col2 ) AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT ALL 11 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2 ---- 81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359 query I rowsort SELECT col0 * - col1 AS col2 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT ALL + col0 + 71 + + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 100 145 164 query I rowsort SELECT 54 + - col1 FROM tab0 AS cor0 ---- -32 -37 -43 query I rowsort SELECT - col2 * - col2 + 93 * + ( - col0 ) + - 57 AS col0 FROM tab0 AS cor0 ---- -1200 -1610 -3311 onlyif mysql # use DIV operator for integer division query I rowsort label-5260 SELECT + 12 DIV col2 AS col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5260 SELECT + 12 / col2 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT - cor0.col0 * 34 FROM tab0 AS cor0 ---- -1190 -3026 -816 query I rowsort SELECT ALL + + cor0.col1 + 1 + col0 * - 19 FROM tab0 AS cor0 ---- -1599 -369 -567 query I rowsort SELECT ALL - - col2 * 63 + + cor0.col1 + - 70 FROM tab1 cor0 ---- 3358 3531 5991 query I rowsort SELECT DISTINCT - + col0 * col2 - col0 FROM tab2 AS cor0 ---- -196 -2106 -3081 query I rowsort SELECT ALL + col1 + ( col2 ) FROM tab2 AS cor0 ---- 55 58 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 44 + col2 col2 FROM tab2 AS cor0 ---- 70 71 82 query I rowsort SELECT - + ( - 57 ) + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 121 137 60 query I rowsort SELECT DISTINCT ( - col1 ) * - col0 AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT 56 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 9c4523312174730bbc525b9977aa99fa query I rowsort SELECT + col2 * tab0.col0 + tab0.col0 AS col1 FROM tab0 ---- 70 7387 816 query I rowsort SELECT - col2 + - col2 * - cor0.col0 FROM tab0 AS cor0 ---- 34 7216 759 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 * col0 col1 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT ( 93 ) + col1 * col1 FROM tab2 AS cor0 ---- 1054 3574 382 query I rowsort SELECT DISTINCT 86 + col1 * col1 AS col0 FROM tab0 AS cor0 ---- 7482 8367 9495 query I rowsort SELECT 26 AS col0 FROM tab2 AS cor0 ---- 26 26 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + ( 92 ) col1 FROM tab0 ---- 116 127 181 onlyif mysql # use DIV operator for integer division query I rowsort label-5277 SELECT col1 DIV + col1 - ( - col1 + ( + 99 ) ) * col1 FROM tab2 ---- -1393 -2107 -2359 skipif mysql # not compatible query I rowsort label-5277 SELECT col1 / + col1 - ( - col1 + ( + 99 ) ) * col1 FROM tab2 ---- -1393 -2107 -2359 query I rowsort SELECT ALL + 54 * + col0 FROM tab0 AS cor0 ---- 1296 1890 4806 query I rowsort SELECT - - 3 + - col2 * col1 AS col1 FROM tab1 cor0 ---- -1245 -1401 -567 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * 82 + col1 col0 FROM tab1 AS cor0 ---- -4402 -4664 -7859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col0 + + col2 * col2 + col1 col2 FROM tab2 AS cor0 ---- 1540 767 813 query I rowsort SELECT - 1 FROM tab2 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( - col0 AS REAL ) FROM tab0 cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-5284 SELECT DISTINCT cor0.col2 DIV col0 + 78 + col0 AS col1 FROM tab1 AS cor0 ---- 142 159 99 skipif mysql # not compatible query I rowsort label-5284 SELECT DISTINCT cor0.col2 / col0 + 78 + col0 AS col1 FROM tab1 AS cor0 ---- 142 159 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 74 col1 FROM tab0 AS cor0 ---- 74 74 74 query I rowsort SELECT DISTINCT + col1 + col2 * cor0.col1 + - cor0.col1 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5287 SELECT ALL - + 42 * col2 + - CAST( + col1 AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0 ---- -1558 -236 -3626 skipif mysql # not compatible query I rowsort label-5287 SELECT ALL - + 42 * col2 + - CAST ( + col1 AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0 ---- -1558 -236 -3626 onlyif mysql # use DIV operator for integer division query I rowsort label-5288 SELECT ALL col2 + cor0.col1 DIV - col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-5288 SELECT ALL col2 + cor0.col1 / - col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT 82 FROM tab2 ---- 82 query I rowsort SELECT 52 + tab2.col0 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to decb63d48a6a9ce513d93595c6a028ea query I rowsort SELECT DISTINCT 70 AS col2 FROM tab1 ---- 70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5292 SELECT + col2 + + col0 + col1 * col2 * - CAST( ( + col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -10865 -25913 -90402 skipif mysql # not compatible query I rowsort label-5292 SELECT + col2 + + col0 + col1 * col2 * - CAST ( ( + col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -10865 -25913 -90402 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5293 SELECT DISTINCT col0 / CAST( NULL AS DECIMAL ) FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5293 SELECT DISTINCT col0 / CAST ( NULL AS REAL ) FROM tab2 cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5294 SELECT col0 * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-5294 SELECT col0 * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + cor0.col2 * + col0 AS col2 FROM tab0 AS cor0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab1.col2 + + col2 * ( col0 ) col2 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT - col2 - + col1 * col1 AS col2 FROM tab1 ---- -157 -265 -730 query I rowsort SELECT tab2.col1 * + col0 AS col2 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT DISTINCT col2 + 24 AS col2 FROM tab0 ---- 106 25 57 query I rowsort SELECT col0 + + 26 AS col2 FROM tab0 ---- 115 50 61 query I rowsort SELECT + col2 - + col1 AS col2 FROM tab0 ---- -53 -9 -96 query I rowsort SELECT col2 + - 60 AS col2 FROM tab0 AS cor0 ---- -27 -59 22 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 * - 99 col2 FROM tab2 AS cor0 ---- -1683 -3069 -5841 query I rowsort SELECT + - col1 + + col0 * - ( col0 ) AS col0 FROM tab0 cor0 ---- -1322 -662 -8012 query I rowsort SELECT + 94 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 cor2 ---- 243 values hashing to 5fc25b60fd90da23ba5e7be7e868d4d7 query I rowsort SELECT col0 * - col0 + - col1 FROM tab1 ---- -35 -4106 -6413 query I rowsort SELECT ALL - col2 * col0 + - 16 FROM tab0 ---- -51 -7314 -808 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - 21 + 55 col2 FROM tab1 ---- -1289 -1625 -8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor1.col2 col1 FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1 ---- 54 57 96 query I rowsort SELECT - + col0 + + col1 * + col0 * col1 FROM tab1 AS cor0 ---- 13440 2025 6336 skipif mysql # not compatible query I rowsort SELECT + + CAST ( - col0 AS REAL ) + + col1 AS col2 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT 15 + col0 FROM tab2 AS cor0 ---- 22 93 94 query I rowsort SELECT ALL - + col2 - - 16 AS col2 FROM tab2 AS cor0 ---- -10 -11 -22 query I rowsort SELECT + 57 * - ( col1 ) AS col1 FROM tab2 AS cor0 ---- -1767 -3363 -969 query I rowsort SELECT ALL + col1 - col0 AS col2 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT ALL + 42 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5317 SELECT DISTINCT - CAST( 43 AS SIGNED ) FROM tab2 AS cor0 ---- -43 skipif mysql # not compatible query I rowsort label-5317 SELECT DISTINCT - CAST ( 43 AS INTEGER ) FROM tab2 AS cor0 ---- -43 query I rowsort SELECT DISTINCT col1 * 27 * col0 FROM tab2 AS cor0 ---- 124254 36261 5859 query I rowsort SELECT DISTINCT 51 + - tab0.col2 FROM tab0 ---- -31 18 50 query I rowsort SELECT ALL + tab2.col1 + col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT 96 + col1 + col1 AS col1 FROM tab1 ---- 116 122 148 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 71 * col0 col2 FROM tab1 AS cor0 ---- -213 -4544 -5680 query I rowsort SELECT ALL 89 * - col0 * - col0 AS col0 FROM tab0 AS cor0 ---- 109025 51264 704969 query I rowsort SELECT DISTINCT + 73 * - col1 + col2 * + col0 FROM tab0 AS cor0 ---- -5486 -7046 655 query I rowsort SELECT DISTINCT - 7 + - col1 + - 98 * col1 AS col2 FROM tab0 ---- -8521 -9016 -9610 query I rowsort SELECT ALL - col0 + + col1 * - 18 FROM tab1 AS cor0 ---- -244 -314 -471 query I rowsort SELECT ALL + col2 * + col0 + - col1 FROM tab1 AS cor0 ---- 136 3638 7667 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5328 SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5328 SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - - col0 * - ( - cor0.col2 ) FROM tab2 cor0 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 + + col1 col2 FROM tab1 AS cor0 ---- 109 67 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * 47 + + col0 col1 FROM tab2 AS cor0 ---- -322 -3588 -3634 query I rowsort SELECT ALL + + col1 + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT col2 * 79 + - col0 FROM tab1 AS cor0 ---- 4263 4439 7504 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5334 SELECT DISTINCT + col1 + + CAST( 46 AS SIGNED ) AS col0 FROM tab0 cor0 ---- 132 137 143 skipif mysql # not compatible query I rowsort label-5334 SELECT DISTINCT + col1 + + CAST ( 46 AS INTEGER ) AS col0 FROM tab0 cor0 ---- 132 137 143 query I rowsort SELECT + col1 * ( ( col1 ) ) + col0 FROM tab1 cor0 ---- 164 249 679 query I rowsort SELECT ALL - col1 * - 9 + 5 AS col0 FROM tab1 AS cor0 ---- 122 239 95 onlyif mysql # use DIV operator for integer division query I rowsort label-5337 SELECT ALL - - col1 + cor0.col2 DIV col0 AS col0 FROM tab2 AS cor0 ---- 17 34 59 skipif mysql # not compatible query I rowsort label-5337 SELECT ALL - - col1 + cor0.col2 / col0 AS col0 FROM tab2 AS cor0 ---- 17 34 59 query I rowsort SELECT col2 * - 26 AS col2 FROM tab1 cor0 ---- -1404 -1482 -2496 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5339 SELECT ALL - col0 + - CAST( - cor0.col2 AS SIGNED ) * - col1 FROM tab0 AS cor0 ---- -132 -2862 -7551 skipif mysql # not compatible query I rowsort label-5339 SELECT ALL - col0 + - CAST ( - cor0.col2 AS INTEGER ) * - col1 FROM tab0 AS cor0 ---- -132 -2862 -7551 onlyif mysql # use DIV operator for integer division query I rowsort label-5340 SELECT DISTINCT 2 DIV tab0.col1 AS col2 FROM tab0, tab2, tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5340 SELECT DISTINCT 2 / tab0.col1 AS col2 FROM tab0, tab2, tab2 AS cor0 ---- 0 query I rowsort SELECT ALL ( col1 ) + 72 FROM tab0 ---- 158 163 169 query I rowsort SELECT ALL col1 + + col1 + col2 FROM tab1 ---- 106 122 77 query I rowsort SELECT - col1 * 50 + ( col0 ) AS col0 FROM tab2 AS cor0 ---- -1543 -2872 -771 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5344 SELECT + + col0 / CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5344 SELECT + + col0 / CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5345 SELECT - col1 * - col1 + + col1 DIV - col0 FROM tab2 AS cor0 ---- 289 3481 957 skipif mysql # not compatible query I rowsort label-5345 SELECT - col1 * - col1 + + col1 / - col0 FROM tab2 AS cor0 ---- 289 3481 957 query I rowsort SELECT - col2 + - col0 * ( col1 ) AS col1 FROM tab0 cor0 ---- -2097 -3396 -8181 query I rowsort SELECT DISTINCT ( 29 ) FROM tab1 ---- 29 query I rowsort SELECT + 34 * + col2 + + 69 FROM tab2 AS cor0 ---- 1361 953 987 query I rowsort SELECT DISTINCT cor0.col0 + 49 * 80 AS col0 FROM tab2 cor0 ---- 3927 3998 3999 query I rowsort SELECT - col0 * 67 + col1 FROM tab0 AS cor0 ---- -1522 -2248 -5872 query I rowsort SELECT ALL cor0.col2 + col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT DISTINCT + cor0.col0 * - ( ( col1 ) ) AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5353 SELECT ALL + + col0 + + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5353 SELECT ALL + + col0 + + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 63 * + col0 AS col0 FROM tab0 ---- 1512 2205 5607 onlyif mysql # use DIV operator for integer division query I rowsort label-5355 SELECT ALL - col0 DIV col0 + - CAST( + col0 * col2 AS SIGNED ) AS col2 FROM tab0 ---- -36 -7299 -793 skipif mysql # not compatible query I rowsort label-5355 SELECT ALL - col0 / col0 + - CAST ( + col0 * col2 AS INTEGER ) AS col2 FROM tab0 ---- -36 -7299 -793 onlyif mysql # use DIV operator for integer division query I rowsort label-5356 SELECT - cor0.col0 DIV 76 + cor1.col1 * - 92 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to ca96445ade6255e91f8058fefb1bd462 skipif mysql # not compatible query I rowsort label-5356 SELECT - cor0.col0 / 76 + cor1.col1 * - 92 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to ca96445ade6255e91f8058fefb1bd462 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab1.col2 col2 FROM tab1 ---- 54 57 96 query I rowsort SELECT 1 * cor0.col0 + col1 * col0 FROM tab1 AS cor0 ---- 1120 704 81 onlyif mysql # use DIV operator for integer division query I rowsort label-5359 SELECT DISTINCT + col1 * col1 + col2 DIV - col0 col2 FROM tab2 ---- 289 3481 958 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5359 SELECT DISTINCT + col1 * col1 + col2 / - col0 col2 FROM tab2 ---- 289 3481 958 query I rowsort SELECT DISTINCT - col0 * ( - col0 ) + + tab2.col2 + - 98 * + col1 FROM tab2 ---- -2962 328 4613 query I rowsort SELECT ALL col1 + - col0 * + tab1.col0 + col0 FROM tab1 ---- -4022 -6307 20 query I rowsort SELECT 65 AS col2 FROM tab2 AS cor0 ---- 65 65 65 query I rowsort SELECT + 59 + - col2 FROM tab1 AS cor0 ---- -37 2 5 query I rowsort SELECT DISTINCT - col2 + tab2.col1 FROM tab2 ---- -21 33 4 query I rowsort SELECT DISTINCT - 71 FROM tab2, tab2 AS cor0 ---- -71 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5366 SELECT ALL + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5366 SELECT ALL + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - + ( - col1 ) * - col1 + col1 FROM tab2 AS cor0 ---- -272 -3422 -930 query I rowsort SELECT ( - col1 ) + - col1 FROM tab0 AS cor0 ---- -172 -182 -194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col1 * col2 col0 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT 40 + + col1 * col1 * + col2 FROM tab2 AS cor0 ---- 11022 25987 90546 onlyif mysql # use DIV operator for integer division query I rowsort label-5371 SELECT 8 - + col1 DIV + col1 AS col2 FROM tab2 AS cor0 ---- 7 7 7 skipif mysql # not compatible query I rowsort label-5371 SELECT 8 - + col1 / + col1 AS col2 FROM tab2 AS cor0 ---- 7 7 7 query I rowsort SELECT - 61 * + col2 + col0 AS col1 FROM tab0 AS cor0 ---- -1989 -26 -4913 query I rowsort SELECT DISTINCT 36 - col2 FROM tab2 ---- -2 10 9 query I rowsort SELECT DISTINCT + - cor0.col0 * - col1 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-5375 SELECT ALL - + cor0.col1 DIV + col2 AS col2 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-5375 SELECT ALL - + cor0.col1 / + col2 AS col2 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT DISTINCT 46 * + col1 * col0 FROM tab0 ---- 156170 372554 94944 query I rowsort SELECT ALL col2 * 86 * - tab1.col0 FROM tab1 ---- -13932 -313728 -660480 query I rowsort SELECT + 87 AS col2 FROM tab0, tab1 cor0 ---- 9 values hashing to fa0cdd86483844cda3bb806e032d5c64 query I rowsort SELECT 28 + col2 AS col0 FROM tab1 ---- 124 82 85 query I rowsort SELECT ALL col2 * col0 - + col0 * + col1 * - tab2.col2 FROM tab2 ---- 121680 54036 6048 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5381 SELECT + CAST( NULL AS SIGNED ) / + 4 AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5381 SELECT + CAST ( NULL AS INTEGER ) / + 4 AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + - 15 FROM tab1, tab2, tab2 AS cor0 ---- -15 onlyif mysql # use DIV operator for integer division query I rowsort label-5383 SELECT DISTINCT + - col1 DIV col1 FROM tab1 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-5383 SELECT DISTINCT + - col1 / col1 FROM tab1 AS cor0 ---- -1 query I rowsort SELECT + - col1 + + col0 AS col1 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT - 23 + - col2 - 33 * + col2 FROM tab2 AS cor0 ---- -1315 -907 -941 query I rowsort SELECT + - col2 * col0 + + col2 AS col2 FROM tab0 AS cor0 ---- -34 -7216 -759 onlyif mysql # use DIV operator for integer division query I rowsort label-5387 SELECT - 16 DIV col0 + - col2 * col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-5387 SELECT - 16 / col0 + - col2 * col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL - col1 + - col1 * + 18 FROM tab1 AS cor0 ---- -190 -247 -494 query I rowsort SELECT - 56 * + col1 FROM tab2 AS cor0 ---- -1736 -3304 -952 query I rowsort SELECT DISTINCT + 14 * col2 AS col0 FROM tab1 AS cor0 ---- 1344 756 798 onlyif mysql # use DIV operator for integer division query I rowsort label-5391 SELECT col1 DIV + cor0.col2 + col0 AS col0 FROM tab0 AS cor0 ---- 132 26 90 skipif mysql # not compatible query I rowsort label-5391 SELECT col1 / + cor0.col2 + col0 AS col0 FROM tab0 AS cor0 ---- 132 26 90 query I rowsort SELECT DISTINCT - col1 * col2 AS col0 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT - - col2 * col1 * - col0 AS col2 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT col1 + - ( 90 ) * - col1 AS col0 FROM tab1 AS cor0 ---- 1183 2366 910 query I rowsort SELECT - cor0.col0 * + 69 * + col1 AS col1 FROM tab0 AS cor0 ---- -142416 -234255 -558831 query I rowsort SELECT DISTINCT col1 + + col2 * - col0 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT ALL + col2 + - 74 * col0 * - 53 FROM tab1 cor0 ---- 11820 251065 313856 onlyif mysql # use DIV operator for integer division query I rowsort label-5398 SELECT DISTINCT - 85 * - ( col0 ) * + col0 + col1 DIV col1 AS col1 FROM tab1 AS cor0 ---- 348161 544001 766 skipif mysql # not compatible query I rowsort label-5398 SELECT DISTINCT - 85 * - ( col0 ) * + col0 + col1 / col1 AS col1 FROM tab1 AS cor0 ---- 348161 544001 766 query I rowsort SELECT + - 64 * + col0 FROM tab1 AS cor0 ---- -192 -4096 -5120 onlyif mysql # use DIV operator for integer division query I rowsort label-5400 SELECT 0 DIV col2 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5400 SELECT 0 / col2 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT 83 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c onlyif mysql # use DIV operator for integer division query I rowsort label-5402 SELECT ALL col2 DIV 66 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5402 SELECT ALL col2 / 66 FROM tab0 ---- 0 0 1 query I rowsort SELECT ALL - cor0.col2 + - col0 + col1 AS col2 FROM tab0 AS cor0 ---- -80 29 61 query I rowsort SELECT ALL + + col0 + col1 AS col2 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL - col1 * - col0 + col2 + - col1 FROM tab2 AS cor0 ---- 1364 213 4569 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5406 SELECT col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5406 SELECT col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5407 SELECT ALL cor0.col1 + 26 DIV - cor0.col0 FROM tab0 AS cor0 ---- 85 91 97 skipif mysql # not compatible query I rowsort label-5407 SELECT ALL cor0.col1 + 26 / - cor0.col0 FROM tab0 AS cor0 ---- 85 91 97 query I rowsort SELECT DISTINCT cor0.col2 - col1 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT DISTINCT col2 + cor0.col0 + - col0 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT col0 + col1 + cor0.col2 FROM tab1 cor0 ---- 131 189 83 query I rowsort SELECT DISTINCT + - col2 * ( - 17 ) FROM tab0 AS cor0 ---- 1394 17 561 query I rowsort SELECT ALL col2 + 71 + + 67 * col1 FROM tab0 cor0 ---- 5866 6250 6571 query I rowsort SELECT DISTINCT + cor0.col2 + col2 * + cor0.col0 FROM tab2 AS cor0 ---- 2054 216 3040 onlyif mysql # use DIV operator for integer division query I rowsort label-5414 SELECT ALL ( - col2 ) DIV - col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-5414 SELECT ALL ( - col2 ) / - col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - 44 AS col0 FROM tab0, tab0 AS cor0 ---- -44 query I rowsort SELECT ALL - - 45 * + col0 FROM tab2 AS cor0 ---- 315 3510 3555 onlyif mysql # use DIV operator for integer division query I rowsort label-5417 SELECT DISTINCT + - col0 DIV + cor0.col0 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-5417 SELECT DISTINCT + - col0 / + cor0.col0 FROM tab0 AS cor0 ---- -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + + 10 col0 FROM tab2 AS cor0 ---- 36 37 48 query I rowsort SELECT DISTINCT - ( 74 ) AS col2 FROM tab1 AS cor0 ---- -74 query I rowsort SELECT ALL + 34 + col2 FROM tab0 AS cor0 ---- 116 35 67 query I rowsort SELECT 71 * + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1846 1917 2698 query I rowsort SELECT ALL 88 * + col2 FROM tab1 AS cor0 ---- 4752 5016 8448 query I rowsort SELECT cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2 ---- 243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 43 - - cor0.col0 * - 26 col0 FROM tab2 AS cor0 ---- -2071 -2097 -225 query I rowsort SELECT DISTINCT + col1 + + col2 * + col0 AS col0 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT col1 * + col2 + - ( - col1 ) * - col0 * + col2 FROM tab1 AS cor0 ---- -2808 -35910 -98592 query I rowsort SELECT 90 * col1 + - 1 * + 86 + col0 AS col0 FROM tab0 AS cor0 ---- 7678 8193 8679 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 38 col2 FROM tab2 AS cor0 ---- -38 query I rowsort SELECT DISTINCT + - 44 + col0 AS col0 FROM tab2 AS cor0 ---- -37 34 35 query I rowsort SELECT - 72 + col2 FROM tab0 AS cor0 ---- -39 -71 10 query I rowsort SELECT ALL col1 - + col2 * ( 57 ) FROM tab2 AS cor0 ---- -1423 -1508 -2149 onlyif mysql # use DIV operator for integer division query I rowsort label-5432 SELECT ALL col0 DIV - col2 - col0 FROM tab1 ---- -3 -65 -80 skipif mysql # not compatible query I rowsort label-5432 SELECT ALL col0 / - col2 - col0 FROM tab1 ---- -3 -65 -80 query III rowsort SELECT ALL * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND + col0 ---- 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 col0 - - col2 * 63 FROM tab0 AS cor0 ---- 2103 5255 98 query I rowsort SELECT ALL - 30 * col0 - - col2 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1724 -806 627 query I rowsort SELECT DISTINCT + 52 * col2 + 97 * 99 AS col0 FROM tab0 AS cor0 ---- 11319 13867 9655 query I rowsort SELECT DISTINCT col1 + + ( col2 ) FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT - col1 * col2 * - col2 AS col2 FROM tab1 ---- 119808 32490 75816 query I rowsort SELECT DISTINCT - + cor0.col1 AS col0 FROM tab1 AS cor0 ---- -10 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5441 SELECT ALL + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5441 SELECT ALL + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5442 SELECT DISTINCT + col1 + - col2 + col0 DIV - col1 AS col1 FROM tab2 AS cor0 ---- -25 32 4 skipif mysql # not compatible query I rowsort label-5442 SELECT DISTINCT + col1 + - col2 + col0 / - col1 AS col1 FROM tab2 AS cor0 ---- -25 32 4 query I rowsort SELECT ALL col1 * 85 + + cor0.col1 * + cor0.col0 + - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 11605 15745 9350 query I rowsort SELECT + col1 + ( 87 ) * col0 FROM tab2 AS cor0 ---- 640 6845 6890 query I rowsort SELECT DISTINCT col2 * ( col2 * col0 ) - 56 FROM tab1 AS cor0 ---- 207880 737224 8692 query I rowsort SELECT - col2 * - col0 + 42 AS col1 FROM tab0 AS cor0 ---- 7340 77 834 query I rowsort SELECT ALL col2 * ( - col2 ) FROM tab2 cor0 ---- -1444 -676 -729 query I rowsort SELECT DISTINCT - + cor0.col2 FROM tab0, tab1, tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT 60 * col0 * - 62 + + 69 AS col0 FROM tab0 ---- -130131 -331011 -89211 onlyif mysql # use DIV operator for integer division query I rowsort label-5450 SELECT ALL tab2.col2 + col0 DIV 37 col0 FROM tab2 ---- 27 28 40 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5450 SELECT ALL tab2.col2 + col0 / 37 col0 FROM tab2 ---- 27 28 40 query I rowsort SELECT ALL col2 + + col2 AS col1 FROM tab2 ---- 52 54 76 query I rowsort SELECT ALL + col1 + + tab0.col1 FROM tab0 ---- 172 182 194 query I rowsort SELECT - col2 + - col1 * + col0 + - col0 FROM tab1 AS cor0 ---- -1216 -135 -761 query I rowsort SELECT + - cor0.col2 + - col1 AS col2 FROM tab1 AS cor0 ---- -109 -67 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-5455 SELECT ALL + cor0.col1 DIV + 59 AS col1 FROM tab2 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5455 SELECT ALL + cor0.col1 / + 59 AS col1 FROM tab2 AS cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 * + col2 - - 71 * + col1 col2 FROM tab2 AS cor0 ---- 1853 3038 5723 query I rowsort SELECT - + cor0.col1 - - ( + col0 ) FROM tab2 cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT + col1 + tab0.col1 AS col1 FROM tab0 ---- 172 182 194 query I rowsort SELECT - 71 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to e72f95c346714d3065a96d67a6fd5062 query I rowsort SELECT tab2.col2 * col1 FROM tab2 ---- 1534 646 837 query I rowsort SELECT DISTINCT + col0 * 12 FROM tab0 ---- 1068 288 420 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 77 + 26 col0 FROM tab1, tab2 cor0 ---- 9 values hashing to a6436390b76d026d00c9c9e8c68d8420 query I rowsort SELECT - tab1.col2 * 48 AS col0 FROM tab1 ---- -2592 -2736 -4608 onlyif mysql # use DIV operator for integer division query I rowsort label-5464 SELECT col0 DIV + 49 + 6 AS col0 FROM tab2 ---- 6 7 7 skipif mysql # not compatible query I rowsort label-5464 SELECT col0 / + 49 + 6 AS col0 FROM tab2 ---- 6 7 7 query I rowsort SELECT DISTINCT + col1 + col1 AS col2 FROM tab1 ---- 20 26 52 onlyif mysql # use DIV operator for integer division query I rowsort label-5466 SELECT - col1 + col2 * tab1.col2 DIV - col0 + col2 AS col2 FROM tab1 ---- -3 -32 -944 skipif mysql # not compatible query I rowsort label-5466 SELECT - col1 + col2 * tab1.col2 / - col0 + col2 AS col2 FROM tab1 ---- -3 -32 -944 query I rowsort SELECT DISTINCT + col0 * 45 - + col2 * - col0 AS col1 FROM tab2 AS cor0 ---- 504 5538 6557 query I rowsort SELECT cor0.col2 + + ( ( col0 ) + + 80 ) AS col2 FROM tab2 AS cor0 ---- 114 184 197 query I rowsort SELECT DISTINCT + cor0.col0 + col1 AS col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT + 83 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 002a717a3d902d97220759065fb107c3 query I rowsort SELECT - - tab1.col0 AS col0 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT + 19 + col1 AS col2 FROM tab2 ---- 36 50 78 query I rowsort SELECT 94 + - ( col1 ) * + ( - col0 ) * col1 FROM tab1 ---- 13614 2122 6494 onlyif mysql # use DIV operator for integer division query I rowsort label-5474 SELECT + cor0.col2 DIV + col0 col1 FROM tab1 AS cor0 ---- 0 1 18 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5474 SELECT + cor0.col2 / + col0 col1 FROM tab1 AS cor0 ---- 0 1 18 query I rowsort SELECT DISTINCT + 49 FROM tab0 ---- 49 onlyif mysql # use DIV operator for integer division query I rowsort label-5476 SELECT ALL ( - 41 ) DIV - col0 AS col0 FROM tab0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-5476 SELECT ALL ( - 41 ) / - col0 AS col0 FROM tab0 ---- 0 1 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5477 SELECT DISTINCT - CAST( NULL AS SIGNED ) + 8 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5477 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 8 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 71 col1 FROM tab2 AS cor0 ---- 71 71 71 query I rowsort SELECT 29 + - 70 AS col0 FROM tab1 ---- -41 -41 -41 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5480 SELECT col0 - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5480 SELECT col0 - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5481 SELECT DISTINCT - col2 + col0 DIV + col2 FROM tab1 AS cor0 ---- -54 -56 -96 skipif mysql # not compatible query I rowsort label-5481 SELECT DISTINCT - col2 + col0 / + col2 FROM tab1 AS cor0 ---- -54 -56 -96 query I rowsort SELECT cor0.col2 * - col2 + 30 + - 3 FROM tab0 AS cor0 ---- -1062 -6697 26 query I rowsort SELECT ALL 60 * col0 AS col0 FROM tab1 AS cor0 ---- 180 3840 4800 query I rowsort SELECT ALL + col1 * + col1 AS col0 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT 91 * col0 AS col2 FROM tab1 AS cor0 ---- 273 5824 7280 query I rowsort SELECT DISTINCT + ( cor0.col1 ) AS col1 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT ALL + col1 * - col0 * - cor0.col2 AS col0 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT ( - cor0.col1 ) * cor0.col1 AS col1 FROM tab0 AS cor0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-5489 SELECT DISTINCT - 34 DIV cor0.col0 AS col1 FROM tab1 AS cor0 ---- -11 0 skipif mysql # not compatible query I rowsort label-5489 SELECT DISTINCT - 34 / cor0.col0 AS col1 FROM tab1 AS cor0 ---- -11 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5490 SELECT - + col2 + + cor0.col2 * ( col1 ) DIV + col0 AS col1 FROM tab1 cor0 ---- -49 -81 414 skipif mysql # not compatible query I rowsort label-5490 SELECT - + col2 + + cor0.col2 * ( col1 ) / + col0 AS col1 FROM tab1 cor0 ---- -49 -81 414 query I rowsort SELECT DISTINCT + col2 * col2 * col2 FROM tab2 AS cor0 ---- 17576 19683 54872 query I rowsort SELECT - + col0 * + col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col1 col2 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT + col0 * + col1 + col1 FROM tab2 AS cor0 ---- 1360 248 4661 onlyif mysql # use DIV operator for integer division query I rowsort label-5495 SELECT + - col0 DIV - col1 + col0 * col2 AS col0 FROM tab1 AS cor0 ---- 162 3654 7686 skipif mysql # not compatible query I rowsort label-5495 SELECT + - col0 / - col1 + col0 * col2 AS col0 FROM tab1 AS cor0 ---- 162 3654 7686 query I rowsort SELECT - col0 + - cor0.col0 * cor0.col2 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT DISTINCT + cor0.col2 + + col2 FROM tab0 cor0 ---- 164 2 66 onlyif mysql # use DIV operator for integer division query I rowsort label-5498 SELECT col2 DIV + col1 + col2 FROM tab1 AS cor0 ---- 103 56 62 skipif mysql # not compatible query I rowsort label-5498 SELECT col2 / + col1 + col2 FROM tab1 AS cor0 ---- 103 56 62 query I rowsort SELECT - - col2 + col0 AS col1 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + col1 + col1 + col2 * cor0.col2 * col0 FROM tab0 AS cor0 ---- 229 26308 598618 onlyif mysql # use DIV operator for integer division query I rowsort label-5501 SELECT DISTINCT - tab1.col2 DIV col1 FROM tab1 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-5501 SELECT DISTINCT - tab1.col2 / col1 FROM tab1 ---- -2 -5 -7 query I rowsort SELECT - col2 * + tab2.col0 AS col1 FROM tab2 ---- -189 -2028 -3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + col0 * + col2 col0 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT + ( + 92 * col2 ) FROM tab2 ---- 2392 2484 3496 query I rowsort SELECT + col0 * + 66 + + tab2.col0 * tab2.col0 FROM tab2 ---- 11232 11455 511 query I rowsort SELECT + 28 AS col1 FROM tab2, tab2 cor0 ---- 9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97 query I rowsort SELECT DISTINCT + col0 * - col2 * + col1 AS col2 FROM tab1 ---- -36480 -4212 -99840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 - + col2 col0 FROM tab0 AS cor0 ---- -164 -2 -66 query I rowsort SELECT 98 AS col1 FROM tab0 ---- 98 98 98 query I rowsort SELECT DISTINCT - + col0 + col0 - - col2 AS col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT 19 + col0 * - cor0.col0 FROM tab0 AS cor0 ---- -1206 -557 -7902 onlyif mysql # use DIV operator for integer division query I rowsort label-5512 SELECT DISTINCT cor0.col1 DIV col1 + - col0 FROM tab2 cor0 ---- -6 -77 -78 skipif mysql # not compatible query I rowsort label-5512 SELECT DISTINCT cor0.col1 / col1 + - col0 FROM tab2 cor0 ---- -6 -77 -78 query I rowsort SELECT DISTINCT + 21 * col0 - - col2 * col0 AS col0 FROM tab1 AS cor0 ---- 225 4992 9360 query I rowsort SELECT cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT ALL ( col0 + col2 ) FROM tab2 ---- 104 117 34 query I rowsort SELECT col2 + col1 * col0 AS col1 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT DISTINCT col2 - - col0 AS col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT - tab1.col2 * col2 FROM tab1 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT col0 - tab1.col0 AS col1 FROM tab1 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5520 SELECT col1 + tab0.col0 DIV + col0 AS col1 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-5520 SELECT col1 + tab0.col0 / + col0 AS col1 FROM tab0 ---- 87 92 98 query I rowsort SELECT tab1.col2 - - tab1.col0 AS col2 FROM tab1 ---- 121 176 57 query I rowsort SELECT DISTINCT + col0 + - col2 - col0 AS col2 FROM tab1 ---- -54 -57 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-5523 SELECT ALL col0 DIV + tab2.col0 FROM tab2 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-5523 SELECT ALL col0 / + tab2.col0 FROM tab2 ---- 1 1 1 query I rowsort SELECT tab2.col2 - + col2 * - col0 FROM tab2 ---- 2054 216 3040 onlyif mysql # use DIV operator for integer division query I rowsort label-5525 SELECT + col2 DIV - col0 FROM tab1 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-5525 SELECT + col2 / - col0 FROM tab1 ---- -1 -18 0 query I rowsort SELECT ALL col2 - col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT tab2.col1 - col2 FROM tab2 ---- -21 33 4 query I rowsort SELECT + tab1.col0 AS col0 FROM tab1 WHERE - col1 BETWEEN NULL AND col1 * + col1 + - col0 ---- query I rowsort SELECT ALL - col2 + col1 * col1 AS col0 FROM tab1 ---- 43 622 73 query I rowsort SELECT DISTINCT col1 - + tab1.col2 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT ALL - col2 / - col1 + col1 + + col1 FROM tab2 WHERE ( NULL ) IN ( tab2.col2 + col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-5532 SELECT + col1 DIV col0 AS col2 FROM tab1 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-5532 SELECT + col1 / col0 AS col2 FROM tab1 ---- 0 0 8 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( - col0 * tab1.col2 ) = + col0 ---- query I rowsort SELECT col1 + col0 * + col0 FROM tab0 ---- 1322 662 8012 query I rowsort SELECT tab0.col2 * tab0.col2 AS col1 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT - tab0.col1 + - col1 FROM tab0 ---- -172 -182 -194 query I rowsort SELECT - col2 * + tab0.col0 AS col1 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT col2 * col0 AS col2 FROM tab0 WHERE - col1 NOT BETWEEN NULL AND col1 * col0 * tab0.col0 ---- query I rowsort SELECT col1 * col0 * col2 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + tab1.col0 - col0 ) ---- query I rowsort SELECT ALL - col1 * + col2 + - col2 AS col0 FROM tab0 ---- -2871 -7544 -98 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col2 - tab1.col2 * col2 ) ---- query I rowsort SELECT ALL + col2 FROM tab2 WHERE NOT ( - col2 / col0 + + col1 * - col1 + + col1 ) NOT IN ( col2 ) ---- query I rowsort SELECT + col2 * col2 * tab1.col1 AS col0 FROM tab1 ---- 119808 32490 75816 query I rowsort SELECT col2 * + col0 + cor0.col1 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT cor0.col0 * col2 * cor0.col0 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT ALL - cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 ---- 9 values hashing to b5a4102107e5ebd26e341538f4fede1e query I rowsort SELECT DISTINCT - col1 + tab0.col2 + - col0 AS col1 FROM tab0 ---- -131 -77 -98 query I rowsort SELECT col2 + tab2.col0 * col1 + - tab2.col0 AS col0 FROM tab2 ---- 1302 237 4550 query I rowsort SELECT DISTINCT - tab2.col1 - + col2 AS col2 FROM tab2 ---- -55 -58 -85 query I rowsort SELECT ALL col1 + tab0.col0 AS col0 FROM tab0 WHERE NULL IN ( + col2 * + col1 + - col1 / col1 ) ---- query I rowsort SELECT - col0 * col0 * col1 AS col1 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT col2 * + col2 + + col0 - 57 AS col1 FROM tab2 AS cor0 ---- 1466 679 697 query I rowsort SELECT + col1 + col0 AS col1 FROM tab0 AS cor0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + - col1 col1 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT cor0.col1 * + cor0.col2 * col2 AS col1 FROM tab2 AS cor0 ---- 22599 24548 39884 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 * - col0 col0 FROM tab2 AS cor0 ---- 49 6084 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 3 col2 FROM tab0 AS cor0 ---- 3 3 3 onlyif mysql # use DIV operator for integer division query I rowsort label-5558 SELECT ALL 95 DIV col1 + col1 FROM tab0 ---- 87 92 97 skipif mysql # not compatible query I rowsort label-5558 SELECT ALL 95 / col1 + col1 FROM tab0 ---- 87 92 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5559 SELECT DISTINCT CAST( col0 AS SIGNED ) + + col1 * + col0 * + col1 FROM tab1 ---- 13600 2031 6464 skipif mysql # not compatible query I rowsort label-5559 SELECT DISTINCT CAST ( col0 AS INTEGER ) + + col1 * + col0 * + col1 FROM tab1 ---- 13600 2031 6464 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( col1 ) + - col2 col0 FROM tab0 ---- 53 9 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5561 SELECT - CAST( NULL AS SIGNED ) * + 58 AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5561 SELECT - CAST ( NULL AS INTEGER ) * + 58 AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL + 93 + - col2 FROM tab2 ---- 55 66 67 query I rowsort SELECT ALL col1 * + col0 * 0 FROM tab0 ---- 0 0 0 query I rowsort SELECT - cor0.col2 + - col2 AS col1 FROM tab2 AS cor0 ---- -52 -54 -76 query I rowsort SELECT 17 + - col0 AS col0 FROM tab1 AS cor0 ---- -47 -63 14 onlyif mysql # use DIV operator for integer division query I rowsort label-5566 SELECT DISTINCT + 22 + col2 DIV 30 FROM tab0 AS cor0 ---- 22 23 24 skipif mysql # not compatible query I rowsort label-5566 SELECT DISTINCT + 22 + col2 / 30 FROM tab0 AS cor0 ---- 22 23 24 onlyif mysql # use DIV operator for integer division query I rowsort label-5567 SELECT DISTINCT - - col1 DIV - col0 - 72 FROM tab2 cor0 ---- -72 -76 skipif mysql # not compatible query I rowsort label-5567 SELECT DISTINCT - - col1 / - col0 - 72 FROM tab2 cor0 ---- -72 -76 query I rowsort SELECT + + 89 FROM tab0 AS cor0 ---- 89 89 89 onlyif mysql # use DIV operator for integer division query I rowsort label-5569 SELECT DISTINCT - col2 * - col1 + ( cor0.col0 ) DIV cor0.col1 FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-5569 SELECT DISTINCT - col2 * - col1 + ( cor0.col0 ) / cor0.col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL + col2 * cor0.col1 AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL 3 + col0 FROM tab1 AS cor0 ---- 6 67 83 query I rowsort SELECT DISTINCT + col0 + cor0.col2 - col1 AS col1 FROM tab2 AS cor0 ---- 100 3 45 query I rowsort SELECT - col1 + + 73 AS col2 FROM tab1 ---- 47 60 63 query I rowsort SELECT ALL + col2 + cor0.col2 * col1 AS col0 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT DISTINCT - col0 + + 61 FROM tab1 AS cor0 ---- -19 -3 58 query I rowsort SELECT ALL - cor0.col0 * 45 AS col0 FROM tab1 AS cor0 ---- -135 -2880 -3600 query I rowsort SELECT + col0 + + 75 AS col0 FROM tab2 AS cor0 ---- 153 154 82 query I rowsort SELECT ALL + + col2 * 36 + - cor0.col0 FROM tab2 AS cor0 ---- 1289 858 965 query I rowsort SELECT ALL - 42 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 9894093f29c0defae91347934f060329 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5580 SELECT + col1 + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 20 26 52 skipif mysql # not compatible query I rowsort label-5580 SELECT + col1 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT DISTINCT col2 * 69 FROM tab2 AS cor0 ---- 1794 1863 2622 query I rowsort SELECT cor0.col1 + col1 - + col0 * + col0 AS col2 FROM tab0 AS cor0 ---- -1031 -404 -7739 query I rowsort SELECT ALL - + 54 FROM tab2 AS cor0 ---- -54 -54 -54 query I rowsort SELECT - cor0.col2 - - col0 FROM tab2 AS cor0 ---- -20 41 52 onlyif mysql # use DIV operator for integer division query I rowsort label-5585 SELECT cor0.col1 + - cor0.col0 DIV col0 + + 35 AS col1 FROM tab0 AS cor0 ---- 120 125 131 skipif mysql # not compatible query I rowsort label-5585 SELECT cor0.col1 + - cor0.col0 / col0 + + 35 AS col1 FROM tab0 AS cor0 ---- 120 125 131 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 36 col1 FROM tab0, tab1, tab0 cor0, tab2 ---- 81 values hashing to e09b197365a04fabbaaf0718d2ae88c5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5587 SELECT CAST( NULL AS SIGNED ) * col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5587 SELECT CAST ( NULL AS INTEGER ) * col1 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5588 SELECT - CAST( NULL AS DECIMAL ) + + 91 * col1 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5588 SELECT - CAST ( NULL AS REAL ) + + 91 * col1 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5589 SELECT + - 6 + - col2 DIV cor0.col0 + ( + col2 ) FROM tab1 cor0 ---- 30 51 89 skipif mysql # not compatible query I rowsort label-5589 SELECT + - 6 + - col2 / cor0.col0 + ( + col2 ) FROM tab1 cor0 ---- 30 51 89 query I rowsort SELECT DISTINCT + - ( - col0 ) + col2 * ( col0 ) * col1 AS col2 FROM tab2 cor0 ---- 119730 51113 5866 onlyif mysql # use DIV operator for integer division query I rowsort label-5591 SELECT DISTINCT - + col2 DIV - 84 col1 FROM tab0 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5591 SELECT DISTINCT - + col2 / - 84 col1 FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5592 SELECT ALL + col1 DIV + 42 FROM tab2 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5592 SELECT ALL + col1 / + 42 FROM tab2 cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 53 col2 FROM tab0 AS cor0 ---- -53 onlyif mysql # use DIV operator for integer division query I rowsort label-5594 SELECT - + 84 DIV col1 - col1 * - col1 FROM tab2 AS cor0 ---- 285 3480 959 skipif mysql # not compatible query I rowsort label-5594 SELECT - + 84 / col1 - col1 * - col1 FROM tab2 AS cor0 ---- 285 3480 959 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 cor1 ---- 972 values hashing to ea0f747588ddf5869ee18a5e22d9f237 query I rowsort SELECT + 61 * cor0.col2 + 75 FROM tab1, tab1 AS cor0 ---- 9 values hashing to d6c3d5faf3d2be3b59ec93282dac0270 query I rowsort SELECT - col0 * ( cor0.col0 ) + - col1 FROM tab1 AS cor0 ---- -35 -4106 -6413 query I rowsort SELECT DISTINCT + col2 + col1 + + col0 AS col2 FROM tab2 AS cor0 ---- 134 163 65 onlyif mysql # use DIV operator for integer division query I rowsort label-5599 SELECT - + cor1.col0 + - ( - 85 ) DIV - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 73c38f687ae64116a889438f960eb096 skipif mysql # not compatible query I rowsort label-5599 SELECT - + cor1.col0 + - ( - 85 ) / - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 73c38f687ae64116a889438f960eb096 query I rowsort SELECT - tab0.col0 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e query I rowsort SELECT - 3 + 19 FROM tab0 AS cor0 ---- 16 16 16 query I rowsort SELECT ALL - - col1 * - 32 FROM tab1 AS cor0 ---- -320 -416 -832 query I rowsort SELECT DISTINCT - col1 + - col0 + + col2 FROM tab1 AS cor0 ---- -17 25 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 59 * col2 col2 FROM tab1 AS cor0 ---- 3186 3363 5664 query I rowsort SELECT 78 AS col0 FROM tab0 AS cor0 ---- 78 78 78 onlyif mysql # use DIV operator for integer division query I rowsort label-5606 SELECT + - col0 DIV 40 AS col0 FROM tab1 cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-5606 SELECT + - col0 / 40 AS col0 FROM tab1 cor0 ---- -1 -2 0 query I rowsort SELECT + - col0 * + 61 * col0 AS col1 FROM tab1 AS cor0 ---- -249856 -390400 -549 query I rowsort SELECT 84 - - col2 FROM tab2 AS cor0 ---- 110 111 122 onlyif mysql # use DIV operator for integer division query I rowsort label-5609 SELECT ( col2 ) - col2 DIV col2 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-5609 SELECT ( col2 ) - col2 / col2 FROM tab1 AS cor0 ---- 53 56 95 onlyif mysql # use DIV operator for integer division query I rowsort label-5610 SELECT + col2 * col0 + col0 DIV col0 FROM tab2 AS cor0 ---- 190 2029 3003 skipif mysql # not compatible query I rowsort label-5610 SELECT + col2 * col0 + col0 / col0 FROM tab2 AS cor0 ---- 190 2029 3003 query I rowsort SELECT - + col2 + cor0.col1 + - col1 AS col1 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 skipif mysql # not compatible query I rowsort SELECT DISTINCT - 76 * + col0 + - col0 * - CAST ( - col0 + col2 AS REAL ) * + CAST ( + ( - tab0.col2 ) * ( col0 ) AS REAL ) AS col1 FROM tab0 ---- -172896 38990 4539890 query I rowsort SELECT - col0 + + col2 * col1 FROM tab0 cor0 ---- 2814 62 7373 query I rowsort SELECT DISTINCT + col2 * - ( col0 ) - col0 FROM tab1 cor0 ---- -165 -3712 -7760 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5616 SELECT DISTINCT + + col2 * - CAST( col1 AS SIGNED ) * col2 FROM tab0 AS cor0 ---- -611884 -93654 -97 skipif mysql # not compatible query I rowsort label-5616 SELECT DISTINCT + + col2 * - CAST ( col1 AS INTEGER ) * col2 FROM tab0 AS cor0 ---- -611884 -93654 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-5617 SELECT ALL - - col2 DIV + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5617 SELECT ALL - - col2 / + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col0 + + ( - col1 ) FROM tab0 AS cor0 ---- -110 -132 -180 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to 81a27955147133c47c9e8e63dacc5c37 query I rowsort SELECT ALL + tab2.col0 + + col1 AS col1 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL + ( cor0.col0 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to dd18b93263a6cd425fc7cc84d9137870 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 16 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 16 query I rowsort SELECT DISTINCT + 43 FROM tab0, tab0 AS cor0 ---- 43 query I rowsort SELECT col0 * 45 + 99 FROM tab1 ---- 234 2979 3699 query I rowsort SELECT - 14 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- -1120 -42 -896 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0, tab1 AS cor1 ---- 972 values hashing to a8481bfbfcb330825976c5896e54bc19 query I rowsort SELECT ALL cor0.col1 - + ( + col2 ) * col2 AS col0 FROM tab2 AS cor0 ---- -1427 -617 -698 query I rowsort SELECT + 62 AS col1 FROM tab2 ---- 62 62 62 query I rowsort SELECT ALL - tab2.col1 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 query I rowsort SELECT - 65 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 744531575c1b6461ed2916d4940e4d23 query I rowsort SELECT DISTINCT + + 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 31 query I rowsort SELECT DISTINCT - tab2.col1 - ( - 2 + - col2 ) AS col2 FROM tab2 ---- -2 -31 23 onlyif mysql # use DIV operator for integer division query I rowsort label-5633 SELECT + col1 + 81 + - 48 DIV col2 AS col1 FROM tab1 AS cor0 ---- 107 91 94 skipif mysql # not compatible query I rowsort label-5633 SELECT + col1 + 81 + - 48 / col2 AS col1 FROM tab1 AS cor0 ---- 107 91 94 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5634 SELECT DISTINCT col2 - CAST( + ( + col0 ) AS SIGNED ) * + col2 FROM tab1 ---- -108 -3591 -7584 skipif mysql # not compatible query I rowsort label-5634 SELECT DISTINCT col2 - CAST ( + ( + col0 ) AS INTEGER ) * + col2 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT - col0 + ( col2 ) + col2 FROM tab1 ---- 105 112 50 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5636 SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5636 SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0 ---- NULL query I rowsort SELECT col2 * tab0.col2 + 28 AS col1 FROM tab0 ---- 1117 29 6752 query I rowsort SELECT ALL - tab1.col0 * + tab1.col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to f7e57a354e4e5925116b9650d1011609 query I rowsort SELECT col0 + col0 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT 32 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to d30a2acbf33c88274474306936d3227b query I rowsort SELECT col1 * + col2 * - col2 FROM tab2 ---- -22599 -24548 -39884 query I rowsort SELECT DISTINCT cor1.col2 FROM tab2, tab0 AS cor0, tab1 cor1, tab0 AS cor2 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-5643 SELECT - col2 DIV + cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5643 SELECT - col2 / + cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + + 62 * col0 AS col1 FROM tab0 AS cor0 ---- 1488 2170 5518 onlyif mysql # use DIV operator for integer division query I rowsort label-5645 SELECT + + col1 + col2 DIV 86 AS col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-5645 SELECT + + col1 + col2 / 86 AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT col1 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT - + cor0.col0 * - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-5648 SELECT ALL + cor0.col0 DIV col1 AS col1 FROM tab1 AS cor0 ---- 0 6 6 skipif mysql # not compatible query I rowsort label-5648 SELECT ALL + cor0.col0 / col1 AS col1 FROM tab1 AS cor0 ---- 0 6 6 query I rowsort SELECT + col0 * col0 * + 1 + - col1 AS col1 FROM tab0 AS cor0 ---- 1128 490 7830 onlyif mysql # use DIV operator for integer division query I rowsort label-5650 SELECT col1 * cor0.col0 + - 41 DIV col2 FROM tab1 AS cor0 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-5650 SELECT col1 * cor0.col0 + - 41 / col2 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL + cor0.col2 * - col2 FROM tab1 cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT - cor0.col0 * + 64 AS col1 FROM tab1, tab1 AS cor0 ---- -192 -4096 -5120 query I rowsort SELECT - + 19 FROM tab1 AS cor0 ---- -19 -19 -19 query I rowsort SELECT ALL ( + col1 ) AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL col1 * col1 + cor0.col2 FROM tab0 AS cor0 ---- 7429 8363 9410 query I rowsort SELECT DISTINCT + + 10 * + cor0.col1 + 14 + - col0 FROM tab2 cor0 ---- 105 317 526 onlyif mysql # use DIV operator for integer division query I rowsort label-5657 SELECT ALL - col2 * + cor0.col0 * + 22 + + cor0.col0 DIV col1 col0 FROM tab2 AS cor0 ---- -4158 -44615 -66040 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5657 SELECT ALL - col2 * + cor0.col0 * + 22 + + cor0.col0 / col1 col0 FROM tab2 AS cor0 ---- -4158 -44615 -66040 query I rowsort SELECT DISTINCT - + col0 + - col0 * - col0 AS col0 FROM tab2 AS cor0 ---- 42 6006 6162 query I rowsort SELECT DISTINCT - - col0 + ( 30 ) * cor0.col2 AS col0 FROM tab1 cor0 ---- 1623 1774 2960 onlyif mysql # use DIV operator for integer division query I rowsort label-5660 SELECT ALL + col0 DIV 77 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5660 SELECT ALL + col0 / 77 FROM tab1 AS cor0 ---- 0 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-5661 SELECT DISTINCT - - col2 DIV ( + col1 * col1 ) + col0 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-5661 SELECT DISTINCT - - col2 / ( + col1 * col1 ) + col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL - col0 * 81 FROM tab1 AS cor0 ---- -243 -5184 -6480 query I rowsort SELECT DISTINCT col0 * 67 FROM tab1 AS cor0 ---- 201 4288 5360 onlyif mysql # use DIV operator for integer division query I rowsort label-5664 SELECT DISTINCT + - col2 DIV - col1 AS col2 FROM tab2 AS cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-5664 SELECT DISTINCT + - col2 / - col1 AS col2 FROM tab2 AS cor0 ---- 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - col1 col1 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col0 + + 38 col2 FROM tab2 AS cor0 ---- -40 -41 31 onlyif mysql # use DIV operator for integer division query I rowsort label-5667 SELECT + cor0.col1 + 79 DIV - col2 AS col2 FROM tab1 AS cor0 ---- 13 25 9 skipif mysql # not compatible query I rowsort label-5667 SELECT + cor0.col1 + 79 / - col2 AS col2 FROM tab1 AS cor0 ---- 13 25 9 query I rowsort SELECT - ( + 3 ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166 query I rowsort SELECT + cor0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + + tab1.col0 col2 FROM tab1 ---- -16 -51 7 onlyif mysql # use DIV operator for integer division query I rowsort label-5671 SELECT DISTINCT 15 DIV col2 FROM tab0 ---- 0 15 skipif mysql # not compatible query I rowsort label-5671 SELECT DISTINCT 15 / col2 FROM tab0 ---- 0 15 query I rowsort SELECT ALL - col1 + - cor0.col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT + col0 * cor0.col0 + - col1 * - 30 FROM tab2 AS cor0 ---- 6751 7854 979 query I rowsort SELECT DISTINCT - 57 * + col1 AS col0 FROM tab0 AS cor0 ---- -4902 -5187 -5529 query I rowsort SELECT - 23 + col0 FROM tab0 AS cor0 ---- 1 12 66 query I rowsort SELECT ALL cor0.col2 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT + + 8 AS col2 FROM tab0 AS cor0 ---- 8 query I rowsort SELECT ALL + col0 * 65 FROM tab0 AS cor0 ---- 1560 2275 5785 query I rowsort SELECT 1 AS col2 FROM tab0 cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - 53 - - cor0.col0 * - col0 FROM tab1 AS cor0 ---- -4149 -62 -6453 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5681 SELECT + CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-5681 SELECT + CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + col1 * 64 AS col2 FROM tab1 ---- 1664 640 832 query I rowsort SELECT + col0 + 22 + + col0 FROM tab2 AS cor0 ---- 178 180 36 query I rowsort SELECT DISTINCT cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 7 78 79 query I rowsort SELECT + col0 * ( - col1 ) AS col1 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT - ( col1 ) + col0 * 77 AS col2 FROM tab1 ---- 205 4918 6147 query I rowsort SELECT - 17 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5688 SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-5688 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 FROM tab1 ---- NULL query I rowsort SELECT ALL 52 AS col2 FROM tab0 ---- 52 52 52 query I rowsort SELECT col2 + + col0 AS col1 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT col1 * col2 AS col2 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT col2 * - col2 + - col1 * cor0.col1 FROM tab0 AS cor0 ---- -15005 -8485 -9410 query I rowsort SELECT DISTINCT - col1 + - 10 * col2 AS col0 FROM tab0 AS cor0 ---- -107 -416 -911 onlyif mysql # use DIV operator for integer division query I rowsort label-5694 SELECT col1 DIV 26 + ( - col0 ) * col1 + + col0 * - col1 FROM tab2 AS cor0 ---- -2686 -433 -9202 skipif mysql # not compatible query I rowsort label-5694 SELECT col1 / 26 + ( - col0 ) * col1 + + col0 * - col1 FROM tab2 AS cor0 ---- -2686 -433 -9202 query I rowsort SELECT ALL - cor0.col2 + col0 * col0 AS col1 FROM tab0 AS cor0 ---- 1224 543 7839 query I rowsort SELECT - + col1 * - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5697 SELECT - col2 + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5697 SELECT - col2 + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 col2 FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT - col2 - + ( - col2 ) AS col1 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5700 SELECT DISTINCT - col1 * col0 - + col0 DIV cor0.col2 AS col2 FROM tab0 AS cor0 ---- -2064 -3430 -8100 skipif mysql # not compatible query I rowsort label-5700 SELECT DISTINCT - col1 * col0 - + col0 / cor0.col2 AS col2 FROM tab0 AS cor0 ---- -2064 -3430 -8100 query I rowsort SELECT DISTINCT - col0 - col0 FROM tab2 AS cor0 ---- -14 -156 -158 query I rowsort SELECT ALL + col2 + col0 * col0 AS col2 FROM tab1 cor0 ---- 4153 63 6496 query I rowsort SELECT - col2 - + col1 AS col0 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT + - col1 * - col0 + 83 AS col2 FROM tab2 AS cor0 ---- 1426 300 4685 query I rowsort SELECT DISTINCT + + col2 + col2 * 98 FROM tab1 AS cor0 ---- 5346 5643 9504 onlyif mysql # use DIV operator for integer division query I rowsort label-5706 SELECT ALL col0 DIV + ( col0 ) FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-5706 SELECT ALL col0 / + ( col0 ) FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT - col1 + 33 FROM tab0 ---- -53 -58 -64 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to 38dccc9c32724260ec175f754830d863 query I rowsort SELECT DISTINCT - 52 FROM tab1, tab0 AS cor0 ---- -52 query I rowsort SELECT DISTINCT + + 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 55 onlyif mysql # use DIV operator for integer division query I rowsort label-5711 SELECT col2 + col1 DIV 96 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-5711 SELECT col2 + col1 / 96 FROM tab2 ---- 26 27 38 query I rowsort SELECT - - col2 + - col0 * + col2 AS col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * - col1 col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT ALL + col0 + cor0.col0 FROM tab1 AS cor0 ---- 128 160 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col2 * col0 - + col1 col1 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT col2 * 18 AS col1 FROM tab0 ---- 1476 18 594 query I rowsort SELECT ALL + + col1 * col2 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT cor0.col1 * col1 * col0 AS col0 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT ALL - + col1 * + col2 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5720 SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-5720 SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL col1 * 58 * + col2 AS col2 FROM tab1 ---- 33060 72384 81432 query I rowsort SELECT ALL + tab1.col1 * col0 AS col0 FROM tab1 ---- 1040 640 78 query I rowsort SELECT - + ( - col2 ) * + 40 AS col0 FROM tab0 AS cor0 ---- 1320 3280 40 query I rowsort SELECT DISTINCT + ( - col1 ) FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5725 SELECT DISTINCT - ( col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5725 SELECT DISTINCT - ( col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT - 39 * 98 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 98da8136db01bb8e17149e66ca992655 query I rowsort SELECT - 77 AS col2 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 + col0 col2 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT - 21 * col0 FROM tab1 AS cor0 ---- -1344 -1680 -63 query I rowsort SELECT DISTINCT 17 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1 ---- 17 query I rowsort SELECT ALL - 30 FROM tab0 AS cor0 ---- -30 -30 -30 onlyif mysql # use DIV operator for integer division query I rowsort label-5732 SELECT DISTINCT col1 DIV - col1 + - col0 DIV - cor0.col0 FROM tab2 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5732 SELECT DISTINCT col1 / - col1 + - col0 / - cor0.col0 FROM tab2 cor0 ---- 0 query I rowsort SELECT col1 + + col2 FROM tab1 cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-5734 SELECT ALL cor0.col0 DIV - col2 AS col2 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-5734 SELECT ALL cor0.col0 / - col2 AS col2 FROM tab0 AS cor0 ---- -1 -35 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5735 SELECT ALL + + col2 + cor0.col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5735 SELECT ALL + + col2 + cor0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - + 96 * col0 + col2 FROM tab0 AS cor0 ---- -2271 -3359 -8462 query I rowsort SELECT DISTINCT col0 * col1 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT + - ( + cor0.col1 ) FROM tab1 cor0 ---- -10 -13 -26 query I rowsort SELECT DISTINCT - 45 + col2 * ( 58 ) * - col2 AS col2 FROM tab1 AS cor0 ---- -169173 -188487 -534573 query I rowsort SELECT 93 AS col1 FROM tab0 AS cor0 ---- 93 93 93 query I rowsort SELECT col2 * + 87 AS col0 FROM tab2 AS cor0 ---- 2262 2349 3306 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5742 SELECT DISTINCT - tab1.col2 * CAST( - ( + col0 ) AS SIGNED ) AS col1 FROM tab1 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-5742 SELECT DISTINCT - tab1.col2 * CAST ( - ( + col0 ) AS INTEGER ) AS col1 FROM tab1 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-5743 SELECT ALL + - col1 DIV + col0 FROM tab2 AS cor0 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-5743 SELECT ALL + - col1 / + col0 FROM tab2 AS cor0 ---- -4 0 0 query I rowsort SELECT cor0.col1 * 11 FROM tab1 cor0 ---- 110 143 286 query I rowsort SELECT DISTINCT + - col2 * col2 * - col2 FROM tab2 AS cor0 ---- 17576 19683 54872 query I rowsort SELECT - col0 * - 43 FROM tab0 AS cor0 ---- 1032 1505 3827 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5747 SELECT ALL + + CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5747 SELECT ALL + + CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort SELECT - CAST ( 20 AS REAL ) FROM tab0 ---- -20 -20 -20 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + 26 + + col0 + + col2 col1 FROM tab0 AS cor0 ---- 10 145 31 query I rowsort SELECT + col0 * + 76 + + col2 FROM tab0 cor0 ---- 1857 2661 6846 query I rowsort SELECT DISTINCT + col0 + 64 FROM tab1 AS cor0 ---- 128 144 67 query I rowsort SELECT + ( + 3 ) * - col1 AS col2 FROM tab1 ---- -30 -39 -78 query I rowsort SELECT cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT DISTINCT - - 45 + - col1 FROM tab2 AS cor0 ---- -14 14 28 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 55 + 41 col0 FROM tab0 AS cor0 ---- 96 query I rowsort SELECT DISTINCT + - col0 * col0 + col0 + 28 FROM tab1 AS cor0 ---- -4004 -6292 22 query I rowsort SELECT 68 * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1768 680 884 query I rowsort SELECT + cor0.col1 + col2 FROM tab1 AS cor0 ---- 109 67 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 col1 FROM tab2 cor0 ---- -17 -31 -59 query I rowsort SELECT - - ( + col1 ) + 92 AS col0 FROM tab2 AS cor0 ---- 109 123 151 query I rowsort SELECT - col2 + col2 * col0 AS col1 FROM tab0 AS cor0 ---- 34 7216 759 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5762 SELECT DISTINCT CAST( - col2 AS SIGNED ) FROM tab0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-5762 SELECT DISTINCT CAST ( - col2 AS INTEGER ) FROM tab0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT - col0 + col1 + + col2 AS col0 FROM tab1 ---- 29 3 77 query I rowsort SELECT DISTINCT ( - col1 ) * col0 + + col1 AS col0 FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT col1 * col0 * col1 + ( col0 + - col1 ) FROM tab0 ---- 177442 329253 737007 query I rowsort SELECT 54 FROM tab0, tab1 cor0 ---- 9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09 query I rowsort SELECT - col0 + + 70 * col2 FROM tab0 AS cor0 ---- 2286 35 5651 query I rowsort SELECT DISTINCT cor0.col1 * cor0.col1 FROM tab0, tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT DISTINCT col0 * + 38 AS col2 FROM tab0 ---- 1330 3382 912 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 68 col0 FROM tab1, tab1 cor0 ---- 9 values hashing to 599bee15ac4cc39b859854e07dfe7990 query I rowsort SELECT + 5 FROM tab0, tab1 cor0 ---- 9 values hashing to 6035628694bdea36f584f3649088551d query I rowsort SELECT DISTINCT ( col1 ) * tab2.col2 * + col1 AS col1 FROM tab2 ---- 10982 25947 90506 query I rowsort SELECT ALL 16 + 69 AS col2 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7 query I rowsort SELECT + ( ( + col1 ) + ( tab0.col2 ) ) FROM tab0 ---- 119 173 98 query I rowsort SELECT - ( 17 ) FROM tab1 AS cor0 ---- -17 -17 -17 query I rowsort SELECT 60 + + col2 AS col2 FROM tab1 ---- 114 117 156 query I rowsort SELECT + tab2.col2 * col1 * - col2 AS col0 FROM tab2 ---- -22599 -24548 -39884 query I rowsort SELECT DISTINCT + 10 * tab1.col2 FROM tab1 ---- 540 570 960 query I rowsort SELECT + 47 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d query I rowsort SELECT DISTINCT + col0 * tab0.col1 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - col2 * tab2.col2 FROM tab2 ---- -1444 -676 -729 query I rowsort SELECT col1 * + col2 + - col0 * - col2 FROM tab2 AS cor0 ---- 1026 3562 3648 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 + + tab1.col1 col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 35de0b553e14f89ea44b7652e1ff642c skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 0 col0 FROM tab0, tab1, tab2 AS cor0 ---- 0 query I rowsort SELECT + 90 AS col2 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 5d25a546acf3ae171e731e50adc0112e query I rowsort SELECT col2 * 61 FROM tab2 AS cor0 ---- 1586 1647 2318 query I rowsort SELECT + cor0.col0 + - col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5788 SELECT - col0 DIV col0 AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5788 SELECT - col0 / col0 AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT - col2 * 13 + col1 FROM tab1 AS cor0 ---- -1235 -676 -731 query I rowsort SELECT - col1 + - col0 * col0 * cor0.col0 FROM tab2 AS cor0 ---- -374 -474611 -493056 query I rowsort SELECT - col2 * + ( col1 ) + + col0 AS col2 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT col2 * 31 + col2 AS col0 FROM tab0 AS cor0 ---- 1056 2624 32 query I rowsort SELECT - - col1 * 94 FROM tab0 AS cor0 ---- 8084 8554 9118 query I rowsort SELECT DISTINCT - col1 * + ( - 11 ) + col2 FROM tab1 ---- 167 239 340 query I rowsort SELECT tab1.col1 * 15 + col1 AS col0 FROM tab1 ---- 160 208 416 query I rowsort SELECT ALL col1 * col0 + - col0 * + col0 FROM tab1 ---- -3456 -5360 69 query I rowsort SELECT ALL col1 * - col0 + col0 FROM tab0 ---- -2040 -3360 -8010 query I rowsort SELECT ALL tab1.col0 + + ( 25 ) FROM tab1 ---- 105 28 89 query I rowsort SELECT - + col1 - ( - 61 ) AS col0 FROM tab1 AS cor0 ---- 35 48 51 query I rowsort SELECT DISTINCT + - col2 + + 18 AS col2 FROM tab1 AS cor0 ---- -36 -39 -78 query I rowsort SELECT col1 + + col2 * col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT DISTINCT col1 + col0 AS col1 FROM tab0 AS cor0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 + col2 col1 FROM tab1 AS cor0 ---- 109 67 80 skipif mysql # not compatible query I rowsort SELECT ALL - - CAST ( - 99 AS REAL ) * - col1 + + col0 AS col1 FROM tab1 AS cor0 ---- 1054 1367 2577 onlyif mysql # use DIV operator for integer division query I rowsort label-5806 SELECT col2 DIV + 16 FROM tab2 AS cor0 ---- 1 1 2 skipif mysql # not compatible query I rowsort label-5806 SELECT col2 / + 16 FROM tab2 AS cor0 ---- 1 1 2 query I rowsort SELECT ALL + - col2 * + col1 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL - - 99 * ( col0 ) * col0 + col1 FROM tab2 AS cor0 ---- 4882 602375 617876 query I rowsort SELECT + 38 + cor0.col1 AS col1 FROM tab2 AS cor0 ---- 55 69 97 query I rowsort SELECT ALL - col1 + 49 FROM tab1 AS cor0 ---- 23 36 39 query I rowsort SELECT col2 + - col2 + - col0 * + 19 FROM tab2 AS cor0 ---- -133 -1482 -1501 onlyif mysql # use DIV operator for integer division query I rowsort label-5812 SELECT + ( + ( - col2 ) ) + cor0.col0 DIV - 22 FROM tab1 AS cor0 ---- -54 -59 -99 skipif mysql # not compatible query I rowsort label-5812 SELECT + ( + ( - col2 ) ) + cor0.col0 / - 22 FROM tab1 AS cor0 ---- -54 -59 -99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5813 SELECT + CAST( + col0 AS SIGNED ) * col0 + col0 FROM tab1 AS cor0 ---- 12 4160 6480 skipif mysql # not compatible query I rowsort label-5813 SELECT + CAST ( + col0 AS INTEGER ) * col0 + col0 FROM tab1 AS cor0 ---- 12 4160 6480 onlyif mysql # use DIV operator for integer division query I rowsort label-5814 SELECT DISTINCT + 23 DIV cor0.col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5814 SELECT DISTINCT + 23 / cor0.col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + 21 * ( col2 ) FROM tab0 AS cor0 ---- 1722 21 693 query I rowsort SELECT ALL - ( + col2 ) * + col2 + col2 * + col0 + - col2 FROM tab2 AS cor0 ---- -567 1326 1520 query I rowsort SELECT DISTINCT - - cor0.col0 * - 42 + + col0 FROM tab2 AS cor0 ---- -287 -3198 -3239 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 + col2 col2 FROM tab1 AS cor0 ---- -7 16 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - ( - col1 ) col0 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT + 84 * col2 AS col0 FROM tab2 AS cor0 ---- 2184 2268 3192 query I rowsort SELECT DISTINCT cor0.col1 + col1 * - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT + 44 * col1 FROM tab2 AS cor0 ---- 1364 2596 748 query I rowsort SELECT DISTINCT col1 - col1 FROM tab1 ---- 0 query I rowsort SELECT DISTINCT + - 0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 0 query I rowsort SELECT col1 * col0 * col1 + cor0.col1 * + col0 FROM tab2 AS cor0 ---- 24174 276120 6944 onlyif mysql # use DIV operator for integer division query I rowsort label-5826 SELECT - col1 DIV col1 - col1 AS col1 FROM tab1 AS cor0 ---- -11 -14 -27 skipif mysql # not compatible query I rowsort label-5826 SELECT - col1 / col1 - col1 AS col1 FROM tab1 AS cor0 ---- -11 -14 -27 query I rowsort SELECT ALL + col2 + - col1 + + col0 FROM tab1 AS cor0 ---- 111 163 31 query I rowsort SELECT ALL - - 56 AS col1 FROM tab0 AS cor0 ---- 56 56 56 query I rowsort SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab0, tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT - + 29 FROM tab0 AS cor0 ---- -29 -29 -29 onlyif mysql # use DIV operator for integer division query I rowsort label-5831 SELECT DISTINCT - col0 * cor0.col1 + ( col0 ) DIV col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif mysql # not compatible query I rowsort label-5831 SELECT DISTINCT - col0 * cor0.col1 + ( col0 ) / col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-5832 SELECT ALL + cor0.col1 DIV - col0 + col1 + col0 FROM tab0 AS cor0 ---- 107 130 179 skipif mysql # not compatible query I rowsort label-5832 SELECT ALL + cor0.col1 / - col0 + col1 + col0 FROM tab0 AS cor0 ---- 107 130 179 query I rowsort SELECT 95 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 query I rowsort SELECT ALL - + col0 - col1 FROM tab2 AS cor0 ---- -137 -38 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-5835 SELECT - col0 DIV col2 - - col0 FROM tab0 AS cor0 ---- 0 24 88 skipif mysql # not compatible query I rowsort label-5835 SELECT - col0 / col2 - - col0 FROM tab0 AS cor0 ---- 0 24 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5836 SELECT DISTINCT col0 * + CAST( NULL AS DECIMAL ) + col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5836 SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) + col1 FROM tab1 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5837 SELECT DISTINCT + + col2 * 57 + - col1 DIV + col2 col0 FROM tab0 AS cor0 ---- -40 1879 4673 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5837 SELECT DISTINCT + + col2 * 57 + - col1 / + col2 col0 FROM tab0 AS cor0 ---- -40 1879 4673 query I rowsort SELECT ALL + - col0 * - col0 FROM tab2 cor0 ---- 49 6084 6241 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5839 SELECT + col1 + + CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0 ---- 29 74 93 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5839 SELECT + col1 + + CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0 ---- 29 74 93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 col0 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT 87 - col0 AS col0 FROM tab1 ---- 23 7 84 query I rowsort SELECT + ( col2 ) * 83 FROM tab1 ---- 4482 4731 7968 query I rowsort SELECT - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to b234798d4706314ba14eaad539d0aa88 query I rowsort SELECT ALL + 56 * col0 FROM tab0 ---- 1344 1960 4984 query I rowsort SELECT DISTINCT cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-5846 SELECT ALL - tab1.col0 DIV + col2 AS col2 FROM tab1 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-5846 SELECT ALL - tab1.col0 / + col2 AS col2 FROM tab1 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5847 SELECT ALL + col0 DIV + col1 FROM tab2 AS cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-5847 SELECT ALL + col0 / + col1 FROM tab2 AS cor0 ---- 0 1 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 col0 FROM tab1 cor0 ---- -54 -57 -96 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2 ---- 3645 values hashing to d6394df0309139ffe20e7d96c77e26ee query I rowsort SELECT ALL + + col0 * col0 + - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 18 6025 6224 query I rowsort SELECT DISTINCT - ( + col1 ) AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT cor0.col2 + cor0.col1 FROM tab1, tab0 cor0 ---- 9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc query I rowsort SELECT + - col2 + - 78 FROM tab2 AS cor0 ---- -104 -105 -116 query I rowsort SELECT + col1 * + col1 + + col2 * - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 1557 6307 9408 query I rowsort SELECT ALL + col1 * 10 FROM tab0 cor0 ---- 860 910 970 query I rowsort SELECT DISTINCT cor0.col1 + 83 AS col2 FROM tab2 AS cor0 ---- 100 114 142 query I rowsort SELECT DISTINCT 70 * col1 FROM tab1 ---- 1820 700 910 query I rowsort SELECT + col2 + - cor0.col2 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col0 * col2 + col1 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT DISTINCT col0 * col0 * col0 + col2 * + col2 AS col2 FROM tab1 ---- 265393 2943 521216 query I rowsort SELECT DISTINCT + col0 * col2 AS col0 FROM tab2 WHERE ( + col0 ) NOT BETWEEN - col1 AND col2 + - col2 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + col1 col2 FROM tab0 ---- 2 62 62 query I rowsort SELECT ALL + col0 * - col2 + + col2 * col2 * - col0 FROM tab1 ---- -211584 -744960 -8910 query I rowsort SELECT DISTINCT - col0 * + col0 AS col0 FROM tab1 WHERE NOT - col1 + - col1 * + col0 BETWEEN + col0 * - col2 - col1 AND NULL ---- query I rowsort SELECT ALL + col0 * - col1 * col2 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT tab0.col0 * + col2 + + col0 * col0 + tab0.col1 FROM tab0 ---- 1357 1454 15310 query I rowsort SELECT DISTINCT - col1 * - col1 + + col2 * - col2 AS col1 FROM tab0 ---- 1557 6307 9408 query III rowsort SELECT * FROM tab2 WHERE NULL < col0 * - col0 * - col1 ---- query I rowsort SELECT col2 * col1 * col1 - tab0.col1 AS col2 FROM tab0 ---- 243982 678951 9312 query I rowsort SELECT ALL + col1 FROM tab0 WHERE NOT ( NULL ) >= NULL ---- query I rowsort SELECT ALL tab1.col2 - + tab1.col0 FROM tab1 ---- -7 16 51 query I rowsort SELECT col0 + + col1 AS col1 FROM tab2 WHERE col2 * col1 + - col2 * col1 BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT ALL - col1 * - col0 + - col2 * + col1 FROM tab2 ---- -620 3068 697 onlyif mysql # use DIV operator for integer division query I rowsort label-5874 SELECT DISTINCT + col0 DIV tab1.col1 + col0 AS col2 FROM tab1 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-5874 SELECT DISTINCT + col0 / tab1.col1 + col0 AS col2 FROM tab1 ---- 3 70 86 query I rowsort SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 * col2 ) ---- query III rowsort SELECT ALL * FROM tab0 WHERE NULL IN ( + col0 ) ---- query I rowsort SELECT col0 * col1 + + tab0.col2 FROM tab0 ---- 2097 3396 8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + + col0 col0 FROM tab2 ---- -24 19 62 query I rowsort SELECT ALL + col1 * col0 + col2 * - col0 FROM tab2 ---- -1659 2574 28 query I rowsort SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NULL IN ( col0 * col2 ) ---- query I rowsort SELECT - col1 + col2 * - col1 * col0 + + col0 * + col2 FROM tab2 ---- -117683 -48049 -5701 query I rowsort SELECT - + col1 * - col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ( col1 ) * 24 FROM tab0 AS cor0 ---- 2064 2184 2328 query I rowsort SELECT + + col0 * col2 + col1 * 89 AS col0 FROM tab2 cor0 ---- 2948 4515 7279 query I rowsort SELECT - ( - 61 ) * col2 + 60 * col0 * col2 FROM tab1 ---- 13014 222357 466656 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab2 AS cor1 ---- 972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * cor0.col1 col0 FROM tab0 cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-5888 SELECT DISTINCT + - col1 DIV col1 + col1 FROM tab1 cor0 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-5888 SELECT DISTINCT + - col1 / col1 + col1 FROM tab1 cor0 ---- 12 25 9 query I rowsort SELECT + 69 * - tab0.col0 AS col0 FROM tab0 ---- -1656 -2415 -6141 query I rowsort SELECT DISTINCT - col0 * cor0.col2 + 50 * 29 FROM tab2 AS cor0 ---- -1552 -578 1261 query I rowsort SELECT DISTINCT + col1 + + ( tab1.col0 ) AS col0 FROM tab1 ---- 29 74 93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f skipif mysql # not compatible query I rowsort SELECT DISTINCT + cor0.col2 * CAST ( col2 AS REAL ) * + col2 FROM tab1 cor0 ---- 157464 185193 884736 query I rowsort SELECT col1 + col0 * col0 AS col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT cor0.col1 - - 57 FROM tab0 cor0 ---- 143 148 154 query I rowsort SELECT - col1 * - col0 AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT col2 * 68 FROM tab0 AS cor0 ---- 2244 5576 68 query I rowsort SELECT ALL + col2 * - 11 + + 7 FROM tab0 ---- -356 -4 -895 query I rowsort SELECT + col1 + - cor0.col2 + col1 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 7449 8290 9505 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( - ( col1 - col0 ) ) + col2 * col2 + - 22 * + col1 col2 FROM tab0 AS cor0 ---- -2195 -865 4720 query I rowsort SELECT + ( 27 + col2 ) * col2 AS col2 FROM tab1 ---- 11808 4374 4788 onlyif mysql # use DIV operator for integer division query I rowsort label-5902 SELECT - - 50 - cor0.col2 DIV col1 AS col2 FROM tab2 AS cor0 ---- 48 50 50 skipif mysql # not compatible query I rowsort label-5902 SELECT - - 50 - cor0.col2 / col1 AS col2 FROM tab2 AS cor0 ---- 48 50 50 query I rowsort SELECT DISTINCT + ( - cor0.col1 ) FROM tab1 AS cor0 ---- -10 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5904 SELECT - - CAST( cor0.col2 AS SIGNED ) + col2 * col2 AS col2 FROM tab2 AS cor0 ---- 1482 702 756 skipif mysql # not compatible query I rowsort label-5904 SELECT - - CAST ( cor0.col2 AS INTEGER ) + col2 * col2 AS col2 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT 42 - col2 AS col1 FROM tab2 AS cor0 ---- 15 16 4 query I rowsort SELECT + cor0.col1 * cor0.col0 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba query I rowsort SELECT - col0 + col2 * + col2 AS col1 FROM tab2 AS cor0 ---- 1365 598 722 query I rowsort SELECT - col0 * col2 + col1 AS col0 FROM tab0 ---- -706 -7207 62 query I rowsort SELECT - 53 * - col0 FROM tab0 AS cor0 ---- 1272 1855 4717 onlyif mysql # use DIV operator for integer division query I rowsort label-5910 SELECT ALL - + col0 DIV + col0 AS col2 FROM tab1 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5910 SELECT ALL - + col0 / + col0 AS col2 FROM tab1 cor0 ---- -1 -1 -1 query I rowsort SELECT + - col2 + + cor0.col1 AS col0 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-5912 SELECT - + 37 + col1 * - col1 DIV col1 FROM tab0 AS cor0 ---- -123 -128 -134 skipif mysql # not compatible query I rowsort label-5912 SELECT - + 37 + col1 * - col1 / col1 FROM tab0 AS cor0 ---- -123 -128 -134 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col2 + col2 col0 FROM tab1 cor0 ---- 0 query I rowsort SELECT - col0 * col1 + col1 + + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -1954 -3263 -7919 query I rowsort SELECT DISTINCT 36 * col2 AS col2 FROM tab0 ---- 1188 2952 36 query I rowsort SELECT + + cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT - 74 * + col1 AS col2 FROM tab2 ---- -1258 -2294 -4366 query I rowsort SELECT DISTINCT 30 + + tab0.col1 + + col0 AS col1 FROM tab0 ---- 140 162 210 query I rowsort SELECT - + cor1.col1 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f query I rowsort SELECT ALL col0 * col0 AS col0 FROM tab2 ---- 49 6084 6241 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5921 SELECT + CAST( NULL AS SIGNED ) - + col1 * + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5921 SELECT + CAST ( NULL AS INTEGER ) - + col1 * + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query IIIIII rowsort SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) >= ( NULL ) ---- query I rowsort SELECT DISTINCT + 4 AS col2 FROM tab2, tab2 AS cor0 ---- 4 onlyif mysql # use DIV operator for integer division query I rowsort label-5924 SELECT 30 - 13 * col1 DIV + cor0.col1 FROM tab2 AS cor0 ---- 17 17 17 skipif mysql # not compatible query I rowsort label-5924 SELECT 30 - 13 * col1 / + cor0.col1 FROM tab2 AS cor0 ---- 17 17 17 query I rowsort SELECT - 23 + - col1 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- -1557 -669 -860 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + col2 * + cor0.col1 col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2 ---- 81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7 query I rowsort SELECT DISTINCT + 21 AS col0 FROM tab1 ---- 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 49 col0 FROM tab1 ---- 49 49 49 query I rowsort SELECT col0 * + 31 AS col2 FROM tab2 ---- 217 2418 2449 query I rowsort SELECT - col1 * ( col2 ) FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT - 24 * col2 AS col2 FROM tab2 AS cor0 ---- -624 -648 -912 query I rowsort SELECT col1 * - tab0.col2 FROM tab0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-5934 SELECT + col0 DIV + 67 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5934 SELECT + col0 / + 67 FROM tab0 ---- 0 0 1 query I rowsort SELECT DISTINCT + tab1.col1 AS col0 FROM tab1, tab2, tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT - tab1.col1 - col0 AS col2 FROM tab1 ---- -29 -74 -93 skipif mysql # not compatible query I rowsort SELECT CAST ( + col2 AS REAL ) * - col2 * col1 AS col0 FROM tab0 ---- -611884 -93654 -97 query I rowsort SELECT col0 * + cor0.col1 - + col0 AS col0 FROM tab0 AS cor0 ---- 2040 3360 8010 onlyif mysql # use DIV operator for integer division query I rowsort label-5939 SELECT + col1 DIV - col1 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5939 SELECT + col1 / - col1 FROM tab2 ---- -1 -1 -1 query I rowsort SELECT DISTINCT + cor0.col0 AS col2 FROM tab2, tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT + col0 * col2 - col1 AS col0 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 - cor0.col0 col1 FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT DISTINCT col2 - col0 * col2 AS col0 FROM tab1 AS cor0 ---- -108 -3591 -7584 onlyif mysql # use DIV operator for integer division query I rowsort label-5945 SELECT col0 - - col0 DIV col1 FROM tab1 AS cor0 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-5945 SELECT col0 - - col0 / col1 FROM tab1 AS cor0 ---- 3 70 86 query IIIIII rowsort SELECT * FROM tab1, tab2 AS cor0 WHERE ( NULL ) = ( NULL ) ---- query I rowsort SELECT ALL col1 - tab0.col2 * col1 FROM tab0 ---- -2752 -7371 0 query I rowsort SELECT ALL col0 * tab2.col0 - + col1 FROM tab2 ---- 18 6025 6224 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col1 + col1 col0 FROM tab1 ---- 110 182 702 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * - col2 col0 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT col0 * + col0 + + tab2.col2 FROM tab2 ---- 6110 6279 76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * col0 * tab2.col0 col2 FROM tab2 ---- -343 -474552 -493039 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + - col2 + - col1 col2 FROM tab1 ---- -10 -13 -26 query I rowsort SELECT DISTINCT + col2 * tab2.col2 + - tab2.col2 - col2 * col2 FROM tab2 ---- -26 -27 -38 query I rowsort SELECT ALL - col1 * + col2 AS col2 FROM tab0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-5956 SELECT DISTINCT + col1 + col0 DIV col2 AS col0 FROM tab1 cor0 ---- 11 13 26 skipif mysql # not compatible query I rowsort label-5956 SELECT DISTINCT + col1 + col0 / col2 AS col0 FROM tab1 cor0 ---- 11 13 26 query I rowsort SELECT col0 + - col0 * - col2 FROM tab0 cor0 ---- 70 7387 816 query I rowsort SELECT ALL - col0 - col1 AS col2 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT ALL col2 * + col2 * + cor0.col2 + + col2 + col1 FROM tab1 cor0 ---- 157544 185260 884845 onlyif mysql # use DIV operator for integer division query I rowsort label-5960 SELECT ALL + col1 - - col1 DIV col2 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-5960 SELECT ALL + col1 - - col1 / col2 FROM tab1 ---- 10 13 26 query I rowsort SELECT + cor0.col1 * col2 + col1 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT DISTINCT + col0 + - col2 + col2 * - cor0.col2 FROM tab2 AS cor0 ---- -1403 -624 -749 query I rowsort SELECT - tab0.col0 + col2 * + col0 FROM tab0 ---- 0 7209 768 onlyif mysql # use DIV operator for integer division query I rowsort label-5964 SELECT - col2 DIV - col0 + - col1 * col1 FROM tab0 ---- -7395 -8281 -9409 skipif mysql # not compatible query I rowsort label-5964 SELECT - col2 / - col0 + - col1 * col1 FROM tab0 ---- -7395 -8281 -9409 query I rowsort SELECT ALL - col0 * - col0 * tab0.col1 AS col2 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT - col2 - col2 AS col2 FROM tab1 ---- -108 -114 -192 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 * col0 + col2 col1 FROM tab0 cor0 ---- 2097 3396 8181 onlyif mysql # use DIV operator for integer division query I rowsort label-5968 SELECT + + col0 DIV col1 col0 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5968 SELECT + + col0 / col1 col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5969 SELECT col2 * col0 * - col1 + col2 DIV col1 FROM tab1 ---- -36475 -4210 -99833 skipif mysql # not compatible query I rowsort label-5969 SELECT col2 * col0 * - col1 + col2 / col1 FROM tab1 ---- -36475 -4210 -99833 onlyif mysql # use DIV operator for integer division query I rowsort label-5970 SELECT DISTINCT + - col0 + col2 * - col1 DIV - col1 FROM tab0 AS cor0 ---- -34 -7 9 skipif mysql # not compatible query I rowsort label-5970 SELECT DISTINCT + - col0 + col2 * - col1 / - col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT DISTINCT col1 * - col2 * col2 FROM tab1 ---- -119808 -32490 -75816 query I rowsort SELECT DISTINCT - col0 * + col0 AS col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-5973 SELECT col2 DIV col0 AS col0 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5973 SELECT col2 / col0 AS col0 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT cor0.col0 * - col2 + + col1 AS col2 FROM tab1 cor0 ---- -136 -3638 -7667 query I rowsort SELECT ALL + + col2 * col0 - + col2 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT col2 + - 93 * col0 AS col2 FROM tab0 ---- -2199 -3254 -8195 query I rowsort SELECT - col0 * col1 + - col1 FROM tab2 ---- -1360 -248 -4661 onlyif mysql # use DIV operator for integer division query I rowsort label-5978 SELECT DISTINCT - tab0.col2 DIV + 68 FROM tab0 ---- -1 0 skipif mysql # not compatible query I rowsort label-5978 SELECT DISTINCT - tab0.col2 / + 68 FROM tab0 ---- -1 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5979 SELECT col0 DIV tab2.col0 + + 52 AS col1 FROM tab2 ---- 53 53 53 skipif mysql # not compatible query I rowsort label-5979 SELECT col0 / tab2.col0 + + 52 AS col1 FROM tab2 ---- 53 53 53 query I rowsort SELECT tab2.col0 * col0 + + 88 FROM tab2 ---- 137 6172 6329 query I rowsort SELECT ALL col1 + - 58 AS col1 FROM tab0 ---- 28 33 39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + - 98 col0 FROM tab1 ---- -101 -162 -178 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5983 SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-5983 SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col0 + + 61 * + col2 col1 FROM tab1 AS cor0 ---- 12256 3303 7573 query I rowsort SELECT + cor0.col2 * col2 + - col1 FROM tab0 cor0 ---- -96 1003 6633 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5986 SELECT ALL - CAST( NULL AS SIGNED ) * ( + cor0.col2 ) AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-5986 SELECT ALL - CAST ( NULL AS INTEGER ) * ( + cor0.col2 ) AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5987 SELECT col1 + CAST( NULL AS SIGNED ) * col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5987 SELECT col1 + CAST ( NULL AS INTEGER ) * col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col1 * + col0 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT ALL col0 * + ( - col2 ) FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT 78 * col1 FROM tab0 AS cor0 ---- 6708 7098 7566 query I rowsort SELECT DISTINCT - - col2 + + col1 * - col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5992 SELECT CAST( NULL AS SIGNED ) * 82 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5992 SELECT CAST ( NULL AS INTEGER ) * 82 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 + + 36 FROM tab0 AS cor0 ---- 125 60 71 query I rowsort SELECT + ( - col2 ) + + col1 * - col1 AS col1 FROM tab2 AS cor0 ---- -327 -3507 -988 query I rowsort SELECT + 14 AS col1 FROM tab1 cor0 ---- 14 14 14 query I rowsort SELECT ALL - - col2 + col1 * - col2 AS col0 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT + - 55 FROM tab1 AS cor0 ---- -55 -55 -55 query I rowsort SELECT DISTINCT 44 AS col0 FROM tab0 AS cor0 ---- 44 query I rowsort SELECT DISTINCT + col2 + col1 * col2 FROM tab0 cor0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT - ( - col2 ) + col1 * + col1 AS col0 FROM tab0 AS cor0 ---- 7429 8363 9410 query I rowsort SELECT DISTINCT - col2 + + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT ALL + - ( + col2 ) - + col2 FROM tab2 AS cor0 ---- -52 -54 -76 query I rowsort SELECT ALL + 28 * + col2 + col2 FROM tab2 AS cor0 ---- 1102 754 783 query I rowsort SELECT ALL - - ( - col2 ) + cor0.col0 * + cor0.col0 * + col1 FROM tab1 AS cor0 ---- 180 40903 83104 query I rowsort SELECT DISTINCT + 17 + col2 + ( ( col2 ) ) AS col0 FROM tab1 ---- 125 131 209 query I rowsort SELECT DISTINCT + - 68 AS col2 FROM tab1 AS cor0 ---- -68 query I rowsort SELECT DISTINCT - ( + cor0.col2 ) AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT + col0 * col0 + + col1 AS col1 FROM tab2 AS cor0 ---- 6143 6258 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 57 * col2 col0 FROM tab1 cor0 ---- 3078 3249 5472 onlyif mysql # use DIV operator for integer division query I rowsort label-6010 SELECT DISTINCT + + ( col0 ) DIV + ( col2 * col1 ) + + col2 * col1 + - cor0.col0 FROM tab1 AS cor0 ---- 1168 1401 506 skipif mysql # not compatible query I rowsort label-6010 SELECT DISTINCT + + ( col0 ) / + ( col2 * col1 ) + + col2 * col1 + - cor0.col0 FROM tab1 AS cor0 ---- 1168 1401 506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 3 - col1 col2 FROM tab2 AS cor0 ---- -14 -28 -56 onlyif mysql # use DIV operator for integer division query I rowsort label-6012 SELECT ALL cor0.col2 + - col1 DIV - 64 AS col2 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-6012 SELECT ALL cor0.col2 + - col1 / - 64 AS col2 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL + cor0.col2 + col2 * 16 * - 39 + + col1 FROM tab2 AS cor0 ---- -16139 -16790 -23657 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * col2 col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL - col1 * + cor0.col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-6016 SELECT cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6016 SELECT cor0.col1 / col1 AS col2 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT - + col2 * 64 FROM tab2 AS cor0 ---- -1664 -1728 -2432 onlyif mysql # use DIV operator for integer division query I rowsort label-6018 SELECT ALL + col2 DIV 61 + col1 FROM tab1 AS cor0 ---- 10 14 26 skipif mysql # not compatible query I rowsort label-6018 SELECT ALL + col2 / 61 + col1 FROM tab1 AS cor0 ---- 10 14 26 query I rowsort SELECT ALL + col2 * - col0 + + ( - col1 ) FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT DISTINCT - cor0.col1 + - 40 FROM tab2 AS cor0 ---- -57 -71 -99 query I rowsort SELECT - col0 * col0 + col0 AS col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 query I rowsort SELECT DISTINCT cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 54 57 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6023 SELECT 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-6023 SELECT 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-6024 SELECT DISTINCT tab1.col1 * col2 + - CAST( + ( col1 ) AS SIGNED ) * 70 FROM tab1 ---- -130 -416 338 skipif mysql # not compatible query I rowsort label-6024 SELECT DISTINCT tab1.col1 * col2 + - CAST ( + ( col1 ) AS INTEGER ) * 70 FROM tab1 ---- -130 -416 338 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6025 SELECT col0 * CAST( NULL AS SIGNED ) + cor0.col2 AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6025 SELECT col0 * CAST ( NULL AS INTEGER ) + cor0.col2 AS col0 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 + 27 * cor0.col1 FROM tab1 AS cor0 ---- 213 255 648 query I rowsort SELECT - col0 * + 77 + col1 FROM tab0 cor0 ---- -1762 -2598 -6762 onlyif mysql # use DIV operator for integer division query I rowsort label-6028 SELECT ALL - col1 DIV - cor0.col2 col2 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6028 SELECT ALL - col1 / - cor0.col2 col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * + col1 + - 73 FROM tab2 cor0 ---- 216 3408 888 query I rowsort SELECT DISTINCT - col1 + + col1 * + col0 AS col2 FROM tab1 cor0 ---- 1027 52 630 query I rowsort SELECT DISTINCT - - col2 - cor0.col2 FROM tab0 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + col0 * col1 * + col2 col2 FROM tab1 AS cor0 ---- 36544 4215 99920 query I rowsort SELECT ALL - + col0 + - 62 AS col2 FROM tab0 AS cor0 ---- -151 -86 -97 query I rowsort SELECT + - col1 * + col0 + 91 FROM tab1 AS cor0 ---- -549 -949 13 query I rowsort SELECT ALL - tab1.col0 + col0 AS col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT + col1 * 49 FROM tab1 AS cor0 ---- 1274 490 637 onlyif mysql # use DIV operator for integer division query I rowsort label-6037 SELECT + col2 + col1 DIV ( - col0 ) FROM tab1 AS cor0 ---- 46 57 96 skipif mysql # not compatible query I rowsort label-6037 SELECT + col2 + col1 / ( - col0 ) FROM tab1 AS cor0 ---- 46 57 96 query I rowsort SELECT col2 + + 83 AS col2 FROM tab2 AS cor0 ---- 109 110 121 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6039 SELECT CAST( col2 AS SIGNED ) + col0 * - col1 FROM tab1 AS cor0 ---- -24 -583 -944 skipif mysql # not compatible query I rowsort label-6039 SELECT CAST ( col2 AS INTEGER ) + col0 * - col1 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT - + col0 + col2 AS col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT + 45 * col1 FROM tab1 AS cor0 ---- 1170 450 585 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab2 AS cor2 ---- 3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c query IIIIIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1 ---- 243 values hashing to 70c6a01760d7239f3003db4da92180a4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 89 col1 FROM tab2 AS cor0 ---- -89 -89 -89 query I rowsort SELECT - 20 * col2 + - col0 FROM tab2 ---- -547 -598 -839 query I rowsort SELECT ALL + 74 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to dc22979e6d261795bd3ce2990fdbbf82 query I rowsort SELECT DISTINCT 48 FROM tab2, tab1 AS cor0 ---- 48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 9 col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b query I rowsort SELECT tab0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT ALL + 12 * col2 + col2 AS col1 FROM tab1 ---- 1248 702 741 query I rowsort SELECT - col1 + + col1 * - 98 AS col2 FROM tab2 ---- -1683 -3069 -5841 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 63 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2 query I rowsort SELECT ALL ( - tab2.col2 ) * col0 + col2 FROM tab2 ---- -162 -2002 -2964 query I rowsort SELECT DISTINCT col2 * col2 + 89 * tab1.col0 AS col2 FROM tab1 ---- 16336 3183 8945 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6055 SELECT ALL col0 + - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6055 SELECT ALL col0 + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 9 FROM tab2, tab0 cor0, tab0 AS cor1, tab1 AS cor2 ---- 9 query I rowsort SELECT DISTINCT - - 45 FROM tab0 AS cor0 ---- 45 onlyif mysql # use DIV operator for integer division query I rowsort label-6058 SELECT DISTINCT + col2 * cor0.col0 DIV cor0.col2 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-6058 SELECT DISTINCT + col2 * cor0.col0 / cor0.col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 7 78 79 query I rowsort SELECT ALL + ( ( col2 ) ) FROM tab2 ---- 26 27 38 query I rowsort SELECT - + col1 + + col0 - + col2 AS col0 FROM tab0 AS cor0 ---- -63 -84 -95 query I rowsort SELECT + - col0 * col0 + - col0 FROM tab2 AS cor0 ---- -56 -6162 -6320 query I rowsort SELECT 98 * + col1 FROM tab1 ---- 1274 2548 980 query I rowsort SELECT + + cor0.col1 - col0 * col2 * col1 AS col1 FROM tab1 AS cor0 ---- -36470 -4186 -99827 query I rowsort SELECT - col1 + + col1 - cor0.col0 * 2 * col2 AS col1 FROM tab0 AS cor0 ---- -14596 -1584 -70 query I rowsort SELECT - + col2 + - col0 * ( + col0 ) * col2 - cor0.col2 * + 21 * col0 FROM tab1 AS cor0 ---- -310137 -3942 -775776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 89 * + col1 * + 4 col1 FROM tab1 AS cor0 ---- 3560 4628 9256 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 + + col1 + ( - 26 ) col2 FROM tab1 AS cor0 ---- -3 -80 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-6069 SELECT - - 70 DIV - col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6069 SELECT - - 70 / - col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6070 SELECT ALL col2 DIV col0 + + col0 AS col2 FROM tab1 ---- 21 64 81 skipif mysql # not compatible query I rowsort label-6070 SELECT ALL col2 / col0 + + col0 AS col2 FROM tab1 ---- 21 64 81 query I rowsort SELECT DISTINCT - + cor0.col2 * col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL 58 * - col0 + + ( 69 ) FROM tab0 AS cor0 ---- -1323 -1961 -5093 query I rowsort SELECT col1 - col1 * + col1 AS col1 FROM tab2 AS cor0 ---- -272 -3422 -930 query I rowsort SELECT DISTINCT 21 AS col2 FROM tab1 ---- 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 * col2 + - ( - col2 ) col0 FROM tab0 cor0 ---- -1056 -6642 0 query I rowsort SELECT - col0 * - col0 * + col2 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT - - col0 * col1 + ( + col1 ) * col2 AS col2 FROM tab0 AS cor0 ---- 15561 3492 4902 query I rowsort SELECT - col0 * col1 * col1 AS col1 FROM tab0 AS cor0 ---- -177504 -329315 -737009 query I rowsort SELECT DISTINCT - col2 * cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT col0 + - col2 AS col1 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT + 36 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 4d1892e880125dc90345721151acb22c query I rowsort SELECT + col2 - + col2 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6084 SELECT + col1 * col1 - - tab2.col2 DIV + col1 FROM tab2 ---- 291 3481 961 skipif mysql # not compatible query I rowsort label-6084 SELECT + col1 * col1 - - tab2.col2 / + col1 FROM tab2 ---- 291 3481 961 query I rowsort SELECT - col1 * - ( 44 ) FROM tab1 AS cor0 ---- 1144 440 572 query I rowsort SELECT DISTINCT + 12 FROM tab0, tab0 cor0, tab2 AS cor1 ---- 12 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e query I rowsort SELECT + col1 * + 16 FROM tab2 AS cor0 ---- 272 496 944 query I rowsort SELECT + + col2 * + col1 AS col0 FROM tab2 AS cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + col0 col2 FROM tab0 cor0 ---- 178 48 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 94 col2 FROM tab1 AS cor0 ---- 94 query I rowsort SELECT ALL + + 78 + col1 + col2 * 48 AS col0 FROM tab1 cor0 ---- 2696 2824 4699 query I rowsort SELECT DISTINCT - 1 + tab1.col2 AS col0 FROM tab1, tab0 AS cor0 ---- 53 56 95 query I rowsort SELECT DISTINCT + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT + - col0 * - 82 AS col2 FROM tab1 AS cor0 ---- 246 5248 6560 query I rowsort SELECT - + col2 + + col1 + col1 AS col1 FROM tab0 AS cor0 ---- 100 139 193 query I rowsort SELECT 31 * col0 AS col1 FROM tab2 AS cor0 ---- 217 2418 2449 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6098 SELECT - - CAST( - 91 AS SIGNED ) col2 FROM tab1 AS cor0 ---- -91 -91 -91 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6098 SELECT - - CAST ( - 91 AS INTEGER ) col2 FROM tab1 AS cor0 ---- -91 -91 -91 query I rowsort SELECT + - col1 + + col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - tab1.col0 AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT 38 + ( cor0.col2 ) AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 5d4444e709ceda9c70ea14e40445f143 query I rowsort SELECT ALL + + 18 + + col1 * col1 + col2 FROM tab1 cor0 ---- 175 283 748 query I rowsort SELECT ALL - + ( 75 ) FROM tab2 AS cor0 ---- -75 -75 -75 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6104 SELECT DISTINCT CAST( 16 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 16 skipif mysql # not compatible query I rowsort label-6104 SELECT DISTINCT CAST ( 16 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 16 query I rowsort SELECT DISTINCT ( + cor0.col2 ) * + col1 * col0 + - 77 FROM tab1 AS cor0 ---- 36403 4135 99763 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6106 SELECT ALL + - CAST( + 19 AS SIGNED ) FROM tab1 AS cor0 ---- -19 -19 -19 skipif mysql # not compatible query I rowsort label-6106 SELECT ALL + - CAST ( + 19 AS INTEGER ) FROM tab1 AS cor0 ---- -19 -19 -19 query I rowsort SELECT DISTINCT col0 + - col2 * col1 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT ALL cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT ALL 5 + - ( + col0 * 23 ) FROM tab1 AS cor0 ---- -1467 -1835 -64 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6110 SELECT - col2 + 28 * tab1.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6110 SELECT - col2 + 28 * tab1.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort SELECT CAST ( col1 AS REAL ) + col1 * 19 FROM tab2 ---- 1180 340 620 query I rowsort SELECT - ( + ( col1 ) * + ( col0 ) ) FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT ALL 1 AS col0 FROM tab0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-6114 SELECT DISTINCT - col1 DIV - col1 + col1 FROM tab2 AS cor0 ---- 18 32 60 skipif mysql # not compatible query I rowsort label-6114 SELECT DISTINCT - col1 / - col1 + col1 FROM tab2 AS cor0 ---- 18 32 60 query I rowsort SELECT DISTINCT + 64 * - cor0.col0 + - 16 FROM tab1 AS cor0 ---- -208 -4112 -5136 query I rowsort SELECT 12 + - col1 AS col1 FROM tab0 AS cor0 ---- -74 -79 -85 query I rowsort SELECT DISTINCT - 76 FROM tab1, tab0 AS cor0 ---- -76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 50 col1 FROM tab0 ---- 50 50 50 query I rowsort SELECT ALL + + col1 * + col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT DISTINCT col2 + ( col2 ) * col2 FROM tab2 cor0 ---- 1482 702 756 query I rowsort SELECT + col1 * - cor0.col2 * ( col2 ) FROM tab0 AS cor0 ---- -611884 -93654 -97 query I rowsort SELECT ALL + col2 * - ( col0 ) FROM tab1 AS cor0 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-6123 SELECT DISTINCT - col2 DIV - col2 + col2 AS col0 FROM tab1 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-6123 SELECT DISTINCT - col2 / - col2 + col2 AS col0 FROM tab1 ---- 55 58 97 query I rowsort SELECT ALL - 52 + col2 AS col0 FROM tab1 ---- 2 44 5 query I rowsort SELECT ALL - 51 AS col1 FROM tab0 ---- -51 -51 -51 query I rowsort SELECT ALL 27 + - col2 * - col0 * 28 FROM tab2 ---- 5319 56811 84083 query IIIIIIIII rowsort SELECT * FROM tab1, tab0, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + cor0.col2 * - tab0.col1 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6128 SELECT ALL col1 DIV col0 + tab0.col1 FROM tab0 ---- 89 92 99 skipif mysql # not compatible query I rowsort label-6128 SELECT ALL col1 / col0 + tab0.col1 FROM tab0 ---- 89 92 99 query I rowsort SELECT ALL - col1 * tab2.col2 AS col2 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT col1 * - 69 - 97 * - col1 FROM tab1 cor0 ---- 280 364 728 query I rowsort SELECT + col2 * + 57 + - col0 FROM tab0 cor0 ---- 1857 22 4585 query I rowsort SELECT ALL - + col2 + + col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col2 + col1 * + col1 FROM tab0 AS cor0 ---- 7363 8199 9408 query I rowsort SELECT ALL + - col2 * col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + + col2 + 77 * + col2 FROM tab0 AS cor0 ---- 2574 6396 78 query I rowsort SELECT DISTINCT - - col1 + col1 * + 77 + - col1 * ( + 47 ) * cor0.col1 FROM tab2 AS cor0 ---- -12257 -159005 -42749 query I rowsort SELECT DISTINCT - + cor0.col2 - 68 * + col1 AS col1 FROM tab1 cor0 ---- -1822 -737 -980 query I rowsort SELECT col0 * + 53 AS col0 FROM tab0 AS cor0 ---- 1272 1855 4717 query I rowsort SELECT + col1 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col0 * col1 * col0 + + col2 * col1 * col0 + col0 * + col0 col2 FROM tab2 AS cor0 ---- 163372 484692 7427 onlyif mysql # use DIV operator for integer division query I rowsort label-6141 SELECT - 23 + - cor0.col1 DIV - 61 AS col2 FROM tab2 AS cor0 ---- -23 -23 -23 skipif mysql # not compatible query I rowsort label-6141 SELECT - 23 + - cor0.col1 / - 61 AS col2 FROM tab2 AS cor0 ---- -23 -23 -23 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2 ---- 972 values hashing to 2507aa9f48c3db94de9fec065edf3731 query I rowsort SELECT DISTINCT col2 * col1 + - col2 AS col1 FROM tab1 ---- 1152 1350 513 query I rowsort SELECT - 65 AS col0 FROM tab1 cor0 ---- -65 -65 -65 query I rowsort SELECT - 13 + + col1 FROM tab1 ---- -3 0 13 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab0.col2 * - col1 * 57 + + col1 col1 FROM tab0 ---- 161852 425425 5626 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6147 SELECT cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-6147 SELECT cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT ALL - - col1 + - col0 AS col1 FROM tab0 AS cor0 ---- 2 62 62 onlyif mysql # use DIV operator for integer division query I rowsort label-6149 SELECT ALL + col2 DIV col0 + - CAST( + 83 + col0 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0 ---- -13039 -240 -9408 skipif mysql # not compatible query I rowsort label-6149 SELECT ALL + col2 / col0 + - CAST ( + 83 + col0 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0 ---- -13039 -240 -9408 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col0 * + col2 col0 FROM tab2 ---- 162 2002 2964 query I rowsort SELECT col2 + col0 * 72 FROM tab2 ---- 531 5642 5726 query I rowsort SELECT DISTINCT + col1 * - 53 FROM tab0 ---- -4558 -4823 -5141 query I rowsort SELECT DISTINCT - col1 * 72 AS col2 FROM tab0 ---- -6192 -6552 -6984 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + - 27 col2 FROM tab2 AS cor0 ---- -20 51 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + - col2 * col0 col1 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT ALL + col2 * - col2 AS col0 FROM tab0 ---- -1 -1089 -6724 query I rowsort SELECT - tab0.col0 AS col0 FROM tab0, tab1, tab2 cor0 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6158 SELECT - col1 * CAST( 16 AS SIGNED ) + col1 AS col2 FROM tab1 ---- -150 -195 -390 skipif mysql # not compatible query I rowsort label-6158 SELECT - col1 * CAST ( 16 AS INTEGER ) + col1 AS col2 FROM tab1 ---- -150 -195 -390 query I rowsort SELECT + - col1 * col2 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * 18 col2 FROM tab1 AS cor0 ---- 1152 1440 54 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6161 SELECT ALL CAST( NULL AS SIGNED ) * - 93 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6161 SELECT ALL CAST ( NULL AS INTEGER ) * - 93 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( + col0 ) AS col0 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT + col1 + + col0 + - col1 AS col1 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT + ( + col0 ) * - col0 FROM tab0 cor0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT - 18 * col1 * col2 FROM tab2 cor0 ---- -11628 -15066 -27612 query I rowsort SELECT DISTINCT + + 81 * 5 FROM tab1 AS cor0 ---- 405 query I rowsort SELECT ALL + col1 * ( cor0.col0 ) FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT - 85 AS col0 FROM tab1, tab1 cor0 ---- -85 query I rowsort SELECT - 49 AS col2 FROM tab1 ---- -49 -49 -49 query I rowsort SELECT ALL + 91 AS col2 FROM tab0 ---- 91 91 91 query I rowsort SELECT ALL - col2 * - ( col1 + + col0 ) FROM tab0 ---- 132 14760 3630 query I rowsort SELECT ALL 30 FROM tab1, tab2 AS cor0 ---- 9 values hashing to da5de0c411a2c0f445400f1b63ea9f89 query I rowsort SELECT col0 * cor0.col1 * col1 AS col0 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT ( - ( + col2 ) ) + + col1 * + 94 AS col2 FROM tab0 AS cor0 ---- 8051 8472 9117 onlyif mysql # use DIV operator for integer division query I rowsort label-6175 SELECT DISTINCT + tab2.col1 DIV - col1 FROM tab2 ---- -1 skipif mysql # not compatible query I rowsort label-6175 SELECT DISTINCT + tab2.col1 / - col1 FROM tab2 ---- -1 onlyif mysql # use DIV operator for integer division query I rowsort label-6176 SELECT + ( - col2 ) DIV 47 + - col0 * col2 + ( 35 ) FROM tab1 AS cor0 ---- -128 -3614 -7647 skipif mysql # not compatible query I rowsort label-6176 SELECT + ( - col2 ) / 47 + - col0 * col2 + ( 35 ) FROM tab1 AS cor0 ---- -128 -3614 -7647 skipif mysql # not compatible query I rowsort SELECT - cor0.col0 - col1 * CAST ( col0 AS REAL ) FROM tab2 cor0 ---- -1422 -224 -4680 query I rowsort SELECT - col1 * col0 * col2 + - 43 + - col0 AS col2 FROM tab0 AS cor0 ---- -3473 -664250 -68179 query I rowsort SELECT + 64 + - col0 + - cor0.col0 FROM tab1 cor0 ---- -64 -96 58 query I rowsort SELECT col1 * - cor0.col2 - + ( - 31 * col2 ) FROM tab0 AS cor0 ---- -1815 -4920 -66 query I rowsort SELECT - + 78 AS col0 FROM tab2 AS cor0 ---- -78 -78 -78 query I rowsort SELECT DISTINCT - 74 + - cor0.col1 FROM tab1 AS cor0 ---- -100 -84 -87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * col1 + + 46 col0 FROM tab0 AS cor0 ---- -7350 -8235 -9363 onlyif mysql # use DIV operator for integer division query I rowsort label-6184 SELECT ALL col1 DIV 26 + col1 FROM tab1 ---- 10 13 27 skipif mysql # not compatible query I rowsort label-6184 SELECT ALL col1 / 26 + col1 FROM tab1 ---- 10 13 27 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6185 SELECT - cor0.col0 * col1 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6185 SELECT - cor0.col0 * col1 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + col1 + col1 + + ( ( + col1 ) ) * + col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT - col1 + + col0 * ( + 63 ) FROM tab1 cor0 ---- 163 4022 5027 query I rowsort SELECT + 40 * col0 * ( col0 ) AS col2 FROM tab0 AS cor0 ---- 23040 316840 49000 query I rowsort SELECT ALL - - col0 * col2 AS col1 FROM tab0 cor0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + + ( col2 ) col1 FROM tab2 AS cor0 ---- 104 117 34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6191 SELECT DISTINCT - + col0 * - CAST( + col2 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0 ---- 132 7389 878 skipif mysql # not compatible query I rowsort label-6191 SELECT DISTINCT - + col0 * - CAST ( + col2 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT DISTINCT - col2 + col1 * + col0 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT tab2.col2 * col1 * col1 AS col2 FROM tab2 ---- 10982 25947 90506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6194 SELECT + col0 * + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6194 SELECT + col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT + cor0.col0 * - cor0.col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT - 82 AS col0 FROM tab0 AS cor0 ---- -82 -82 -82 query I rowsort SELECT + + 57 + - col0 * + col0 AS col0 FROM tab2 AS cor0 ---- -6027 -6184 8 onlyif mysql # use DIV operator for integer division query I rowsort label-6198 SELECT - 57 DIV 13 FROM tab2 AS cor0 ---- -4 -4 -4 skipif mysql # not compatible query I rowsort label-6198 SELECT - 57 / 13 FROM tab2 AS cor0 ---- -4 -4 -4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6199 SELECT DISTINCT CAST( + 11 AS SIGNED ) FROM tab1, tab2 AS cor0 ---- 11 skipif mysql # not compatible query I rowsort label-6199 SELECT DISTINCT CAST ( + 11 AS INTEGER ) FROM tab1, tab2 AS cor0 ---- 11 query I rowsort SELECT + col1 + - tab2.col2 AS col2 FROM tab2 ---- -21 33 4 query I rowsort SELECT DISTINCT col0 * + col1 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 1120 704 81 onlyif mysql # use DIV operator for integer division query I rowsort label-6202 SELECT ALL col1 + col0 * - col0 - col2 DIV col1 FROM tab0 cor0 ---- -1128 -490 -7830 skipif mysql # not compatible query I rowsort label-6202 SELECT ALL col1 + col0 * - col0 - col2 / col1 FROM tab0 cor0 ---- -1128 -490 -7830 query I rowsort SELECT - col2 * + 87 AS col0 FROM tab0 AS cor0 ---- -2871 -7134 -87 query I rowsort SELECT ALL col2 + + ( - cor0.col0 ) - - col2 AS col1 FROM tab0 AS cor0 ---- -33 42 75 query I rowsort SELECT DISTINCT - col2 + col2 - col1 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT ALL col1 * col0 AS col2 FROM tab0 cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-6207 SELECT DISTINCT col1 DIV + col1 + + col1 * - col0 + + 21 DIV + col0 AS col0 FROM tab2 AS cor0 ---- -1342 -213 -4601 skipif mysql # not compatible query I rowsort label-6207 SELECT DISTINCT col1 / + col1 + + col1 * - col0 + + 21 / + col0 AS col0 FROM tab2 AS cor0 ---- -1342 -213 -4601 query I rowsort SELECT - col0 * 87 AS col2 FROM tab1 AS cor0 ---- -261 -5568 -6960 query I rowsort SELECT ALL + 34 - 22 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3 ---- 3645 values hashing to 81a27955147133c47c9e8e63dacc5c37 query I rowsort SELECT ALL col2 - + tab2.col2 * col1 FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT + 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 27 values hashing to 730dff78e83112374961ea711f98ebaa query I rowsort SELECT DISTINCT + - cor0.col1 * 5 FROM tab2 AS cor0 ---- -155 -295 -85 query I rowsort SELECT ALL - col2 - + ( - col1 ) * + tab0.col2 FROM tab0 ---- 2805 7380 96 query I rowsort SELECT - col2 * - 16 AS col2 FROM tab2 AS cor0 ---- 416 432 608 query I rowsort SELECT col2 + - col2 * cor0.col2 FROM tab1 AS cor0 ---- -2862 -3192 -9120 query I rowsort SELECT DISTINCT 16 * ( tab0.col2 ) AS col1 FROM tab0 ---- 1312 16 528 query I rowsort SELECT - + 59 + col1 * col1 FROM tab1 AS cor0 ---- 110 41 617 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 * - ( col2 ) col2 FROM tab1 AS cor0 ---- 2916 3249 9216 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6220 SELECT CAST( 31 AS SIGNED ) + - col1 * + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -2807 -66 -7431 skipif mysql # not compatible query I rowsort label-6220 SELECT CAST ( 31 AS INTEGER ) + - col1 * + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -2807 -66 -7431 query I rowsort SELECT 48 * - col2 FROM tab2 ---- -1248 -1296 -1824 query I rowsort SELECT col1 * col1 AS col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT - col0 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-6224 SELECT + col1 DIV col1 + + col2 FROM tab2 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-6224 SELECT + col1 / col1 + + col2 FROM tab2 ---- 27 28 39 query I rowsort SELECT ALL + ( col1 ) * - col2 + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -1168 -1401 -506 onlyif mysql # use DIV operator for integer division query I rowsort label-6226 SELECT ALL + col0 * col0 DIV + col0 col1 FROM tab2 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6226 SELECT ALL + col0 * col0 / + col0 col1 FROM tab2 ---- 7 78 79 query I rowsort SELECT - col1 * + col2 + + col0 AS col2 FROM tab2 AS cor0 ---- -1456 -567 -830 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + - col1 col0 FROM tab0 AS cor0 ---- -2 -62 query I rowsort SELECT DISTINCT 98 AS col2 FROM tab0 cor0 ---- 98 query I rowsort SELECT ALL 61 * col2 FROM tab0 AS cor0 ---- 2013 5002 61 query I rowsort SELECT DISTINCT - 28 AS col1 FROM tab1 AS cor0 ---- -28 query I rowsort SELECT + + col0 + col1 AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT - 87 + + col1 * + ( col1 * - col0 ) FROM tab0 AS cor0 ---- -177591 -329402 -737096 query I rowsort SELECT + - 39 + - col1 FROM tab0 AS cor0 ---- -125 -130 -136 query I rowsort SELECT ALL + ( col2 ) * - cor0.col1 + + 76 * - col0 + col0 FROM tab1 AS cor0 ---- -1629 -5370 -7248 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 62 col0 FROM tab2 AS cor0 ---- 62 query I rowsort SELECT ALL ( - col1 ) * col1 * col1 AS col2 FROM tab2 cor0 ---- -205379 -29791 -4913 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2 ---- 3645 values hashing to 199388980dc5177ebebcfdbc0408ba02 query I rowsort SELECT col2 * - 71 + col2 AS col2 FROM tab1 AS cor0 ---- -3780 -3990 -6720 query I rowsort SELECT ALL col2 + - col2 * + 87 AS col2 FROM tab1 AS cor0 ---- -4644 -4902 -8256 query I rowsort SELECT ALL + - cor0.col0 AS col1 FROM tab0 cor0 ---- -24 -35 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6242 SELECT ALL - cor0.col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-6242 SELECT ALL - cor0.col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-6243 SELECT col0 * col2 - - 9 DIV col2 FROM tab0 ---- 44 7298 792 skipif mysql # not compatible query I rowsort label-6243 SELECT col0 * col2 - - 9 / col2 FROM tab0 ---- 44 7298 792 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to d6394df0309139ffe20e7d96c77e26ee onlyif mysql # use DIV operator for integer division query I rowsort label-6245 SELECT DISTINCT + col2 DIV + ( - col0 ) FROM tab2 AS cor0 ---- -3 0 skipif mysql # not compatible query I rowsort label-6245 SELECT DISTINCT + col2 / + ( - col0 ) FROM tab2 AS cor0 ---- -3 0 query I rowsort SELECT DISTINCT - - ( 96 ) + col0 FROM tab1 AS cor0 ---- 160 176 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + - col2 col1 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT ALL - + ( col1 ) AS col1 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT ALL + col1 + + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT - - ( - 95 ) FROM tab1 AS cor0 ---- -95 -95 -95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 col0 FROM tab0, tab2, tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL ( - cor0.col2 ) AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT DISTINCT - 64 + + col0 FROM tab2 cor0 ---- -57 14 15 query I rowsort SELECT ALL + 65 * 14 AS col0 FROM tab2 AS cor0 ---- 910 910 910 query I rowsort SELECT DISTINCT - 18 * - 75 AS col2 FROM tab2 AS cor0 ---- 1350 query I rowsort SELECT ALL 70 + 81 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cf22002891a88578dbc2596c0472ad61 query I rowsort SELECT DISTINCT + 9 AS col0 FROM tab2, tab0 AS cor0 ---- 9 query I rowsort SELECT col0 - - col2 * col0 FROM tab1 cor0 ---- 165 3712 7760 query I rowsort SELECT ALL + 86 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 query I rowsort SELECT DISTINCT - 39 * - cor0.col0 - - col1 * col1 FROM tab0 AS cor0 ---- 10774 11752 8332 query I rowsort SELECT DISTINCT - col1 + - col0 * + cor0.col1 FROM tab1 AS cor0 ---- -104 -1053 -650 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + col0 * - cor0.col1 col0 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT - 82 * 97 FROM tab0 ---- -7954 -7954 -7954 query I rowsort SELECT DISTINCT - col2 * - tab1.col0 + + col1 * 96 AS col0 FROM tab1 ---- 2658 4608 8928 query I rowsort SELECT ( col0 * col0 ) FROM tab0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT + 33 AS col2 FROM tab0 cor0 ---- 33 query I rowsort SELECT - - col1 + col2 * + cor0.col0 + - col0 AS col0 FROM tab2 AS cor0 ---- 2009 213 2940 query I rowsort SELECT ALL col0 * col2 AS col2 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT - 7 + - col2 FROM tab0 AS cor0 ---- -40 -8 -89 query I rowsort SELECT DISTINCT 92 + - col1 AS col2 FROM tab0 cor0 ---- -5 1 6 query I rowsort SELECT + col0 + cor0.col0 + col0 AS col0 FROM tab2 cor0 ---- 21 234 237 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 24 col2 FROM tab2 ---- 24 24 24 query I rowsort SELECT ALL ( 56 ) + + col2 + 35 FROM tab0 ---- 124 173 92 query I rowsort SELECT ALL + col0 + - col1 AS col1 FROM tab2 ---- -24 19 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6275 SELECT ALL - col2 * + ( col0 ) + + col2 + CAST( + col1 + + col0 * col1 AS SIGNED ) FROM tab2 AS cor0 ---- -1604 2659 86 skipif mysql # not compatible query I rowsort label-6275 SELECT ALL - col2 * + ( col0 ) + + col2 + CAST ( + col1 + + col0 * col1 AS INTEGER ) FROM tab2 AS cor0 ---- -1604 2659 86 query I rowsort SELECT - col0 * ( cor0.col0 ) + + col2 AS col0 FROM tab1 AS cor0 ---- -4039 -6304 45 onlyif mysql # use DIV operator for integer division query I rowsort label-6277 SELECT ALL - col1 DIV col1 + + col2 AS col0 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-6277 SELECT ALL - col1 / col1 + + col2 AS col0 FROM tab1 AS cor0 ---- 53 56 95 query I rowsort SELECT ALL col0 + + col2 AS col2 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT - tab1.col2 * - 4 FROM tab1 ---- 216 228 384 onlyif mysql # use DIV operator for integer division query I rowsort label-6280 SELECT - + col0 DIV col2 + - 17 AS col0 FROM tab1 AS cor0 ---- -17 -17 -18 skipif mysql # not compatible query I rowsort label-6280 SELECT - + col0 / col2 + - 17 AS col0 FROM tab1 AS cor0 ---- -17 -17 -18 query I rowsort SELECT - - col2 + + col0 AS col0 FROM tab2 cor0 ---- 104 117 34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6282 SELECT - + cor0.col1 * - CAST( col2 AS SIGNED ) FROM tab2 cor0 ---- 1534 646 837 skipif mysql # not compatible query I rowsort label-6282 SELECT - + cor0.col1 * - CAST ( col2 AS INTEGER ) FROM tab2 cor0 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6283 SELECT ALL + cor0.col1 * CAST( NULL AS SIGNED ) + ( col2 ) + + col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6283 SELECT ALL + cor0.col1 * CAST ( NULL AS INTEGER ) + ( col2 ) + + col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col0 * - cor0.col0 AS col2 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT + 57 + col1 AS col0 FROM tab2 AS cor0 ---- 116 74 88 query I rowsort SELECT ALL col1 * col1 + - 14 AS col1 FROM tab0 ---- 7382 8267 9395 query I rowsort SELECT DISTINCT 20 FROM tab0, tab0 AS cor0 ---- 20 query I rowsort SELECT + col0 - - 98 AS col1 FROM tab1 AS cor0 ---- 101 162 178 query I rowsort SELECT - col0 * ( - cor0.col2 ) + col1 AS col2 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT DISTINCT col0 * + 82 + + 93 + col0 FROM tab0 ---- 2085 2998 7480 query I rowsort SELECT ALL col0 + ( - ( col2 ) ) * 93 FROM tab0 ---- -3045 -58 -7537 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6292 SELECT + CAST( NULL AS SIGNED ) + + 65 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-6292 SELECT + CAST ( NULL AS INTEGER ) + + 65 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT ALL - - col0 * + col1 + col1 * col2 FROM tab1 AS cor0 ---- 1210 1482 2288 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + col0 col1 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT ALL ( - ( + col2 ) ) + 94 AS col0 FROM tab2 ---- 56 67 68 query I rowsort SELECT ALL - cor0.col1 * - col2 - col0 AS col2 FROM tab2 AS cor0 ---- 1456 567 830 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 91 col1 FROM tab1 AS cor0 ---- 91 91 91 query I rowsort SELECT DISTINCT + col1 * - col0 + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -24 -583 -944 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6299 SELECT DISTINCT col2 + + cor0.col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6299 SELECT DISTINCT col2 + + cor0.col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - + cor0.col2 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT DISTINCT - 29 * + col0 AS col0 FROM tab0 AS cor0 ---- -1015 -2581 -696 query I rowsort SELECT ALL - col1 - + col2 AS col0 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT DISTINCT 93 AS col1 FROM tab0 ---- 93 onlyif mysql # use DIV operator for integer division query I rowsort label-6304 SELECT col1 * col1 + col2 * 90 DIV + 85 AS col1 FROM tab1 ---- 160 270 733 skipif mysql # not compatible query I rowsort label-6304 SELECT col1 * col1 + col2 * 90 / + 85 AS col1 FROM tab1 ---- 160 270 733 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 49 col1 FROM tab1 ---- 49 49 49 onlyif mysql # use DIV operator for integer division query I rowsort label-6306 SELECT + col0 + col2 DIV col2 AS col2 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-6306 SELECT + col0 + col2 / col2 AS col2 FROM tab0 ---- 25 36 90 query I rowsort SELECT 87 + col2 * col1 AS col2 FROM tab1 ---- 1335 1491 657 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6308 SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-6308 SELECT CAST ( NULL AS REAL ) FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT - 50 AS col1 FROM tab0 ---- -50 -50 -50 query I rowsort SELECT DISTINCT + 87 * col1 AS col1 FROM tab1 ---- 1131 2262 870 query I rowsort SELECT ALL 60 AS col0 FROM tab0 ---- 60 60 60 onlyif mysql # use DIV operator for integer division query I rowsort label-6312 SELECT ALL - cor0.col2 DIV + col1 + - ( - col2 ) + - col1 AS col0 FROM tab1 AS cor0 ---- 26 42 76 skipif mysql # not compatible query I rowsort label-6312 SELECT ALL - cor0.col2 / + col1 + - ( - col2 ) + - col1 AS col0 FROM tab1 AS cor0 ---- 26 42 76 query I rowsort SELECT DISTINCT col1 * - col0 + ( ( - col0 ) ) FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT DISTINCT + col0 * - col1 AS col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT - - 19 * - col0 + 21 FROM tab0 AS cor0 ---- -1670 -435 -644 query I rowsort SELECT - 92 + + col2 FROM tab2 AS cor0 ---- -54 -65 -66 query I rowsort SELECT DISTINCT - + ( col2 ) + col0 * col0 FROM tab1 AS cor0 ---- -45 4039 6304 query I rowsort SELECT 40 * - col2 AS col0 FROM tab0 AS cor0 ---- -1320 -3280 -40 query I rowsort SELECT 95 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e query I rowsort SELECT DISTINCT col2 * col0 * col2 FROM tab2 ---- 114076 5103 52728 query I rowsort SELECT cor0.col0 FROM tab0, tab2 cor0 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT ALL 11 * col0 FROM tab0 ---- 264 385 979 query I rowsort SELECT + col1 * 6 FROM tab0 AS cor0 ---- 516 546 582 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 * + cor0.col1 col2 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT DISTINCT - 2 * col1 AS col1 FROM tab2 ---- -118 -34 -62 query I rowsort SELECT ALL col2 * + col2 AS col2 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT ALL - ( tab1.col0 ) AS col0 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT col2 * 20 FROM tab1 AS cor0 ---- 1080 1140 1920 query I rowsort SELECT + - col2 * - col2 FROM tab0 AS cor0 ---- 1 1089 6724 onlyif mysql # use DIV operator for integer division query I rowsort label-6330 SELECT - cor0.col1 DIV cor0.col2 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-6330 SELECT - cor0.col1 / cor0.col2 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT ALL + 51 FROM tab2 AS cor0 ---- 51 51 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6332 SELECT + CAST( + col2 AS SIGNED ) * cor0.col2 FROM tab0 AS cor0 ---- 1 1089 6724 skipif mysql # not compatible query I rowsort label-6332 SELECT + CAST ( + col2 AS INTEGER ) * cor0.col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT 69 + - col1 * cor0.col1 FROM tab2 AS cor0 ---- -220 -3412 -892 query I rowsort SELECT cor0.col1 + 76 AS col2 FROM tab2 AS cor0 ---- 107 135 93 query I rowsort SELECT col1 * + 59 * + col0 AS col2 FROM tab2 AS cor0 ---- 12803 271518 79237 query I rowsort SELECT ALL - - col2 + + 90 * + col2 AS col0 FROM tab2 AS cor0 ---- 2366 2457 3458 query I rowsort SELECT DISTINCT - col2 + col2 * - col0 * - 9 FROM tab0 AS cor0 ---- 314 65600 7095 query I rowsort SELECT col1 + + col2 * col2 AS col2 FROM tab2 AS cor0 ---- 1461 735 760 onlyif mysql # use DIV operator for integer division query I rowsort label-6339 SELECT ALL col2 DIV + col0 FROM tab0 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-6339 SELECT ALL col2 / + col0 FROM tab0 cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT + col2 + 8 AS col0 FROM tab0 AS cor0 ---- 41 9 90 query I rowsort SELECT DISTINCT + + col2 * 31 AS col1 FROM tab0 AS cor0 ---- 1023 2542 31 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 16 * + col0 * - col0 + col2 col0 FROM tab0 AS cor0 ---- -126654 -19599 -9183 query I rowsort SELECT ALL + cor0.col1 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT + col1 + - cor0.col0 * + col2 * - 17 AS col1 FROM tab2 AS cor0 ---- 3244 34535 51051 query I rowsort SELECT col1 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col1 + col0 col2 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT ALL 95 * col0 AS col1 FROM tab2 ---- 665 7410 7505 query I rowsort SELECT - ( col1 ) * + 35 FROM tab2 AS cor0 ---- -1085 -2065 -595 query I rowsort SELECT ALL + 96 AS col1 FROM tab2 AS cor0 ---- 96 96 96 onlyif mysql # use DIV operator for integer division query I rowsort label-6350 SELECT DISTINCT + col2 DIV 48 + col0 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-6350 SELECT DISTINCT + col2 / 48 + col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT DISTINCT 30 - 29 * cor0.col2 * - ( col0 ) FROM tab2 AS cor0 ---- 5511 58842 87088 query I rowsort SELECT 7 + col1 FROM tab2 AS cor0 ---- 24 38 66 query I rowsort SELECT col2 + cor0.col0 * col1 FROM tab2 AS cor0 ---- 1381 244 4628 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 14 col0 FROM tab2 AS cor0 ---- 14 14 14 query I rowsort SELECT DISTINCT 86 FROM tab0, tab0 AS cor0 ---- 86 query I rowsort SELECT + 85 AS col2 FROM tab2 AS cor0 ---- 85 85 85 query I rowsort SELECT ALL + col2 + - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - + col1 * cor0.col1 + col0 * - col1 FROM tab1 AS cor0 ---- -1209 -740 -754 query I rowsort SELECT DISTINCT col2 + 70 AS col0 FROM tab2 AS cor0 ---- 108 96 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( - 67 ) - - col1 col1 FROM tab2 AS cor0 ---- -36 -50 -8 onlyif mysql # use DIV operator for integer division query I rowsort label-6361 SELECT ALL + col0 DIV 33 AS col2 FROM tab2 AS cor0 ---- 0 2 2 skipif mysql # not compatible query I rowsort label-6361 SELECT ALL + col0 / 33 AS col2 FROM tab2 AS cor0 ---- 0 2 2 query I rowsort SELECT - 66 FROM tab2 AS cor0 ---- -66 -66 -66 query I rowsort SELECT DISTINCT - 60 + + col1 * - col2 AS col2 FROM tab0 AS cor0 ---- -157 -2898 -7522 query I rowsort SELECT ( - ( col2 ) ) AS col0 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT - col2 + cor0.col0 * col2 AS col2 FROM tab1 AS cor0 ---- 108 3591 7584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col2 * + col0 col2 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT ALL - col0 * + col0 - col0 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT ALL + col0 * col2 + 79 FROM tab2 AS cor0 ---- 2107 268 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-6369 SELECT + 6 DIV col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6369 SELECT + 6 / col2 FROM tab1 AS cor0 ---- 0 0 0 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1 ---- 3645 values hashing to b8435223668db186a5012e4112253f28 query I rowsort SELECT + ( 87 ) FROM tab2 ---- 87 87 87 query I rowsort SELECT ALL + 23 FROM tab2 ---- 23 23 23 query I rowsort SELECT + + col1 * - 86 FROM tab2 cor0 ---- -1462 -2666 -5074 query I rowsort SELECT + + col2 + + 55 * 40 FROM tab2 AS cor0 ---- 2226 2227 2238 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col1 + 21 * + col0 - + col0 col1 FROM tab2 AS cor0 ---- 109 1501 1563 query I rowsort SELECT ALL - col0 * col0 * col2 AS col2 FROM tab0 ---- -1225 -19008 -649522 query I rowsort SELECT + tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT ALL + col2 + - 9 * + 19 FROM tab2 ---- -133 -144 -145 query I rowsort SELECT DISTINCT + col0 * col1 + + 70 AS col2 FROM tab0 ---- 2134 3465 8169 query I rowsort SELECT ALL col1 + - tab0.col1 AS col2 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6381 SELECT ALL - col0 DIV - 57 + + 12 * + col2 col2 FROM tab1 ---- 1153 648 685 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6381 SELECT ALL - col0 / - 57 + + 12 * + col2 col2 FROM tab1 ---- 1153 648 685 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + + ( - col2 ) col1 FROM tab2 ---- -20 41 52 query I rowsort SELECT + - col2 + cor0.col2 AS col1 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT col1 - ( - 80 + + col2 ) FROM tab0 ---- 133 176 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6385 SELECT - col1 * ( col2 ) + + cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6385 SELECT - col1 * ( col2 ) + + cor0.col1 * 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 DISTINCT - col1 + + cor0.col2 * col0 col2 FROM tab0 AS cor0 ---- -62 706 7207 onlyif mysql # use DIV operator for integer division query I rowsort label-6387 SELECT ALL col1 DIV + col1 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6387 SELECT ALL col1 / + col1 FROM tab0 cor0 ---- 1 1 1 query I rowsort SELECT ALL 75 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to e61b59795204c348103a58c0a8e4ce16 query I rowsort SELECT + col2 * 34 FROM tab1 ---- 1836 1938 3264 query I rowsort SELECT col1 * 38 AS col2 FROM tab1 ---- 380 494 988 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6391 SELECT ALL CAST( + 32 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0 ---- 49 63 91 skipif mysql # not compatible query I rowsort label-6391 SELECT ALL CAST ( + 32 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0 ---- 49 63 91 query I rowsort SELECT DISTINCT + col0 * col1 * col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT + - ( - col1 ) + - col2 AS col2 FROM tab1 cor0 ---- -28 -47 -83 query I rowsort SELECT DISTINCT + ( - col2 ) * cor0.col2 AS col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT 99 + cor0.col2 FROM tab0 AS cor0 ---- 100 132 181 query I rowsort SELECT + col2 + col1 * - col2 AS col0 FROM tab1 ---- -1152 -1350 -513 query I rowsort SELECT ALL - cor0.col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to b234798d4706314ba14eaad539d0aa88 query I rowsort SELECT + col0 + col1 * - col0 AS col2 FROM tab1 ---- -576 -75 -960 skipif mysql # not compatible query I rowsort SELECT + CAST ( col0 AS REAL ) / - col0 + - 30 * 72 FROM tab0 ---- -2161 -2161 -2161 onlyif mysql # use DIV operator for integer division query I rowsort label-6400 SELECT ALL - + col2 * cor0.col1 DIV + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -118 -2 -83 skipif mysql # not compatible query I rowsort label-6400 SELECT ALL - + col2 * cor0.col1 / + cor0.col0 AS col2 FROM tab0 AS cor0 ---- -118 -2 -83 query I rowsort SELECT DISTINCT 79 FROM tab1, tab2 AS cor0 ---- 79 query I rowsort SELECT ALL ( - col2 ) * col2 AS col1 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT ALL - - col0 * ( - cor0.col2 ) FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + cor0.col2 + 30 AS col2 FROM tab0 AS cor0 ---- 112 31 63 query I rowsort SELECT ALL + 32 * - col1 AS col1 FROM tab0 AS cor0 ---- -2752 -2912 -3104 query I rowsort SELECT + cor0.col2 * + ( - 21 ) FROM tab2, tab1 AS cor0 ---- 9 values hashing to 1cb4235c9b4ac0f2fc6c0be21dadbcb5 query I rowsort SELECT ALL - col0 * + col0 - - ( col1 ) AS col1 FROM tab0 ---- -1128 -490 -7830 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * col2 * - col2 col1 FROM tab0 cor0 ---- -1 -35937 -551368 query I rowsort SELECT DISTINCT 26 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 26 onlyif mysql # use DIV operator for integer division query I rowsort label-6410 SELECT + cor0.col0 DIV col1 AS col0 FROM tab2 cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-6410 SELECT + cor0.col0 / col1 AS col0 FROM tab2 cor0 ---- 0 1 4 onlyif mysql # use DIV operator for integer division query I rowsort label-6411 SELECT col2 DIV + col0 FROM tab1 AS cor0 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-6411 SELECT col2 / + col0 FROM tab1 AS cor0 ---- 0 1 18 query I rowsort SELECT + + col2 * + col2 + col0 * + 76 FROM tab1 AS cor0 ---- 15296 3144 8113 query I rowsort SELECT DISTINCT + 57 + - col0 + + col2 * + col0 AS col2 FROM tab2 cor0 ---- 2007 239 2980 query I rowsort SELECT DISTINCT - cor0.col2 * 33 + 97 FROM tab1, tab2 AS cor0 ---- -1157 -761 -794 query I rowsort SELECT ALL - col0 * + ( + ( + col0 ) ) + 23 FROM tab0 AS cor0 ---- -1202 -553 -7898 onlyif mysql # use DIV operator for integer division query I rowsort label-6416 SELECT DISTINCT + cor0.col1 DIV - ( col0 ) AS col2 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-6416 SELECT DISTINCT + cor0.col1 / - ( col0 ) AS col2 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT ALL + + col0 * ( + col1 ) * + col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT ALL cor0.col0 * 88 + - 40 AS col2 FROM tab0 cor0 ---- 2072 3040 7792 onlyif mysql # use DIV operator for integer division query I rowsort label-6419 SELECT ALL + col1 DIV ( - ( col0 ) ) FROM tab1 AS cor0 ---- -8 0 0 skipif mysql # not compatible query I rowsort label-6419 SELECT ALL + col1 / ( - ( col0 ) ) FROM tab1 AS cor0 ---- -8 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6420 SELECT + - col0 * CAST( NULL AS DECIMAL ) + 4 * + col1 col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6420 SELECT + - col0 * CAST ( NULL AS REAL ) + 4 * + col1 col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 * 70 + col1 AS col0 FROM tab1 AS cor0 ---- 1846 710 923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * + 92 col2 FROM tab0 AS cor0 ---- 7912 8372 8924 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col2 * col1 * col2 col0 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT 51 * - col1 + + col0 - 26 FROM tab2 ---- -1600 -2957 -814 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 - + col1 col2 FROM tab1 ---- 28 47 83 query I rowsort SELECT DISTINCT + 92 - col2 FROM tab1 ---- -4 35 38 query I rowsort SELECT col1 * + col2 + ( + tab2.col1 ) * - col1 AS col0 FROM tab2 ---- -124 -1947 357 query I rowsort SELECT DISTINCT col2 + col2 - col2 * col0 FROM tab2 ---- -135 -1976 -2926 query I rowsort SELECT col0 - tab2.col1 AS col0 FROM tab2 ---- -24 19 62 query I rowsort SELECT DISTINCT cor0.col2 + - cor0.col2 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT + col0 * 95 + col2 + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 2399 3423 8628 query I rowsort SELECT 1 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to da8a72a7967c0c73d91239275230aed9 query I rowsort SELECT + ( col0 ) * - ( col0 ) AS col0 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT tab0.col0 * col1 AS col1 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - col2 * - col0 AS col1 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT DISTINCT 20 FROM tab2, tab2 AS cor0, tab2 cor1 ---- 20 query I rowsort SELECT + col1 * col0 + 55 AS col2 FROM tab1 ---- 1095 133 695 onlyif mysql # use DIV operator for integer division query I rowsort label-6438 SELECT ( col2 ) DIV col2 AS col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6438 SELECT ( col2 ) / col2 AS col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT - col1 * - cor0.col2 FROM tab0 cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-6440 SELECT col0 + + col1 DIV col0 col0 FROM tab2 AS cor0 ---- 11 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6440 SELECT col0 + + col1 / col0 col0 FROM tab2 AS cor0 ---- 11 78 79 query I rowsort SELECT DISTINCT - - ( col1 ) * col2 FROM tab1 AS cor0 ---- 1248 1404 570 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + col0 col1 FROM tab1 cor0 ---- 128 160 6 query I rowsort SELECT DISTINCT 74 FROM tab1 AS cor0 ---- 74 query I rowsort SELECT ALL + + col0 + - col2 AS col2 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT ALL - + 32 * col0 AS col1 FROM tab1 AS cor0 ---- -2048 -2560 -96 query I rowsort SELECT ALL + 39 FROM tab2 AS cor0 ---- 39 39 39 query I rowsort SELECT DISTINCT + cor0.col2 + - col0 * col0 * + col2 AS col1 FROM tab0 cor0 ---- -1224 -18975 -649440 query I rowsort SELECT - + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL - col0 * - 50 AS col2 FROM tab2 AS cor0 ---- 350 3900 3950 query I rowsort SELECT ( 19 ) AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11 onlyif mysql # use DIV operator for integer division query I rowsort label-6451 SELECT ALL + col2 + 91 DIV col1 FROM tab1 AS cor0 ---- 103 57 66 skipif mysql # not compatible query I rowsort label-6451 SELECT ALL + col2 + 91 / col1 FROM tab1 AS cor0 ---- 103 57 66 query I rowsort SELECT + col2 * + ( col2 ) FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT ALL + + col0 * + 50 + col0 AS col2 FROM tab2 cor0 ---- 357 3978 4029 query I rowsort SELECT 84 AS col2 FROM tab2, tab2 cor0 ---- 9 values hashing to cadd876c26338fc58b9297e74fc324d8 query I rowsort SELECT + cor0.col2 * - 50 + - col1 FROM tab1 AS cor0 ---- -2726 -2860 -4813 query I rowsort SELECT ALL - 92 FROM tab0 AS cor0 ---- -92 -92 -92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 col2 FROM tab0, tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT - cor0.col1 FROM tab1, tab0 cor0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 43 col2 FROM tab1 ---- 43 43 43 query I rowsort SELECT - 37 AS col0 FROM tab0 ---- -37 -37 -37 query I rowsort SELECT DISTINCT - 89 * + 83 FROM tab2 ---- -7387 onlyif mysql # use DIV operator for integer division query I rowsort label-6462 SELECT + ( col2 ) * col0 * 45 + 63 DIV col0 FROM tab0 AS cor0 ---- 1576 328410 35642 skipif mysql # not compatible query I rowsort label-6462 SELECT + ( col2 ) * col0 * 45 + 63 / col0 FROM tab0 AS cor0 ---- 1576 328410 35642 query I rowsort SELECT DISTINCT - + col1 * col2 + col0 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT DISTINCT - col2 * + 87 AS col1 FROM tab0 AS cor0 ---- -2871 -7134 -87 query I rowsort SELECT DISTINCT col1 * + col2 + col2 AS col0 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT DISTINCT + ( + cor0.col0 ) + col0 * - col2 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT + col0 * col1 + col0 + - col0 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT col0 * cor0.col2 * - col2 AS col1 FROM tab1 AS cor0 ---- -207936 -737280 -8748 query I rowsort SELECT - 70 * col1 AS col1 FROM tab2 AS cor0 ---- -1190 -2170 -4130 query I rowsort SELECT ALL - + ( + col1 ) FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT + 89 * col2 AS col1 FROM tab1 AS cor0 ---- 4806 5073 8544 query I rowsort SELECT ( - col0 ) + col2 AS col1 FROM tab0 ---- -34 -7 9 query I rowsort SELECT 3 * + col2 AS col1 FROM tab0 ---- 246 3 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6474 SELECT CAST( 45 AS SIGNED ) AS col1 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 14cec871edc37b5056cda01c8331fdca skipif mysql # not compatible query I rowsort label-6474 SELECT CAST ( 45 AS INTEGER ) AS col1 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 14cec871edc37b5056cda01c8331fdca query I rowsort SELECT - col0 * 90 + + col2 FROM tab1 ---- -216 -5703 -7104 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6476 SELECT 88 + + col0 + col2 * CAST( NULL AS DECIMAL ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6476 SELECT 88 + + col0 + col2 * CAST ( NULL AS REAL ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL 66 + - col1 + + col2 AS col2 FROM tab1 ---- 113 149 94 onlyif mysql # use DIV operator for integer division query I rowsort label-6478 SELECT ALL + tab1.col2 + col0 DIV + col2 AS col1 FROM tab1 ---- 54 58 96 skipif mysql # not compatible query I rowsort label-6478 SELECT ALL + tab1.col2 + col0 / + col2 AS col1 FROM tab1 ---- 54 58 96 onlyif mysql # use DIV operator for integer division query I rowsort label-6479 SELECT DISTINCT tab2.col1 DIV col1 AS col0 FROM tab2 ---- 1 skipif mysql # not compatible query I rowsort label-6479 SELECT DISTINCT tab2.col1 / col1 AS col0 FROM tab2 ---- 1 query I rowsort SELECT + col2 + col0 AS col0 FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-6481 SELECT DISTINCT - cor0.col2 DIV col1 - + col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-6481 SELECT DISTINCT - cor0.col2 / col1 - + col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT + 36 * - 14 FROM tab1 ---- -504 -504 -504 query I rowsort SELECT - ( col2 ) * - col1 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT + col2 * - 24 AS col0 FROM tab0 AS cor0 ---- -1968 -24 -792 query I rowsort SELECT ALL - - col0 * col1 * 80 FROM tab1 AS cor0 ---- 51200 6240 83200 onlyif mysql # use DIV operator for integer division query I rowsort label-6486 SELECT DISTINCT + cor0.col2 + cor0.col1 DIV + 29 col1 FROM tab2 AS cor0 ---- 28 38 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6486 SELECT DISTINCT + cor0.col2 + cor0.col1 / + 29 col1 FROM tab2 AS cor0 ---- 28 38 query I rowsort SELECT - - cor0.col1 * col2 FROM tab1 cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-6488 SELECT col0 * - ( col0 + - col0 ) DIV - col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6488 SELECT col0 * - ( col0 + - col0 ) / - col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col2 + + col1 AS col2 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT col2 * 86 AS col1 FROM tab0 AS cor0 ---- 2838 7052 86 query I rowsort SELECT ALL 42 * col0 FROM tab0 ---- 1008 1470 3738 query I rowsort SELECT col2 - col2 * + col1 AS col2 FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT ALL 38 FROM tab2, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6494 SELECT ALL col2 * tab1.col2 + ( ( col0 ) ) * CAST( NULL AS SIGNED ) + tab1.col0 * - col2 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6494 SELECT ALL col2 * tab1.col2 + ( ( col0 ) ) * CAST ( NULL AS INTEGER ) + tab1.col0 * - col2 AS col2 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6495 SELECT - ( - col1 ) DIV col1 + - ( + col2 ) FROM tab0 AS cor0 ---- -32 -81 0 skipif mysql # not compatible query I rowsort label-6495 SELECT - ( - col1 ) / col1 + - ( + col2 ) FROM tab0 AS cor0 ---- -32 -81 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + ( col0 ) col0 FROM tab2 ---- -20 41 52 query I rowsort SELECT ALL + tab0.col1 * + 38 * col1 + - col2 AS col1 FROM tab0 ---- 281015 314596 357541 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + + 56 col0 FROM tab1 ---- 110 113 152 query I rowsort SELECT + col1 * - col2 + - col1 * col0 AS col0 FROM tab2 AS cor0 ---- -1054 -1989 -6136 query I rowsort SELECT - + ( cor0.col2 ) FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT col2 * + cor0.col0 + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -648 2356 494 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab1 cor0, tab0, tab0 AS cor1 ---- 972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163 query I rowsort SELECT DISTINCT + 84 AS col0 FROM tab2, tab1 AS cor0 ---- 84 query I rowsort SELECT - - col0 + + col2 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT 89 * - col0 + cor0.col2 FROM tab2 AS cor0 ---- -596 -6916 -6993 query I rowsort SELECT col2 - - 67 * - cor0.col0 FROM tab0 AS cor0 ---- -1575 -2344 -5881 query I rowsort SELECT ALL col0 * col1 + + col2 AS col2 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT + tab0.col0 + tab0.col2 AS col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT ALL col1 + 5 FROM tab1 ---- 15 18 31 query I rowsort SELECT - cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col1 + ( col2 * + col0 ) col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT + cor0.col1 - col0 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT DISTINCT col0 * - col1 AS col0 FROM tab2 cor0 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab0.col0 * 5 + col2 + tab0.col0 col1 FROM tab0 ---- 177 211 616 onlyif mysql # use DIV operator for integer division query I rowsort label-6515 SELECT ALL col0 DIV + col0 + - col2 FROM tab1 ---- -53 -56 -95 skipif mysql # not compatible query I rowsort label-6515 SELECT ALL col0 / + col0 + - col2 FROM tab1 ---- -53 -56 -95 query I rowsort SELECT col2 * + col2 + - col0 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT - ( col1 ) * + col0 AS col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL cor0.col0 + + col0 FROM tab2 cor0 ---- 14 156 158 query I rowsort SELECT + cor0.col0 + cor0.col1 * - col1 FROM tab2 AS cor0 ---- -210 -3403 -954 query I rowsort SELECT DISTINCT 67 * + cor0.col2 FROM tab1 AS cor0 ---- 3618 3819 6432 query I rowsort SELECT + 96 * + col0 + cor0.col1 FROM tab2 AS cor0 ---- 703 7547 7601 query I rowsort SELECT - col0 * - ( cor0.col1 ) AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - + 3 * col2 - - col1 FROM tab2 cor0 ---- -19 -50 -97 query I rowsort SELECT col0 + - cor0.col0 * col0 FROM tab1 AS cor0 ---- -4032 -6 -6320 query I rowsort SELECT DISTINCT 86 + - col1 FROM tab2 AS cor0 ---- 27 55 69 query I rowsort SELECT DISTINCT + - 89 + + col0 AS col1 FROM tab2 AS cor0 ---- -10 -11 -82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6527 SELECT + - ( 46 ) + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6527 SELECT + - ( 46 ) + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 80 col0 FROM tab0, tab0 cor0 ---- 9 values hashing to 878f012d707aab113cedaf56e6c52e94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 13 col0 FROM tab2 AS cor0 ---- 13 13 13 query I rowsort SELECT + + col1 * 47 AS col2 FROM tab1 AS cor0 ---- 1222 470 611 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6531 SELECT ALL - - CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6531 SELECT ALL - - CAST ( NULL AS REAL ) * col1 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + ( ( col0 ) ) FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT ALL + 0 AS col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6534 SELECT + cor0.col0 DIV - 84 + - col1 * 80 AS col2 FROM tab1 AS cor0 ---- -1040 -2080 -800 skipif mysql # not compatible query I rowsort label-6534 SELECT + cor0.col0 / - 84 + - col1 * 80 AS col2 FROM tab1 AS cor0 ---- -1040 -2080 -800 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6535 SELECT DISTINCT + CAST( col2 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0 ---- 108 114 192 skipif mysql # not compatible query I rowsort label-6535 SELECT DISTINCT + CAST ( col2 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT ALL + - 19 * - cor0.col1 FROM tab1 AS cor0 ---- 190 247 494 query I rowsort SELECT ALL + + cor0.col2 * - col2 * col0 AS col2 FROM tab1 AS cor0 ---- -207936 -737280 -8748 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6538 SELECT + CAST( cor0.col2 AS SIGNED ) + col2 col2 FROM tab0 AS cor0 ---- 164 2 66 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6538 SELECT + CAST ( cor0.col2 AS INTEGER ) + col2 col2 FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT DISTINCT - cor0.col0 * + col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT - cor0.col1 + - col0 - - col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT + 93 FROM tab1 AS cor0 ---- 93 93 93 query I rowsort SELECT - - ( + col1 ) + 80 FROM tab0 AS cor0 ---- 166 171 177 query I rowsort SELECT ALL + - col2 + col1 * - col0 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT DISTINCT + col0 + + cor0.col1 * 18 FROM tab0 AS cor0 ---- 1572 1727 1781 query I rowsort SELECT col0 * col2 AS col0 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT + - col0 + - col2 AS col2 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT DISTINCT - + col2 * - col1 + col1 FROM tab1 cor0 ---- 1261 1430 580 query I rowsort SELECT ALL - col1 - - cor0.col0 AS col2 FROM tab1 AS cor0 ---- -23 54 67 onlyif mysql # use DIV operator for integer division query I rowsort label-6549 SELECT DISTINCT + col0 DIV + 32 AS col1 FROM tab0 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-6549 SELECT DISTINCT + col0 / + 32 AS col1 FROM tab0 AS cor0 ---- 0 1 2 onlyif mysql # use DIV operator for integer division query I rowsort label-6550 SELECT ALL - col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-6550 SELECT ALL - col0 / cor0.col1 AS col1 FROM tab1 AS cor0 ---- -6 -6 0 query I rowsort SELECT col1 * 92 * - 35 + col1 AS col2 FROM tab0 AS cor0 ---- -276834 -292929 -312243 query I rowsort SELECT ALL - + cor0.col1 + cor0.col0 * 33 AS col2 FROM tab0 AS cor0 ---- 1058 2846 706 query I rowsort SELECT + - col0 + + ( - col1 * col0 ) AS col2 FROM tab2 AS cor0 ---- -1422 -224 -4680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6554 SELECT ALL + col0 + - CAST( + col1 AS SIGNED ) + - col0 FROM tab2 AS cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-6554 SELECT ALL + col0 + - CAST ( + col1 AS INTEGER ) + - col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT ALL cor0.col2 * + 75 + 9 AS col0 FROM tab2 cor0 ---- 1959 2034 2859 query I rowsort SELECT ALL + - col1 + + col0 * col0 FROM tab0 AS cor0 ---- 1128 490 7830 query I rowsort SELECT cor0.col1 * cor0.col1 + cor0.col1 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT + col0 + ( + col1 ) - col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + - col0 * cor0.col2 * - col0 AS col2 FROM tab0 cor0 ---- 1225 19008 649522 onlyif mysql # use DIV operator for integer division query I rowsort label-6560 SELECT ALL - col2 DIV 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-6560 SELECT ALL - col2 / col1 col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + + col0 + col1 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT - - col0 * cor0.col0 * + cor0.col2 - col2 * - col1 FROM tab0 AS cor0 ---- 1322 21846 656984 query I rowsort SELECT ALL - col0 * + ( + cor0.col2 + - col0 ) FROM tab0 AS cor0 ---- -216 1190 623 query I rowsort SELECT col0 * - tab1.col0 * col1 + + col0 FROM tab1 ---- -231 -40896 -83120 query I rowsort SELECT DISTINCT 7 FROM tab0, tab2, tab0 AS cor0 ---- 7 query I rowsort SELECT + 44 * col2 - col1 AS col2 FROM tab0 ---- -53 1366 3517 query I rowsort SELECT col2 * col2 + + col1 AS col0 FROM tab2 ---- 1461 735 760 query I rowsort SELECT ALL 79 AS col1 FROM tab1 ---- 79 79 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 col0 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT + - col1 - + cor0.col1 AS col1 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT + col0 + + col2 * ( col0 ) AS col2 FROM tab0 ---- 70 7387 816 query I rowsort SELECT - ( 43 ) * - tab0.col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 9cd0982b8d016e2b7a32f10e99ba00c7 query I rowsort SELECT ALL - col1 * col0 + col0 FROM tab2 ---- -1264 -210 -4524 query I rowsort SELECT DISTINCT + 21 FROM tab0, tab2 AS cor0 ---- 21 onlyif mysql # use DIV operator for integer division query I rowsort label-6575 SELECT DISTINCT + tab2.col2 * col0 + col1 DIV - tab2.col1 FROM tab2 ---- 188 2027 3001 skipif mysql # not compatible query I rowsort label-6575 SELECT DISTINCT + tab2.col2 * col0 + col1 / - tab2.col1 FROM tab2 ---- 188 2027 3001 query I rowsort SELECT DISTINCT - cor0.col2 - - col1 * + cor0.col0 FROM tab1 AS cor0 ---- 24 583 944 onlyif mysql # use DIV operator for integer division query I rowsort label-6577 SELECT cor0.col0 + col0 DIV cor0.col2 FROM tab0 AS cor0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-6577 SELECT cor0.col0 + col0 / cor0.col2 FROM tab0 AS cor0 ---- 24 70 90 onlyif mysql # use DIV operator for integer division query I rowsort label-6578 SELECT - col0 * ( - col1 ) DIV col0 AS col1 FROM tab1 cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-6578 SELECT - col0 * ( - col1 ) / col0 AS col1 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT - col2 + 84 * 64 - - col2 AS col2 FROM tab0 AS cor0 ---- 5376 5376 5376 query I rowsort SELECT ALL col2 + col2 * col2 FROM tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT DISTINCT col1 + + col2 * + col1 FROM tab0 ---- 194 2924 7553 query I rowsort SELECT ALL + 60 FROM tab2 ---- 60 60 60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6583 SELECT CAST( NULL AS SIGNED ) - + 88 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-6583 SELECT CAST ( NULL AS INTEGER ) - + 88 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( tab2.col2 ) col1 FROM tab2 ---- 26 27 38 query I rowsort SELECT DISTINCT + cor0.col1 + + col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT - + cor0.col1 + cor0.col0 + col0 AS col0 FROM tab0 AS cor0 ---- -27 -38 87 query I rowsort SELECT DISTINCT 47 * + col2 FROM tab0 AS cor0 ---- 1551 3854 47 query I rowsort SELECT ( + 32 ) AS col0 FROM tab0 ---- 32 32 32 query I rowsort SELECT DISTINCT + 17 AS col1 FROM tab1 ---- 17 query I rowsort SELECT ALL tab0.col1 FROM tab0, tab1, tab0 cor0 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT ALL - col1 * + cor0.col0 + + col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT ALL + col2 + col0 * - 16 * ( - col0 ) FROM tab2 AS cor0 ---- 811 97370 99894 query I rowsort SELECT 71 * col1 FROM tab2 AS cor0 ---- 1207 2201 4189 query I rowsort SELECT - tab0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc onlyif mysql # use DIV operator for integer division query I rowsort label-6595 SELECT - col2 + ( col1 ) DIV col0 AS col2 FROM tab2 ---- -23 -26 -38 skipif mysql # not compatible query I rowsort label-6595 SELECT - col2 + ( col1 ) / col0 AS col2 FROM tab2 ---- -23 -26 -38 query I rowsort SELECT col1 + tab1.col2 FROM tab1 ---- 109 67 80 query I rowsort SELECT 53 AS col1 FROM tab0 AS cor0 ---- 53 53 53 query I rowsort SELECT + + 53 FROM tab0 AS cor0 ---- 53 53 53 query I rowsort SELECT DISTINCT - 77 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- -77 query I rowsort SELECT ALL cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT tab0.col1 * + ( col0 ) AS col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT ALL + tab1.col1 * - 78 AS col2 FROM tab1 ---- -1014 -2028 -780 query I rowsort SELECT tab0.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab1.col2 col1 FROM tab1 ---- -54 -57 -96 query I rowsort SELECT - 62 AS col0 FROM tab2 ---- -62 -62 -62 skipif mysql # not compatible query I rowsort SELECT CAST ( - col2 AS REAL ) AS col0 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT 35 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29 query I rowsort SELECT - - col0 * + cor0.col1 * col1 + 74 AS col1 FROM tab2 AS cor0 ---- 22905 271592 6801 query I rowsort SELECT ALL + 34 * + col1 FROM tab2 cor0 ---- 1054 2006 578 query I rowsort SELECT DISTINCT cor0.col1 * + col1 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT DISTINCT cor0.col1 + + 41 * tab0.col1 AS col0 FROM tab0, tab1 cor0 ---- 9 values hashing to 13402675cf0371e924657473690ef370 query I rowsort SELECT + col0 + col2 * col0 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT DISTINCT + 24 + + col1 * col0 AS col0 FROM tab1 ---- 102 1064 664 query I rowsort SELECT DISTINCT + - 47 AS col0 FROM tab0 AS cor0 ---- -47 query I rowsort SELECT + col0 * cor0.col1 + 11 * 28 AS col2 FROM tab1 AS cor0 ---- 1348 386 948 query I rowsort SELECT DISTINCT - col0 + - col0 * col2 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT col0 + col1 - + 32 FROM tab0 AS cor0 ---- 100 148 78 onlyif mysql # use DIV operator for integer division query I rowsort label-6618 SELECT + col1 * col0 + cor0.col0 DIV + cor0.col0 + + col0 AS col2 FROM tab0 AS cor0 ---- 2089 3431 8189 skipif mysql # not compatible query I rowsort label-6618 SELECT + col1 * col0 + cor0.col0 / + cor0.col0 + + col0 AS col2 FROM tab0 AS cor0 ---- 2089 3431 8189 onlyif mysql # use DIV operator for integer division query I rowsort label-6619 SELECT ALL + 91 + + col1 DIV + col2 FROM tab1 AS cor0 ---- 91 91 91 skipif mysql # not compatible query I rowsort label-6619 SELECT ALL + 91 + + col1 / + col2 FROM tab1 AS cor0 ---- 91 91 91 query I rowsort SELECT + + 29 + - col1 * + col1 + col1 FROM tab1 AS cor0 ---- -127 -61 -621 query I rowsort SELECT + col0 * - cor0.col2 * - 32 + col1 FROM tab0 cor0 ---- 1217 233627 25430 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6622 SELECT ALL - + col2 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -21 33 4 skipif mysql # not compatible query I rowsort label-6622 SELECT ALL - + col2 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT col2 + 95 * - col0 FROM tab1 AS cor0 ---- -231 -6023 -7504 query I rowsort SELECT - - col0 + + cor0.col0 * col2 FROM tab2 AS cor0 ---- 196 2106 3081 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6625 SELECT DISTINCT + - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6625 SELECT DISTINCT + - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - col2 + - col0 - 56 FROM tab1 AS cor0 ---- -113 -177 -232 query I rowsort SELECT DISTINCT - - cor0.col0 + + col2 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT ALL + col0 * 54 + - col0 - + col2 FROM tab0 cor0 ---- 1239 1854 4635 query I rowsort SELECT DISTINCT + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + 9 + + col0 FROM tab0 ---- 33 44 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 * + ( 95 ) * col0 + - 18 col2 FROM tab2 AS cor0 ---- 17937 192642 285172 query I rowsort SELECT - col1 * col0 + - col2 AS col0 FROM tab1 cor0 ---- -1136 -132 -697 query I rowsort SELECT + col0 * col1 + - 88 + - col1 FROM tab1 AS cor0 ---- -36 542 939 query I rowsort SELECT col1 + + 64 AS col2 FROM tab2 AS cor0 ---- 123 81 95 query I rowsort SELECT col1 * - 85 AS col2 FROM tab1 ---- -1105 -2210 -850 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6636 SELECT + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6636 SELECT + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6637 SELECT DISTINCT - col0 DIV + col1 AS col2 FROM tab2 ---- -1 -4 0 skipif mysql # not compatible query I rowsort label-6637 SELECT DISTINCT - col0 / + col1 AS col2 FROM tab2 ---- -1 -4 0 query I rowsort SELECT ALL col1 * 82 AS col0 FROM tab2 ---- 1394 2542 4838 query I rowsort SELECT col2 * 40 AS col2 FROM tab2 AS cor0 ---- 1040 1080 1520 query I rowsort SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT - + col2 + 50 - + col0 AS col2 FROM tab0 AS cor0 ---- -121 -7 14 query I rowsort SELECT + col1 + col2 - - col1 FROM tab2 AS cor0 ---- 144 72 89 query I rowsort SELECT + - col0 * col2 + col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT - col1 - + 60 AS col2 FROM tab1 AS cor0 ---- -70 -73 -86 onlyif mysql # use DIV operator for integer division query I rowsort label-6645 SELECT + - col1 * cor0.col2 DIV col0 FROM tab0 AS cor0 ---- -118 -2 -83 skipif mysql # not compatible query I rowsort label-6645 SELECT + - col1 * cor0.col2 / col0 FROM tab0 AS cor0 ---- -118 -2 -83 query I rowsort SELECT DISTINCT + col0 * ( + col1 ) FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( col0 AS REAL ) FROM tab1 AS cor0 ---- -3 -64 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-6648 SELECT - col0 DIV - 75 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-6648 SELECT - col0 / - 75 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT + + 45 + col0 * col0 FROM tab1 cor0 ---- 4141 54 6445 query I rowsort SELECT + 89 + - col0 FROM tab1 AS cor0 ---- 25 86 9 query I rowsort SELECT DISTINCT - - 50 + col0 AS col0 FROM tab1 AS cor0 ---- 114 130 53 onlyif mysql # use DIV operator for integer division query I rowsort label-6652 SELECT DISTINCT + + col2 + - col0 DIV - col0 AS col2 FROM tab2 AS cor0 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-6652 SELECT DISTINCT + + col2 + - col0 / - col0 AS col2 FROM tab2 AS cor0 ---- 27 28 39 query I rowsort SELECT + ( col0 ) * - 27 AS col1 FROM tab0 AS cor0 ---- -2403 -648 -945 query I rowsort SELECT - cor0.col1 * - cor0.col0 AS col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT col2 * - cor0.col0 + + cor0.col1 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT - - 16 AS col0 FROM tab2 AS cor0 ---- 16 16 16 query I rowsort SELECT ALL 76 * - col2 FROM tab1 ---- -4104 -4332 -7296 query I rowsort SELECT DISTINCT + 88 FROM tab1 ---- 88 query I rowsort SELECT 32 * col1 + col0 AS col2 FROM tab2 ---- 1966 623 999 query I rowsort SELECT + 62 AS col2 FROM tab0 ---- 62 62 62 query I rowsort SELECT - - 79 FROM tab2 AS cor0 ---- 79 79 79 query I rowsort SELECT + cor0.col0 + col0 * + col2 AS col2 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT DISTINCT col1 * + tab0.col0 AS col1 FROM tab0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-6664 SELECT - col0 DIV - tab2.col1 + - col2 AS col1 FROM tab2 ---- -25 -27 -34 skipif mysql # not compatible query I rowsort label-6664 SELECT - col0 / - tab2.col1 + - col2 AS col1 FROM tab2 ---- -25 -27 -34 onlyif mysql # use DIV operator for integer division query I rowsort label-6665 SELECT 4 + col2 DIV + 35 AS col0 FROM tab2 ---- 4 4 5 skipif mysql # not compatible query I rowsort label-6665 SELECT 4 + col2 / + 35 AS col0 FROM tab2 ---- 4 4 5 onlyif mysql # use DIV operator for integer division query I rowsort label-6666 SELECT DISTINCT col0 + + tab1.col2 DIV 54 AS col1 FROM tab1 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-6666 SELECT DISTINCT col0 + + tab1.col2 / 54 AS col1 FROM tab1 ---- 4 65 81 query I rowsort SELECT DISTINCT 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 11 query I rowsort SELECT DISTINCT + ( tab1.col1 ) * col0 * 75 + tab1.col0 * - col0 AS col2 FROM tab1 ---- 43904 5841 71600 query I rowsort SELECT DISTINCT - col2 + col1 AS col2 FROM tab0 cor0 ---- 53 9 96 onlyif mysql # use DIV operator for integer division query I rowsort label-6670 SELECT + 24 DIV + cor0.col1 FROM tab2 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-6670 SELECT + 24 / + cor0.col1 FROM tab2 AS cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT - 51 * tab0.col1 AS col1 FROM tab1, tab2, tab0 cor0, tab0 ---- -4386 -4641 -4947 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6672 SELECT + CAST( 11 AS SIGNED ) * col2 FROM tab2 ---- 286 297 418 skipif mysql # not compatible query I rowsort label-6672 SELECT + CAST ( 11 AS INTEGER ) * col2 FROM tab2 ---- 286 297 418 query I rowsort SELECT + col0 * + 91 + tab1.col1 FROM tab1 ---- 299 5834 7293 query I rowsort SELECT DISTINCT 84 - + col2 AS col2 FROM tab1 ---- -12 27 30 query I rowsort SELECT ALL + col0 - col1 FROM tab2 AS cor0 ---- -24 19 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6676 SELECT DISTINCT - CAST( - ( col0 ) AS SIGNED ) * col2 col0 FROM tab2 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6676 SELECT DISTINCT - CAST ( - ( col0 ) AS INTEGER ) * col2 col0 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT ALL + col2 - + tab1.col1 FROM tab1 ---- 28 47 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + col2 * + col0 col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ( col2 ) + - col0 - col2 FROM tab2 ---- -7 -78 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 96 col1 FROM tab1 ---- 96 96 96 query I rowsort SELECT - 66 * - 53 * - col1 AS col1 FROM tab1 ---- -34980 -45474 -90948 onlyif mysql # use DIV operator for integer division query I rowsort label-6682 SELECT DISTINCT - 61 DIV - 56 - col2 AS col1 FROM tab2 ---- -25 -26 -37 skipif mysql # not compatible query I rowsort label-6682 SELECT DISTINCT - 61 / - 56 - col2 AS col1 FROM tab2 ---- -25 -26 -37 query I rowsort SELECT ALL col1 * + 6 + col0 * col0 - - col1 FROM tab0 ---- 1178 1904 8558 query I rowsort SELECT 4 + + tab2.col2 FROM tab2 ---- 30 31 42 query I rowsort SELECT DISTINCT - 62 FROM tab1 AS cor0 ---- -62 query I rowsort SELECT ALL + col1 * + col2 * - ( - col1 + - col0 ) FROM tab0 AS cor0 ---- 12804 1343160 312180 query I rowsort SELECT DISTINCT col2 + col2 * cor0.col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT ALL + ( cor0.col2 ) * - col2 + col2 + + col0 FROM tab2 cor0 ---- -1327 -572 -695 query I rowsort SELECT ALL - ( col2 ) AS col2 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT - + col0 * col0 AS col0 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT DISTINCT - - col1 * - col1 * - ( - col0 ) FROM tab1 AS cor0 ---- -13520 -2028 -6400 query I rowsort SELECT - col2 * + col2 AS col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT - 23 + - tab0.col2 FROM tab0, tab1 AS cor0 ---- -105 -24 -56 query I rowsort SELECT 7 AS col0 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1 ---- 81 values hashing to bd991c690468eea3ef45a96817ca3617 query I rowsort SELECT + - cor0.col0 AS col1 FROM tab0 cor0 ---- -24 -35 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6696 SELECT + + col1 + - CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6696 SELECT + + col1 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6697 SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 88 col2 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6697 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 88 col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + ( 20 ) AS col2 FROM tab0 cor0 ---- 20 query I rowsort SELECT ALL + cor0.col2 * - col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT - ( + 62 ) * col2 AS col1 FROM tab1 cor0 ---- -3348 -3534 -5952 query I rowsort SELECT - tab0.col1 * - cor0.col1 FROM tab0, tab1 cor0 ---- 9 values hashing to 23253cfee4cea5e1d4f993bec937f9fe skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 22 col0 FROM tab1 AS cor0 ---- -22 query I rowsort SELECT ALL 62 FROM tab0 AS cor0 ---- 62 62 62 query I rowsort SELECT + - 26 AS col1 FROM tab1 cor0 ---- -26 -26 -26 query I rowsort SELECT DISTINCT col1 * + 39 FROM tab2 AS cor0 ---- 1209 2301 663 query I rowsort SELECT + ( col1 ) + + col0 * - cor0.col2 * col2 FROM tab1 AS cor0 ---- -207926 -737267 -8722 query I rowsort SELECT DISTINCT - - ( col0 ) + - col0 FROM tab0 cor0 ---- 0 query I rowsort SELECT DISTINCT - 5 * - cor0.col0 + col0 * - ( - col0 ) AS col0 FROM tab2 AS cor0 ---- 6474 6636 84 query I rowsort SELECT ALL - ( + col0 ) * - cor0.col1 * + col0 AS col1 FROM tab1 AS cor0 ---- 234 40960 83200 query IIIIIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3 ---- 13122 values hashing to cde134d37d5f5190abadc05c7965852e onlyif mysql # use DIV operator for integer division query I rowsort label-6711 SELECT ALL - 47 DIV col0 AS col0 FROM tab1 AS cor0 ---- -15 0 0 skipif mysql # not compatible query I rowsort label-6711 SELECT ALL - 47 / col0 AS col0 FROM tab1 AS cor0 ---- -15 0 0 query I rowsort SELECT + 45 + - col1 * col0 FROM tab0 AS cor0 ---- -2019 -3350 -8054 query I rowsort SELECT DISTINCT - col1 + + col1 AS col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - + ( col2 ) * + col0 * - col2 + col1 + - col2 FROM tab1 cor0 ---- 207889 737197 8720 query I rowsort SELECT ALL - - col2 + ( + col0 ) AS col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT + 22 + - col2 FROM tab0 cor0 ---- -11 -60 21 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6717 SELECT ALL + - CAST( col1 AS SIGNED ) + - cor0.col2 * ( ( col2 ) ) + col2 AS col2 FROM tab0 AS cor0 ---- -1142 -6733 -97 skipif mysql # not compatible query I rowsort label-6717 SELECT ALL + - CAST ( col1 AS INTEGER ) + - cor0.col2 * ( ( col2 ) ) + col2 AS col2 FROM tab0 AS cor0 ---- -1142 -6733 -97 query I rowsort SELECT ALL 73 * + col0 * + cor0.col0 FROM tab0 AS cor0 ---- 42048 578233 89425 query I rowsort SELECT DISTINCT - + 17 + ( col2 ) * col2 FROM tab1 AS cor0 ---- 2899 3232 9199 query I rowsort SELECT DISTINCT col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL - ( + col1 ) + col0 AS col1 FROM tab0 AS cor0 ---- -2 -62 -62 query I rowsort SELECT 96 AS col1 FROM tab0, tab2 AS cor0, tab2 cor1, tab0 cor2 ---- 81 values hashing to e03080212e3345d8b37e64e3264019c4 query I rowsort SELECT ALL 82 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944 onlyif mysql # use DIV operator for integer division query I rowsort label-6724 SELECT ALL cor0.col2 DIV col2 AS col1 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6724 SELECT ALL cor0.col2 / col2 AS col1 FROM tab0 cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 58 + col1 col2 FROM tab1 AS cor0 ---- -32 -45 -48 query I rowsort SELECT 19 - col0 FROM tab1 AS cor0 ---- -45 -61 16 query I rowsort SELECT ALL + - col2 + + col0 * 13 * + col2 FROM tab0 cor0 ---- 10263 454 94792 query I rowsort SELECT + cor0.col1 + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 338e91bd6b1ec42ced1d27c185bc6972 query I rowsort SELECT ALL col1 * col0 + col2 + col2 FROM tab0 cor0 ---- 2130 3397 8263 query I rowsort SELECT - tab2.col1 - - col2 FROM tab2 ---- -33 -4 21 query I rowsort SELECT ALL ( cor0.col2 ) FROM tab2, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT tab0.col1 * - 14 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 56431800a871b0d131571b27afd20604 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + + col0 * col2 col2 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT col0 * col2 * col1 + col0 FROM tab0 ---- 3430 664207 68136 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6735 SELECT col0 + CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6735 SELECT col0 + CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL query I rowsort SELECT - col1 * col0 + 54 FROM tab2 ---- -1289 -163 -4548 query I rowsort SELECT col0 + + col1 * + col1 AS col1 FROM tab2 AS cor0 ---- 3559 368 968 query I rowsort SELECT ALL + + col0 + col0 FROM tab0 cor0 ---- 178 48 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col0 col2 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT ALL col1 + col1 * - col2 AS col2 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT DISTINCT - - col0 * - 49 * + col1 AS col0 FROM tab2 AS cor0 ---- -10633 -225498 -65807 query I rowsort SELECT ALL 51 FROM tab2, tab1 AS cor0 ---- 9 values hashing to d8bf0a05c9c4d2a93812d106baae4752 query I rowsort SELECT + col1 + + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-6744 SELECT + col0 + + col0 DIV + CAST( col0 AS SIGNED ) FROM tab1 AS cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-6744 SELECT + col0 + + col0 / + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 ---- 4 65 81 query I rowsort SELECT ALL 91 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT + + 71 * - col2 + ( + col1 ) FROM tab2 AS cor0 ---- -1787 -1886 -2681 query I rowsort SELECT DISTINCT + + ( col0 ) FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-6748 SELECT + 78 DIV + col1 AS col0 FROM tab1 AS cor0 ---- 3 6 7 skipif mysql # not compatible query I rowsort label-6748 SELECT + 78 / + col1 AS col0 FROM tab1 AS cor0 ---- 3 6 7 query I rowsort SELECT cor0.col0 - col2 AS col1 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT + col0 * cor0.col2 + col2 FROM tab2 AS cor0 ---- 2054 216 3040 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 47 col2 FROM tab0 AS cor0 ---- 47 47 47 query I rowsort SELECT - - cor0.col1 * 55 + + col0 * - cor0.col1 * col1 AS col0 FROM tab1 AS cor0 ---- -12805 -5850 -598 query I rowsort SELECT - - 55 AS col2 FROM tab0 cor0 ---- 55 55 55 query I rowsort SELECT 20 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 cor2 ---- 81 values hashing to 8550664862df5be7a3d3f6037537d2d8 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2, tab2 AS cor3 ---- 3645 values hashing to dd5ce24448edb4b3ab62c251475d6548 query I rowsort SELECT ALL tab1.col2 * + 66 AS col2 FROM tab1 ---- 3564 3762 6336 query I rowsort SELECT DISTINCT + ( cor1.col0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 3 64 80 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2 ---- 972 values hashing to 01a5931cccc3dad8792a1bc6df09c614 query I rowsort SELECT ALL + col0 + + col2 * + col2 FROM tab1 ---- 2919 3313 9296 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6760 SELECT ALL - CAST( NULL AS SIGNED ) + + 47 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6760 SELECT ALL - CAST ( NULL AS INTEGER ) + + 47 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL - col1 + - col0 + - col2 * - 50 AS col2 FROM tab2 ---- 1163 1312 1804 query I rowsort SELECT ( - col0 ) + - col2 * + col1 + col2 FROM tab2 ---- -1586 -687 -817 query I rowsort SELECT DISTINCT + + 98 + col1 * col0 AS col2 FROM tab1 AS cor0 ---- 1138 176 738 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab2 cor0, tab0 AS cor1, tab0, tab2 AS cor2 ---- 3645 values hashing to 28412d50061391eec23a02d0efcfb3f9 query I rowsort SELECT - + cor0.col2 AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-6766 SELECT 2 DIV + col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6766 SELECT 2 / + col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT + - 74 + - 79 AS col2 FROM tab0 AS cor0 ---- -153 -153 -153 query I rowsort SELECT DISTINCT + 62 * + 65 + col2 AS col1 FROM tab0 AS cor0 ---- 4031 4063 4112 query I rowsort SELECT ALL + + col1 * + col1 AS col0 FROM tab0 AS cor0 ---- 7396 8281 9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 + col1 * - cor0.col1 col2 FROM tab0 AS cor0 ---- -7372 -8192 -9374 query I rowsort SELECT - + 42 AS col0 FROM tab0 AS cor0 ---- -42 -42 -42 query I rowsort SELECT col1 + - col0 * 53 FROM tab0 AS cor0 ---- -1186 -1758 -4626 query I rowsort SELECT DISTINCT - tab2.col2 - col1 FROM tab2 ---- -55 -58 -85 query I rowsort SELECT DISTINCT 19 - col1 AS col0 FROM tab2 ---- -12 -40 2 query I rowsort SELECT ALL + 97 * col0 - col1 * + 9 FROM tab0 ---- 1554 2522 7814 query I rowsort SELECT 47 + col2 * + tab1.col2 + col2 * - col2 FROM tab1 ---- 47 47 47 query I rowsort SELECT col1 - cor0.col0 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT - - 66 * col1 + col1 * + 39 FROM tab2 cor0 ---- 1785 3255 6195 query I rowsort SELECT + 67 - col0 AS col2 FROM tab1 AS cor0 ---- -13 3 64 query I rowsort SELECT DISTINCT + - 12 FROM tab2 AS cor0 ---- -12 query I rowsort SELECT - 81 * - col1 - cor0.col2 FROM tab2 AS cor0 ---- 1339 2484 4753 query I rowsort SELECT col0 * - 85 FROM tab1 ---- -255 -5440 -6800 query I rowsort SELECT ALL - cor0.col0 AS col0 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT - col2 * - cor0.col2 + + col0 AS col1 FROM tab2 cor0 ---- 1523 736 754 query I rowsort SELECT + col1 * + ( + 84 ) AS col1 FROM tab2 cor0 ---- 1428 2604 4956 query I rowsort SELECT ( - col1 ) * + col2 AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT - ( + col2 ) * + col0 AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-6788 SELECT + 93 DIV col1 AS col2 FROM tab2 AS cor0 ---- 1 3 5 skipif mysql # not compatible query I rowsort label-6788 SELECT + 93 / col1 AS col2 FROM tab2 AS cor0 ---- 1 3 5 query I rowsort SELECT + + ( 43 ) FROM tab2 AS cor0 ---- 43 43 43 query I rowsort SELECT DISTINCT + 81 * - col1 FROM tab2 AS cor0 ---- -1377 -2511 -4779 query I rowsort SELECT ALL - + ( col2 ) * col0 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + 46 AS col1 FROM tab2 AS cor0 ---- 46 query I rowsort SELECT ( + col1 ) * col0 AS col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL + cor0.col0 * col0 * - col0 AS col0 FROM tab2 AS cor0 ---- -343 -474552 -493039 query I rowsort SELECT ALL + col0 + - 22 * - col2 FROM tab1 cor0 ---- 1191 1318 2192 query I rowsort SELECT DISTINCT - col1 + + col1 * col2 * + col0 AS col0 FROM tab1 AS cor0 ---- 36470 4186 99827 query I rowsort SELECT DISTINCT col1 * col0 AS col1 FROM tab2 cor0 ---- 1343 217 4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6798 SELECT col1 * CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6798 SELECT col1 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7 query I rowsort SELECT ALL - col0 * + col2 * - col1 AS col1 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT DISTINCT - cor0.col1 * col0 + + 42 AS col2 FROM tab0 AS cor0 ---- -2022 -3353 -8057 onlyif mysql # use DIV operator for integer division query I rowsort label-6802 SELECT DISTINCT + - col2 + - ( 88 ) DIV + col1 FROM tab1 AS cor0 ---- -102 -57 -65 skipif mysql # not compatible query I rowsort label-6802 SELECT DISTINCT + - col2 + - ( 88 ) / + col1 FROM tab1 AS cor0 ---- -102 -57 -65 query I rowsort SELECT DISTINCT col1 - + tab2.col0 * col2 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT + col2 - + tab1.col1 FROM tab1 ---- 28 47 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6805 SELECT col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6805 SELECT col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6806 SELECT DISTINCT col0 * + 62 + col0 - tab1.col2 DIV + 94 FROM tab1 ---- 189 4032 5039 skipif mysql # not compatible query I rowsort label-6806 SELECT DISTINCT col0 * + 62 + col0 - tab1.col2 / + 94 FROM tab1 ---- 189 4032 5039 query I rowsort SELECT + col1 + + 69 * col1 + col1 AS col1 FROM tab1 ---- 1846 710 923 query I rowsort SELECT ALL + 9 AS col1 FROM tab2 AS cor0 ---- 9 9 9 query I rowsort SELECT - col0 + col0 - cor0.col1 FROM tab1 cor0 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * col2 col1 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6811 SELECT + + CAST( col2 AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0 ---- -7 16 51 skipif mysql # not compatible query I rowsort label-6811 SELECT + + CAST ( col2 AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT ALL + 93 FROM tab1, tab0 AS cor0 ---- 9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde query I rowsort SELECT ALL - col2 * - 96 - tab1.col0 FROM tab1 ---- 5181 5408 9136 query I rowsort SELECT + 46 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 2f97924b57b73102233df7c9ce8ad602 query I rowsort SELECT DISTINCT ( col1 + - col2 ) AS col0 FROM tab2 ---- -21 33 4 query I rowsort SELECT - 63 AS col1 FROM tab0 AS cor0 ---- -63 -63 -63 query I rowsort SELECT ALL + cor0.col0 + col0 AS col1 FROM tab0 AS cor0 ---- 178 48 70 onlyif mysql # use DIV operator for integer division query I rowsort label-6818 SELECT DISTINCT 38 + - col0 DIV cor0.col2 FROM tab0 AS cor0 ---- 3 37 38 skipif mysql # not compatible query I rowsort label-6818 SELECT DISTINCT 38 + - col0 / cor0.col2 FROM tab0 AS cor0 ---- 3 37 38 query I rowsort SELECT + col1 * + col1 AS col0 FROM tab0 cor0 ---- 7396 8281 9409 query I rowsort SELECT ALL - + 4 * + col1 + - 32 FROM tab1 AS cor0 ---- -136 -72 -84 query I rowsort SELECT DISTINCT + col2 + + col2 AS col2 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT ALL 62 * tab1.col0 + + col1 FROM tab1 ---- 212 3978 4973 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6823 SELECT ALL + CAST( NULL AS SIGNED ) + col1 * col1 + col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6823 SELECT ALL + CAST ( NULL AS INTEGER ) + col1 * col1 + col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + 23 AS col2 FROM tab0 ---- 23 23 23 query I rowsort SELECT ALL + ( - tab1.col0 + ( ( + col2 ) ) ) AS col0 FROM tab1 ---- -7 16 51 query I rowsort SELECT + 36 * - cor0.col0 FROM tab1 AS cor0 ---- -108 -2304 -2880 query I rowsort SELECT + tab0.col2 * col2 * + 38 + + col1 FROM tab0 ---- 135 255603 41468 query I rowsort SELECT ALL - col2 * col0 - 59 AS col2 FROM tab2 AS cor0 ---- -2087 -248 -3061 query I rowsort SELECT DISTINCT - - col1 * + col1 * col0 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT DISTINCT - col0 * + col1 * - ( col1 ) + cor0.col1 FROM tab1 AS cor0 ---- 13533 2054 6410 query I rowsort SELECT 55 * + col2 AS col1 FROM tab0 AS cor0 ---- 1815 4510 55 query I rowsort SELECT - ( col2 ) * - ( + 56 * col0 ) AS col1 FROM tab0 AS cor0 ---- 1960 408688 44352 query I rowsort SELECT - cor0.col2 * - col2 AS col0 FROM tab0 cor0 ---- 1 1089 6724 onlyif mysql # use DIV operator for integer division query I rowsort label-6834 SELECT - col1 + - col1 DIV 78 col2 FROM tab0 ---- -87 -92 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6834 SELECT - col1 + - col1 / 78 col2 FROM tab0 ---- -87 -92 -98 query I rowsort SELECT 64 + - tab0.col2 FROM tab0 ---- -18 31 63 query I rowsort SELECT DISTINCT - 51 AS col2 FROM tab1, tab2, tab0 AS cor0 ---- -51 onlyif mysql # use DIV operator for integer division query I rowsort label-6837 SELECT + 7 DIV col1 - + col0 AS col0 FROM tab2 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-6837 SELECT + 7 / col1 - + col0 AS col0 FROM tab2 ---- -7 -78 -79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6838 SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab1 cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-6838 SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab1 cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL + cor0.col2 + + 69 * + col2 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 464038 70 75174 query I rowsort SELECT DISTINCT - - cor0.col0 FROM tab0 AS cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 + + col2 * - col2 col0 FROM tab1 cor0 ---- -2970 -3306 -9312 query I rowsort SELECT ALL + cor0.col0 + + 2 FROM tab0 AS cor0 ---- 26 37 91 query I rowsort SELECT col1 * + cor0.col1 AS col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT + + col2 + - col1 * - 98 FROM tab0 AS cor0 ---- 8461 9000 9507 query I rowsort SELECT ALL + cor0.col2 + - 20 FROM tab1 AS cor0 ---- 34 37 76 query I rowsort SELECT DISTINCT + col0 - col0 AS col0 FROM tab2 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6847 SELECT ALL col2 * col0 * cor0.col1 + col1 + col1 DIV col1 FROM tab0 AS cor0 ---- 3493 664210 68199 skipif mysql # not compatible query I rowsort label-6847 SELECT ALL col2 * col0 * cor0.col1 + col1 + col1 / col1 FROM tab0 AS cor0 ---- 3493 664210 68199 query I rowsort SELECT - + col0 + col1 * col1 AS col1 FROM tab2 AS cor0 ---- 210 3403 954 query I rowsort SELECT + col0 * - col0 + cor0.col0 - col0 * + 46 AS col2 FROM tab2 AS cor0 ---- -364 -9594 -9796 query I rowsort SELECT ALL + col2 + - col1 * - col2 AS col0 FROM tab1 cor0 ---- 1344 1458 627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6851 SELECT DISTINCT - col2 / + ( + col0 + + CAST( NULL AS SIGNED ) * + col1 ) AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6851 SELECT DISTINCT - col2 / + ( + col0 + + CAST ( NULL AS INTEGER ) * + col1 ) AS col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT - col2 * - 91 + col0 AS col1 FROM tab1 AS cor0 ---- 4917 5251 8816 onlyif mysql # use DIV operator for integer division query I rowsort label-6853 SELECT - + cor0.col0 DIV - cor0.col1 FROM tab1 AS cor0 ---- 0 6 6 skipif mysql # not compatible query I rowsort label-6853 SELECT - + cor0.col0 / - cor0.col1 FROM tab1 AS cor0 ---- 0 6 6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6854 SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + col2 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-6854 SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + col2 FROM tab0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6855 SELECT CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6855 SELECT CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - col0 * - col2 + col0 * col0 AS col1 FROM tab1 AS cor0 ---- 14080 171 7744 query I rowsort SELECT DISTINCT col1 + - 1 AS col2 FROM tab0 AS cor0 ---- 85 90 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6858 SELECT ALL CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6858 SELECT ALL CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6859 SELECT DISTINCT + CAST( + col2 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-6859 SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL - + ( - 5 ) * col0 + - 17 + 12 FROM tab2 AS cor0 ---- 30 385 390 onlyif mysql # use DIV operator for integer division query I rowsort label-6861 SELECT DISTINCT - col0 DIV ( - col0 ) AS col2 FROM tab2 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-6861 SELECT DISTINCT - col0 / ( - col0 ) AS col2 FROM tab2 AS cor0 ---- 1 query I rowsort SELECT ALL + - col0 + col2 AS col0 FROM tab1 AS cor0 ---- -7 16 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( col0 ) + - cor0.col1 col1 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT DISTINCT + 52 * + col2 AS col2 FROM tab0 AS cor0 ---- 1716 4264 52 query I rowsort SELECT col1 * - 72 + col0 + cor0.col0 FROM tab2 AS cor0 ---- -1066 -2218 -4092 query I rowsort SELECT - col2 * col1 * - 57 FROM tab1 AS cor0 ---- 32490 71136 80028 query I rowsort SELECT DISTINCT + - 26 * col2 FROM tab1 AS cor0 ---- -1404 -1482 -2496 query I rowsort SELECT + col2 * + col2 + ( col0 * + col2 ) AS col1 FROM tab1 AS cor0 ---- 16896 3078 6897 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col1 + col1 col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6870 SELECT ALL + - col0 * cor0.col2 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6870 SELECT ALL + - col0 * cor0.col2 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + 90 * + col2 FROM tab2 cor0 ---- -2340 -2430 -3420 query I rowsort SELECT + - 99 * + col0 AS col0 FROM tab1 AS cor0 ---- -297 -6336 -7920 query I rowsort SELECT ALL col1 + + col0 - col1 AS col0 FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6874 SELECT - CAST( NULL AS DECIMAL ) * 87 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6874 SELECT - CAST ( NULL AS REAL ) * 87 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL 55 + 36 FROM tab1 ---- 91 91 91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 73 + tab2.col1 col2 FROM tab2 ---- 104 132 90 query I rowsort SELECT ALL - col1 + col0 AS col2 FROM tab0 ---- -2 -62 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-6878 SELECT - col1 DIV + col1 + col1 * + col0 AS col2 FROM tab1 ---- 1039 639 77 skipif mysql # not compatible query I rowsort label-6878 SELECT - col1 / + col1 + col1 * + col0 AS col2 FROM tab1 ---- 1039 639 77 query I rowsort SELECT + col2 - - col0 * col2 AS col0 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT ALL + col2 * - col1 - - col0 AS col1 FROM tab0 ---- -2814 -62 -7373 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 / col1 + tab2.col0 col2 FROM tab2 WHERE NULL BETWEEN + col0 / col1 AND + col1 + col1 ---- query I rowsort SELECT col0 * col1 AS col2 FROM tab1 WHERE NOT - col0 * + col2 NOT IN ( col1 - + col2 ) ---- query III rowsort SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT - col0 + - col0 * + tab1.col2 FROM tab1 WHERE NOT col0 / col0 < NULL ---- query I rowsort SELECT ALL - col2 + - col0 * - col1 FROM tab0 ---- 2031 3394 8017 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL = NULL ---- query I rowsort SELECT DISTINCT col0 - + tab2.col1 FROM tab2 ---- -24 19 62 onlyif mysql # use DIV operator for integer division query I rowsort label-6888 SELECT - col1 * col1 DIV - col2 + tab0.col2 DIV col1 FROM tab0 ---- 100 224 9409 skipif mysql # not compatible query I rowsort label-6888 SELECT - col1 * col1 / - col2 + tab0.col2 / col1 FROM tab0 ---- 100 224 9409 query III rowsort SELECT ALL * FROM tab2 WHERE ( NULL ) = ( col0 * - col1 ) ---- query I rowsort SELECT ALL - col2 * - col2 FROM tab2 ---- 1444 676 729 query I rowsort SELECT + col1 * col0 + - col1 - + col2 * - col0 FROM tab0 cor0 ---- 15306 2770 3333 onlyif mysql # use DIV operator for integer division query I rowsort label-6892 SELECT + col0 DIV - col1 + + tab2.col0 FROM tab2 ---- 7 75 77 skipif mysql # not compatible query I rowsort label-6892 SELECT + col0 / - col1 + + tab2.col0 FROM tab2 ---- 7 75 77 query I rowsort SELECT DISTINCT + col0 + tab2.col0 FROM tab2 ---- 14 156 158 onlyif mysql # use DIV operator for integer division query I rowsort label-6894 SELECT - cor0.col1 DIV + cor0.col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6894 SELECT - cor0.col1 / + cor0.col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6895 SELECT col2 DIV col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6895 SELECT col2 / col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT col1 * + col2 + + tab0.col2 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT cor0.col1 AS col0 FROM tab0, tab0 cor0 ---- 86 91 97 query I rowsort SELECT col0 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL ---- query I rowsort SELECT DISTINCT col1 + + col2 * - col0 AS col0 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT ALL tab2.col1 + + col0 AS col2 FROM tab2 ---- 137 38 96 query I rowsort SELECT + tab2.col0 + col1 + col0 FROM tab2 ---- 175 215 45 query I rowsort SELECT col1 + col1 * - tab2.col0 FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT ALL - col0 - - col0 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT + col1 + - tab1.col1 * col0 FROM tab1 ---- -1027 -52 -630 query III rowsort SELECT * FROM tab2 WHERE NULL BETWEEN col0 * + col1 * col2 AND ( NULL ) ---- query I rowsort SELECT col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT DISTINCT + col1 * - col0 AS col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + col0 + col0 * + col1 AS col2 FROM tab1 ---- 1120 704 81 query I rowsort SELECT + col0 FROM tab1 WHERE NOT NULL = NULL ---- query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 cor2 ---- 3645 values hashing to 9a402ad2669465fb284445c499a48f2c query I rowsort SELECT DISTINCT + 15 + - 46 FROM tab2 AS cor0 ---- -31 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6912 SELECT - - CAST( + col0 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0 ---- -49 -6084 -6241 skipif mysql # not compatible query I rowsort label-6912 SELECT - - CAST ( + col0 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT DISTINCT + cor0.col0 AS col2 FROM tab0, tab0 cor0 ---- 24 35 89 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2 ---- 3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1, tab0 AS cor0, tab0 cor1 ---- 972 values hashing to 8420206d6932c454f05a38de634b3cb5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6916 SELECT ALL CAST( NULL AS DECIMAL ) * + 24 * - tab1.col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6916 SELECT ALL CAST ( NULL AS REAL ) * + 24 * - tab1.col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - cor0.col0 + - cor0.col2 FROM tab0 cor0 ---- -171 -36 -57 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 76 + col0 * + col0 AS col2 FROM tab0 ---- 1301 652 7997 query I rowsort SELECT DISTINCT - 3 FROM tab1 ---- -3 query I rowsort SELECT - 88 * col2 FROM tab0 ---- -2904 -7216 -88 query I rowsort SELECT ALL - - col2 + + cor0.col0 AS col2 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT ALL ( - col2 * col1 ) FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT 78 * col2 AS col1 FROM tab1 ---- 4212 4446 7488 query I rowsort SELECT DISTINCT 37 * - col1 FROM tab2 ---- -1147 -2183 -629 query I rowsort SELECT DISTINCT + ( col1 ) * 68 AS col1 FROM tab0 ---- 5848 6188 6596 query I rowsort SELECT col1 * + tab0.col0 AS col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT - col0 + + col2 * cor0.col0 AS col0 FROM tab2 AS cor0 ---- 182 1950 2923 query I rowsort SELECT col1 + + ( col2 ) FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT tab0.col2 * - 63 FROM tab0 ---- -2079 -5166 -63 query I rowsort SELECT + col2 + 81 AS col2 FROM tab2 AS cor0 ---- 107 108 119 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6932 SELECT + - cor0.col0 * CAST( col1 AS SIGNED ) + - cor0.col2 FROM tab2 AS cor0 ---- -1381 -244 -4628 skipif mysql # not compatible query I rowsort label-6932 SELECT + - cor0.col0 * CAST ( col1 AS INTEGER ) + - cor0.col2 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT - col0 * + col0 AS col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT col1 + 18 AS col2 FROM tab1 ---- 28 31 44 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 69 + - col1 col0 FROM tab0 ---- -155 -160 -166 query I rowsort SELECT + ( + tab1.col2 ) AS col0 FROM tab1 ---- 54 57 96 query I rowsort SELECT DISTINCT - 70 * ( - col1 + col1 ) AS col0 FROM tab0 ---- 0 query I rowsort SELECT ALL col1 + col1 * col2 FROM tab1 cor0 ---- 1261 1430 580 onlyif mysql # use DIV operator for integer division query I rowsort label-6939 SELECT ALL - + col2 DIV + col2 + + col2 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-6939 SELECT ALL - + col2 / + col2 + + col2 FROM tab1 AS cor0 ---- 53 56 95 query I rowsort SELECT DISTINCT + ( + col0 ) FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT + - col2 + col1 * - col0 AS col2 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT ALL + - 11 + - col1 AS col0 FROM tab2 AS cor0 ---- -28 -42 -70 query I rowsort SELECT DISTINCT + col2 + - col0 * col1 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT ALL + + col2 + - col0 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT + col1 * - cor0.col0 * + col0 FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT ALL + + col1 + - col1 * + col1 FROM tab1 AS cor0 ---- -156 -650 -90 query I rowsort SELECT + col1 * + col1 * - cor0.col2 FROM tab1 cor0 ---- -16224 -36504 -5700 query I rowsort SELECT DISTINCT - 51 * + col1 AS col1 FROM tab1 AS cor0 ---- -1326 -510 -663 onlyif mysql # use DIV operator for integer division query I rowsort label-6949 SELECT ALL + col2 * col1 DIV + col0 FROM tab0 AS cor0 ---- 118 2 83 skipif mysql # not compatible query I rowsort label-6949 SELECT ALL + col2 * col1 / + col0 FROM tab0 AS cor0 ---- 118 2 83 query I rowsort SELECT - - 0 * + cor0.col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * + col2 * - col1 - col1 AS col1 FROM tab1 ---- -16237 -36530 -5710 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 16 col1 FROM tab2, tab1 cor0 ---- 9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34 query I rowsort SELECT DISTINCT + tab0.col1 * ( - col1 ) AS col2 FROM tab0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-6954 SELECT ALL + col1 DIV - col2 AS col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6954 SELECT ALL + col1 / - col2 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT - + col0 * - ( col1 ) + - col1 FROM tab0 AS cor0 ---- 1978 3298 8008 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6956 SELECT DISTINCT - - col1 * - CAST( NULL AS DECIMAL ) + col2 * - col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6956 SELECT DISTINCT - - col1 * - CAST ( NULL AS REAL ) + col2 * - col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - - col0 * - col1 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + col1 * col1 + + col0 AS col0 FROM tab0 AS cor0 ---- 7420 8370 9444 query I rowsort SELECT - - cor0.col1 * + ( - cor0.col2 ) - - col2 FROM tab0 cor0 ---- -2805 -7380 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 98 * col1 col2 FROM tab0 ---- 8428 8918 9506 query I rowsort SELECT - col1 * - col1 * + tab0.col2 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT DISTINCT + col2 + + col2 * + col2 * col1 FROM tab0 AS cor0 ---- 611966 93687 98 query I rowsort SELECT ALL - tab0.col2 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to b5a4102107e5ebd26e341538f4fede1e onlyif mysql # use DIV operator for integer division query I rowsort label-6964 SELECT - 29 DIV - col1 FROM tab1 ---- 1 2 2 skipif mysql # not compatible query I rowsort label-6964 SELECT - 29 / - col1 FROM tab1 ---- 1 2 2 query I rowsort SELECT DISTINCT + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 ---- 10 13 26 query I rowsort SELECT DISTINCT - col0 * tab1.col2 AS col0 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT - col2 + 40 FROM tab2 ---- 13 14 2 query I rowsort SELECT - + col1 + + ( + col0 + col2 ) * - col0 AS col1 FROM tab0 AS cor0 ---- -1357 -1454 -15310 query I rowsort SELECT + col0 + ( ( col2 ) ) AS col2 FROM tab0 cor0 ---- 171 36 57 query I rowsort SELECT col2 + ( col0 ) AS col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT DISTINCT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2 ---- 54 57 96 query I rowsort SELECT - - col2 * + col0 + col1 FROM tab0 cor0 ---- 132 7389 878 query I rowsort SELECT DISTINCT cor0.col0 * tab1.col2 AS col1 FROM tab1, tab2, tab2 AS cor0 ---- 9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8 onlyif mysql # use DIV operator for integer division query I rowsort label-6974 SELECT + col1 + col2 + col1 DIV + col0 FROM tab0 ---- 100 122 174 skipif mysql # not compatible query I rowsort label-6974 SELECT + col1 + col2 + col1 / + col0 FROM tab0 ---- 100 122 174 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + - col2 col2 FROM tab1 ---- -108 -114 -192 onlyif mysql # use DIV operator for integer division query I rowsort label-6976 SELECT ALL col2 + col2 DIV + col0 AS col1 FROM tab1 AS cor0 ---- 57 72 97 skipif mysql # not compatible query I rowsort label-6976 SELECT ALL col2 + col2 / + col0 AS col1 FROM tab1 AS cor0 ---- 57 72 97 query I rowsort SELECT ALL + + col2 + col0 AS col2 FROM tab2 AS cor0 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + tab0.col0 col1 FROM tab0 ---- 178 48 70 query I rowsort SELECT ALL - col1 * col2 + col1 * - col2 FROM tab0 ---- -14924 -194 -5676 query IIIIII rowsort SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL > ( NULL ) ---- query I rowsort SELECT + col0 * col0 * col1 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT col0 FROM tab0 WHERE ( NULL ) NOT IN ( + col1 ) ---- query III rowsort SELECT * FROM tab0 WHERE NOT NULL IN ( + col1 + - col2 ) ---- query I rowsort SELECT - col0 + col0 * - col1 FROM tab1 AS cor0 ---- -1120 -704 -81 query I rowsort SELECT DISTINCT + + col1 + col0 AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL + + cor0.col1 * - col2 + col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT DISTINCT col2 * col0 + col1 * - col2 AS col2 FROM tab0 AS cor0 ---- -164 -2046 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-6988 SELECT DISTINCT - col2 + - col0 DIV col1 FROM tab2 cor0 ---- -27 -42 skipif mysql # not compatible query I rowsort label-6988 SELECT DISTINCT - col2 + - col0 / col1 FROM tab2 cor0 ---- -27 -42 query I rowsort SELECT ALL - col0 + col2 - col1 AS col1 FROM tab0 AS cor0 ---- -131 -77 -98 query I rowsort SELECT DISTINCT + ( + cor0.col0 ) AS col1 FROM tab1 cor0 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - ( - col0 ) + col0 * col0 col1 FROM tab2 AS cor0 ---- 56 6162 6320 onlyif mysql # use DIV operator for integer division query I rowsort label-6992 SELECT ALL - col0 * col1 DIV + col1 FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-6992 SELECT ALL - col0 * col1 / + col1 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - col1 + cor0.col0 * - col1 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT DISTINCT 39 * - col0 + col2 FROM tab0 AS cor0 ---- -1364 -3389 -903 onlyif mysql # use DIV operator for integer division query I rowsort label-6995 SELECT ALL + col0 DIV - col1 + col0 AS col1 FROM tab2 cor0 ---- 7 75 77 skipif mysql # not compatible query I rowsort label-6995 SELECT ALL + col0 / - col1 + col0 AS col1 FROM tab2 cor0 ---- 7 75 77 query I rowsort SELECT - + cor0.col0 + - col2 * + col2 AS col2 FROM tab1 AS cor0 ---- -2919 -3313 -9296 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 41 col2 FROM tab2 AS cor0 ---- -41 onlyif mysql # use DIV operator for integer division query I rowsort label-6998 SELECT - col2 + + col0 DIV - col0 FROM tab2 AS cor0 ---- -27 -28 -39 skipif mysql # not compatible query I rowsort label-6998 SELECT - col2 + + col0 / - col0 FROM tab2 AS cor0 ---- -27 -28 -39 onlyif mysql # use DIV operator for integer division query I rowsort label-6999 SELECT DISTINCT + col1 DIV col0 - + col1 AS col1 FROM tab1 AS cor0 ---- -10 -13 -18 skipif mysql # not compatible query I rowsort label-6999 SELECT DISTINCT + col1 / col0 - + col1 AS col1 FROM tab1 AS cor0 ---- -10 -13 -18 query I rowsort SELECT ALL - col1 * + col2 - + col0 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT DISTINCT - col0 + - col1 + col0 * + col0 AS col0 FROM tab2 cor0 ---- 11 5947 6145 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 * col0 col0 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-7003 SELECT + - col1 + + col0 DIV - col0 col1 FROM tab2 AS cor0 ---- -18 -32 -60 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7003 SELECT + - col1 + + col0 / - col0 col1 FROM tab2 AS cor0 ---- -18 -32 -60 query I rowsort SELECT DISTINCT col2 + + tab1.col2 FROM tab1 ---- 108 114 192 query I rowsort SELECT ALL - col0 + col1 + col0 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL + cor0.col0 + cor0.col2 * col0 * col1 AS col1 FROM tab2 cor0 ---- 119730 51113 5866 query I rowsort SELECT ALL - + col1 * - col2 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT + col0 * col1 - col2 FROM tab1 cor0 ---- 24 583 944 query I rowsort SELECT 82 AS col1 FROM tab2, tab1, tab1 cor0 ---- 27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944 query I rowsort SELECT ALL 9 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to ebef7303942834ca1e6ca8604ec18a07 query I rowsort SELECT DISTINCT - 93 FROM tab2 ---- -93 query IIIIIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2, tab2 ---- 13122 values hashing to 744eec0e9554ef262e19f9a465711cc1 query I rowsort SELECT + cor0.col0 * col2 AS col1 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT col1 + ( 73 ) AS col0 FROM tab2 AS cor0 ---- 104 132 90 query I rowsort SELECT ALL - 24 * col0 FROM tab2 ---- -168 -1872 -1896 query I rowsort SELECT DISTINCT - 60 + col0 FROM tab2 AS cor0 ---- -53 18 19 onlyif mysql # use DIV operator for integer division query I rowsort label-7017 SELECT - + col0 * col0 DIV + col2 col2 FROM tab1 AS cor0 ---- -66 -71 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7017 SELECT - + col0 * col0 / + col2 col2 FROM tab1 AS cor0 ---- -66 -71 0 query I rowsort SELECT - 34 + - col1 FROM tab0 AS cor0 ---- -120 -125 -131 query I rowsort SELECT - + ( - col0 ) + col2 * col2 * col1 FROM tab0 AS cor0 ---- 132 611973 93678 query I rowsort SELECT ALL col2 * + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT - col2 + 1 AS col2 FROM tab2 cor0 ---- -25 -26 -37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( + col0 ) - 51 * col2 col2 FROM tab1 cor0 ---- -2751 -2843 -4816 query I rowsort SELECT DISTINCT + cor2.col0 FROM tab2, tab2 AS cor0, tab1 cor1, tab0 AS cor2 ---- 24 35 89 query I rowsort SELECT col0 * - col1 * col0 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT - - 79 * cor0.col1 AS col1 FROM tab2 AS cor0 ---- 1343 2449 4661 query I rowsort SELECT 78 * col0 FROM tab0 AS cor0 ---- 1872 2730 6942 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * - col2 col0 FROM tab2 cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-7028 SELECT - 54 DIV col0 + ( 33 * + col0 ) FROM tab2 AS cor0 ---- 224 2574 2607 skipif mysql # not compatible query I rowsort label-7028 SELECT - 54 / col0 + ( 33 * + col0 ) FROM tab2 AS cor0 ---- 224 2574 2607 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 53 * - cor0.col0 col0 FROM tab0 AS cor0 ---- -1272 -1855 -4717 query I rowsort SELECT + col1 + col1 * + 18 * - 83 AS col2 FROM tab0 AS cor0 ---- -128398 -135863 -144821 query I rowsort SELECT - ( col0 ) + - col1 AS col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT + + ( + col2 ) * 84 + - 52 FROM tab0 AS cor0 ---- 2720 32 6836 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-7034 SELECT + + col1 * + CAST( col2 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0 ---- 10982 25947 90506 skipif mysql # not compatible query I rowsort label-7034 SELECT + + col1 * + CAST ( col2 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT ALL - - col2 * + col0 + + 49 FROM tab1 AS cor0 ---- 211 3697 7729 onlyif mysql # use DIV operator for integer division query I rowsort label-7036 SELECT DISTINCT col2 * col2 + + col2 DIV + col2 AS col0 FROM tab0 AS cor0 ---- 1090 2 6725 skipif mysql # not compatible query I rowsort label-7036 SELECT DISTINCT col2 * col2 + + col2 / + col2 AS col0 FROM tab0 AS cor0 ---- 1090 2 6725 query I rowsort SELECT ALL 0 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT ALL - + col2 * - col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT ALL 25 * - col2 FROM tab0 ---- -2050 -25 -825 query I rowsort SELECT DISTINCT + col1 * + ( - col0 + col0 ) AS col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL - ( - 10 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to a47194429f3e0358a3aebffd5f050113 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 35 col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29 query I rowsort SELECT DISTINCT + 89 + cor0.col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 122 171 90 query I rowsort SELECT - ( 48 ) - + col2 * + col1 AS col0 FROM tab0 cor0 ---- -145 -2886 -7510 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor1.col1 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT - ( col0 ) * + col2 AS col1 FROM tab2 cor0 ---- -189 -2028 -3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7047 SELECT DISTINCT col1 * col0 + col1 / - CAST( NULL AS DECIMAL ) + + 43 * - col0 AS col0 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7047 SELECT DISTINCT col1 * col0 + col1 / - CAST ( NULL AS REAL ) + + 43 * - col0 AS col0 FROM tab1 cor0 ---- NULL query I rowsort SELECT DISTINCT - ( + 67 ) AS col0 FROM tab1 ---- -67 query I rowsort SELECT DISTINCT 2 * + col0 AS col0 FROM tab1 ---- 128 160 6 query I rowsort SELECT ALL - 53 + - col2 AS col0 FROM tab1 AS cor0 ---- -107 -110 -149 query I rowsort SELECT - + 4 * col0 FROM tab2 AS cor0 ---- -28 -312 -316 onlyif mysql # use DIV operator for integer division query I rowsort label-7052 SELECT ALL cor0.col1 DIV col1 + col1 AS col1 FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-7052 SELECT ALL cor0.col1 / col1 + col1 AS col1 FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT - col0 * - ( + col2 + ( col0 ) ) AS col2 FROM tab1 ---- 14080 171 7744 query I rowsort SELECT + 35 * - 80 AS col1 FROM tab1 ---- -2800 -2800 -2800 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 * col1 + + col0 col1 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT DISTINCT + col1 * col0 - - tab0.col2 AS col0 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT - col1 + ( col0 ) * - tab2.col1 - - col2 * + col1 * 89 FROM tab2 ---- 131865 56134 74245 query I rowsort SELECT ALL - 85 - - col1 AS col2 FROM tab1 ---- -59 -72 -75 query I rowsort SELECT - col1 + col2 * 82 FROM tab0 ---- -15 2620 6633 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7060 SELECT DISTINCT - ( cor1.col2 ) * - CAST( NULL AS SIGNED ) + 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- NULL skipif mysql # not compatible query I rowsort label-7060 SELECT DISTINCT - ( cor1.col2 ) * - CAST ( NULL AS INTEGER ) + 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- NULL query I rowsort SELECT + col2 + - 14 * - col1 + - col0 * col0 FROM tab1 AS cor0 ---- -3899 -6122 409 query I rowsort SELECT DISTINCT + + cor0.col2 * 18 * + 28 AS col2 FROM tab0 AS cor0 ---- 16632 41328 504 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7063 SELECT DISTINCT + col2 * - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif mysql # not compatible query I rowsort label-7063 SELECT DISTINCT + col2 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT - - cor0.col1 * - col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT 25 + col2 AS col0 FROM tab2 cor0 ---- 51 52 63 query I rowsort SELECT DISTINCT + 18 * 50 + - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 874 887 890 query I rowsort SELECT DISTINCT 15 FROM tab1, tab0 AS cor0 ---- 15 query I rowsort SELECT DISTINCT + 27 AS col1 FROM tab1 cor0 ---- 27 query I rowsort SELECT DISTINCT + 76 + 92 AS col1 FROM tab0 AS cor0 ---- 168 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7070 SELECT ALL - + CAST( col0 AS SIGNED ) + + cor0.col2 * ( col0 ) FROM tab0 AS cor0 ---- 0 7209 768 skipif mysql # not compatible query I rowsort label-7070 SELECT ALL - + CAST ( col0 AS INTEGER ) + + cor0.col2 * ( col0 ) FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT + 26 + + 28 FROM tab1 AS cor0 ---- 54 54 54 query I rowsort SELECT DISTINCT - 1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2 ---- -1 query I rowsort SELECT - col2 + cor0.col0 FROM tab2 cor0 ---- -20 41 52 query I rowsort SELECT - 12 FROM tab2, tab0 AS cor0 ---- 9 values hashing to e698dd57d3aac30af14ce35da434bb45 query I rowsort SELECT DISTINCT + ( tab0.col2 ) * tab0.col1 FROM tab0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7076 SELECT CAST( NULL AS SIGNED ) * - 67 + - col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7076 SELECT CAST ( NULL AS INTEGER ) * - 67 + - col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 18 FROM tab0, tab1 AS cor0 ---- 18 query I rowsort SELECT + ( col1 ) * col0 + + col2 AS col2 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT ALL 9 + col0 - col0 FROM tab0 AS cor0 ---- 9 9 9 query I rowsort SELECT DISTINCT - ( cor0.col2 ) * col1 + col0 AS col1 FROM tab1 cor0 ---- -1168 -1401 -506 query I rowsort SELECT cor1.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT + - 45 * - 98 AS col1 FROM tab1 AS cor0 ---- 4410 4410 4410 query I rowsort SELECT - cor0.col1 + cor0.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2 ---- 81 values hashing to d03157cc416fbb9d03665a2420b4cc3c query I rowsort SELECT ALL - cor0.col0 + + 28 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 94b3e9db2fcc5e46adf15bf2b72e310d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 95 + + col2 col1 FROM tab0 AS cor0 ---- 128 177 96 query I rowsort SELECT ALL - ( col1 ) + cor0.col2 - ( - col2 ) AS col0 FROM tab1 AS cor0 ---- 104 179 82 query I rowsort SELECT ALL cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT DISTINCT + + cor0.col0 + - col1 * - col2 AS col2 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT - col1 * - col1 + - ( - col0 ) * col0 + - ( col2 ) FROM tab1 ---- 4139 631 6473 onlyif mysql # use DIV operator for integer division query I rowsort label-7090 SELECT - tab1.col1 * - col2 - 64 DIV - col2 AS col0 FROM tab1 ---- 1248 1405 571 skipif mysql # not compatible query I rowsort label-7090 SELECT - tab1.col1 * - col2 - 64 / - col2 AS col0 FROM tab1 ---- 1248 1405 571 onlyif mysql # use DIV operator for integer division query I rowsort label-7091 SELECT ALL + cor0.col1 + - cor0.col1 DIV 34 FROM tab1, tab0 cor0 ---- 9 values hashing to d2f9011c79a51614726bed1e174a6045 skipif mysql # not compatible query I rowsort label-7091 SELECT ALL + cor0.col1 + - cor0.col1 / 34 FROM tab1, tab0 cor0 ---- 9 values hashing to d2f9011c79a51614726bed1e174a6045 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 49 * + col1 col1 FROM tab1 AS cor0 ---- 1274 490 637 query I rowsort SELECT + cor0.col2 * col0 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-7094 SELECT - 32 + + col0 DIV - col1 AS col0 FROM tab2 AS cor0 ---- -32 -33 -36 skipif mysql # not compatible query I rowsort label-7094 SELECT - 32 + + col0 / - col1 AS col0 FROM tab2 AS cor0 ---- -32 -33 -36 query I rowsort SELECT ALL col1 + ( - col0 ) FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT DISTINCT - col1 + 48 AS col1 FROM tab0 AS cor0 ---- -38 -43 -49 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + - col2 - - col2 * col2 col0 FROM tab1 AS cor0 ---- 2916 3249 9216 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7098 SELECT DISTINCT + col1 + + CAST( NULL AS DECIMAL ) + + col0 * col2 col0 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7098 SELECT DISTINCT + col1 + + CAST ( NULL AS REAL ) + + col0 * col2 col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL - col2 * + cor0.col1 AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT col1 + col1 + col2 AS col1 FROM tab0 AS cor0 ---- 195 205 264 query I rowsort SELECT ALL + - col0 * ( 70 * - col2 ) + + col2 + + col2 * col0 * - col0 FROM tab0 AS cor0 ---- -138580 1226 36465 query I rowsort SELECT ALL + - cor0.col0 + 84 * cor0.col0 - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1959 2904 7305 query I rowsort SELECT DISTINCT + + col2 - - col0 * col2 AS col1 FROM tab1 AS cor0 ---- 216 3705 7776 onlyif mysql # use DIV operator for integer division query I rowsort label-7104 SELECT col1 DIV col2 AS col0 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7104 SELECT col1 / col2 AS col0 FROM tab1 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7105 SELECT DISTINCT 68 DIV col0 - + 1 AS col0 FROM tab1 ---- -1 0 21 skipif mysql # not compatible query I rowsort label-7105 SELECT DISTINCT 68 / col0 - + 1 AS col0 FROM tab1 ---- -1 0 21 query I rowsort SELECT ALL col1 - + col2 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT DISTINCT - col0 + tab0.col2 - ( 8 * col1 ) AS col0 FROM tab0 ---- -679 -735 -810 query I rowsort SELECT DISTINCT + 31 - - col0 AS col0 FROM tab2 ---- 109 110 38 query I rowsort SELECT + col0 * col0 + col2 * + col1 AS col1 FROM tab2 cor0 ---- 6887 7618 886 query I rowsort SELECT DISTINCT - + col0 * - col0 FROM tab2 AS cor0 ---- 49 6084 6241 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7111 SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7111 SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL + col1 + col1 * col2 AS col2 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT col0 + col2 - cor0.col1 AS col2 FROM tab2 cor0 ---- 100 3 45 query I rowsort SELECT ALL - col1 * + ( col1 ) AS col2 FROM tab0 AS cor0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-7115 SELECT DISTINCT + col2 DIV - cor0.col0 FROM tab1 cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-7115 SELECT DISTINCT + col2 / - cor0.col0 FROM tab1 cor0 ---- -1 -18 0 query I rowsort SELECT DISTINCT + col2 * col0 * cor0.col2 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT + col1 + - ( - cor0.col0 ) FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-7118 SELECT - col1 * col2 DIV col0 FROM tab2 cor0 ---- -119 -19 -8 skipif mysql # not compatible query I rowsort label-7118 SELECT - col1 * col2 / col0 FROM tab2 cor0 ---- -119 -19 -8 query IIIIII rowsort SELECT * FROM tab1, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL ---- query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2 ---- 3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf query I rowsort SELECT - col1 + + col1 + + col2 * cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-7122 SELECT + col0 * 73 DIV col1 AS col1 FROM tab1 AS cor0 ---- 449 467 8 skipif mysql # not compatible query I rowsort label-7122 SELECT + col0 * 73 / col1 AS col1 FROM tab1 AS cor0 ---- 449 467 8 query I rowsort SELECT + col0 * col2 + - col1 FROM tab1 AS cor0 ---- 136 3638 7667 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col0 ) * - cor0.col0 col1 FROM tab0 cor0 ---- -1225 -576 -7921 onlyif mysql # use DIV operator for integer division query I rowsort label-7125 SELECT col0 DIV ( col1 * + col1 + 68 * col1 ) AS col1 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7125 SELECT col0 / ( col1 * + col1 + 68 * col1 ) AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL - 1 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 84da757b1b7b0069ce25607f39bc08d9 onlyif mysql # use DIV operator for integer division query I rowsort label-7127 SELECT ALL + tab0.col2 * - ( col2 ) DIV col2 FROM tab0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-7127 SELECT ALL + tab0.col2 * - ( col2 ) / col2 FROM tab0 ---- -1 -33 -82 query I rowsort SELECT + col2 * + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-7129 SELECT col2 + col1 DIV - col1 AS col0 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-7129 SELECT col2 + col1 / - col1 AS col0 FROM tab1 AS cor0 ---- 53 56 95 query I rowsort SELECT DISTINCT - ( cor0.col0 ) * ( 11 ) + col2 FROM tab2 AS cor0 ---- -50 -831 -832 query I rowsort SELECT ALL + + cor0.col2 + + col2 FROM tab2 cor0 ---- 52 54 76 query I rowsort SELECT DISTINCT + + col1 * col2 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT 91 + + col2 FROM tab1 AS cor0 ---- 145 148 187 query I rowsort SELECT 32 * - col0 AS col1 FROM tab2 AS cor0 ---- -224 -2496 -2528 query I rowsort SELECT DISTINCT ( + 6 * + col1 ) FROM tab0 ---- 516 546 582 query I rowsort SELECT DISTINCT - ( col0 ) AS col2 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT 53 FROM tab0 ---- 53 53 53 query I rowsort SELECT ( - ( + col0 ) + - tab1.col0 * col0 ) FROM tab1 ---- -12 -4160 -6480 query I rowsort SELECT - col1 * + tab2.col2 + + col2 FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT ALL - - col0 + - cor0.col0 * ( 29 * + col0 ) FROM tab1 AS cor0 ---- -118720 -185520 -258 query I rowsort SELECT ALL - 77 AS col0 FROM tab1 AS cor0 ---- -77 -77 -77 query I rowsort SELECT 48 * + col2 AS col2 FROM tab1 AS cor0 ---- 2592 2736 4608 query I rowsort SELECT DISTINCT col2 + col2 * - col2 AS col2 FROM tab2 AS cor0 ---- -1406 -650 -702 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 81 col1 FROM tab1 AS cor0 ---- 81 81 81 query I rowsort SELECT DISTINCT 45 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- 135 2880 3600 query I rowsort SELECT ALL + - col2 + col0 + - col0 AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT + col1 * - cor0.col1 + 16 AS col1 FROM tab1 AS cor0 ---- -153 -660 -84 query I rowsort SELECT - 83 AS col0 FROM tab1 ---- -83 -83 -83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7149 SELECT DISTINCT + col1 + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7149 SELECT DISTINCT + col1 + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT + col1 + + col1 * - col0 * - ( - 71 ) FROM tab1 AS cor0 ---- -45430 -5512 -73827 query I rowsort SELECT + + 2 + 7 * + col2 + - cor0.col1 * 15 FROM tab1 AS cor0 ---- -10 251 479 query I rowsort SELECT 46 + - 98 + col1 FROM tab0 AS cor0 ---- 34 39 45 query I rowsort SELECT DISTINCT col0 * tab1.col1 * col0 FROM tab1 ---- 234 40960 83200 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 31 col1 FROM tab2 AS cor0 ---- 31 31 31 query I rowsort SELECT 97 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c query I rowsort SELECT + col2 + ( ( + col0 ) * + tab1.col0 ) AS col2 FROM tab1 ---- 4153 63 6496 query I rowsort SELECT 26 AS col2 FROM tab1 ---- 26 26 26 query I rowsort SELECT ALL - - col1 * + 29 * - col1 + col2 AS col1 FROM tab1 AS cor0 ---- -19550 -2843 -4805 onlyif mysql # use DIV operator for integer division query I rowsort label-7159 SELECT - cor0.col2 + + col1 DIV col2 AS col1 FROM tab1 cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-7159 SELECT - cor0.col2 + + col1 / col2 AS col1 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT - - ( - col0 ) FROM tab0 cor0 ---- -24 -35 -89 query I rowsort SELECT ALL 64 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 60ab040e931c5c85db7ba19364eacc8e query I rowsort SELECT - col0 + col2 * 80 FROM tab2 ---- 2002 2153 2961 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1 cor0, tab0, tab1 AS cor1 ---- 972 values hashing to 7942394eb7766dfb9ea95b7805ff595d query I rowsort SELECT ALL + 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT ALL + 94 AS col0 FROM tab0 ---- 94 94 94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 - - cor0.col2 * 84 col0 FROM tab2 AS cor0 ---- 2262 2275 3271 query I rowsort SELECT ALL - col1 * - col0 AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - col0 * col0 + - col1 AS col1 FROM tab1 ---- -35 -4106 -6413 query I rowsort SELECT - + col2 * col2 + col2 * + col0 FROM tab0 AS cor0 ---- -297 34 574 onlyif mysql # use DIV operator for integer division query I rowsort label-7170 SELECT DISTINCT - + col1 * + col1 + + 88 DIV + cor0.col0 AS col2 FROM tab1 AS cor0 ---- -168 -647 -99 skipif mysql # not compatible query I rowsort label-7170 SELECT DISTINCT - + col1 * + col1 + + 88 / + cor0.col0 AS col2 FROM tab1 AS cor0 ---- -168 -647 -99 query I rowsort SELECT ALL cor0.col1 - col0 * + 97 AS col0 FROM tab2 cor0 ---- -648 -7507 -7646 onlyif mysql # use DIV operator for integer division query I rowsort label-7172 SELECT DISTINCT - + cor0.col2 DIV col0 + - col1 + + col2 * ( cor0.col2 ) AS col0 FROM tab0 AS cor0 ---- -96 1002 6633 skipif mysql # not compatible query I rowsort label-7172 SELECT DISTINCT - + cor0.col2 / col0 + - col1 + + col2 * ( cor0.col2 ) AS col0 FROM tab0 AS cor0 ---- -96 1002 6633 query I rowsort SELECT + + col2 + ( col1 + - cor0.col1 ) FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT col2 * + col0 * - 55 FROM tab0 ---- -1925 -401390 -43560 query I rowsort SELECT col0 * + 49 FROM tab0 ---- 1176 1715 4361 query I rowsort SELECT col0 * 20 * - col0 FROM tab1 ---- -128000 -180 -81920 query I rowsort SELECT - - col1 + + col2 AS col1 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT - col1 - col1 * - 25 FROM tab0 AS cor0 ---- 2064 2184 2328 query I rowsort SELECT col2 * - ( + col0 ) AS col1 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT - col2 * + col2 - - col1 * - col0 FROM tab0 ---- -14823 -3153 -3396 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7181 SELECT + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7181 SELECT + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 + cor0.col2 + col1 FROM tab1 AS cor0 ---- 131 189 83 query I rowsort SELECT + col2 * col1 * + col2 - col1 AS col2 FROM tab0 AS cor0 ---- 0 611793 93568 query I rowsort SELECT - col2 * col1 + - col0 + col1 * - col1 FROM tab1 AS cor0 ---- -1497 -2083 -734 query I rowsort SELECT - cor0.col1 + - col2 * - col2 FROM tab2 AS cor0 ---- 1427 617 698 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7186 SELECT + CAST( NULL AS SIGNED ) + 5 * col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7186 SELECT + CAST ( NULL AS INTEGER ) + 5 * col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 + 80 * col0 FROM tab0 AS cor0 ---- 1944 2835 7209 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7188 SELECT CAST( - col1 AS SIGNED ) + + cor0.col2 * - ( + col2 ) FROM tab0 AS cor0 ---- -1175 -6815 -98 skipif mysql # not compatible query I rowsort label-7188 SELECT CAST ( - col1 AS INTEGER ) + + cor0.col2 * - ( + col2 ) FROM tab0 AS cor0 ---- -1175 -6815 -98 query I rowsort SELECT + 94 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 101 172 173 query I rowsort SELECT ALL - 87 * + 20 AS col1 FROM tab0 cor0 ---- -1740 -1740 -1740 query I rowsort SELECT DISTINCT + 74 * + 17 * - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -21386 -38998 -74222 onlyif mysql # use DIV operator for integer division query I rowsort label-7192 SELECT ALL - + col2 + col1 DIV + col2 FROM tab0 AS cor0 ---- -31 -81 96 skipif mysql # not compatible query I rowsort label-7192 SELECT ALL - + col2 + col1 / + col2 FROM tab0 AS cor0 ---- -31 -81 96 query I rowsort SELECT - cor0.col0 FROM tab1, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT ALL col2 * + 72 FROM tab2 AS cor0 ---- 1872 1944 2736 query I rowsort SELECT col2 * col2 + - 31 AS col1 FROM tab1 AS cor0 ---- 2885 3218 9185 query I rowsort SELECT col2 - + col0 * - col2 AS col0 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT 9 + col2 * - 60 AS col0 FROM tab2 ---- -1551 -1611 -2271 onlyif mysql # use DIV operator for integer division query I rowsort label-7198 SELECT DISTINCT - col0 DIV + col1 AS col0 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-7198 SELECT DISTINCT - col0 / + col1 AS col0 FROM tab0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7199 SELECT - 29 * cor0.col2 DIV + 84 AS col2 FROM tab1 AS cor0 ---- -18 -19 -33 skipif mysql # not compatible query I rowsort label-7199 SELECT - 29 * cor0.col2 / + 84 AS col2 FROM tab1 AS cor0 ---- -18 -19 -33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7200 SELECT 86 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7200 SELECT 86 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 * 70 FROM tab2 AS cor0 ---- 490 5460 5530 query I rowsort SELECT + cor0.col0 * ( - ( + col1 ) * + ( col1 ) ) - col2 FROM tab1 AS cor0 ---- -13616 -2082 -6457 query I rowsort SELECT - + col2 + 6 + + 92 FROM tab1 AS cor0 ---- 2 41 44 query I rowsort SELECT + - col0 * cor0.col0 + + col0 * col0 AS col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 64 AS col0 FROM tab0 ---- 64 query I rowsort SELECT DISTINCT 74 * col2 + col1 * - 43 AS col1 FROM tab2 AS cor0 ---- -613 2081 665 onlyif mysql # use DIV operator for integer division query I rowsort label-7207 SELECT ALL - 85 * + col1 + col1 DIV col1 FROM tab1 AS cor0 ---- -1104 -2209 -849 skipif mysql # not compatible query I rowsort label-7207 SELECT ALL - 85 * + col1 + col1 / col1 FROM tab1 AS cor0 ---- -1104 -2209 -849 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7208 SELECT ALL - col2 * + cor0.col1 - + CAST( 22 * + col1 AS SIGNED ) FROM tab0 cor0 ---- -2231 -4730 -9464 skipif mysql # not compatible query I rowsort label-7208 SELECT ALL - col2 * + cor0.col1 - + CAST ( 22 * + col1 AS INTEGER ) FROM tab0 cor0 ---- -2231 -4730 -9464 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7209 SELECT col2 + cor0.col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7209 SELECT col2 + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ( - col1 ) + 80 FROM tab1 AS cor0 ---- 54 67 70 onlyif mysql # use DIV operator for integer division query I rowsort label-7211 SELECT DISTINCT 26 DIV col2 + cor0.col1 FROM tab0 AS cor0 ---- 123 86 91 skipif mysql # not compatible query I rowsort label-7211 SELECT DISTINCT 26 / col2 + cor0.col1 FROM tab0 AS cor0 ---- 123 86 91 query I rowsort SELECT + - col2 + col0 AS col1 FROM tab0 cor0 ---- -9 34 7 query I rowsort SELECT ALL 34 - tab0.col2 AS col2 FROM tab0 ---- -48 1 33 query I rowsort SELECT ALL + 27 - + col1 FROM tab0 ---- -59 -64 -70 query I rowsort SELECT ALL col1 - - col0 AS col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL - col1 + col2 AS col0 FROM tab2 ---- -33 -4 21 query I rowsort SELECT DISTINCT - col0 + col1 * 63 * + 29 AS col1 FROM tab0 ---- 157098 166168 177184 query I rowsort SELECT - col0 * col1 + 33 + col0 FROM tab2 ---- -1231 -177 -4491 query I rowsort SELECT ALL - col2 + + col1 * + col0 * + 49 AS col2 FROM tab1 ---- 31303 3768 50864 query I rowsort SELECT DISTINCT + col2 - - col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT + ( col1 ) + + 70 AS col2 FROM tab1 AS cor0 ---- 80 83 96 query I rowsort SELECT DISTINCT + 18 + - cor0.col2 FROM tab2 AS cor0 ---- -20 -8 -9 query I rowsort SELECT DISTINCT - cor0.col2 * cor0.col1 - + 60 * - col1 FROM tab1 AS cor0 ---- -468 156 30 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7224 SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-7224 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- NULL query I rowsort SELECT - - col1 - col0 AS col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT DISTINCT - col0 * cor0.col1 + col0 * col0 FROM tab2 AS cor0 ---- -168 1482 4898 onlyif mysql # use DIV operator for integer division query I rowsort label-7227 SELECT col1 * cor0.col0 + + 83 DIV + col0 AS col1 FROM tab1 AS cor0 ---- 1041 105 641 skipif mysql # not compatible query I rowsort label-7227 SELECT col1 * cor0.col0 + + 83 / + col0 AS col1 FROM tab1 AS cor0 ---- 1041 105 641 query I rowsort SELECT ALL 20 * - col1 + 72 + + col2 AS col1 FROM tab0 cor0 ---- -1615 -1666 -1867 query I rowsort SELECT ALL - col2 * + tab2.col1 * - 2 AS col0 FROM tab2 ---- 1292 1674 3068 query I rowsort SELECT - col2 * - ( col1 ) + - tab2.col1 AS col1 FROM tab2 ---- 1475 629 806 query I rowsort SELECT - 12 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0 query I rowsort SELECT tab1.col0 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT + cor0.col1 + ( cor0.col0 ) * - col2 * + ( col0 ) FROM tab0 AS cor0 ---- -1128 -18922 -649431 query I rowsort SELECT DISTINCT tab2.col1 * col0 * - col2 AS col1 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT col2 - - col1 FROM tab0 ---- 119 173 98 query I rowsort SELECT ALL ( col1 ) + col1 * + col1 * + col1 + + col0 * - col2 AS col1 FROM tab2 AS cor0 ---- 1928 203410 29633 onlyif mysql # use DIV operator for integer division query I rowsort label-7237 SELECT ALL + cor0.col0 DIV 71 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-7237 SELECT ALL + cor0.col0 / 71 FROM tab1 AS cor0 ---- 0 0 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7238 SELECT DISTINCT + CAST( + cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-7238 SELECT DISTINCT + CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT - col0 * col0 + - col2 FROM tab0 AS cor0 ---- -1226 -609 -8003 query I rowsort SELECT ALL 62 * col1 - col1 FROM tab1 AS cor0 ---- 1586 610 793 query I rowsort SELECT ALL - cor0.col2 - - col2 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + 0 FROM tab1, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT 36 + col0 * col0 FROM tab2 ---- 6120 6277 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col0 * col0 col2 FROM tab0 AS cor0 ---- 1225 576 7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( - 73 ) col0 FROM tab1 AS cor0 ---- -73 -73 -73 query I rowsort SELECT ALL + 87 * - col0 AS col0 FROM tab0 AS cor0 ---- -2088 -3045 -7743 onlyif mysql # use DIV operator for integer division query I rowsort label-7247 SELECT ALL - + 65 DIV - 36 AS col1 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7247 SELECT ALL - + 65 / - 36 AS col1 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - cor0.col2 * col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT ALL + ( + 0 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT 25 + + col0 FROM tab0 AS cor0 ---- 114 49 60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7251 SELECT ALL - CAST( col1 AS SIGNED ) * - col0 + cor0.col1 FROM tab2 AS cor0 ---- 1360 248 4661 skipif mysql # not compatible query I rowsort label-7251 SELECT ALL - CAST ( col1 AS INTEGER ) * - col0 + cor0.col1 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT ALL - ( - col0 ) + + cor0.col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT - 25 * cor0.col0 AS col2 FROM tab2 cor0 ---- -175 -1950 -1975 query I rowsort SELECT ALL - + col2 + + col1 - + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -73 20 95 onlyif mysql # use DIV operator for integer division query I rowsort label-7255 SELECT DISTINCT + col1 DIV col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-7255 SELECT DISTINCT + col1 / col2 FROM tab0 AS cor0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 10 col1 FROM tab1 AS cor0 ---- -10 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7257 SELECT ALL 55 * 95 + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7257 SELECT ALL 55 * 95 + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ( - cor0.col0 ) * + 74 * 18 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 585314f776031e2d917bc22c94dda5f2 query I rowsort SELECT 99 + col0 AS col2 FROM tab2 ---- 106 177 178 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7260 SELECT - CAST( col2 + col0 AS SIGNED ) FROM tab2 ---- -104 -117 -34 skipif mysql # not compatible query I rowsort label-7260 SELECT - CAST ( col2 + col0 AS INTEGER ) FROM tab2 ---- -104 -117 -34 query I rowsort SELECT ALL col1 * ( - col0 + + ( - col1 ) ) AS col0 FROM tab2 ---- -1178 -1632 -8083 query I rowsort SELECT ALL + - ( + col0 ) * cor0.col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT - ( - col1 ) * col2 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT + + ( - cor0.col0 ) * + col1 AS col1 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT + + ( col1 ) * - col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT - 83 AS col0 FROM tab0 cor0 ---- -83 -83 -83 query I rowsort SELECT - col2 - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT + col1 - col2 * col2 AS col0 FROM tab0 cor0 ---- -1003 -6633 96 query I rowsort SELECT ALL + ( + col0 ) + - col0 AS col1 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7270 SELECT ALL - col2 DIV - col1 FROM tab2 AS cor0 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-7270 SELECT ALL - col2 / - col1 FROM tab2 AS cor0 ---- 0 0 2 query I rowsort SELECT DISTINCT - + 4 * cor0.col2 FROM tab0 AS cor0 ---- -132 -328 -4 query I rowsort SELECT + 16 AS col1 FROM tab2 AS cor0 ---- 16 16 16 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7273 SELECT DISTINCT + 52 + col2 * + CAST( + ( - col1 ) AS SIGNED ) FROM tab0 AS cor0 ---- -2786 -45 -7410 skipif mysql # not compatible query I rowsort label-7273 SELECT DISTINCT + 52 + col2 * + CAST ( + ( - col1 ) AS INTEGER ) FROM tab0 AS cor0 ---- -2786 -45 -7410 query I rowsort SELECT 20 + 2 AS col2 FROM tab1 ---- 22 22 22 query I rowsort SELECT DISTINCT 90 * + col0 FROM tab2 ---- 630 7020 7110 onlyif mysql # use DIV operator for integer division query I rowsort label-7276 SELECT DISTINCT + 38 DIV - col0 FROM tab0 ---- -1 0 skipif mysql # not compatible query I rowsort label-7276 SELECT DISTINCT + 38 / - col0 FROM tab0 ---- -1 0 query I rowsort SELECT - col2 * - col1 * 7 AS col1 FROM tab2 AS cor0 ---- 10738 4522 5859 query I rowsort SELECT + 23 + col0 AS col0 FROM tab2 cor0 ---- 101 102 30 query I rowsort SELECT DISTINCT 93 * + col1 FROM tab1 ---- 1209 2418 930 onlyif mysql # use DIV operator for integer division query I rowsort label-7280 SELECT - 56 DIV 19 - col1 AS col1 FROM tab2 ---- -19 -33 -61 skipif mysql # not compatible query I rowsort label-7280 SELECT - 56 / 19 - col1 AS col1 FROM tab2 ---- -19 -33 -61 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * - col2 col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7282 SELECT - + cor0.col1 * CAST( - 82 AS SIGNED ) col0 FROM tab2 AS cor0 ---- 1394 2542 4838 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7282 SELECT - + cor0.col1 * CAST ( - 82 AS INTEGER ) col0 FROM tab2 AS cor0 ---- 1394 2542 4838 query I rowsort SELECT + col1 + - 58 * + 61 FROM tab1 AS cor0 ---- -3512 -3525 -3528 query I rowsort SELECT - col1 + col0 + + cor0.col1 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT + col2 + + ( - 47 ) * col0 FROM tab0 AS cor0 ---- -1095 -1644 -4101 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7286 SELECT ALL col1 * - CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7286 SELECT ALL col1 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT - - col1 * + col0 AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col1 + 98 * - col1 col0 FROM tab1 AS cor0 ---- -1287 -2574 -990 query I rowsort SELECT - - col0 + + col1 + col2 AS col2 FROM tab2 AS cor0 ---- 134 163 65 query I rowsort SELECT DISTINCT - col1 + + 25 AS col1 FROM tab1 AS cor0 ---- -1 12 15 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * - col1 col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col0 + col1 + - col1 * - ( col1 ) col1 FROM tab1 AS cor0 ---- 3758 7862 864 query I rowsort SELECT ALL - - col2 + col0 * + col0 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT ALL - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT DISTINCT 84 * + col0 * - tab2.col0 + + col2 AS col1 FROM tab2 ---- -4089 -511030 -524206 query I rowsort SELECT + - col0 + ( + col0 ) * + col2 AS col0 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT ALL - col0 + - col2 * 55 * col0 AS col2 FROM tab2 AS cor0 ---- -10402 -111618 -165189 onlyif mysql # use DIV operator for integer division query I rowsort label-7298 SELECT DISTINCT - + col0 * col2 DIV + 90 + - col1 * 24 FROM tab1 AS cor0 ---- -280 -397 -625 skipif mysql # not compatible query I rowsort label-7298 SELECT DISTINCT - + col0 * col2 / + 90 + - col1 * 24 FROM tab1 AS cor0 ---- -280 -397 -625 onlyif mysql # use DIV operator for integer division query I rowsort label-7299 SELECT - col2 + col1 DIV - col1 AS col2 FROM tab1 AS cor0 ---- -55 -58 -97 skipif mysql # not compatible query I rowsort label-7299 SELECT - col2 + col1 / - col1 AS col2 FROM tab1 AS cor0 ---- -55 -58 -97 query I rowsort SELECT ALL - cor0.col0 + - col2 + - 17 * + col2 FROM tab2 AS cor0 ---- -493 -546 -763 query I rowsort SELECT - col1 + 27 FROM tab0 ---- -59 -64 -70 query I rowsort SELECT ALL + col2 * - tab2.col1 AS col0 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT + 46 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 27 values hashing to 2f97924b57b73102233df7c9ce8ad602 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab0 AS cor2 ---- 3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53 onlyif mysql # use DIV operator for integer division query I rowsort label-7305 SELECT + col1 DIV col0 AS col1 FROM tab0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-7305 SELECT + col1 / col0 AS col1 FROM tab0 ---- 1 2 3 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col1 + + col1 - - col0 * col0 ) ---- query I rowsort SELECT + col1 - col2 AS col0 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT ALL + col0 * col1 - - col0 AS col0 FROM tab0 ---- 2088 3430 8188 query I rowsort SELECT - cor0.col2 * - col0 + + col0 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT + cor0.col0 + + col2 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT col2 * + col1 * - col1 + + col0 FROM tab0 AS cor0 ---- -244044 -678953 -9374 query I rowsort SELECT - col0 * tab1.col1 * - tab1.col1 AS col2 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT + col2 * col0 FROM tab1 WHERE NULL IN ( + col2 + col0 ) ---- query I rowsort SELECT - col1 * - col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT col0 * - col2 + tab1.col1 AS col1 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT col2 + - col1 * - col0 FROM tab2 ---- 1381 244 4628 query I rowsort SELECT - col2 + col1 * - col2 AS col1 FROM tab0 ---- -2871 -7544 -98 query I rowsort SELECT ALL + col1 * col0 AS col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT - col0 + col0 * - col2 AS col0 FROM tab2 ---- -196 -2106 -3081 query I rowsort SELECT ALL - col2 * - col1 + - col2 FROM tab0 WHERE NOT col0 + + col2 * col2 <= NULL ---- query I rowsort SELECT col0 * + col0 * col2 + - col1 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN - col1 AND tab2.col0 ---- query I rowsort SELECT DISTINCT + col1 - - col1 FROM tab0 ---- 172 182 194 query III rowsort SELECT * FROM tab0 WHERE NOT col2 * - col1 * col0 = - col2 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT - col0 * + col2 + col2 AS col2 FROM tab2 ---- -162 -2002 -2964 query I rowsort SELECT ALL col1 - - col0 AS col2 FROM tab0 ---- 110 132 180 query I rowsort SELECT - - cor0.col0 AS col0 FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT + col2 + - col2 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * col2 AS col2 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT col2 + - col1 - col2 * - col1 AS col2 FROM tab0 AS cor0 ---- 1 2785 7453 query I rowsort SELECT DISTINCT + col1 + + col0 AS col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT DISTINCT col0 + + col1 * - col1 AS col0 FROM tab2 ---- -210 -3403 -954 onlyif mysql # use DIV operator for integer division query I rowsort label-7332 SELECT ALL + col2 + 72 DIV - col2 + col1 FROM tab0 AS cor0 ---- 117 173 26 skipif mysql # not compatible query I rowsort label-7332 SELECT ALL + col2 + 72 / - col2 + col1 FROM tab0 AS cor0 ---- 117 173 26 query I rowsort SELECT - - col2 + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT DISTINCT - + cor0.col1 + + 28 FROM tab2 AS cor0 ---- -3 -31 11 query I rowsort SELECT ALL + col0 + - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2 -62 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-7336 SELECT ALL + col2 DIV + 9 - col2 FROM tab1 AS cor0 ---- -48 -51 -86 skipif mysql # not compatible query I rowsort label-7336 SELECT ALL + col2 / + 9 - col2 FROM tab1 AS cor0 ---- -48 -51 -86 query I rowsort SELECT DISTINCT + col1 * - col2 - - col2 AS col1 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT DISTINCT + - col1 + + 12 FROM tab2 AS cor0 ---- -19 -47 -5 query I rowsort SELECT - col0 * 92 FROM tab1 AS cor0 ---- -276 -5888 -7360 query I rowsort SELECT col0 * + 22 FROM tab0 AS cor0 ---- 1958 528 770 query I rowsort SELECT 78 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to d8e5ef4db3419fc251e82c50ba04e048 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7342 SELECT ALL col1 - CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7342 SELECT ALL col1 - CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL 41 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e query I rowsort SELECT ALL + col2 - - col1 AS col2 FROM tab0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 * + ( col0 ) + col0 col0 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT - col2 + ( - 80 ) AS col2 FROM tab2 AS cor0 ---- -106 -107 -118 query I rowsort SELECT + col1 * - 1 + - 11 FROM tab1 AS cor0 ---- -21 -24 -37 onlyif mysql # use DIV operator for integer division query I rowsort label-7348 SELECT - col0 * + col2 + - col1 DIV + col1 FROM tab2 AS cor0 ---- -190 -2029 -3003 skipif mysql # not compatible query I rowsort label-7348 SELECT - col0 * + col2 + - col1 / + col1 FROM tab2 AS cor0 ---- -190 -2029 -3003 query I rowsort SELECT ALL - col0 + col0 * - tab1.col1 * + col0 AS col2 FROM tab1 ---- -237 -41024 -83280 query III rowsort SELECT * FROM tab0 WHERE NOT - col1 > col0 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 onlyif mysql # use DIV operator for integer division query I rowsort label-7351 SELECT ALL col2 DIV - col2 + - tab1.col2 * - col1 FROM tab1 ---- 1247 1403 569 skipif mysql # not compatible query I rowsort label-7351 SELECT ALL col2 / - col2 + - tab1.col2 * - col1 FROM tab1 ---- 1247 1403 569 query I rowsort SELECT col2 + - tab2.col2 AS col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT col1 - col0 AS col1 FROM tab1 ---- -54 -67 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + col1 + + col1 col1 FROM tab2 ---- 1360 248 4661 query I rowsort SELECT DISTINCT + col0 - col0 AS col1 FROM tab1 ---- 0 query I rowsort SELECT col2 + col2 + col1 * col0 AS col0 FROM tab0 ---- 2130 3397 8263 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 / col1 col0 FROM tab0 WHERE NULL <> ( col2 ) ---- query I rowsort SELECT - col0 * + tab2.col0 - col0 FROM tab2 ---- -56 -6162 -6320 query I rowsort SELECT + tab2.col0 + - col2 AS col2 FROM tab2 ---- -20 41 52 query I rowsort SELECT - tab0.col1 * + col0 - + col1 AS col0 FROM tab0 ---- -2150 -3492 -8190 query I rowsort SELECT - col0 + + cor0.col2 AS col0 FROM tab1 AS cor0 ---- -7 16 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 85 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7 query I rowsort SELECT + + ( - cor0.col1 ) * + col2 AS col2 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL cor0.col1 * col1 AS col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT ALL col0 - col1 FROM tab1 AS cor0 ---- -23 54 67 onlyif mysql # use DIV operator for integer division query I rowsort label-7366 SELECT 60 DIV 45 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to da8a72a7967c0c73d91239275230aed9 skipif mysql # not compatible query I rowsort label-7366 SELECT 60 / 45 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to da8a72a7967c0c73d91239275230aed9 query I rowsort SELECT DISTINCT - col1 + + col0 FROM tab0 cor0 ---- -2 -62 query I rowsort SELECT ALL + col0 + + col1 * col2 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT DISTINCT col0 * - cor0.col0 AS col1 FROM tab0 cor0 ---- -1225 -576 -7921 query I rowsort SELECT ALL - col2 * - ( col0 ) * col0 AS col0 FROM tab0 AS cor0 ---- 1225 19008 649522 query I rowsort SELECT ALL col0 * ( 11 ) FROM tab1 AS cor0 ---- 33 704 880 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 - ( - col1 * col1 ) col0 FROM tab0 cor0 ---- 7482 8372 9506 query I rowsort SELECT + + col2 * 9 FROM tab0 AS cor0 ---- 297 738 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7374 SELECT + + col1 + + CAST( NULL AS DECIMAL ) * + col1 / col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7374 SELECT + + col1 + + CAST ( NULL AS REAL ) * + col1 / col1 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - cor0.col0 * col2 + + col2 * + col2 AS col2 FROM tab0 cor0 ---- 14022 1881 36 query I rowsort SELECT DISTINCT col1 + + 13 * + col1 FROM tab0 cor0 ---- 1204 1274 1358 query I rowsort SELECT + - col0 * + col0 * + col2 FROM tab2 cor0 ---- -1323 -158184 -237158 query I rowsort SELECT DISTINCT + col0 + col2 * + col2 AS col1 FROM tab1 AS cor0 ---- 2919 3313 9296 query I rowsort SELECT ALL + col2 * ( col0 ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT col1 * col2 * + col2 FROM tab2 AS cor0 ---- 22599 24548 39884 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7381 SELECT DISTINCT - col2 / - CAST( NULL AS SIGNED ) FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7381 SELECT DISTINCT - col2 / - CAST ( NULL AS INTEGER ) FROM tab0 cor0 ---- NULL query I rowsort SELECT - ( cor0.col2 ) * - col2 - - col0 * col0 AS col1 FROM tab0 AS cor0 ---- 1226 14645 1665 query I rowsort SELECT DISTINCT - + ( + 61 ) FROM tab1 AS cor0 ---- -61 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7384 SELECT - CAST( col0 AS SIGNED ) - + col2 FROM tab0 AS cor0 ---- -171 -36 -57 skipif mysql # not compatible query I rowsort label-7384 SELECT - CAST ( col0 AS INTEGER ) - + col2 FROM tab0 AS cor0 ---- -171 -36 -57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 65 * col0 + + col1 + col0 col2 FROM tab1 AS cor0 ---- 224 4234 5293 query I rowsort SELECT DISTINCT 4 FROM tab2 AS cor0 ---- 4 query I rowsort SELECT ALL + 85 FROM tab0 cor0 ---- 85 85 85 query I rowsort SELECT + + 90 FROM tab1 cor0 ---- 90 90 90 query I rowsort SELECT - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 onlyif mysql # use DIV operator for integer division query I rowsort label-7390 SELECT ALL col0 DIV - ( 51 ) AS col0 FROM tab2 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-7390 SELECT ALL col0 / - ( 51 ) AS col0 FROM tab2 ---- -1 -1 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7391 SELECT DISTINCT + tab1.col1 DIV tab1.col2 FROM tab1, tab1 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-7391 SELECT DISTINCT + tab1.col1 / tab1.col2 FROM tab1, tab1 cor0 ---- 0 query I rowsort SELECT cor1.col2 * cor1.col0 FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 27 values hashing to 421c686606be6ea267ac0dc7521bf659 query I rowsort SELECT + - col2 * + col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL + cor0.col2 * + col1 AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL - - col2 * col2 * ( + col1 * col1 ) FROM tab2 AS cor0 ---- 2353156 417316 700569 query I rowsort SELECT ALL 52 AS col0 FROM tab2 AS cor0 ---- 52 52 52 query I rowsort SELECT ALL + 22 * col2 AS col0 FROM tab0 AS cor0 ---- 1804 22 726 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - - col0 col2 FROM tab1 ---- 128 160 6 query I rowsort SELECT DISTINCT - 65 * - 47 + col2 FROM tab0 ---- 3056 3088 3137 query I rowsort SELECT DISTINCT col2 * - col0 + tab0.col2 FROM tab0 ---- -34 -7216 -759 query I rowsort SELECT tab1.col2 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 23 col2 FROM tab2, tab0 cor0, tab2 AS cor1 ---- 27 values hashing to 546d49aa433406dd83ea19885588e658 query I rowsort SELECT - col0 * - col0 * 60 + + col1 + + col0 FROM tab0 AS cor0 ---- 34670 475440 73632 query I rowsort SELECT ALL + - 26 * + col2 + 39 * + 78 AS col1 FROM tab2 AS cor0 ---- 2054 2340 2366 query I rowsort SELECT DISTINCT - col0 * - col0 AS col0 FROM tab0 ---- 1225 576 7921 query I rowsort SELECT + - cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT ALL + col0 * col1 * + col0 + + col1 * - col1 AS col1 FROM tab1 AS cor0 ---- -442 40860 83031 query I rowsort SELECT DISTINCT - col1 + col0 * + col0 FROM tab1 AS cor0 ---- -17 4086 6387 query I rowsort SELECT - col1 * + col0 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL + ( + ( col0 ) ) + - col2 * - col1 AS col0 FROM tab1 ---- 1328 1407 634 query I rowsort SELECT col1 + 29 * - col0 FROM tab2 ---- -172 -2203 -2274 query I rowsort SELECT ALL + col1 * col2 + col2 + col0 AS col1 FROM tab0 ---- 133 2895 7633 query I rowsort SELECT DISTINCT 23 + - col1 FROM tab0 ---- -63 -68 -74 query I rowsort SELECT ALL + col2 + 22 AS col1 FROM tab0 ---- 104 23 55 onlyif mysql # use DIV operator for integer division query I rowsort label-7415 SELECT ALL col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-7415 SELECT ALL col0 / cor0.col2 AS col0 FROM tab0 AS cor0 ---- 0 1 35 query I rowsort SELECT + ( + 98 ) - + col0 FROM tab1 AS cor0 ---- 18 34 95 query I rowsort SELECT DISTINCT + ( - 8 ) * col0 AS col0 FROM tab1 ---- -24 -512 -640 query I rowsort SELECT ALL 60 * col1 - col1 AS col0 FROM tab0 cor0 ---- 5074 5369 5723 query I rowsort SELECT DISTINCT + 65 + + col0 * + col0 FROM tab1 AS cor0 ---- 4161 6465 74 onlyif mysql # use DIV operator for integer division query I rowsort label-7420 SELECT + 35 + + col0 DIV + col1 AS col1 FROM tab2 AS cor0 ---- 35 36 39 skipif mysql # not compatible query I rowsort label-7420 SELECT + 35 + + col0 / + col1 AS col1 FROM tab2 AS cor0 ---- 35 36 39 query I rowsort SELECT DISTINCT - 81 + + col1 * cor0.col2 + + col0 FROM tab2 AS cor0 ---- 1531 644 763 query I rowsort SELECT DISTINCT 40 + col2 AS col2 FROM tab1 AS cor0 ---- 136 94 97 onlyif mysql # use DIV operator for integer division query I rowsort label-7423 SELECT - 25 + - col0 DIV col1 AS col1 FROM tab1 AS cor0 ---- -25 -31 -31 skipif mysql # not compatible query I rowsort label-7423 SELECT - 25 + - col0 / col1 AS col1 FROM tab1 AS cor0 ---- -25 -31 -31 onlyif mysql # use DIV operator for integer division query I rowsort label-7424 SELECT DISTINCT + + 32 * + col1 + - col0 DIV col0 FROM tab1 AS cor0 ---- 319 415 831 skipif mysql # not compatible query I rowsort label-7424 SELECT DISTINCT + + 32 * + col1 + - col0 / col0 FROM tab1 AS cor0 ---- 319 415 831 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * - col2 col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT 41 * col2 + col2 FROM tab0 AS cor0 ---- 1386 3444 42 query I rowsort SELECT ALL 94 * - col2 AS col2 FROM tab1 AS cor0 ---- -5076 -5358 -9024 query I rowsort SELECT DISTINCT + - 79 FROM tab1 AS cor0 ---- -79 query I rowsort SELECT ALL ( - col0 ) AS col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT ( col2 * + col0 ) + - col0 FROM tab2 ---- 182 1950 2923 query I rowsort SELECT 5 AS col0 FROM tab2 AS cor0 ---- 5 5 5 query I rowsort SELECT - 71 FROM tab2 AS cor0 ---- -71 -71 -71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 82 col2 FROM tab2 ---- 82 82 82 query I rowsort SELECT DISTINCT + 53 AS col1 FROM tab2, tab0 AS cor0 ---- 53 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab1.col2 * 94 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 2d36f5e1fd6f532ec42f7e5795c8f12e skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( - col1 AS REAL ) * col2 AS col2 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT - ( tab2.col1 ) AS col0 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT col2 - - col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT - + col1 + + col2 * + 61 AS col2 FROM tab0 AS cor0 ---- -36 1927 4911 query I rowsort SELECT + col1 - - col1 * 55 * - col1 FROM tab2 AS cor0 ---- -15878 -191396 -52824 query I rowsort SELECT col0 + - col2 * + ( col0 + col0 ) FROM tab1 AS cor0 ---- -15280 -321 -7232 query I rowsort SELECT - 75 + col2 AS col0 FROM tab0 AS cor0 ---- -42 -74 7 query I rowsort SELECT + + col1 * - col2 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT cor0.col2 - col0 AS col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT + 6 - col1 AS col0 FROM tab2 AS cor0 ---- -11 -25 -53 onlyif mysql # use DIV operator for integer division query I rowsort label-7446 SELECT ALL + 0 * + col1 DIV ( - 83 * - col1 ) AS col1 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7446 SELECT ALL + 0 * + col1 / ( - 83 * - col1 ) AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + 87 - + col1 FROM tab1 AS cor0 ---- 61 74 77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 18 + - col2 col2 FROM tab1 AS cor0 ---- -36 -39 -78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7449 SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7449 SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + 17 * + col2 col0 FROM tab0 AS cor0 ---- 114 1485 647 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7451 SELECT DISTINCT + - col1 * CAST( 10 AS SIGNED ) * - col2 FROM tab1 AS cor0 ---- 12480 14040 5700 skipif mysql # not compatible query I rowsort label-7451 SELECT DISTINCT + - col1 * CAST ( 10 AS INTEGER ) * - col2 FROM tab1 AS cor0 ---- 12480 14040 5700 query I rowsort SELECT + col1 + + 14 * 73 AS col2 FROM tab2 cor0 ---- 1039 1053 1081 query I rowsort SELECT 90 * - 8 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 7eeeb5eae8ec6d5d723237a0cf42c298 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 92 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to c64cb7a81da51f4be0b6906a223e8817 onlyif mysql # use DIV operator for integer division query I rowsort label-7455 SELECT - - col0 DIV + col1 + + col1 AS col1 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-7455 SELECT - - col0 / + col1 + + col1 AS col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT - col0 * 62 + cor0.col0 AS col0 FROM tab2 AS cor0 ---- -427 -4758 -4819 query I rowsort SELECT cor0.col1 + + col2 * col0 AS col0 FROM tab2 cor0 ---- 2087 220 3019 query I rowsort SELECT + + col1 + col2 + col1 FROM tab1 AS cor0 ---- 106 122 77 query I rowsort SELECT ALL + + col0 + col1 AS col2 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT - ( 89 ) FROM tab2 AS cor0 ---- -89 -89 -89 query I rowsort SELECT DISTINCT - - 34 FROM tab2 AS cor0 ---- 34 query I rowsort SELECT DISTINCT - 8 * + col0 FROM tab2 AS cor0 ---- -56 -624 -632 query I rowsort SELECT ALL - - col2 * 90 FROM tab2 AS cor0 ---- 2340 2430 3420 query I rowsort SELECT col1 * - cor0.col1 * col1 AS col2 FROM tab0 AS cor0 ---- -636056 -753571 -912673 query I rowsort SELECT ALL ( + col1 ) + col0 AS col2 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT - tab1.col1 + - 11 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 5afe15676ad3ae83aa27c3a31ace0b0a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7467 SELECT ALL - CAST( NULL AS SIGNED ) * 15 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7467 SELECT ALL - CAST ( NULL AS INTEGER ) * 15 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 * - 88 FROM tab2 AS cor0 ---- -616 -6864 -6952 query I rowsort SELECT DISTINCT 83 * - col2 + col2 + ( - 82 ) * col1 AS col1 FROM tab0 AS cor0 ---- -14186 -8036 -9758 query I rowsort SELECT + ( + col0 ) AS col0 FROM tab1 ---- 3 64 80 query I rowsort SELECT ( - ( col0 ) ) AS col1 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT ALL - cor0.col1 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f query I rowsort SELECT + 24 + col0 FROM tab1 cor0 ---- 104 27 88 query I rowsort SELECT - 9 * + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -216 -315 -801 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 85 col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1 ---- 81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb query I rowsort SELECT DISTINCT 51 AS col1 FROM tab2, tab2 cor0 ---- 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col0 * - 49 - - col0 * col2 col0 FROM tab0 ---- 11659 1750 1968 query I rowsort SELECT ALL + 76 FROM tab1, tab2 cor0 ---- 9 values hashing to 30b8941a700cffd5b983116383bd42d5 query I rowsort SELECT ALL 10 AS col0 FROM tab1 ---- 10 10 10 query I rowsort SELECT - + col0 + 95 AS col2 FROM tab2 AS cor0 ---- 16 17 88 query I rowsort SELECT + + col1 * col1 + + 13 FROM tab2 cor0 ---- 302 3494 974 query I rowsort SELECT DISTINCT - + col1 * 48 + ( col2 ) * col1 FROM tab1 AS cor0 ---- 156 624 90 query I rowsort SELECT DISTINCT - cor0.col1 + - 76 FROM tab0 AS cor0 ---- -162 -167 -173 query I rowsort SELECT ALL - col1 * ( - cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- 289 3481 961 onlyif mysql # use DIV operator for integer division query I rowsort label-7485 SELECT ALL - tab1.col1 * - tab1.col2 + col2 * col1 + ( 71 ) DIV col1 AS col1 FROM tab1 ---- 1147 2501 2810 skipif mysql # not compatible query I rowsort label-7485 SELECT ALL - tab1.col1 * - tab1.col2 + col2 * col1 + ( 71 ) / col1 AS col1 FROM tab1 ---- 1147 2501 2810 onlyif mysql # use DIV operator for integer division query I rowsort label-7486 SELECT ALL + tab1.col1 + col0 DIV - tab1.col1 FROM tab1 ---- 26 4 7 skipif mysql # not compatible query I rowsort label-7486 SELECT ALL + tab1.col1 + col0 / - tab1.col1 FROM tab1 ---- 26 4 7 query I rowsort SELECT - col0 * + col1 + - col2 AS col1 FROM tab1 AS cor0 ---- -1136 -132 -697 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2 ---- 3645 values hashing to b8435223668db186a5012e4112253f28 query I rowsort SELECT col1 + 59 FROM tab2 AS cor0 ---- 118 76 90 query I rowsort SELECT ALL + + 82 * col2 FROM tab0 AS cor0 ---- 2706 6724 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col2 col0 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL - + col2 + - col2 AS col0 FROM tab2 AS cor0 ---- -52 -54 -76 query I rowsort SELECT DISTINCT + 52 * col2 FROM tab1 AS cor0 ---- 2808 2964 4992 query I rowsort SELECT - - col0 + cor0.col1 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT + cor0.col2 + + col0 AS col2 FROM tab1 cor0 ---- 121 176 57 query I rowsort SELECT DISTINCT - + 49 FROM tab0 AS cor0 ---- -49 query I rowsort SELECT ALL - col0 + + cor0.col1 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT + + 84 FROM tab0 AS cor0 ---- 84 84 84 onlyif mysql # use DIV operator for integer division query I rowsort label-7499 SELECT ALL - + col2 * + col1 + - col0 DIV + cor0.col0 + 9 FROM tab1 AS cor0 ---- -1240 -1396 -562 skipif mysql # not compatible query I rowsort label-7499 SELECT ALL - + col2 * + col1 + - col0 / + cor0.col0 + 9 FROM tab1 AS cor0 ---- -1240 -1396 -562 query I rowsort SELECT - cor0.col1 * 15 FROM tab0 cor0 ---- -1290 -1365 -1455 query I rowsort SELECT - cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT DISTINCT + + cor0.col2 * col2 AS col0 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT + col2 + + 12 AS col1 FROM tab0 AS cor0 ---- 13 45 94 query I rowsort SELECT ALL + col0 + ( col1 ) FROM tab0 AS cor0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + 9 col2 FROM tab0 AS cor0 ---- 33 44 98 query I rowsort SELECT DISTINCT + col0 + + col2 - col1 FROM tab1 AS cor0 ---- 111 163 31 query I rowsort SELECT ALL col0 * + ( + col2 ) + + col0 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT + ( - ( col1 ) ) * col2 * + col2 + col0 FROM tab0 AS cor0 ---- -611795 -62 -93630 query I rowsort SELECT DISTINCT + 6 * + 16 FROM tab0 AS cor0 ---- 96 onlyif mysql # use DIV operator for integer division query I rowsort label-7510 SELECT DISTINCT col1 DIV col1 AS col0 FROM tab2 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-7510 SELECT DISTINCT col1 / col1 AS col0 FROM tab2 AS cor0 ---- 1 query I rowsort SELECT ALL - cor0.col1 + - ( col2 ) * - 61 AS col1 FROM tab2 AS cor0 ---- 1527 1616 2301 query I rowsort SELECT DISTINCT - 45 + 18 + - col0 * 39 AS col2 FROM tab0 ---- -1392 -3498 -963 query I rowsort SELECT ALL 50 * + ( cor0.col1 ) * ( - col1 ) FROM tab0 AS cor0 ---- -369800 -414050 -470450 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab2 AS cor2 ---- 972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a query I rowsort SELECT ALL + - cor0.col1 + col0 * col1 AS col1 FROM tab2 AS cor0 ---- 1326 186 4543 query I rowsort SELECT ALL + ( ( - col2 ) ) AS col0 FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT - - ( + col2 ) AS col2 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-7518 SELECT + col0 DIV + col0 - col1 FROM tab2 AS cor0 ---- -16 -30 -58 skipif mysql # not compatible query I rowsort label-7518 SELECT + col0 / + col0 - col1 FROM tab2 AS cor0 ---- -16 -30 -58 onlyif mysql # use DIV operator for integer division query I rowsort label-7519 SELECT ALL 76 DIV col2 AS col1 FROM tab0 AS cor0 ---- 0 2 76 skipif mysql # not compatible query I rowsort label-7519 SELECT ALL 76 / col2 AS col1 FROM tab0 AS cor0 ---- 0 2 76 query I rowsort SELECT ALL col1 * + col0 AS col1 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT + cor0.col0 * - col2 * - 39 AS col2 FROM tab2 AS cor0 ---- 117078 7371 79092 query I rowsort SELECT ALL + 22 + + col0 * col2 FROM tab1 AS cor0 ---- 184 3670 7702 query I rowsort SELECT + + col0 + col0 AS col0 FROM tab1 AS cor0 ---- 128 160 6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7524 SELECT ALL col2 * col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7524 SELECT ALL col2 * col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col1 * col1 AS col2 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT - cor0.col2 * - col1 AS col1 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + + 85 AS col0 FROM tab2, tab0, tab1 cor0 ---- 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 83 + ( tab2.col1 * ( 34 ) ) col2 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 9f80b08a2b634ee138668f9a69d8626d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7529 SELECT DISTINCT + CAST( NULL AS SIGNED ) - + cor0.col0 FROM tab0, tab2, tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7529 SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + cor0.col0 FROM tab0, tab2, tab1 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7530 SELECT ALL col0 DIV - col2 + - col2 * 43 col0 FROM tab0 ---- -1419 -3527 -78 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7530 SELECT ALL col0 / - col2 + - col2 * 43 col0 FROM tab0 ---- -1419 -3527 -78 query I rowsort SELECT ALL col2 * col1 * col1 - col1 * col1 FROM tab2 AS cor0 ---- 10693 24986 87025 query I rowsort SELECT - col0 * col1 + + col0 * + 67 FROM tab1 cor0 ---- 123 3648 4320 query I rowsort SELECT + 63 FROM tab0, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to 38764a6e696d1a6b5095e29ef84959c0 query I rowsort SELECT ALL cor0.col2 * col1 + col2 AS col0 FROM tab0 AS cor0 ---- 2871 7544 98 onlyif mysql # use DIV operator for integer division query I rowsort label-7535 SELECT - col0 DIV - col1 + 65 FROM tab2 AS cor0 ---- 65 66 69 skipif mysql # not compatible query I rowsort label-7535 SELECT - col0 / - col1 + 65 FROM tab2 AS cor0 ---- 65 66 69 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 79 - - col1 col0 FROM tab2 AS cor0 ---- 110 138 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7537 SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 97 + + col1 / + col1 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-7537 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 97 + + col1 / + col1 FROM tab2 ---- NULL query I rowsort SELECT ALL 62 * col2 FROM tab0 ---- 2046 5084 62 query I rowsort SELECT + tab1.col0 + + col0 FROM tab1 ---- 128 160 6 query I rowsort SELECT + cor0.col1 + + col1 AS col2 FROM tab1 cor0 ---- 20 26 52 query I rowsort SELECT DISTINCT + - col2 + + col2 AS col1 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT col0 * + col0 AS col0 FROM tab0 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-7543 SELECT DISTINCT - col1 DIV col2 col2 FROM tab0 ---- -1 -2 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7543 SELECT DISTINCT - col1 / col2 col2 FROM tab0 ---- -1 -2 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7544 SELECT col0 + - CAST( - col1 AS SIGNED ) FROM tab1 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-7544 SELECT col0 + - CAST ( - col1 AS INTEGER ) FROM tab1 ---- 29 74 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7545 SELECT col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7545 SELECT col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7546 SELECT - col0 DIV ( tab1.col2 ) + - col2 FROM tab1 ---- -54 -58 -96 skipif mysql # not compatible query I rowsort label-7546 SELECT - col0 / ( tab1.col2 ) + - col2 FROM tab1 ---- -54 -58 -96 query I rowsort SELECT 13 * + col0 AS col1 FROM tab1 AS cor0 ---- 1040 39 832 query I rowsort SELECT - + col1 + 40 FROM tab1 AS cor0 ---- 14 27 30 query I rowsort SELECT 82 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944 query I rowsort SELECT ALL - - ( 76 ) + col0 FROM tab2 AS cor0 ---- 154 155 83 query I rowsort SELECT DISTINCT + + 94 * col1 FROM tab2 AS cor0 ---- 1598 2914 5546 query I rowsort SELECT DISTINCT - cor0.col0 * + 59 FROM tab0 AS cor0 ---- -1416 -2065 -5251 query I rowsort SELECT 49 AS col0 FROM tab2 AS cor0 ---- 49 49 49 onlyif mysql # use DIV operator for integer division query I rowsort label-7554 SELECT DISTINCT + ( cor0.col2 ) * - col1 + - col0 DIV ( cor0.col1 ) AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-7554 SELECT DISTINCT + ( cor0.col2 ) * - col1 + - col0 / ( cor0.col1 ) AS col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7555 SELECT DISTINCT + ( + col1 ) * col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7555 SELECT DISTINCT + ( + col1 ) * col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 53 * + col1 - - col0 * col2 * col1 col0 FROM tab1 AS cor0 ---- 100529 37010 5590 query I rowsort SELECT + - 43 - - 19 AS col0 FROM tab2 AS cor0 ---- -24 -24 -24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - cor0.col2 * col1 col0 FROM tab1 cor0 ---- -1235 -1378 -560 query I rowsort SELECT ALL + cor0.col1 * + col0 + - col0 AS col1 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT + ( + col0 ) + + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT ALL + ( + 34 ) FROM tab2 AS cor0 ---- 34 34 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * - 75 col2 FROM tab1 AS cor0 ---- 1950 750 975 query I rowsort SELECT DISTINCT + 58 + col0 - + col2 FROM tab2 AS cor0 ---- 110 38 99 query I rowsort SELECT DISTINCT + ( col2 + col2 ) FROM tab1 ---- 108 114 192 query I rowsort SELECT DISTINCT 11 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 11 query I rowsort SELECT 74 + + cor0.col0 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 3a9b61ff2fbe0ed09e14d53789018cc8 query I rowsort SELECT cor0.col1 * + col1 FROM tab1 AS cor0 ---- 100 169 676 onlyif mysql # use DIV operator for integer division query I rowsort label-7568 SELECT + + col1 DIV + col1 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7568 SELECT + + col1 / + col1 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT - ( col1 ) * + tab2.col0 AS col1 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT ALL 67 FROM tab2 ---- 67 67 67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( col0 ) * col2 * - 6 col1 FROM tab0 ---- -210 -43788 -4752 query I rowsort SELECT DISTINCT - 40 AS col1 FROM tab1 ---- -40 query I rowsort SELECT + ( ( - col2 ) ) + 58 AS col0 FROM tab1 AS cor0 ---- -38 1 4 query I rowsort SELECT 99 AS col1 FROM tab2 ---- 99 99 99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7575 SELECT CAST( - ( + col2 ) AS SIGNED ) * col0 AS col1 FROM tab2 ---- -189 -2028 -3002 skipif mysql # not compatible query I rowsort label-7575 SELECT CAST ( - ( + col2 ) AS INTEGER ) * col0 AS col1 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT - - col2 * + cor0.col2 + - 95 + col1 AS col1 FROM tab0 AS cor0 ---- 1080 3 6720 query I rowsort SELECT - + col2 + + cor0.col0 FROM tab0 cor0 ---- -9 34 7 query I rowsort SELECT + - 18 + col0 AS col2 FROM tab1 AS cor0 ---- -15 46 62 query I rowsort SELECT - + col0 * + col2 + - 0 * - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT cor0.col1 * - col1 AS col2 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT col1 + col1 + col1 * + col0 * - col0 AS col0 FROM tab2 ---- -106063 -1457 -358838 onlyif mysql # use DIV operator for integer division query I rowsort label-7582 SELECT ALL + col1 + + col1 DIV + col1 col2 FROM tab2 ---- 18 32 60 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7582 SELECT ALL + col1 + + col1 / + col1 col2 FROM tab2 ---- 18 32 60 query I rowsort SELECT - tab1.col2 + + col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT tab1.col1 AS col2 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT DISTINCT 57 + col0 FROM tab0 ---- 146 81 92 query I rowsort SELECT ALL + 40 + - col1 AS col0 FROM tab1 AS cor0 ---- 14 27 30 query I rowsort SELECT cor1.col2 * + 11 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 68a6c8fe2a7de935c8f77e445efa7dc0 onlyif mysql # use DIV operator for integer division query I rowsort label-7588 SELECT + col0 + col1 DIV - cor0.col1 FROM tab1 cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-7588 SELECT + col0 + col1 / - cor0.col1 FROM tab1 cor0 ---- 2 63 79 query I rowsort SELECT col2 + + col0 * 38 AS col1 FROM tab0 AS cor0 ---- 1331 3464 945 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7590 SELECT DISTINCT col1 + + CAST( - col1 AS SIGNED ) * + col2 * - CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0 ---- 22630 24565 39943 skipif mysql # not compatible query I rowsort label-7590 SELECT DISTINCT col1 + + CAST ( - col1 AS INTEGER ) * + col2 * - CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0 ---- 22630 24565 39943 query I rowsort SELECT + col2 * - col0 AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + 0 col1 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT - col0 + col2 * 13 * col0 FROM tab2 AS cor0 ---- 2450 26286 38947 query I rowsort SELECT ALL cor0.col0 * 35 AS col0 FROM tab2 AS cor0 ---- 245 2730 2765 query I rowsort SELECT ALL col0 + col0 FROM tab2 cor0 ---- 14 156 158 query I rowsort SELECT 65 + col1 AS col1 FROM tab2 ---- 124 82 96 query I rowsort SELECT ALL 99 * col2 * - col1 + ( - tab1.col1 ) * col0 AS col2 FROM tab1 ---- -124592 -139074 -57070 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7598 SELECT DISTINCT + col1 * CAST( - col1 AS SIGNED ) + - cor0.col0 FROM tab1 AS cor0 ---- -164 -249 -679 skipif mysql # not compatible query I rowsort label-7598 SELECT DISTINCT + col1 * CAST ( - col1 AS INTEGER ) + - cor0.col0 FROM tab1 AS cor0 ---- -164 -249 -679 query I rowsort SELECT DISTINCT - - col2 * + 60 FROM tab1 AS cor0 ---- 3240 3420 5760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + ( - cor0.col0 * col2 ) col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 + + 48 col0 FROM tab0 AS cor0 ---- -34 15 47 query I rowsort SELECT DISTINCT - - col0 * col0 + 42 FROM tab2 cor0 ---- 6126 6283 91 query I rowsort SELECT ALL + - cor0.col1 * + cor0.col0 - col0 FROM tab1 AS cor0 ---- -1120 -704 -81 query I rowsort SELECT + col1 + 48 * + cor0.col2 FROM tab0 AS cor0 ---- 145 1670 4027 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7605 SELECT DISTINCT - col0 + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-7605 SELECT DISTINCT - col0 + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT col0 * col0 - + col1 FROM tab2 AS cor0 ---- 18 6025 6224 query I rowsort SELECT - 60 * col0 + - col2 FROM tab0 AS cor0 ---- -1473 -2101 -5422 query I rowsort SELECT cor0.col0 - - col2 * col1 AS col2 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT + col1 * cor0.col2 * col1 AS col2 FROM tab0 AS cor0 ---- 244068 679042 9409 query I rowsort SELECT ALL - + 88 FROM tab1 cor0 ---- -88 -88 -88 query I rowsort SELECT + 4 AS col0 FROM tab0 AS cor0 ---- 4 4 4 query I rowsort SELECT ALL + col2 * ( col1 ) AS col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-7613 SELECT DISTINCT col2 DIV CAST( ( col1 ) + + col0 AS SIGNED ) AS col2 FROM tab0 ---- 0 skipif mysql # not compatible query I rowsort label-7613 SELECT DISTINCT col2 / CAST ( ( col1 ) + + col0 AS INTEGER ) AS col2 FROM tab0 ---- 0 query I rowsort SELECT + - 50 * - 81 * + col2 + + col2 - - col0 FROM tab1 AS cor0 ---- 218757 230971 388976 query I rowsort SELECT 65 + col2 * + col1 FROM tab0 AS cor0 ---- 162 2903 7527 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7616 SELECT ALL + + CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7616 SELECT ALL + + CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT - ( - 7 ) * - col1 FROM tab0 AS cor0 ---- -602 -637 -679 query I rowsort SELECT + + col1 * 20 FROM tab1 AS cor0 ---- 200 260 520 query I rowsort SELECT - + ( - cor0.col1 ) + + cor0.col2 * col0 * 33 + - cor0.col2 AS col2 FROM tab1 AS cor0 ---- 120337 253357 5318 query I rowsort SELECT DISTINCT col0 * 22 AS col0 FROM tab0 AS cor0 ---- 1958 528 770 query I rowsort SELECT DISTINCT - 5 - col1 AS col0 FROM tab1 AS cor0 ---- -15 -18 -31 query I rowsort SELECT + 0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT + - 58 + + col1 FROM tab1 AS cor0 ---- -32 -45 -48 onlyif mysql # use DIV operator for integer division query I rowsort label-7624 SELECT DISTINCT col1 DIV col0 AS col1 FROM tab1 cor0 ---- 0 8 skipif mysql # not compatible query I rowsort label-7624 SELECT DISTINCT col1 / col0 AS col1 FROM tab1 cor0 ---- 0 8 query I rowsort SELECT 85 + + col0 AS col1 FROM tab1 AS cor0 ---- 149 165 88 query I rowsort SELECT ALL + 57 FROM tab1 cor0 ---- 57 57 57 query I rowsort SELECT - + col0 + - col0 + - col1 FROM tab2 cor0 ---- -175 -215 -45 query I rowsort SELECT 17 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 43298e43365fccb5146ea32003753c92 query I rowsort SELECT - ( col1 ) * cor0.col2 + col2 AS col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT DISTINCT - - ( col0 ) + + col2 FROM tab2 cor0 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-7631 SELECT col1 DIV col2 + col0 FROM tab0 AS cor0 ---- 132 26 90 skipif mysql # not compatible query I rowsort label-7631 SELECT col1 / col2 + col0 FROM tab0 AS cor0 ---- 132 26 90 query I rowsort SELECT ALL - col0 * 9 + + col1 AS col2 FROM tab1 AS cor0 ---- -1 -566 -707 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7633 SELECT ALL col2 + CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7633 SELECT ALL col2 + CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 * 7 + - 9 AS col1 FROM tab1 ---- 12 439 551 onlyif mysql # use DIV operator for integer division query I rowsort label-7635 SELECT ALL col2 + - ( col0 ) DIV - col0 FROM tab2 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-7635 SELECT ALL col2 + - ( col0 ) / - col0 FROM tab2 ---- 27 28 39 query I rowsort SELECT 74 * - cor0.col2 * 83 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 4c7ad03a5247fc1aaf50d9f7c2bb568b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7637 SELECT + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7637 SELECT + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - 31 + + col0 AS col2 FROM tab1 AS cor0 ---- -28 33 49 query I rowsort SELECT ALL ( + col2 ) + - col0 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT ALL - - 86 AS col2 FROM tab1 AS cor0 ---- 86 86 86 query I rowsort SELECT DISTINCT + col0 * + ( - col1 ) + col1 + - col2 FROM tab2 cor0 ---- -1364 -213 -4569 query I rowsort SELECT ALL ( + 82 ) * col0 AS col1 FROM tab2 AS cor0 ---- 574 6396 6478 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col1 col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT 96 + col2 * + col0 AS col2 FROM tab0 AS cor0 ---- 131 7394 888 query I rowsort SELECT - col2 + - col1 AS col2 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT ALL - - cor0.col1 * col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT + ( + cor0.col0 ) + col0 AS col2 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT DISTINCT - - col0 * cor0.col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - col0 - + col0 AS col0 FROM tab0 ---- -178 -48 -70 query I rowsort SELECT tab0.col2 + - col1 AS col0 FROM tab0 ---- -53 -9 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-7651 SELECT ALL col0 + col2 DIV col1 FROM tab2 AS cor0 ---- 7 78 81 skipif mysql # not compatible query I rowsort label-7651 SELECT ALL col0 + col2 / col1 FROM tab2 AS cor0 ---- 7 78 81 query I rowsort SELECT DISTINCT - 26 * cor0.col2 + col2 * col0 * col0 AS col1 FROM tab1 AS cor0 ---- -918 231990 611904 query I rowsort SELECT DISTINCT + + col2 - + col1 AS col2 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL - 44 - - col1 FROM tab2 cor0 ---- -13 -27 15 query I rowsort SELECT - + cor0.col2 * col1 AS col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL 0 AS col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL ( + tab2.col1 ) AS col1 FROM tab2 ---- 17 31 59 query I rowsort SELECT ALL + + col0 * + cor0.col0 - - ( - col1 ) * 31 * 81 FROM tab0 AS cor0 ---- -215370 -220580 -242342 onlyif mysql # use DIV operator for integer division query I rowsort label-7659 SELECT DISTINCT - col1 * + col0 + col2 DIV + col0 AS col0 FROM tab0 AS cor0 ---- -2063 -3395 -8099 skipif mysql # not compatible query I rowsort label-7659 SELECT DISTINCT - col1 * + col0 + col2 / + col0 AS col0 FROM tab0 AS cor0 ---- -2063 -3395 -8099 query I rowsort SELECT cor0.col0 + + 87 + + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 125 183 224 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7661 SELECT ALL - - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7661 SELECT ALL - - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + cor0.col0 + ( - 29 ) * col0 AS col0 FROM tab0 AS cor0 ---- -2492 -672 -980 query I rowsort SELECT + 56 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 9c4523312174730bbc525b9977aa99fa query I rowsort SELECT DISTINCT - 29 * cor0.col0 FROM tab2, tab0 cor0, tab1 cor1 ---- -1015 -2581 -696 query I rowsort SELECT DISTINCT + cor0.col1 * col1 + + col2 FROM tab2 AS cor0 ---- 327 3507 988 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7666 SELECT + tab1.col1 * CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7666 SELECT + tab1.col1 * CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7667 SELECT col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7667 SELECT col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col2 + cor0.col1 AS col2 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT - col0 * 44 + - 57 * - col1 AS col2 FROM tab0 AS cor0 ---- 1271 3846 3989 query I rowsort SELECT + - col0 * - 78 - 8 AS col1 FROM tab2 AS cor0 ---- 538 6076 6154 query I rowsort SELECT + cor0.col0 + ( + col1 + col0 ) FROM tab0 AS cor0 ---- 134 167 269 query I rowsort SELECT DISTINCT col2 * col1 + cor0.col1 * - col0 FROM tab1 AS cor0 ---- -70 1326 208 query I rowsort SELECT ALL col1 - + 48 AS col0 FROM tab1 AS cor0 ---- -22 -35 -38 query I rowsort SELECT - - col0 + col1 * 38 FROM tab1 AS cor0 ---- 444 574 991 query I rowsort SELECT DISTINCT - - col0 * + col0 + col0 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT + - col1 + + col2 * col1 AS col2 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT + cor0.col2 * col0 AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT + col0 - col1 AS col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL - cor0.col2 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 onlyif mysql # use DIV operator for integer division query I rowsort label-7680 SELECT - + 77 + col2 DIV + col1 FROM tab2 AS cor0 ---- -75 -77 -77 skipif mysql # not compatible query I rowsort label-7680 SELECT - + 77 + col2 / + col1 FROM tab2 AS cor0 ---- -75 -77 -77 query I rowsort SELECT - - col2 + cor0.col0 * - col1 AS col0 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT - col2 - col1 AS col0 FROM tab2 cor0 ---- -55 -58 -85 query I rowsort SELECT + col2 * - col2 + - col0 * 50 AS col2 FROM tab1 AS cor0 ---- -13216 -3066 -6449 query I rowsort SELECT cor0.col1 - + cor0.col2 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to c1eca5ea8dadf5efbc400ae6094b52e3 query I rowsort SELECT col2 * - col1 + cor0.col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT ALL - + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-7687 SELECT ALL col0 DIV cor0.col0 AS col2 FROM tab1 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7687 SELECT ALL col0 / cor0.col0 AS col2 FROM tab1 cor0 ---- 1 1 1 query I rowsort SELECT + 95 + + col1 AS col2 FROM tab1 AS cor0 ---- 105 108 121 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7689 SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-7689 SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col1 FROM tab0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7690 SELECT + CAST( + 10 AS SIGNED ) * + col0 * - 83 + col0 FROM tab0 ---- -19896 -29015 -73781 skipif mysql # not compatible query I rowsort label-7690 SELECT + CAST ( + 10 AS INTEGER ) * + col0 * - 83 + col0 FROM tab0 ---- -19896 -29015 -73781 query I rowsort SELECT + col0 + ( + cor0.col0 ) AS col0 FROM tab1 AS cor0 ---- 128 160 6 onlyif mysql # use DIV operator for integer division query I rowsort label-7692 SELECT - - cor0.col2 * ( - col0 ) DIV col1 AS col1 FROM tab0 AS cor0 ---- -80 -9 0 skipif mysql # not compatible query I rowsort label-7692 SELECT - - cor0.col2 * ( - col0 ) / col1 AS col1 FROM tab0 AS cor0 ---- -80 -9 0 query I rowsort SELECT ALL - col2 * col1 AS col0 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + + cor0.col2 FROM tab2, tab0 cor0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7695 SELECT - + CAST( NULL AS DECIMAL ) + col2 * + cor0.col1 col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7695 SELECT - + CAST ( NULL AS REAL ) + col2 * + cor0.col1 col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7696 SELECT cor0.col1 DIV col2 + col2 FROM tab0 cor0 ---- 35 83 98 skipif mysql # not compatible query I rowsort label-7696 SELECT cor0.col1 / col2 + col2 FROM tab0 cor0 ---- 35 83 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 10 * + cor0.col2 col0 FROM tab2, tab2 AS cor0 ---- -260 -270 -380 query I rowsort SELECT 35 AS col0 FROM tab2, tab1 cor0 ---- 9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29 query I rowsort SELECT ALL cor0.col0 AS col0 FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT 23 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to d3b0357ceadb3a70da7f1649b1ef2a30 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * + 41 * 0 col1 FROM tab2 ---- 0 query I rowsort SELECT col1 + col0 * - col2 FROM tab2 cor0 ---- -158 -1969 -2985 query I rowsort SELECT - + 50 FROM tab2 AS cor0 ---- -50 -50 -50 query I rowsort SELECT + + 61 * 40 * col0 AS col0 FROM tab0 AS cor0 ---- 217160 58560 85400 query I rowsort SELECT 95 AS col2 FROM tab0 ---- 95 95 95 query I rowsort SELECT DISTINCT 3 AS col0 FROM tab2 cor0 ---- 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - cor0.col0 * - col0 * + col2 col2 FROM tab1 AS cor0 ---- -233472 -486 -614400 query I rowsort SELECT ALL - - col2 * col0 AS col2 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-7709 SELECT ALL + col0 + + col1 DIV - 42 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-7709 SELECT ALL + col0 + + col1 / - 42 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7710 SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-7710 SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7711 SELECT ALL - CAST( NULL AS SIGNED ) + col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7711 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 * + col1 col0 FROM tab0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7713 SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-7713 SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab0 ---- 86 91 97 query I rowsort SELECT + ( + 63 ) AS col0 FROM tab0 ---- 63 63 63 query I rowsort SELECT ( col2 * - tab0.col2 + tab0.col1 ) FROM tab0 ---- -1003 -6633 96 onlyif mysql # use DIV operator for integer division query I rowsort label-7716 SELECT + - col0 * + ( col1 ) DIV col1 + col2 FROM tab0 cor0 ---- -34 -7 9 skipif mysql # not compatible query I rowsort label-7716 SELECT + - col0 * + ( col1 ) / col1 + col2 FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT + - col1 - col1 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT ( col1 * col2 ) AS col0 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ALL cor0.col2 * 84 AS col1 FROM tab2, tab1, tab2 cor0, tab0 ---- 81 values hashing to bdc3ec700980286df62467142cab9d76 query I rowsort SELECT 6 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5d1cb90ed58fa7573895d2f95b211821 query I rowsort SELECT + - col0 + + 56 FROM tab0 AS cor0 ---- -33 21 32 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 * ( col0 ) + - col0 col1 FROM tab0 AS cor0 ---- -70 -7387 -816 onlyif mysql # use DIV operator for integer division query I rowsort label-7723 SELECT + col2 DIV col1 FROM tab1 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-7723 SELECT + col2 / col1 FROM tab1 ---- 2 5 7 query I rowsort SELECT col2 + 26 FROM tab0 ---- 108 27 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 91 * col1 + + col0 + col2 col1 FROM tab2 AS cor0 ---- -1430 -2787 -5265 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 - + 43 col2 FROM tab2 cor0 ---- -121 -122 -50 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 10 + col0 col2 FROM tab1 AS cor0 ---- -7 54 70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col2 col0 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT ALL col2 - ( - col0 ) AS col1 FROM tab0 ---- 171 36 57 query I rowsort SELECT col2 + + col0 + 76 AS col2 FROM tab2 ---- 110 180 193 query I rowsort SELECT - - col0 + + col1 AS col2 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT - col0 * - 32 + - col0 AS col0 FROM tab0 ---- 1085 2759 744 query I rowsort SELECT + col1 - - col0 AS col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT col0 * col1 - col2 FROM tab1 ---- 24 583 944 query I rowsort SELECT - col2 + col0 * + col1 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT - col1 * - col1 + - col2 * + 54 + ( cor0.col1 ) * col2 AS col0 FROM tab1 AS cor0 ---- -2408 -3767 -836 query I rowsort SELECT col0 + + ( + col2 ) * - cor0.col2 FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT DISTINCT - 35 + col1 + + tab1.col0 FROM tab1 ---- -6 39 58 query I rowsort SELECT DISTINCT - col0 * 40 + col2 AS col1 FROM tab2 ---- -253 -3094 -3122 query I rowsort SELECT + ( col1 ) - + col2 * col1 FROM tab2 AS cor0 ---- -1475 -629 -806 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7741 SELECT DISTINCT + - CAST( + col0 AS SIGNED ) + - col1 FROM tab2 AS cor0 ---- -137 -38 -96 skipif mysql # not compatible query I rowsort label-7741 SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) + - col1 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT - 24 * - col1 * - col2 + col2 AS col0 FROM tab1 AS cor0 ---- -13623 -29856 -33642 query I rowsort SELECT 42 + + cor0.col0 FROM tab2 AS cor0 ---- 120 121 49 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7744 SELECT ALL + CAST( - col0 AS SIGNED ) * col1 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif mysql # not compatible query I rowsort label-7744 SELECT ALL + CAST ( - col0 AS INTEGER ) * col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + col1 + + 31 AS col2 FROM tab2 AS cor0 ---- 48 62 90 query I rowsort SELECT DISTINCT 67 * + cor0.col2 + col2 * cor0.col2 FROM tab1 AS cor0 ---- 15648 6534 7068 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7747 SELECT DISTINCT - CAST( - ( col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-7747 SELECT DISTINCT - CAST ( - ( col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-7748 SELECT DISTINCT + col1 DIV + cor0.col1 + - col0 + col1 * + col1 FROM tab2 AS cor0 ---- 211 3404 955 skipif mysql # not compatible query I rowsort label-7748 SELECT DISTINCT + col1 / + cor0.col1 + - col0 + col1 * + col1 FROM tab2 AS cor0 ---- 211 3404 955 query I rowsort SELECT - - 22 FROM tab2 AS cor0 ---- 22 22 22 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( - col1 ) + + col2 col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT + 84 AS col1 FROM tab2 AS cor0 ---- 84 84 84 skipif mysql # not compatible query I rowsort SELECT DISTINCT - CAST ( - col2 AS REAL ) * - col2 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 ---- -2862 -3192 -9120 query I rowsort SELECT ALL + 75 + - ( + col1 ) AS col2 FROM tab2 cor0 ---- 16 44 58 onlyif mysql # use DIV operator for integer division query I rowsort label-7754 SELECT 25 DIV col1 + + col1 FROM tab2 ---- 18 31 59 skipif mysql # not compatible query I rowsort label-7754 SELECT 25 / col1 + + col1 FROM tab2 ---- 18 31 59 query I rowsort SELECT - cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT + + col0 * - col0 AS col1 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT col1 * + cor0.col0 * cor0.col1 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT DISTINCT - cor0.col1 * - col1 + col1 FROM tab0 cor0 ---- 7482 8372 9506 query I rowsort SELECT 37 FROM tab1, tab0 cor0 ---- 9 values hashing to a10b03e72860b949bdff53827700a9a8 onlyif mysql # use DIV operator for integer division query I rowsort label-7760 SELECT DISTINCT + col0 DIV + ( - col2 ) + - col2 AS col2 FROM tab0 AS cor0 ---- -33 -36 -83 skipif mysql # not compatible query I rowsort label-7760 SELECT DISTINCT + col0 / + ( - col2 ) + - col2 AS col2 FROM tab0 AS cor0 ---- -33 -36 -83 query I rowsort SELECT ALL - + col0 + + ( - cor0.col2 ) AS col1 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT + cor0.col0 * + ( + col2 ) + col1 FROM tab1 cor0 ---- 188 3658 7693 query I rowsort SELECT - cor0.col1 * col1 + - col2 * col1 AS col2 FROM tab0 AS cor0 ---- -10234 -15743 -9506 query I rowsort SELECT DISTINCT + 41 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 41 query I rowsort SELECT DISTINCT - col2 * col1 FROM tab0 cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-7766 SELECT ALL + 76 DIV + col0 AS col0 FROM tab0 cor0 ---- 0 2 3 skipif mysql # not compatible query I rowsort label-7766 SELECT ALL + 76 / + col0 AS col0 FROM tab0 cor0 ---- 0 2 3 onlyif mysql # use DIV operator for integer division query I rowsort label-7767 SELECT - - 30 DIV col0 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-7767 SELECT - - 30 / col0 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT - col1 + col1 - col0 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - 40 + + cor0.col1 FROM tab2 AS cor0 ---- -23 -9 19 query I rowsort SELECT DISTINCT - cor0.col1 + - col2 * col0 AS col2 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT DISTINCT col1 * col2 + + col2 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT 68 AS col2 FROM tab1 AS cor0 ---- 68 68 68 query I rowsort SELECT - 99 FROM tab0 cor0 ---- -99 -99 -99 onlyif mysql # use DIV operator for integer division query I rowsort label-7774 SELECT ALL + col2 + col1 DIV + col1 + 6 * + col2 col0 FROM tab1 AS cor0 ---- 379 400 673 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7774 SELECT ALL + col2 + col1 / + col1 + 6 * + col2 col0 FROM tab1 AS cor0 ---- 379 400 673 query I rowsort SELECT 55 + col0 AS col1 FROM tab0 AS cor0 ---- 144 79 90 query I rowsort SELECT ALL - - ( col0 ) FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT + + col1 + - col2 * 24 FROM tab0 AS cor0 ---- -1877 -706 73 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7778 SELECT DISTINCT CAST( NULL AS SIGNED ) - + 81 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-7778 SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 81 FROM tab1 ---- NULL query I rowsort SELECT 11 * - col0 + - col0 + ( col1 ) FROM tab2 ---- -53 -877 -931 onlyif mysql # use DIV operator for integer division query I rowsort label-7780 SELECT - 83 + + ( col2 ) * col0 * + col0 + + col1 DIV tab0.col2 AS col1 FROM tab0 ---- 1239 18927 649440 skipif mysql # not compatible query I rowsort label-7780 SELECT - 83 + + ( col2 ) * col0 * + col0 + + col1 / tab0.col2 AS col1 FROM tab0 ---- 1239 18927 649440 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + + 91 col0 FROM tab0 ---- 115 126 180 onlyif mysql # use DIV operator for integer division query I rowsort label-7782 SELECT - 88 + col0 * - 98 - + col0 DIV + col2 AS col0 FROM tab0 AS cor0 ---- -2440 -3553 -8811 skipif mysql # not compatible query I rowsort label-7782 SELECT - 88 + col0 * - 98 - + col0 / + col2 AS col0 FROM tab0 AS cor0 ---- -2440 -3553 -8811 onlyif mysql # use DIV operator for integer division query I rowsort label-7783 SELECT + 74 * col2 DIV ( - 58 ) + - col0 + 24 AS col1 FROM tab2 AS cor0 ---- -103 -17 -87 skipif mysql # not compatible query I rowsort label-7783 SELECT + 74 * col2 / ( - 58 ) + - col0 + 24 AS col1 FROM tab2 AS cor0 ---- -103 -17 -87 query I rowsort SELECT DISTINCT - 41 - col1 * - col2 AS col2 FROM tab0 ---- 2797 56 7421 query IIIIII rowsort SELECT * FROM tab2, tab2 AS cor0 WHERE NULL < NULL ---- query I rowsort SELECT - cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b query I rowsort SELECT DISTINCT + col1 * + col0 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + ( + col2 ) + + col0 * 56 FROM tab2 ---- 419 4394 4462 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7789 SELECT + ( col1 + CAST( NULL AS SIGNED ) ) * - col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7789 SELECT + ( col1 + CAST ( NULL AS INTEGER ) ) * - col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT ( col0 ) + 21 * - col2 + col0 AS col0 FROM tab2 ---- -390 -553 -640 query I rowsort SELECT + 2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261 onlyif mysql # use DIV operator for integer division query I rowsort label-7792 SELECT DISTINCT - col0 DIV col1 AS col1 FROM tab1 ---- -6 0 skipif mysql # not compatible query I rowsort label-7792 SELECT DISTINCT - col0 / col1 AS col1 FROM tab1 ---- -6 0 query I rowsort SELECT + col1 + 5 FROM tab0 ---- 102 91 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7794 SELECT ALL + CAST( col0 AS SIGNED ) + - col2 * - col2 FROM tab2 AS cor0 ---- 1523 736 754 skipif mysql # not compatible query I rowsort label-7794 SELECT ALL + CAST ( col0 AS INTEGER ) + - col2 * - col2 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT + 85 AS col0 FROM tab2 AS cor0 ---- 85 85 85 query I rowsort SELECT ALL + col1 + 87 AS col1 FROM tab1 AS cor0 ---- 100 113 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7797 SELECT DISTINCT CAST( NULL AS SIGNED ) - - 64 FROM tab2, tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7797 SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 64 FROM tab2, tab1 AS cor0 ---- NULL query I rowsort SELECT 36 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 query I rowsort SELECT DISTINCT 23 * col0 * col1 AS col0 FROM tab2 ---- 105846 30889 4991 query I rowsort SELECT - ( col0 ) + - col2 AS col1 FROM tab2 ---- -104 -117 -34 query I rowsort SELECT col2 + tab0.col2 * + col0 * col0 AS col1 FROM tab0 ---- 1226 19041 649604 query I rowsort SELECT + 13 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb query I rowsort SELECT col1 * col1 + col1 AS col2 FROM tab2 ---- 306 3540 992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( 99 ) * col1 + 63 col1 FROM tab1 AS cor0 ---- 1053 1350 2637 query I rowsort SELECT + + 42 AS col1 FROM tab2 AS cor0 ---- 42 42 42 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7806 SELECT ALL - + CAST( NULL AS SIGNED ) + - col1 * - col2 + - ( col2 ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7806 SELECT ALL - + CAST ( NULL AS INTEGER ) + - col1 * - col2 + - ( col2 ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 6 + cor0.col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 813d527a21917cb0bf020938a146ea91 query I rowsort SELECT ALL + - col2 + + col1 AS col2 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT ALL - - 54 AS col2 FROM tab2 cor0 ---- 54 54 54 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab0 AS cor0, tab0 cor1, tab0, tab0 cor2 ---- 3645 values hashing to e7ea8a30caeb35409d15d2ce0abbd5a6 query I rowsort SELECT DISTINCT - 77 * col0 FROM tab2 AS cor0 ---- -539 -6006 -6083 onlyif mysql # use DIV operator for integer division query I rowsort label-7812 SELECT DISTINCT - + 46 + 77 + + col2 DIV col1 FROM tab2 AS cor0 ---- 31 33 skipif mysql # not compatible query I rowsort label-7812 SELECT DISTINCT - + 46 + 77 + + col2 / col1 FROM tab2 AS cor0 ---- 31 33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7813 SELECT ALL CAST( NULL AS SIGNED ) - - 63 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7813 SELECT ALL CAST ( NULL AS INTEGER ) - - 63 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - 32 AS col1 FROM tab1 AS cor0 ---- 32 query I rowsort SELECT + col1 * 42 AS col2 FROM tab1 AS cor0 ---- 1092 420 546 query I rowsort SELECT + - cor0.col2 + - col2 * col2 AS col2 FROM tab1 AS cor0 ---- -2970 -3306 -9312 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7817 SELECT DISTINCT + CAST( - col2 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-7817 SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT + + col1 * - 67 FROM tab2 AS cor0 ---- -1139 -2077 -3953 query I rowsort SELECT DISTINCT + cor1.col1 - 65 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 21 26 32 query I rowsort SELECT + - 99 + col0 AS col2 FROM tab1 AS cor0 ---- -19 -35 -96 query I rowsort SELECT ALL 76 + - col0 * + 82 AS col0 FROM tab2 AS cor0 ---- -498 -6320 -6402 query I rowsort SELECT ALL - col1 * col1 AS col0 FROM tab0 ---- -7396 -8281 -9409 query I rowsort SELECT ALL + cor0.col0 * col2 - col2 AS col2 FROM tab2 AS cor0 ---- 162 2002 2964 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7824 SELECT - col2 * + CAST( - 66 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 1716 1782 2508 skipif mysql # not compatible query I rowsort label-7824 SELECT - col2 * + CAST ( - 66 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 1716 1782 2508 query I rowsort SELECT + - cor0.col0 * + 28 FROM tab0 AS cor0 ---- -2492 -672 -980 query I rowsort SELECT DISTINCT col2 * + col1 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT col1 + - 1 * + col2 AS col1 FROM tab2 cor0 ---- -21 33 4 query I rowsort SELECT DISTINCT - col0 * ( + col2 ) AS col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + + 80 FROM tab2 AS cor0 ---- 80 80 80 query I rowsort SELECT - - 92 AS col0 FROM tab0 AS cor0 ---- 92 92 92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col1 * col1 + 12 col2 FROM tab1 AS cor0 ---- 16236 36516 5712 query I rowsort SELECT tab1.col2 * col1 AS col2 FROM tab1 ---- 1248 1404 570 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * - col2 col1 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT - - col1 * col0 - + col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT - cor0.col0 - col0 AS col0 FROM tab2 AS cor0 ---- -14 -156 -158 query I rowsort SELECT ALL + - cor0.col2 + - col0 * col2 + ( - col2 ) FROM tab0 AS cor0 ---- -37 -7462 -858 query I rowsort SELECT ALL - col2 + tab2.col2 * + tab2.col2 FROM tab2 ---- 1406 650 702 query I rowsort SELECT + ( + col0 ) * - col2 + + col1 FROM tab0 ---- -706 -7207 62 query I rowsort SELECT DISTINCT + col2 - ( col0 * col0 ) FROM tab1 AS cor0 ---- -4039 -6304 45 query I rowsort SELECT DISTINCT - - cor0.col2 * + col2 + col2 FROM tab0 AS cor0 ---- 1122 2 6806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 70 * 13 + col0 col1 FROM tab2 AS cor0 ---- -831 -832 -903 query I rowsort SELECT - + 63 FROM tab0 AS cor0 ---- -63 -63 -63 onlyif mysql # use DIV operator for integer division query I rowsort label-7843 SELECT ( + col2 ) DIV - ( + col2 ) AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7843 SELECT ( + 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 col0 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT - col1 + + col0 * col2 AS col2 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT ALL col1 * - col0 * + col1 AS col1 FROM tab1 AS cor0 ---- -13520 -2028 -6400 query I rowsort SELECT + col1 * 59 - - col0 FROM tab2 AS cor0 ---- 1082 1836 3559 query I rowsort SELECT DISTINCT col1 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 172 182 194 onlyif mysql # use DIV operator for integer division query I rowsort label-7849 SELECT + cor0.col2 * - col1 + col2 * col2 + col0 DIV col1 AS col0 FROM tab2 AS cor0 ---- -108 -857 802 skipif mysql # not compatible query I rowsort label-7849 SELECT + cor0.col2 * - col1 + col2 * col2 + col0 / col1 AS col0 FROM tab2 AS cor0 ---- -108 -857 802 query I rowsort SELECT - - col2 - + col2 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col2 * ( col0 ) * + col0 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT - - col1 * 53 FROM tab1 AS cor0 ---- 1378 530 689 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7853 SELECT + col0 + CAST( NULL AS SIGNED ) + + col2 * + col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7853 SELECT + col0 + CAST ( NULL AS INTEGER ) + + col2 * + col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - col0 * col1 AS col1 FROM tab2 AS cor0 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-7855 SELECT DISTINCT + - col2 DIV + col0 AS col0 FROM tab2 AS cor0 ---- -3 0 skipif mysql # not compatible query I rowsort label-7855 SELECT DISTINCT + - col2 / + col0 AS col0 FROM tab2 AS cor0 ---- -3 0 query I rowsort SELECT DISTINCT col2 + - 48 FROM tab0 AS cor0 ---- -15 -47 34 query I rowsort SELECT ALL cor0.col1 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 onlyif mysql # use DIV operator for integer division query I rowsort label-7858 SELECT DISTINCT - col1 DIV - col0 AS col0 FROM tab1 AS cor0 ---- 0 8 skipif mysql # not compatible query I rowsort label-7858 SELECT DISTINCT - col1 / - col0 AS col0 FROM tab1 AS cor0 ---- 0 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 + 32 col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to bd556a765488872c9747389e1941bc76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7860 SELECT DISTINCT col2 + - CAST( + col1 AS SIGNED ) * col2 FROM tab2 AS cor0 ---- -1508 -608 -810 skipif mysql # not compatible query I rowsort label-7860 SELECT DISTINCT col2 + - CAST ( + col1 AS INTEGER ) * col2 FROM tab2 AS cor0 ---- -1508 -608 -810 onlyif mysql # use DIV operator for integer division query I rowsort label-7861 SELECT DISTINCT col0 DIV col1 col0 FROM tab1 ---- 0 6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7861 SELECT DISTINCT col0 / col1 col0 FROM tab1 ---- 0 6 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to dd5ce24448edb4b3ab62c251475d6548 query I rowsort SELECT + col2 - tab0.col1 * + 33 FROM tab0 ---- -2805 -2921 -3200 query I rowsort SELECT DISTINCT tab0.col1 * + 87 - tab0.col1 FROM tab0 ---- 7396 7826 8342 query I rowsort SELECT col1 + cor0.col2 - col2 FROM tab1 AS cor0 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( 78 ) col2 FROM tab2 AS cor0 ---- 78 query I rowsort SELECT - 42 + col0 * - col1 + - col2 * + cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- -12367 -26206 -95150 query I rowsort SELECT ALL 51 * 40 AS col0 FROM tab1 cor0 ---- 2040 2040 2040 query I rowsort SELECT col1 * 97 + col0 * + col1 AS col2 FROM tab1 ---- 1610 2301 2600 query I rowsort SELECT ALL + - col2 + ( col1 ) FROM tab0 AS cor0 ---- 53 9 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7871 SELECT - col1 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 100 169 676 skipif mysql # not compatible query I rowsort label-7871 SELECT - col1 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 100 169 676 onlyif mysql # use DIV operator for integer division query I rowsort label-7872 SELECT DISTINCT col0 DIV - 7 + 36 FROM tab2 ---- 25 35 skipif mysql # not compatible query I rowsort label-7872 SELECT DISTINCT col0 / - 7 + 36 FROM tab2 ---- 25 35 query I rowsort SELECT ALL cor0.col2 + col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT - 18 * - cor0.col1 + - col2 FROM tab0 cor0 ---- 1515 1556 1745 query I rowsort SELECT 66 AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 29794915b585eea848ad670075452c88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7876 SELECT DISTINCT + + 66 * cor0.col0 + + CAST( + col1 * col2 AS SIGNED ) AS col0 FROM tab0 cor0 ---- 13336 2407 4422 skipif mysql # not compatible query I rowsort label-7876 SELECT DISTINCT + + 66 * cor0.col0 + + CAST ( + col1 * col2 AS INTEGER ) AS col0 FROM tab0 cor0 ---- 13336 2407 4422 onlyif mysql # use DIV operator for integer division query I rowsort label-7877 SELECT cor0.col1 * col1 DIV + 40 + + col2 FROM tab2 AS cor0 ---- 113 45 51 skipif mysql # not compatible query I rowsort label-7877 SELECT cor0.col1 * col1 / + 40 + + col2 FROM tab2 AS cor0 ---- 113 45 51 query I rowsort SELECT DISTINCT - 77 FROM tab2 AS cor0 ---- -77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col1 * + col2 + col2 col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT ALL - col0 * col0 + + col0 + cor0.col2 FROM tab0 AS cor0 ---- -1189 -519 -7750 query I rowsort SELECT 90 AS col1 FROM tab1 AS cor0 ---- 90 90 90 onlyif mysql # use DIV operator for integer division query I rowsort label-7882 SELECT ALL + col2 + 63 DIV tab2.col0 FROM tab2 ---- 26 36 38 skipif mysql # not compatible query I rowsort label-7882 SELECT ALL + col2 + 63 / tab2.col0 FROM tab2 ---- 26 36 38 query I rowsort SELECT - ( col0 ) + col2 FROM tab0 ---- -34 -7 9 query I rowsort SELECT ALL cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT DISTINCT - col2 + - col1 AS col0 FROM tab1 cor0 ---- -109 -67 -80 query I rowsort SELECT col1 * + col2 + + 90 + + col2 FROM tab0 cor0 ---- 188 2961 7634 query I rowsort SELECT ALL - ( col0 ) * + cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL + 30 FROM tab0 AS cor0 ---- 30 30 30 query I rowsort SELECT ( - col0 ) + - col0 AS col2 FROM tab2 AS cor0 ---- -14 -156 -158 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 96 * + col1 col1 FROM tab0 AS cor0 ---- 8256 8736 9312 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7891 SELECT ALL + 77 + - col2 * CAST( cor0.col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -2839 -3172 -9139 skipif mysql # not compatible query I rowsort label-7891 SELECT ALL + 77 + - col2 * CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -2839 -3172 -9139 query I rowsort SELECT ALL ( - cor0.col1 ) FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT + col1 + + 89 FROM tab2 ---- 106 120 148 query I rowsort SELECT ( col0 + col1 ) FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL + col1 * + 58 * tab2.col1 AS col1 FROM tab2 ---- 16762 201898 55738 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - col2 ) col1 FROM tab2 ---- -26 -27 -38 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to 6193516da5556fc054f35e0d2f4e5372 query I rowsort SELECT + 57 + col2 FROM tab0 ---- 139 58 90 query I rowsort SELECT ALL ( 36 ) * col1 * + 70 FROM tab0 ---- 216720 229320 244440 query I rowsort SELECT + 44 * + cor0.col1 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 62963a171dd365dedaed66ffecc9964e query I rowsort SELECT 43 + col2 AS col0 FROM tab0 AS cor0 ---- 125 44 76 query I rowsort SELECT DISTINCT - ( - ( + col0 ) ) * - cor0.col2 + col0 + + cor0.col2 * + 13 AS col1 FROM tab2 AS cor0 ---- -1612 -2429 169 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7903 SELECT + + CAST( 65 AS SIGNED ) AS col1 FROM tab2 cor0 ---- 65 65 65 skipif mysql # not compatible query I rowsort label-7903 SELECT + + CAST ( 65 AS INTEGER ) AS col1 FROM tab2 cor0 ---- 65 65 65 query I rowsort SELECT ALL + + col0 + col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT + col0 * col2 - + col2 AS col1 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT ( + col1 ) * + ( + 83 + - col2 ) AS col1 FROM tab1 cor0 ---- -169 260 754 query I rowsort SELECT DISTINCT 87 * cor0.col2 + 53 AS col1 FROM tab0 cor0 ---- 140 2924 7187 query I rowsort SELECT - + 2 * cor0.col2 FROM tab0 AS cor0 ---- -164 -2 -66 onlyif mysql # use DIV operator for integer division query I rowsort label-7910 SELECT + cor0.col2 DIV + col1 + - cor0.col0 * col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif mysql # not compatible query I rowsort label-7910 SELECT + cor0.col2 / + col1 + - cor0.col0 * col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + 54 * col1 * + col2 AS col1 FROM tab2 AS cor0 ---- 34884 45198 82836 query I rowsort SELECT ALL + col1 + - col0 * + col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT ALL 79 FROM tab0 ---- 79 79 79 query I rowsort SELECT DISTINCT ( ( col0 ) + - 42 ) FROM tab1 ---- -39 22 38 query I rowsort SELECT col2 * 83 + - col2 AS col0 FROM tab1 ---- 4428 4674 7872 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * col2 + ( ( col1 ) ) col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT + + cor0.col0 * - col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + col1 * 28 AS col2 FROM tab1 AS cor0 ---- 280 364 728 query I rowsort SELECT ALL + - cor0.col1 * + col2 * ( + col0 ) FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT col0 * - col0 + + col1 * + col2 FROM tab2 AS cor0 ---- -4550 -5595 788 query I rowsort SELECT ALL col2 + 6 FROM tab2 AS cor0 ---- 32 33 44 query I rowsort SELECT DISTINCT + col2 + + col1 * + col0 AS col0 FROM tab2 AS cor0 ---- 1381 244 4628 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7923 SELECT col1 * col1 + + CAST( col2 AS SIGNED ) AS col2 FROM tab2 ---- 327 3507 988 skipif mysql # not compatible query I rowsort label-7923 SELECT col1 * col1 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 ---- 327 3507 988 query I rowsort SELECT + col0 - col1 AS col0 FROM tab2 ---- -24 19 62 query I rowsort SELECT DISTINCT - 85 + + col0 * - col2 FROM tab2 ---- -2113 -274 -3087 query I rowsort SELECT ALL + col1 * ( col0 * + col1 ) FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT ALL - - cor0.col0 * - 65 AS col0 FROM tab2 AS cor0 ---- -455 -5070 -5135 query I rowsort SELECT - - col2 * col1 * - col2 AS col0 FROM tab1 AS cor0 ---- -119808 -32490 -75816 query I rowsort SELECT - col2 * cor0.col1 + + col1 AS col1 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT ALL - cor0.col2 * - col0 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7931 SELECT col0 * + CAST( NULL AS SIGNED ) + 18 * - col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7931 SELECT col0 * + CAST ( NULL AS INTEGER ) + 18 * - col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + col0 + 72 AS col0 FROM tab0 AS cor0 ---- 107 161 96 query I rowsort SELECT + col2 - - 92 AS col0 FROM tab1 ---- 146 149 188 query I rowsort SELECT - 71 AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to e72f95c346714d3065a96d67a6fd5062 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7935 SELECT CAST( + col0 AS SIGNED ) * - col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-7935 SELECT CAST ( + col0 AS INTEGER ) * - col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT + - 31 AS col0 FROM tab1 AS cor0 ---- -31 -31 -31 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3 ---- 3645 values hashing to 40a052eaf1d698dbf3ba319dc3e245ee query I rowsort SELECT ALL col2 * 99 AS col0 FROM tab2 ---- 2574 2673 3762 query I rowsort SELECT + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT 3 * + 28 AS col2 FROM tab1 AS cor0 ---- 84 84 84 query I rowsort SELECT - 44 * col1 AS col0 FROM tab0 AS cor0 ---- -3784 -4004 -4268 query I rowsort SELECT cor1.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd onlyif mysql # use DIV operator for integer division query I rowsort label-7943 SELECT DISTINCT col0 * col0 DIV + col2 AS col1 FROM tab1 ---- 0 66 71 skipif mysql # not compatible query I rowsort label-7943 SELECT DISTINCT col0 * col0 / + col2 AS col1 FROM tab1 ---- 0 66 71 query I rowsort SELECT - col1 * + 84 * + col1 FROM tab1 ---- -14196 -56784 -8400 query I rowsort SELECT + col0 * 73 AS col1 FROM tab1 ---- 219 4672 5840 query I rowsort SELECT ALL 64 * + 1 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 60ab040e931c5c85db7ba19364eacc8e query I rowsort SELECT ALL - col1 * col1 * - col0 AS col2 FROM tab0 ---- 177504 329315 737009 query I rowsort SELECT ALL - 99 * col2 AS col0 FROM tab0 ---- -3267 -8118 -99 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2 ---- 3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e onlyif mysql # use DIV operator for integer division query I rowsort label-7950 SELECT + col1 + cor0.col2 + + col1 DIV 99 AS col2 FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-7950 SELECT + col1 + cor0.col2 + + col1 / 99 AS col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT - - cor0.col1 + cor0.col2 * col2 + - col1 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT - col0 + - col2 * - col1 * + ( col2 + col0 ) FROM tab1 AS cor0 ---- 219568 68906 80025 query I rowsort SELECT 9 AS col1 FROM tab1 ---- 9 9 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 39 col0 FROM tab2 ---- 39 39 39 query I rowsort SELECT ALL col1 + cor0.col1 * - 56 AS col0 FROM tab0 AS cor0 ---- -4730 -5005 -5335 query I rowsort SELECT col2 + - col2 * + ( + 46 ) FROM tab1 AS cor0 ---- -2430 -2565 -4320 query I rowsort SELECT ALL + + 55 FROM tab0 AS cor0 ---- 55 55 55 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7958 SELECT ALL + cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-7958 SELECT ALL + cor0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + col1 + col1 + 55 AS col0 FROM tab0 cor0 ---- 227 237 249 query I rowsort SELECT + 86 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - ( + ( col0 ) ) col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - col1 * + 70 FROM tab2 AS cor0 ---- -1190 -2170 -4130 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1, tab1 cor1 ---- 972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823 onlyif mysql # use DIV operator for integer division query I rowsort label-7964 SELECT - 45 DIV + 10 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6 skipif mysql # not compatible query I rowsort label-7964 SELECT - 45 / + 10 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6 query I rowsort SELECT ( 27 ) AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1a3cef5c33b8f87ffeded378fd207753 query I rowsort SELECT ALL col1 + col1 * col2 AS col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT + 39 + col1 AS col2 FROM tab1 cor0 ---- 49 52 65 query I rowsort SELECT cor0.col0 + tab2.col2 + + 62 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 7cdc1c7a25010f5d4d9defd465c1209f skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 21 + - col2 + + 51 col1 FROM tab1 ---- -24 15 18 query I rowsort SELECT - col1 * + cor0.col1 + - col1 FROM tab0 AS cor0 ---- -7482 -8372 -9506 query I rowsort SELECT DISTINCT + col1 * + col2 + - col2 * 69 FROM tab0 AS cor0 ---- 1804 28 561 query I rowsort SELECT + col1 - + col0 AS col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT - + col2 + - col2 FROM tab2 AS cor0 ---- -52 -54 -76 query I rowsort SELECT 9 - col0 AS col1 FROM tab1 AS cor0 ---- -55 -71 6 query I rowsort SELECT tab2.col0 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT DISTINCT + 35 + cor1.col0 AS col1 FROM tab0, tab2 cor0, tab2 cor1 ---- 113 114 42 query I rowsort SELECT ALL + tab1.col0 + 75 AS col1 FROM tab1, tab2 cor0 ---- 9 values hashing to 5816091575b0602a2339f694496eb95c query I rowsort SELECT + - col0 * + col0 AS col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 skipif mysql # not compatible query I rowsort SELECT + CAST ( - cor0.col2 AS REAL ) * col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT + cor0.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 86 91 97 query I rowsort SELECT - tab0.col2 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc query I rowsort SELECT ALL - col2 * + 83 AS col2 FROM tab2 AS cor0 ---- -2158 -2241 -3154 query I rowsort SELECT DISTINCT - - 41 + col1 AS col2 FROM tab0 AS cor0 ---- 127 132 138 query I rowsort SELECT + col2 + cor0.col2 * + cor0.col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT + ( col0 ) * cor0.col0 FROM tab0 AS cor0 ---- 1225 576 7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7986 SELECT - 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-7986 SELECT - CAST ( NULL AS INTEGER ) + col2 col0 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * + col1 col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - 70 * col2 + col2 FROM tab2 ---- -1794 -1863 -2622 query I rowsort SELECT ALL + 52 AS col0 FROM tab1 AS cor0 ---- 52 52 52 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab0 AS cor0, tab0 cor1, tab0 AS cor2 ---- 972 values hashing to 04d825fa29899c3ee2704c26a542267d query I rowsort SELECT DISTINCT 69 * 54 FROM tab0 AS cor0 ---- 3726 query I rowsort SELECT - - ( 19 ) * + col2 FROM tab1 AS cor0 ---- 1026 1083 1824 query I rowsort SELECT + 54 * + col2 FROM tab2 AS cor0 ---- 1404 1458 2052 query I rowsort SELECT ALL - col2 * ( col0 * - cor0.col0 + 53 ) AS col2 FROM tab1 AS cor0 ---- -2376 230451 609312 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 cor2 ---- 972 values hashing to 43f0c51511c8642d19190fd4dfcf905a query I rowsort SELECT + + ( col2 ) FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT ALL col1 + - cor0.col0 * cor0.col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT ALL cor0.col0 FROM tab0, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT ALL + 61 + + col2 * + col0 FROM tab2 AS cor0 ---- 2089 250 3063 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8000 SELECT ALL - col2 * - col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8000 SELECT ALL - col2 * - col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - col0 + - col1 FROM tab2 cor0 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * col2 + - ( col2 ) col0 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT DISTINCT + 48 AS col2 FROM tab1 AS cor0 ---- 48 onlyif mysql # use DIV operator for integer division query I rowsort label-8004 SELECT ALL - 70 + col0 DIV col2 AS col2 FROM tab1 AS cor0 ---- -69 -70 -70 skipif mysql # not compatible query I rowsort label-8004 SELECT ALL - 70 + col0 / col2 AS col2 FROM tab1 AS cor0 ---- -69 -70 -70 query I rowsort SELECT - col0 + cor0.col0 * col1 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT DISTINCT + col0 * col0 + col0 AS col2 FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT ALL - - 94 + col1 * - ( + ( + col1 ) ) AS col0 FROM tab2 cor0 ---- -195 -3387 -867 query I rowsort SELECT DISTINCT - ( + ( + col1 ) ) * ( col2 ) FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT ALL 20 * + 36 AS col0 FROM tab1 ---- 720 720 720 query I rowsort SELECT ALL 79 * + col2 AS col0 FROM tab2 ---- 2054 2133 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-8011 SELECT - col0 * + ( col2 * - col2 ) + - col1 DIV col2 AS col1 FROM tab0 AS cor0 ---- -62 26134 598435 skipif mysql # not compatible query I rowsort label-8011 SELECT - col0 * + ( col2 * - col2 ) + - col1 / col2 AS col1 FROM tab0 AS cor0 ---- -62 26134 598435 query I rowsort SELECT DISTINCT - cor0.col0 * + 82 + - 2 FROM tab2 AS cor0 ---- -576 -6398 -6480 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8013 SELECT ALL cor0.col2 + + CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-8013 SELECT ALL cor0.col2 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-8014 SELECT DISTINCT col2 DIV CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-8014 SELECT DISTINCT col2 / CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 ---- 0 1 18 query I rowsort SELECT + + col2 + + col1 + - col1 AS col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT + cor0.col0 + cor0.col0 * col1 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT ALL - - col1 * 60 + - col0 AS col2 FROM tab0 AS cor0 ---- 5136 5371 5785 query I rowsort SELECT DISTINCT + col0 + - 29 * - 12 FROM tab0 AS cor0 ---- 372 383 437 query I rowsort SELECT 80 * col1 AS col1 FROM tab2 ---- 1360 2480 4720 onlyif mysql # use DIV operator for integer division query I rowsort label-8020 SELECT - tab1.col2 DIV + col1 AS col0 FROM tab1 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-8020 SELECT - tab1.col2 / + col1 AS col0 FROM tab1 ---- -2 -5 -7 query I rowsort SELECT DISTINCT + col1 * + col0 * col1 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT + col2 * col2 + 1 FROM tab1 AS cor0 ---- 2917 3250 9217 query I rowsort SELECT tab2.col1 * 14 FROM tab2 ---- 238 434 826 query I rowsort SELECT ALL + col1 + col2 + 85 FROM tab1 ---- 152 165 194 query IIIIIIIII rowsort SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1 ---- 243 values hashing to 098e223d780e18b6582523fd6f55eec9 query I rowsort SELECT ALL + cor1.col1 - + cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to d71cc5ecf1aacb631cf199fd150bf079 onlyif mysql # use DIV operator for integer division query I rowsort label-8027 SELECT - col2 * 6 DIV + cor0.col2 FROM tab0 cor0 ---- -6 -6 -6 skipif mysql # not compatible query I rowsort label-8027 SELECT - col2 * 6 / + cor0.col2 FROM tab0 cor0 ---- -6 -6 -6 query I rowsort SELECT + - col1 + + 68 * col1 FROM tab0 cor0 ---- 5762 6097 6499 query I rowsort SELECT DISTINCT + tab2.col2 + col0 * col2 FROM tab2 ---- 2054 216 3040 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8030 SELECT col0 - - CAST( NULL AS SIGNED ) / - col1 col1 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8030 SELECT col0 - - CAST ( NULL AS INTEGER ) / - col1 col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + col0 * + ( 90 * + col0 ) AS col2 FROM tab0 ---- 110250 51840 712890 query I rowsort SELECT 93 AS col0 FROM tab1 ---- 93 93 93 onlyif mysql # use DIV operator for integer division query I rowsort label-8033 SELECT + col2 * col2 + + 98 * ( + col1 ) DIV col0 FROM tab2 ---- 1163 1465 750 skipif mysql # not compatible query I rowsort label-8033 SELECT + col2 * col2 + + 98 * ( + col1 ) / col0 FROM tab2 ---- 1163 1465 750 query I rowsort SELECT + 10 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176 query I rowsort SELECT ALL - col2 - + col1 AS col0 FROM tab1 AS cor0 ---- -109 -67 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col1 col2 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT DISTINCT col2 + + col1 * 4 * - 91 AS col2 FROM tab2 AS cor0 ---- -11257 -21450 -6150 query I rowsort SELECT + 69 AS col1 FROM tab1 ---- 69 69 69 query I rowsort SELECT - 19 FROM tab2 ---- -19 -19 -19 query I rowsort SELECT ALL cor0.col2 * - 60 FROM tab0, tab0 AS cor0 ---- 9 values hashing to c2dc25793a2e30d533ae2e8b1d1631be query I rowsort SELECT DISTINCT - col0 + col0 * + col1 FROM tab0 AS cor0 ---- 2040 3360 8010 query I rowsort SELECT DISTINCT + col2 * + cor0.col1 + - 13 * col0 FROM tab0 cor0 ---- -358 2526 6305 query I rowsort SELECT DISTINCT col1 + - col2 * 18 + col1 AS col2 FROM tab2 AS cor0 ---- -350 -424 -650 query I rowsort SELECT ALL col1 - - 91 FROM tab1 cor0 ---- 101 104 117 query I rowsort SELECT - col2 + 6 AS col1 FROM tab0 AS cor0 ---- -27 -76 5 query I rowsort SELECT col1 * 93 + - col0 FROM tab0 AS cor0 ---- 7974 8374 8986 query I rowsort SELECT ALL - - col1 + + 65 FROM tab2 cor0 ---- 124 82 96 query I rowsort SELECT cor0.col1 AS col2 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT col0 + 68 * 30 FROM tab0 AS cor0 ---- 2064 2075 2129 onlyif mysql # use DIV operator for integer division query I rowsort label-8050 SELECT ALL - col1 * ( + col0 ) DIV - col2 FROM tab0 AS cor0 ---- 3395 62 98 skipif mysql # not compatible query I rowsort label-8050 SELECT ALL - col1 * ( + col0 ) / - col2 FROM tab0 AS cor0 ---- 3395 62 98 query I rowsort SELECT DISTINCT - col2 * - col2 + - 98 FROM tab0 AS cor0 ---- -97 6626 991 query I rowsort SELECT DISTINCT + col2 * 42 + - col1 FROM tab2 AS cor0 ---- 1033 1103 1579 query I rowsort SELECT + col0 * + ( col2 ) AS col0 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT + col2 + - ( col0 ) * col0 AS col0 FROM tab2 AS cor0 ---- -22 -6058 -6203 query I rowsort SELECT DISTINCT - - col0 - - cor0.col0 AS col1 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT + col0 + + col0 * - col0 + 58 FROM tab0 ---- -1132 -494 -7774 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 94 * + 39 + + tab1.col2 * col2 + - col0 col1 FROM tab1 ---- 12802 6579 6851 onlyif mysql # use DIV operator for integer division query I rowsort label-8058 SELECT + - cor0.col0 * col1 * - col2 + col2 DIV 22 col0 FROM tab2 AS cor0 ---- 119653 51035 5860 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8058 SELECT + - cor0.col0 * col1 * - col2 + col2 / 22 col0 FROM tab2 AS cor0 ---- 119653 51035 5860 query I rowsort SELECT ALL + col2 * - ( col0 ) * col2 FROM tab2 cor0 ---- -114076 -5103 -52728 query I rowsort SELECT + + 68 * 77 - + col0 AS col0 FROM tab2 AS cor0 ---- 5157 5158 5229 query I rowsort SELECT DISTINCT ( + col0 ) * col2 AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT ALL + 39 AS col2 FROM tab1 cor0 ---- 39 39 39 query I rowsort SELECT ALL - col0 * 87 * + col1 + 2 - + 92 FROM tab1 AS cor0 ---- -55770 -6876 -90570 query I rowsort SELECT + 24 + + col0 * - col2 AS col0 FROM tab2 AS cor0 ---- -165 -2004 -2978 query I rowsort SELECT ALL + ( col1 ) AS col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT DISTINCT 70 + + col1 FROM tab0 AS cor0 ---- 156 161 167 query I rowsort SELECT DISTINCT - col1 * cor0.col0 + col2 * - col0 AS col0 FROM tab2 cor0 ---- -406 -4345 -6630 query I rowsort SELECT ALL + + col1 * col1 FROM tab1 AS cor0 ---- 100 169 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 77 col0 FROM tab0 AS cor0 ---- 77 77 77 query I rowsort SELECT ( col2 ) + + 79 AS col2 FROM tab2 AS cor0 ---- 105 106 117 query I rowsort SELECT - cor0.col2 * - col1 AS col0 FROM tab2 AS cor0 ---- 1534 646 837 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 col2 + cor0.col2 col1 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT 78 + + col2 FROM tab2 AS cor0 ---- 104 105 116 query I rowsort SELECT ALL - 44 * col0 * col2 AS col1 FROM tab1 AS cor0 ---- -160512 -337920 -7128 query I rowsort SELECT DISTINCT - col0 + 71 FROM tab0 ---- -18 36 47 query I rowsort SELECT DISTINCT + cor1.col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1 ---- 54 57 96 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 ---- 972 values hashing to 2d99dda76af061a3fac120e0e49e6c53 query I rowsort SELECT + + cor0.col0 * + col1 + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT - + 32 * + cor0.col0 FROM tab0 AS cor0 ---- -1120 -2848 -768 query I rowsort SELECT + - cor0.col0 * col0 + col1 FROM tab1 AS cor0 ---- -4086 -6387 17 query I rowsort SELECT ALL + tab1.col2 * - tab1.col1 AS col2 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT + 48 * cor0.col1 + 4 FROM tab0 cor0 ---- 4132 4372 4660 query I rowsort SELECT - col2 + col2 - col2 * col0 AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT + col2 * cor0.col1 + - 34 FROM tab1 AS cor0 ---- 1214 1370 536 onlyif mysql # use DIV operator for integer division query I rowsort label-8086 SELECT - 64 DIV col1 + ( 5 * - col1 ) FROM tab2 AS cor0 ---- -157 -296 -88 skipif mysql # not compatible query I rowsort label-8086 SELECT - 64 / col1 + ( 5 * - col1 ) FROM tab2 AS cor0 ---- -157 -296 -88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * - col0 * - 29 col1 FROM tab0 AS cor0 ---- 1015 211642 22968 query I rowsort SELECT + col0 + + col0 * col2 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT + + col2 + col2 * + col0 AS col0 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT cor0.col2 * col2 AS col1 FROM tab2 cor0 ---- 1444 676 729 query I rowsort SELECT - + col0 + col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL cor0.col1 FROM tab1, tab1 cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 query I rowsort SELECT ( - cor0.col0 ) FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT + 51 AS col0 FROM tab0 AS cor0 ---- 51 51 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8095 SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-8095 SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT ALL + 99 * 16 AS col1 FROM tab1 ---- 1584 1584 1584 query I rowsort SELECT ALL + tab1.col2 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8098 SELECT ALL - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8098 SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 * 89 col2 FROM tab0 AS cor0 ---- 7654 8099 8633 query I rowsort SELECT - col2 + - col0 - - col2 AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 11 col2 FROM tab0 AS cor0 ---- 11 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8102 SELECT DISTINCT + ( col2 ) + cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8102 SELECT DISTINCT + ( col2 ) + cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8103 SELECT - CAST( col0 AS SIGNED ) * col1 FROM tab0 ---- -2064 -3395 -8099 skipif mysql # not compatible query I rowsort label-8103 SELECT - CAST ( col0 AS INTEGER ) * col1 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + 26 FROM tab1 AS cor0 ---- 26 query I rowsort SELECT DISTINCT - + col1 + + 44 AS col1 FROM tab1 AS cor0 ---- 18 31 34 onlyif mysql # use DIV operator for integer division query I rowsort label-8106 SELECT + + col0 * 23 DIV col0 AS col1 FROM tab0 AS cor0 ---- 23 23 23 skipif mysql # not compatible query I rowsort label-8106 SELECT + + col0 * 23 / col0 AS col1 FROM tab0 AS cor0 ---- 23 23 23 query I rowsort SELECT DISTINCT + - col1 + ( 16 ) FROM tab1 AS cor0 ---- -10 3 6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8108 SELECT DISTINCT col0 * - CAST( - 35 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 245 2730 2765 skipif mysql # not compatible query I rowsort label-8108 SELECT DISTINCT col0 * - CAST ( - 35 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 245 2730 2765 query I rowsort SELECT + + col2 * 45 FROM tab2 AS cor0 ---- 1170 1215 1710 query I rowsort SELECT DISTINCT 44 FROM tab0 ---- 44 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + col0 col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL + + col1 + col1 * col0 FROM tab1 AS cor0 ---- 104 1053 650 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8113 SELECT col0 + - CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8113 SELECT col0 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT col1 + + 97 * col1 + col1 * - col2 FROM tab1 AS cor0 ---- 1144 26 410 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8115 SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8115 SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL - 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 8035c665a75d22be5922be1a4e574e03 query I rowsort SELECT 28 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97 query I rowsort SELECT ALL - + col2 + + 13 * - col2 FROM tab2 AS cor0 ---- -364 -378 -532 query I rowsort SELECT - 34 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 40442a74794ded4c78101eefe525a5bb onlyif mysql # use DIV operator for integer division query I rowsort label-8120 SELECT col0 DIV col0 - col2 col2 FROM tab0 ---- -32 -81 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8120 SELECT col0 / col0 - col2 col2 FROM tab0 ---- -32 -81 0 query IIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2 ---- 972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a query I rowsort SELECT cor0.col0 * + cor0.col1 AS col0 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT 85 AS col2 FROM tab2 ---- 85 85 85 query I rowsort SELECT DISTINCT + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT 25 * - col1 FROM tab1 AS cor0 ---- -250 -325 -650 query I rowsort SELECT DISTINCT col1 * + col0 FROM tab0 cor0 ---- 2064 3395 8099 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2 ---- 3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e query I rowsort SELECT DISTINCT 90 + col1 AS col1 FROM tab0 ---- 176 181 187 query I rowsort SELECT + tab0.col1 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT DISTINCT 44 AS col1 FROM tab1 ---- 44 query I rowsort SELECT + col1 + tab2.col0 AS col2 FROM tab2 ---- 137 38 96 query I rowsort SELECT 8 + + col0 AS col0 FROM tab1 AS cor0 ---- 11 72 88 query I rowsort SELECT + 12 + + cor0.col1 AS col1 FROM tab2 cor0 ---- 29 43 71 query I rowsort SELECT ALL cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT - col0 * + col2 * - ( 54 ) + col2 * 83 FROM tab1 ---- 13230 201723 422688 query I rowsort SELECT ALL - 64 * col2 + col1 * 69 * col0 FROM tab1 ---- 1926 40512 65616 query I rowsort SELECT DISTINCT - col2 + col1 * + 10 AS col1 FROM tab0 ---- 827 828 969 query I rowsort SELECT DISTINCT - tab1.col0 * col0 + + 22 * + col1 AS col1 FROM tab1 ---- -3876 -6114 563 query I rowsort SELECT DISTINCT + + col1 + - col0 * - 18 * - 81 FROM tab2 AS cor0 ---- -10175 -113665 -115165 onlyif mysql # use DIV operator for integer division query I rowsort label-8140 SELECT + 20 - - col1 DIV ( + col1 ) FROM tab1 AS cor0 ---- 21 21 21 skipif mysql # not compatible query I rowsort label-8140 SELECT + 20 - - col1 / ( + col1 ) FROM tab1 AS cor0 ---- 21 21 21 query I rowsort SELECT DISTINCT col0 + - col2 + ( - col1 ) FROM tab0 cor0 ---- -63 -84 -95 query I rowsort SELECT ALL - 9 * - tab0.col1 + 26 FROM tab0 ---- 800 845 899 query I rowsort SELECT ALL - col2 * + col2 + col2 + col2 FROM tab1 AS cor0 ---- -2808 -3135 -9024 query I rowsort SELECT ALL col1 + ( col2 * col2 ) + 56 FROM tab2 AS cor0 ---- 1517 791 816 query I rowsort SELECT DISTINCT + cor0.col2 - - cor0.col1 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8146 SELECT ALL - col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8146 SELECT ALL - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL - 43 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a query I rowsort SELECT tab0.col2 + tab0.col2 AS col0 FROM tab0 ---- 164 2 66 onlyif mysql # use DIV operator for integer division query I rowsort label-8149 SELECT - + col0 + col2 DIV col0 AS col0 FROM tab1 AS cor0 ---- -64 -79 15 skipif mysql # not compatible query I rowsort label-8149 SELECT - + col0 + col2 / col0 AS col0 FROM tab1 AS cor0 ---- -64 -79 15 query I rowsort SELECT DISTINCT + + col2 * + 80 AS col0 FROM tab1 AS cor0 ---- 4320 4560 7680 query I rowsort SELECT - 22 * - col0 FROM tab2 ---- 154 1716 1738 query I rowsort SELECT + col0 + + 18 FROM tab1 ---- 21 82 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8153 SELECT + CAST( NULL AS SIGNED ) + - col0 * - tab1.col0 + + col2 AS col0 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8153 SELECT + CAST ( NULL AS INTEGER ) + - col0 * - tab1.col0 + + col2 AS col0 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - col0 + col0 - tab1.col0 * + 34 FROM tab1 ---- -102 -2176 -2720 query I rowsort SELECT col0 + tab2.col0 AS col0 FROM tab2 ---- 14 156 158 query I rowsort SELECT DISTINCT 84 - + 69 AS col0 FROM tab2 ---- 15 query I rowsort SELECT ( tab0.col2 ) * col0 AS col1 FROM tab0 ---- 35 7298 792 query I rowsort SELECT DISTINCT + col1 - ( - col0 + + col0 ) FROM tab1 ---- 10 13 26 query I rowsort SELECT DISTINCT col2 * col2 + + col0 AS col2 FROM tab1 ---- 2919 3313 9296 query I rowsort SELECT DISTINCT + col0 - col2 AS col2 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT + + 55 FROM tab0 AS cor0 ---- 55 55 55 query I rowsort SELECT DISTINCT + col1 * - ( + cor0.col0 ) + col1 AS col0 FROM tab2 AS cor0 ---- -1326 -186 -4543 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8163 SELECT ALL col0 + ( - col1 + - CAST( - col1 AS SIGNED ) ) * + col1 col1 FROM tab1 cor0 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8163 SELECT ALL col0 + ( - col1 + - CAST ( - col1 AS INTEGER ) ) * + col1 col1 FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT ALL - - 90 + - 29 FROM tab0 AS cor0 ---- 61 61 61 query I rowsort SELECT - - 40 AS col2 FROM tab2 AS cor0 ---- 40 40 40 query I rowsort SELECT DISTINCT - col2 * col1 + col2 AS col0 FROM tab0 cor0 ---- -2805 -7380 -96 query I rowsort SELECT ALL + + 23 - - col2 * 27 FROM tab0 AS cor0 ---- 2237 50 914 onlyif mysql # use DIV operator for integer division query I rowsort label-8168 SELECT ALL - cor0.col1 DIV col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-8168 SELECT ALL - cor0.col1 / col1 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT - - 41 * cor0.col0 + ( col1 * cor0.col0 ) AS col0 FROM tab2 AS cor0 ---- 4582 504 7800 query I rowsort SELECT - - ( + col0 ) FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-8171 SELECT col2 + + cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0 ---- 35 83 98 skipif mysql # not compatible query I rowsort label-8171 SELECT col2 + + cor0.col1 / col2 AS col2 FROM tab0 AS cor0 ---- 35 83 98 query I rowsort SELECT ALL + col1 + cor0.col2 AS col1 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + + cor0.col1 + col0 FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT ALL - col1 - + col2 * ( - cor0.col2 ) FROM tab2 AS cor0 ---- 1427 617 698 query I rowsort SELECT + 1 + col0 * + ( - col0 ) AS col0 FROM tab0 AS cor0 ---- -1224 -575 -7920 query I rowsort SELECT DISTINCT + - col1 * + col2 * - ( 52 + + col0 ) FROM tab1 AS cor0 ---- 164736 66120 77220 query I rowsort SELECT ALL + 78 - col1 * tab0.col2 AS col1 FROM tab0 ---- -19 -2760 -7384 query I rowsort SELECT 57 - tab0.col2 FROM tab0 ---- -25 24 56 query I rowsort SELECT DISTINCT + - 73 * - col2 * - 12 AS col0 FROM tab0 AS cor0 ---- -28908 -71832 -876 query I rowsort SELECT - tab2.col0 - - col0 FROM tab2 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 68 col0 FROM tab1 ---- 68 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 72 + + col1 * + col2 col0 FROM tab2 AS cor0 ---- 1462 574 765 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1 cor0, tab0 AS cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc query I rowsort SELECT - 25 * col1 FROM tab0 AS cor0 ---- -2150 -2275 -2425 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( - col1 AS REAL ) + - cor0.col1 * cor0.col1 AS col1 FROM tab2 AS cor0 ---- -272 -3422 -930 onlyif mysql # use DIV operator for integer division query I rowsort label-8186 SELECT - 37 * cor0.col0 DIV - col2 + - col1 * - col1 FROM tab0 AS cor0 ---- 10704 7422 8321 skipif mysql # not compatible query I rowsort label-8186 SELECT - 37 * cor0.col0 / - col2 + - col1 * - col1 FROM tab0 AS cor0 ---- 10704 7422 8321 query I rowsort SELECT ALL - 98 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to f17b7008a7deae1eb5a2e707ec237638 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 + 83 * + col2 * col2 col0 FROM tab2 AS cor0 ---- 119869 56167 60538 query I rowsort SELECT 13 + + cor0.col1 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 4786565a3c409ae6c98b1e887ce7d90d query I rowsort SELECT + + 46 * + cor0.col0 AS col1 FROM tab2 cor0 ---- 322 3588 3634 onlyif mysql # use DIV operator for integer division query I rowsort label-8191 SELECT DISTINCT + 43 DIV cor0.col2 AS col0 FROM tab2, tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-8191 SELECT DISTINCT + 43 / cor0.col2 AS col0 FROM tab2, tab1 AS cor0 ---- 0 query I rowsort SELECT ALL 85 * col2 FROM tab0 ---- 2805 6970 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 28 col1 FROM tab2 AS cor0 ---- 28 28 28 query I rowsort SELECT ALL 84 FROM tab1 cor0 ---- 84 84 84 query I rowsort SELECT 82 FROM tab0 ---- 82 82 82 query I rowsort SELECT ( - col2 + - col0 ) * + 13 AS col2 FROM tab0 ---- -2223 -468 -741 query I rowsort SELECT DISTINCT ( tab0.col0 * col0 + + 41 * ( + col1 ) ) AS col1 FROM tab0 ---- 11652 4102 5202 query I rowsort SELECT DISTINCT + 86 FROM tab0 ---- 86 onlyif mysql # use DIV operator for integer division query I rowsort label-8199 SELECT - col1 DIV col0 AS col1 FROM tab0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-8199 SELECT - col1 / col0 AS col1 FROM tab0 ---- -1 -2 -3 onlyif mysql # use DIV operator for integer division query I rowsort label-8200 SELECT col0 DIV - col2 + col0 AS col2 FROM tab0 ---- 0 24 88 skipif mysql # not compatible query I rowsort label-8200 SELECT col0 / - col2 + col0 AS col2 FROM tab0 ---- 0 24 88 query I rowsort SELECT col2 * col2 - - ( - col2 ) FROM tab1 AS cor0 ---- 2862 3192 9120 query I rowsort SELECT - ( col1 ) + ( + col1 ) * + col2 FROM tab0 ---- 0 2752 7371 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + 1 * col1 col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT tab1.col1 * ( + col0 ) FROM tab1 ---- 1040 640 78 query I rowsort SELECT + col0 * - ( + col2 * col2 ) FROM tab2 ---- -114076 -5103 -52728 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8206 SELECT + col0 + CAST( NULL AS SIGNED ) - cor0.col1 * + col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8206 SELECT + col0 + CAST ( NULL AS INTEGER ) - cor0.col1 * + col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col2 + + 38 FROM tab2 AS cor0 ---- 64 65 76 onlyif mysql # use DIV operator for integer division query I rowsort label-8208 SELECT - col2 DIV col1 - 95 FROM tab2 AS cor0 ---- -95 -95 -97 skipif mysql # not compatible query I rowsort label-8208 SELECT - col2 / col1 - 95 FROM tab2 AS cor0 ---- -95 -95 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-8209 SELECT col0 * ( 57 ) DIV col1 AS col0 FROM tab0 cor0 ---- 15 20 55 skipif mysql # not compatible query I rowsort label-8209 SELECT col0 * ( 57 ) / col1 AS col0 FROM tab0 cor0 ---- 15 20 55 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8210 SELECT DISTINCT - col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8210 SELECT DISTINCT - col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL + cor0.col2 * 3 + col0 AS col1 FROM tab2 AS cor0 ---- 156 193 88 query I rowsort SELECT - - col0 * col1 + - col2 * - col1 - cor0.col1 * + 93 FROM tab1 AS cor0 ---- -936 1079 280 onlyif mysql # use DIV operator for integer division query I rowsort label-8213 SELECT DISTINCT - - col2 DIV - 26 col2 FROM tab1 cor0 ---- -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8213 SELECT DISTINCT - - col2 / - 26 col2 FROM tab1 cor0 ---- -2 -3 query I rowsort SELECT + - cor0.col1 * col2 + - col0 FROM tab2 AS cor0 ---- -1612 -725 -844 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8215 SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-8215 SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8216 SELECT CAST( NULL AS SIGNED ) + + 64 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-8216 SELECT CAST ( NULL AS INTEGER ) + + 64 FROM tab0, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT col0 * ( 86 ) - - col1 AS col0 FROM tab1 ---- 284 5514 6893 query I rowsort SELECT - + 11 - ( col0 * + 4 ) AS col1 FROM tab0 AS cor0 ---- -107 -151 -367 onlyif mysql # use DIV operator for integer division query I rowsort label-8220 SELECT - - 15 - - cor0.col1 DIV + col0 FROM tab1 AS cor0 ---- 15 15 23 skipif mysql # not compatible query I rowsort label-8220 SELECT - - 15 - - cor0.col1 / + col0 FROM tab1 AS cor0 ---- 15 15 23 query I rowsort SELECT 91 + col0 AS col0 FROM tab0 AS cor0 ---- 115 126 180 query I rowsort SELECT DISTINCT - 76 FROM tab2, tab2 AS cor0 CROSS JOIN tab1 ---- -76 onlyif mysql # use DIV operator for integer division query I rowsort label-8223 SELECT DISTINCT 4 DIV - 29 + - col2 DIV col0 FROM tab0 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-8223 SELECT DISTINCT 4 / - 29 + - col2 / col0 FROM tab0 AS cor0 ---- -1 0 query I rowsort SELECT + 90 - - 93 FROM tab1 AS cor0 ---- 183 183 183 query I rowsort SELECT ( col1 ) - col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + col0 * col1 + cor0.col2 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT + col0 + 59 AS col2 FROM tab2 AS cor0 ---- 137 138 66 query I rowsort SELECT - col2 * + 20 AS col0 FROM tab1 ---- -1080 -1140 -1920 query I rowsort SELECT ALL 70 * + 71 + - col1 AS col0 FROM tab2 AS cor0 ---- 4911 4939 4953 query I rowsort SELECT col1 * + col2 + 9 FROM tab0 ---- 106 2847 7471 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8231 SELECT + CAST( NULL AS SIGNED ) * + cor0.col1 / - col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8231 SELECT + CAST ( NULL AS INTEGER ) * + cor0.col1 / - col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 47 FROM tab2 AS cor0 ---- 47 47 47 query I rowsort SELECT - + 71 * - col1 AS col2 FROM tab0 AS cor0 ---- 6106 6461 6887 onlyif mysql # use DIV operator for integer division query I rowsort label-8234 SELECT col2 + col1 DIV cor0.col1 FROM tab2 AS cor0 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-8234 SELECT col2 + col1 / cor0.col1 FROM tab2 AS cor0 ---- 27 28 39 query I rowsort SELECT - + col2 * + col1 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8236 SELECT + + 92 * col1 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 ---- 680432 761852 865628 skipif mysql # not compatible query I rowsort label-8236 SELECT + + 92 * col1 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 ---- 680432 761852 865628 query I rowsort SELECT + + 31 FROM tab2 cor0 ---- 31 31 31 query I rowsort SELECT - + col2 * col0 + - cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- -406 -4345 -6630 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8239 SELECT + - col0 + - CAST( NULL AS DECIMAL ) * - cor0.col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8239 SELECT + - col0 + - CAST ( NULL AS REAL ) * - cor0.col0 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 + col0 * - cor0.col2 FROM tab1 AS cor0 ---- -216 -3705 -7776 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8241 SELECT DISTINCT CAST( 73 AS SIGNED ) FROM tab1, tab0 AS cor0, tab2 cor1 ---- 73 skipif mysql # not compatible query I rowsort label-8241 SELECT DISTINCT CAST ( 73 AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 cor1 ---- 73 query I rowsort SELECT 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba query I rowsort SELECT col1 + - col0 * - col1 FROM tab0 ---- 2150 3492 8190 query I rowsort SELECT DISTINCT col0 + col1 * - col1 * - col1 + - col1 FROM tab0 ---- 635994 753569 912611 onlyif mysql # use DIV operator for integer division query I rowsort label-8245 SELECT cor0.col1 + col1 DIV - col1 AS col0 FROM tab2 AS cor0 ---- 16 30 58 skipif mysql # not compatible query I rowsort label-8245 SELECT cor0.col1 + col1 / - col1 AS col0 FROM tab2 AS cor0 ---- 16 30 58 query I rowsort SELECT + col2 + - cor0.col2 AS col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col2 * - col0 + col2 FROM tab1 ---- -108 -3591 -7584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + + col2 * - col2 col2 FROM tab0 ---- -1113 -36 -6813 query I rowsort SELECT + col1 + col2 * col0 AS col0 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT ALL + - col1 * - col2 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 10982 25947 90506 onlyif mysql # use DIV operator for integer division query I rowsort label-8251 SELECT DISTINCT + col1 DIV - cor0.col1 FROM tab0 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-8251 SELECT DISTINCT + col1 / - cor0.col1 FROM tab0 AS cor0 ---- -1 query I rowsort SELECT - col0 * + col2 * - col0 FROM tab1 AS cor0 ---- 233472 486 614400 query I rowsort SELECT ALL - + cor0.col1 + + col0 * col1 AS col1 FROM tab2 AS cor0 ---- 1326 186 4543 query I rowsort SELECT + col1 * col2 + - col1 AS col0 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT ALL + col0 AS col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT ALL col1 * + col2 * - col2 + - col1 * col0 AS col0 FROM tab1 cor0 ---- -120848 -33130 -75894 query I rowsort SELECT ALL col0 + col0 + - col2 FROM tab1 AS cor0 ---- -48 64 71 query I rowsort SELECT col1 - col1 * tab2.col1 FROM tab2 ---- -272 -3422 -930 query I rowsort SELECT col2 * tab0.col0 AS col2 FROM tab0 WHERE + col1 NOT BETWEEN ( col1 ) AND NULL ---- query I rowsort SELECT col1 + col1 + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0 ---- 1274 1456 590 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * col1 + - col2 * + col1 - + cor0.col0 * + cor0.col1 col1 FROM tab1 AS cor0 ---- -1310 -2158 -2457 query I rowsort SELECT + + col2 + + col0 - cor0.col1 FROM tab2 AS cor0 ---- 100 3 45 query I rowsort SELECT DISTINCT - col2 + col1 * - col2 AS col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT DISTINCT + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL col1 * + tab2.col1 AS col1 FROM tab2 ---- 289 3481 961 onlyif mysql # use DIV operator for integer division query I rowsort label-8266 SELECT - col0 * col0 + + col1 + - col0 * + tab2.col0 DIV col0 FROM tab2 ---- -25 -6103 -6303 skipif mysql # not compatible query I rowsort label-8266 SELECT - col0 * col0 + + col1 + - col0 * + tab2.col0 / col0 FROM tab2 ---- -25 -6103 -6303 query I rowsort SELECT DISTINCT col0 * col2 + col2 - col1 * tab0.col1 AS col0 FROM tab0 ---- -6571 -901 -9373 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab1.col2 * col0 * col2 - tab1.col1 col2 FROM tab1 ---- 207926 737267 8722 query I rowsort SELECT - col0 + col1 - col2 AS col0 FROM tab1 ---- -111 -163 -31 query I rowsort SELECT DISTINCT + col0 * col1 - tab0.col0 FROM tab0 ---- 2040 3360 8010 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( col2 ) + 62 col1 FROM tab1 AS cor0 ---- -34 5 8 query I rowsort SELECT ALL col2 * - col0 AS col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT 96 - col0 AS col1 FROM tab0 cor0 ---- 61 7 72 query I rowsort SELECT - col2 + + col1 * + col0 AS col1 FROM tab2 ---- 1305 190 4576 onlyif mysql # use DIV operator for integer division query I rowsort label-8275 SELECT + col1 * col2 DIV col1 AS col2 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-8275 SELECT + col1 * col2 / col1 AS col2 FROM tab0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-8276 SELECT DISTINCT + tab2.col1 DIV col1 AS col2 FROM tab2 ---- 1 skipif mysql # not compatible query I rowsort label-8276 SELECT DISTINCT + tab2.col1 / col1 AS col2 FROM tab2 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-8277 SELECT DISTINCT + cor0.col0 * + col2 DIV col2 + col1 FROM tab0 AS cor0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-8277 SELECT DISTINCT + cor0.col0 * + col2 / col2 + col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL - ( - col2 ) * col2 + col0 * col1 FROM tab1 AS cor0 ---- 10256 2994 3889 onlyif mysql # use DIV operator for integer division query I rowsort label-8279 SELECT DISTINCT - 85 DIV col1 AS col1 FROM tab1 cor0 ---- -3 -6 -8 skipif mysql # not compatible query I rowsort label-8279 SELECT DISTINCT - 85 / col1 AS col1 FROM tab1 cor0 ---- -3 -6 -8 query I rowsort SELECT + col1 - + cor0.col1 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8281 SELECT + col1 DIV + col0 + - col1 col2 FROM tab2 ---- -17 -27 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8281 SELECT + col1 / + col0 + - col1 col2 FROM tab2 ---- -17 -27 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-8282 SELECT + col1 DIV col1 AS col1 FROM tab2 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8282 SELECT + col1 / col1 AS col1 FROM tab2 ---- 1 1 1 query III rowsort SELECT * FROM tab1 WHERE - col2 - col2 <> + col1 * + col0 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d onlyif mysql # use DIV operator for integer division query I rowsort label-8284 SELECT ALL tab1.col0 DIV - col0 FROM tab1 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-8284 SELECT ALL tab1.col0 / - col0 FROM tab1 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-8285 SELECT DISTINCT col2 DIV col0 AS col0 FROM tab2 ---- 0 3 skipif mysql # not compatible query I rowsort label-8285 SELECT DISTINCT col2 / col0 AS col0 FROM tab2 ---- 0 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * col0 * - tab2.col0 col2 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT - tab2.col2 * - col1 * - col0 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT tab2.col2 + - col1 + + col2 * - col1 AS col1 FROM tab2 ---- -1567 -625 -841 query I rowsort SELECT - col2 * tab2.col2 AS col0 FROM tab2 ---- -1444 -676 -729 query III rowsort SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 / col0 ) ---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + tab1.col0 + col0 - col0 <= NULL ---- query I rowsort SELECT DISTINCT + col1 + col0 + + col2 FROM tab2 ---- 134 163 65 onlyif mysql # use DIV operator for integer division query I rowsort label-8293 SELECT DISTINCT - col0 * col2 DIV - col1 FROM tab1 ---- 364 590 6 skipif mysql # not compatible query I rowsort label-8293 SELECT DISTINCT - col0 * col2 / - col1 FROM tab1 ---- 364 590 6 query I rowsort SELECT ALL col1 - col0 AS col1 FROM tab1 WHERE NULL IN ( tab1.col2 ) ---- query I rowsort SELECT DISTINCT + + tab1.col2 FROM tab1, tab0, tab2 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL - tab0.col0 * col1 + col1 AS col1 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT ALL col2 * - col0 + 68 AS col0 FROM tab2 ---- -121 -1960 -2934 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8298 SELECT ALL + CAST( NULL AS SIGNED ) * 54 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-8298 SELECT ALL + CAST ( NULL AS INTEGER ) * 54 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor1.col2 - cor0.col1 col0 FROM tab1, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to 721a50c429bcec3b993291890e2e98be query I rowsort SELECT 21 + col2 * + 21 * col2 FROM tab2 ---- 14217 15330 30345 query I rowsort SELECT ALL 42 * - col2 * - col0 AS col2 FROM tab1 AS cor0 ---- 153216 322560 6804 query I rowsort SELECT col1 * - col2 + col0 FROM tab0 cor0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT - col2 * col2 FROM tab1 cor0 ---- -2916 -3249 -9216 query I rowsort SELECT - 12 + + col2 FROM tab0 cor0 ---- -11 21 70 query I rowsort SELECT - col1 * + col2 + + col2 * + col2 FROM tab1 AS cor0 ---- 1512 2679 7968 query I rowsort SELECT DISTINCT - 30 AS col0 FROM tab2 AS cor0 ---- -30 query I rowsort SELECT ALL col0 FROM tab1 WHERE NOT NULL >= + col0 ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL < NULL ---- query I rowsort SELECT - tab0.col2 + tab0.col2 AS col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL tab1.col2 * + col2 - + col2 FROM tab1 ---- 2862 3192 9120 query III rowsort SELECT * FROM tab0 WHERE NULL IN ( + tab0.col0 + col0 + col2 ) ---- query I rowsort SELECT + col1 - - col1 * col0 FROM tab2 ---- 1360 248 4661 query I rowsort SELECT + col2 + col1 AS col2 FROM tab2 WHERE NULL NOT IN ( + col2 / col0 ) ---- query IIIIII rowsort SELECT * FROM tab1, tab2 cor0 WHERE + cor0.col1 <> ( NULL ) ---- query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 IN ( + col0 * - col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT + tab2.col1 FROM tab2 WHERE ( NULL ) > col2 ---- query I rowsort SELECT - tab1.col0 + col1 FROM tab1 ---- -54 -67 23 query I rowsort SELECT col2 * - col1 AS col1 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT col2 + tab2.col0 - tab2.col1 * + tab2.col1 * col2 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL ---- query I rowsort SELECT DISTINCT col0 / + col2 FROM tab2 WHERE ( NULL ) <> NULL ---- query I rowsort SELECT ALL - col0 * - col0 * - col1 + + col1 * + col0 * tab0.col2 AS col1 FROM tab0 ---- -115430 -56693 18576 query I rowsort SELECT DISTINCT - col2 * col2 + col2 - col2 FROM tab0 ---- -1 -1089 -6724 query I rowsort SELECT col1 * col1 * tab2.col0 FROM tab2 ---- 22831 271518 6727 onlyif mysql # use DIV operator for integer division query I rowsort label-8324 SELECT + tab1.col0 DIV col1 + + col1 AS col1 FROM tab1 ---- 16 19 26 skipif mysql # not compatible query I rowsort label-8324 SELECT + tab1.col0 / col1 + + col1 AS col1 FROM tab1 ---- 16 19 26 query I rowsort SELECT + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8326 SELECT - col2 DIV col0 + tab0.col0 FROM tab0 ---- 23 35 89 skipif mysql # not compatible query I rowsort label-8326 SELECT - col2 / col0 + tab0.col0 FROM tab0 ---- 23 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab2.col1 - + col0 col0 FROM tab2 WHERE ( col0 * - tab2.col1 ) <= ( - col0 ) ---- -137 -38 -96 query I rowsort SELECT col2 + col2 * - col0 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT DISTINCT + 68 AS col1 FROM tab2 AS cor0 ---- 68 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * + col2 * col2 + - col2 + col1 * + col1 * col1 col2 FROM tab2 AS cor0 ---- 245237 29423 52363 query I rowsort SELECT + col2 * - col2 + col2 AS col0 FROM tab2 AS cor0 ---- -1406 -650 -702 query I rowsort SELECT - col0 * col1 - ( + col2 + col2 ) * col0 AS col0 FROM tab2 AS cor0 ---- -595 -7347 -8658 onlyif mysql # use DIV operator for integer division query I rowsort label-8333 SELECT - col0 + - cor0.col0 DIV 81 + - cor0.col0 FROM tab2 AS cor0 ---- -14 -156 -158 skipif mysql # not compatible query I rowsort label-8333 SELECT - col0 + - cor0.col0 / 81 + - cor0.col0 FROM tab2 AS cor0 ---- -14 -156 -158 query I rowsort SELECT - cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 query I rowsort SELECT DISTINCT + col2 * - col1 * + col0 AS col1 FROM tab0 cor0 ---- -3395 -664118 -68112 query I rowsort SELECT ALL - 1 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8337 SELECT col2 + + CAST( + cor0.col2 + col2 AS SIGNED ) * col2 col1 FROM tab2 cor0 ---- 1378 1485 2926 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8337 SELECT col2 + + CAST ( + cor0.col2 + col2 AS INTEGER ) * col2 col1 FROM tab2 cor0 ---- 1378 1485 2926 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8338 SELECT + + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8338 SELECT + + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - + col0 * - col1 + col2 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT + col2 + - ( - col2 ) FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT + col2 * 9 + 54 AS col2 FROM tab2 AS cor0 ---- 288 297 396 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * - col0 + + col1 * col1 col1 FROM tab1 AS cor0 ---- -3548 -7511 514 query I rowsort SELECT ALL 32 + - tab1.col2 FROM tab1 ---- -22 -25 -64 query I rowsort SELECT col1 * col0 * + ( - 74 ) AS col1 FROM tab2 ---- -16058 -340548 -99382 query I rowsort SELECT DISTINCT - col1 * tab2.col0 + + col0 * + col1 FROM tab2 ---- 0 query I rowsort SELECT DISTINCT - + ( col1 ) * + col1 AS col0 FROM tab2 AS cor0 ---- -289 -3481 -961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8347 SELECT ALL + + CAST( - col2 AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 skipif mysql # not compatible query I rowsort label-8347 SELECT ALL + + CAST ( - col2 AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # use DIV operator for integer division query I rowsort label-8348 SELECT ALL col2 DIV - col2 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-8348 SELECT ALL col2 / - col2 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT - col1 + + 51 * col2 AS col2 FROM tab2 AS cor0 ---- 1267 1346 1921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8350 SELECT ALL - - CAST( - cor0.col1 AS SIGNED ) + cor0.col0 * col1 FROM tab2 AS cor0 ---- 1326 186 4543 skipif mysql # not compatible query I rowsort label-8350 SELECT ALL - - CAST ( - cor0.col1 AS INTEGER ) + cor0.col0 * col1 FROM tab2 AS cor0 ---- 1326 186 4543 query I rowsort SELECT + ( - ( - col1 ) ) FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT col2 + ( 31 + col0 ) * 30 FROM tab0 ---- 1683 1981 3682 query I rowsort SELECT - 4 FROM tab0, tab1 cor0 ---- 9 values hashing to 5784540a5af6ca2be84399d314acd2fd query I rowsort SELECT + col0 + col1 AS col1 FROM tab0 ---- 110 132 180 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1 ---- 972 values hashing to 5e655b1287771868a8f868574a94d749 onlyif mysql # use DIV operator for integer division query I rowsort label-8356 SELECT ALL + col0 DIV col1 AS col0 FROM tab1 ---- 0 6 6 skipif mysql # not compatible query I rowsort label-8356 SELECT ALL + col0 / col1 AS col0 FROM tab1 ---- 0 6 6 query I rowsort SELECT ALL 64 AS col0 FROM tab2 ---- 64 64 64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 69 * col0 col2 FROM tab0 AS cor0 ---- -1656 -2415 -6141 query I rowsort SELECT DISTINCT - col1 * col1 AS col2 FROM tab1 cor0 ---- -100 -169 -676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( ( col1 ) ) * + 83 col1 FROM tab2 AS cor0 ---- 1411 2573 4897 query I rowsort SELECT ALL 8 * + 66 FROM tab1 AS cor0 ---- 528 528 528 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 18 col2 FROM tab2 AS cor0 ---- -18 -18 -18 query I rowsort SELECT + - col1 * + 33 FROM tab1 AS cor0 ---- -330 -429 -858 query I rowsort SELECT - + col0 * col1 * col1 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT DISTINCT + 92 * col2 + - col1 FROM tab0 AS cor0 ---- -5 2950 7453 query I rowsort SELECT + ( col2 ) + - tab0.col2 * + col2 * + col2 FROM tab0 ---- -35904 -551286 0 query I rowsort SELECT - ( + col2 ) + - col1 FROM tab1 ---- -109 -67 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( - col1 ) col1 FROM tab0 ---- -86 -91 -97 query I rowsort SELECT - - col2 * + col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL + cor0.col2 * col2 * col2 - col1 * col1 FROM tab0 AS cor0 ---- -9408 28541 543087 onlyif mysql # use DIV operator for integer division query I rowsort label-8371 SELECT DISTINCT + ( - col2 ) DIV col2 + + col2 col2 FROM tab0 cor0 ---- 0 32 81 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8371 SELECT DISTINCT + ( - col2 ) / col2 + + col2 col2 FROM tab0 cor0 ---- 0 32 81 query I rowsort SELECT ALL - ( tab1.col1 ) AS col1 FROM tab1 ---- -10 -13 -26 query I rowsort SELECT DISTINCT + 64 FROM tab2, tab0 AS cor0 ---- 64 query I rowsort SELECT DISTINCT + 32 FROM tab1 ---- 32 query I rowsort SELECT ALL cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 onlyif mysql # use DIV operator for integer division query I rowsort label-8376 SELECT - - cor0.col1 * col1 DIV - col2 AS col0 FROM tab0 AS cor0 ---- -100 -224 -9409 skipif mysql # not compatible query I rowsort label-8376 SELECT - - cor0.col1 * col1 / - col2 AS col0 FROM tab0 AS cor0 ---- -100 -224 -9409 query I rowsort SELECT 35 * - col2 FROM tab0 AS cor0 ---- -1155 -2870 -35 query I rowsort SELECT ALL - col1 + - cor0.col0 * + col2 FROM tab1 AS cor0 ---- -188 -3658 -7693 query I rowsort SELECT - - col1 * + col1 * + cor0.col2 + - col0 * col2 FROM tab1 AS cor0 ---- 2052 36342 8544 query I rowsort SELECT DISTINCT - col2 * - 77 + + col2 AS col2 FROM tab2 AS cor0 ---- 2028 2106 2964 query I rowsort SELECT ALL - col2 + - col2 - col0 FROM tab0 AS cor0 ---- -253 -37 -90 query I rowsort SELECT DISTINCT + col0 + 35 FROM tab0 AS cor0 ---- 124 59 70 query I rowsort SELECT + - col2 * cor0.col0 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL 94 FROM tab1, tab1 AS cor0 ---- 9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24 query I rowsort SELECT ALL - cor0.col2 FROM tab2, tab1 cor0 ---- 9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba query I rowsort SELECT ALL + - col2 * - ( col0 ) AS col0 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT ALL 13 AS col0 FROM tab2 ---- 13 13 13 onlyif mysql # use DIV operator for integer division query I rowsort label-8388 SELECT + 80 DIV 5 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 skipif mysql # not compatible query I rowsort label-8388 SELECT + 80 / 5 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT - cor1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT - - ( 25 ) * col2 AS col0 FROM tab1 AS cor0 ---- 1350 1425 2400 query I rowsort SELECT ALL - 76 FROM tab2, tab0 AS cor0 ---- 9 values hashing to f8b6589bc7503fc720ca5430e3569317 query I rowsort SELECT col1 * 4 AS col0 FROM tab1 ---- 104 40 52 query I rowsort SELECT ALL - 42 + - col2 FROM tab1 AS cor0 ---- -138 -96 -99 query I rowsort SELECT - - 95 * 31 AS col0 FROM tab1 cor0 ---- 2945 2945 2945 query I rowsort SELECT ALL tab0.col2 + - col2 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col1 * + ( col2 ) + col0 * col0 + col0 AS col0 FROM tab0 ---- -2238 1163 548 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8397 SELECT ALL - col1 + - CAST( ( col2 ) AS SIGNED ) AS col1 FROM tab1 ---- -109 -67 -80 skipif mysql # not compatible query I rowsort label-8397 SELECT ALL - col1 + - CAST ( ( col2 ) AS INTEGER ) AS col1 FROM tab1 ---- -109 -67 -80 query I rowsort SELECT DISTINCT - col2 - tab0.col2 FROM tab0 ---- -164 -2 -66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col2 + + 62 col1 FROM tab0 ---- 128 226 64 query I rowsort SELECT col0 + col1 - - col0 AS col2 FROM tab2 ---- 175 215 45 query I rowsort SELECT DISTINCT + col2 + col0 * + col1 + ( + col0 ) FROM tab0 ---- 2121 3431 8270 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * - cor0.col2 + + col0 col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8403 SELECT DISTINCT CAST( NULL AS SIGNED ) + 92 AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8403 SELECT DISTINCT CAST ( NULL AS INTEGER ) + 92 AS col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL + 73 * - col0 AS col1 FROM tab2 cor0 ---- -511 -5694 -5767 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 972 values hashing to 4c46de5c1773124597e14f3b372fc4ea query I rowsort SELECT col0 + tab0.col1 + + col1 AS col0 FROM tab0 ---- 196 229 271 query I rowsort SELECT ALL - + 87 FROM tab2 AS cor0 ---- -87 -87 -87 query I rowsort SELECT - + ( col0 ) + - col1 AS col1 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT DISTINCT + + 46 + + col0 AS col2 FROM tab1 AS cor0 ---- 110 126 49 query I rowsort SELECT + 72 + + col2 * col1 AS col1 FROM tab2 cor0 ---- 1606 718 909 query I rowsort SELECT - ( + col2 ) + col2 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT cor0.col1 + 8 * + col2 AS col2 FROM tab2 AS cor0 ---- 247 267 321 query I rowsort SELECT DISTINCT - 89 AS col0 FROM tab2 AS cor0 ---- -89 skipif mysql # not compatible query I rowsort SELECT + col1 * + cor0.col1 * col0 + CAST ( 54 AS REAL ) AS col1 FROM tab2 AS cor0 ---- 22885 271572 6781 onlyif mysql # use DIV operator for integer division query I rowsort label-8415 SELECT ALL - col0 DIV col2 AS col2 FROM tab0 AS cor0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-8415 SELECT ALL - col0 / col2 AS col2 FROM tab0 AS cor0 ---- -1 -35 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8416 SELECT + - CAST( + col0 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 skipif mysql # not compatible query I rowsort label-8416 SELECT + - CAST ( + col0 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT - - col1 + col1 AS col2 FROM tab1 cor0 ---- 20 26 52 query I rowsort SELECT - col2 + - ( - col0 + col2 ) FROM tab2 AS cor0 ---- -47 26 3 query I rowsort SELECT ALL 50 AS col0 FROM tab2 AS cor0 ---- 50 50 50 query I rowsort SELECT - col0 * col1 + - col1 * ( 42 ) * - col1 FROM tab0 AS cor0 ---- 308568 339703 391783 query I rowsort SELECT - 8 * col0 FROM tab1 AS cor0 ---- -24 -512 -640 query I rowsort SELECT ALL - 98 - col1 AS col1 FROM tab0 cor0 ---- -184 -189 -195 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8423 SELECT ALL - CAST( + 24 AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 797d0f7c145f8ac623924448c714bbcc skipif mysql # not compatible query I rowsort label-8423 SELECT ALL - CAST ( + 24 AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 797d0f7c145f8ac623924448c714bbcc query I rowsort SELECT DISTINCT + - cor0.col2 + + 39 FROM tab1 AS cor0 ---- -15 -18 -57 query I rowsort SELECT - cor0.col1 - 67 * col2 * col1 FROM tab1 cor0 ---- -38200 -83629 -94094 query I rowsort SELECT DISTINCT col0 + - col1 - col0 AS col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT + col1 + 63 * - col1 FROM tab2 AS cor0 ---- -1054 -1922 -3658 query I rowsort SELECT + col1 + + col0 * - 46 FROM tab1 AS cor0 ---- -112 -2934 -3667 query I rowsort SELECT ALL - - col2 + cor0.col2 FROM tab2 AS cor0 ---- 52 54 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8430 SELECT ALL - col1 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8430 SELECT ALL - col1 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8431 SELECT + col2 + col0 DIV + col2 FROM tab1 AS cor0 ---- 54 58 96 skipif mysql # not compatible query I rowsort label-8431 SELECT + col2 + col0 / + col2 FROM tab1 AS cor0 ---- 54 58 96 query I rowsort SELECT DISTINCT + col2 + - col1 * - col0 AS col1 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT - cor0.col2 + cor0.col2 * - col0 FROM tab1 cor0 ---- -216 -3705 -7776 query I rowsort SELECT ALL col0 + 87 AS col2 FROM tab0 AS cor0 ---- 111 122 176 query I rowsort SELECT DISTINCT + col1 + col1 * + ( col1 ) AS col2 FROM tab2 cor0 ---- 306 3540 992 query I rowsort SELECT - cor0.col1 * - col0 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL - cor0.col1 * + ( col1 ) + - col0 AS col2 FROM tab0 cor0 ---- -7420 -8370 -9444 onlyif mysql # use DIV operator for integer division query I rowsort label-8438 SELECT DISTINCT - - col0 - + col2 DIV + 85 FROM tab0 cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-8438 SELECT DISTINCT - - col0 - + col2 / + 85 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT - col0 * - ( 3 + + col1 ) * ( - col1 ) AS col1 FROM tab0 AS cor0 ---- -183696 -339500 -761306 onlyif mysql # use DIV operator for integer division query I rowsort label-8440 SELECT DISTINCT - + col0 * col0 + ( col2 ) DIV - 79 - cor0.col0 * col0 FROM tab1 AS cor0 ---- -12801 -18 -8192 skipif mysql # not compatible query I rowsort label-8440 SELECT DISTINCT - + col0 * col0 + ( col2 ) / - 79 - cor0.col0 * col0 FROM tab1 AS cor0 ---- -12801 -18 -8192 query I rowsort SELECT col2 + 7 * - 15 FROM tab0 AS cor0 ---- -104 -23 -72 query I rowsort SELECT ALL - + col1 * ( - ( cor0.col2 ) ) FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT - + col1 * + 77 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -6598 -6918 -7434 query I rowsort SELECT col0 + ( + col1 ) FROM tab2 cor0 ---- 137 38 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col1 + 54 col2 FROM tab0 cor0 ---- 140 145 151 query I rowsort SELECT ALL + col2 + + 43 - cor0.col0 AS col1 FROM tab0 AS cor0 ---- 36 52 9 query I rowsort SELECT ALL - col1 + 92 FROM tab2 AS cor0 ---- 33 61 75 query I rowsort SELECT - - col0 * + col0 * col2 - ( col2 + col1 ) FROM tab1 AS cor0 ---- 233405 406 614291 query I rowsort SELECT DISTINCT - col2 * - 74 + - col2 FROM tab0 cor0 ---- 2409 5986 73 query I rowsort SELECT ALL - col2 - + col0 AS col2 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT DISTINCT + col0 - 31 FROM tab2 ---- -24 47 48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 31 col1 FROM tab1, tab1 cor0 ---- 9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa query I rowsort SELECT 6 + col2 FROM tab1 cor0 ---- 102 60 63 query I rowsort SELECT DISTINCT col2 + - col2 * col2 FROM tab0 AS cor0 ---- -1056 -6642 0 query I rowsort SELECT ALL - 41 * col0 + - col2 * + col2 FROM tab2 ---- -1016 -3874 -4683 query I rowsort SELECT ALL - 99 FROM tab2 AS cor0 ---- -99 -99 -99 query I rowsort SELECT DISTINCT - + 84 * - col1 FROM tab2 AS cor0 ---- 1428 2604 4956 query I rowsort SELECT ALL 39 + 74 FROM tab2 ---- 113 113 113 query I rowsort SELECT ALL 4 * + col2 FROM tab2 ---- 104 108 152 query I rowsort SELECT ALL ( col1 ) AS col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT ALL - 41 * + col1 FROM tab2 ---- -1271 -2419 -697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 col1 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT ALL cor1.col2 * - 63 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to daac78d45a76665211a93fceb6eff9b5 query I rowsort SELECT col1 * col2 * 36 + tab0.col2 AS col2 FROM tab0 ---- 102201 268714 3493 query I rowsort SELECT - 52 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 9500afe5646d620d5e8943351a29d082 query I rowsort SELECT cor0.col1 FROM tab0, tab1 cor0, tab1, tab2 cor1 ---- 81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c query I rowsort SELECT ALL - ( + 16 ) + col2 AS col0 FROM tab1 AS cor0 ---- 38 41 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8468 SELECT ALL ( col2 ) + - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8468 SELECT ALL ( col2 ) + - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - 49 AS col1 FROM tab0 AS cor0 ---- -49 -49 -49 query I rowsort SELECT ALL - col0 * ( col0 ) + + 42 AS col2 FROM tab1 AS cor0 ---- -4054 -6358 33 query I rowsort SELECT - cor0.col0 AS col2 FROM tab0 cor0 ---- -24 -35 -89 query I rowsort SELECT ALL 87 * - col0 AS col1 FROM tab0 ---- -2088 -3045 -7743 query I rowsort SELECT cor1.col2 FROM tab1, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT - + cor0.col1 * col1 AS col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT tab1.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT DISTINCT - - col1 + 77 FROM tab0 cor0 ---- 163 168 174 query I rowsort SELECT ALL - col0 * ( - col0 ) FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT ALL - col2 * - 6 AS col0 FROM tab1 cor0 ---- 324 342 576 query I rowsort SELECT + col2 + - col2 * - 98 AS col2 FROM tab1 ---- 5346 5643 9504 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8480 SELECT + col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8480 SELECT + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT + cor1.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT col2 * 95 FROM tab0 AS cor0 ---- 3135 7790 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * + 91 col2 FROM tab1 AS cor0 ---- 273 5824 7280 query I rowsort SELECT - ( 39 ) + + col0 FROM tab1 AS cor0 ---- -36 25 41 query I rowsort SELECT ( cor0.col1 ) * col1 AS col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT - col2 + - cor0.col0 * - col2 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT 18 * 97 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 24e4a60b7f5c98cdc481a7fe283d722f query I rowsort SELECT ALL ( col2 ) + - col2 * ( 53 ) FROM tab0 ---- -1716 -4264 -52 onlyif mysql # use DIV operator for integer division query I rowsort label-8489 SELECT - 11 DIV cor0.col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 1313fe5a78d4cb52a368eb751ada9cfa skipif mysql # not compatible query I rowsort label-8489 SELECT - 11 / cor0.col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 1313fe5a78d4cb52a368eb751ada9cfa onlyif mysql # use DIV operator for integer division query I rowsort label-8490 SELECT + - cor0.col2 DIV - col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8490 SELECT + - cor0.col2 / - col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col0 + 37 AS col0 FROM tab0 AS cor0 ---- -52 13 2 query I rowsort SELECT DISTINCT 48 FROM tab1 AS cor0 ---- 48 query I rowsort SELECT DISTINCT - - 5 * + col1 * col2 AS col2 FROM tab1 AS cor0 ---- 2850 6240 7020 query I rowsort SELECT ALL + col1 - - col0 AS col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT - col0 * col0 + + 16 AS col0 FROM tab0 AS cor0 ---- -1209 -560 -7905 query I rowsort SELECT 59 FROM tab1 ---- 59 59 59 query I rowsort SELECT ALL - 24 + - tab2.col2 * col1 AS col2 FROM tab2 ---- -1558 -670 -861 query I rowsort SELECT DISTINCT 97 AS col2 FROM tab0, tab0 AS cor0 ---- 97 query I rowsort SELECT DISTINCT - 98 AS col1 FROM tab2 ---- -98 query I rowsort SELECT - col0 + col1 + col2 * + col2 AS col2 FROM tab1 cor0 ---- 2939 3195 9149 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8501 SELECT DISTINCT + + col0 + - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8501 SELECT DISTINCT + + col0 + - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL col1 * + tab1.col1 + - tab1.col2 * col2 AS col0 FROM tab1 ---- -2240 -3149 -9047 onlyif mysql # use DIV operator for integer division query I rowsort label-8503 SELECT cor0.col1 DIV + cor0.col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-8503 SELECT cor0.col1 / + cor0.col2 FROM tab0 AS cor0 ---- 1 2 97 onlyif mysql # use DIV operator for integer division query I rowsort label-8504 SELECT - col1 DIV - ( col0 ) AS col0 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-8504 SELECT - col1 / - ( col0 ) AS col0 FROM tab2 AS cor0 ---- 0 0 4 query I rowsort SELECT col0 * + col1 + - col2 - + col1 FROM tab1 cor0 ---- -2 573 931 query I rowsort SELECT - col1 + - 69 AS col1 FROM tab2 AS cor0 ---- -100 -128 -86 query I rowsort SELECT - tab1.col1 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to b234798d4706314ba14eaad539d0aa88 query I rowsort SELECT DISTINCT + + 77 FROM tab1, tab2, tab2 AS cor0 ---- 77 query I rowsort SELECT ALL ( - col2 * 47 ) + + 63 AS col1 FROM tab2 ---- -1159 -1206 -1723 query I rowsort SELECT + col2 * + 86 FROM tab0 ---- 2838 7052 86 query I rowsort SELECT col2 * ( col1 ) AS col0 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT - - col0 * - col2 + ( col2 ) FROM tab0 AS cor0 ---- -34 -7216 -759 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * col0 col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-8514 SELECT DISTINCT + cor0.col2 + col2 DIV ( col0 ) AS col1 FROM tab1 AS cor0 ---- 57 72 97 skipif mysql # not compatible query I rowsort label-8514 SELECT DISTINCT + cor0.col2 + col2 / ( col0 ) AS col1 FROM tab1 AS cor0 ---- 57 72 97 onlyif mysql # use DIV operator for integer division query I rowsort label-8515 SELECT - 95 DIV col1 AS col1 FROM tab2 AS cor0 ---- -1 -3 -5 skipif mysql # not compatible query I rowsort label-8515 SELECT - 95 / col1 AS col1 FROM tab2 AS cor0 ---- -1 -3 -5 query I rowsort SELECT DISTINCT 81 * - col2 AS col1 FROM tab2 AS cor0 ---- -2106 -2187 -3078 query I rowsort SELECT ALL - + 69 + col1 * - ( + col0 ) FROM tab1 AS cor0 ---- -1109 -147 -709 query I rowsort SELECT - col0 * + col2 + 66 FROM tab2 AS cor0 ---- -123 -1962 -2936 query I rowsort SELECT DISTINCT + col0 * col2 + + ( 70 ) AS col2 FROM tab2 cor0 ---- 2098 259 3072 query I rowsort SELECT + - 18 + - col0 AS col2 FROM tab1 AS cor0 ---- -21 -82 -98 onlyif mysql # use DIV operator for integer division query I rowsort label-8521 SELECT - col1 * col1 DIV col0 FROM tab0 AS cor0 ---- -268 -308 -93 skipif mysql # not compatible query I rowsort label-8521 SELECT - col1 * col1 / col0 FROM tab0 AS cor0 ---- -268 -308 -93 query I rowsort SELECT ALL + - 20 AS col2 FROM tab2 AS cor0 ---- -20 -20 -20 query I rowsort SELECT ALL ( - col1 ) AS col0 FROM tab2 cor0 ---- -17 -31 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-8524 SELECT DISTINCT - ( 55 ) DIV + col0 FROM tab2 ---- -7 0 skipif mysql # not compatible query I rowsort label-8524 SELECT DISTINCT - ( 55 ) / + col0 FROM tab2 ---- -7 0 query I rowsort SELECT + - cor0.col1 FROM tab1, tab2, tab0 cor0 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT + ( - col0 ) + - tab0.col0 * 21 AS col2 FROM tab0 ---- -1958 -528 -770 query I rowsort SELECT ALL - - cor0.col1 FROM tab0, tab1, tab2 cor0 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 30 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb query I rowsort SELECT + - 9 + + col0 FROM tab2 cor0 ---- -2 69 70 query I rowsort SELECT + 24 * col0 * + cor0.col2 + + col0 - - col1 AS col2 FROM tab0 AS cor0 ---- 175332 19118 972 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * tab1.col2 col1 FROM tab1 ---- 1248 1404 570 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 68 * - col0 + col0 col0 FROM tab1 AS cor0 ---- -201 -4288 -5360 query I rowsort SELECT - col2 * ( + 76 ) + col1 FROM tab0 AS cor0 ---- -2422 -6141 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 + + col1 * - col2 * - col1 col2 FROM tab1 cor0 ---- 16128 36450 5643 query I rowsort SELECT - col0 + - 74 FROM tab1 ---- -138 -154 -77 query I rowsort SELECT DISTINCT tab1.col1 + 91 FROM tab1 ---- 101 104 117 query I rowsort SELECT - cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 query I rowsort SELECT + col1 + - 33 AS col0 FROM tab0 AS cor0 ---- 53 58 64 query I rowsort SELECT - ( + col0 * col0 ) AS col2 FROM tab1 ---- -4096 -6400 -9 query I rowsort SELECT - col1 + - 59 FROM tab1 AS cor0 ---- -69 -72 -85 query I rowsort SELECT DISTINCT - 34 + cor0.col0 AS col2 FROM tab1 AS cor0 ---- -31 30 46 query I rowsort SELECT ALL col1 + - 22 AS col1 FROM tab1 AS cor0 ---- -12 -9 4 onlyif mysql # use DIV operator for integer division query I rowsort label-8543 SELECT + + ( - col0 ) DIV + col0 AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-8543 SELECT + + ( - col0 ) / + col0 AS col1 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL + 37 + col2 AS col2 FROM tab2 AS cor0 ---- 63 64 75 onlyif mysql # use DIV operator for integer division query I rowsort label-8545 SELECT ALL - 38 DIV cor0.col0 col0 FROM tab0 AS cor0 ---- -1 -1 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8545 SELECT ALL - 38 / cor0.col0 col0 FROM tab0 AS cor0 ---- -1 -1 0 query I rowsort SELECT ( + col2 ) AS col0 FROM tab1 cor0 ---- 54 57 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8547 SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 * - col1 / 58 AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8547 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 * - col1 / 58 AS col1 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 45 * tab0.col2 col1 FROM tab0 ---- 1485 3690 45 query I rowsort SELECT + 95 AS col2 FROM tab0 ---- 95 95 95 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2, tab0 AS cor1 ---- 3645 values hashing to 5acb69cde71208fe580e10b8b669428e query I rowsort SELECT DISTINCT - cor1.col1 + + 25 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 ---- -61 -66 -72 query I rowsort SELECT ALL + + cor0.col1 + - cor0.col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col1 * 23 FROM tab1 cor0 ---- 230 299 598 query I rowsort SELECT DISTINCT - col2 * col2 + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -1065 -6635 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 - col1 col0 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT - + ( 89 ) AS col0 FROM tab2 cor0 ---- -89 -89 -89 query I rowsort SELECT ALL - 6 - col2 FROM tab0 cor0 ---- -39 -7 -88 query I rowsort SELECT DISTINCT - - col2 * 49 FROM tab1 AS cor0 ---- 2646 2793 4704 query I rowsort SELECT col1 * ( - col0 ) FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col0 + + 90 col2 FROM tab2 AS cor0 ---- 11 12 83 query I rowsort SELECT DISTINCT - 87 * + col2 + col2 * col1 FROM tab1 AS cor0 ---- -3294 -4389 -7104 query I rowsort SELECT DISTINCT 95 * cor0.col0 + + col0 AS col0 FROM tab2 AS cor0 ---- 672 7488 7584 query I rowsort SELECT ALL - ( + cor0.col1 ) * - col2 AS col1 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT - col0 * 56 FROM tab1 AS cor0 ---- -168 -3584 -4480 query I rowsort SELECT ALL + + ( col2 ) * + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT - - cor0.col2 * 70 + - col0 AS col0 FROM tab0 AS cor0 ---- 2286 35 5651 query I rowsort SELECT ALL + 61 * + cor0.col1 + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 5270 5640 5952 query I rowsort SELECT - 14 FROM tab0 AS cor0 ---- -14 -14 -14 query I rowsort SELECT + cor0.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT DISTINCT + - ( col2 ) AS col1 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT + col1 + - col1 + - ( - col1 ) AS col1 FROM tab2 AS cor0 ---- 17 31 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8572 SELECT ALL ( + col0 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8572 SELECT ALL ( + col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + - col2 col0 FROM tab0 cor0 ---- -164 -2 -66 query I rowsort SELECT ALL col2 * + col0 + col1 * - 63 + + col1 FROM tab0 AS cor0 ---- -4540 -5979 1656 query I rowsort SELECT - 27 AS col0 FROM tab1 ---- -27 -27 -27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( cor0.col1 ) + col2 col0 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT + col0 + + 69 FROM tab0 AS cor0 ---- 104 158 93 query I rowsort SELECT ALL + - col1 * - ( col0 * col2 + col0 ) AS col2 FROM tab2 AS cor0 ---- 124254 52377 6076 query I rowsort SELECT + col0 + - ( tab0.col2 ) FROM tab0 ---- -9 34 7 query I rowsort SELECT DISTINCT + cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 17 31 59 query I rowsort SELECT DISTINCT - col2 * 6 * - ( cor0.col1 ) AS col1 FROM tab0 AS cor0 ---- 17028 44772 582 query I rowsort SELECT ALL - col1 * - ( - 93 ) FROM tab2 AS cor0 ---- -1581 -2883 -5487 onlyif mysql # use DIV operator for integer division query I rowsort label-8583 SELECT DISTINCT - col0 DIV col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-8583 SELECT DISTINCT - col0 / col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT col0 - col2 AS col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT ALL - col2 * col0 + col2 - cor0.col1 * cor0.col0 AS col0 FROM tab0 cor0 ---- -15315 -2823 -3429 query I rowsort SELECT ALL + col2 * - col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT - 90 + cor0.col2 * + col1 FROM tab0 AS cor0 ---- 2748 7 7372 query I rowsort SELECT - tab2.col2 - 50 AS col1 FROM tab2 ---- -76 -77 -88 query I rowsort SELECT ALL col2 + col1 + col2 FROM tab0 AS cor0 ---- 152 255 99 query I rowsort SELECT ALL - - col0 - - 91 AS col0 FROM tab0 cor0 ---- 115 126 180 query I rowsort SELECT DISTINCT - col1 * + 90 FROM tab0 cor0 ---- -7740 -8190 -8730 query I rowsort SELECT + 78 * + col1 + + col2 FROM tab0 AS cor0 ---- 6741 7180 7567 query I rowsort SELECT ALL - col0 + + col0 AS col1 FROM tab2 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + - col2 col2 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT DISTINCT 4 + - 21 AS col0 FROM tab0 AS cor0 ---- -17 skipif mysql # not compatible query I rowsort SELECT CAST ( + col0 AS REAL ) FROM tab1 cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-8597 SELECT ALL - tab0.col1 + 65 DIV 39 AS col2 FROM tab0 ---- -85 -90 -96 skipif mysql # not compatible query I rowsort label-8597 SELECT ALL - tab0.col1 + 65 / 39 AS col2 FROM tab0 ---- -85 -90 -96 query I rowsort SELECT DISTINCT + col0 + tab1.col1 * - col1 FROM tab1 ---- -36 -673 -89 query I rowsort SELECT ALL col1 + ( col0 ) FROM tab2 ---- 137 38 96 query I rowsort SELECT + 36 FROM tab2, tab2 AS cor0 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 onlyif mysql # use DIV operator for integer division query I rowsort label-8601 SELECT ALL col1 + col1 * col2 DIV col1 AS col1 FROM tab2 ---- 55 58 85 skipif mysql # not compatible query I rowsort label-8601 SELECT ALL col1 + col1 * col2 / col1 AS col1 FROM tab2 ---- 55 58 85 query I rowsort SELECT + col1 + 78 * - col0 FROM tab1 AS cor0 ---- -208 -4982 -6227 query I rowsort SELECT 6 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 5d1cb90ed58fa7573895d2f95b211821 query I rowsort SELECT DISTINCT 82 FROM tab2, tab0 AS cor0 ---- 82 query I rowsort SELECT ALL + 17 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 43298e43365fccb5146ea32003753c92 query I rowsort SELECT - 22 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to fae46f8148b02964f7145eb6ed5819f9 query I rowsort SELECT DISTINCT + col2 * 46 FROM tab2 AS cor0 ---- 1196 1242 1748 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 * col1 * - ( col0 * + cor0.col2 ) col1 FROM tab2 AS cor0 ---- -158193 -1939292 -3110952 query I rowsort SELECT ALL - col0 + ( + tab2.col1 ) AS col0 FROM tab2 ---- -19 -62 24 query I rowsort SELECT - cor0.col2 + tab2.col1 * + 67 * + 65 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 2235a494f42d0154e97baf7debd67811 query I rowsort SELECT col1 + + 14 * + col2 AS col0 FROM tab1 ---- 1357 782 808 onlyif mysql # use DIV operator for integer division query I rowsort label-8612 SELECT ALL tab0.col2 * + ( + col0 ) * col0 + - col2 DIV col0 AS col1 FROM tab0 ---- 1225 19007 649522 skipif mysql # not compatible query I rowsort label-8612 SELECT ALL tab0.col2 * + ( + col0 ) * col0 + - col2 / col0 AS col1 FROM tab0 ---- 1225 19007 649522 query I rowsort SELECT 16 + - col2 + col1 * - col2 AS col0 FROM tab1 ---- -1328 -1442 -611 query I rowsort SELECT - cor0.col2 * ( - cor0.col2 ) - ( - cor0.col1 ) FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT ALL - - col2 * - ( + col1 ) + + col1 * col0 AS col0 FROM tab2 AS cor0 ---- -620 3068 697 query I rowsort SELECT DISTINCT - col2 * col0 + col0 AS col0 FROM tab1 cor0 ---- -159 -3584 -7600 query I rowsort SELECT - ( - col2 ) * - col0 + col1 AS col1 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT DISTINCT - - ( 80 ) * col2 + ( + col0 ) * - col1 FROM tab1 AS cor0 ---- 3920 4242 6640 query I rowsort SELECT + 59 + + col2 * col2 AS col0 FROM tab0 AS cor0 ---- 1148 60 6783 query I rowsort SELECT ALL - ( tab0.col0 ) AS col1 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT ALL + col0 * col1 + + col1 + col0 * + col2 FROM tab0 cor0 ---- 15488 2942 3527 query I rowsort SELECT DISTINCT + 93 * col2 + - cor0.col2 * col0 FROM tab2 AS cor0 ---- 2322 390 532 onlyif mysql # use DIV operator for integer division query I rowsort label-8623 SELECT ALL - + col1 + + col2 DIV + col0 + 35 FROM tab1 AS cor0 ---- 23 25 27 skipif mysql # not compatible query I rowsort label-8623 SELECT ALL - + col1 + + col2 / + col0 + 35 FROM tab1 AS cor0 ---- 23 25 27 query I rowsort SELECT 18 AS col0 FROM tab0 AS cor0 ---- 18 18 18 query I rowsort SELECT DISTINCT - 28 * col2 * 50 - col1 * col1 FROM tab1 AS cor0 ---- -134569 -76276 -79900 query I rowsort SELECT - 4 * - 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 348e454c4ccf5cb469ff70045e471d7d query I rowsort SELECT ALL - - 55 * col1 + 58 AS col0 FROM tab0 cor0 ---- 4788 5063 5393 query I rowsort SELECT ALL col2 + + cor0.col0 * col0 AS col0 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT ALL - col2 * - col0 AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT - col1 + col2 * col0 AS col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT DISTINCT - 28 * col1 + col2 AS col2 FROM tab2 ---- -1626 -438 -841 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + - col2 col0 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT + 54 + + col0 AS col1 FROM tab2 AS cor0 ---- 132 133 61 query I rowsort SELECT 76 * col1 FROM tab1 AS cor0 ---- 1976 760 988 query I rowsort SELECT DISTINCT tab2.col0 * - col1 * + 46 - + col0 FROM tab2 ---- -211770 -61857 -9989 query I rowsort SELECT DISTINCT - 33 * tab1.col2 AS col1 FROM tab1, tab2, tab2 AS cor0 ---- -1782 -1881 -3168 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * col0 col2 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT - 68 AS col1 FROM tab0 ---- -68 -68 -68 query I rowsort SELECT col2 * - col2 * + 65 FROM tab1 ---- -189540 -211185 -599040 query I rowsort SELECT DISTINCT 60 * tab1.col0 * ( - col1 ) FROM tab1 ---- -38400 -4680 -62400 query I rowsort SELECT + col0 * + col1 - - ( 52 * col1 ) FROM tab0 AS cor0 ---- 12831 6536 8439 query I rowsort SELECT + - cor0.col1 * - col1 FROM tab1 cor0 ---- 100 169 676 query I rowsort SELECT ALL + col1 - - ( col0 ) * - col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT ALL + col1 * + ( - col0 * col0 ) AS col1 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT + col0 + 82 FROM tab0 AS cor0 ---- 106 117 171 skipif mysql # not compatible query I rowsort SELECT + + col1 + CAST ( + col0 AS REAL ) * cor0.col2 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT - 57 AS col1 FROM tab1 ---- -57 -57 -57 query I rowsort SELECT ALL - + col1 + ( 81 ) + col0 FROM tab1 AS cor0 ---- 135 148 58 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + col1 * col0 col2 FROM tab0 AS cor0 ---- 2040 3360 8010 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8650 SELECT + CAST( NULL AS SIGNED ) / 91 AS col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8650 SELECT + CAST ( NULL AS INTEGER ) / 91 AS col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 * + cor0.col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT - 38 * col0 * + col0 AS col1 FROM tab1 cor0 ---- -155648 -243200 -342 query I rowsort SELECT - 28 * - 62 AS col0 FROM tab2 AS cor0 ---- 1736 1736 1736 onlyif mysql # use DIV operator for integer division query I rowsort label-8654 SELECT - col0 DIV - col0 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8654 SELECT - col0 / - col0 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT 15 * - col0 AS col2 FROM tab0 AS cor0 ---- -1335 -360 -525 query I rowsort SELECT - - 60 + - col2 * - col2 AS col2 FROM tab2 AS cor0 ---- 1504 736 789 query I rowsort SELECT - col2 * - tab1.col1 * col0 + col0 * col1 AS col1 FROM tab1 ---- 100880 37120 4290 query I rowsort SELECT DISTINCT + 6 + - 15 FROM tab0, tab1 cor0 ---- -9 query I rowsort SELECT + col2 + ( + 25 * col1 ) FROM tab1 ---- 307 421 704 query I rowsort SELECT col0 * + 64 * - col2 AS col0 FROM tab2 AS cor0 ---- -12096 -129792 -192128 query I rowsort SELECT ( - 5 ) * col0 FROM tab0 AS cor0 ---- -120 -175 -445 query I rowsort SELECT DISTINCT 38 * + col0 + + col0 AS col0 FROM tab0 ---- 1365 3471 936 query I rowsort SELECT DISTINCT - ( 60 ) AS col2 FROM tab2 ---- -60 query I rowsort SELECT ( 45 + + col1 ) FROM tab2 ---- 104 62 76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col1 col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT - cor0.col1 AS col2 FROM tab1, tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT - col1 - col2 * col2 FROM tab1 cor0 ---- -2942 -3259 -9229 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col2 col0 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8669 SELECT DISTINCT + col1 DIV col1 + col2 + - col2 AS col1 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-8669 SELECT DISTINCT + col1 / col1 + col2 + - col2 AS col1 FROM tab1 AS cor0 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-8670 SELECT DISTINCT col0 DIV col0 + - col1 AS col0 FROM tab0 AS cor0 ---- -85 -90 -96 skipif mysql # not compatible query I rowsort label-8670 SELECT DISTINCT col0 / col0 + - col1 AS col0 FROM tab0 AS cor0 ---- -85 -90 -96 query I rowsort SELECT DISTINCT + + col2 * + col1 AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL - col1 + col1 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col0 * + col1 AS col0 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT - cor0.col2 * col2 + - col0 AS col0 FROM tab1 cor0 ---- -2919 -3313 -9296 query I rowsort SELECT DISTINCT - - col2 * col0 + + col2 - col1 AS col2 FROM tab1 AS cor0 ---- 190 3695 7763 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE cor0.col0 * + col2 NOT IN ( col0 + + col1 ) OR NULL IN ( col1 * - col0 + col2 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT ALL - col1 + col0 AS col0 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT + col0 + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT ALL + - cor0.col0 + col2 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT - col1 + col1 + col2 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT ALL col0 + col2 * - col1 + - col0 AS col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT col1 * + col0 + tab0.col0 * tab0.col2 FROM tab0 ---- 15397 2856 3430 onlyif mysql # use DIV operator for integer division query I rowsort label-8683 SELECT ALL col0 + + col1 DIV + col1 AS col2 FROM tab1 AS cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-8683 SELECT ALL col0 + + col1 / + col1 AS col2 FROM tab1 AS cor0 ---- 4 65 81 query I rowsort SELECT ALL - - ( + col0 ) + cor0.col1 * - col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT ALL + + col0 * col0 * - col2 FROM tab1 cor0 ---- -233472 -486 -614400 query I rowsort SELECT col0 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT col1 * + col0 + col2 AS col1 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT + 40 FROM tab0 cor0 ---- 40 40 40 query I rowsort SELECT DISTINCT cor0.col1 + - col1 AS col2 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT + + col2 * - col0 + - col2 FROM tab0 AS cor0 ---- -36 -7380 -825 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * - cor0.col1 col0 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT DISTINCT + + col1 * - col0 * col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT 63 * - col1 FROM tab0 ---- -5418 -5733 -6111 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8694 SELECT - CAST( NULL AS SIGNED ) * tab2.col1 AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8694 SELECT - CAST ( NULL AS INTEGER ) * tab2.col1 AS col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + tab0.col1 + 43 * + tab0.col1 AS col1 FROM tab0 ---- 3784 4004 4268 query I rowsort SELECT + col1 * + tab0.col2 * + col1 FROM tab0 ---- 244068 679042 9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8697 SELECT ALL + CAST( - col2 AS SIGNED ) * + tab0.col1 AS col1 FROM tab0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-8697 SELECT ALL + CAST ( - col2 AS INTEGER ) * + tab0.col1 AS col1 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT ALL ( tab0.col0 * col1 ) AS col1 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT 45 * + col0 AS col0 FROM tab2 ---- 315 3510 3555 query I rowsort SELECT ( col0 ) * - col1 FROM tab0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-8701 SELECT DISTINCT - tab2.col1 DIV + col0 + + col2 * col2 + - col0 FROM tab2 ---- 1365 598 718 skipif mysql # not compatible query I rowsort label-8701 SELECT DISTINCT - tab2.col1 / + col0 + + col2 * col2 + - col0 FROM tab2 ---- 1365 598 718 query I rowsort SELECT DISTINCT - ( col2 ) + col1 AS col1 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT col1 + - col1 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 1360 248 4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + + col1 * + col1 + tab2.col2 col1 FROM tab2 ---- 248 3429 981 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-8706 SELECT ALL + col2 + - tab0.col0 * col0 + - col0 DIV - tab0.col1 FROM tab0 ---- -1224 -543 -7839 skipif mysql # not compatible query I rowsort label-8706 SELECT ALL + col2 + - tab0.col0 * col0 + - col0 / - tab0.col1 FROM tab0 ---- -1224 -543 -7839 query I rowsort SELECT ALL col2 * col0 * + col2 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT DISTINCT col1 * + col0 * col0 AS col0 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT col0 - - col0 * col0 AS col0 FROM tab1 ---- 12 4160 6480 query I rowsort SELECT ALL + col1 FROM tab0 WHERE NOT NULL > NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8711 SELECT - col1 DIV tab0.col0 AS col0 FROM tab0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-8711 SELECT - col1 / tab0.col0 AS col0 FROM tab0 ---- -1 -2 -3 query I rowsort SELECT DISTINCT col1 * col0 * - tab1.col0 AS col0 FROM tab1 ---- -234 -40960 -83200 query I rowsort SELECT DISTINCT col0 * + col2 AS col2 FROM tab0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - tab1.col2 * - tab1.col2 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT ALL col0 * + col2 + - col1 * tab1.col2 AS col2 FROM tab1 WHERE NULL = ( col0 ) ---- query I rowsort SELECT DISTINCT - col0 * - col2 AS col2 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT ALL - col1 * - col0 AS col0 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT col0 * col0 * + col0 AS col1 FROM tab2 ---- 343 474552 493039 query I rowsort SELECT ALL col0 / + col2 + + col1 / col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + tab1.col2 - col1 * col1 * + col1 col2 FROM tab1 ---- -16172 -430 -949 query I rowsort SELECT DISTINCT + tab1.col1 * tab1.col1 AS col2 FROM tab1 ---- 100 169 676 query I rowsort SELECT - col1 * col1 + tab1.col0 AS col1 FROM tab1 ---- -36 -673 -89 query I rowsort SELECT - col1 + col0 AS col0 FROM tab0 WHERE NULL > ( col2 ) ---- query I rowsort SELECT + col1 * col0 + tab2.col1 FROM tab2 ---- 1360 248 4661 query III rowsort SELECT ALL * FROM tab0 WHERE NOT col2 * + col0 * col2 BETWEEN ( NULL ) AND NULL ---- query I rowsort SELECT ALL tab0.col2 + + tab0.col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT col0 - tab1.col2 * - col2 FROM tab1 ---- 2919 3313 9296 query I rowsort SELECT - col0 * - col1 + col0 * - col2 FROM tab1 ---- -3008 -6640 -84 query I rowsort SELECT ALL col1 FROM tab0 WHERE NOT - col0 * - col0 IN ( col1 + + col1 ) ---- 86 91 97 query I rowsort SELECT col2 FROM tab1 WHERE col2 IN ( col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8731 SELECT DISTINCT + tab2.col1 + tab2.col0 DIV col1 AS col0 FROM tab2 ---- 21 31 60 skipif mysql # not compatible query I rowsort label-8731 SELECT DISTINCT + tab2.col1 + tab2.col0 / col1 AS col0 FROM tab2 ---- 21 31 60 query I rowsort SELECT DISTINCT - tab0.col2 + - col0 FROM tab0 ---- -171 -36 -57 query I rowsort SELECT DISTINCT tab2.col0 + - tab2.col0 * - col0 AS col1 FROM tab2 ---- 56 6162 6320 query I rowsort SELECT + cor0.col0 FROM tab2, tab1 cor0 CROSS JOIN tab0 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 onlyif mysql # use DIV operator for integer division query I rowsort label-8736 SELECT col0 * col1 DIV col0 FROM tab1 cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-8736 SELECT col0 * col1 / col0 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + - col1 + + cor0.col1 FROM tab0 cor0 ---- 0 query I rowsort SELECT ALL + col2 + col2 + + col2 AS col1 FROM tab2 cor0 ---- 114 78 81 query I rowsort SELECT - col1 * - col0 * - cor0.col2 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT - col0 * cor0.col2 - + col0 AS col1 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT DISTINCT - col2 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT DISTINCT + col2 * + cor0.col0 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT - col2 + + col1 * col0 AS col1 FROM tab1 cor0 ---- 24 583 944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 - - col0 * col1 col2 FROM tab0 ---- 1978 3298 8008 query I rowsort SELECT ALL cor0.col2 * col0 AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT - col2 + + col1 * - col1 AS col2 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT ALL col2 - col0 * - col2 FROM tab1 AS cor0 ---- 216 3705 7776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 33 * col2 + + cor0.col1 col0 FROM tab1 AS cor0 ---- 1808 1891 3181 query I rowsort SELECT - - ( 65 ) AS col0 FROM tab0 AS cor0 ---- 65 65 65 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2 ---- 3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab0 cor0, tab2, tab2 AS cor1 ---- 972 values hashing to 82def1c3361e635dd4cf447edc22edb9 query I rowsort SELECT 1 * + cor0.col0 + + col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + col0 + 10 FROM tab1 AS cor0 ---- 13 74 90 query I rowsort SELECT DISTINCT col2 * + col2 + + col2 * + col2 * ( - 32 ) FROM tab0 ---- -208444 -31 -33759 onlyif mysql # use DIV operator for integer division query I rowsort label-8755 SELECT - 0 + - 39 * col1 DIV - col0 col0 FROM tab1 AS cor0 ---- 338 6 6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8755 SELECT - 0 + - 39 * col1 / - col0 col0 FROM tab1 AS cor0 ---- 338 6 6 onlyif mysql # use DIV operator for integer division query I rowsort label-8756 SELECT - + col1 * 98 * col1 + 46 + col2 DIV col0 FROM tab2 AS cor0 ---- -28276 -341092 -94129 skipif mysql # not compatible query I rowsort label-8756 SELECT - + col1 * 98 * col1 + 46 + col2 / col0 FROM tab2 AS cor0 ---- -28276 -341092 -94129 query I rowsort SELECT 53 * - col0 FROM tab1 ---- -159 -3392 -4240 onlyif mysql # use DIV operator for integer division query I rowsort label-8758 SELECT + col0 DIV + CAST( col2 AS SIGNED ) FROM tab0 cor0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-8758 SELECT + col0 / + CAST ( col2 AS INTEGER ) FROM tab0 cor0 ---- 0 1 35 query I rowsort SELECT DISTINCT 37 FROM tab0, tab0 cor0, tab0 cor1 ---- 37 query I rowsort SELECT + cor0.col2 - - col0 FROM tab0 cor0 ---- 171 36 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * - 29 + col1 * + col1 + 47 col2 FROM tab1 AS cor0 ---- -1506 -2568 -843 query I rowsort SELECT - col2 * - 56 * - cor0.col0 - - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -10577 -113490 -168033 query I rowsort SELECT + 48 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b query I rowsort SELECT ALL + ( col1 + col2 ) FROM tab1 ---- 109 67 80 query I rowsort SELECT ALL col0 * col2 * col0 FROM tab0 ---- 1225 19008 649522 query I rowsort SELECT ALL - cor0.col2 * + 84 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to efc06cec8068c51b0a3a5a0fd82211f0 query I rowsort SELECT ALL - col2 * + ( + 8 ) FROM tab1 ---- -432 -456 -768 query I rowsort SELECT - col2 * + ( ( + col2 ) ) + + col0 + - 19 FROM tab1 ---- -2932 -3204 -9155 query I rowsort SELECT ALL + col2 + + ( 72 ) - col1 FROM tab2 AS cor0 ---- 39 68 93 query I rowsort SELECT ALL + col0 + 77 + + 10 FROM tab0 AS cor0 ---- 111 122 176 query I rowsort SELECT ALL - cor0.col1 + - cor0.col1 + - 15 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1 ---- 27 values hashing to ef32b26b4bc2018ca34a11489f1c956f onlyif mysql # use DIV operator for integer division query I rowsort label-8772 SELECT DISTINCT - - col1 DIV CAST( 16 * + col1 AS SIGNED ) + - 48 AS col2 FROM tab1 AS cor0 ---- -48 skipif mysql # not compatible query I rowsort label-8772 SELECT DISTINCT - - col1 / CAST ( 16 * + col1 AS INTEGER ) + - 48 AS col2 FROM tab1 AS cor0 ---- -48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 * - col1 col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT + - col2 * col0 AS col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 skipif mysql # not compatible query I rowsort SELECT col2 * + CAST ( col2 AS REAL ) + + col1 / col0 AS col1 FROM tab2 ---- 1444 676 733 query I rowsort SELECT col2 * - col1 + + col0 FROM tab0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT + 45 * ( col0 ) + col1 FROM tab1 ---- 161 2890 3613 query I rowsort SELECT - col0 + ( col1 ) AS col0 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT DISTINCT col1 + col2 + col0 FROM tab2 ---- 134 163 65 query I rowsort SELECT DISTINCT + 87 * 86 - col0 * col0 FROM tab2 ---- 1241 1398 7433 onlyif mysql # use DIV operator for integer division query I rowsort label-8781 SELECT - col2 DIV col1 + + tab1.col0 + col2 * col2 FROM tab1 ---- 2917 3308 9289 skipif mysql # not compatible query I rowsort label-8781 SELECT - col2 / col1 + + tab1.col0 + col2 * col2 FROM tab1 ---- 2917 3308 9289 query I rowsort SELECT 50 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 onlyif mysql # use DIV operator for integer division query I rowsort label-8783 SELECT ALL - + col2 DIV - col1 FROM tab2 AS cor0 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-8783 SELECT ALL - + col2 / - col1 FROM tab2 AS cor0 ---- 0 0 2 query I rowsort SELECT DISTINCT + 88 AS col0 FROM tab0 AS cor0 ---- 88 query I rowsort SELECT ( + col2 ) + cor0.col2 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT ALL 18 FROM tab1, tab1 AS cor0 ---- 9 values hashing to b95bafa733666df39c5d3f94760d010f query I rowsort SELECT + 48 AS col0 FROM tab2 ---- 48 48 48 query I rowsort SELECT DISTINCT + 26 + + col2 AS col0 FROM tab0 ---- 108 27 59 query I rowsort SELECT ALL col0 + + col0 * col2 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT - col2 + - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT + cor0.col1 + + col2 * - col2 AS col0 FROM tab1 AS cor0 ---- -2890 -3239 -9203 query I rowsort SELECT + col0 * + col0 + col2 FROM tab0 cor0 ---- 1226 609 8003 query I rowsort SELECT DISTINCT - + col0 - - 90 FROM tab0 AS cor0 ---- 1 55 66 query I rowsort SELECT DISTINCT col2 * - 51 FROM tab0 cor0 ---- -1683 -4182 -51 query I rowsort SELECT ALL - col2 + - ( - col0 ) + + cor0.col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT ALL col2 + + 77 AS col0 FROM tab1 AS cor0 ---- 131 134 173 query I rowsort SELECT - cor0.col2 - 1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 0eba5939df2239d1766e37a497daf90f query I rowsort SELECT - 23 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5 query I rowsort SELECT - tab2.col1 * - tab2.col0 - col0 FROM tab2 ---- 1264 210 4524 query I rowsort SELECT col0 * + col0 + + ( col2 + col2 ) * 22 FROM tab1 ---- 10624 2385 6604 query I rowsort SELECT ALL + + col2 * col1 + + 30 FROM tab0 cor0 ---- 127 2868 7492 query I rowsort SELECT DISTINCT - + 51 + + col1 + + col1 AS col2 FROM tab1 AS cor0 ---- -25 -31 1 query I rowsort SELECT + col0 * cor0.col0 + col0 * - 4 FROM tab2 AS cor0 ---- 21 5772 5925 query I rowsort SELECT ALL - col1 + col2 AS col1 FROM tab1 ---- 28 47 83 query I rowsort SELECT ALL + col0 * col0 + col1 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT DISTINCT - col2 * - cor0.col2 + + 45 FROM tab1 AS cor0 ---- 2961 3294 9261 query I rowsort SELECT DISTINCT + col0 - col1 * + col0 AS col2 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT ALL - - col1 + ( col0 ) * - col2 AS col0 FROM tab2 cor0 ---- -158 -1969 -2985 query I rowsort SELECT DISTINCT col0 + - col2 * col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT ALL - col0 + - col2 * col0 FROM tab2 cor0 ---- -196 -2106 -3081 query I rowsort SELECT + cor0.col1 * - 28 FROM tab1 AS cor0 ---- -280 -364 -728 query I rowsort SELECT DISTINCT + col2 * - 99 FROM tab1 AS cor0 ---- -5346 -5643 -9504 query I rowsort SELECT ALL + - col0 * col1 + + 89 FROM tab1 AS cor0 ---- -551 -951 11 onlyif mysql # use DIV operator for integer division query I rowsort label-8814 SELECT ALL col1 DIV tab0.col0 + 75 AS col1 FROM tab0 ---- 76 77 78 skipif mysql # not compatible query I rowsort label-8814 SELECT ALL col1 / tab0.col0 + 75 AS col1 FROM tab0 ---- 76 77 78 query I rowsort SELECT + + col0 + - ( 22 ) FROM tab0 AS cor0 ---- 13 2 67 query I rowsort SELECT ALL + - cor0.col2 + - col1 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT ALL col2 * 55 + + col0 FROM tab2 AS cor0 ---- 1492 1508 2169 query I rowsort SELECT DISTINCT + cor0.col1 * col0 * + col0 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT ALL + + col2 * col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT col1 * + 57 AS col1 FROM tab0 AS cor0 ---- 4902 5187 5529 query I rowsort SELECT - 79 + + col1 FROM tab0 cor0 ---- 12 18 7 query I rowsort SELECT ALL + 96 + + 71 + col1 AS col0 FROM tab1 AS cor0 ---- 177 180 193 query I rowsort SELECT ALL - col0 - + col0 * col0 AS col1 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT DISTINCT + cor0.col0 * - 46 AS col0 FROM tab2 AS cor0 ---- -322 -3588 -3634 query I rowsort SELECT DISTINCT + cor0.col2 - - col0 AS col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT DISTINCT col1 * 92 FROM tab2 AS cor0 ---- 1564 2852 5428 query I rowsort SELECT + cor0.col1 * col2 - + col0 FROM tab1 AS cor0 ---- 1168 1401 506 onlyif mysql # use DIV operator for integer division query I rowsort label-8828 SELECT ALL + col2 + col0 DIV - col2 + col2 FROM tab0 AS cor0 ---- -33 163 66 skipif mysql # not compatible query I rowsort label-8828 SELECT ALL + col2 + col0 / - col2 + col2 FROM tab0 AS cor0 ---- -33 163 66 query I rowsort SELECT DISTINCT + + col1 * + 95 AS col0 FROM tab1 AS cor0 ---- 1235 2470 950 query I rowsort SELECT col0 * + col2 - col0 * + col0 AS col2 FROM tab0 cor0 ---- -1190 -623 216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 + ( + col0 ) col1 FROM tab1 AS cor0 ---- 121 176 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 56 * cor0.col0 col1 FROM tab0 AS cor0 ---- 1344 1960 4984 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 2 - - col1 * col2 col1 FROM tab1 AS cor0 ---- 1250 1406 572 onlyif mysql # use DIV operator for integer division query I rowsort label-8834 SELECT col0 DIV - col0 - col0 FROM tab1 AS cor0 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-8834 SELECT col0 / - col0 - col0 FROM tab1 AS cor0 ---- -4 -65 -81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8835 SELECT ALL + + CAST( NULL AS SIGNED ) * col1 * + col0 + col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8835 SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 * + col0 + col1 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 7 AS col2 FROM tab0 AS cor0 ---- 7 query I rowsort SELECT DISTINCT - ( col2 ) * col2 + + 98 AS col1 FROM tab2 AS cor0 ---- -1346 -578 -631 query I rowsort SELECT ALL 36 + - col0 AS col2 FROM tab2 AS cor0 ---- -42 -43 29 onlyif mysql # use DIV operator for integer division query I rowsort label-8839 SELECT DISTINCT - - col1 + + cor0.col0 * col2 DIV + cor0.col2 FROM tab0 AS cor0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-8839 SELECT DISTINCT - - col1 + + cor0.col0 * col2 / + cor0.col2 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT DISTINCT + + 91 AS col0 FROM tab1, tab2 AS cor0 ---- 91 query I rowsort SELECT + - 55 + col0 FROM tab1 AS cor0 ---- -52 25 9 query I rowsort SELECT ALL - - col2 * - col1 - + col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 onlyif mysql # use DIV operator for integer division query I rowsort label-8843 SELECT ALL 0 - col2 DIV col1 AS col0 FROM tab2 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-8843 SELECT ALL 0 - col2 / col1 AS col0 FROM tab2 ---- -2 0 0 query I rowsort SELECT ALL + col0 - + col1 FROM tab0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 1 * - col2 col2 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT col1 + col0 + - 46 FROM tab0 AS cor0 ---- 134 64 86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 0 col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT + col0 * col1 + + 28 FROM tab2 AS cor0 ---- 1371 245 4630 onlyif mysql # use DIV operator for integer division query I rowsort label-8849 SELECT DISTINCT + 71 DIV - col0 AS col0 FROM tab2 AS cor0 ---- -10 0 skipif mysql # not compatible query I rowsort label-8849 SELECT DISTINCT + 71 / - col0 AS col0 FROM tab2 AS cor0 ---- -10 0 query I rowsort SELECT DISTINCT - + col0 * col2 AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-8851 SELECT - col2 * col2 * + 57 + - cor0.col0 DIV - col0 col0 FROM tab2 AS cor0 ---- -38531 -41552 -82307 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8851 SELECT - col2 * col2 * + 57 + - cor0.col0 / - col0 col0 FROM tab2 AS cor0 ---- -38531 -41552 -82307 query I rowsort SELECT DISTINCT cor0.col2 * + col1 AS col1 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT + col2 + col1 - - col2 FROM tab1 AS cor0 ---- 124 134 205 query I rowsort SELECT ALL - 92 FROM tab2 AS cor0 ---- -92 -92 -92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8855 SELECT - CAST( + 46 AS SIGNED ) FROM tab0 ---- -46 -46 -46 skipif mysql # not compatible query I rowsort label-8855 SELECT - CAST ( + 46 AS INTEGER ) FROM tab0 ---- -46 -46 -46 query I rowsort SELECT ALL - col2 * col1 + - ( col0 * - col1 ) AS col1 FROM tab1 ---- -1326 -208 70 query I rowsort SELECT ALL + 67 - + col0 AS col1 FROM tab0 cor0 ---- -22 32 43 query I rowsort SELECT + + col1 * cor0.col2 - ( 77 ) AS col0 FROM tab0 AS cor0 ---- 20 2761 7385 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * - col2 col0 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT + tab2.col2 + + col2 AS col0 FROM tab2 ---- 52 54 76 query I rowsort SELECT - ( 35 ) FROM tab1, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 6d967b3bac2e01a0318865f682f9a97b query I rowsort SELECT tab0.col1 + tab0.col1 * col1 FROM tab0 ---- 7482 8372 9506 query I rowsort SELECT + 88 * col2 FROM tab0 ---- 2904 7216 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 10 13 26 query I rowsort SELECT - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f onlyif mysql # use DIV operator for integer division query I rowsort label-8866 SELECT - ( ( col2 ) ) DIV - ( + col0 ) FROM tab2 AS cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-8866 SELECT - ( ( col2 ) ) / - ( + col0 ) FROM tab2 AS cor0 ---- 0 0 3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8867 SELECT + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8867 SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 33 AS col2 FROM tab1, tab0 AS cor0 ---- 33 query I rowsort SELECT tab0.col2 FROM tab0, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query IIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2 ---- 972 values hashing to f8fe28681e8720551e1ec173631fc529 query I rowsort SELECT ALL + 81 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * col1 col0 FROM tab0 ---- 7396 8281 9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8873 SELECT - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8873 SELECT - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT tab0.col0 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT + 47 * 18 FROM tab2, tab0, tab2 cor0 ---- 27 values hashing to 82c644b8fb3396f331f5ed6eb3011bfe query I rowsort SELECT + col1 + + 20 FROM tab2 ---- 37 51 79 query I rowsort SELECT col1 + + col2 * + tab1.col1 FROM tab1 ---- 1261 1430 580 query I rowsort SELECT DISTINCT + ( 69 ) FROM tab2 AS cor0 ---- 69 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8879 SELECT ALL CAST( col2 AS SIGNED ) + cor0.col0 * col1 * col2 AS col0 FROM tab2 cor0 ---- 119678 51072 5886 skipif mysql # not compatible query I rowsort label-8879 SELECT ALL CAST ( col2 AS INTEGER ) + cor0.col0 * col1 * col2 AS col0 FROM tab2 cor0 ---- 119678 51072 5886 query I rowsort SELECT DISTINCT + 26 AS col0 FROM tab0, tab0 AS cor0 ---- 26 query I rowsort SELECT + col0 + - cor0.col0 * col0 AS col2 FROM tab2 AS cor0 ---- -42 -6006 -6162 query I rowsort SELECT ALL - + 61 + 46 AS col2 FROM tab2 cor0 ---- -15 -15 -15 query I rowsort SELECT DISTINCT + cor1.col0 * + 35 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1 ---- 1225 3115 840 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8884 SELECT DISTINCT + + CAST( + 94 AS SIGNED ) + col0 FROM tab0 AS cor0 ---- 118 129 183 skipif mysql # not compatible query I rowsort label-8884 SELECT DISTINCT + + CAST ( + 94 AS INTEGER ) + col0 FROM tab0 AS cor0 ---- 118 129 183 query I rowsort SELECT ALL - 22 FROM tab1, tab0 AS cor0 ---- 9 values hashing to fae46f8148b02964f7145eb6ed5819f9 query I rowsort SELECT - col0 * - cor0.col0 * col1 AS col0 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT ALL - col0 + - 32 AS col2 FROM tab2 AS cor0 ---- -110 -111 -39 query I rowsort SELECT DISTINCT col2 - ( + col1 * cor0.col1 ) AS col0 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT ALL col1 + col0 * + 15 AS col0 FROM tab0 AS cor0 ---- 1426 446 622 query I rowsort SELECT cor0.col2 - + col0 * col1 FROM tab0 cor0 ---- -2031 -3394 -8017 query I rowsort SELECT + 42 + + col1 * col0 FROM tab1 AS cor0 ---- 1082 120 682 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8892 SELECT + CAST( NULL AS SIGNED ) + + ( + col2 * + col0 ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8892 SELECT + CAST ( NULL AS INTEGER ) + + ( + col2 * + col0 ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 onlyif mysql # use DIV operator for integer division query I rowsort label-8894 SELECT DISTINCT - 14 DIV + col0 + + col1 FROM tab0 cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-8894 SELECT DISTINCT - 14 / + col0 + + col1 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT ALL + 2 FROM tab1 cor0 ---- 2 2 2 query I rowsort SELECT col0 * + tab0.col2 * col2 + - col1 * - col2 AS col1 FROM tab0 WHERE NOT NULL IN ( + col0 ) ---- query I rowsort SELECT DISTINCT col2 * col2 * col2 + col1 AS col0 FROM tab0 ---- 36023 551459 98 query I rowsort SELECT tab2.col2 + col2 * col1 FROM tab2 ---- 1560 684 864 query I rowsort SELECT + - col0 + col2 * ( cor0.col1 ) FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT - - 44 * + cor0.col0 FROM tab1 AS cor0 ---- 132 2816 3520 onlyif mysql # use DIV operator for integer division query I rowsort label-8901 SELECT ( + col1 ) DIV + tab0.col2 + 64 FROM tab0 ---- 161 65 66 skipif mysql # not compatible query I rowsort label-8901 SELECT ( + col1 ) / + tab0.col2 + 64 FROM tab0 ---- 161 65 66 query I rowsort SELECT + 75 + - tab1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 4d42af6cfb3415a27e5733263c5c128e query I rowsort SELECT + col0 * - ( ( col1 ) ) FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT cor0.col2 * + ( - col1 ) FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL - cor0.col2 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT ALL cor0.col0 * col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT + + cor0.col2 AS col1 FROM tab1 cor0 ---- 54 57 96 query I rowsort SELECT ALL + tab1.col2 * - col2 FROM tab1 ---- -2916 -3249 -9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 65 col2 FROM tab1, tab1 cor0 ---- 9 values hashing to 8bef2ea1f05f3514633f851312bdd805 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8910 SELECT + tab0.col1 * CAST( NULL AS SIGNED ) / + 18 - col2 / - 29 AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8910 SELECT + tab0.col1 * CAST ( NULL AS INTEGER ) / + 18 - col2 / - 29 AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + col2 - + ( 24 ) AS col1 FROM tab0 ---- -23 58 9 query I rowsort SELECT DISTINCT - ( 25 ) AS col1 FROM tab2 ---- -25 query I rowsort SELECT DISTINCT + 92 FROM tab0 ---- 92 query I rowsort SELECT - ( + col2 ) * - col1 + + col0 AS col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT - 14 AS col2 FROM tab2 ---- -14 -14 -14 query I rowsort SELECT + 49 FROM tab2, tab0 AS cor0 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT + col1 * ( col0 * 77 ) FROM tab1 ---- 49280 6006 80080 onlyif mysql # use DIV operator for integer division query I rowsort label-8918 SELECT DISTINCT - 68 DIV tab2.col1 FROM tab2 ---- -1 -2 -4 skipif mysql # not compatible query I rowsort label-8918 SELECT DISTINCT - 68 / tab2.col1 FROM tab2 ---- -1 -2 -4 query I rowsort SELECT 64 * + tab0.col1 FROM tab0 ---- 5504 5824 6208 query I rowsort SELECT col0 + cor0.col1 * - col0 * col2 + col1 FROM tab2 AS cor0 ---- -119515 -50938 -5821 query I rowsort SELECT + col1 * + col0 AS col0 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 query I rowsort SELECT + ( + col1 ) * col2 * - col2 + - cor0.col0 + 19 AS col2 FROM tab2 AS cor0 ---- -22587 -24608 -39943 query I rowsort SELECT - ( cor0.col2 ) * + col2 FROM tab1 cor0 ---- -2916 -3249 -9216 query I rowsort SELECT + 43 + col2 AS col0 FROM tab1 AS cor0 ---- 100 139 97 query I rowsort SELECT + ( col1 ) + - col0 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT - - col2 * col0 + 84 AS col2 FROM tab0 cor0 ---- 119 7382 876 query I rowsort SELECT - + cor0.col2 + col2 - - col0 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-8929 SELECT ALL ( cor0.col2 ) DIV + col1 AS col0 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-8929 SELECT ALL ( cor0.col2 ) / + col1 AS col0 FROM tab1 AS cor0 ---- 2 5 7 query I rowsort SELECT DISTINCT + ( col1 ) * + col0 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - col1 * 78 AS col0 FROM tab1 cor0 ---- -1014 -2028 -780 query I rowsort SELECT + cor0.col2 - 94 * + col2 AS col2 FROM tab2 cor0 ---- -2418 -2511 -3534 query I rowsort SELECT + ( + col2 ) + col0 * - col0 AS col1 FROM tab1 AS cor0 ---- -4039 -6304 45 onlyif mysql # use DIV operator for integer division query I rowsort label-8934 SELECT + col2 DIV + col0 + col0 * - ( col2 ) FROM tab2 cor0 ---- -186 -2028 -3002 skipif mysql # not compatible query I rowsort label-8934 SELECT + col2 / + col0 + col0 * - ( col2 ) FROM tab2 cor0 ---- -186 -2028 -3002 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2 ---- 972 values hashing to 465d072d2d9eababbfc8e88b82707474 query I rowsort SELECT ALL 75 FROM tab1, tab2 cor0 ---- 9 values hashing to 22042bfd4d787415457a42bb93d48eea query I rowsort SELECT DISTINCT col2 + tab1.col0 * - col0 AS col2 FROM tab1 ---- -4039 -6304 45 query I rowsort SELECT ALL 61 + col0 AS col2 FROM tab2 ---- 139 140 68 query I rowsort SELECT DISTINCT cor0.col1 + + 92 * 16 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 1482 1485 1498 query I rowsort SELECT - 19 AS col1 FROM tab1 ---- -19 -19 -19 onlyif mysql # use DIV operator for integer division query I rowsort label-8941 SELECT DISTINCT col0 * ( + tab2.col0 ) DIV CAST( + 76 AS SIGNED ) + - col0 * tab2.col0 AS col1 FROM tab2 ---- -49 -6004 -6159 skipif mysql # not compatible query I rowsort label-8941 SELECT DISTINCT col0 * ( + tab2.col0 ) / CAST ( + 76 AS INTEGER ) + - col0 * tab2.col0 AS col1 FROM tab2 ---- -49 -6004 -6159 query I rowsort SELECT col0 + col1 * - col2 AS col1 FROM tab1 ---- -1168 -1401 -506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + 89 - col0 col1 FROM tab0 AS cor0 ---- 55 82 98 query I rowsort SELECT DISTINCT + + cor0.col2 * - 91 + col1 FROM tab1 AS cor0 ---- -4888 -5177 -8723 query I rowsort SELECT ALL - col1 - ( col2 * - col1 ) AS col0 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT ALL - 29 * + col0 FROM tab1 cor0 ---- -1856 -2320 -87 query I rowsort SELECT ALL 97 * ( col0 ) - 63 * col0 AS col2 FROM tab0 AS cor0 ---- 1190 3026 816 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8948 SELECT ALL - CAST( NULL AS SIGNED ) * col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8948 SELECT ALL - CAST ( NULL AS INTEGER ) * col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL cor0.col0 * - col2 AS col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8950 SELECT + + col0 + cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8950 SELECT + + col0 + cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 70 + + col0 AS col1 FROM tab2 ---- -63 8 9 query I rowsort SELECT + ( col0 ) AS col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT DISTINCT + col2 * 43 AS col2 FROM tab0 AS cor0 ---- 1419 3526 43 query I rowsort SELECT + col1 * cor0.col1 + cor0.col2 * - col2 FROM tab0 AS cor0 ---- 1557 6307 9408 query I rowsort SELECT - - cor0.col0 + col2 AS col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT ALL + col2 + - 25 AS col0 FROM tab0 AS cor0 ---- -24 57 8 query I rowsort SELECT - 1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 84da757b1b7b0069ce25607f39bc08d9 query I rowsort SELECT + col2 + col0 + ( - col0 ) FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL + col2 * 86 AS col0 FROM tab0 AS cor0 ---- 2838 7052 86 query I rowsort SELECT ALL col1 + + col2 + - 56 * - col2 FROM tab0 cor0 ---- 154 1967 4765 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * + 76 + - col0 * cor0.col1 col0 FROM tab0 AS cor0 ---- -1867 -3319 444 query I rowsort SELECT - - col2 + col2 * + 64 FROM tab1 AS cor0 ---- 3510 3705 6240 query I rowsort SELECT DISTINCT - - col1 * 5 AS col1 FROM tab2 AS cor0 ---- 155 295 85 query I rowsort SELECT ALL - col2 + + col1 * - col2 AS col2 FROM tab1 cor0 ---- -1344 -1458 -627 query I rowsort SELECT ALL + col1 + 70 FROM tab1 AS cor0 ---- 80 83 96 query I rowsort SELECT ALL - col1 * 44 + 32 FROM tab0 cor0 ---- -3752 -3972 -4236 query I rowsort SELECT - col0 * ( col1 ) + - col1 AS col0 FROM tab0 AS cor0 ---- -2150 -3492 -8190 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8968 SELECT + + col1 * - CAST( NULL AS DECIMAL ) + 56 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8968 SELECT + + col1 * - CAST ( NULL AS REAL ) + 56 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - col1 + - 12 AS col1 FROM tab2 AS cor0 ---- 19 47 5 query I rowsort SELECT 71 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to c1aace5d5fe27721cc925552513c85c0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8971 SELECT col0 + CAST( NULL AS DECIMAL ) * 16 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8971 SELECT col0 + CAST ( NULL AS REAL ) * 16 FROM tab2 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8972 SELECT ALL - cor0.col0 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 cor0 ---- -19 -62 24 skipif mysql # not compatible query I rowsort label-8972 SELECT ALL - cor0.col0 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0 ---- -19 -62 24 query I rowsort SELECT DISTINCT + col2 + cor0.col1 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + 47 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 47 query I rowsort SELECT DISTINCT + - col0 * - col0 * + col1 + - col0 FROM tab0 AS cor0 ---- 118790 49512 720722 query I rowsort SELECT + 85 - - 41 FROM tab1 AS cor0 ---- 126 126 126 onlyif mysql # use DIV operator for integer division query I rowsort label-8977 SELECT - col0 + + 15 DIV cor0.col1 FROM tab1 AS cor0 ---- -3 -63 -79 skipif mysql # not compatible query I rowsort label-8977 SELECT - col0 + + 15 / cor0.col1 FROM tab1 AS cor0 ---- -3 -63 -79 query I rowsort SELECT ALL 88 + - col1 AS col2 FROM tab0 AS cor0 ---- -3 -9 2 query I rowsort SELECT ALL - col2 * col2 * + col2 AS col2 FROM tab1 AS cor0 ---- -157464 -185193 -884736 onlyif mysql # use DIV operator for integer division query I rowsort label-8980 SELECT DISTINCT - - ( - col0 ) DIV + col0 + + col0 + - col0 * + col2 * col0 AS col2 FROM tab2 AS cor0 ---- -1317 -158107 -237080 skipif mysql # not compatible query I rowsort label-8980 SELECT DISTINCT - - ( - col0 ) / + col0 + + col0 + - col0 * + col2 * col0 AS col2 FROM tab2 AS cor0 ---- -1317 -158107 -237080 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8981 SELECT - col0 / CAST( NULL AS SIGNED ) + + 37 * col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8981 SELECT - col0 / CAST ( NULL AS INTEGER ) + + 37 * col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT 56 * + 36 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 896c492ca649b9543d0f2ce199c7f55d query I rowsort SELECT col2 - - col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT - cor0.col2 + col2 * cor0.col2 FROM tab2 cor0 ---- 1406 650 702 query I rowsort SELECT - col0 + - cor0.col1 AS col0 FROM tab2 cor0 ---- -137 -38 -96 query I rowsort SELECT DISTINCT col0 * + cor0.col0 - + 14 FROM tab0 AS cor0 ---- 1211 562 7907 query I rowsort SELECT ALL + 75 + col0 AS col1 FROM tab2 AS cor0 ---- 153 154 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 86 col1 FROM tab0 AS cor0 ---- 86 onlyif mysql # use DIV operator for integer division query I rowsort label-8989 SELECT DISTINCT - 78 DIV col0 AS col2 FROM tab1 AS cor0 ---- -1 -26 0 skipif mysql # not compatible query I rowsort label-8989 SELECT DISTINCT - 78 / col0 AS col2 FROM tab1 AS cor0 ---- -1 -26 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col0 ) * - col0 col0 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT ALL + col0 + col1 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT + 99 AS col0 FROM tab2 cor0 ---- 99 99 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + col1 col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + ( col2 ) * + 93 AS col1 FROM tab2 AS cor0 ---- 2418 2511 3534 query I rowsort SELECT 18 + cor0.col2 FROM tab1 AS cor0 ---- 114 72 75 query I rowsort SELECT - cor0.col1 * - col1 * col1 FROM tab2 AS cor0 ---- 205379 29791 4913 onlyif mysql # use DIV operator for integer division query I rowsort label-8997 SELECT DISTINCT - 96 DIV + tab0.col2 FROM tab0 ---- -1 -2 -96 skipif mysql # not compatible query I rowsort label-8997 SELECT DISTINCT - 96 / + tab0.col2 FROM tab0 ---- -1 -2 -96 query I rowsort SELECT + 76 AS col0 FROM tab0 ---- 76 76 76 onlyif mysql # use DIV operator for integer division query I rowsort label-8999 SELECT col2 * cor0.col1 DIV 38 FROM tab1 cor0 ---- 15 32 36 skipif mysql # not compatible query I rowsort label-8999 SELECT col2 * cor0.col1 / 38 FROM tab1 cor0 ---- 15 32 36 query I rowsort SELECT 65 FROM tab0 cor0 ---- 65 65 65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( + col1 ) col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT + + 82 FROM tab0 AS cor0 ---- 82 82 82 query I rowsort SELECT tab2.col0 * col2 AS col0 FROM tab2 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 10 * cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 61078693a69c9f1a2095d9ffa3080946 query I rowsort SELECT + + col2 + 7 FROM tab0 AS cor0 ---- 40 8 89 query I rowsort SELECT - - col0 + - col1 + 60 * - col2 FROM tab0 AS cor0 ---- -122 -2042 -4922 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2, tab2 cor1 ---- 972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859 query I rowsort SELECT + col0 * ( col1 ) FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT + col2 + 83 AS col1 FROM tab2 AS cor0 ---- 109 110 121 onlyif mysql # use DIV operator for integer division query I rowsort label-9010 SELECT DISTINCT col0 * - col1 - - col2 DIV - col0 AS col1 FROM tab0 AS cor0 ---- -2065 -3395 -8099 skipif mysql # not compatible query I rowsort label-9010 SELECT DISTINCT col0 * - col1 - - col2 / - col0 AS col1 FROM tab0 AS cor0 ---- -2065 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-9011 SELECT col1 DIV + col1 + - col0 AS col2 FROM tab2 cor0 ---- -6 -77 -78 skipif mysql # not compatible query I rowsort label-9011 SELECT col1 / + col1 + - col0 AS col2 FROM tab2 cor0 ---- -6 -77 -78 query I rowsort SELECT DISTINCT + - cor0.col1 * - ( cor0.col1 ) + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 7482 8372 9506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9013 SELECT - CAST( NULL AS SIGNED ) * + 63 + - col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9013 SELECT - CAST ( NULL AS INTEGER ) * + 63 + - col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + ( col0 ) * col2 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT 3 AS col0 FROM tab1, tab0 cor0 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba query I rowsort SELECT - col2 * 9 AS col1 FROM tab0 AS cor0 ---- -297 -738 -9 query I rowsort SELECT - 7 FROM tab1, tab0 AS cor0 ---- 9 values hashing to ba940cd66e21e94e95aada5f28e1faf5 query I rowsort SELECT - col0 + + col2 AS col1 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT + col1 + + tab1.col0 AS col2 FROM tab1 ---- 29 74 93 query I rowsort SELECT col2 * + cor0.col0 * cor0.col2 + col1 * ( col0 ) AS col2 FROM tab1 AS cor0 ---- 208576 738320 8826 query I rowsort SELECT ALL col2 + 35 * col0 FROM tab2 AS cor0 ---- 272 2756 2803 query I rowsort SELECT DISTINCT ( - cor0.col1 ) FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT + - ( - col0 ) + col2 AS col0 FROM tab0 AS cor0 ---- 171 36 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 60 + col2 * - col0 col1 FROM tab1 AS cor0 ---- -222 -3708 -7740 query I rowsort SELECT ( - cor0.col2 ) FROM tab2 cor0 ---- -26 -27 -38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9026 SELECT + + CAST( NULL AS SIGNED ) + + col1 * - col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9026 SELECT + + CAST ( NULL AS INTEGER ) + + col1 * - col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9027 SELECT + + ( col0 ) + col1 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9027 SELECT + + ( col0 ) + col1 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 94 * + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -3102 -7708 -94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col1 * col2 * 30 + - cor0.col2 col2 FROM tab2 AS cor0 ---- 19342 25083 45994 query I rowsort SELECT DISTINCT + - col1 * col1 AS col2 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT col2 + col1 * 65 * col2 FROM tab2 AS cor0 ---- 42028 54432 99736 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9032 SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-9032 SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab2, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT - cor0.col2 * + col1 AS col1 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL - + 65 * col1 AS col0 FROM tab1 AS cor0 ---- -1690 -650 -845 query I rowsort SELECT + + col2 * + cor0.col0 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT ALL - + col1 * col0 AS col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-9037 SELECT ALL + + cor0.col0 + col2 DIV - 91 AS col1 FROM tab0 cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-9037 SELECT ALL + + cor0.col0 + col2 / - 91 AS col1 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT - col0 + ( + col1 ) FROM tab2 ---- -19 -62 24 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9039 SELECT ALL + cor0.col2 * + col1 * - cor0.col1 + ( col1 ) * CAST( ( col1 ) AS SIGNED ) FROM tab0 cor0 ---- -236672 -670761 0 skipif mysql # not compatible query I rowsort label-9039 SELECT ALL + cor0.col2 * + col1 * - cor0.col1 + ( col1 ) * CAST ( ( col1 ) AS INTEGER ) FROM tab0 cor0 ---- -236672 -670761 0 query I rowsort SELECT DISTINCT + 86 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 86 query I rowsort SELECT col0 - - ( - col2 ) AS col2 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT - col2 * + col1 * - cor0.col2 + - col0 * + 59 AS col1 FROM tab1 AS cor0 ---- 115088 28714 75639 query I rowsort SELECT - col1 + col2 * - col0 AS col0 FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT DISTINCT col0 + - ( - col1 ) * col0 AS col0 FROM tab1 AS cor0 ---- 1120 704 81 onlyif mysql # use DIV operator for integer division query I rowsort label-9045 SELECT + col2 * + col0 * + col0 + col2 DIV - 90 - - col1 AS col1 FROM tab0 AS cor0 ---- 1322 19094 649613 skipif mysql # not compatible query I rowsort label-9045 SELECT + col2 * + col0 * + col0 + col2 / - 90 - - col1 AS col1 FROM tab0 AS cor0 ---- 1322 19094 649613 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 col0 FROM tab1 cor0 ---- 10 13 26 onlyif mysql # use DIV operator for integer division query I rowsort label-9047 SELECT + col0 - - col2 DIV col2 col0 FROM tab1 cor0 ---- 4 65 81 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9047 SELECT + col0 - - col2 / col2 col0 FROM tab1 cor0 ---- 4 65 81 query I rowsort SELECT DISTINCT - + col1 + + col1 - + col1 AS col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT + col2 + - 48 FROM tab0 AS cor0 ---- -15 -47 34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9050 SELECT + col2 - + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9050 SELECT + col2 - + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col0 + tab1.col2 * - ( col1 ) AS col2 FROM tab1 ---- -1328 -1407 -634 query I rowsort SELECT col1 * + col2 + - 33 - - tab0.col1 AS col2 FROM tab0 ---- 161 2891 7520 query I rowsort SELECT + col1 + ( col0 ) + col0 FROM tab2 ---- 175 215 45 query I rowsort SELECT - col0 + + ( col1 ) * + col1 AS col0 FROM tab1 AS cor0 ---- 36 673 89 query I rowsort SELECT + col1 * - tab2.col2 FROM tab2 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT col2 - 33 FROM tab2 ---- -6 -7 5 query I rowsort SELECT ALL + col1 * 77 - - tab2.col1 AS col2 FROM tab2 ---- 1326 2418 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-9058 SELECT DISTINCT + col2 - col2 DIV + tab0.col0 AS col2 FROM tab0 ---- 1 32 82 skipif mysql # not compatible query I rowsort label-9058 SELECT DISTINCT + col2 - col2 / + tab0.col0 AS col2 FROM tab0 ---- 1 32 82 query I rowsort SELECT col1 * ( col2 ) * col0 AS col2 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT + 11 FROM tab1 cor0 ---- 11 query I rowsort SELECT cor0.col2 + 30 + cor0.col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to e4f5b92e44759069e270c4e15b426762 query I rowsort SELECT ALL + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT 41 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to f6a440b478f0d00f8326a8c51fe094b8 onlyif mysql # use DIV operator for integer division query I rowsort label-9064 SELECT DISTINCT - 0 DIV col1 + col2 AS col0 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-9064 SELECT DISTINCT - 0 / col1 + col2 AS col0 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT + 47 * col0 + col0 FROM tab1 AS cor0 ---- 144 3072 3840 query I rowsort SELECT - col0 * cor0.col2 * col2 FROM tab0 cor0 ---- -26136 -35 -598436 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 56 + col2 + ( col2 ) col0 FROM tab2 AS cor0 ---- 108 110 132 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col1 * col1 col0 FROM tab1 AS cor0 ---- 100 169 676 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab1 AS cor0, tab0, tab1 cor1 ---- 972 values hashing to 7942394eb7766dfb9ea95b7805ff595d query I rowsort SELECT ALL - + 55 AS col0 FROM tab0 AS cor0 ---- -55 -55 -55 query I rowsort SELECT DISTINCT - cor0.col1 + - cor0.col1 FROM tab1 AS cor0 ---- -20 -26 -52 query I rowsort SELECT DISTINCT - col1 - col0 * + col2 AS col2 FROM tab2 ---- -2087 -220 -3019 onlyif mysql # use DIV operator for integer division query I rowsort label-9073 SELECT ALL - + 27 DIV tab1.col1 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to a011b4b9f56c2cf6ebc9706d23444a8d skipif mysql # not compatible query I rowsort label-9073 SELECT ALL - + 27 / tab1.col1 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to a011b4b9f56c2cf6ebc9706d23444a8d query I rowsort SELECT DISTINCT + 15 - - col2 AS col2 FROM tab0 ---- 16 48 97 query I rowsort SELECT DISTINCT col0 - - col2 * + 39 FROM tab2 ---- 1060 1092 1561 query I rowsort SELECT + col0 - + 67 * col1 FROM tab0 cor0 ---- -5738 -6008 -6464 query I rowsort SELECT col1 * col1 + - col1 AS col1 FROM tab1 AS cor0 ---- 156 650 90 query I rowsort SELECT - cor0.col1 * col1 + col2 AS col0 FROM tab0 cor0 ---- -7363 -8199 -9408 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9079 SELECT 30 * + col2 + CAST( 74 AS SIGNED ) + col0 AS col2 FROM tab0 ---- 1088 139 2623 skipif mysql # not compatible query I rowsort label-9079 SELECT 30 * + col2 + CAST ( 74 AS INTEGER ) + col0 AS col2 FROM tab0 ---- 1088 139 2623 query I rowsort SELECT ALL + ( - col0 ) + + ( + col1 + col0 ) AS col1 FROM tab0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9081 SELECT ALL ( col1 ) + CAST( col2 AS SIGNED ) AS col2 FROM tab0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-9081 SELECT ALL ( col1 ) + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-9082 SELECT ( tab2.col1 + - col0 ) DIV - 39 AS col0 FROM tab2 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-9082 SELECT ( tab2.col1 + - col0 ) / - 39 AS col0 FROM tab2 ---- 0 0 1 query I rowsort SELECT + col2 * col0 + col2 FROM tab0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-9084 SELECT col0 DIV + tab1.col2 FROM tab1 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-9084 SELECT col0 / + tab1.col2 FROM tab1 ---- 0 0 1 query I rowsort SELECT DISTINCT - col0 + + tab2.col0 * - 26 + - 18 * col0 * col0 FROM tab2 ---- -1071 -111618 -114471 query I rowsort SELECT DISTINCT - col0 * col2 * + col2 + + 13 FROM tab2 ---- -114063 -5090 -52715 onlyif mysql # use DIV operator for integer division query I rowsort label-9087 SELECT DISTINCT 13 DIV col1 + col0 col0 FROM tab0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9087 SELECT DISTINCT 13 / col1 + col0 col0 FROM tab0 ---- 24 35 89 query I rowsort SELECT + 47 * 2 FROM tab2, tab2 cor0 ---- 9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24 query I rowsort SELECT ALL + col1 + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT ALL - col2 + 0 * + col0 FROM tab2 cor0 ---- -26 -27 -38 onlyif mysql # use DIV operator for integer division query I rowsort label-9091 SELECT ALL + - col0 * 22 DIV col2 FROM tab0 AS cor0 ---- -16 -23 -770 skipif mysql # not compatible query I rowsort label-9091 SELECT ALL + - col0 * 22 / col2 FROM tab0 AS cor0 ---- -16 -23 -770 query I rowsort SELECT - col1 * + 90 FROM tab2 AS cor0 ---- -1530 -2790 -5310 query I rowsort SELECT DISTINCT + ( 68 ) AS col0 FROM tab0 AS cor0 ---- 68 query I rowsort SELECT DISTINCT - + 71 FROM tab2 AS cor0 ---- -71 query I rowsort SELECT ALL 38 FROM tab1 cor0 ---- 38 38 38 query I rowsort SELECT + - ( - 69 ) FROM tab0 AS cor0 ---- 69 69 69 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + 96 ) col1 FROM tab2 ---- 96 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2 ---- 3645 values hashing to c0625992cd48bef51317edf43a55d9e4 query I rowsort SELECT ALL + 91 FROM tab0 cor0 ---- 91 91 91 query I rowsort SELECT DISTINCT ( 26 ) * col1 FROM tab1 AS cor0 ---- 260 338 676 onlyif mysql # use DIV operator for integer division query I rowsort label-9101 SELECT DISTINCT + - 82 DIV + col2 FROM tab1 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-9101 SELECT DISTINCT + - 82 / + col2 FROM tab1 AS cor0 ---- -1 0 query I rowsort SELECT 77 + - ( col0 ) * 98 FROM tab0 AS cor0 ---- -2275 -3353 -8645 query I rowsort SELECT + 79 * + col1 * - col2 FROM tab2 AS cor0 ---- -121186 -51034 -66123 query I rowsort SELECT - - col2 * - 62 AS col1 FROM tab2 AS cor0 ---- -1612 -1674 -2356 query I rowsort SELECT + col1 * + 59 FROM tab1 AS cor0 ---- 1534 590 767 query I rowsort SELECT DISTINCT - ( - cor0.col1 ) FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT - ( 33 + col2 ) AS col1 FROM tab0 ---- -115 -34 -66 query I rowsort SELECT 51 * + col0 AS col0 FROM tab0 AS cor0 ---- 1224 1785 4539 query I rowsort SELECT col2 * - col1 * col0 FROM tab0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT + cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-9111 SELECT - 28 DIV - col1 + - col1 + - col2 AS col2 FROM tab2 AS cor0 ---- -54 -58 -85 skipif mysql # not compatible query I rowsort label-9111 SELECT - 28 / - col1 + - col1 + - col2 AS col2 FROM tab2 AS cor0 ---- -54 -58 -85 onlyif mysql # use DIV operator for integer division query I rowsort label-9112 SELECT DISTINCT + col2 + + col1 DIV + col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-9112 SELECT DISTINCT + col2 + + col1 / + col2 FROM tab1 AS cor0 ---- 54 57 96 onlyif mysql # use DIV operator for integer division query I rowsort label-9113 SELECT + + 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-9113 SELECT + + col1 / col0 col2 FROM tab0 AS cor0 ---- 1 2 3 query I rowsort SELECT - ( 86 ) AS col1 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af skipif mysql # not compatible query I rowsort SELECT CAST ( 51 AS REAL ) AS col2 FROM tab2 ---- 51 51 51 query I rowsort SELECT ALL - - cor0.col0 * + col0 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT + 42 + col2 AS col1 FROM tab0 AS cor0 ---- 124 43 75 query I rowsort SELECT ALL + col1 * col2 + 43 * col2 FROM tab1 AS cor0 ---- 3021 3726 5376 query I rowsort SELECT - 23 FROM tab1 AS cor0 ---- -23 -23 -23 query I rowsort SELECT DISTINCT - + col2 * col2 AS col0 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT ALL + + col2 + - col1 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT 50 + + 39 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743 query I rowsort SELECT - + 64 * - col1 AS col2 FROM tab2 AS cor0 ---- 1088 1984 3776 onlyif mysql # use DIV operator for integer division query I rowsort label-9124 SELECT - col1 DIV - col1 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9124 SELECT - col1 / - col1 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL - 78 * + col1 + + col2 FROM tab1 AS cor0 ---- -1974 -723 -918 query I rowsort SELECT + col1 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9127 SELECT col2 * + CAST( col0 + col0 AS SIGNED ) * - col1 FROM tab2 ---- -102068 -11718 -239304 skipif mysql # not compatible query I rowsort label-9127 SELECT col2 * + CAST ( col0 + col0 AS INTEGER ) * - col1 FROM tab2 ---- -102068 -11718 -239304 query I rowsort SELECT ALL - - col0 * + ( + 72 ) - col0 FROM tab2 AS cor0 ---- 497 5538 5609 skipif mysql # not compatible query I rowsort SELECT - col1 * - CAST ( col2 AS REAL ) + tab1.col0 AS col2 FROM tab1 ---- 1328 1407 634 query I rowsort SELECT ALL + col1 + 53 FROM tab0 ---- 139 144 150 query I rowsort SELECT DISTINCT - col0 * 36 + + col2 AS col1 FROM tab1 ---- -2247 -2784 -54 onlyif mysql # use DIV operator for integer division query I rowsort label-9132 SELECT ALL + + col2 DIV + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-9132 SELECT ALL + + col2 / + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 ---- -1 -18 0 query I rowsort SELECT DISTINCT - - col2 + + ( + col1 ) AS col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT + col2 * - 40 - + col1 FROM tab1 cor0 ---- -2186 -2290 -3853 query I rowsort SELECT ALL col1 + col0 * col0 AS col2 FROM tab2 AS cor0 ---- 6143 6258 80 query I rowsort SELECT + - col0 * + col2 + 88 FROM tab2 AS cor0 ---- -101 -1940 -2914 query I rowsort SELECT ALL - - col2 + + col1 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT - col2 * + 99 - - col2 FROM tab2 AS cor0 ---- -2548 -2646 -3724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * cor0.col0 + - col2 * - col2 + + ( 52 ) col1 FROM tab2 AS cor0 ---- 6812 7737 830 query I rowsort SELECT DISTINCT + - ( 89 ) AS col2 FROM tab2 AS cor0 ---- -89 query I rowsort SELECT 59 * 46 AS col1 FROM tab2 AS cor0 ---- 2714 2714 2714 onlyif mysql # use DIV operator for integer division query I rowsort label-9142 SELECT - cor0.col2 DIV + col0 + - col1 FROM tab2 AS cor0 ---- -17 -34 -59 skipif mysql # not compatible query I rowsort label-9142 SELECT - cor0.col2 / + col0 + - col1 FROM tab2 AS cor0 ---- -17 -34 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-9143 SELECT DISTINCT col0 + col1 DIV - 53 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-9143 SELECT DISTINCT col0 + col1 / - 53 FROM tab1 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9144 SELECT + col1 * CAST( NULL AS DECIMAL ) - 58 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9144 SELECT + col1 * CAST ( NULL AS REAL ) - 58 AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + - col0 * col1 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT - cor0.col1 * 5 + - col2 FROM tab2 AS cor0 ---- -123 -182 -321 onlyif mysql # use DIV operator for integer division query I rowsort label-9147 SELECT + - col2 DIV ( - cor0.col0 ) FROM tab1 AS cor0 ---- 0 1 18 skipif mysql # not compatible query I rowsort label-9147 SELECT + - col2 / ( - cor0.col0 ) FROM tab1 AS cor0 ---- 0 1 18 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 + - ( + col2 ) col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT - cor0.col1 + + cor0.col2 * col1 AS col1 FROM tab0 cor0 ---- 0 2752 7371 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9150 SELECT col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9150 SELECT col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 21 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 312c166f4dc412730c43555105b1f44b query I rowsort SELECT 3 AS col1 FROM tab0 ---- 3 3 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col1 col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT 93 * + cor1.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 7998 8463 9021 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 41 col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e query I rowsort SELECT col2 + + col1 AS col1 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-9157 SELECT + tab1.col0 + col0 DIV - col1 FROM tab1 ---- 3 58 74 skipif mysql # not compatible query I rowsort label-9157 SELECT + tab1.col0 + col0 / - col1 FROM tab1 ---- 3 58 74 query I rowsort SELECT 96 * + col0 FROM tab2 ---- 672 7488 7584 query I rowsort SELECT + col0 + - tab2.col2 AS col2 FROM tab2 ---- -20 41 52 query I rowsort SELECT 39 AS col2 FROM tab1, tab2 cor0 ---- 9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf query I rowsort SELECT DISTINCT + col2 + - 30 FROM tab2 AS cor0 ---- -3 -4 8 query I rowsort SELECT - 80 * - col2 + + col2 FROM tab0 AS cor0 ---- 2673 6642 81 query I rowsort SELECT ALL + - col1 * + 87 FROM tab2 cor0 ---- -1479 -2697 -5133 query I rowsort SELECT + tab2.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT 86 * 81 FROM tab0 ---- 6966 6966 6966 query I rowsort SELECT 96 * col1 + ( + col1 * + cor0.col1 ) FROM tab0 cor0 ---- 15652 17017 18721 query I rowsort SELECT DISTINCT - - ( + cor0.col0 ) FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT ( - col0 ) + + col1 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT ALL + col1 * + col2 AS col1 FROM tab2 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col0 col0 FROM tab2 ---- 7 78 79 query I rowsort SELECT 63 * + col2 AS col1 FROM tab2 ---- 1638 1701 2394 query I rowsort SELECT + + 68 * col1 AS col1 FROM tab0 cor0 ---- 5848 6188 6596 query I rowsort SELECT 68 AS col0 FROM tab0 AS cor0 ---- 68 68 68 query I rowsort SELECT - col2 + - col1 * ( col0 ) FROM tab2 cor0 ---- -1381 -244 -4628 query I rowsort SELECT - 41 + col1 FROM tab0 cor0 ---- 45 50 56 query I rowsort SELECT - - 36 - - col2 AS col1 FROM tab0 AS cor0 ---- 118 37 69 query I rowsort SELECT ALL + + 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 60ab040e931c5c85db7ba19364eacc8e query I rowsort SELECT + + col0 + - ( + col1 + col2 ) FROM tab2 AS cor0 ---- -51 -7 24 query I rowsort SELECT DISTINCT - - col0 * cor0.col1 + - 91 * - col2 AS col1 FROM tab0 AS cor0 ---- 15561 3486 5067 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9180 SELECT DISTINCT col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9180 SELECT DISTINCT col2 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + 54 col0 FROM tab2 AS cor0 ---- 80 81 92 query I rowsort SELECT ALL col1 + - tab0.col2 AS col2 FROM tab0 ---- 53 9 96 query I rowsort SELECT DISTINCT - 4 * + col1 FROM tab1 ---- -104 -40 -52 query I rowsort SELECT DISTINCT + col0 + 35 FROM tab2 AS cor0 ---- 113 114 42 query I rowsort SELECT ALL col0 * 12 AS col1 FROM tab1 AS cor0 ---- 36 768 960 query I rowsort SELECT ALL - col0 + 38 AS col1 FROM tab2 AS cor0 ---- -40 -41 31 query I rowsort SELECT + - 37 * - col1 AS col1 FROM tab2 AS cor0 ---- 1147 2183 629 query I rowsort SELECT - - col2 + + col0 AS col2 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT + 58 + + 81 * - col2 AS col0 FROM tab1 AS cor0 ---- -4316 -4559 -7718 onlyif mysql # use DIV operator for integer division query I rowsort label-9190 SELECT ALL - 81 * col1 - col1 DIV + ( - 51 ) AS col1 FROM tab1 AS cor0 ---- -1053 -2106 -810 skipif mysql # not compatible query I rowsort label-9190 SELECT ALL - 81 * col1 - col1 / + ( - 51 ) AS col1 FROM tab1 AS cor0 ---- -1053 -2106 -810 query I rowsort SELECT - col2 * + col2 - cor0.col1 * + 66 FROM tab1 cor0 ---- -10074 -3909 -4632 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - ( + col0 ) + col2 * 90 col1 FROM tab2 AS cor0 ---- 2418 2437 3499 query I rowsort SELECT DISTINCT - - 97 AS col2 FROM tab2 AS cor0 ---- 97 query I rowsort SELECT DISTINCT + 14 FROM tab0 AS cor0 ---- 14 query I rowsort SELECT ALL - + col2 * + col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT - 4 + - col2 AS col2 FROM tab2 cor0 ---- -30 -31 -42 query I rowsort SELECT - col0 * + cor0.col0 AS col0 FROM tab2 cor0 ---- -49 -6084 -6241 query I rowsort SELECT ALL col2 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT - col1 * + cor0.col1 + 13 AS col1 FROM tab2 AS cor0 ---- -276 -3468 -948 query I rowsort SELECT DISTINCT - 21 + cor0.col2 * ( + col0 + col1 ) AS col0 FROM tab0 AS cor0 ---- 111 14739 3609 query I rowsort SELECT ALL - col2 * cor0.col2 + + col0 * - col2 AS col1 FROM tab1 AS cor0 ---- -16896 -3078 -6897 query I rowsort SELECT 52 AS col1 FROM tab2 cor0 ---- 52 52 52 query I rowsort SELECT ALL ( - col2 + - col1 * col1 ) FROM tab2 ---- -327 -3507 -988 query I rowsort SELECT ( col1 + + col0 * + col1 ) FROM tab2 ---- 1360 248 4661 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9205 SELECT + CAST( NULL AS SIGNED ) / - 9 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9205 SELECT + CAST ( NULL AS INTEGER ) / - 9 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9206 SELECT DISTINCT - 77 DIV col0 FROM tab2 ---- -11 0 skipif mysql # not compatible query I rowsort label-9206 SELECT DISTINCT - 77 / col0 FROM tab2 ---- -11 0 query I rowsort SELECT + col0 + ( col1 + + 78 ) * + col1 FROM tab1 ---- 1263 2707 944 query I rowsort SELECT col1 + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-9209 SELECT ALL - + col1 DIV - col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-9209 SELECT ALL - + col1 / - col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 onlyif mysql # use DIV operator for integer division query I rowsort label-9210 SELECT DISTINCT + col2 DIV + col0 + cor0.col2 * - col1 FROM tab0 cor0 ---- -2837 -7462 -97 skipif mysql # not compatible query I rowsort label-9210 SELECT DISTINCT + col2 / + col0 + cor0.col2 * - col1 FROM tab0 cor0 ---- -2837 -7462 -97 query I rowsort SELECT col1 + + 1 + - col2 FROM tab2 AS cor0 ---- -20 34 5 query I rowsort SELECT DISTINCT + 65 + 12 * + col1 FROM tab1 AS cor0 ---- 185 221 377 onlyif mysql # use DIV operator for integer division query I rowsort label-9213 SELECT + - 35 DIV col2 + cor0.col1 * + 76 * + col2 AS col1 FROM tab1 cor0 ---- 106704 43320 94848 skipif mysql # not compatible query I rowsort label-9213 SELECT + - 35 / col2 + cor0.col1 * + 76 * + col2 AS col1 FROM tab1 cor0 ---- 106704 43320 94848 query I rowsort SELECT ALL - + col0 + 38 FROM tab1 AS cor0 ---- -26 -42 35 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9215 SELECT CAST( - col2 AS SIGNED ) * col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9215 SELECT CAST ( - col2 AS INTEGER ) * col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9216 SELECT col1 DIV cor0.col1 AS col2 FROM tab1 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9216 SELECT col1 / cor0.col1 AS col2 FROM tab1 cor0 ---- 1 1 1 query I rowsort SELECT ( - 92 ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to a0e6b76227d870d10c4d9f46545a7c83 query I rowsort SELECT DISTINCT 12 + + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 29 43 71 onlyif mysql # use DIV operator for integer division query I rowsort label-9219 SELECT - 97 * col0 DIV col2 AS col1 FROM tab0 AS cor0 ---- -105 -3395 -70 skipif mysql # not compatible query I rowsort label-9219 SELECT - 97 * col0 / col2 AS col1 FROM tab0 AS cor0 ---- -105 -3395 -70 query I rowsort SELECT ALL + + ( - col2 ) * 80 FROM tab1 AS cor0 ---- -4320 -4560 -7680 query I rowsort SELECT 58 FROM tab2, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a query I rowsort SELECT + - 45 * col2 FROM tab2 AS cor0 ---- -1170 -1215 -1710 query I rowsort SELECT ALL - col1 * - col0 * + col0 FROM tab1 AS cor0 ---- 234 40960 83200 onlyif mysql # use DIV operator for integer division query I rowsort label-9224 SELECT + - col1 * cor0.col2 DIV col2 AS col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-9224 SELECT + - col1 * cor0.col2 / col2 AS col1 FROM tab1 AS cor0 ---- -10 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9225 SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 cor0, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-9225 SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 cor0, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT 18 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to b95bafa733666df39c5d3f94760d010f query IIIIII rowsort SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL > ( NULL ) ---- query I rowsort SELECT ALL + + cor0.col1 - ( + 45 + - cor0.col0 ) * + ( + col2 + col1 ) FROM tab1 AS cor0 ---- -3334 1283 3828 query I rowsort SELECT DISTINCT 57 AS col1 FROM tab2, tab1 AS cor0 ---- 57 onlyif mysql # use DIV operator for integer division query I rowsort label-9230 SELECT DISTINCT - cor0.col0 DIV col0 + - col0 + - col0 FROM tab2 AS cor0 ---- -15 -157 -159 skipif mysql # not compatible query I rowsort label-9230 SELECT DISTINCT - cor0.col0 / col0 + - col0 + - col0 FROM tab2 AS cor0 ---- -15 -157 -159 query I rowsort SELECT + col2 * + col2 + col1 * col1 AS col0 FROM tab2 cor0 ---- 1690 1733 4157 query I rowsort SELECT DISTINCT - - col1 - - 58 * - col2 AS col0 FROM tab0 AS cor0 ---- -1828 -4665 39 query I rowsort SELECT DISTINCT - + col2 + - ( + col0 ) * col1 AS col1 FROM tab0 AS cor0 ---- -2097 -3396 -8181 query I rowsort SELECT col2 * - col1 + 66 FROM tab2 AS cor0 ---- -1468 -580 -771 query I rowsort SELECT + ( cor0.col0 ) AS col0 FROM tab0, tab2 cor0 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + cor0.col0 col2 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT - col0 * - col2 AS col0 FROM tab0 ---- 35 7298 792 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9238 SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) + col0 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-9238 SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) + col0 FROM tab0 ---- NULL query I rowsort SELECT tab2.col2 - + col1 AS col1 FROM tab2 ---- -33 -4 21 query I rowsort SELECT - tab0.col1 - + 4 AS col0 FROM tab0 ---- -101 -90 -95 query I rowsort SELECT + ( 22 ) * col2 FROM tab0 AS cor0 ---- 1804 22 726 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * col2 + + cor0.col0 col0 FROM tab2 AS cor0 ---- 1612 725 844 onlyif mysql # use DIV operator for integer division query I rowsort label-9243 SELECT + 92 DIV 50 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-9243 SELECT + 92 / 50 col0 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL col2 * + 62 FROM tab0 cor0 ---- 2046 5084 62 query I rowsort SELECT DISTINCT - ( col2 ) * + col2 + ( - 38 * + col1 ) FROM tab0 AS cor0 ---- -10182 -3687 -4357 query I rowsort SELECT ALL + 68 * col0 FROM tab0 AS cor0 ---- 1632 2380 6052 onlyif mysql # use DIV operator for integer division query I rowsort label-9247 SELECT DISTINCT + + 15 DIV cor0.col0 + col0 AS col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-9247 SELECT DISTINCT + + 15 / cor0.col0 + col0 AS col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT - + col1 * col0 + cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT col2 * + col0 + col1 FROM tab0 ---- 132 7389 878 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * 62 col0 FROM tab1 ---- 3348 3534 5952 query I rowsort SELECT DISTINCT col0 + + col2 AS col0 FROM tab1 ---- 121 176 57 query I rowsort SELECT ALL col2 * ( - 66 ) + col0 * 43 AS col2 FROM tab2 ---- -1481 1638 889 query I rowsort SELECT col2 + - 86 AS col2 FROM tab0 AS cor0 ---- -4 -53 -85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 + col1 col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9255 SELECT + 39 + cor0.col1 * col2 DIV - 29 FROM tab2 AS cor0 ---- -13 11 17 skipif mysql # not compatible query I rowsort label-9255 SELECT + 39 + cor0.col1 * col2 / - 29 FROM tab2 AS cor0 ---- -13 11 17 query I rowsort SELECT + 16 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT - col0 * - 67 * + col1 FROM tab1 AS cor0 ---- 42880 5226 69680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + 11 col0 FROM tab2 ---- 37 38 49 query I rowsort SELECT - col1 + + cor0.col0 AS col1 FROM tab2 cor0 ---- -24 19 62 query I rowsort SELECT ALL - 34 - - 60 FROM tab2 AS cor0 ---- 26 26 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 7 col1 FROM tab2 ---- 7 7 7 query I rowsort SELECT 56 * - col1 + 99 * + tab2.col0 + - tab2.col1 * - 39 AS col0 FROM tab2 ---- 166 6719 7532 query I rowsort SELECT col0 * - col2 AS col1 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT ALL 59 * col0 + + col2 + col2 FROM tab2 ---- 4654 467 4737 onlyif mysql # use DIV operator for integer division query I rowsort label-9265 SELECT + col0 DIV cor0.col1 - col0 DIV col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9265 SELECT + col0 / cor0.col1 - col0 / col1 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9266 SELECT col0 + + col0 * ( col0 ) - CAST( + col1 + + col0 AS SIGNED ) FROM tab0 cor0 ---- 1128 490 7830 skipif mysql # not compatible query I rowsort label-9266 SELECT col0 + + col0 * ( col0 ) - CAST ( + col1 + + col0 AS INTEGER ) FROM tab0 cor0 ---- 1128 490 7830 query I rowsort SELECT + col1 * col0 + 69 AS col0 FROM tab1 AS cor0 ---- 1109 147 709 query I rowsort SELECT DISTINCT 5 AS col1 FROM tab2 ---- 5 query I rowsort SELECT ALL - 20 AS col1 FROM tab0 ---- -20 -20 -20 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + tab1.col0 col0 FROM tab1 ---- 128 160 6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9271 SELECT + + 29 * tab0.col0 + CAST( NULL AS SIGNED ) FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-9271 SELECT + + 29 * tab0.col0 + CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 onlyif mysql # use DIV operator for integer division query I rowsort label-9272 SELECT + ( col2 ) + - tab1.col0 DIV 84 FROM tab1 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-9272 SELECT + ( col2 ) + - tab1.col0 / 84 FROM tab1 ---- 54 57 96 query I rowsort SELECT ( - col2 * + 81 ) FROM tab1 ---- -4374 -4617 -7776 query I rowsort SELECT DISTINCT - - col0 * col2 * - col0 AS col2 FROM tab1 AS cor0 ---- -233472 -486 -614400 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * 69 col0 FROM tab2 cor0 ---- 1173 2139 4071 query I rowsort SELECT - col0 + 30 - col0 FROM tab2 AS cor0 ---- -126 -128 16 query I rowsort SELECT + col1 * ( 64 ) + col1 - + col2 FROM tab0 AS cor0 ---- 5557 5833 6304 query I rowsort SELECT ALL - - col2 * - col1 + col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 onlyif mysql # use DIV operator for integer division query I rowsort label-9279 SELECT cor0.col2 * 98 DIV 16 + col2 - ( col0 ) col0 FROM tab2 AS cor0 ---- 107 185 191 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9279 SELECT cor0.col2 * 98 / 16 + col2 - ( col0 ) col0 FROM tab2 AS cor0 ---- 107 185 191 query I rowsort SELECT DISTINCT - ( col2 ) + col0 FROM tab2 ---- -20 41 52 query I rowsort SELECT 96 + col0 AS col1 FROM tab1 AS cor0 ---- 160 176 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab1.col1 * col0 col1 FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT tab2.col1 * + tab2.col0 AS col1 FROM tab2, tab0 AS cor0 ---- 1343 217 4602 query I rowsort SELECT + col0 * + tab0.col0 FROM tab0 ---- 1225 576 7921 query I rowsort SELECT col1 + + cor0.col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT - col0 + - col0 * ( + col0 ) AS col0 FROM tab0 AS cor0 ---- -1260 -600 -8010 query I rowsort SELECT - 74 * cor0.col1 - - col1 AS col1 FROM tab0 AS cor0 ---- -6278 -6643 -7081 query I rowsort SELECT DISTINCT cor0.col1 * - col2 AS col0 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL - + col0 + 68 + 19 FROM tab1 AS cor0 ---- 23 7 84 query I rowsort SELECT + col0 * cor0.col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT + + col1 + - ( - col1 ) + - col2 * - 47 FROM tab1 cor0 ---- 2590 2699 4538 query I rowsort SELECT - cor0.col2 * cor0.col2 * + col1 FROM tab0 AS cor0 ---- -611884 -93654 -97 query I rowsort SELECT col0 * col2 * col0 FROM tab1 ---- 233472 486 614400 query I rowsort SELECT - - col2 + col0 AS col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT DISTINCT + col2 + col0 + - col1 * + col2 AS col2 FROM tab1 AS cor0 ---- -1072 -1347 -449 query III rowsort SELECT ALL * FROM tab1 WHERE col0 NOT IN ( tab1.col1 / col1 + + col1 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d onlyif mysql # use DIV operator for integer division query I rowsort label-9297 SELECT ALL col0 DIV col1 - tab1.col0 FROM tab1 ---- -3 -58 -74 skipif mysql # not compatible query I rowsort label-9297 SELECT ALL col0 / col1 - tab1.col0 FROM tab1 ---- -3 -58 -74 query I rowsort SELECT col1 FROM tab0 WHERE NOT - col2 * - col2 - + col0 = ( + col2 ) ---- 86 91 97 onlyif mysql # use DIV operator for integer division query I rowsort label-9299 SELECT ALL + col0 + col0 DIV + col0 + col0 FROM tab1 ---- 129 161 7 skipif mysql # not compatible query I rowsort label-9299 SELECT ALL + col0 + col0 / + col0 + col0 FROM tab1 ---- 129 161 7 onlyif mysql # use DIV operator for integer division query I rowsort label-9300 SELECT DISTINCT + col1 DIV + col2 FROM tab0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-9300 SELECT DISTINCT + col1 / + col2 FROM tab0 ---- 1 2 97 onlyif mysql # use DIV operator for integer division query I rowsort label-9301 SELECT DISTINCT col1 DIV col0 col0 FROM tab0 ---- 1 2 3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9301 SELECT DISTINCT col1 / col0 col0 FROM tab0 ---- 1 2 3 query I rowsort SELECT - col0 + + col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT col2 - + col2 AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL - col0 - - col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT + col1 + col2 * + tab0.col1 * col0 AS col2 FROM tab0 ---- 3492 664209 68198 query I rowsort SELECT ALL col1 - col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT + tab2.col0 + + col1 AS col2 FROM tab2 ---- 137 38 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 * + col2 - col0 * col0 col2 FROM tab1 ---- -847 2816 2907 query IIIIII rowsort SELECT * FROM tab2, tab1 AS cor0 WHERE NULL <= NULL ---- query I rowsort SELECT ALL col1 + - col2 AS col0 FROM tab2 AS cor0 ---- -21 33 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * + tab0.col1 * tab0.col0 + col0 col1 FROM tab0 ---- -3360 -664029 -68088 query I rowsort SELECT col1 + col1 * col1 * - col1 FROM tab1 ---- -17550 -2184 -990 onlyif mysql # use DIV operator for integer division query I rowsort label-9313 SELECT + col2 DIV col0 + col0 col2 FROM tab1 ---- 21 64 81 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9313 SELECT + col2 / col0 + col0 col2 FROM tab1 ---- 21 64 81 query I rowsort SELECT ALL col0 + tab0.col2 + + tab0.col2 AS col1 FROM tab0 ---- 253 37 90 onlyif mysql # use DIV operator for integer division query I rowsort label-9315 SELECT ALL + col2 DIV + col1 FROM tab2 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-9315 SELECT ALL + col2 / + col1 FROM tab2 ---- 0 0 2 query III rowsort SELECT * FROM tab0 WHERE NOT - col0 - col2 NOT IN ( + tab0.col0 + + col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * col0 + + col1 col0 FROM tab1 ---- -136 -3638 -7667 onlyif mysql # use DIV operator for integer division query I rowsort label-9318 SELECT ALL + tab0.col1 DIV - col0 AS col2 FROM tab0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-9318 SELECT ALL + tab0.col1 / - col0 AS col2 FROM tab0 ---- -1 -2 -3 onlyif mysql # use DIV operator for integer division query I rowsort label-9319 SELECT DISTINCT col1 DIV tab0.col1 + tab0.col0 AS col2 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-9319 SELECT DISTINCT col1 / tab0.col1 + tab0.col0 AS col2 FROM tab0 ---- 25 36 90 query III rowsort SELECT * FROM tab2 WHERE NOT col2 > ( NULL ) ---- query I rowsort SELECT ALL col0 * + col1 - + col1 FROM tab1 ---- 1027 52 630 onlyif mysql # use DIV operator for integer division query I rowsort label-9322 SELECT DISTINCT tab0.col0 DIV col0 + + col2 * col1 FROM tab0 ---- 2839 7463 98 skipif mysql # not compatible query I rowsort label-9322 SELECT DISTINCT tab0.col0 / col0 + + col2 * col1 FROM tab0 ---- 2839 7463 98 query I rowsort SELECT + col0 + tab0.col2 FROM tab0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-9324 SELECT col2 + - col1 DIV col1 AS col0 FROM tab2 AS cor0 ---- 25 26 37 skipif mysql # not compatible query I rowsort label-9324 SELECT col2 + - col1 / col1 AS col0 FROM tab2 AS cor0 ---- 25 26 37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * col0 col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT + + 82 + - col2 FROM tab1 AS cor0 ---- -14 25 28 query I rowsort SELECT ALL - - col1 + col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT 34 * col0 FROM tab0 cor0 ---- 1190 3026 816 query I rowsort SELECT + col0 * col0 AS col0 FROM tab2 cor0 ---- 49 6084 6241 query I rowsort SELECT + - ( - col2 ) * + col0 * 58 AS col1 FROM tab1 cor0 ---- 211584 445440 9396 query I rowsort SELECT ALL col0 + - col2 * + col2 FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT - cor0.col2 - col1 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT DISTINCT - - col1 + col2 + - 23 * col2 AS col1 FROM tab2 AS cor0 ---- -513 -563 -819 query I rowsort SELECT DISTINCT col0 - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT + col0 * col2 + + 17 * 63 * + col1 FROM tab2 cor0 ---- 21209 33390 65217 query I rowsort SELECT ALL 96 FROM tab0 cor0 ---- 96 96 96 query I rowsort SELECT DISTINCT + 31 * col1 FROM tab2 AS cor0 ---- 1829 527 961 query I rowsort SELECT ALL ( tab1.col1 ) * - tab1.col2 AS col2 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT ALL - 46 AS col2 FROM tab1, tab0 cor0 ---- 9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d query I rowsort SELECT ( - col1 ) + col2 * + col0 FROM tab0 ---- -62 706 7207 query I rowsort SELECT ALL + 10 FROM tab0 ---- 10 10 10 query I rowsort SELECT col2 + col2 * col1 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT col1 * col2 + - col2 + - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -1 2719 7289 query I rowsort SELECT 55 - + col1 FROM tab2 AS cor0 ---- -4 24 38 query I rowsort SELECT DISTINCT cor0.col1 * cor0.col2 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9346 SELECT ALL - - ( - col1 ) * CAST( NULL AS SIGNED ) + + col1 / cor0.col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9346 SELECT ALL - - ( - col1 ) * CAST ( NULL AS INTEGER ) + + col1 / cor0.col1 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 - - col2 AS col1 FROM tab1 cor0 ---- 109 67 80 query I rowsort SELECT - col0 - + col1 FROM tab2 cor0 ---- -137 -38 -96 query I rowsort SELECT col0 * + col0 * col2 FROM tab2 AS cor0 ---- 1323 158184 237158 query I rowsort SELECT - 30 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb query I rowsort SELECT DISTINCT + col1 * 50 + 83 FROM tab2 ---- 1633 3033 933 query I rowsort SELECT - 28 * + 25 AS col2 FROM tab2 AS cor0 ---- -700 -700 -700 query I rowsort SELECT - + ( 9 ) * + col1 * col2 FROM tab1 AS cor0 ---- -11232 -12636 -5130 query I rowsort SELECT - ( cor0.col0 ) * col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT 5 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 6797d40099023779b89feb627d94a3e7 query I rowsort SELECT DISTINCT 15 AS col1 FROM tab1, tab2 AS cor0 ---- 15 query I rowsort SELECT - 90 + + 34 FROM tab2 AS cor0 ---- -56 -56 -56 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9358 SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9358 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - ( - cor0.col1 ) col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + col2 * cor0.col0 + col0 AS col1 FROM tab2 cor0 ---- 196 2106 3081 query I rowsort SELECT DISTINCT + - 4 FROM tab2 cor0 ---- -4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9362 SELECT ALL + col1 * + col1 + - CAST( NULL AS SIGNED ) * tab0.col0 + col1 / 26 AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9362 SELECT ALL + col1 * + col1 + - CAST ( NULL AS INTEGER ) * tab0.col0 + col1 / 26 AS col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 * col1 + + ( + col0 ) + col2 FROM tab2 ---- 1638 763 871 query I rowsort SELECT 50 FROM tab2, tab1 cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 query I rowsort SELECT + col0 + + ( + 60 ) * col0 AS col2 FROM tab2 AS cor0 ---- 427 4758 4819 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9366 SELECT - col0 * + col1 + + col0 * + col1 + + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9366 SELECT - col0 * + col1 + + col0 * + col1 + + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - + 89 AS col1 FROM tab0 AS cor0 ---- -89 -89 -89 query I rowsort SELECT + + col0 * col1 + + 43 FROM tab1 AS cor0 ---- 1083 121 683 query I rowsort SELECT DISTINCT 68 FROM tab0 AS cor0 ---- 68 query I rowsort SELECT ALL 70 * 22 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to accb73ec933be06a6e470d3abaacaff6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * + tab1.col0 col0 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT ALL cor0.col1 * tab0.col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to a524e142364c65c896c2a613fa8a8ffc query I rowsort SELECT ALL - 2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to ec11209ab257030053484fc13a1f6d17 query I rowsort SELECT DISTINCT + - col2 + col2 * + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1406 650 702 query I rowsort SELECT DISTINCT - col0 * + col1 * col0 AS col2 FROM tab2 ---- -106097 -1519 -358956 query I rowsort SELECT + 13 AS col1 FROM tab2, tab1, tab0 AS cor0, tab0 AS cor1 ---- 81 values hashing to b092e3fa17e78608cf120e97d1bfff67 query I rowsort SELECT ALL + - col0 * col2 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- -1225 -19008 -649522 query I rowsort SELECT + - col0 * col1 AS col1 FROM tab2 cor0 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + cor0.col1 * + ( 89 ) col2 FROM tab1 AS cor0 ---- 1157 2314 890 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9380 SELECT - CAST( - col0 AS SIGNED ) + + col2 + - tab1.col2 * 70 FROM tab1 ---- -3723 -3869 -6544 skipif mysql # not compatible query I rowsort label-9380 SELECT - CAST ( - col0 AS INTEGER ) + + col2 + - tab1.col2 * 70 FROM tab1 ---- -3723 -3869 -6544 onlyif mysql # use DIV operator for integer division query I rowsort label-9381 SELECT 45 DIV col0 - col1 AS col0 FROM tab2 AS cor0 ---- -17 -25 -59 skipif mysql # not compatible query I rowsort label-9381 SELECT 45 / col0 - col1 AS col0 FROM tab2 AS cor0 ---- -17 -25 -59 onlyif mysql # use DIV operator for integer division query I rowsort label-9382 SELECT - ( col0 ) DIV - col0 + CAST( + col1 AS SIGNED ) + + col0 FROM tab2 ---- 138 39 97 skipif mysql # not compatible query I rowsort label-9382 SELECT - ( col0 ) / - col0 + CAST ( + col1 AS INTEGER ) + + col0 FROM tab2 ---- 138 39 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + - col0 col1 FROM tab2 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 - col2 col0 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ALL + ( - col2 ) - + col1 FROM tab0 cor0 ---- -119 -173 -98 onlyif mysql # use DIV operator for integer division query I rowsort label-9386 SELECT - + col0 + + col1 DIV + col2 AS col1 FROM tab0 AS cor0 ---- -22 -88 62 skipif mysql # not compatible query I rowsort label-9386 SELECT - + col0 + + col1 / + col2 AS col1 FROM tab0 AS cor0 ---- -22 -88 62 query I rowsort SELECT DISTINCT - col0 + cor0.col1 AS col2 FROM tab2 AS cor0 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-9388 SELECT ALL - - col0 * col0 + + col2 DIV - cor0.col0 FROM tab2 AS cor0 ---- 46 6084 6241 skipif mysql # not compatible query I rowsort label-9388 SELECT ALL - - col0 * col0 + + col2 / - cor0.col0 FROM tab2 AS cor0 ---- 46 6084 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + - col1 * + cor0.col2 col2 FROM tab1 cor0 ---- -1152 -1350 -513 onlyif mysql # use DIV operator for integer division query I rowsort label-9390 SELECT ALL + col1 DIV - col2 AS col1 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-9390 SELECT ALL + col1 / - col2 AS col1 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT col1 + - cor0.col1 AS col1 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9392 SELECT DISTINCT - - col1 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9392 SELECT DISTINCT - - col1 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT col1 * + col1 + + col1 * col0 AS col0 FROM tab1 AS cor0 ---- 1209 740 754 query I rowsort SELECT ALL + col2 * + cor0.col0 FROM tab1 AS cor0 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * - col0 * + ( - ( + col1 ) ) col0 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT + + cor0.col0 + col0 * + col1 AS col1 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT ALL - + col2 + col0 * + col2 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT ALL + + col0 * cor0.col2 * 87 AS col1 FROM tab1 AS cor0 ---- 14094 317376 668160 query I rowsort SELECT DISTINCT - cor0.col2 * + col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT + cor0.col2 * - col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT DISTINCT - + cor0.col1 + + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT ALL 17 + - col2 - col2 * col1 FROM tab0 ---- -2854 -7527 -81 query I rowsort SELECT ALL col2 * + col2 - col2 AS col0 FROM tab0 ---- 0 1056 6642 query I rowsort SELECT DISTINCT - - col1 * col2 + col0 AS col1 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT ALL 98 FROM tab0 cor0 ---- 98 98 98 query I rowsort SELECT 45 AS col1 FROM tab0 AS cor0 ---- 45 45 45 query I rowsort SELECT ALL + 13 * - col2 AS col0 FROM tab1 AS cor0 ---- -1248 -702 -741 query I rowsort SELECT + + 64 + + col0 AS col1 FROM tab0 AS cor0 ---- 153 88 99 onlyif mysql # use DIV operator for integer division query I rowsort label-9409 SELECT DISTINCT - col2 DIV - cor0.col0 FROM tab2 AS cor0 ---- 0 3 skipif mysql # not compatible query I rowsort label-9409 SELECT DISTINCT - col2 / - cor0.col0 FROM tab2 AS cor0 ---- 0 3 query I rowsort SELECT ALL cor0.col1 + - col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col0 + + col1 * + ( col1 + col0 ) FROM tab2 AS cor0 ---- 1185 1711 8161 onlyif mysql # use DIV operator for integer division query I rowsort label-9412 SELECT ALL col0 + col1 DIV 73 + col2 * col2 AS col2 FROM tab0 cor0 ---- 1114 37 6814 skipif mysql # not compatible query I rowsort label-9412 SELECT ALL col0 + col1 / 73 + col2 * col2 AS col2 FROM tab0 cor0 ---- 1114 37 6814 skipif mysql # not compatible query I rowsort SELECT DISTINCT + ( col2 ) * col2 - - col2 * col1 * CAST ( 43 AS REAL ) FROM tab1 AS cor0 ---- 27759 62880 63288 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9414 SELECT - + ( col1 ) * + CAST( NULL AS DECIMAL ) - col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9414 SELECT - + ( col1 ) * + CAST ( NULL AS REAL ) - col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col0 * + col2 - 80 FROM tab0 AS cor0 ---- -115 -7378 -872 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT + col1 * - CAST ( - 92 AS REAL ) col0 FROM tab2 cor0 ---- 1564 2852 5428 query I rowsort SELECT DISTINCT - col2 + + col2 AS col2 FROM tab1 ---- 0 query I rowsort SELECT col1 - - ( + 93 ) * + col2 FROM tab0 AS cor0 ---- 190 3155 7717 query I rowsort SELECT + col1 + col0 * 60 + + 42 FROM tab1 ---- 248 3892 4855 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + cor0.col0 col0 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT + col0 * cor0.col2 + - 51 FROM tab0 AS cor0 ---- -16 7247 741 query I rowsort SELECT col0 + 88 FROM tab2 AS cor0 ---- 166 167 95 query I rowsort SELECT ALL - cor0.col0 + 72 FROM tab0, tab0 cor0 ---- 9 values hashing to debba35155f39074e433995440bd4ab6 query I rowsort SELECT DISTINCT + ( - col1 ) + - col2 * col1 * col0 AS col2 FROM tab1 ---- -36490 -4238 -99853 query I rowsort SELECT + col0 * - 19 FROM tab1 AS cor0 ---- -1216 -1520 -57 query I rowsort SELECT 73 * + 79 FROM tab1 AS cor0 ---- 5767 5767 5767 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + cor0.col2 col0 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT + col2 * - col2 * - col1 AS col2 FROM tab1 AS cor0 ---- 119808 32490 75816 query I rowsort SELECT ALL - 87 + - col2 - cor0.col2 AS col2 FROM tab1 cor0 ---- -195 -201 -279 query I rowsort SELECT + 8 * - 67 FROM tab2 cor0 ---- -536 -536 -536 query I rowsort SELECT DISTINCT + - col0 * ( + cor0.col0 ) - cor0.col1 FROM tab2 AS cor0 ---- -6143 -6258 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * + 89 col1 FROM tab2 AS cor0 ---- 1513 2759 5251 query I rowsort SELECT col2 * + 76 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- 14364 154128 228152 query I rowsort SELECT DISTINCT - col1 + - ( + col2 * + cor0.col1 + 80 ) FROM tab0 AS cor0 ---- -274 -3004 -7633 query I rowsort SELECT DISTINCT + col2 * + col2 AS col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT + col1 * col0 * - 41 + - col2 FROM tab0 ---- -139196 -332141 -84657 onlyif mysql # use DIV operator for integer division query I rowsort label-9437 SELECT col1 DIV - 7 - + col0 AS col1 FROM tab1 ---- -6 -65 -81 skipif mysql # not compatible query I rowsort label-9437 SELECT col1 / - 7 - + col0 AS col1 FROM tab1 ---- -6 -65 -81 query I rowsort SELECT col2 * 90 - - col1 FROM tab0 ---- 187 3056 7471 query I rowsort SELECT col0 + + 0 FROM tab2 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - 12 ) * - col2 col1 FROM tab1 AS cor0 ---- 1152 648 684 query I rowsort SELECT ALL - col1 * - 62 AS col1 FROM tab1 AS cor0 ---- 1612 620 806 query I rowsort SELECT DISTINCT + col0 * + 49 FROM tab1 AS cor0 ---- 147 3136 3920 query I rowsort SELECT - ( + 67 ) FROM tab2 AS cor0 ---- -67 -67 -67 query I rowsort SELECT DISTINCT + 32 - - 90 AS col0 FROM tab2 AS cor0 ---- 122 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 85 + + col1 * - col0 col1 FROM tab2 AS cor0 ---- -1258 -132 -4517 query I rowsort SELECT DISTINCT - 33 + col1 * + col0 AS col2 FROM tab0 AS cor0 ---- 2031 3362 8066 query I rowsort SELECT ALL + 40 + - cor0.col0 AS col2 FROM tab0, tab0 cor0 ---- 9 values hashing to 09574684be08b1d8a79dca44bee81d66 query I rowsort SELECT + col0 * + ( col2 ) FROM tab0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 30 col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to da5de0c411a2c0f445400f1b63ea9f89 query I rowsort SELECT ALL - col2 * - 51 FROM tab0 ---- 1683 4182 51 query I rowsort SELECT + 70 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 9758da65ae4711e3e8c8def2fe026911 query I rowsort SELECT col2 * + 24 AS col1 FROM tab0 AS cor0 ---- 1968 24 792 query I rowsort SELECT ALL 41 FROM tab1, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to f6a440b478f0d00f8326a8c51fe094b8 query I rowsort SELECT - 83 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to d55748f39f403ec273099c0d87b0bfbb query I rowsort SELECT - col1 - - col0 FROM tab0 ---- -2 -62 -62 query I rowsort SELECT col1 + + 53 * col2 FROM tab2 ---- 1437 1462 2031 query I rowsort SELECT + 17 * + col2 AS col0 FROM tab1 AS cor0 ---- 1632 918 969 query I rowsort SELECT cor0.col2 + 23 * - col1 - - ( + col0 ) FROM tab0 AS cor0 ---- -1921 -1922 -2195 query I rowsort SELECT + 67 * cor0.col2 * + col0 + - col2 AS col1 FROM tab1 AS cor0 ---- 10800 244359 514464 query I rowsort SELECT - col2 + - col1 * + cor0.col2 FROM tab0 AS cor0 ---- -2871 -7544 -98 query I rowsort SELECT + - 74 + col2 * + cor0.col0 * - 88 AS col2 FROM tab0 AS cor0 ---- -3154 -642298 -69770 query I rowsort SELECT - 15 * + 74 + + col1 * col0 FROM tab1 AS cor0 ---- -1032 -470 -70 query I rowsort SELECT ALL + col1 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT ( 91 ) AS col1 FROM tab0 AS cor0 ---- 91 91 91 query I rowsort SELECT DISTINCT - - 71 + cor0.col2 + + cor0.col0 * - 14 AS col0 FROM tab1 AS cor0 ---- -768 -953 83 query I rowsort SELECT DISTINCT + ( col0 ) + cor0.col2 * col2 FROM tab1 AS cor0 ---- 2919 3313 9296 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 4 + + col0 col1 FROM tab0 cor0 ---- 20 31 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9468 SELECT col1 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 ---- -1248 -1404 -570 skipif mysql # not compatible query I rowsort label-9468 SELECT col1 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT ( - cor0.col2 ) + cor0.col2 * col2 AS col0 FROM tab1 AS cor0 ---- 2862 3192 9120 query I rowsort SELECT + 58 + 59 FROM tab0 AS cor0 ---- 117 117 117 query I rowsort SELECT - - col2 + + col2 AS col0 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT DISTINCT + col1 * - col0 AS col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 73 col2 FROM tab0 ---- 73 73 73 query I rowsort SELECT - col1 + - col2 AS col1 FROM tab0 AS cor0 ---- -119 -173 -98 query I rowsort SELECT col0 * + col2 + 44 FROM tab2 AS cor0 ---- 2072 233 3046 query I rowsort SELECT - - 71 FROM tab1 AS cor0 ---- 71 71 71 query I rowsort SELECT - + 23 FROM tab0 AS cor0 ---- -23 -23 -23 query I rowsort SELECT 33 * col2 * + col2 AS col1 FROM tab0 AS cor0 ---- 221892 33 35937 query I rowsort SELECT col1 * col1 FROM tab1 cor0 ---- 100 169 676 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 AS cor1, tab1 AS cor2 ---- 972 values hashing to 92235dbc382d83baa93d6546ed489b0c query I rowsort SELECT 68 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 599bee15ac4cc39b859854e07dfe7990 query I rowsort SELECT DISTINCT + 16 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 16 query I rowsort SELECT ALL 12 FROM tab1 ---- 12 12 12 query I rowsort SELECT DISTINCT 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 6 query I rowsort SELECT + + col2 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- 1 1089 6724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col1 * 88 - + col0 col0 FROM tab2 AS cor0 ---- 1417 2721 5114 query I rowsort SELECT DISTINCT - col2 + col1 * - col2 AS col0 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT DISTINCT + + cor0.col2 * col2 - 29 FROM tab1 AS cor0 ---- 2887 3220 9187 query I rowsort SELECT ALL + + col1 * ( + col0 ) AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL col1 + 14 * col2 AS col2 FROM tab2 AS cor0 ---- 409 423 549 query I rowsort SELECT DISTINCT + col0 + - col1 * - 89 AS col0 FROM tab0 cor0 ---- 7678 8188 8668 onlyif mysql # use DIV operator for integer division query I rowsort label-9492 SELECT ALL col2 * col1 DIV col0 col2 FROM tab1 AS cor0 ---- 15 468 8 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9492 SELECT ALL col2 * col1 / col0 col2 FROM tab1 AS cor0 ---- 15 468 8 query I rowsort SELECT 80 FROM tab1 ---- 80 80 80 query I rowsort SELECT ALL + + col2 * 2 + 24 FROM tab1 AS cor0 ---- 132 138 216 query I rowsort SELECT - col2 * - ( - col0 ) * + col2 FROM tab2 AS cor0 ---- -114076 -5103 -52728 query I rowsort SELECT DISTINCT + - cor0.col1 * 86 AS col2 FROM tab2 AS cor0 ---- -1462 -2666 -5074 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 + 93 col0 FROM tab1 AS cor0 ---- 13 29 90 query I rowsort SELECT ALL - col0 * + 47 AS col0 FROM tab2 AS cor0 ---- -329 -3666 -3713 query I rowsort SELECT ALL - 67 + - 3 * + col1 FROM tab0 AS cor0 ---- -325 -340 -358 query I rowsort SELECT DISTINCT + cor0.col1 * cor2.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2 ---- 9 values hashing to 3fe7ddc736abb4b8aaa99f6b5ddeca84 query I rowsort SELECT ALL - col1 + 53 * + col0 AS col0 FROM tab2 AS cor0 ---- 340 4075 4170 query IIIIIIIII rowsort SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 cor1 ---- 243 values hashing to d489341cd587fd6eb0b972c5464c6ddc query I rowsort SELECT + col0 + - 67 AS col2 FROM tab2 ---- -60 11 12 onlyif mysql # use DIV operator for integer division query I rowsort label-9504 SELECT ALL - col1 DIV col1 AS col1 FROM tab1 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-9504 SELECT ALL - col1 / col1 AS col1 FROM tab1 cor0 ---- -1 -1 -1 query I rowsort SELECT cor0.col0 + cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to dbf53c8d395fe624f70bcff710ecddf8 query I rowsort SELECT DISTINCT - - 28 + cor0.col1 * col0 AS col0 FROM tab0 AS cor0 ---- 2092 3423 8127 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2 ---- 3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9508 SELECT ALL + CAST( + col0 AS SIGNED ) * col0 AS col2 FROM tab0 ---- 1225 576 7921 skipif mysql # not compatible query I rowsort label-9508 SELECT ALL + CAST ( + col0 AS INTEGER ) * col0 AS col2 FROM tab0 ---- 1225 576 7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 48 * 28 * cor1.col2 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 129024 72576 76608 query I rowsort SELECT ALL - col0 + + col0 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT + - 65 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57 query I rowsort SELECT 25 - col0 * + ( col1 ) FROM tab1 ---- -1015 -53 -615 query I rowsort SELECT + 1 + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 4 65 81 query I rowsort SELECT ALL 90 + + cor0.col0 + col1 AS col2 FROM tab2 AS cor0 ---- 128 186 227 query I rowsort SELECT + 21 * col2 + cor0.col1 * col0 AS col2 FROM tab0 AS cor0 ---- 2757 3416 9821 query I rowsort SELECT + cor0.col0 * 29 FROM tab2 AS cor0 ---- 203 2262 2291 query I rowsort SELECT ALL + col1 + + cor0.col2 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-9518 SELECT DISTINCT + 82 DIV 55 + - col1 AS col0 FROM tab1 AS cor0 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-9518 SELECT DISTINCT + 82 / 55 + - col1 AS col0 FROM tab1 AS cor0 ---- -12 -25 -9 query I rowsort SELECT + ( - col2 ) * - cor0.col0 + - col1 AS col2 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT DISTINCT col0 + col0 * col1 FROM tab0 AS cor0 ---- 2088 3430 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-9521 SELECT DISTINCT - - col1 + + 46 * + col0 DIV col0 + + col2 FROM tab0 AS cor0 ---- 144 165 219 skipif mysql # not compatible query I rowsort label-9521 SELECT DISTINCT - - col1 + + 46 * + col0 / col0 + + col2 FROM tab0 AS cor0 ---- 144 165 219 onlyif mysql # use DIV operator for integer division query I rowsort label-9522 SELECT - 84 * - col2 + + col1 * cor0.col1 DIV col0 FROM tab2 AS cor0 ---- 2228 2405 3195 skipif mysql # not compatible query I rowsort label-9522 SELECT - 84 * - col2 + + col1 * cor0.col1 / col0 FROM tab2 AS cor0 ---- 2228 2405 3195 query I rowsort SELECT DISTINCT - + cor0.col1 * 31 + col2 + + cor0.col2 FROM tab1 AS cor0 ---- -196 -211 -698 query I rowsort SELECT ALL ( col1 ) - + col2 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ALL 72 AS col2 FROM tab1 AS cor0 ---- 72 72 72 query I rowsort SELECT DISTINCT col1 - ( + 4 ) AS col2 FROM tab1 ---- 22 6 9 query I rowsort SELECT DISTINCT - col1 + col1 * tab2.col2 + col0 FROM tab2 ---- 1553 708 813 query I rowsort SELECT col2 + + ( col1 ) * col0 + col0 * - 71 FROM tab2 ---- -253 -4228 -910 query I rowsort SELECT ALL tab0.col0 * + col0 + col0 FROM tab0 ---- 1260 600 8010 query I rowsort SELECT - 33 * 87 * + col2 FROM tab2 ---- -109098 -74646 -77517 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col1 col1 FROM tab1, tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT ALL - 13 + + col1 FROM tab2 ---- 18 4 46 onlyif mysql # use DIV operator for integer division query I rowsort label-9533 SELECT ALL - 25 DIV cor0.col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-9533 SELECT ALL - 25 / cor0.col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT + 85 * - col1 FROM tab2 ---- -1445 -2635 -5015 query I rowsort SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9536 SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9536 SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL - cor0.col0 + 14 FROM tab1 AS cor0 ---- -50 -66 11 query I rowsort SELECT + 5 + col2 AS col0 FROM tab0 cor0 ---- 38 6 87 query I rowsort SELECT DISTINCT + 79 FROM tab0 ---- 79 query I rowsort SELECT - col2 * col0 AS col0 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT ALL 12 * col1 AS col1 FROM tab0 ---- 1032 1092 1164 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9542 SELECT col1 + + CAST( NULL AS SIGNED ) * + 28 AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9542 SELECT col1 + + CAST ( NULL AS INTEGER ) * + 28 AS col2 FROM tab2 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9543 SELECT DISTINCT col0 DIV tab0.col0 FROM tab0 ---- 1 skipif mysql # not compatible query I rowsort label-9543 SELECT DISTINCT col0 / tab0.col0 FROM tab0 ---- 1 query I rowsort SELECT ALL cor1.col1 * cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to f2938bee011b8d49dd931b1f9235e7f5 onlyif mysql # use DIV operator for integer division query I rowsort label-9545 SELECT col0 DIV - CAST( col2 AS SIGNED ) AS col0 FROM tab0 ---- -1 -35 0 skipif mysql # not compatible query I rowsort label-9545 SELECT col0 / - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 ---- -1 -35 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * ( + col0 ) col1 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT col2 + col2 * tab2.col0 + col2 FROM tab2 ---- 2080 243 3078 query I rowsort SELECT ALL + 52 - + 20 FROM tab1, tab2 AS cor0 ---- 9 values hashing to d30a2acbf33c88274474306936d3227b query I rowsort SELECT + col2 * col1 + + col1 + - col0 FROM tab2 ---- 1515 584 861 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 52 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 76100d10f51995d20efdeb657e444d3c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9551 SELECT col2 / CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9551 SELECT col2 / CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 + + 96 * - col0 FROM tab2 cor0 ---- -679 -7566 -7663 query I rowsort SELECT ALL + col2 * + 22 FROM tab0 AS cor0 ---- 1804 22 726 query I rowsort SELECT DISTINCT - 2 AS col0 FROM tab2, tab2 AS cor0 ---- -2 query I rowsort SELECT ALL col0 * + col1 AS col1 FROM tab1 ---- 1040 640 78 query IIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2 ---- 972 values hashing to cee640567b2a4ba7d97109d5025bf4d9 query I rowsort SELECT DISTINCT - - col1 * - cor0.col2 + + col0 FROM tab2 AS cor0 ---- -1456 -567 -830 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9558 SELECT DISTINCT + col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -54 -67 23 skipif mysql # not compatible query I rowsort label-9558 SELECT DISTINCT + col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -54 -67 23 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3 ---- 3645 values hashing to 9b60cb1db2fb2fa5700b0e572b4b6546 query I rowsort SELECT - col2 * cor0.col0 + col2 * 16 AS col2 FROM tab1 AS cor0 ---- -2736 -6144 702 query I rowsort SELECT DISTINCT 73 AS col0 FROM tab0 ---- 73 query I rowsort SELECT 59 + col1 * + col2 AS col1 FROM tab0 AS cor0 ---- 156 2897 7521 onlyif mysql # use DIV operator for integer division query I rowsort label-9563 SELECT + 39 + + 50 DIV + col0 + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 103 119 58 skipif mysql # not compatible query I rowsort label-9563 SELECT + 39 + + 50 / + col0 + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 103 119 58 query I rowsort SELECT cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT DISTINCT - 46 FROM tab0 ---- -46 onlyif mysql # use DIV operator for integer division query I rowsort label-9566 SELECT ALL + col2 * + col1 DIV col1 + + col0 * col2 * col0 FROM tab0 AS cor0 ---- 1226 19041 649604 skipif mysql # not compatible query I rowsort label-9566 SELECT ALL + col2 * + col1 / col1 + + col0 * col2 * col0 FROM tab0 AS cor0 ---- 1226 19041 649604 query I rowsort SELECT ALL + 67 * + col2 FROM tab2 AS cor0 ---- 1742 1809 2546 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 col2 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT - - 50 AS col2 FROM tab1 AS cor0 ---- 50 query I rowsort SELECT - tab2.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT ALL + tab1.col1 * col1 AS col1 FROM tab1 ---- 100 169 676 onlyif mysql # use DIV operator for integer division query I rowsort label-9572 SELECT DISTINCT - col2 DIV - col0 + - col0 + cor0.col1 FROM tab2 cor0 ---- -19 -62 27 skipif mysql # not compatible query I rowsort label-9572 SELECT DISTINCT - col2 / - col0 + - col0 + cor0.col1 FROM tab2 cor0 ---- -19 -62 27 onlyif mysql # use DIV operator for integer division query I rowsort label-9573 SELECT - + col0 + col0 DIV + col1 AS col1 FROM tab1 cor0 ---- -3 -58 -74 skipif mysql # not compatible query I rowsort label-9573 SELECT - + col0 + col0 / + col1 AS col1 FROM tab1 cor0 ---- -3 -58 -74 query I rowsort SELECT DISTINCT + - 98 * + col2 AS col2 FROM tab1 AS cor0 ---- -5292 -5586 -9408 onlyif mysql # use DIV operator for integer division query I rowsort label-9575 SELECT + - col2 + - 61 DIV ( cor0.col1 ) AS col1 FROM tab1 cor0 ---- -100 -56 -63 skipif mysql # not compatible query I rowsort label-9575 SELECT + - col2 + - 61 / ( cor0.col1 ) AS col1 FROM tab1 cor0 ---- -100 -56 -63 query I rowsort SELECT + col1 * 44 * col0 FROM tab0 AS cor0 ---- 149380 356356 90816 query I rowsort SELECT col0 * - 87 FROM tab1 cor0 ---- -261 -5568 -6960 query I rowsort SELECT - col2 * ( - col2 ) + col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT - + col0 * ( col0 ) FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT ALL + - col2 * cor0.col0 + + col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT ALL ( col2 ) + col1 * + col0 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT - 28 + + cor0.col2 FROM tab0 AS cor0 ---- -27 5 54 query I rowsort SELECT ALL 54 FROM tab1, tab1 AS cor0 ---- 9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09 query I rowsort SELECT + 19 AS col0 FROM tab1, tab0 cor0 ---- 9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11 query I rowsort SELECT DISTINCT col2 * + col1 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT - 59 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f query I rowsort SELECT ALL - ( + col0 * col1 ) FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT - 46 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 43 col1 FROM tab2 ---- 43 43 43 query I rowsort SELECT ALL + tab1.col2 * + tab1.col0 AS col0 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - tab2.col0 * + col0 FROM tab2 ---- -49 -6084 -6241 skipif mysql # not compatible query I rowsort SELECT + CAST ( 11 AS REAL ) AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to f4d199584b44732f1a897e6691b4ea00 query I rowsort SELECT DISTINCT col2 + col2 AS col2 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT cor0.col2 * - cor0.col0 * + col1 + 19 + ( col0 * ( + 16 ) ) AS col0 FROM tab0 AS cor0 ---- -2816 -662675 -67709 query I rowsort SELECT DISTINCT + + col0 * col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - - ( - col0 ) AS col0 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - col0 * + ( + 88 ) FROM tab0 ---- -2112 -3080 -7832 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9598 SELECT + + col1 * CAST( col0 AS SIGNED ) * + cor0.col2 + + 41 AS col2 FROM tab1 AS cor0 ---- 36521 4253 99881 skipif mysql # not compatible query I rowsort label-9598 SELECT + + col1 * CAST ( col0 AS INTEGER ) * + cor0.col2 + + 41 AS col2 FROM tab1 AS cor0 ---- 36521 4253 99881 query I rowsort SELECT DISTINCT ( - cor0.col0 ) FROM tab1, tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT col1 * 57 AS col1 FROM tab1 ---- 1482 570 741 query I rowsort SELECT + tab2.col2 * - 59 FROM tab2 ---- -1534 -1593 -2242 query I rowsort SELECT - ( col2 ) * + col0 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT col1 * col2 FROM tab0 cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-9604 SELECT DISTINCT col1 DIV - 3 AS col1 FROM tab0 ---- -28 -30 -32 skipif mysql # not compatible query I rowsort label-9604 SELECT DISTINCT col1 / - 3 AS col1 FROM tab0 ---- -28 -30 -32 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 73 + + tab0.col2 col0 FROM tab0 ---- 106 155 74 query I rowsort SELECT 22 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 20 col0 FROM tab2 AS cor0 ---- -20 -20 -20 query I rowsort SELECT + ( cor0.col0 ) * col0 * + ( col2 ) FROM tab1 AS cor0 ---- 233472 486 614400 query I rowsort SELECT ALL - 31 * col0 FROM tab1 AS cor0 ---- -1984 -2480 -93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9610 SELECT + CAST( NULL AS SIGNED ) * - col0 * col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9610 SELECT + CAST ( NULL AS INTEGER ) * - col0 * col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9611 SELECT - + CAST( NULL AS SIGNED ) + + col0 * col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9611 SELECT - + CAST ( NULL AS INTEGER ) + + col0 * col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 + + col0 * + cor0.col0 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT + 31 * - col0 FROM tab1 cor0 ---- -1984 -2480 -93 query I rowsort SELECT DISTINCT - col1 + col2 AS col0 FROM tab1 ---- 28 47 83 query I rowsort SELECT DISTINCT + col1 + col0 * - col1 * + ( ( col2 ) ) AS col2 FROM tab1 ---- -36470 -4186 -99827 query I rowsort SELECT + col0 + 20 FROM tab1 ---- 100 23 84 query I rowsort SELECT DISTINCT - 48 * col2 + + col0 + col1 FROM tab2 AS cor0 ---- -1111 -1258 -1728 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9618 SELECT ALL - CAST( NULL AS SIGNED ) * col2 + - col1 * + cor0.col2 / col0 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9618 SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + - col1 * + cor0.col2 / col0 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 0 * col1 AS col1 FROM tab1 cor0 ---- 0 query I rowsort SELECT ALL + + col2 - col0 * col1 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL col1 + col0 AS col2 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL - col0 + col0 + col2 AS col0 FROM tab0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-9623 SELECT ALL + + ( cor0.col1 ) DIV - 39 AS col0 FROM tab2 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-9623 SELECT ALL + + ( cor0.col1 ) / - 39 AS col0 FROM tab2 AS cor0 ---- -1 0 0 query I rowsort SELECT ALL - - 82 * - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -2132 -2214 -3116 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * cor0.col1 col0 FROM tab2 cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT + col0 + - col0 AS col2 FROM tab2 cor0 ---- 0 query I rowsort SELECT DISTINCT col0 * col2 * col1 + + col1 FROM tab0 ---- 3492 664209 68198 query I rowsort SELECT + col1 * - tab2.col1 * col1 FROM tab2 ---- -205379 -29791 -4913 onlyif mysql # use DIV operator for integer division query I rowsort label-9629 SELECT + 89 + - col2 DIV col0 FROM tab2 AS cor0 ---- 86 89 89 skipif mysql # not compatible query I rowsort label-9629 SELECT + 89 + - col2 / col0 FROM tab2 AS cor0 ---- 86 89 89 query I rowsort SELECT ALL + 2 * col1 FROM tab1 AS cor0 ---- 20 26 52 onlyif mysql # use DIV operator for integer division query I rowsort label-9631 SELECT DISTINCT + - col0 + cor0.col1 DIV - col2 AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-9631 SELECT DISTINCT + - col0 + cor0.col1 / - col2 AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT 53 + cor0.col0 * col2 AS col1 FROM tab2 AS cor0 ---- 2081 242 3055 query I rowsort SELECT ALL 14 + - col1 AS col0 FROM tab1 AS cor0 ---- -12 1 4 query I rowsort SELECT + col2 - ( + 44 ) AS col1 FROM tab1 AS cor0 ---- 10 13 52 query I rowsort SELECT ALL + cor0.col0 + - col0 * - col0 FROM tab1 cor0 ---- 12 4160 6480 onlyif mysql # use DIV operator for integer division query I rowsort label-9636 SELECT DISTINCT - col2 * + col1 DIV col1 + cor0.col2 * - col1 FROM tab2 AS cor0 ---- -1560 -684 -864 skipif mysql # not compatible query I rowsort label-9636 SELECT DISTINCT - col2 * + col1 / col1 + cor0.col2 * - col1 FROM tab2 AS cor0 ---- -1560 -684 -864 query I rowsort SELECT DISTINCT col0 * - ( col1 ) + col1 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT - col0 * col2 + cor0.col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT ALL - cor0.col0 - - col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT - col0 + ( + 20 * col2 ) AS col0 FROM tab1 AS cor0 ---- 1076 1077 1840 query I rowsort SELECT DISTINCT - col1 + col0 * col2 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT ALL + + col0 + + 74 FROM tab1 AS cor0 ---- 138 154 77 onlyif mysql # use DIV operator for integer division query I rowsort label-9643 SELECT ALL + col0 * col0 + - col0 DIV cor0.col2 FROM tab0 AS cor0 ---- 1190 576 7920 skipif mysql # not compatible query I rowsort label-9643 SELECT ALL + col0 * col0 + - col0 / cor0.col2 FROM tab0 AS cor0 ---- 1190 576 7920 query I rowsort SELECT DISTINCT col0 * - 99 + - col2 FROM tab0 AS cor0 ---- -2409 -3466 -8893 query I rowsort SELECT cor0.col2 - + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col0 - - ( + col0 ) FROM tab1 AS cor0 ---- 0 query I rowsort SELECT ALL + col1 * 85 AS col0 FROM tab1 AS cor0 ---- 1105 2210 850 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9648 SELECT + col1 - CAST( - 38 AS SIGNED ) FROM tab0 AS cor0 ---- 124 129 135 skipif mysql # not compatible query I rowsort label-9648 SELECT + col1 - CAST ( - 38 AS INTEGER ) FROM tab0 AS cor0 ---- 124 129 135 onlyif mysql # use DIV operator for integer division query I rowsort label-9649 SELECT DISTINCT - col2 DIV - col1 + col1 * col0 * col1 FROM tab2 AS cor0 ---- 22833 271518 6727 skipif mysql # not compatible query I rowsort label-9649 SELECT DISTINCT - col2 / - col1 + col1 * col0 * col1 FROM tab2 AS cor0 ---- 22833 271518 6727 query I rowsort SELECT DISTINCT + col0 * col0 + + col1 FROM tab2 AS cor0 ---- 6143 6258 80 query I rowsort SELECT ALL - + col2 * - col1 - 91 * - col0 * + col0 AS col1 FROM tab0 cor0 ---- 111572 55254 728273 query I rowsort SELECT col0 * col0 + + col0 AS col1 FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT - + col0 + - col0 * + col0 FROM tab2 AS cor0 ---- -56 -6162 -6320 query I rowsort SELECT DISTINCT - + 11 * + 78 AS col1 FROM tab1 AS cor0 ---- -858 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9655 SELECT CAST( NULL AS SIGNED ) * 50 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9655 SELECT CAST ( NULL AS INTEGER ) * 50 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 53 9 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 * + cor0.col1 col0 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL - ( + col2 ) FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( + col0 AS REAL ) + - col1 AS col1 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT ALL + cor0.col1 + - 80 * - col0 FROM tab2 cor0 ---- 591 6299 6337 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9661 SELECT DISTINCT + CAST( col0 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-9661 SELECT DISTINCT + CAST ( col0 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT + 7 FROM tab0, tab2 AS cor0 ---- 7 query I rowsort SELECT ALL cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT ALL 7 * + col2 + col2 * col0 AS col1 FROM tab1 AS cor0 ---- 4047 540 8352 query I rowsort SELECT DISTINCT - 91 + + col0 * + col2 + col2 FROM tab2 AS cor0 ---- 125 1963 2949 onlyif mysql # use DIV operator for integer division query I rowsort label-9666 SELECT ALL - - 34 DIV col0 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-9666 SELECT ALL - - 34 / col0 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT - - 17 + - col0 * col2 AS col2 FROM tab2 AS cor0 ---- -172 -2011 -2985 query I rowsort SELECT ALL - ( + col0 ) AS col2 FROM tab0 cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + - col1 col1 FROM tab1 AS cor0 ---- -20 -26 -52 onlyif mysql # use DIV operator for integer division query I rowsort label-9670 SELECT DISTINCT + col1 DIV cor0.col2 + - col0 + col1 * + col0 * col0 AS col0 FROM tab0 AS cor0 ---- 118887 49514 720723 skipif mysql # not compatible query I rowsort label-9670 SELECT DISTINCT + col1 / cor0.col2 + - col0 + col1 * + col0 * col0 AS col0 FROM tab0 AS cor0 ---- 118887 49514 720723 onlyif mysql # use DIV operator for integer division query I rowsort label-9671 SELECT DISTINCT + 35 DIV + col2 + + col0 AS col0 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-9671 SELECT DISTINCT + 35 / + col2 + + col0 AS col0 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT - col2 * - cor0.col1 + - col1 FROM tab2 AS cor0 ---- 1475 629 806 query I rowsort SELECT - tab0.col2 + col2 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9674 SELECT ALL col2 - - col2 DIV + col0 AS col0 FROM tab0 AS cor0 ---- 1 34 82 skipif mysql # not compatible query I rowsort label-9674 SELECT ALL col2 - - col2 / + col0 AS col0 FROM tab0 AS cor0 ---- 1 34 82 query I rowsort SELECT DISTINCT + + col1 * col1 + + cor0.col0 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT ALL - ( col1 ) * - col0 + + col0 AS col1 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT cor0.col0 * + col0 AS col2 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT - + col2 * - col1 AS col0 FROM tab2 AS cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 40 * + cor0.col0 * col0 + - col2 col0 FROM tab0 AS cor0 ---- -23073 -316922 -49001 query I rowsort SELECT ALL - col2 + col2 - col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 66 col0 FROM tab2 AS cor0 ---- 66 66 66 query I rowsort SELECT ALL - col1 * - col0 + + col1 + col2 FROM tab2 AS cor0 ---- 1398 275 4687 query I rowsort SELECT DISTINCT - - 49 AS col1 FROM tab1 AS cor0 ---- 49 query I rowsort SELECT DISTINCT + col1 * cor0.col2 + + col0 AS col2 FROM tab0 AS cor0 ---- 132 2862 7551 onlyif mysql # use DIV operator for integer division query I rowsort label-9685 SELECT col0 DIV col0 FROM tab1 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9685 SELECT col0 / col0 FROM tab1 cor0 ---- 1 1 1 query I rowsort SELECT col1 * cor0.col2 - - col0 AS col1 FROM tab2 AS cor0 ---- 1612 725 844 onlyif mysql # use DIV operator for integer division query I rowsort label-9687 SELECT col0 - - col1 DIV col2 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-9687 SELECT col0 - - col1 / col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT col0 * col2 - col1 FROM tab2 ---- 158 1969 2985 query I rowsort SELECT ALL - col1 + - tab2.col0 AS col1 FROM tab2 ---- -137 -38 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 34 + col1 col1 FROM tab0 AS cor0 ---- 52 57 63 query I rowsort SELECT ALL - col2 + + col2 + col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL + 35 + col1 AS col1 FROM tab1 AS cor0 ---- 45 48 61 query I rowsort SELECT ( 78 ) * + col0 FROM tab2 AS cor0 ---- 546 6084 6162 query I rowsort SELECT - + 74 AS col1 FROM tab0 AS cor0 ---- -74 -74 -74 query I rowsort SELECT ALL + col2 * - col1 + - col1 AS col0 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT DISTINCT - 94 * 88 * + col2 FROM tab2 AS cor0 ---- -215072 -223344 -314336 query I rowsort SELECT tab1.col0 + tab1.col0 * col1 FROM tab1 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( cor0.col0 ) col2 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT - 41 * - 47 AS col0 FROM tab1 AS cor0 ---- 1927 1927 1927 query I rowsort SELECT ALL 1 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9701 SELECT + CAST( - 73 AS SIGNED ) + col0 FROM tab2 ---- -66 5 6 skipif mysql # not compatible query I rowsort label-9701 SELECT + CAST ( - 73 AS INTEGER ) + col0 FROM tab2 ---- -66 5 6 query I rowsort SELECT DISTINCT + + ( - col1 ) AS col2 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT DISTINCT - col1 + col2 * - col0 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT DISTINCT - col2 + - 61 * col2 FROM tab1 AS cor0 ---- -3348 -3534 -5952 query I rowsort SELECT - 81 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1 query I rowsort SELECT DISTINCT + 90 AS col1 FROM tab1 ---- 90 query I rowsort SELECT + cor0.col1 * - tab1.col2 FROM tab1, tab1 cor0 ---- 9 values hashing to d85bc2e8ce42c10576fce198c34232af query I rowsort SELECT ALL - col0 * + 13 FROM tab1 ---- -1040 -39 -832 query III rowsort SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col2 * - col0 ) ---- query I rowsort SELECT - col1 * + col1 * - col2 AS col2 FROM tab1 ---- 16224 36504 5700 onlyif mysql # use DIV operator for integer division query I rowsort label-9711 SELECT ALL - col2 * col2 DIV - col2 FROM tab1 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-9711 SELECT ALL - col2 * col2 / - col2 FROM tab1 ---- 54 57 96 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( tab2.col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9713 SELECT ALL - col0 - tab0.col1 DIV tab0.col2 AS col0 FROM tab0 ---- -132 -26 -90 skipif mysql # not compatible query I rowsort label-9713 SELECT ALL - col0 - tab0.col1 / tab0.col2 AS col0 FROM tab0 ---- -132 -26 -90 query III rowsort SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT ALL col1 + col2 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 * - col1 AND ( - col2 + + col1 * col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + tab1.col1 col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT ALL + col1 * + col0 + col0 AS col1 FROM tab0 ---- 2088 3430 8188 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + - col2 col0 FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9719 SELECT - col1 DIV tab1.col2 + col0 * tab1.col0 + + col2 AS col0 FROM tab1 ---- 4153 63 6496 skipif mysql # not compatible query I rowsort label-9719 SELECT - col1 / tab1.col2 + col0 * tab1.col0 + + col2 AS col0 FROM tab1 ---- 4153 63 6496 query I rowsort SELECT DISTINCT + col0 * - col0 * col2 + col2 * col2 + + col1 FROM tab2 ---- -157449 -235697 -563 query I rowsort SELECT ALL - col1 * + col0 + + col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT ALL - col2 * col0 + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - cor0.col0 + + col2 col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT ALL - col2 * - col1 + - col2 FROM tab1 AS cor0 ---- 1152 1350 513 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + cor0.col2 * col2 col2 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT + - col2 * col0 * + col0 + col0 * col1 AS col1 FROM tab1 AS cor0 ---- -232832 -408 -613360 query I rowsort SELECT cor0.col2 * col1 + + col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT ALL cor0.col1 + col1 * + col1 * - col2 AS col0 FROM tab2 AS cor0 ---- -10965 -25916 -90447 query I rowsort SELECT col2 * col0 * col0 AS col0 FROM tab1 AS cor0 ---- 233472 486 614400 query I rowsort SELECT ALL + col0 + col0 * col2 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT col0 * + col2 + cor0.col1 AS col1 FROM tab1 cor0 ---- 188 3658 7693 query I rowsort SELECT DISTINCT col2 + tab2.col1 FROM tab2 ---- 55 58 85 query I rowsort SELECT DISTINCT + col2 * col0 + + col1 + - col2 AS col2 FROM tab2 ---- 193 2061 2981 query I rowsort SELECT col2 * col0 + col1 FROM tab1 ---- 188 3658 7693 onlyif mysql # use DIV operator for integer division query I rowsort label-9735 SELECT - col2 + col0 DIV col1 AS col1 FROM tab1 AS cor0 ---- -51 -54 -90 skipif mysql # not compatible query I rowsort label-9735 SELECT - col2 + col0 / col1 AS col1 FROM tab1 AS cor0 ---- -51 -54 -90 query I rowsort SELECT - + col1 * col1 * - col0 + - col2 AS col0 FROM tab2 AS cor0 ---- 22793 271492 6700 query I rowsort SELECT cor0.col1 * + col0 + + col1 + col1 AS col2 FROM tab1 AS cor0 ---- 1066 130 660 query I rowsort SELECT - cor0.col0 + 24 AS col0 FROM tab1 cor0 ---- -40 -56 21 query I rowsort SELECT ALL - col0 + col0 AS col0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT ALL 44 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 0cc3e52e781e46962291c3060c6ae73b query I rowsort SELECT ALL cor0.col1 * + 91 AS col0 FROM tab1 AS cor0 ---- 1183 2366 910 query I rowsort SELECT - - 87 AS col0 FROM tab0 AS cor0 ---- 87 87 87 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9743 SELECT ALL CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9743 SELECT ALL CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col1 * 66 FROM tab1 cor0 ---- 1716 660 858 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9745 SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9745 SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9746 SELECT DISTINCT + CAST( col1 AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0 ---- 20 26 52 skipif mysql # not compatible query I rowsort label-9746 SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT DISTINCT - + ( col0 ) + col0 AS col1 FROM tab0 cor0 ---- 0 skipif mysql # not compatible query I rowsort SELECT CAST ( + col0 AS REAL ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-9749 SELECT ALL + - 96 DIV cor0.col0 FROM tab0 AS cor0 ---- -1 -2 -4 skipif mysql # not compatible query I rowsort label-9749 SELECT ALL + - 96 / cor0.col0 FROM tab0 AS cor0 ---- -1 -2 -4 query I rowsort SELECT col2 - ( 63 ) FROM tab1 ---- -6 -9 33 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col0 * col1 col2 FROM tab0 ---- 2031 3394 8017 query I rowsort SELECT + col2 * - tab1.col1 + - ( - col0 ) AS col1 FROM tab1 ---- -1168 -1401 -506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9753 SELECT ALL - tab2.col2 * - CAST( NULL AS SIGNED ) + col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9753 SELECT ALL - tab2.col2 * - CAST ( NULL AS INTEGER ) + col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 91 FROM tab1, tab1 AS cor0 ---- 91 query I rowsort SELECT - - col2 * col2 + + ( - col0 * col1 ) AS col1 FROM tab0 AS cor0 ---- -1375 -3394 -975 query I rowsort SELECT DISTINCT - 76 + + col0 * col1 FROM tab0 ---- 1988 3319 8023 query I rowsort SELECT - - col0 * + col2 + 24 FROM tab2 AS cor0 ---- 2052 213 3026 query I rowsort SELECT ALL + 71 * + col1 FROM tab1 ---- 1846 710 923 query I rowsort SELECT ALL 95 * + col2 AS col2 FROM tab1 ---- 5130 5415 9120 query I rowsort SELECT tab0.col2 * - 26 FROM tab0 ---- -2132 -26 -858 query I rowsort SELECT ALL + 43 * - col0 * + tab1.col0 AS col2 FROM tab1 ---- -176128 -275200 -387 query I rowsort SELECT + 8 * + col1 FROM tab0 ---- 688 728 776 query I rowsort SELECT ALL cor0.col0 * 8 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 73e08a518d096a24339971f6eea68dc3 query I rowsort SELECT + 67 * + col1 FROM tab1 ---- 1742 670 871 query I rowsort SELECT + + 1 * cor0.col1 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT col1 * col0 + ( col2 ) * col0 + + 1 FROM tab2 AS cor0 ---- 407 4346 6631 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + + col0 * tab0.col0 col1 FROM tab0 ---- 1190 552 7832 query I rowsort SELECT 78 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 * col1 col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT - col2 * col1 - col2 * col2 FROM tab0 ---- -14186 -3927 -98 query I rowsort SELECT ALL + - 78 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to c4f3c63f98c3c08f2848f46850a476d4 query I rowsort SELECT ALL - col0 + 54 AS col0 FROM tab0 cor0 ---- -35 19 30 query I rowsort SELECT ALL cor0.col2 * + col2 AS col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT + + col1 * + ( + col2 + cor0.col1 * - col1 ) FROM tab1 AS cor0 ---- -16172 -430 -949 query I rowsort SELECT DISTINCT + + col2 * + 5 FROM tab2 AS cor0 ---- 130 135 190 query I rowsort SELECT ALL - tab1.col2 + col2 FROM tab1 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9777 SELECT DISTINCT + col1 * + col2 * + ( tab0.col2 ) + + col2 * col2 DIV - tab0.col2 AS col1 FROM tab0 ---- 611802 93621 96 skipif mysql # not compatible query I rowsort label-9777 SELECT DISTINCT + col1 * + col2 * + ( tab0.col2 ) + + col2 * col2 / - tab0.col2 AS col1 FROM tab0 ---- 611802 93621 96 query I rowsort SELECT - col2 * - col1 AS col0 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT col2 + + tab2.col2 AS col1 FROM tab2 ---- 52 54 76 query I rowsort SELECT ( tab2.col2 ) * col2 AS col2 FROM tab2 ---- 1444 676 729 query I rowsort SELECT DISTINCT col2 - + col0 * ( tab1.col1 ) FROM tab1 ---- -24 -583 -944 query I rowsort SELECT + ( - col0 * 11 ) + - tab1.col1 FROM tab1 ---- -59 -714 -893 query I rowsort SELECT + tab2.col0 + col0 AS col2 FROM tab2 ---- 14 156 158 query I rowsort SELECT DISTINCT tab2.col2 + - 29 * col1 AS col0 FROM tab2 ---- -1685 -455 -872 query I rowsort SELECT DISTINCT + - col1 * 70 AS col1 FROM tab0 AS cor0 ---- -6020 -6370 -6790 query I rowsort SELECT + col0 + col1 * cor0.col1 FROM tab2 cor0 ---- 3559 368 968 onlyif mysql # use DIV operator for integer division query I rowsort label-9787 SELECT ALL - - col2 DIV + cor0.col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9787 SELECT ALL - - col2 / + cor0.col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT + col1 * 97 + + col0 * + col2 AS col1 FROM tab2 AS cor0 ---- 3196 4651 7751 onlyif mysql # use DIV operator for integer division query I rowsort label-9789 SELECT + col2 DIV 80 AS col1 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9789 SELECT + col2 / 80 AS col1 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9790 SELECT col2 + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 ---- 28 47 83 skipif mysql # not compatible query I rowsort label-9790 SELECT col2 + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT cor0.col1 * - 43 * col1 FROM tab0 cor0 ---- -318028 -356083 -404587 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col2 * - col0 col0 FROM tab2 cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-9793 SELECT col1 * + 41 + col0 DIV + cor0.col0 FROM tab0 AS cor0 ---- 3527 3732 3978 skipif mysql # not compatible query I rowsort label-9793 SELECT col1 * + 41 + col0 / + cor0.col0 FROM tab0 AS cor0 ---- 3527 3732 3978 query I rowsort SELECT col2 + - 25 * 4 * col2 FROM tab1 cor0 ---- -5346 -5643 -9504 onlyif mysql # use DIV operator for integer division query I rowsort label-9795 SELECT cor0.col1 * 15 DIV - 24 FROM tab2 AS cor0 ---- -10 -19 -36 skipif mysql # not compatible query I rowsort label-9795 SELECT cor0.col1 * 15 / - 24 FROM tab2 AS cor0 ---- -10 -19 -36 query I rowsort SELECT ALL + + col2 * + 68 FROM tab1 AS cor0 ---- 3672 3876 6528 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9797 SELECT DISTINCT - col2 / + CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9797 SELECT DISTINCT - col2 / + CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL query I rowsort SELECT DISTINCT + col0 * col1 AS col2 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT - col0 * + ( col2 * col1 ) AS col2 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT ALL col1 * + col0 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT - 23 AS col2 FROM tab0 ---- -23 -23 -23 query I rowsort SELECT DISTINCT 68 FROM tab0 ---- 68 query I rowsort SELECT DISTINCT + cor0.col1 * + col0 + col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT ALL col2 * + cor0.col2 AS col2 FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT - 91 AS col2 FROM tab1 AS cor0 ---- -91 -91 -91 query I rowsort SELECT - 46 + 53 FROM tab0 AS cor0 ---- 7 7 7 query I rowsort SELECT ALL - cor0.col1 * cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -210 -3403 -954 onlyif mysql # use DIV operator for integer division query I rowsort label-9808 SELECT col1 + col2 - 69 DIV 42 AS col2 FROM tab2 AS cor0 ---- 54 57 84 skipif mysql # not compatible query I rowsort label-9808 SELECT col1 + col2 - 69 / 42 AS col2 FROM tab2 AS cor0 ---- 54 57 84 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 91 col0 FROM tab1 AS cor0 ---- 91 91 91 query I rowsort SELECT 47 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d query I rowsort SELECT ALL - col0 + + col0 * - col2 * + col2 + + col2 * - col0 FROM tab1 AS cor0 ---- -211648 -745040 -8913 query I rowsort SELECT - - col2 * col0 + 31 + 91 AS col1 FROM tab2 AS cor0 ---- 2150 311 3124 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 + - col2 col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - ( - 28 ) + cor0.col0 AS col1 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 281a3fb0c8c23bfc05d4cc147fb3cc34 query I rowsort SELECT 70 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 9758da65ae4711e3e8c8def2fe026911 query I rowsort SELECT DISTINCT 7 * - col0 FROM tab1 ---- -21 -448 -560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 40 col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 61 * col2 + + cor0.col1 col2 FROM tab2 AS cor0 ---- -1527 -1616 -2301 query I rowsort SELECT ALL - - 85 - + col1 AS col0 FROM tab0 AS cor0 ---- -1 -12 -6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - col0 ) * + col1 col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT col0 + col1 * 59 AS col1 FROM tab2 AS cor0 ---- 1082 1836 3559 query I rowsort SELECT ALL - - 55 FROM tab0 cor0 ---- 55 55 55 query I rowsort SELECT + 12 AS col1 FROM tab0 AS cor0 ---- 12 12 12 query I rowsort SELECT DISTINCT col2 * - col1 * - tab1.col2 FROM tab1 ---- 119808 32490 75816 query I rowsort SELECT DISTINCT - col0 + col2 AS col1 FROM tab2 cor0 ---- -41 -52 20 skipif mysql # not compatible query I rowsort SELECT DISTINCT cor0.col2 + CAST ( + col2 AS REAL ) + col1 AS col0 FROM tab1 cor0 ---- 124 134 205 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9827 SELECT ALL - + col2 * - CAST( - col1 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0 ---- 16224 36504 5700 skipif mysql # not compatible query I rowsort label-9827 SELECT ALL - + col2 * - CAST ( - col1 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT DISTINCT + + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL col0 * col0 + col2 AS col2 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT DISTINCT - + col1 * + col2 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL col0 + + col0 * - cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT + col0 + ( 67 ) FROM tab1 cor0 ---- 131 147 70 query I rowsort SELECT ALL + col2 * 13 * + col2 AS col2 FROM tab2 AS cor0 ---- 18772 8788 9477 query I rowsort SELECT - - col2 * - ( ( - col1 ) ) - - ( + 16 ) * col0 FROM tab2 cor0 ---- 1910 2782 949 query I rowsort SELECT DISTINCT + + col0 + - ( + col2 ) * col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT + - col0 + + ( col1 ) AS col0 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT DISTINCT + + col2 * - 10 + col0 * col2 FROM tab2 cor0 ---- -81 1768 2622 onlyif mysql # use DIV operator for integer division query I rowsort label-9838 SELECT col1 DIV col0 + col2 FROM tab1 AS cor0 ---- 57 62 96 skipif mysql # not compatible query I rowsort label-9838 SELECT col1 / col0 + col2 FROM tab1 AS cor0 ---- 57 62 96 query I rowsort SELECT DISTINCT cor0.col2 * + col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT 37 FROM tab2 AS cor0 ---- 37 37 37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9841 SELECT - + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9841 SELECT - + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 22 + cor0.col0 FROM tab2, tab1 cor0 ---- 9 values hashing to e851715c7ce4692b85406b3f97d8ae34 query I rowsort SELECT DISTINCT 36 + col2 AS col2 FROM tab1 AS cor0 ---- 132 90 93 onlyif mysql # use DIV operator for integer division query I rowsort label-9844 SELECT - + 76 * 53 DIV col2 + + 67 FROM tab0 AS cor0 ---- -3961 -55 18 skipif mysql # not compatible query I rowsort label-9844 SELECT - + 76 * 53 / col2 + + 67 FROM tab0 AS cor0 ---- -3961 -55 18 query I rowsort SELECT + - 80 FROM tab0 AS cor0 ---- -80 -80 -80 query I rowsort SELECT DISTINCT + cor0.col2 + - col0 AS col1 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT ALL col2 + - col2 + 12 AS col0 FROM tab1 ---- 12 12 12 query I rowsort SELECT + ( + col0 ) AS col2 FROM tab1 cor0 ---- 3 64 80 query I rowsort SELECT ( 18 ) + col0 FROM tab1 AS cor0 ---- 21 82 98 onlyif mysql # use DIV operator for integer division query I rowsort label-9850 SELECT cor0.col1 DIV + col1 + - cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-9850 SELECT cor0.col1 / + col1 + - cor0.col2 / col0 AS col2 FROM tab0 AS cor0 ---- 0 1 1 query I rowsort SELECT 72 + - col0 AS col0 FROM tab1 AS cor0 ---- -8 69 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9852 SELECT - CAST( NULL AS SIGNED ) + - ( col2 ) FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9852 SELECT - CAST ( NULL AS INTEGER ) + - ( col2 ) FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 * - col1 + col2 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT ALL + 59 FROM tab1 ---- 59 59 59 query I rowsort SELECT DISTINCT - ( - col0 ) AS col1 FROM tab1 ---- 3 64 80 query I rowsort SELECT + col2 * col0 + 54 * - col1 FROM tab0 AS cor0 ---- -3852 -5203 2384 query I rowsort SELECT - cor0.col0 + + 31 FROM tab1 AS cor0 ---- -33 -49 28 query I rowsort SELECT + col2 * - col1 + ( + col1 ) AS col1 FROM tab1 ---- -1235 -1378 -560 onlyif mysql # use DIV operator for integer division query I rowsort label-9859 SELECT DISTINCT - col1 * + 79 - + col0 DIV col2 FROM tab0 AS cor0 ---- -6794 -7190 -7698 skipif mysql # not compatible query I rowsort label-9859 SELECT DISTINCT - col1 * + 79 - + col0 / col2 FROM tab0 AS cor0 ---- -6794 -7190 -7698 query I rowsort SELECT - - cor0.col1 - + 19 * - col1 FROM tab1 AS cor0 ---- 200 260 520 query I rowsort SELECT + 18 FROM tab2, tab1 AS cor0 ---- 9 values hashing to b95bafa733666df39c5d3f94760d010f query I rowsort SELECT ( + 76 ) * + cor0.col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 0cfe2a81f38f1a7ef61433888c440e10 onlyif mysql # use DIV operator for integer division query I rowsort label-9863 SELECT - col2 - + cor0.col2 * ( - col0 + - col0 ) DIV col1 FROM tab2 AS cor0 ---- -15 315 42 skipif mysql # not compatible query I rowsort label-9863 SELECT - col2 - + cor0.col2 * ( - col0 + - col0 ) / col1 FROM tab2 AS cor0 ---- -15 315 42 onlyif mysql # use DIV operator for integer division query I rowsort label-9864 SELECT + - col2 DIV - col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9864 SELECT + - col2 / - col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT 9 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to ebef7303942834ca1e6ca8604ec18a07 query I rowsort SELECT - col2 + + 34 * - 61 * - col2 FROM tab1 AS cor0 ---- 111942 118161 199008 query I rowsort SELECT + - cor0.col0 AS col2 FROM tab1 cor0 ---- -3 -64 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9868 SELECT + col2 * CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-9868 SELECT + col2 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT - col2 * - ( col1 ) * + col0 AS col0 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT ALL + + col2 * + col1 AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + ( col0 ) col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT - col2 + col2 * - col2 * + cor0.col1 AS col0 FROM tab2 AS cor0 ---- -22626 -24586 -39910 query I rowsort SELECT DISTINCT 91 AS col1 FROM tab1, tab0 AS cor0 ---- 91 query I rowsort SELECT - ( - 94 ) AS col1 FROM tab1 ---- 94 94 94 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9875 SELECT ALL CAST( - col0 AS SIGNED ) * col1 * - col1 FROM tab2 ---- 22831 271518 6727 skipif mysql # not compatible query I rowsort label-9875 SELECT ALL CAST ( - col0 AS INTEGER ) * col1 * - col1 FROM tab2 ---- 22831 271518 6727 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9876 SELECT + - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9876 SELECT + - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col1 + col1 AS col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT 62 AS col2 FROM tab2 AS cor0 ---- 62 62 62 query I rowsort SELECT - col0 * + 11 FROM tab2 AS cor0 ---- -77 -858 -869 query I rowsort SELECT ALL cor1.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2 ---- 81 values hashing to 9d355f1f2edc347a359dad00d2d3f886 query I rowsort SELECT ALL - col0 + + col2 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT + 26 * col2 FROM tab1 AS cor0 ---- 1404 1482 2496 query I rowsort SELECT DISTINCT - 39 + col0 * 59 FROM tab2 AS cor0 ---- 374 4563 4622 onlyif mysql # use DIV operator for integer division query I rowsort label-9884 SELECT ALL - + cor0.col1 DIV + col2 AS col0 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9884 SELECT ALL - + cor0.col1 / + col2 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + col2 - col0 AS col0 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT + ( + 97 ) FROM tab0 ---- 97 97 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 13 - - col2 col2 FROM tab2 ---- 13 14 25 query I rowsort SELECT DISTINCT - 92 AS col0 FROM tab2 ---- -92 onlyif mysql # use DIV operator for integer division query I rowsort label-9889 SELECT + col1 DIV 65 AS col2 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9889 SELECT + col1 / 65 AS col2 FROM tab2 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 83 * col2 + 96 col2 FROM tab0 AS cor0 ---- -2643 -6710 13 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9891 SELECT ALL - col0 + col0 * - CAST( + 44 + - col0 * - 17 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- -112400 -288 -72512 skipif mysql # not compatible query I rowsort label-9891 SELECT ALL - col0 + col0 * - CAST ( + 44 + - col0 * - 17 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- -112400 -288 -72512 query I rowsort SELECT ALL + 68 + - col1 * col1 FROM tab1 AS cor0 ---- -101 -32 -608 query I rowsort SELECT ALL col1 * + tab1.col0 AS col0 FROM tab1 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * 55 col1 FROM tab0 ---- -1815 -4510 -55 onlyif mysql # use DIV operator for integer division query I rowsort label-9895 SELECT DISTINCT + col0 DIV + col1 + - 45 col0 FROM tab1 AS cor0 ---- -39 -45 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9895 SELECT DISTINCT + col0 / + col1 + - 45 col0 FROM tab1 AS cor0 ---- -39 -45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9896 SELECT ALL - col2 + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9896 SELECT ALL - col2 + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * - col1 + 59 * ( - col1 + + cor0.col1 ) * col1 col0 FROM tab0 AS cor0 ---- -2838 -7462 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * + col0 col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-9899 SELECT DISTINCT - - 75 + col1 DIV - col2 AS col0 FROM tab1 AS cor0 ---- 75 skipif mysql # not compatible query I rowsort label-9899 SELECT DISTINCT - - 75 + col1 / - col2 AS col0 FROM tab1 AS cor0 ---- 75 onlyif mysql # use DIV operator for integer division query I rowsort label-9900 SELECT ALL - tab1.col2 DIV col1 + + col0 - 96 AS col0 FROM tab1 ---- -23 -37 -95 skipif mysql # not compatible query I rowsort label-9900 SELECT ALL - tab1.col2 / col1 + + col0 - 96 AS col0 FROM tab1 ---- -23 -37 -95 query I rowsort SELECT tab0.col2 * tab0.col0 FROM tab0 ---- 35 7298 792 query I rowsort SELECT DISTINCT col1 * tab2.col0 - - 84 FROM tab2 ---- 1427 301 4686 query I rowsort SELECT ALL - - col0 + - ( + col0 * col0 ) AS col0 FROM tab2 AS cor0 ---- -42 -6006 -6162 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + col2 + ( col2 ) * tab1.col2 col1 FROM tab1 ---- 2973 3370 9392 onlyif mysql # use DIV operator for integer division query I rowsort label-9905 SELECT + 2 DIV + col0 + - col0 AS col2 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-9905 SELECT + 2 / + col0 + - col0 AS col2 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT DISTINCT - col1 + tab0.col0 AS col2 FROM tab0 ---- -2 -62 query I rowsort SELECT + col1 * - tab2.col1 FROM tab2 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 95 * col1 * - 69 col0 FROM tab1 ---- -170430 -65550 -85215 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + col0 * + col1 col0 FROM tab1 ---- 24 583 944 onlyif mysql # use DIV operator for integer division query I rowsort label-9910 SELECT ( - col0 ) + ( + col2 ) * tab1.col0 * 4 + - tab1.col0 DIV + col0 col1 FROM tab1 ---- 14527 30639 644 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9910 SELECT ( - col0 ) + ( + col2 ) * tab1.col0 * 4 + - tab1.col0 / + col0 col1 FROM tab1 ---- 14527 30639 644 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( - 65 AS REAL ) AS col1 FROM tab2 cor0 ---- -65 query I rowsort SELECT - 40 * col2 FROM tab0 AS cor0 ---- -1320 -3280 -40 onlyif mysql # use DIV operator for integer division query I rowsort label-9913 SELECT ALL + - col1 * + 92 + col0 - 12 * + col0 DIV - col0 FROM tab1 AS cor0 ---- -1104 -2377 -844 skipif mysql # not compatible query I rowsort label-9913 SELECT ALL + - col1 * + 92 + col0 - 12 * + col0 / - col0 FROM tab1 AS cor0 ---- -1104 -2377 -844 query I rowsort SELECT col2 * + tab0.col1 AS col0 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT 23 AS col0 FROM tab2, tab1 AS cor0 ---- 23 query I rowsort SELECT - - ( 9 ) FROM tab0 AS cor0 ---- 9 9 9 query I rowsort SELECT DISTINCT + + col1 * - col0 AS col2 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT + col1 * - col2 FROM tab0 cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-9919 SELECT ALL - col2 DIV ( - col1 ) + - col0 AS col1 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-9919 SELECT ALL - col2 / ( - col1 ) + - col0 AS col1 FROM tab0 AS cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-9920 SELECT + col2 + col1 DIV + 63 AS col1 FROM tab0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-9920 SELECT + col2 + col1 / + 63 AS col1 FROM tab0 ---- 2 34 83 onlyif mysql # use DIV operator for integer division query I rowsort label-9921 SELECT DISTINCT + col1 * col2 * - col0 + - tab1.col0 + + ( - col0 ) DIV + col0 AS col2 FROM tab1 ---- -36545 -4216 -99921 skipif mysql # not compatible query I rowsort label-9921 SELECT DISTINCT + col1 * col2 * - col0 + - tab1.col0 + + ( - col0 ) / + col0 AS col2 FROM tab1 ---- -36545 -4216 -99921 query I rowsort SELECT col0 * 81 + - col0 FROM tab2 ---- 560 6240 6320 query I rowsort SELECT DISTINCT col2 + - col2 FROM tab1 ---- 0 query I rowsort SELECT DISTINCT col2 + 63 FROM tab2 ---- 101 89 90 query I rowsort SELECT ALL 0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c onlyif mysql # use DIV operator for integer division query I rowsort label-9926 SELECT DISTINCT - + 90 DIV - cor0.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 0 1 skipif mysql # not compatible query I rowsort label-9926 SELECT DISTINCT - + 90 / - cor0.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 0 1 query I rowsort SELECT ALL - + 75 * col1 FROM tab1 cor0 ---- -1950 -750 -975 query I rowsort SELECT DISTINCT + + 36 + + col0 FROM tab1 AS cor0 ---- 100 116 39 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9929 SELECT ALL - col2 * ( - col0 * CAST( NULL AS SIGNED ) + + cor0.col0 ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9929 SELECT ALL - col2 * ( - col0 * CAST ( NULL AS INTEGER ) + + cor0.col0 ) FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9930 SELECT ALL + - col1 DIV + col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-9930 SELECT ALL + - col1 / + col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - cor0.col1 ) col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT + 3 * - 82 FROM tab0 AS cor0 ---- -246 -246 -246 query I rowsort SELECT DISTINCT + - col1 * 91 + col1 AS col0 FROM tab1 AS cor0 ---- -1170 -2340 -900 query I rowsort SELECT - + 22 AS col1 FROM tab1 AS cor0 ---- -22 -22 -22 query I rowsort SELECT DISTINCT 17 AS col2 FROM tab0 AS cor0 ---- 17 query I rowsort SELECT - col2 * col1 + + col0 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT DISTINCT + col0 * tab2.col2 + ( - 92 ) AS col1 FROM tab2 ---- 1936 2910 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + - tab2.col2 col2 FROM tab2 ---- -20 41 52 query I rowsort SELECT + tab2.col2 * col2 * + tab2.col1 + - 95 + - col2 AS col1 FROM tab2 ---- 22477 24415 39763 query I rowsort SELECT 26 + col0 FROM tab0 ---- 115 50 61 query I rowsort SELECT 47 + col1 FROM tab2 ---- 106 64 78 query I rowsort SELECT + 33 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5 query I rowsort SELECT - col0 * 32 FROM tab1 ---- -2048 -2560 -96 query I rowsort SELECT DISTINCT + col2 * - 13 FROM tab2 ---- -338 -351 -494 query I rowsort SELECT + col1 + ( + 99 ) * col0 AS col2 FROM tab0 AS cor0 ---- 2462 3562 8902 query I rowsort SELECT DISTINCT - col1 + col2 AS col0 FROM tab1 cor0 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-9947 SELECT col2 + + col2 DIV 38 AS col1 FROM tab2 AS cor0 ---- 26 27 39 skipif mysql # not compatible query I rowsort label-9947 SELECT col2 + + col2 / 38 AS col1 FROM tab2 AS cor0 ---- 26 27 39 query I rowsort SELECT - col2 + 93 * cor0.col1 FROM tab1 AS cor0 ---- 1113 2364 873 query I rowsort SELECT DISTINCT - + cor0.col2 + 50 * + col2 * col0 AS col2 FROM tab0 AS cor0 ---- 1749 364818 39567 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 cor0, tab0, tab1 AS cor1 ---- 972 values hashing to 5621675b1bd32b061d284d0444c76601 query I rowsort SELECT cor0.col0 * 81 * col0 + + col2 FROM tab0 cor0 ---- 46689 641683 99226 query I rowsort SELECT + + col0 + + 60 * + col2 FROM tab0 cor0 ---- 2004 5009 95 query IIIIIIIII rowsort SELECT ALL * FROM tab1, tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( col1 ) - col0 col1 FROM tab1 ---- -29 -74 -93 query I rowsort SELECT - col2 * - 91 AS col1 FROM tab0 ---- 3003 7462 91 query I rowsort SELECT DISTINCT - col1 + 86 * + col1 * col0 AS col2 FROM tab2 AS cor0 ---- 115481 18631 395713 query I rowsort SELECT DISTINCT - ( - cor0.col0 ) FROM tab2 cor0 ---- 7 78 79 query I rowsort SELECT + 3 AS col2 FROM tab1 cor0 ---- 3 3 3 query I rowsort SELECT + - col0 * - 84 FROM tab2 AS cor0 ---- 588 6552 6636 query I rowsort SELECT ALL + + ( col0 ) AS col0 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT - 3 + + 53 * col2 AS col0 FROM tab2 cor0 ---- 1375 1428 2011 query I rowsort SELECT + ( + col1 ) * - col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL + 90 FROM tab2 AS cor0 ---- 90 90 90 query I rowsort SELECT DISTINCT - - 89 + + 89 + - col1 FROM tab2 AS cor0 ---- 119 147 161 query I rowsort SELECT DISTINCT 35 AS col2 FROM tab2 AS cor0 ---- 35 query I rowsort SELECT - + col0 * + cor0.col2 + col0 AS col2 FROM tab2 AS cor0 ---- -182 -1950 -2923 query I rowsort SELECT ALL - 99 * col2 FROM tab2 cor0 ---- -2574 -2673 -3762 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 + + cor0.col1 col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9969 SELECT + col1 DIV col2 col1 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9969 SELECT + col1 / col2 col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - 70 + - col2 - col0 * - col1 AS col1 FROM tab2 AS cor0 ---- 120 1235 4506 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-9972 SELECT DISTINCT - 72 + col1 DIV 25 AS col2 FROM tab1 AS cor0 ---- -71 -72 skipif mysql # not compatible query I rowsort label-9972 SELECT DISTINCT - 72 + col1 / 25 AS col2 FROM tab1 AS cor0 ---- -71 -72 query I rowsort SELECT + + 22 + - col2 AS col2 FROM tab0 AS cor0 ---- -11 -60 21 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9974 SELECT CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-9974 SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 onlyif mysql # use DIV operator for integer division query I rowsort label-9975 SELECT + cor0.col0 DIV 5 AS col0 FROM tab1, tab1 cor0 ---- 9 values hashing to 9d6ea56075a3dde7d39f95072190cf54 skipif mysql # not compatible query I rowsort label-9975 SELECT + cor0.col0 / 5 AS col0 FROM tab1, tab1 cor0 ---- 9 values hashing to 9d6ea56075a3dde7d39f95072190cf54 query I rowsort SELECT + 77 - + col1 FROM tab2 AS cor0 ---- 18 46 60 query I rowsort SELECT - - col2 + 18 FROM tab2 AS cor0 ---- 44 45 56 query I rowsort SELECT ALL - 11 * 20 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 4d3ddf2ed8ce2219db060917a8716c3b query I rowsort SELECT col0 * - 13 FROM tab2 AS cor0 ---- -1014 -1027 -91 query I rowsort SELECT - col1 * - col1 * + 86 AS col0 FROM tab1 AS cor0 ---- 14534 58136 8600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 11 col1 FROM tab1 ---- 11 11 11 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9982 SELECT + CAST( NULL AS SIGNED ) + - cor0.col0 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-9982 SELECT + CAST ( NULL AS INTEGER ) + - cor0.col0 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 76 col0 FROM tab1, tab0 AS cor0 ---- 76 query I rowsort SELECT + 38 AS col0 FROM tab0 AS cor0 ---- 38 38 38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9985 SELECT CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9985 SELECT CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 12 AS col0 FROM tab2 ---- -12 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * + col0 + cor0.col0 col2 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9988 SELECT + CAST( ( col0 ) AS SIGNED ) FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-9988 SELECT + CAST ( ( col0 ) AS INTEGER ) FROM tab1 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9989 SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 * - col1 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-9989 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 * - col1 FROM tab2 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab0.col0 * + tab0.col1 col1 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT + 61 FROM tab0, tab2, tab0 AS cor0, tab1 ---- 81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1 query I rowsort SELECT 22 FROM tab1, tab0 AS cor0 ---- 9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9 query I rowsort SELECT DISTINCT + 2 FROM tab1 ---- 2 query I rowsort SELECT ALL 78 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 query I rowsort SELECT ALL + - 58 FROM tab2 AS cor0 ---- -58 -58 -58 query I rowsort SELECT col0 * - ( col2 ) * col2 + + 58 AS col0 FROM tab0 ---- -26078 -598378 23 query I rowsort SELECT ALL + col2 * + col0 * col2 AS col1 FROM tab0 ---- 26136 35 598436 query I rowsort SELECT ALL 10 * - 2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to f1cccb95c90889319e7a51e4ae9475bb