hash-threshold 8 statement ok CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER) statement ok INSERT INTO tab0 VALUES(89,91,82) statement ok INSERT INTO tab0 VALUES(35,97,1) statement ok INSERT INTO tab0 VALUES(24,86,33) statement ok INSERT INTO tab1 VALUES(64,10,57) statement ok INSERT INTO tab1 VALUES(3,26,54) statement ok INSERT INTO tab1 VALUES(80,13,96) statement ok INSERT INTO tab2 VALUES(7,31,27) statement ok INSERT INTO tab2 VALUES(79,17,38) statement ok INSERT INTO tab2 VALUES(78,59,26) query I rowsort SELECT DISTINCT + col0 - + 28 * + col1 FROM tab0 ---- -2384 -2459 -2681 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1 SELECT - 40 * cor0.col2 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1 SELECT - 40 * cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2 SELECT - 15 + col0 DIV 99 FROM tab1 AS cor0 ---- -15 -15 -15 skipif mysql # not compatible query I rowsort label-2 SELECT - 15 + col0 / 99 FROM tab1 AS cor0 ---- -15 -15 -15 query I rowsort SELECT ( col1 ) * + ( col1 ) + col1 * col0 FROM tab2 AS cor0 ---- 1178 1632 8083 query I rowsort SELECT - + col1 * cor0.col1 * - 91 AS col2 FROM tab0 AS cor0 ---- 673036 753571 856219 query I rowsort SELECT + col1 * 93 + - col2 * - col1 AS col1 FROM tab1 AS cor0 ---- 1500 2457 3822 query I rowsort SELECT ALL - col2 * + col0 - - col2 AS col2 FROM tab0 cor0 ---- -34 -7216 -759 query I rowsort SELECT - col0 * ( col2 + - col0 ) FROM tab0 cor0 ---- -216 1190 623 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * + 62 - - ( col0 ) col2 FROM tab1 AS cor0 ---- 1615 684 886 query I rowsort SELECT - col2 - + 74 FROM tab0 AS cor0 ---- -107 -156 -75 query I rowsort SELECT col2 - 37 AS col0 FROM tab1 AS cor0 ---- 17 20 59 onlyif mysql # use DIV operator for integer division query I rowsort label-11 SELECT ALL + - col0 DIV col0 + col1 * - col2 AS col2 FROM tab0 cor0 ---- -2839 -7463 -98 skipif mysql # not compatible query I rowsort label-11 SELECT ALL + - col0 / col0 + col1 * - col2 AS col2 FROM tab0 cor0 ---- -2839 -7463 -98 query I rowsort SELECT 40 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0 query I rowsort SELECT - col1 + 86 AS col0 FROM tab1 ---- 60 73 76 query I rowsort SELECT DISTINCT + 70 FROM tab1, tab2 AS cor0 ---- 70 query I rowsort SELECT - col0 * - col1 * 29 FROM tab2 ---- 133458 38947 6293 onlyif mysql # use DIV operator for integer division query I rowsort label-16 SELECT - - col2 DIV + 2 col1 FROM tab1 AS cor0 ---- 27 28 48 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-16 SELECT - - col2 / + 2 col1 FROM tab1 AS cor0 ---- 27 28 48 query I rowsort SELECT + 21 * cor0.col1 * - col1 FROM tab2 AS cor0 ---- -20181 -6069 -73101 query I rowsort SELECT DISTINCT + - cor0.col1 + col1 * + col0 FROM tab2 cor0 ---- 1326 186 4543 onlyif mysql # use DIV operator for integer division query I rowsort label-19 SELECT col1 + + col1 DIV 33 AS col1 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-19 SELECT col1 + + col1 / 33 AS col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT - col2 + - 6 FROM tab2 AS cor0 ---- -32 -33 -44 query I rowsort SELECT + + col0 * + ( - col2 ) + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT ALL - col1 * ( - ( col0 ) ) + col2 AS col1 FROM tab1 AS cor0 ---- 1136 132 697 onlyif mysql # use DIV operator for integer division query I rowsort label-23 SELECT + col0 DIV - 61 FROM tab2 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-23 SELECT + col0 / - 61 FROM tab2 AS cor0 ---- -1 -1 0 query I rowsort SELECT DISTINCT + col0 * + col2 * cor0.col0 + + col1 AS col0 FROM tab1 AS cor0 ---- 233482 512 614413 query I rowsort SELECT 44 * + 37 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 1e13148e8e05f9d52fccb8acdee684b6 query I rowsort SELECT DISTINCT cor0.col1 * col1 + + cor0.col0 AS col2 FROM tab2 cor0 ---- 3559 368 968 onlyif mysql # use DIV operator for integer division query I rowsort label-27 SELECT + col1 DIV 3 AS col2 FROM tab0 cor0 ---- 28 30 32 skipif mysql # not compatible query I rowsort label-27 SELECT + col1 / 3 AS col2 FROM tab0 cor0 ---- 28 30 32 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 59 * col0 col1 FROM tab1 AS cor0 ---- 177 3776 4720 query I rowsort SELECT DISTINCT col1 + - col2 * + col1 AS col0 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT 87 AS col2 FROM tab0 cor0 ---- 87 87 87 query I rowsort SELECT ALL + col1 + col2 * + 19 FROM tab2 AS cor0 ---- 544 553 739 query I rowsort SELECT + + 36 * cor0.col1 - col0 FROM tab1 AS cor0 ---- 296 388 933 query I rowsort SELECT DISTINCT + - 53 * cor0.col2 * ( + col1 * cor0.col0 ) - + cor0.col1 FROM tab0 cor0 ---- -180032 -35198345 -3610022 query I rowsort SELECT ALL cor0.col2 * + col1 AS col2 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 26 27 38 query I rowsort SELECT 58 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to ef6e63aeed2581a168f07646d258f666 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 31 - + col2 col2 FROM tab0 ---- -2 -51 30 query I rowsort SELECT ALL col2 + - tab0.col2 * ( + col0 ) + + col0 FROM tab0 ---- -7127 -735 1 onlyif mysql # use DIV operator for integer division query I rowsort label-39 SELECT ALL + col0 DIV - col2 + 2 AS col1 FROM tab1 ---- 1 2 2 skipif mysql # not compatible query I rowsort label-39 SELECT ALL + col0 / - col2 + 2 AS col1 FROM tab1 ---- 1 2 2 query I rowsort SELECT + 28 * + col2 AS col0 FROM tab1 ---- 1512 1596 2688 query I rowsort SELECT ALL + col2 + - col2 * col2 * - col0 AS col2 FROM tab2 ---- 114114 5130 52754 query I rowsort SELECT ALL - col0 * - tab1.col1 - col0 FROM tab1 ---- 576 75 960 query I rowsort SELECT col0 - ( + col2 * col1 ) FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT - col2 - col0 * + col0 FROM tab1 AS cor0 ---- -4153 -63 -6496 query I rowsort SELECT + col0 * col0 * col1 FROM tab0 AS cor0 ---- 118825 49536 720811 onlyif mysql # use DIV operator for integer division query I rowsort label-46 SELECT 57 + tab1.col0 DIV - tab1.col0 FROM tab1 ---- 56 56 56 skipif mysql # not compatible query I rowsort label-46 SELECT 57 + tab1.col0 / - tab1.col0 FROM tab1 ---- 56 56 56 query I rowsort SELECT DISTINCT 76 + col2 AS col0 FROM tab1 ---- 130 133 172 query I rowsort SELECT col1 * - ( 13 ) + col2 * col1 FROM tab1 AS cor0 ---- 1066 1079 440 query I rowsort SELECT DISTINCT - cor0.col1 * - col1 + - 56 AS col1 FROM tab1 AS cor0 ---- 113 44 620 query I rowsort SELECT tab0.col2 * + 58 + 8 FROM tab0 ---- 1922 4764 66 query I rowsort SELECT ALL + - col2 * - 25 AS col0 FROM tab1 AS cor0 ---- 1350 1425 2400 query I rowsort SELECT + ( + 84 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to cadd876c26338fc58b9297e74fc324d8 query I rowsort SELECT DISTINCT + - col1 + + ( - 45 ) AS col0 FROM tab2 AS cor0 ---- -104 -62 -76 query I rowsort SELECT - - cor0.col2 * col2 - - col1 AS col1 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT ALL + col1 + + 99 * + col2 AS col0 FROM tab2 AS cor0 ---- 2633 2704 3779 onlyif mysql # use DIV operator for integer division query I rowsort label-56 SELECT DISTINCT - + col2 DIV col1 + - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -103 -56 -62 skipif mysql # not compatible query I rowsort label-56 SELECT DISTINCT - + col2 / col1 + - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -103 -56 -62 query I rowsort SELECT ALL + + cor0.col1 * + col2 - col0 AS col1 FROM tab0 cor0 ---- 2814 62 7373 query I rowsort SELECT tab0.col1 + 58 AS col1 FROM tab0 ---- 144 149 155 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col1 + col2 * 61 col0 FROM tab2 ---- 2607 2608 5067 query I rowsort SELECT - ( tab0.col0 ) - + col2 FROM tab0 ---- -171 -36 -57 query I rowsort SELECT DISTINCT ( col0 ) * col1 * col2 AS col2 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT + col1 * 95 FROM tab2 ---- 1615 2945 5605 query I rowsort SELECT col2 * 65 * + col2 FROM tab2 AS cor0 ---- 43940 47385 93860 query I rowsort SELECT ALL + + 22 * col2 FROM tab2 AS cor0 ---- 572 594 836 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 3 col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc query I rowsort SELECT ALL + + col1 + - 66 * + col1 AS col2 FROM tab0 cor0 ---- -5590 -5915 -6305 query I rowsort SELECT DISTINCT - - cor0.col0 * + 48 FROM tab0 AS cor0 ---- 1152 1680 4272 query I rowsort SELECT col2 * + 17 AS col0 FROM tab1 cor0 ---- 1632 918 969 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 * col1 * ( + col1 * col0 ) col0 FROM tab2 AS cor0 ---- 1803649 21178404 47089 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 52 * + col2 col0 FROM tab2 cor0 ---- 1352 1404 1976 query I rowsort SELECT DISTINCT col1 * col2 - - 37 FROM tab2 AS cor0 ---- 1571 683 874 query I rowsort SELECT DISTINCT - col1 + - col1 * 19 FROM tab1 AS cor0 ---- -200 -260 -520 query I rowsort SELECT ALL + + 71 AS col0 FROM tab0 AS cor0 ---- 71 71 71 onlyif mysql # use DIV operator for integer division query I rowsort label-74 SELECT + cor0.col2 + col0 DIV cor0.col1 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-74 SELECT + cor0.col2 + col0 / cor0.col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ( + 22 ) * tab0.col1 - 70 AS col2 FROM tab0 ---- 1822 1932 2064 query I rowsort SELECT + 71 + 37 * col1 FROM tab2 ---- 1218 2254 700 query I rowsort SELECT ALL + col2 * col2 + 16 FROM tab0 cor0 ---- 1105 17 6740 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * + cor0.col1 col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT - - col0 + cor0.col2 - col1 FROM tab0 AS cor0 ---- -29 -61 80 query I rowsort SELECT DISTINCT col1 * cor0.col0 + - col0 AS col0 FROM tab1 AS cor0 ---- 576 75 960 query IIIIIIIIIIII rowsort SELECT * FROM tab1, tab0 cor0, tab0 cor1, tab0 AS cor2 ---- 972 values hashing to 3406497351e4789c89a295ee9b64b201 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to df00d19f178a708f636b036dcb6c6f87 onlyif mysql # use DIV operator for integer division query I rowsort label-83 SELECT DISTINCT - tab0.col0 + col1 DIV col1 AS col1 FROM tab0 ---- -23 -34 -88 skipif mysql # not compatible query I rowsort label-83 SELECT DISTINCT - tab0.col0 + col1 / col1 AS col1 FROM tab0 ---- -23 -34 -88 query I rowsort SELECT ALL 13 + 2 AS col1 FROM tab2 ---- 15 15 15 query I rowsort SELECT DISTINCT 19 AS col0 FROM tab0 ---- 19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 68 * - col0 + col1 col2 FROM tab1 AS cor0 ---- -178 -4342 -5427 query I rowsort SELECT - 52 + cor0.col1 AS col2 FROM tab0 AS cor0 ---- 34 39 45 query I rowsort SELECT ALL + ( col1 + + col0 ) * - col0 AS col1 FROM tab2 ---- -10686 -266 -7584 query I rowsort SELECT - col2 * 63 FROM tab1 ---- -3402 -3591 -6048 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * 25 col0 FROM tab2 ---- 1475 425 775 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 - 25 col2 FROM tab2 AS cor0 ---- -8 34 6 query I rowsort SELECT tab2.col1 + tab2.col0 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to 45123676d9d30ad294b9a8d42384b2df query I rowsort SELECT + 71 * col1 - col0 AS col2 FROM tab0 ---- 6082 6372 6852 query I rowsort SELECT DISTINCT cor0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT 56 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to b5ba4b44e3deadce1edb30e76df61200 query I rowsort SELECT tab2.col1 FROM tab1, tab0, tab0 AS cor0, tab2 ---- 81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7 query I rowsort SELECT - 83 * col1 + ( - 81 * + col1 ) AS col1 FROM tab1 ---- -1640 -2132 -4264 query I rowsort SELECT + 35 AS col2 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc query I rowsort SELECT DISTINCT + col2 + 48 + col0 AS col2 FROM tab1 AS cor0 ---- 105 169 224 query I rowsort SELECT DISTINCT 39 FROM tab0, tab2 AS cor0 ---- 39 query I rowsort SELECT DISTINCT col2 - 49 FROM tab0 AS cor0 ---- -16 -48 33 query I rowsort SELECT DISTINCT - cor0.col2 + - col0 * + 88 FROM tab1 AS cor0 ---- -318 -5689 -7136 query I rowsort SELECT ALL + col0 + - col0 * + col1 FROM tab0 cor0 ---- -2040 -3360 -8010 query I rowsort SELECT DISTINCT - - col2 * - 11 FROM tab0 AS cor0 ---- -11 -363 -902 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-105 SELECT ALL - col2 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-105 SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-106 SELECT ALL - col0 * + CAST( - col0 AS SIGNED ) + col0 col0 FROM tab1 AS cor0 ---- 12 4160 6480 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-106 SELECT ALL - col0 * + CAST ( - col0 AS INTEGER ) + col0 col0 FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT DISTINCT col1 * ( col2 ) * tab0.col2 FROM tab0 ---- 611884 93654 97 query I rowsort SELECT + 31 FROM tab1, tab1 cor0 ---- 9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540 query I rowsort SELECT ( + 34 ) + - col2 AS col0 FROM tab1 cor0 ---- -20 -23 -62 query I rowsort SELECT DISTINCT + ( - 27 ) AS col2 FROM tab1 ---- -27 query I rowsort SELECT DISTINCT - - ( 60 ) AS col2 FROM tab0 AS cor0 ---- 60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 69 col1 FROM tab1 cor0 ---- -69 -69 -69 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-113 SELECT ALL + - col1 / col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-113 SELECT ALL + - col1 / col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - cor0.col1 * - col1 * + col2 FROM tab0 AS cor0 ---- 244068 679042 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-115 SELECT - col0 + + col0 DIV 19 AS col0 FROM tab2 cor0 ---- -7 -74 -75 skipif mysql # not compatible query I rowsort label-115 SELECT - col0 + + col0 / 19 AS col0 FROM tab2 cor0 ---- -7 -74 -75 query I rowsort SELECT - - col1 * + cor0.col0 + ( + col2 * col1 + col2 ) AS col1 FROM tab0 AS cor0 ---- 15643 3493 4935 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * - tab2.col2 * col2 col0 FROM tab2 ---- -17576 -19683 -54872 query I rowsort SELECT 71 * cor0.col1 * - ( cor0.col2 ) + col1 + + cor0.col0 FROM tab2 AS cor0 ---- -108777 -45770 -59389 query I rowsort SELECT - col0 + - col0 * col2 AS col2 FROM tab0 AS cor0 ---- -70 -7387 -816 onlyif mysql # use DIV operator for integer division query I rowsort label-120 SELECT + col1 * 99 DIV 94 AS col2 FROM tab0 AS cor0 ---- 102 90 95 skipif mysql # not compatible query I rowsort label-120 SELECT + col1 * 99 / 94 AS col2 FROM tab0 AS cor0 ---- 102 90 95 query I rowsort SELECT - col0 * - 74 AS col1 FROM tab0 AS cor0 ---- 1776 2590 6586 query I rowsort SELECT ALL + - 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a query I rowsort SELECT DISTINCT + 4 * 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 140 query I rowsort SELECT + 65 * + tab2.col2 FROM tab2 ---- 1690 1755 2470 query I rowsort SELECT ALL - col0 + - 54 FROM tab0 ---- -143 -78 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-126 SELECT - CAST( NULL AS DECIMAL ) * + col0 * col1 + - col2 + + col0 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-126 SELECT - CAST ( NULL AS REAL ) * + col0 * col1 + - col2 + + col0 AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT tab1.col1 + - tab1.col1 * - col1 AS col2 FROM tab1 ---- 110 182 702 onlyif mysql # use DIV operator for integer division query I rowsort label-128 SELECT - 17 * - col1 + cor0.col0 DIV + col0 FROM tab1 AS cor0 ---- 171 222 443 skipif mysql # not compatible query I rowsort label-128 SELECT - 17 * - col1 + cor0.col0 / + col0 FROM tab1 AS cor0 ---- 171 222 443 query I rowsort SELECT DISTINCT - + 20 FROM tab1 cor0 ---- -20 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-130 SELECT DISTINCT - CAST( cor0.col0 AS SIGNED ) FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-130 SELECT DISTINCT - CAST ( cor0.col0 AS INTEGER ) FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - 65 + col0 * + col1 FROM tab1 AS cor0 ---- 13 575 975 query I rowsort SELECT ALL 16 + + col2 * col0 AS col2 FROM tab1 ---- 178 3664 7696 onlyif mysql # use DIV operator for integer division query I rowsort label-133 SELECT ALL - cor0.col1 DIV + col0 col2 FROM tab1 cor0 ---- -8 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-133 SELECT ALL - cor0.col1 / + col0 col2 FROM tab1 cor0 ---- -8 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-134 SELECT - col1 DIV - col0 + + col2 + col0 AS col0 FROM tab1 AS cor0 ---- 121 176 65 skipif mysql # not compatible query I rowsort label-134 SELECT - col1 / - col0 + + col2 + col0 AS col0 FROM tab1 AS cor0 ---- 121 176 65 query I rowsort SELECT - cor0.col0 * + col1 * cor0.col2 AS col1 FROM tab2 cor0 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT + + 88 - col1 * col0 AS col2 FROM tab0 AS cor0 ---- -1976 -3307 -8011 query I rowsort SELECT ALL col1 - col0 * col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 onlyif mysql # use DIV operator for integer division query I rowsort label-138 SELECT - - 17 DIV + col0 + - col2 FROM tab1 AS cor0 ---- -49 -57 -96 skipif mysql # not compatible query I rowsort label-138 SELECT - - 17 / + col0 + - col2 FROM tab1 AS cor0 ---- -49 -57 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-139 SELECT + + 68 * col1 + cor0.col2 DIV col2 AS col0 FROM tab1 cor0 ---- 1769 681 885 skipif mysql # not compatible query I rowsort label-139 SELECT + + 68 * col1 + cor0.col2 / col2 AS col0 FROM tab1 cor0 ---- 1769 681 885 query I rowsort SELECT DISTINCT - 28 + + col0 FROM tab2 AS cor0 ---- -21 50 51 query I rowsort SELECT ALL 9 * col2 - - col1 AS col1 FROM tab1 ---- 512 523 877 query I rowsort SELECT DISTINCT + 70 * col2 + col0 * col0 + + col2 FROM tab2 AS cor0 ---- 1966 7930 8939 query I rowsort SELECT ALL + 15 * col0 + - col2 + col1 AS col2 FROM tab1 AS cor0 ---- 1117 17 913 query I rowsort SELECT - + cor0.col2 + - col1 AS col2 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT 76 * + col1 + - col2 * col1 FROM tab0 AS cor0 ---- -546 3698 7275 query I rowsort SELECT ALL col2 * + col2 * + col2 FROM tab1 cor0 ---- 157464 185193 884736 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-147 SELECT + + col1 * CAST( col1 AS SIGNED ) * - col2 FROM tab2 AS cor0 ---- -10982 -25947 -90506 skipif mysql # not compatible query I rowsort label-147 SELECT + + col1 * CAST ( col1 AS INTEGER ) * - col2 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT ALL col2 * 76 AS col1 FROM tab1 ---- 4104 4332 7296 onlyif mysql # use DIV operator for integer division query I rowsort label-149 SELECT ALL col1 + + col2 DIV - col0 FROM tab1 AS cor0 ---- 10 12 8 skipif mysql # not compatible query I rowsort label-149 SELECT ALL col1 + + col2 / - col0 FROM tab1 AS cor0 ---- 10 12 8 query I rowsort SELECT cor0.col0 * + 71 FROM tab0 AS cor0 ---- 1704 2485 6319 query I rowsort SELECT DISTINCT - col0 * + 10 AS col0 FROM tab0 AS cor0 ---- -240 -350 -890 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + 71 col2 FROM tab1 AS cor0 ---- -9 68 7 query I rowsort SELECT col1 * + 12 AS col1 FROM tab0 AS cor0 ---- 1032 1092 1164 query I rowsort SELECT ALL - cor0.col1 * + cor0.col0 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT col0 * ( 20 ) AS col1 FROM tab2 AS cor0 ---- 140 1560 1580 onlyif mysql # use DIV operator for integer division query I rowsort label-156 SELECT - CAST( ( col2 ) AS SIGNED ) DIV + col0 - col2 FROM tab1 AS cor0 ---- -57 -72 -97 skipif mysql # not compatible query I rowsort label-156 SELECT - CAST ( ( col2 ) AS INTEGER ) / + col0 - col2 FROM tab1 AS cor0 ---- -57 -72 -97 query I rowsort SELECT ALL + - 27 * - col0 AS col0 FROM tab1 AS cor0 ---- 1728 2160 81 query I rowsort SELECT ALL - 93 * 62 FROM tab0, tab2 cor0 ---- 9 values hashing to 2f995db68f8922102be533e1ffc9c6a7 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2 ---- 972 values hashing to 380241bbc503a31e70494611a87ffd99 query I rowsort SELECT ALL + - 50 FROM tab1 cor0 ---- -50 -50 -50 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col2 * - col1 + col2 col1 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-162 SELECT - + CAST( + col0 AS SIGNED ) + cor0.col2 * + col2 FROM tab1 AS cor0 ---- 2913 3185 9136 skipif mysql # not compatible query I rowsort label-162 SELECT - + CAST ( + col0 AS INTEGER ) + cor0.col2 * + col2 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT + ( - 35 ) - + col2 AS col1 FROM tab2 AS cor0 ---- -61 -62 -73 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 AS cor2 ---- 3645 values hashing to 460ecaf0151851c22525e8eac77a0a82 query I rowsort SELECT DISTINCT - col2 * - col0 + + col1 AS col0 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT DISTINCT - col0 * col0 + col1 AS col2 FROM tab1 AS cor0 ---- -4086 -6387 17 query I rowsort SELECT ALL - col1 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL cor0.col1 + - col1 * col2 AS col1 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT DISTINCT + + col1 * col2 * + col2 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT - col1 - col1 AS col0 FROM tab0 ---- -172 -182 -194 query I rowsort SELECT - col0 + - col0 * col0 AS col1 FROM tab2 ---- -56 -6162 -6320 query I rowsort SELECT + + col0 * - col0 * - col2 AS col0 FROM tab0 cor0 ---- 1225 19008 649522 query I rowsort SELECT DISTINCT col2 * + col0 + col2 AS col0 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT DISTINCT + col1 + col2 * - col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 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 ALL + tab1.col1 * - cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 ---- 9 values hashing to bd3a01f5788d5b65679da995dbe27636 query I rowsort SELECT ALL + col0 * + col0 + - tab1.col1 AS col0 FROM tab1 ---- -17 4086 6387 query I rowsort SELECT ALL - cor0.col0 * - cor0.col0 * + col1 + col2 FROM tab2 AS cor0 ---- 106135 1546 358982 onlyif mysql # use DIV operator for integer division query I rowsort label-179 SELECT ALL + col2 * cor0.col1 DIV col0 + + col1 FROM tab2 AS cor0 ---- 150 25 78 skipif mysql # not compatible query I rowsort label-179 SELECT ALL + col2 * cor0.col1 / col0 + + col1 FROM tab2 AS cor0 ---- 150 25 78 query I rowsort SELECT - col0 + + tab0.col2 AS col1 FROM tab0 ---- -34 -7 9 onlyif mysql # use DIV operator for integer division query I rowsort label-181 SELECT DISTINCT + col2 DIV - col0 + col0 AS col0 FROM tab0 AS cor0 ---- 23 35 89 skipif mysql # not compatible query I rowsort label-181 SELECT DISTINCT + col2 / - col0 + col0 AS col0 FROM tab0 AS cor0 ---- 23 35 89 query I rowsort SELECT ALL - cor1.col1 * + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 3a68b2420e96feae5e3ca1f4dd4282df query I rowsort SELECT col2 * cor0.col2 + + cor0.col0 AS col0 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT DISTINCT + 68 * cor0.col1 - + col2 FROM tab0 AS cor0 ---- 5815 6106 6595 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col0 + col0 col0 FROM tab2 AS cor0 ---- 14 156 158 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 83 * col1 col0 FROM tab0 AS cor0 ---- -7138 -7553 -8051 query I rowsort SELECT + col2 * + col2 * - cor0.col0 + + col2 AS col1 FROM tab1 AS cor0 ---- -207879 -737184 -8694 onlyif mysql # use DIV operator for integer division query I rowsort label-188 SELECT + col2 * - col1 - 91 DIV cor0.col1 AS col1 FROM tab2 cor0 ---- -1535 -651 -839 skipif mysql # not compatible query I rowsort label-188 SELECT + col2 * - col1 - 91 / cor0.col1 AS col1 FROM tab2 cor0 ---- -1535 -651 -839 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-189 SELECT + + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-189 SELECT + + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + ( - 24 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 797d0f7c145f8ac623924448c714bbcc query I rowsort SELECT + ( + 87 ) * - col2 + cor0.col0 FROM tab1 AS cor0 ---- -4695 -4895 -8272 onlyif mysql # use DIV operator for integer division query I rowsort label-192 SELECT + col2 + - cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0 ---- 46 57 96 skipif mysql # not compatible query I rowsort label-192 SELECT + col2 + - cor0.col1 / col0 AS col2 FROM tab1 AS cor0 ---- 46 57 96 query I rowsort SELECT + 85 + 81 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to 8400e3a17e54fa21eb59758bf17c367f query I rowsort SELECT DISTINCT 71 * col2 * col2 FROM tab2 ---- 102524 47996 51759 query I rowsort SELECT - - 14 AS col0 FROM tab1 AS cor0 ---- 14 14 14 query I rowsort SELECT + 55 * - col0 FROM tab1 AS cor0 ---- -165 -3520 -4400 query I rowsort SELECT DISTINCT - tab1.col2 + - tab1.col0 AS col2 FROM tab1, tab0 AS cor0 ---- -121 -176 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-198 SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 42 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-198 SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 42 FROM tab0 ---- NULL query I rowsort SELECT - 92 + - cor0.col1 FROM tab2, tab0 cor0 ---- 9 values hashing to b0172e8beec2ecb104bdcd75740fcfea onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-200 SELECT DISTINCT CAST( NULL AS SIGNED ) * 8 AS col1 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-200 SELECT DISTINCT CAST ( NULL AS INTEGER ) * 8 AS col1 FROM tab2 ---- NULL query I rowsort SELECT DISTINCT col0 + + col2 * cor0.col2 AS col2 FROM tab1 AS cor0 ---- 2919 3313 9296 onlyif mysql # use DIV operator for integer division query I rowsort label-202 SELECT DISTINCT + - 15 DIV - col0 + 99 + col0 AS col1 FROM tab0 AS cor0 ---- 123 134 188 skipif mysql # not compatible query I rowsort label-202 SELECT DISTINCT + - 15 / - col0 + 99 + col0 AS col1 FROM tab0 AS cor0 ---- 123 134 188 query I rowsort SELECT ALL + - 25 + + col1 * - ( + 67 ) AS col2 FROM tab2 cor0 ---- -1164 -2102 -3978 query I rowsort SELECT - tab2.col2 + 52 + tab2.col1 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 706633d4f100946ea5b658e3523923ad onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-205 SELECT ALL + col0 * col2 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-205 SELECT ALL + col0 * col2 / - CAST ( NULL AS REAL ) AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - cor0.col2 AS col2 FROM tab0, tab1, tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT DISTINCT 86 * cor0.col2 FROM tab1, tab2, tab2 AS cor0 ---- 2236 2322 3268 query I rowsort SELECT 73 - + col0 * - 21 AS col0 FROM tab2 ---- 1711 1732 220 onlyif mysql # use DIV operator for integer division query I rowsort label-209 SELECT + col0 DIV - 10 FROM tab2 ---- -7 -7 0 skipif mysql # not compatible query I rowsort label-209 SELECT + col0 / - 10 FROM tab2 ---- -7 -7 0 query I rowsort SELECT col1 * - ( col2 * + col1 + 62 ) AS col0 FROM tab1 ---- -17030 -38116 -6320 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 DISTINCT col2 - 65 AS col0 FROM tab1 AS cor0 ---- -11 -8 31 query I rowsort SELECT DISTINCT ( - cor0.col1 ) * + col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL + col0 * - 7 AS col0 FROM tab1 ---- -21 -448 -560 query I rowsort SELECT ALL col0 - 88 * col0 * col2 AS col1 FROM tab0 ---- -3045 -642135 -69672 onlyif mysql # use DIV operator for integer division query I rowsort label-216 SELECT - col1 DIV 23 FROM tab1 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-216 SELECT - col1 / 23 FROM tab1 ---- -1 0 0 query I rowsort SELECT DISTINCT col2 + - tab1.col2 * col0 AS col2 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT 29 * col0 AS col1 FROM tab2 ---- 203 2262 2291 query I rowsort SELECT + 58 - col0 * col2 * + 21 FROM tab1 ---- -161222 -3344 -76550 query I rowsort SELECT - + cor0.col0 + col1 FROM tab0 cor0 ---- 2 62 62 query I rowsort SELECT 63 + - col1 * col1 FROM tab2 AS cor0 ---- -226 -3418 -898 query I rowsort SELECT tab1.col1 * - tab1.col0 - tab1.col0 AS col0 FROM tab1 ---- -1120 -704 -81 query I rowsort SELECT ALL + + col0 + + ( + col2 ) FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-224 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-224 SELECT ALL + CAST ( NULL AS INTEGER ) * col1 + col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( col1 AS REAL ) * - col2 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT - col0 * - 60 - col0 FROM tab1 ---- 177 3776 4720 query I rowsort SELECT - tab0.col0 + + ( col2 ) * col2 AS col1 FROM tab0 ---- -34 1065 6635 query I rowsort SELECT + 74 * col2 * col0 FROM tab1 ---- 11988 269952 568320 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + ( cor0.col0 ) - 68 col0 FROM tab2 AS cor0 ---- -30 28 69 query I rowsort SELECT DISTINCT 59 + col0 AS col0 FROM tab0 ---- 148 83 94 query I rowsort SELECT ALL + + col2 + col0 + cor0.col1 FROM tab1 AS cor0 ---- 131 189 83 query I rowsort SELECT DISTINCT + 58 * + cor0.col2 FROM tab2 AS cor0 ---- 1508 1566 2204 query I rowsort SELECT ALL + - 73 AS col0 FROM tab0 cor0 ---- -73 -73 -73 query I rowsort SELECT ALL - 62 + 84 FROM tab1 cor0 ---- 22 22 22 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-235 SELECT + - CAST( 61 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -61 -61 -61 skipif mysql # not compatible query I rowsort label-235 SELECT + - CAST ( 61 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -61 -61 -61 onlyif mysql # use DIV operator for integer division query I rowsort label-236 SELECT DISTINCT + col2 * 55 DIV col2 + cor0.col2 FROM tab0 AS cor0 ---- 137 56 88 skipif mysql # not compatible query I rowsort label-236 SELECT DISTINCT + col2 * 55 / col2 + cor0.col2 FROM tab0 AS cor0 ---- 137 56 88 query I rowsort SELECT col2 + + 39 AS col0 FROM tab1 AS cor0 ---- 135 93 96 query I rowsort SELECT - 67 + + col0 FROM tab2 AS cor0 ---- -60 11 12 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-239 SELECT - + CAST( NULL AS SIGNED ) * + col2 + col2 * col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-239 SELECT - + CAST ( NULL AS INTEGER ) * + col2 + col2 * col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( col2 ) + - col2 * ( - col0 ) + + col0 col2 FROM tab0 AS cor0 ---- 69 7305 783 query I rowsort SELECT ALL + 77 * - cor0.col0 + col0 AS col1 FROM tab2 cor0 ---- -532 -5928 -6004 query I rowsort SELECT - + ( + col0 ) + col2 AS col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT DISTINCT col2 * tab2.col0 + - col0 AS col0 FROM tab2 ---- 182 1950 2923 onlyif mysql # use DIV operator for integer division query I rowsort label-244 SELECT ALL - tab0.col2 DIV - col0 AS col2 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-244 SELECT ALL - tab0.col2 / - col0 AS col2 FROM tab0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( + col0 * - col1 ) + col2 + tab1.col2 col1 FROM tab1 ---- 1232 186 754 onlyif mysql # use DIV operator for integer division query I rowsort label-246 SELECT + cor0.col0 DIV col1 + 28 FROM tab1 AS cor0 ---- 28 34 34 skipif mysql # not compatible query I rowsort label-246 SELECT + cor0.col0 / col1 + 28 FROM tab1 AS cor0 ---- 28 34 34 query I rowsort SELECT 65 + col1 * ( 2 * + cor0.col2 ) FROM tab0 cor0 ---- 14989 259 5741 query I rowsort SELECT DISTINCT - cor0.col0 * + 49 + - col0 * + col2 + ( + col2 * - cor0.col1 ) FROM tab0 cor0 ---- -1847 -19121 -4806 query I rowsort SELECT - col1 * - ( - col0 ) * col1 AS col1 FROM tab1 AS cor0 ---- -13520 -2028 -6400 query I rowsort SELECT DISTINCT 33 * + col2 AS col0 FROM tab2 ---- 1254 858 891 query I rowsort SELECT DISTINCT - col2 + - col2 * 13 * + col2 AS col1 FROM tab1 AS cor0 ---- -119904 -37962 -42294 onlyif mysql # use DIV operator for integer division query I rowsort label-252 SELECT DISTINCT col2 + col0 + col1 DIV cor0.col1 FROM tab1 cor0 ---- 122 177 58 skipif mysql # not compatible query I rowsort label-252 SELECT DISTINCT col2 + col0 + col1 / cor0.col1 FROM tab1 cor0 ---- 122 177 58 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col1 * - col2 + 24 col2 FROM tab1 cor0 ---- -1224 -1380 -546 query I rowsort SELECT DISTINCT col0 + - 88 + 33 AS col2 FROM tab2 cor0 ---- -48 23 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 + + col1 * cor0.col2 col0 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT DISTINCT + - col0 * 10 AS col1 FROM tab2 cor0 ---- -70 -780 -790 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * cor0.col1 col0 FROM tab2 AS cor0 ---- 289 3481 961 onlyif mysql # use DIV operator for integer division query I rowsort label-258 SELECT + col1 * CAST( + 18 AS SIGNED ) DIV + col2 FROM tab0 AS cor0 ---- 1746 19 46 skipif mysql # not compatible query I rowsort label-258 SELECT + col1 * CAST ( + 18 AS INTEGER ) / + col2 FROM tab0 AS cor0 ---- 1746 19 46 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-259 SELECT ALL col1 * - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-259 SELECT ALL col1 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT + col0 * - ( + col2 ) FROM tab0 cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - col1 * 13 FROM tab2 cor0 ---- -221 -403 -767 onlyif mysql # use DIV operator for integer division query I rowsort label-262 SELECT - + col2 * - ( col0 ) DIV + col0 FROM tab0 cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-262 SELECT - + col2 * - ( col0 ) / + col0 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT - col1 * + cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT - col1 * + 90 FROM tab0 AS cor0 ---- -7740 -8190 -8730 query I rowsort SELECT + 85 * + 23 AS col2 FROM tab0 AS cor0 ---- 1955 1955 1955 query I rowsort SELECT ALL + - col2 * - cor0.col1 FROM tab1 cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT - 91 FROM tab1, tab2 AS cor0 ---- -91 query I rowsort SELECT ALL 50 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 - + cor0.col1 col2 FROM tab2 AS cor0 ---- -33 -4 21 skipif mysql # not compatible query I rowsort SELECT DISTINCT + - col0 + - cor0.col1 * - CAST ( 23 AS REAL ) AS col2 FROM tab0 AS cor0 ---- 1954 2004 2196 query I rowsort SELECT DISTINCT - 13 * + col1 + 48 AS col0 FROM tab1 AS cor0 ---- -121 -290 -82 query I rowsort SELECT ALL 92 + + col1 * col0 FROM tab2 cor0 ---- 1435 309 4694 query I rowsort SELECT ALL 46 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 2f97924b57b73102233df7c9ce8ad602 query I rowsort SELECT 67 + col2 * + col1 FROM tab2 ---- 1601 713 904 query I rowsort SELECT ( - col2 ) * - tab2.col0 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT ALL col1 * col0 + 45 * + col2 AS col0 FROM tab2 ---- 1432 3053 5772 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-277 SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-277 SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT - col2 * tab2.col2 + ( - 85 ) FROM tab2 ---- -1529 -761 -814 query I rowsort SELECT ( col0 ) * + ( - 27 ) AS col0 FROM tab2 ---- -189 -2106 -2133 query I rowsort SELECT ALL - + 17 + col0 FROM tab0 AS cor0 ---- 18 7 72 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 89 + + col0 * col0 * col2 col0 FROM tab2 cor0 ---- 1234 158095 237069 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-282 SELECT ALL - ( col0 ) * - CAST( + 9 * col0 AS SIGNED ) + col1 * 64 AS col1 FROM tab0 ---- 10688 17233 77113 skipif mysql # not compatible query I rowsort label-282 SELECT ALL - ( col0 ) * - CAST ( + 9 * col0 AS INTEGER ) + col1 * 64 AS col1 FROM tab0 ---- 10688 17233 77113 query I rowsort SELECT DISTINCT + tab0.col0 - tab0.col2 FROM tab0 ---- -9 34 7 query I rowsort SELECT - col1 * - col0 + col1 * + col0 FROM tab1 ---- 1280 156 2080 query I rowsort SELECT ALL col0 + + col2 FROM tab0 WHERE + col2 NOT IN ( + col2 / + col0 ) ---- 171 36 57 query III rowsort SELECT * FROM tab1 WHERE NOT NULL <= col0 ---- query III rowsort SELECT * FROM tab0 WHERE - col1 <= NULL ---- query I rowsort SELECT ALL col1 * - col0 AS col1 FROM tab0 WHERE ( col0 ) NOT BETWEEN col1 AND ( NULL ) ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT 43 * col2 * - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -289132 -43 -46827 query I rowsort SELECT - col2 * col1 + + col2 + - col0 * + col0 FROM tab0 AS cor0 ---- -1321 -15301 -3381 query I rowsort SELECT ALL - cor0.col2 * + cor0.col2 - + col2 FROM tab2 cor0 ---- -1482 -702 -756 query III rowsort SELECT * FROM tab1 WHERE NOT + col2 <= col1 / + col0 + col0 * tab1.col1 ---- query I rowsort SELECT tab1.col0 * + col2 + col1 * - col0 AS col2 FROM tab1 ---- 3008 6640 84 query I rowsort SELECT DISTINCT col2 - col0 * - col0 * tab1.col0 FROM tab1 ---- 262201 512096 81 query I rowsort SELECT DISTINCT col2 - - col1 * - col0 AS col2 FROM tab2 ---- -1305 -190 -4576 query I rowsort SELECT DISTINCT col0 * + tab1.col2 * + col2 AS col0 FROM tab1 ---- 207936 737280 8748 query III rowsort SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col1 + - col2 ) ---- query I rowsort SELECT DISTINCT + col2 * - col0 * col1 FROM tab0 ---- -3395 -664118 -68112 query I rowsort SELECT ALL col1 * + col1 * + col0 FROM tab1 ---- 13520 2028 6400 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col0 + col1 - col2 * + tab2.col0 col2 FROM tab2 ---- -151 -1891 -2906 query III rowsort SELECT * FROM tab1 WHERE NOT col0 + col0 + col0 >= NULL ---- query I rowsort SELECT - col1 + col0 - col1 FROM tab2 ---- -40 -55 45 query I rowsort SELECT ALL col2 + - col2 * - col0 + - col0 * tab1.col1 FROM tab1 ---- 138 3065 6736 query III rowsort SELECT * FROM tab2 WHERE NULL IN ( col2 / - col1 ) ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * col1 + col2 ) NOT IN ( col1 ) ---- query I rowsort SELECT col1 + col0 AS col2 FROM tab0 WHERE + col0 + + col2 * - col1 IN ( + col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-307 SELECT + col2 * - col0 + col1 DIV - col2 AS col1 FROM tab1 ---- -162 -3648 -7680 skipif mysql # not compatible query I rowsort label-307 SELECT + col2 * - col0 + col1 / - col2 AS col1 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + col0 * - col2 * - col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col2 + col1 * + col1 ) ---- query I rowsort SELECT + col1 + + col0 + + col1 AS col0 FROM tab2 ---- 113 196 69 query I rowsort SELECT ALL - col2 * - col2 * tab0.col1 FROM tab0 ---- 611884 93654 97 query III rowsort SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( col0 - col1 ) ---- query I rowsort SELECT DISTINCT col2 * - col0 * col0 FROM tab1 ---- -233472 -486 -614400 query I rowsort SELECT + 64 * col0 - + col0 AS col0 FROM tab2 cor0 ---- 441 4914 4977 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 13 + cor0.col1 * + col0 col2 FROM tab0 AS cor0 ---- 2077 3408 8112 query I rowsort SELECT DISTINCT + ( col0 ) + col0 + + col2 FROM tab2 AS cor0 ---- 182 196 41 query I rowsort SELECT - col2 * col2 + + col1 - + 20 AS col2 FROM tab0 AS cor0 ---- -1023 -6653 76 query I rowsort SELECT ALL - + ( - col0 ) * - col2 AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - 21 * cor0.col2 FROM tab2 cor0 ---- -546 -567 -798 query I rowsort SELECT DISTINCT col2 * col1 + 55 FROM tab1 cor0 ---- 1303 1459 625 query I rowsort SELECT col0 * + cor0.col0 * - col0 + - cor0.col2 * col1 AS col0 FROM tab0 AS cor0 ---- -16662 -42972 -712431 query I rowsort SELECT DISTINCT 60 + col1 AS col1 FROM tab0 AS cor0 ---- 146 151 157 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-322 SELECT ALL col0 + cor0.col2 / CAST( NULL AS SIGNED ) 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-322 SELECT ALL col0 + cor0.col2 / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * col0 + col0 * + col1 col1 FROM tab2 AS cor0 ---- 10686 266 7584 query I rowsort SELECT - col2 + + ( - col0 ) FROM tab1 AS cor0 ---- -121 -176 -57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 36 * + col1 col0 FROM tab1 ---- 360 468 936 query I rowsort SELECT DISTINCT + 34 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1 ---- 34 query I rowsort SELECT - col0 - - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT ALL ( col1 ) + col0 FROM tab0 cor0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - col2 ) * col1 * col0 col1 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT + 96 + + cor0.col1 + ( ( + col0 ) ) AS col1 FROM tab1 AS cor0 ---- 125 170 189 query I rowsort SELECT DISTINCT col2 + col0 * ( - col2 ) FROM tab1 cor0 ---- -108 -3591 -7584 query I rowsort SELECT ALL - 90 * col2 FROM tab1 AS cor0 ---- -4860 -5130 -8640 query I rowsort SELECT 43 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to ee5108f6248be48c54e069545f81c5d9 query I rowsort SELECT DISTINCT + cor0.col0 * + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT 60 * col1 * + 9 FROM tab0 AS cor0 ---- 46440 49140 52380 query I rowsort SELECT - + ( + col1 ) * col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-337 SELECT + col2 / + col0 + CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-337 SELECT + col2 / + col0 + CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( - col2 ) + + col1 * - col1 AS col1 FROM tab0 AS cor0 ---- -7363 -8199 -9408 query I rowsort SELECT - ( + 86 ) + + col2 AS col1 FROM tab0 AS cor0 ---- -4 -53 -85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-340 SELECT ALL CAST( NULL AS SIGNED ) + - 42 / + col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-340 SELECT ALL CAST ( NULL AS INTEGER ) + - 42 / + col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 65 + col0 * col1 AS col0 FROM tab2 AS cor0 ---- 1408 282 4667 query I rowsort SELECT + col1 * ( - col0 ) FROM tab1 ---- -1040 -640 -78 query I rowsort SELECT ALL 16 + 73 AS col1 FROM tab0 AS cor0 ---- 89 89 89 onlyif mysql # use DIV operator for integer division query I rowsort label-344 SELECT DISTINCT 14 DIV + 10 + + col2 FROM tab0 cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-344 SELECT DISTINCT 14 / + 10 + + col2 FROM tab0 cor0 ---- 2 34 83 query I rowsort SELECT DISTINCT - ( + col2 ) + cor0.col0 * ( col2 * - col1 ) AS col2 FROM tab2 AS cor0 ---- -119678 -51072 -5886 query I rowsort SELECT DISTINCT + cor0.col1 + - ( col2 ) FROM tab1 AS cor0 ---- -28 -47 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 44 * 58 * - cor0.col1 + col1 col2 FROM tab0 AS cor0 ---- -219386 -232141 -247447 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - ( - cor0.col2 ) + col1 * col2 col0 FROM tab1 cor0 ---- 1344 1458 627 query I rowsort SELECT ALL + ( 23 ) * - col1 FROM tab0 AS cor0 ---- -1978 -2093 -2231 query I rowsort SELECT DISTINCT + col2 + + ( col1 * tab1.col0 ) FROM tab1 ---- 1136 132 697 query I rowsort SELECT ALL - col0 + - ( + 57 ) FROM tab2 ---- -135 -136 -64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col2 + - tab2.col0 + + col1 * col0 col0 FROM tab2 ---- 1302 237 4550 onlyif mysql # use DIV operator for integer division query I rowsort label-353 SELECT ALL col1 - 64 DIV - 51 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-353 SELECT ALL col1 - 64 / - 51 FROM tab0 ---- 87 92 98 query I rowsort SELECT + col2 + + ( col0 ) - + col1 FROM tab1 ---- 111 163 31 query I rowsort SELECT DISTINCT - 38 + col1 AS col1 FROM tab2 ---- -21 -7 21 query I rowsort SELECT DISTINCT + - ( - col2 ) AS col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT 31 * + 59 FROM tab0 AS cor0 ---- 1829 1829 1829 onlyif mysql # use DIV operator for integer division query I rowsort label-358 SELECT - - col0 DIV - col0 FROM tab2 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-358 SELECT - - col0 / - col0 FROM tab2 cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT + col1 * + col1 * col2 FROM tab1 AS cor0 ---- 16224 36504 5700 query I rowsort SELECT - - ( - 75 ) + + col0 FROM tab0 AS cor0 ---- -40 -51 14 onlyif mysql # use DIV operator for integer division query I rowsort label-361 SELECT + ( - 85 ) DIV - col1 FROM tab2 AS cor0 ---- 1 2 5 skipif mysql # not compatible query I rowsort label-361 SELECT + ( - 85 ) / - col1 FROM tab2 AS cor0 ---- 1 2 5 query I rowsort SELECT ALL - col0 + + col2 * - tab0.col2 FROM tab0 ---- -1113 -36 -6813 query I rowsort SELECT DISTINCT 35 AS col0 FROM tab0, tab2, tab2 AS cor0 ---- 35 query I rowsort SELECT col0 + 6 * col0 AS col0 FROM tab1 ---- 21 448 560 query I rowsort SELECT ALL - col0 - + col2 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT ALL cor0.col1 * col2 * + cor0.col1 + - 51 FROM tab0 AS cor0 ---- 244017 678991 9358 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 71 * - cor0.col1 - + cor0.col1 col1 FROM tab2 AS cor0 ---- -1224 -2232 -4248 query I rowsort SELECT - 31 + - col0 FROM tab0 AS cor0 ---- -120 -55 -66 query I rowsort SELECT ALL - col1 + - col0 * + ( + col0 ) FROM tab2 AS cor0 ---- -6143 -6258 -80 query I rowsort SELECT ALL 54 AS col1 FROM tab0 AS cor0 ---- 54 54 54 query I rowsort SELECT + ( col0 ) + ( + col2 ) FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT 1 + - col0 * 3 * col0 + - col2 * - 32 AS col1 FROM tab0 AS cor0 ---- -21138 -3642 -671 onlyif mysql # use DIV operator for integer division query I rowsort label-373 SELECT ALL + col0 - col0 DIV - col1 AS col0 FROM tab1 cor0 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-373 SELECT ALL + col0 - col0 / - col1 AS col0 FROM tab1 cor0 ---- 3 70 86 onlyif mysql # use DIV operator for integer division query I rowsort label-374 SELECT - ( col2 ) + - col1 DIV col1 AS col0 FROM tab1 AS cor0 ---- -55 -58 -97 skipif mysql # not compatible query I rowsort label-374 SELECT - ( col2 ) + - col1 / col1 AS col0 FROM tab1 AS cor0 ---- -55 -58 -97 query I rowsort SELECT DISTINCT 27 + col2 FROM tab2 AS cor0 ---- 53 54 65 query I rowsort SELECT DISTINCT 60 * col1 + col1 + cor0.col2 FROM tab2 cor0 ---- 1075 1918 3625 query I rowsort SELECT + - cor0.col2 + + col1 AS col0 FROM tab2 cor0 ---- -21 33 4 query I rowsort SELECT ALL - col2 * 71 + col2 FROM tab1 AS cor0 ---- -3780 -3990 -6720 query I rowsort SELECT + cor0.col2 + - 65 FROM tab2 AS cor0 ---- -27 -38 -39 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-380 SELECT ALL - col0 + + CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-380 SELECT ALL - col0 + + CAST ( NULL AS REAL ) * col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 * ( 31 ) AS col2 FROM tab1 ---- 310 403 806 query I rowsort SELECT DISTINCT - + col2 * ( col2 ) * cor0.col1 + 56 * - col0 * + col1 FROM tab1 AS cor0 ---- -178048 -68330 -80184 query I rowsort SELECT ALL - col1 * - 58 FROM tab1 AS cor0 ---- 1508 580 754 query I rowsort SELECT ALL - cor0.col0 + col1 * + col2 FROM tab1 cor0 ---- 1168 1401 506 query I rowsort SELECT ALL cor0.col1 * 22 + + col0 FROM tab2 AS cor0 ---- 1376 453 689 query I rowsort SELECT DISTINCT col2 + 16 * col1 FROM tab0 AS cor0 ---- 1409 1538 1553 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-387 SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) / + 25 + - col2 - col0 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-387 SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) / + 25 + - col2 - col0 AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT DISTINCT - 74 * cor0.col2 + + col1 AS col1 FROM tab2 AS cor0 ---- -1865 -1967 -2795 query I rowsort SELECT - - 84 + 61 FROM tab1 AS cor0 ---- 145 145 145 query I rowsort SELECT DISTINCT - 37 * col2 FROM tab1 AS cor0 ---- -1998 -2109 -3552 query I rowsort SELECT ALL - + cor0.col1 - + col1 AS col1 FROM tab2 AS cor0 ---- -118 -34 -62 query I rowsort SELECT DISTINCT 43 - col1 FROM tab1 cor0 ---- 17 30 33 query I rowsort SELECT ALL cor1.col0 + + 57 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6b51c20bc8904c8f7acb36c15ae60f03 query I rowsort SELECT - - 41 * - col2 - - col2 FROM tab2 cor0 ---- -1040 -1080 -1520 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + 57 col2 FROM tab1 ---- 67 70 83 query I rowsort SELECT - - col2 * 28 * 29 AS col1 FROM tab0 AS cor0 ---- 26796 66584 812 query I rowsort SELECT col0 + ( col0 * - col0 ) FROM tab0 AS cor0 ---- -1190 -552 -7832 query I rowsort SELECT ALL - 2 + col1 + + ( + 49 ) AS col0 FROM tab1 ---- 57 60 73 onlyif mysql # use DIV operator for integer division query I rowsort label-399 SELECT DISTINCT col2 DIV - 55 FROM tab1 ---- -1 0 skipif mysql # not compatible query I rowsort label-399 SELECT DISTINCT col2 / - 55 FROM tab1 ---- -1 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col0 * + col0 col2 FROM tab2 ---- 49 6084 6241 query I rowsort SELECT ALL ( 30 ) + col1 AS col0 FROM tab1 AS cor0 ---- 40 43 56 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-402 SELECT ALL tab1.col1 * - CAST( NULL AS DECIMAL ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-402 SELECT ALL tab1.col1 * - CAST ( NULL AS REAL ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 + - col1 + col1 AS col1 FROM tab2 ---- 17 31 59 query I rowsort SELECT col1 + col1 + 91 AS col0 FROM tab1 AS cor0 ---- 111 117 143 query I rowsort SELECT - 50 - - col2 * col2 AS col0 FROM tab1 AS cor0 ---- 2866 3199 9166 query I rowsort SELECT ALL + ( 48 ) AS col0 FROM tab2 ---- 48 48 48 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-407 SELECT ALL - CAST( NULL AS DECIMAL ) + + cor0.col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-407 SELECT ALL - CAST ( NULL AS REAL ) + + cor0.col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT + ( - 29 ) AS col0 FROM tab2 cor0 ---- -29 -29 -29 query I rowsort SELECT ALL - col1 + col1 + col2 AS col0 FROM tab0 AS cor0 ---- 1 33 82 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2 ---- 3645 values hashing to b62c1ebc681aca72d13feadb888b3be7 query I rowsort SELECT 19 * col0 AS col1 FROM tab0 ---- 1691 456 665 query I rowsort SELECT cor0.col2 * col2 - col0 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT - - col0 - col1 * - ( 84 ) AS col0 FROM tab2 AS cor0 ---- 1507 2611 5034 onlyif mysql # use DIV operator for integer division query I rowsort label-414 SELECT 50 DIV + cor0.col0 col2 FROM tab0, tab0 cor0 ---- 9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-414 SELECT 50 / + cor0.col0 col2 FROM tab0, tab0 cor0 ---- 9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c query I rowsort SELECT + 46 + col2 FROM tab2 cor0 ---- 72 73 84 query I rowsort SELECT + col0 + + 36 * + ( + col2 ) FROM tab2 AS cor0 ---- 1014 1447 979 query I rowsort SELECT ALL col2 - ( col0 * + col2 + + ( - col1 ) ) FROM tab2 AS cor0 ---- -131 -1943 -2947 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-418 SELECT ALL col2 * - CAST( NULL AS SIGNED ) + + tab2.col0 AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-418 SELECT ALL col2 * - CAST ( NULL AS INTEGER ) + + tab2.col0 AS col0 FROM tab2 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-419 SELECT ALL - col1 DIV - 70 + + col0 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-419 SELECT ALL - col1 / - 70 + + col0 FROM tab0 ---- 25 36 90 query I rowsort SELECT - cor0.col2 - col0 * col2 * - col2 FROM tab2 AS cor0 ---- 114038 5076 52702 query I rowsort SELECT ALL col2 * col1 * + 73 + col0 * cor0.col2 FROM tab0 cor0 ---- 207966 552024 7116 query I rowsort SELECT - col1 - + 70 FROM tab0 AS cor0 ---- -156 -161 -167 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 + ( 76 ) col1 FROM tab2 AS cor0 ---- 17 45 59 query I rowsort SELECT DISTINCT + + col2 + ( + col2 ) * + col0 AS col2 FROM tab0 AS cor0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-425 SELECT ALL - - col1 + - 74 DIV col1 AS col0 FROM tab0 cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-425 SELECT ALL - - col1 + - 74 / col1 AS col0 FROM tab0 cor0 ---- 86 91 97 query I rowsort SELECT - ( col1 ) * col1 * - 5 FROM tab2 AS cor0 ---- 1445 17405 4805 query I rowsort SELECT DISTINCT cor0.col2 + 15 * - cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- -1144 -1147 -78 query I rowsort SELECT 62 * - cor0.col0 FROM tab1 AS cor0 ---- -186 -3968 -4960 query I rowsort SELECT ALL 48 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b onlyif mysql # use DIV operator for integer division query I rowsort label-430 SELECT - - col1 DIV + 67 FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-430 SELECT - - col1 / + 67 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT ALL + ( - cor0.col1 ) AS col1 FROM tab2 cor0 ---- -17 -31 -59 query I rowsort SELECT + 73 * + col2 * + 95 AS col0 FROM tab1 AS cor0 ---- 374490 395295 665760 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-433 SELECT ALL + col0 + + cor0.col0 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 skipif mysql # not compatible query I rowsort label-433 SELECT ALL + col0 + + cor0.col0 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 query I rowsort SELECT - col0 * + cor0.col0 * col2 FROM tab0 AS cor0 ---- -1225 -19008 -649522 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( cor0.col1 ) + ( 63 ) col2 FROM tab2 AS cor0 ---- 32 4 46 query I rowsort SELECT + col1 + - 5 + 81 AS col0 FROM tab1 AS cor0 ---- 102 86 89 query IIIIII rowsort SELECT * FROM tab0, tab1 AS cor0 WHERE NULL IN ( - cor0.col0 - cor0.col0 ) ---- query I rowsort SELECT ALL - col1 + 37 AS col0 FROM tab1 ---- 11 24 27 query I rowsort SELECT - col0 + 35 * + 16 * tab0.col0 FROM tab0 ---- 13416 19565 49751 query I rowsort SELECT + cor0.col1 * - col0 * cor0.col1 FROM tab1 AS cor0 ---- -13520 -2028 -6400 onlyif mysql # use DIV operator for integer division query I rowsort label-441 SELECT ( cor0.col0 ) DIV + cor0.col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 14fcfa6c11198893073049d94262832c skipif mysql # not compatible query I rowsort label-441 SELECT ( cor0.col0 ) / + cor0.col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 14fcfa6c11198893073049d94262832c onlyif mysql # use DIV operator for integer division query I rowsort label-442 SELECT col2 DIV - CAST( cor0.col0 AS SIGNED ) FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-442 SELECT col2 / - CAST ( cor0.col0 AS INTEGER ) FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT col0 * 73 FROM tab0 AS cor0 ---- 1752 2555 6497 query I rowsort SELECT - col0 + ( 75 ) FROM tab1 AS cor0 ---- -5 11 72 query I rowsort SELECT ALL - col2 * - ( + col1 ) FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT - + col2 + + col0 * + col1 AS col1 FROM tab0 cor0 ---- 2031 3394 8017 onlyif mysql # use DIV operator for integer division query I rowsort label-447 SELECT DISTINCT + col1 DIV 73 AS col0 FROM tab1 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-447 SELECT DISTINCT + col1 / 73 AS col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT + + col0 * 51 FROM tab0 AS cor0 ---- 1224 1785 4539 query I rowsort SELECT ALL + + 59 * col0 AS col2 FROM tab2 AS cor0 ---- 413 4602 4661 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-450 SELECT DISTINCT + CAST( 24 AS SIGNED ) FROM tab2 AS cor0 ---- 24 skipif mysql # not compatible query I rowsort label-450 SELECT DISTINCT + CAST ( 24 AS INTEGER ) FROM tab2 AS cor0 ---- 24 query I rowsort SELECT ALL + + col0 * 94 AS col0 FROM tab1 cor0 ---- 282 6016 7520 query I rowsort SELECT DISTINCT - 27 * col1 AS col2 FROM tab0 AS cor0 ---- -2322 -2457 -2619 skipif mysql # not compatible query I rowsort SELECT CAST ( + 41 AS REAL ) * col2 FROM tab1 AS cor0 ---- 2214 2337 3936 query I rowsort SELECT ALL col2 * - 27 + col1 AS col0 FROM tab1 ---- -1432 -1529 -2579 query I rowsort SELECT + col2 + - ( col0 ) FROM tab1 ---- -7 16 51 query I rowsort SELECT ALL col2 + + 52 AS col2 FROM tab0 ---- 134 53 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - cor0.col2 col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL ( - col0 ) + - col2 + col0 * + cor0.col2 * + col0 AS col2 FROM tab2 AS cor0 ---- 1289 158080 237041 query I rowsort SELECT ALL - cor0.col0 + - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT DISTINCT + + 58 AS col2 FROM tab0 AS cor0 ---- 58 query I rowsort SELECT ALL + 89 + col0 * ( + col0 * cor0.col1 ) AS col0 FROM tab2 AS cor0 ---- 106186 1608 359045 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - ( col1 ) ) col2 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT - - 84 FROM tab2 cor0 ---- 84 84 84 query I rowsort SELECT 19 * + 60 * col2 FROM tab0 ---- 1140 37620 93480 query I rowsort SELECT - 10 AS col0 FROM tab1, tab1 cor0, tab1 cor1 ---- 27 values hashing to bb7f754a7a056e665155ed52a63f5bc0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-466 SELECT ( tab0.col2 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-466 SELECT ( tab0.col2 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-467 SELECT + col0 + - col0 + - CAST( NULL AS SIGNED ) * + 3 * - col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-467 SELECT + col0 + - col0 + - CAST ( NULL AS INTEGER ) * + 3 * - col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 + - col2 * col2 + col2 FROM tab1 AS cor0 ---- -2808 -3135 -9024 query I rowsort SELECT tab2.col0 + col2 * - col1 + + col1 AS col2 FROM tab2 ---- -1397 -550 -799 query I rowsort SELECT + + col1 + + 86 * 87 FROM tab2 cor0 ---- 7499 7513 7541 skipif mysql # not compatible query I rowsort SELECT ALL col2 - col1 * CAST ( col1 AS REAL ) AS col1 FROM tab2 ---- -251 -3455 -934 query I rowsort SELECT + - col1 - 5 AS col1 FROM tab1 AS cor0 ---- -15 -18 -31 onlyif mysql # use DIV operator for integer division query I rowsort label-473 SELECT col0 + + ( 54 ) DIV col1 FROM tab2 cor0 ---- 78 8 82 skipif mysql # not compatible query I rowsort label-473 SELECT col0 + + ( 54 ) / col1 FROM tab2 cor0 ---- 78 8 82 query I rowsort SELECT + - col0 * + col0 + + col1 FROM tab0 AS cor0 ---- -1128 -490 -7830 query I rowsort SELECT ALL col2 * + col1 + 94 * col1 FROM tab0 ---- 10922 16016 9215 query I rowsort SELECT ALL ( + col1 ) + - 53 * + col0 AS col1 FROM tab2 ---- -340 -4075 -4170 onlyif mysql # use DIV operator for integer division query I rowsort label-477 SELECT ALL col2 + col0 + - tab2.col1 DIV col0 AS col1 FROM tab2 ---- 104 117 30 skipif mysql # not compatible query I rowsort label-477 SELECT ALL col2 + col0 + - tab2.col1 / col0 AS col1 FROM tab2 ---- 104 117 30 query I rowsort SELECT DISTINCT - tab2.col1 - - tab2.col1 AS col0 FROM tab2 ---- 0 skipif mysql # not compatible query I rowsort SELECT CAST ( 10 AS REAL ) + + tab0.col2 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 861789cd11fd766839a4cbe134f01169 query I rowsort SELECT col0 + + ( + col1 ) * col0 FROM tab0 ---- 2088 3430 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-481 SELECT + - col1 DIV 25 FROM tab2 AS cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-481 SELECT + - col1 / 25 FROM tab2 AS cor0 ---- -1 -2 0 query I rowsort SELECT - col0 - - ( - col1 ) FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT col0 * - 46 FROM tab2 ---- -322 -3588 -3634 query I rowsort SELECT ALL col2 + - ( + cor0.col1 ) AS col1 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT ALL ( col0 ) + col2 * - col2 * col2 FROM tab2 AS cor0 ---- -17498 -19676 -54793 query I rowsort SELECT DISTINCT - - col1 * - col0 - + col1 AS col0 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT ALL - cor0.col0 * + col0 + - col2 + col2 FROM tab1 cor0 ---- -4096 -6400 -9 query I rowsort SELECT DISTINCT - ( + cor0.col0 ) AS col1 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT - cor0.col1 * col0 + + col0 AS col1 FROM tab1 cor0 ---- -576 -75 -960 query I rowsort SELECT DISTINCT - col1 * + col2 + ( 13 ) AS col2 FROM tab2 AS cor0 ---- -1521 -633 -824 query I rowsort SELECT ALL + + 46 * col2 - - 15 FROM tab2 AS cor0 ---- 1211 1257 1763 query I rowsort SELECT - ( - col2 ) * 46 FROM tab0 AS cor0 ---- 1518 3772 46 onlyif mysql # use DIV operator for integer division query I rowsort label-494 SELECT ALL col0 * - col1 + + ( col1 ) DIV + tab2.col1 AS col2 FROM tab2 ---- -1342 -216 -4601 skipif mysql # not compatible query I rowsort label-494 SELECT ALL col0 * - col1 + + ( col1 ) / + tab2.col1 AS col2 FROM tab2 ---- -1342 -216 -4601 query I rowsort SELECT DISTINCT 20 + cor0.col1 + + col0 FROM tab0 cor0 ---- 130 152 200 onlyif mysql # use DIV operator for integer division query I rowsort label-496 SELECT DISTINCT + col1 * col1 - - ( + col1 ) DIV cor0.col1 FROM tab2 AS cor0 ---- 290 3482 962 skipif mysql # not compatible query I rowsort label-496 SELECT DISTINCT + col1 * col1 - - ( + col1 ) / cor0.col1 FROM tab2 AS cor0 ---- 290 3482 962 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-497 SELECT ALL - ( col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-497 SELECT ALL - ( col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-498 SELECT DISTINCT + col0 DIV - col2 + 72 * - col0 * col0 FROM tab1 AS cor0 ---- -294913 -460800 -648 skipif mysql # not compatible query I rowsort label-498 SELECT DISTINCT + col0 / - col2 + 72 * - col0 * col0 FROM tab1 AS cor0 ---- -294913 -460800 -648 query I rowsort SELECT ALL cor0.col2 * col2 + - 44 + + 30 AS col0 FROM tab2 AS cor0 ---- 1430 662 715 query I rowsort SELECT col1 * ( col2 * col2 ) FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT + ( + 24 ) * + col0 * col0 AS col2 FROM tab2 AS cor0 ---- 1176 146016 149784 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-502 SELECT + CAST( col0 AS SIGNED ) - col2 * - col2 AS col1 FROM tab1 cor0 ---- 2919 3313 9296 skipif mysql # not compatible query I rowsort label-502 SELECT + CAST ( col0 AS INTEGER ) - col2 * - col2 AS col1 FROM tab1 cor0 ---- 2919 3313 9296 query I rowsort SELECT col1 * + cor0.col0 - col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT - ( col2 ) * col1 * 20 FROM tab1 cor0 ---- -11400 -24960 -28080 query I rowsort SELECT + ( + col0 ) - + cor0.col1 AS col2 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT - - 68 * - col2 FROM tab1 cor0 ---- -3672 -3876 -6528 query I rowsort SELECT ALL - col2 * tab2.col1 * - tab2.col2 FROM tab2 ---- 22599 24548 39884 query I rowsort SELECT DISTINCT + col0 * - 50 * + col2 FROM tab0 ---- -1750 -364900 -39600 query I rowsort SELECT + 71 - - cor0.col0 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to bea4f7265a05176d441441cef636f03e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-510 SELECT + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-510 SELECT + + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + ( tab0.col2 ) AS col2 FROM tab0 ---- 1 33 82 query I rowsort SELECT ALL - ( 21 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 631fbd1fd929405aba54a22c2a06c757 query I rowsort SELECT + ( tab1.col0 * - col2 ) FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT - tab1.col1 + ( col0 ) * - col1 FROM tab1 ---- -104 -1053 -650 query I rowsort SELECT - + col2 * + col1 + - col0 AS col2 FROM tab0 AS cor0 ---- -132 -2862 -7551 query I rowsort SELECT DISTINCT + + 60 * + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1020 1860 3540 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-517 SELECT CAST( - 82 AS SIGNED ) FROM tab2 ---- -82 -82 -82 skipif mysql # not compatible query I rowsort label-517 SELECT CAST ( - 82 AS INTEGER ) FROM tab2 ---- -82 -82 -82 query I rowsort SELECT 32 * col2 + col1 * + col2 FROM tab0 ---- 10086 129 3894 query I rowsort SELECT - ( - col1 * + col0 ) + col0 FROM tab1 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 18 col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to b95bafa733666df39c5d3f94760d010f query I rowsort SELECT DISTINCT - cor0.col1 * col2 * + col2 + 53 * + 25 FROM tab2 AS cor0 ---- -21274 -23223 -38559 onlyif mysql # use DIV operator for integer division query I rowsort label-522 SELECT ( 27 ) DIV col2 AS col0 FROM tab0 AS cor0 ---- 0 0 27 skipif mysql # not compatible query I rowsort label-522 SELECT ( 27 ) / col2 AS col0 FROM tab0 AS cor0 ---- 0 0 27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 26 col2 FROM tab2 ---- 26 26 26 query I rowsort SELECT ALL col0 + col1 + col1 AS col2 FROM tab1 ---- 106 55 84 query I rowsort SELECT ALL - col1 * col0 * + col0 FROM tab1 ---- -234 -40960 -83200 query I rowsort SELECT + 18 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to a13db73ec93475d2821cb4a6d0eff298 query I rowsort SELECT col2 * - ( - col1 ) FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-528 SELECT + 56 * col0 * + CAST( NULL AS SIGNED ) col2 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-528 SELECT + 56 * col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 * 4 * col1 + + col1 FROM tab1 AS cor0 ---- -2550 -286 -4147 onlyif mysql # use DIV operator for integer division query I rowsort label-530 SELECT DISTINCT - - cor0.col2 + - ( col2 ) - col2 DIV col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-530 SELECT DISTINCT - - cor0.col2 + - ( col2 ) - col2 / col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + col0 * col2 + + col0 FROM tab1 ---- 165 3712 7760 query I rowsort SELECT DISTINCT + col0 * col2 + col0 AS col1 FROM tab0 cor0 ---- 70 7387 816 query I rowsort SELECT tab0.col2 * 70 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 81c369cbf63301589c10145514a0f62b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-534 SELECT col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-534 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-535 SELECT ALL + col2 * - col0 - col0 DIV - col0 FROM tab2 AS cor0 ---- -188 -2027 -3001 skipif mysql # not compatible query I rowsort label-535 SELECT ALL + col2 * - col0 - col0 / - col0 FROM tab2 AS cor0 ---- -188 -2027 -3001 query I rowsort SELECT col0 * - ( + 41 ) FROM tab0 ---- -1435 -3649 -984 onlyif mysql # use DIV operator for integer division query I rowsort label-537 SELECT - col2 DIV tab1.col0 + col0 FROM tab1 ---- -15 64 79 skipif mysql # not compatible query I rowsort label-537 SELECT - col2 / tab1.col0 + col0 FROM tab1 ---- -15 64 79 onlyif mysql # use DIV operator for integer division query I rowsort label-538 SELECT - col2 DIV - 86 col2 FROM tab0 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-538 SELECT - col2 / - 86 col2 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT 60 FROM tab2, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 1d2ab302ae60f95b15e68cf89083b162 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-540 SELECT ALL col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-540 SELECT ALL col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + + col0 * col2 * - col1 AS col0 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT ALL - col0 * - col0 - + cor0.col0 FROM tab2 cor0 ---- 42 6006 6162 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * - cor0.col1 col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL - col1 + - ( 82 ) FROM tab1 AS cor0 ---- -108 -92 -95 query I rowsort SELECT col0 + + 55 FROM tab0 ---- 144 79 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-546 SELECT + CAST( NULL AS SIGNED ) / - col1 + col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-546 SELECT + CAST ( NULL AS INTEGER ) / - col1 + col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 * - col2 + + col2 * col2 + 77 AS col1 FROM tab1 cor0 ---- 16973 3155 6974 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-548 SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col2 + + cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-548 SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col2 + + cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 49 + + col1 AS col1 FROM tab0 cor0 ---- 37 42 48 query I rowsort SELECT - + col0 + 18 * col2 FROM tab2 AS cor0 ---- 390 479 605 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col2 * col0 col1 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT + - col0 + + col2 AS col1 FROM tab2 cor0 ---- -41 -52 20 onlyif mysql # use DIV operator for integer division query I rowsort label-553 SELECT ALL + cor0.col0 + - col1 DIV + 84 FROM tab0 AS cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-553 SELECT ALL + cor0.col0 + - col1 / + 84 FROM tab0 AS cor0 ---- 23 34 88 query I rowsort SELECT + col2 - + col1 * + 14 FROM tab2 AS cor0 ---- -200 -407 -800 onlyif mysql # use DIV operator for integer division query I rowsort label-555 SELECT ALL + col0 DIV col0 - + ( - col1 * + cor0.col0 + ( col0 ) ) AS col2 FROM tab2 AS cor0 ---- 1265 211 4525 skipif mysql # not compatible query I rowsort label-555 SELECT ALL + col0 / col0 - + ( - col1 * + cor0.col0 + ( col0 ) ) AS col2 FROM tab2 AS cor0 ---- 1265 211 4525 query I rowsort SELECT - 81 * + col0 + - col2 * 18 FROM tab0 cor0 ---- -2538 -2853 -8685 query I rowsort SELECT ALL col1 * col1 * + 50 + + 10 AS col2 FROM tab0 AS cor0 ---- 369810 414060 470460 query I rowsort SELECT + - col1 - col0 * - ( col2 ) * col2 FROM tab0 AS cor0 ---- -62 26050 598345 query I rowsort SELECT DISTINCT - col1 * - col2 + cor0.col0 + col0 AS col0 FROM tab1 AS cor0 ---- 1408 1410 698 onlyif mysql # use DIV operator for integer division query I rowsort label-560 SELECT DISTINCT - - col2 DIV - col1 + - 76 * - 58 col0 FROM tab0 AS cor0 ---- 4408 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-560 SELECT DISTINCT - - col2 / - col1 + - 76 * - 58 col0 FROM tab0 AS cor0 ---- 4408 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-561 SELECT ALL - - col1 * - col1 / - CAST( NULL AS DECIMAL ) + + col2 - + col1 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-561 SELECT ALL - - col1 * - col1 / - CAST ( NULL AS REAL ) + + col2 - + col1 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 39 + col2 col2 FROM tab2 ---- 65 66 77 query I rowsort SELECT ALL - tab2.col1 + 53 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to 187f0197d30739ece2be4fd0ccfdaa76 query I rowsort SELECT + cor0.col2 FROM tab0, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 80 * - col2 + + col2 col1 FROM tab0 ---- -2607 -6478 -79 query I rowsort SELECT ALL + 95 + col1 FROM tab2 AS cor0 ---- 112 126 154 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * cor0.col0 col0 FROM tab2 cor0 ---- -1343 -217 -4602 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-568 SELECT ALL - CAST( + tab0.col0 * - cor1.col0 AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to f7a7d834ef74d0b2fff83e6a8f658dd5 skipif mysql # not compatible query I rowsort label-568 SELECT ALL - CAST ( + tab0.col0 * - cor1.col0 AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to f7a7d834ef74d0b2fff83e6a8f658dd5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 51 col0 FROM tab1 AS cor0 ---- 51 query I rowsort SELECT + + col1 + cor0.col0 * col2 * col1 AS col0 FROM tab0 cor0 ---- 3492 664209 68198 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 14 * tab2.col1 col0 FROM tab2 ---- -238 -434 -826 query I rowsort SELECT DISTINCT - 88 AS col0 FROM tab0, tab1 cor0, tab2 cor1 ---- -88 query I rowsort SELECT - cor1.col1 FROM tab1, tab2 AS cor0, tab1 cor1, tab1 cor2 ---- 81 values hashing to 96e9ef2950805bca93a295eeea43ef5b query I rowsort SELECT col1 - + 65 FROM tab1 cor0 ---- -39 -52 -55 query I rowsort SELECT + ( col2 ) * - col0 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT 86 + col1 * ( 52 ) FROM tab1 ---- 1438 606 762 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - 48 col1 FROM tab0 cor0 ---- -48 -48 -48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( - col0 ) col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ALL + ( ( col1 ) ) + - ( col1 ) * + col1 FROM tab1 AS cor0 ---- -156 -650 -90 query I rowsort SELECT + - col2 + col1 * + col1 AS col2 FROM tab1 AS cor0 ---- 43 622 73 onlyif mysql # use DIV operator for integer division query I rowsort label-581 SELECT DISTINCT - + ( 55 ) DIV + col1 AS col2 FROM tab2 AS cor0 ---- -1 -3 0 skipif mysql # not compatible query I rowsort label-581 SELECT DISTINCT - + ( 55 ) / + col1 AS col2 FROM tab2 AS cor0 ---- -1 -3 0 query I rowsort SELECT DISTINCT + - col2 + - 28 * - col0 * - 96 FROM tab0 AS cor0 ---- -239314 -64545 -94081 query I rowsort SELECT ALL + - 0 * col2 AS col1 FROM tab2 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-584 SELECT ALL col1 DIV col2 + + 82 FROM tab0 ---- 179 83 84 skipif mysql # not compatible query I rowsort label-584 SELECT ALL col1 / col2 + + 82 FROM tab0 ---- 179 83 84 query I rowsort SELECT ALL + col2 + + ( col1 ) + tab1.col2 AS col1 FROM tab1 ---- 124 134 205 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-586 SELECT ALL - col2 + - CAST( 99 AS SIGNED ) * col0 FROM tab1 ---- -351 -6393 -8016 skipif mysql # not compatible query I rowsort label-586 SELECT ALL - col2 + - CAST ( 99 AS INTEGER ) * col0 FROM tab1 ---- -351 -6393 -8016 query I rowsort SELECT - col1 + + ( 32 ) FROM tab0 ---- -54 -59 -65 query I rowsort SELECT + + col2 * + col2 + col2 AS col1 FROM tab0 AS cor0 ---- 1122 2 6806 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-589 SELECT ALL - CAST( col0 AS SIGNED ) AS col0 FROM tab1 cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-589 SELECT ALL - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 cor0 ---- -3 -64 -80 query I rowsort SELECT + + col0 + col2 * col0 * cor0.col2 FROM tab0 AS cor0 ---- 26160 598525 70 query I rowsort SELECT ( + 50 ) * col0 FROM tab1 AS cor0 ---- 150 3200 4000 query I rowsort SELECT DISTINCT - + ( 54 ) * cor0.col1 FROM tab1 AS cor0 ---- -1404 -540 -702 query I rowsort SELECT DISTINCT + + 63 * cor0.col2 FROM tab1 AS cor0 ---- 3402 3591 6048 onlyif mysql # use DIV operator for integer division query I rowsort label-594 SELECT ALL + - 24 DIV col1 AS col0 FROM tab1 AS cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-594 SELECT ALL + - 24 / col1 AS col0 FROM tab1 AS cor0 ---- -1 -2 0 query I rowsort SELECT + col0 - + col2 FROM tab2 ---- -20 41 52 query III rowsort SELECT * FROM tab1 WHERE NOT col0 IN ( + col1 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 / - col0 col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-598 SELECT ALL tab0.col2 + col2 * col1 DIV col0 AS col1 FROM tab0 ---- 151 165 3 skipif mysql # not compatible query I rowsort label-598 SELECT ALL tab0.col2 + col2 * col1 / col0 AS col1 FROM tab0 ---- 151 165 3 query I rowsort SELECT col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 * col1 * - col2 ) ---- query I rowsort SELECT DISTINCT + col1 + col2 + col0 AS col2 FROM tab0 ---- 133 143 262 query I rowsort SELECT - col2 * + col0 * col0 FROM tab0 ---- -1225 -19008 -649522 onlyif mysql # use DIV operator for integer division query I rowsort label-602 SELECT DISTINCT + col2 * + tab0.col1 + col2 + col1 DIV col1 FROM tab0 ---- 2872 7545 99 skipif mysql # not compatible query I rowsort label-602 SELECT DISTINCT + col2 * + tab0.col1 + col2 + col1 / col1 FROM tab0 ---- 2872 7545 99 query I rowsort SELECT DISTINCT - col2 * col1 FROM tab0 WHERE NOT col2 IN ( - tab0.col1 * + col1 ) ---- -2838 -7462 -97 query I rowsort SELECT + col2 + col1 * + col1 AS col2 FROM tab1 ---- 157 265 730 onlyif mysql # use DIV operator for integer division query I rowsort label-605 SELECT DISTINCT col2 DIV - col0 - col0 FROM tab0 ---- -25 -35 -89 skipif mysql # not compatible query I rowsort label-605 SELECT DISTINCT col2 / - col0 - col0 FROM tab0 ---- -25 -35 -89 query III rowsort SELECT * FROM tab1 WHERE NOT NULL >= col2 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-607 SELECT ALL col0 * col2 DIV + col1 - - tab0.col2 FROM tab0 ---- 1 162 42 skipif mysql # not compatible query I rowsort label-607 SELECT ALL col0 * col2 / + col1 - - tab0.col2 FROM tab0 ---- 1 162 42 query I rowsort SELECT - - col2 + - col1 + col0 * + col2 AS col2 FROM tab0 AS cor0 ---- -61 7289 739 query I rowsort SELECT col1 * - tab2.col0 * col0 FROM tab2 ---- -106097 -1519 -358956 query I rowsort SELECT - - col1 + col1 + + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 177 51 93 query I rowsort SELECT col2 * col1 + - col0 * - col1 AS col0 FROM tab2 AS cor0 ---- 1054 1989 6136 query I rowsort SELECT - - col1 * col0 + - col2 AS col0 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT + col0 + - col0 + - col0 AS col0 FROM tab0 AS cor0 ---- -24 -35 -89 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + - col2 = - col0 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT DISTINCT - col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE - col1 - col0 < NULL ---- query I rowsort SELECT col2 * col2 * col1 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT DISTINCT - cor0.col1 * cor0.col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL - col1 * - col2 + cor0.col0 * col1 FROM tab2 AS cor0 ---- 1054 1989 6136 query I rowsort SELECT col1 * - 78 AS col1 FROM tab1 AS cor0 ---- -1014 -2028 -780 query I rowsort SELECT + - col1 + col2 * - 45 AS col2 FROM tab1 cor0 ---- -2456 -2575 -4333 query I rowsort SELECT + - cor0.col1 * col0 AS col2 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL - + col2 * - 46 FROM tab1 AS cor0 ---- 2484 2622 4416 query I rowsort SELECT DISTINCT - col0 * - ( + 95 ) * - cor0.col1 FROM tab0 AS cor0 ---- -196080 -322525 -769405 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-624 SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-624 SELECT CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ( - col0 + 85 ) * tab2.col0 AS col1 FROM tab2 ---- 474 546 546 query I rowsort SELECT 85 * col2 AS col1 FROM tab2 ---- 2210 2295 3230 query I rowsort SELECT ALL + col0 + ( + 23 ) FROM tab1 AS cor0 ---- 103 26 87 query I rowsort SELECT DISTINCT - + col1 * ( + 78 ) FROM tab1 AS cor0 ---- -1014 -2028 -780 query I rowsort SELECT ALL cor0.col0 * - 37 FROM tab2 AS cor0 ---- -259 -2886 -2923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + 93 * - col2 col0 FROM tab1 AS cor0 ---- -5048 -5311 -8941 query I rowsort SELECT ALL col2 + 68 * - ( cor0.col2 ) FROM tab0 AS cor0 ---- -2211 -5494 -67 query I rowsort SELECT DISTINCT - col0 * + 64 * col2 + - col0 AS col0 FROM tab1 AS cor0 ---- -10371 -233536 -491600 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-633 SELECT - + cor0.col2 * + CAST( + col0 * col2 AS SIGNED ) FROM tab1 AS cor0 ---- -207936 -737280 -8748 skipif mysql # not compatible query I rowsort label-633 SELECT - + cor0.col2 * + CAST ( + col0 * col2 AS INTEGER ) FROM tab1 AS cor0 ---- -207936 -737280 -8748 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( tab2.col1 ) col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-635 SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-635 SELECT ALL - - CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + ( col2 ) * col2 - + ( 73 ) FROM tab0 AS cor0 ---- -72 1016 6651 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-637 SELECT CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif mysql # not compatible query I rowsort label-637 SELECT CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-638 SELECT DISTINCT CAST( NULL AS SIGNED ) * 10 * col0 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-638 SELECT DISTINCT CAST ( NULL AS INTEGER ) * 10 * col0 FROM tab2 cor0 ---- NULL query I rowsort SELECT ALL ( col1 ) * + col1 AS col2 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT + - col0 * col0 + - col2 FROM tab1 cor0 ---- -4153 -63 -6496 query I rowsort SELECT ALL col0 * - col2 + tab2.col1 FROM tab2 WHERE NOT NULL <= NULL ---- query I rowsort SELECT + + col0 + col0 + + col2 AS col2 FROM tab1 cor0 ---- 185 256 60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-643 SELECT - + ( - col2 ) * 73 + 45 - cor0.col0 * CAST( + col1 AS SIGNED ) FROM tab2 AS cor0 ---- -2659 1476 1799 skipif mysql # not compatible query I rowsort label-643 SELECT - + ( - col2 ) * 73 + 45 - cor0.col0 * CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0 ---- -2659 1476 1799 query I rowsort SELECT ALL 58 + - col1 AS col0 FROM tab1 AS cor0 ---- 32 45 48 query I rowsort SELECT col2 FROM tab0 WHERE + col1 + + col0 - col2 NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT col1 * + col0 * col0 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT - col2 * + col2 + col0 * - col1 FROM tab2 ---- -2787 -5278 -946 query I rowsort SELECT - col2 * col0 + - col2 * col0 FROM tab0 ---- -14596 -1584 -70 query I rowsort SELECT + col1 AS col2 FROM tab0 WHERE NULL >= + col2 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-650 SELECT col0 DIV col0 FROM tab0 WHERE NOT col0 BETWEEN NULL AND + col2 ---- 1 1 skipif mysql # not compatible query I rowsort label-650 SELECT col0 / col0 FROM tab0 WHERE NOT col0 BETWEEN NULL AND + col2 ---- 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-651 SELECT DISTINCT + 5 + + col1 DIV + col0 AS col1 FROM tab0 ---- 6 7 8 skipif mysql # not compatible query I rowsort label-651 SELECT DISTINCT + 5 + + col1 / + col0 AS col1 FROM tab0 ---- 6 7 8 onlyif mysql # use DIV operator for integer division query I rowsort label-652 SELECT ALL + 79 * col2 DIV - col2 + + col2 AS col1 FROM tab1 ---- -22 -25 17 skipif mysql # not compatible query I rowsort label-652 SELECT ALL + 79 * col2 / - col2 + + col2 AS col1 FROM tab1 ---- -22 -25 17 query I rowsort SELECT ALL - 10 AS col1 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to bb7f754a7a056e665155ed52a63f5bc0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-654 SELECT ALL + col0 + col2 + CAST( NULL AS SIGNED ) FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-654 SELECT ALL + col0 + col2 + CAST ( NULL AS INTEGER ) FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL - cor1.col2 * 97 FROM tab0, tab1 AS cor0, tab1 cor1, tab2, tab0 cor2 ---- 243 values hashing to eb14afb2dbf7076589f9675c2eeb848c query I rowsort SELECT ALL + 69 + + col1 AS col2 FROM tab0 AS cor0 ---- 155 160 166 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - ( + cor0.col0 ) col1 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL - 90 * - 25 + col1 * + col0 AS col0 FROM tab0 cor0 ---- 10349 4314 5645 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-659 SELECT - + CAST( NULL AS SIGNED ) / + cor0.col2 AS col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-659 SELECT - + CAST ( NULL AS INTEGER ) / + cor0.col2 AS col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + col2 * col2 + col2 * + ( - col2 ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + 10 * cor0.col2 AS col1 FROM tab2, tab2 cor0 ---- 9 values hashing to daf30803acc158430e9342e85963898a query I rowsort SELECT ALL - col1 * col1 + + tab1.col1 * + ( col0 ) FROM tab1 ---- -598 540 871 query I rowsort SELECT ALL + col0 * col1 + - tab1.col0 * col1 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT col0 - + ( cor0.col0 ) AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT col0 + col2 + col0 AS col1 FROM tab0 AS cor0 ---- 260 71 81 query I rowsort SELECT DISTINCT ( 37 ) + col1 FROM tab2 ---- 54 68 96 query I rowsort SELECT ALL ( + col0 ) * col2 + 65 * + col0 FROM tab0 ---- 13083 2310 2352 query I rowsort SELECT ALL - 27 + + col0 * col2 FROM tab0 ---- 7271 765 8 query I rowsort SELECT 68 * col1 FROM tab2 ---- 1156 2108 4012 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-670 SELECT - 97 + col0 * - CAST( - 37 * - col1 AS SIGNED ) FROM tab0 AS cor0 ---- -125712 -299760 -76465 skipif mysql # not compatible query I rowsort label-670 SELECT - 97 + col0 * - CAST ( - 37 * - col1 AS INTEGER ) FROM tab0 AS cor0 ---- -125712 -299760 -76465 query I rowsort SELECT - + col1 * 5 AS col0 FROM tab0 AS cor0 ---- -430 -455 -485 onlyif mysql # use DIV operator for integer division query I rowsort label-672 SELECT DISTINCT + + col2 + col1 DIV col1 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-672 SELECT DISTINCT + + col2 + col1 / col1 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT DISTINCT - col0 + + 7 * + col2 AS col1 FROM tab0 AS cor0 ---- -28 207 485 query I rowsort SELECT ALL + - col0 + + ( 84 ) AS col2 FROM tab0 AS cor0 ---- -5 49 60 onlyif mysql # use DIV operator for integer division query I rowsort label-675 SELECT DISTINCT + col2 DIV + col1 - 30 AS col1 FROM tab1 AS cor0 ---- -23 -25 -28 skipif mysql # not compatible query I rowsort label-675 SELECT DISTINCT + col2 / + col1 - 30 AS col1 FROM tab1 AS cor0 ---- -23 -25 -28 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + ( + col1 ) * + col1 col2 FROM tab0 AS cor0 ---- 7372 8192 9374 query I rowsort SELECT - col1 + + ( - 46 ) * col1 FROM tab1 cor0 ---- -1222 -470 -611 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-678 SELECT ALL + col0 / CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-678 SELECT ALL + col0 / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col1 + + 92 AS col0 FROM tab0 cor0 ---- -5 1 6 query I rowsort SELECT + - col0 * ( ( - col2 ) ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL - col1 * - col0 - + col2 AS col2 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT DISTINCT - + cor0.col0 * 33 - + ( col2 ) AS col2 FROM tab1 AS cor0 ---- -153 -2169 -2736 query I rowsort SELECT col0 + 2 AS col2 FROM tab0 AS cor0 ---- 26 37 91 onlyif mysql # use DIV operator for integer division query I rowsort label-684 SELECT - col0 + - 17 DIV - 5 AS col2 FROM tab2 AS cor0 ---- -4 -75 -76 skipif mysql # not compatible query I rowsort label-684 SELECT - col0 + - 17 / - 5 AS col2 FROM tab2 AS cor0 ---- -4 -75 -76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 + 52 col1 FROM tab0 cor0 ---- 134 53 85 query I rowsort SELECT - + col0 + 56 * - 68 FROM tab1 AS cor0 ---- -3811 -3872 -3888 query I rowsort SELECT ALL + + cor0.col0 * + col2 AS col1 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT 6 FROM tab2, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04 query I rowsort SELECT - - cor0.col2 * - ( + col1 ) + cor0.col0 FROM tab1 cor0 ---- -1168 -1401 -506 query I rowsort SELECT ALL - 33 AS col2 FROM tab1, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948 query I rowsort SELECT - 50 * - 67 AS col1 FROM tab1 cor0 ---- 3350 3350 3350 query I rowsort SELECT DISTINCT - col2 * + col0 + + col0 FROM tab0 cor0 ---- -7209 -768 0 query I rowsort SELECT ALL + ( 59 ) + col2 AS col1 FROM tab2 AS cor0 ---- 85 86 97 query I rowsort SELECT DISTINCT + + 15 + 58 AS col1 FROM tab2 AS cor0 ---- 73 query I rowsort SELECT ALL - col1 - - cor0.col2 * col1 AS col2 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT - 79 * + col1 FROM tab2 cor0 ---- -1343 -2449 -4661 query I rowsort SELECT ALL 35 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-698 SELECT - CAST( NULL AS DECIMAL ) * col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-698 SELECT - CAST ( NULL AS REAL ) * col1 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 18 col0 FROM tab0 AS cor0 ---- 18 18 18 onlyif mysql # use DIV operator for integer division query I rowsort label-700 SELECT DISTINCT + col0 DIV col0 + - ( 87 ) + + col1 FROM tab0 cor0 ---- 0 11 5 skipif mysql # not compatible query I rowsort label-700 SELECT DISTINCT + col0 / col0 + - ( 87 ) + + col1 FROM tab0 cor0 ---- 0 11 5 onlyif mysql # use DIV operator for integer division query I rowsort label-701 SELECT ALL + - col0 DIV + col2 AS col0 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-701 SELECT ALL + - col0 / + col2 AS col0 FROM tab1 AS cor0 ---- -1 0 0 query I rowsort SELECT - col2 + col0 + + 55 FROM tab1 cor0 ---- 39 4 62 query I rowsort SELECT DISTINCT col0 * col0 + + 9 * - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -198 352 7102 query I rowsort SELECT ALL - - 0 + - col1 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT - - col0 + col1 + ( col0 + col1 ) FROM tab1 AS cor0 ---- 148 186 58 skipif mysql # not compatible query I rowsort SELECT col2 * col0 + cor0.col0 / - 56 - + col2 * + CAST ( - col1 AS REAL ) FROM tab0 AS cor0 ---- 132 14759 3630 onlyif mysql # use DIV operator for integer division query I rowsort label-707 SELECT - ( - col2 * + col2 ) + tab2.col0 DIV + col0 - col2 AS col1 FROM tab2 ---- 1407 651 703 skipif mysql # not compatible query I rowsort label-707 SELECT - ( - col2 * + col2 ) + tab2.col0 / + col0 - col2 AS col1 FROM tab2 ---- 1407 651 703 query I rowsort SELECT col1 * col0 + ( col0 * col1 ) FROM tab0 AS cor0 ---- 16198 4128 6790 query I rowsort SELECT + - col0 - + cor0.col1 AS col0 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT DISTINCT - - col2 + - col0 * col1 + + col1 FROM tab1 AS cor0 ---- -573 -931 2 query I rowsort SELECT DISTINCT 51 AS col1 FROM tab1 cor0 ---- 51 query I rowsort SELECT + - 47 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 6942a0d9558277afd0d00408d65cf5aa query I rowsort SELECT + col0 + + col0 * cor0.col2 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT + 62 * - tab2.col1 * + col0 FROM tab2 ---- -13454 -285324 -83266 query I rowsort SELECT col0 * - col2 + ( 48 ) FROM tab1 cor0 ---- -114 -3600 -7632 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 71 * + col0 * - col1 col2 FROM tab1 ---- -45440 -5538 -73840 query I rowsort SELECT + 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c query I rowsort SELECT DISTINCT - tab1.col2 * - 40 FROM tab1, tab2 AS cor0 ---- 2160 2280 3840 query I rowsort SELECT DISTINCT cor0.col2 * - 51 FROM tab0, tab1 AS cor0 ---- -2754 -2907 -4896 query I rowsort SELECT + 20 * + col2 AS col1 FROM tab1 AS cor0 ---- 1080 1140 1920 query I rowsort SELECT ALL tab0.col2 * + tab0.col2 AS col0 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT + - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to b5a4102107e5ebd26e341538f4fede1e query I rowsort SELECT ALL + cor0.col1 + + 32 FROM tab0 AS cor0 ---- 118 123 129 query I rowsort SELECT - col2 - - 74 * col1 AS col2 FROM tab2 AS cor0 ---- 1220 2267 4340 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * col1 + 72 col0 FROM tab2 cor0 ---- 1033 3553 361 query I rowsort SELECT DISTINCT 80 * 26 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2 ---- 2080 onlyif mysql # use DIV operator for integer division query I rowsort label-727 SELECT DISTINCT + cor0.col2 DIV - 40 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- -2 0 skipif mysql # not compatible query I rowsort label-727 SELECT DISTINCT + cor0.col2 / - 40 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- -2 0 query I rowsort SELECT + ( + 32 ) * col1 AS col1 FROM tab0 AS cor0 ---- 2752 2912 3104 query I rowsort SELECT - ( - col1 ) * cor0.col1 + col2 * cor0.col1 * + col0 FROM tab0 AS cor0 ---- 12804 672399 75508 query I rowsort SELECT 24 FROM tab2, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to aeeac431d22528188e8a5a2a60d2d080 query I rowsort SELECT col2 * + 11 + ( col1 ) FROM tab0 ---- 108 449 993 query I rowsort SELECT ALL - + cor0.col0 + - 51 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2 ---- 243 values hashing to be025fddc92c77f4626834d3220f6a61 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( col2 ) * col2 col2 FROM tab1 ---- -2916 -3249 -9216 query I rowsort SELECT + ( 56 ) * cor0.col1 + col1 + + col0 FROM tab2 AS cor0 ---- 1048 1774 3441 query I rowsort SELECT ( + 62 ) * col1 * 78 + + col1 + - col0 AS col1 FROM tab2 ---- 149940 285305 82150 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-736 SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-736 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL + ( 89 ) AS col2 FROM tab2 AS cor0 ---- 89 89 89 query I rowsort SELECT ALL 70 AS col0 FROM tab2 AS cor0 ---- 70 70 70 onlyif mysql # use DIV operator for integer division query I rowsort label-739 SELECT col2 + + col1 + + col2 DIV - col2 AS col0 FROM tab1 AS cor0 ---- 108 66 79 skipif mysql # not compatible query I rowsort label-739 SELECT col2 + + col1 + + col2 / - col2 AS col0 FROM tab1 AS cor0 ---- 108 66 79 query I rowsort SELECT ALL - + col1 * col2 * cor0.col0 FROM tab2 AS cor0 ---- -119652 -51034 -5859 onlyif mysql # use DIV operator for integer division query I rowsort label-741 SELECT + 75 DIV 61 + + col0 + col0 FROM tab2 AS cor0 ---- 15 157 159 skipif mysql # not compatible query I rowsort label-741 SELECT + 75 / 61 + + col0 + col0 FROM tab2 AS cor0 ---- 15 157 159 query I rowsort SELECT col0 * - col2 - col2 FROM tab2 cor0 ---- -2054 -216 -3040 onlyif mysql # use DIV operator for integer division query I rowsort label-743 SELECT ALL cor0.col0 DIV - cor0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to a46f44f30b2183508f32c16a79479cd9 skipif mysql # not compatible query I rowsort label-743 SELECT ALL cor0.col0 / - cor0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to a46f44f30b2183508f32c16a79479cd9 query I rowsort SELECT - - col2 * ( + 0 ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT col0 * col2 + - col0 AS col2 FROM tab1 cor0 ---- 159 3584 7600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 25 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2c77240b60ac01c717a5ed5d0165f450 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-747 SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-747 SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0 ---- NULL query I rowsort SELECT DISTINCT + col2 * col2 * + col2 + - col2 AS col2 FROM tab1 AS cor0 ---- 157410 185136 884640 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-749 SELECT ALL + col2 + - CAST( + ( + col0 ) * - col2 AS SIGNED ) FROM tab0 AS cor0 ---- 36 7380 825 skipif mysql # not compatible query I rowsort label-749 SELECT ALL + col2 + - CAST ( + ( + col0 ) * - col2 AS INTEGER ) FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT DISTINCT - 85 * - col2 FROM tab0 AS cor0 ---- 2805 6970 85 query I rowsort SELECT 54 * col0 AS col2 FROM tab2 AS cor0 ---- 378 4212 4266 query I rowsort SELECT DISTINCT - + col2 * + 54 FROM tab2 AS cor0 ---- -1404 -1458 -2052 onlyif mysql # use DIV operator for integer division query I rowsort label-753 SELECT + col0 DIV + 31 AS col0 FROM tab1 ---- 0 2 2 skipif mysql # not compatible query I rowsort label-753 SELECT + col0 / + 31 AS col0 FROM tab1 ---- 0 2 2 query I rowsort SELECT DISTINCT col0 * col1 - - 60 * - col2 AS col1 FROM tab1 ---- -2780 -3162 -4720 query I rowsort SELECT + col1 - - col2 * + ( + col1 ) * ( tab2.col0 + col0 ) AS col0 FROM tab2 ---- 102085 11749 239363 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-756 SELECT DISTINCT col0 + + 43 * 41 - - col2 * - CAST( - col1 * - col2 AS SIGNED ) FROM tab0 ---- -610032 -91867 1701 skipif mysql # not compatible query I rowsort label-756 SELECT DISTINCT col0 + + 43 * 41 - - col2 * - CAST ( - col1 * - col2 AS INTEGER ) FROM tab0 ---- -610032 -91867 1701 query I rowsort SELECT ALL + 62 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 51dd2771d516ceb935483eded78a5fa0 onlyif mysql # use DIV operator for integer division query I rowsort label-758 SELECT DISTINCT - col1 DIV - tab0.col0 - col0 * col1 AS col1 FROM tab0 ---- -2061 -3393 -8098 skipif mysql # not compatible query I rowsort label-758 SELECT DISTINCT - col1 / - tab0.col0 - col0 * col1 AS col1 FROM tab0 ---- -2061 -3393 -8098 query I rowsort SELECT ALL + + 94 AS col1 FROM tab0 AS cor0 ---- 94 94 94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + col2 col2 FROM tab2 ---- 104 117 34 query I rowsort SELECT + 0 * - col2 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col2 * - col2 * col1 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT + 85 + + cor0.col1 FROM tab0 AS cor0 ---- 171 176 182 onlyif mysql # use DIV operator for integer division query I rowsort label-764 SELECT ALL + col2 DIV + col1 + + ( - ( col1 ) * col0 ) FROM tab2 AS cor0 ---- -1341 -217 -4602 skipif mysql # not compatible query I rowsort label-764 SELECT ALL + col2 / + col1 + + ( - ( col1 ) * col0 ) FROM tab2 AS cor0 ---- -1341 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-765 SELECT ALL - col2 + + cor0.col0 * cor0.col2 DIV ( + col2 * + 53 ) FROM tab0 AS cor0 ---- -1 -33 -81 skipif mysql # not compatible query I rowsort label-765 SELECT ALL - col2 + + cor0.col0 * cor0.col2 / ( + col2 * + 53 ) FROM tab0 AS cor0 ---- -1 -33 -81 query I rowsort SELECT - col2 * - col1 * - 50 + 83 FROM tab0 cor0 ---- -141817 -373017 -4767 query I rowsort SELECT ALL ( col1 ) * - col1 AS col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT + 85 FROM tab0, tab2 cor0 ---- 9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b query I rowsort SELECT - col1 * 34 AS col1 FROM tab0 AS cor0 ---- -2924 -3094 -3298 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-770 SELECT ALL - col1 + CAST( - col1 + col2 AS SIGNED ) FROM tab0 AS cor0 ---- -100 -139 -193 skipif mysql # not compatible query I rowsort label-770 SELECT ALL - col1 + CAST ( - col1 + col2 AS INTEGER ) FROM tab0 AS cor0 ---- -100 -139 -193 query I rowsort SELECT DISTINCT + + col2 - col2 AS col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT - col1 * 79 AS col2 FROM tab0 cor0 ---- -6794 -7189 -7663 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-773 SELECT ALL - CAST( NULL AS SIGNED ) + 14 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif mysql # not compatible query I rowsort label-773 SELECT ALL - CAST ( NULL AS INTEGER ) + 14 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c query I rowsort SELECT DISTINCT - + 14 + + 55 * - col1 FROM tab2 AS cor0 ---- -1719 -3259 -949 onlyif mysql # use DIV operator for integer division query I rowsort label-775 SELECT DISTINCT - + col0 * - col2 DIV + col2 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-775 SELECT DISTINCT - + col0 * - col2 / + col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL - ( cor0.col1 ) * + col1 FROM tab1 AS cor0 ---- -100 -169 -676 onlyif mysql # use DIV operator for integer division query I rowsort label-777 SELECT ALL - + ( 1 ) DIV - col0 col1 FROM tab2 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-777 SELECT ALL - + ( 1 ) / - col0 col1 FROM tab2 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 26 + 58 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to d30a2acbf33c88274474306936d3227b onlyif mysql # use DIV operator for integer division query I rowsort label-779 SELECT DISTINCT + col2 * - col1 * + col0 + col0 DIV ( col2 ) FROM tab0 ---- -3360 -664117 -68112 skipif mysql # not compatible query I rowsort label-779 SELECT DISTINCT + col2 * - col1 * + col0 + col0 / ( col2 ) FROM tab0 ---- -3360 -664117 -68112 query I rowsort SELECT DISTINCT + cor2.col1 - 76 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2 ---- 10 15 21 query I rowsort SELECT 60 * + 31 FROM tab1 ---- 1860 1860 1860 query I rowsort SELECT ALL + col0 + col1 * col0 AS col0 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT 29 + 14 * - col2 FROM tab1 ---- -1315 -727 -769 query I rowsort SELECT + cor0.col1 * - 87 AS col0 FROM tab2 AS cor0 ---- -1479 -2697 -5133 query I rowsort SELECT - col2 * + col2 + cor0.col2 * - cor0.col2 AS col1 FROM tab0 AS cor0 ---- -13448 -2 -2178 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + col1 + col1 ) col2 FROM tab0 ---- 172 182 194 query I rowsort SELECT ALL ( col2 ) * + col2 AS col0 FROM tab2 ---- 1444 676 729 query I rowsort SELECT + 4 + col1 AS col0 FROM tab1 AS cor0 ---- 14 17 30 query I rowsort SELECT 27 * + col2 AS col2 FROM tab2 AS cor0 ---- 1026 702 729 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 cor0, tab1 cor1, tab1 AS cor2 ---- 972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-791 SELECT + ( ( - col2 ) ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-791 SELECT + ( ( - col2 ) ) * - CAST ( NULL AS REAL ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT - 87 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to c0011cd00aa3e86f06bebc13678997f9 query I rowsort SELECT ALL - ( col2 ) * - col0 * col1 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT 19 * + tab2.col2 FROM tab2 ---- 494 513 722 query I rowsort SELECT DISTINCT - 80 * - col0 FROM tab1 ---- 240 5120 6400 query I rowsort SELECT - 12 * + col2 AS col1 FROM tab1 AS cor0 ---- -1152 -648 -684 query I rowsort SELECT - tab1.col0 AS col1 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 729c1edda9332398299f39cd174ed840 query I rowsort SELECT DISTINCT - 88 + col0 * 69 FROM tab0 AS cor0 ---- 1568 2327 6053 query I rowsort SELECT ALL + ( + cor0.col0 ) FROM tab1, tab0 AS cor0 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT DISTINCT + + 18 + + col2 AS col2 FROM tab1 AS cor0 ---- 114 72 75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * ( + col2 * col2 ) col1 FROM tab1 ---- -157464 -185193 -884736 onlyif mysql # use DIV operator for integer division query I rowsort label-802 SELECT ALL - col1 DIV col0 + 71 FROM tab1 ---- 63 71 71 skipif mysql # not compatible query I rowsort label-802 SELECT ALL - col1 / col0 + 71 FROM tab1 ---- 63 71 71 query I rowsort SELECT ALL + col0 + 32 FROM tab1 ---- 112 35 96 query I rowsort SELECT + col0 + - col0 + + tab1.col0 * col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT ALL + col1 * col2 + + 36 FROM tab1 ---- 1284 1440 606 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-806 SELECT ALL col0 * + CAST( + col0 AS SIGNED ) + col0 FROM tab0 AS cor0 ---- 1260 600 8010 skipif mysql # not compatible query I rowsort label-806 SELECT ALL col0 * + CAST ( + col0 AS INTEGER ) + col0 FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT ALL + - col0 + 31 * + 81 AS col1 FROM tab2 AS cor0 ---- 2432 2433 2504 query I rowsort SELECT DISTINCT + 26 + - col2 AS col1 FROM tab2 AS cor0 ---- -1 -12 0 query I rowsort SELECT + + col1 + ( cor0.col0 ) * - col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col0 * 43 + col2 * + 86 col0 FROM tab1 AS cor0 ---- 2150 4515 4816 query I rowsort SELECT - cor0.col0 + - col0 * col0 FROM tab0 AS cor0 ---- -1260 -600 -8010 query I rowsort SELECT DISTINCT - - col2 * 5 FROM tab1 cor0 ---- 270 285 480 query I rowsort SELECT 73 * col1 + cor0.col1 FROM tab0 AS cor0 ---- 6364 6734 7178 onlyif mysql # use DIV operator for integer division query I rowsort label-814 SELECT ALL + col1 DIV - col1 + col2 FROM tab0 ---- 0 32 81 skipif mysql # not compatible query I rowsort label-814 SELECT ALL + col1 / - col1 + col2 FROM tab0 ---- 0 32 81 query I rowsort SELECT - 33 * - col0 - col0 FROM tab1 AS cor0 ---- 2048 2560 96 query I rowsort SELECT - 63 * + col2 AS col1 FROM tab1 AS cor0 ---- -3402 -3591 -6048 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-817 SELECT + CAST( NULL AS DECIMAL ) * col1 + + col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-817 SELECT + CAST ( NULL AS REAL ) * col1 + + col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 + 14 + - col1 FROM tab0 AS cor0 ---- -105 -159 -84 query I rowsort SELECT DISTINCT tab0.col0 AS col2 FROM tab0, tab2, tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL - col2 + + col2 * col2 FROM tab0 AS cor0 ---- 0 1056 6642 query I rowsort SELECT ALL + cor0.col2 + col0 AS col0 FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT ALL + + col2 * - 51 + + col0 * 23 * ( col0 ) AS col2 FROM tab0 cor0 ---- 11565 178001 28124 query I rowsort SELECT DISTINCT - 86 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -7396 -7826 -8342 query I rowsort SELECT - col0 * col1 + + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -2031 -3394 -8017 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-825 SELECT ALL + CAST( + col2 AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 skipif mysql # not compatible query I rowsort label-825 SELECT ALL + CAST ( + col2 AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT 8 FROM tab2 cor0 ---- 8 query I rowsort SELECT DISTINCT + ( 62 ) + col1 AS col0 FROM tab0 AS cor0 ---- 148 153 159 query I rowsort SELECT ALL - 18 * - col1 * - col1 - 6 * col2 * + col2 FROM tab1 cor0 ---- -21294 -29664 -58338 query I rowsort SELECT ALL col1 * - 0 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT col1 + tab1.col2 - - 20 FROM tab1 ---- 100 129 87 query I rowsort SELECT - col2 * col1 * ( col2 ) AS col2 FROM tab0 ---- -611884 -93654 -97 query I rowsort SELECT 15 * tab0.col0 FROM tab0, tab2 cor0 ---- 9 values hashing to e53625e4a404d1b78e419300380dfae7 query I rowsort SELECT - col1 + col1 * col2 AS col0 FROM tab1 cor0 ---- 1235 1378 560 query I rowsort SELECT + 4 * + col0 FROM tab1 cor0 ---- 12 256 320 query I rowsort SELECT - 84 + + cor0.col2 * col2 AS col2 FROM tab2 AS cor0 ---- 1360 592 645 onlyif mysql # use DIV operator for integer division query I rowsort label-836 SELECT ALL ( - 33 ) DIV col0 col1 FROM tab2 ---- -4 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-836 SELECT ALL ( - 33 ) / col0 col1 FROM tab2 ---- -4 0 0 query I rowsort SELECT - ( 3 ) FROM tab2 ---- -3 -3 -3 query I rowsort SELECT + 7 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 3362c0cb2b2c663037159d0699d46b76 query I rowsort SELECT - ( + col0 ) + col2 * col0 * col2 AS col1 FROM tab2 AS cor0 ---- 113997 5096 52650 query I rowsort SELECT - - 63 * - cor0.col2 + - cor0.col2 + + col1 FROM tab2 cor0 ---- -1605 -1697 -2415 onlyif mysql # use DIV operator for integer division query I rowsort label-841 SELECT + + 77 - cor0.col1 DIV + 8 FROM tab2 AS cor0 ---- 70 74 75 skipif mysql # not compatible query I rowsort label-841 SELECT + + 77 - cor0.col1 / + 8 FROM tab2 AS cor0 ---- 70 74 75 query I rowsort SELECT - 8 + - col1 + col1 FROM tab1 AS cor0 ---- -8 -8 -8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-843 SELECT cor0.col0 * col1 + CAST( NULL AS SIGNED ) * col1 col2 FROM tab0 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-843 SELECT cor0.col0 * col1 + CAST ( NULL AS INTEGER ) * col1 col2 FROM tab0 cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-844 SELECT ALL + col1 + + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-844 SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-845 SELECT ALL col1 DIV - col0 + col1 FROM tab1 AS cor0 ---- 10 13 18 skipif mysql # not compatible query I rowsort label-845 SELECT ALL col1 / - col0 + col1 FROM tab1 AS cor0 ---- 10 13 18 query I rowsort SELECT + + col1 * - col2 + ( + cor0.col1 ) * col2 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-847 SELECT + 13 - + col2 * CAST( col2 AS SIGNED ) FROM tab2 ---- -1431 -663 -716 skipif mysql # not compatible query I rowsort label-847 SELECT + 13 - + col2 * CAST ( col2 AS INTEGER ) FROM tab2 ---- -1431 -663 -716 onlyif mysql # use DIV operator for integer division query I rowsort label-848 SELECT tab1.col0 DIV + ( + tab1.col1 * col0 ) FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-848 SELECT tab1.col0 / + ( + tab1.col1 * col0 ) FROM tab1 ---- 0 0 0 query I rowsort SELECT + col2 - - 74 AS col1 FROM tab1 AS cor0 ---- 128 131 170 onlyif mysql # use DIV operator for integer division query I rowsort label-850 SELECT ALL col1 DIV - cor0.col1 + + col0 AS col1 FROM tab2 AS cor0 ---- 6 77 78 skipif mysql # not compatible query I rowsort label-850 SELECT ALL col1 / - cor0.col1 + + col0 AS col1 FROM tab2 AS cor0 ---- 6 77 78 query I rowsort SELECT + col2 * ( tab1.col0 ) AS col1 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT col1 + col2 * + col1 * col0 FROM tab1 ---- 36490 4238 99853 onlyif mysql # use DIV operator for integer division query I rowsort label-853 SELECT DISTINCT - col1 DIV - col0 + col0 AS col1 FROM tab1 AS cor0 ---- 11 64 80 skipif mysql # not compatible query I rowsort label-853 SELECT DISTINCT - col1 / - col0 + col0 AS col1 FROM tab1 AS cor0 ---- 11 64 80 query I rowsort SELECT DISTINCT - - col2 * + col2 * - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -17576 -19683 -54872 query I rowsort SELECT + col1 * + col1 + + 24 * col2 - ( col0 ) * cor0.col2 AS col0 FROM tab2 AS cor0 ---- -1801 1420 2077 query I rowsort SELECT + + col2 + - col2 - col1 FROM tab1 cor0 ---- -10 -13 -26 query I rowsort SELECT DISTINCT + + col0 + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0 ---- -7209 -768 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 * ( - col0 * col1 ) + col1 + - ( + col2 ) col0 FROM tab1 cor0 ---- 36433 4184 99757 skipif mysql # not compatible query I rowsort SELECT ALL + col2 * CAST ( + 48 AS REAL ) FROM tab2 AS cor0 ---- 1248 1296 1824 query I rowsort SELECT - col1 * 53 - - 46 AS col1 FROM tab1 AS cor0 ---- -1332 -484 -643 query I rowsort SELECT col0 + 70 AS col2 FROM tab2 AS cor0 ---- 148 149 77 query I rowsort SELECT ALL - col0 + 40 AS col1 FROM tab1 cor0 ---- -24 -40 37 query I rowsort SELECT cor0.col0 AS col2 FROM tab0, tab0 cor0 CROSS JOIN tab1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( + cor0.col1 AS REAL ) * + cor0.col1 - + 55 FROM tab0 AS cor0 ---- 7341 8226 9354 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( 99 ) col2 FROM tab0 AS cor0 ---- 99 99 99 query I rowsort SELECT ( - 30 ) AS col2 FROM tab2 AS cor0 ---- -30 -30 -30 query I rowsort SELECT ALL - col2 + - col1 * + cor0.col1 FROM tab1 AS cor0 ---- -157 -265 -730 query I rowsort SELECT ALL + col2 * col2 + + 36 FROM tab1 AS cor0 ---- 2952 3285 9252 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-869 SELECT DISTINCT + col2 + + col1 * CAST( - 41 AS SIGNED ) + col0 FROM tab2 AS cor0 ---- -1237 -2315 -580 skipif mysql # not compatible query I rowsort label-869 SELECT DISTINCT + col2 + + col1 * CAST ( - 41 AS INTEGER ) + col0 FROM tab2 AS cor0 ---- -1237 -2315 -580 query I rowsort SELECT DISTINCT - + col0 - col1 AS col0 FROM tab1 cor0 ---- -29 -74 -93 query I rowsort SELECT DISTINCT - tab2.col2 * + col1 * col2 AS col0 FROM tab2 ---- -22599 -24548 -39884 query I rowsort SELECT cor0.col2 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1 ---- 81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-873 SELECT DISTINCT - + col2 + + CAST( NULL AS SIGNED ) * 28 + - col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-873 SELECT DISTINCT - + col2 + + CAST ( NULL AS INTEGER ) * 28 + - col1 FROM tab2 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-874 SELECT + - col0 + - col2 * cor0.col0 DIV + col1 col2 FROM tab1 AS cor0 ---- -428 -670 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-874 SELECT + - col0 + - col2 * cor0.col0 / + col1 col2 FROM tab1 AS cor0 ---- -428 -670 -9 query I rowsort SELECT DISTINCT + cor0.col0 + ( - col1 ) FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT - col0 * col2 + - col1 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT DISTINCT - - cor0.col0 + + col2 * + col0 AS col1 FROM tab2 AS cor0 ---- 196 2106 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-878 SELECT ALL + col0 DIV 72 col2 FROM tab2 AS cor0 ---- 0 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-878 SELECT ALL + col0 / 72 col2 FROM tab2 AS cor0 ---- 0 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-879 SELECT DISTINCT - col0 * col1 DIV + col2 AS col0 FROM tab0 AS cor0 ---- -3395 -62 -98 skipif mysql # not compatible query I rowsort label-879 SELECT DISTINCT - col0 * col1 / + col2 AS col0 FROM tab0 AS cor0 ---- -3395 -62 -98 query I rowsort SELECT ALL - cor0.col0 * col2 + - col1 AS col2 FROM tab1 AS cor0 ---- -188 -3658 -7693 query I rowsort SELECT ALL - ( + 84 ) FROM tab0 AS cor0 ---- -84 -84 -84 query I rowsort SELECT DISTINCT - 22 + - col0 * col0 AS col2 FROM tab1 AS cor0 ---- -31 -4118 -6422 query I rowsort SELECT col1 * tab0.col1 + - col2 * col2 AS col0 FROM tab0 ---- 1557 6307 9408 onlyif mysql # use DIV operator for integer division query I rowsort label-884 SELECT + col0 * col2 + col2 DIV col2 AS col0 FROM tab1 ---- 163 3649 7681 skipif mysql # not compatible query I rowsort label-884 SELECT + col0 * col2 + col2 / col2 AS col0 FROM tab1 ---- 163 3649 7681 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 60 * - col1 + + col1 col1 FROM tab1 AS cor0 ---- 1586 610 793 query I rowsort SELECT + col1 + - col2 * + col0 AS col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT + col0 * - col0 + + col1 * + col1 FROM tab0 cor0 ---- 360 6820 8184 query I rowsort SELECT + 35 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc query I rowsort SELECT ALL - + col0 * col2 * - cor0.col2 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT - col0 - col2 * col0 AS col1 FROM tab2 AS cor0 ---- -196 -2106 -3081 query I rowsort SELECT ALL - 61 + + col0 * col1 AS col1 FROM tab2 AS cor0 ---- 1282 156 4541 query I rowsort SELECT DISTINCT 2 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * col1 col0 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ALL - 8 * + cor0.col1 + + col1 * + col1 * col0 FROM tab2 AS cor0 ---- 22695 271046 6479 query I rowsort SELECT ALL cor0.col2 + + ( - col0 ) AS col2 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT 95 * col2 + + col2 - col2 * - tab0.col0 * col2 FROM tab0 ---- 131 29304 606308 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * + col0 - - tab2.col1 col1 FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT - col1 * - col1 + - col1 * + col1 AS col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL - col2 + col0 + ( cor0.col2 ) AS col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL + col0 * + cor0.col0 + - ( col0 * cor0.col2 ) + - cor0.col0 * col2 * col1 AS col0 FROM tab2 AS cor0 ---- -115596 -47795 -5999 query I rowsort SELECT ALL - - col0 - + 76 AS col0 FROM tab2 AS cor0 ---- -69 2 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 - ( + cor0.col0 ) col1 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT ALL - col0 * + cor0.col0 + col0 FROM tab0 AS cor0 ---- -1190 -552 -7832 query I rowsort SELECT + 44 + col2 - - col2 FROM tab1 ---- 152 158 236 query I rowsort SELECT ALL 26 + col0 FROM tab1 ---- 106 29 90 query I rowsort SELECT ( col2 ) - - 50 AS col0 FROM tab0 ---- 132 51 83 query I rowsort SELECT ALL + 18 FROM tab1, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to 903ac227935c1532300db45a8537c595 query I rowsort SELECT DISTINCT + tab1.col1 * + col2 + + 34 FROM tab1 ---- 1282 1438 604 query I rowsort SELECT - col0 - + col2 * col2 AS col1 FROM tab1 cor0 ---- -2919 -3313 -9296 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + col0 + + cor0.col2 + + col0 * + col2 col0 FROM tab1 AS cor0 ---- 14176 225 7801 query I rowsort SELECT - col2 * col2 + + col1 AS col1 FROM tab1 ---- -2890 -3239 -9203 query I rowsort SELECT ALL + col2 * - col2 + + col1 AS col1 FROM tab2 ---- -1427 -617 -698 query I rowsort SELECT - col1 * - col0 - - col1 AS col1 FROM tab0 AS cor0 ---- 2150 3492 8190 onlyif mysql # use DIV operator for integer division query I rowsort label-914 SELECT + col2 - - col1 * col0 DIV + col2 AS col0 FROM tab0 AS cor0 ---- 180 3396 95 skipif mysql # not compatible query I rowsort label-914 SELECT + col2 - - col1 * col0 / + col2 AS col0 FROM tab0 AS cor0 ---- 180 3396 95 query I rowsort SELECT tab1.col1 * col0 * + col0 FROM tab1 ---- 234 40960 83200 query I rowsort SELECT + + col1 * col2 + cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1054 1989 6136 onlyif mysql # use DIV operator for integer division query I rowsort label-917 SELECT ALL - col2 + col0 DIV col0 AS col2 FROM tab2 ---- -25 -26 -37 skipif mysql # not compatible query I rowsort label-917 SELECT ALL - col2 + col0 / col0 AS col2 FROM tab2 ---- -25 -26 -37 query I rowsort SELECT - - col2 * - col1 + col1 * - col0 FROM tab2 AS cor0 ---- -1054 -1989 -6136 query I rowsort SELECT col1 * + col2 * + col0 FROM tab1 ---- 36480 4212 99840 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-920 SELECT CAST( + tab0.col1 AS SIGNED ) FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-920 SELECT CAST ( + tab0.col1 AS INTEGER ) FROM tab0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-921 SELECT DISTINCT CAST( + col0 AS SIGNED ) * col2 FROM tab0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-921 SELECT DISTINCT CAST ( + col0 AS INTEGER ) * col2 FROM tab0 ---- 35 7298 792 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-922 SELECT - CAST( col0 AS SIGNED ) AS col0 FROM tab0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-922 SELECT - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT - 9 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to caf28657beb43049740febe1fa9ded5a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( 23 ) col2 FROM tab2 ---- -23 onlyif mysql # use DIV operator for integer division query I rowsort label-925 SELECT col2 + - col2 DIV + col2 FROM tab0 ---- 0 32 81 skipif mysql # not compatible query I rowsort label-925 SELECT col2 + - col2 / + col2 FROM tab0 ---- 0 32 81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-926 SELECT + CAST( 49 AS SIGNED ) FROM tab1 ---- 49 49 49 skipif mysql # not compatible query I rowsort label-926 SELECT + CAST ( 49 AS INTEGER ) FROM tab1 ---- 49 49 49 query I rowsort SELECT - cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f query I rowsort SELECT - 43 AS col1 FROM tab2 AS cor0 ---- -43 -43 -43 query I rowsort SELECT ALL - 34 * col0 * + col2 AS col0 FROM tab0 AS cor0 ---- -1190 -248132 -26928 query I rowsort SELECT DISTINCT + cor0.col2 * col1 + + cor0.col2 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT ALL - 66 * + col0 AS col1 FROM tab1 AS cor0 ---- -198 -4224 -5280 query I rowsort SELECT DISTINCT + col2 * col0 + + col1 AS col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT - - 18 * col0 FROM tab1 AS cor0 ---- 1152 1440 54 query I rowsort SELECT ALL cor0.col0 * col2 - - cor0.col1 * col0 * col0 FROM tab2 AS cor0 ---- 109099 1708 360984 query I rowsort SELECT DISTINCT + 27 * - ( col1 * + ( + col0 ) ) - + col2 FROM tab2 ---- -124280 -36299 -5886 query I rowsort SELECT DISTINCT + col2 - 46 * col0 AS col1 FROM tab0 ---- -1071 -1609 -4012 query I rowsort SELECT ( col2 ) * - col0 FROM tab1 ---- -162 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * 58 + - col1 col1 FROM tab1 AS cor0 ---- 148 3702 4627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-939 SELECT - CAST( NULL AS SIGNED ) * 45 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-939 SELECT - CAST ( NULL AS INTEGER ) * 45 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - 5 * + col2 + col2 * - col2 FROM tab1 AS cor0 ---- -2646 -2964 -8736 query I rowsort SELECT - col2 * + col0 * 20 FROM tab1 AS cor0 ---- -153600 -3240 -72960 query I rowsort SELECT ALL 16 - + col2 FROM tab1 AS cor0 ---- -38 -41 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-943 SELECT - 85 * col1 + CAST( NULL AS SIGNED ) FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-943 SELECT - 85 * col1 + CAST ( NULL AS INTEGER ) FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 * col2 + - cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0 ---- -15005 -8485 -9410 query I rowsort SELECT 94 * 90 FROM tab0 ---- 8460 8460 8460 query I rowsort SELECT 58 * tab0.col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 9117a0eb56a263e5626b04f49219b146 query I rowsort SELECT cor0.col2 * 62 AS col2 FROM tab2 AS cor0 ---- 1612 1674 2356 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col2 * + 15 col0 FROM tab1 cor0 ---- 115200 2430 54720 query I rowsort SELECT col0 * + ( - col1 ) AS col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT col2 + - col1 * col2 * + col1 AS col0 FROM tab2 AS cor0 ---- -10944 -25920 -90480 query I rowsort SELECT col0 * 51 FROM tab2 AS cor0 ---- 357 3978 4029 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * 37 + - col2 col1 FROM tab0 cor0 ---- 3149 3285 3588 query I rowsort SELECT - ( col0 * 92 ) AS col2 FROM tab2 ---- -644 -7176 -7268 query I rowsort SELECT col0 * 66 FROM tab2 AS cor0 ---- 462 5148 5214 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-955 SELECT DISTINCT CAST( col2 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-955 SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-956 SELECT - col0 DIV 41 AS col1 FROM tab2 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-956 SELECT - col0 / 41 AS col1 FROM tab2 AS cor0 ---- -1 -1 0 query I rowsort SELECT DISTINCT + col0 * - col2 + - cor0.col2 FROM tab2 AS cor0 ---- -2054 -216 -3040 query I rowsort SELECT col2 * cor0.col0 * + col2 AS col2 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT DISTINCT 90 + 19 AS col2 FROM tab1 AS cor0 ---- 109 query I rowsort SELECT + - ( - 75 ) AS col1 FROM tab1 cor0 ---- 75 75 75 query I rowsort SELECT ALL + ( - cor0.col0 ) * col2 * col1 FROM tab1 AS cor0 ---- -36480 -4212 -99840 onlyif mysql # use DIV operator for integer division query I rowsort label-962 SELECT + col2 + cor0.col0 DIV + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-962 SELECT + col2 + cor0.col0 / + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL - 50 * - 74 FROM tab2 AS cor0 ---- 3700 3700 3700 onlyif mysql # use DIV operator for integer division query I rowsort label-964 SELECT DISTINCT + 50 + + col1 DIV col1 FROM tab2 AS cor0 ---- 51 skipif mysql # not compatible query I rowsort label-964 SELECT DISTINCT + 50 + + col1 / col1 FROM tab2 AS cor0 ---- 51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( - col2 ) col1 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT ALL tab2.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT DISTINCT 40 * - 1 FROM tab2 AS cor0 ---- -40 query I rowsort SELECT 53 * ( col2 ) FROM tab2 AS cor0 ---- 1378 1431 2014 onlyif mysql # use DIV operator for integer division query I rowsort label-969 SELECT ALL - + ( cor0.col2 ) DIV + cor0.col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-969 SELECT ALL - + ( cor0.col2 ) / + cor0.col1 FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT DISTINCT - 60 * cor0.col2 + col0 AS col2 FROM tab1 AS cor0 ---- -3237 -3356 -5680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-971 SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-971 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT ( - ( col0 ) ) AS col2 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT - - 67 * - cor0.col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 795e14125556a7621a6fd82ccc8b02ef query I rowsort SELECT 61 - - col2 AS col1 FROM tab0 ---- 143 62 94 query I rowsort SELECT DISTINCT 18 + - tab2.col0 FROM tab2 ---- -60 -61 11 query I rowsort SELECT cor0.col0 * ( + col2 ) FROM tab0 AS cor0 ---- 35 7298 792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 + col1 * - col2 col1 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT - + cor0.col0 * cor0.col0 FROM tab1 cor0 ---- -4096 -6400 -9 query I rowsort SELECT ALL + - col0 + + 10 FROM tab1 cor0 ---- -54 -70 7 query I rowsort SELECT - col1 + + 79 FROM tab2 AS cor0 ---- 20 48 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-981 SELECT + - col0 * - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 skipif mysql # not compatible query I rowsort label-981 SELECT + - col0 * - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT + col1 * col1 - + 52 FROM tab2 AS cor0 ---- 237 3429 909 onlyif mysql # use DIV operator for integer division query I rowsort label-983 SELECT DISTINCT 60 + col0 DIV ( + col2 ) FROM tab1 ---- 60 61 skipif mysql # not compatible query I rowsort label-983 SELECT DISTINCT 60 + col0 / ( + col2 ) FROM tab1 ---- 60 61 query I rowsort SELECT - 52 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74 query I rowsort SELECT - col0 + cor0.col0 * + 19 FROM tab2 AS cor0 ---- 126 1404 1422 onlyif mysql # use DIV operator for integer division query I rowsort label-986 SELECT col2 DIV 69 + + col1 * cor0.col0 + - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 2031 3394 8018 skipif mysql # not compatible query I rowsort label-986 SELECT col2 / 69 + + col1 * cor0.col0 + - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 2031 3394 8018 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * 1 + col2 col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - 83 + - col2 * + col1 + col0 * col2 AS col1 FROM tab2 ---- -731 2273 411 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-989 SELECT ALL CAST( NULL AS SIGNED ) * 26 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-989 SELECT ALL CAST ( NULL AS INTEGER ) * 26 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT col0 + + 38 FROM tab1 ---- 102 118 41 query I rowsort SELECT ALL - + col1 + 94 + 79 AS col1 FROM tab1 AS cor0 ---- 147 160 163 query I rowsort SELECT ALL - cor0.col0 * 34 + cor0.col1 + + col1 AS col0 FROM tab2 AS cor0 ---- -176 -2534 -2652 query I rowsort SELECT col1 + + col0 * + 14 + col2 * 70 FROM tab1 AS cor0 ---- 3848 4896 7853 query I rowsort SELECT + col0 * 99 + col1 * - cor0.col2 FROM tab1 cor0 ---- -1107 5766 6672 query I rowsort SELECT DISTINCT - col1 * + col1 * - col1 FROM tab2 AS cor0 ---- 205379 29791 4913 query I rowsort SELECT - col0 * col2 + col0 + - col1 FROM tab0 AS cor0 ---- -7300 -854 -97 query I rowsort SELECT + col1 * col0 + - 26 + col0 AS col1 FROM tab1 AS cor0 ---- 1094 55 678 query I rowsort SELECT ALL + ( - 73 * col1 ) FROM tab2 ---- -1241 -2263 -4307 query I rowsort SELECT - 67 + col1 FROM tab0 ---- 19 24 30 query I rowsort SELECT ALL + col0 * - col0 - col0 * col0 FROM tab1 AS cor0 ---- -12800 -18 -8192 query I rowsort SELECT + ( - 18 ) AS col1 FROM tab2 AS cor0 ---- -18 -18 -18 query I rowsort SELECT DISTINCT - col2 * col0 + - col0 FROM tab0 AS cor0 ---- -70 -7387 -816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 23 - cor0.col2 col1 FROM tab2 AS cor0 ---- -49 -50 -61 query I rowsort SELECT ALL - 76 * - col2 AS col1 FROM tab2 AS cor0 ---- 1976 2052 2888 query I rowsort SELECT DISTINCT + ( + col0 ) * cor0.col2 + - 92 FROM tab0 AS cor0 ---- -57 700 7206 query I rowsort SELECT ALL - 3 + + 44 * - col0 AS col2 FROM tab2 AS cor0 ---- -311 -3435 -3479 query I rowsort SELECT ALL + 19 * - col1 FROM tab2 AS cor0 ---- -1121 -323 -589 query I rowsort SELECT ALL - 22 + col1 * - cor0.col2 FROM tab0 cor0 ---- -119 -2860 -7484 onlyif mysql # use DIV operator for integer division query I rowsort label-1010 SELECT ALL + col2 DIV - col0 + - col1 + col0 * col2 FROM tab2 ---- 155 1969 2985 skipif mysql # not compatible query I rowsort label-1010 SELECT ALL + col2 / - col0 + - col1 + col0 * col2 FROM tab2 ---- 155 1969 2985 query I rowsort SELECT ALL col0 + col2 * + col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT - col2 + + col2 * + 33 AS col1 FROM tab0 AS cor0 ---- 1056 2624 32 query I rowsort SELECT ALL - + col0 - col2 AS col0 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT DISTINCT + - col0 * col1 + ( - col0 * - col1 ) FROM tab2 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1015 SELECT DISTINCT + 55 DIV + 77 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 0 skipif mysql # not compatible query I rowsort label-1015 SELECT DISTINCT + 55 / + 77 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 0 skipif mysql # not compatible query I rowsort SELECT DISTINCT + ( - col1 ) + CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT col0 + cor0.col0 * - ( 95 ) FROM tab2 AS cor0 ---- -658 -7332 -7426 query I rowsort SELECT + 82 * + col0 AS col0 FROM tab1 AS cor0 ---- 246 5248 6560 query I rowsort SELECT + + 75 AS col0 FROM tab1 AS cor0 ---- 75 75 75 query I rowsort SELECT ALL ( col2 ) * col0 + + col1 AS col1 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT + col1 * - col0 + 73 - - col1 AS col2 FROM tab1 AS cor0 ---- -557 -954 21 query I rowsort SELECT - col2 - + 11 FROM tab1 AS cor0 ---- -107 -65 -68 query I rowsort SELECT + + col0 + - ( + col2 ) FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT 50 + tab1.col1 * - ( + col0 ) FROM tab1 ---- -28 -590 -990 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1025 SELECT DISTINCT ( col2 ) + col0 * + CAST( col2 + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- 14678 1617 71 skipif mysql # not compatible query I rowsort label-1025 SELECT DISTINCT ( col2 ) + col0 * + CAST ( col2 + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- 14678 1617 71 query I rowsort SELECT ALL + 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 27 values hashing to c73fa6978df8525c99d6bc792bb27123 query I rowsort SELECT DISTINCT col2 + ( + tab0.col2 ) * + col0 AS col1 FROM tab0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-1028 SELECT col2 DIV - ( col0 * col1 ) + - col1 AS col0 FROM tab1 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-1028 SELECT col2 / - ( col0 * col1 ) + - col1 AS col0 FROM tab1 ---- -10 -13 -26 query I rowsort SELECT DISTINCT - ( 90 ) FROM tab1 ---- -90 query I rowsort SELECT DISTINCT - 82 * col0 FROM tab2 ---- -574 -6396 -6478 query I rowsort SELECT DISTINCT 49 AS col1 FROM tab0, tab2 cor0 ---- 49 query I rowsort SELECT DISTINCT + ( 61 ) FROM tab0 ---- 61 query I rowsort SELECT ALL ( - 79 ) - + cor0.col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 29d4ef134d6570ae3ad65f23b3adbabc query I rowsort SELECT - + 58 * col1 FROM tab0 cor0 ---- -4988 -5278 -5626 query I rowsort SELECT DISTINCT - 49 AS col2 FROM tab2, tab1 AS cor0 ---- -49 query I rowsort SELECT DISTINCT + 7 * 42 AS col2 FROM tab2 cor0 ---- 294 query I rowsort SELECT ALL - + ( 29 ) FROM tab0 AS cor0 ---- -29 -29 -29 query I rowsort SELECT ALL 49 * col2 FROM tab0 AS cor0 ---- 1617 4018 49 query I rowsort SELECT DISTINCT - col0 + + 56 * col2 AS col0 FROM tab2 AS cor0 ---- 1378 1505 2049 onlyif mysql # use DIV operator for integer division query I rowsort label-1040 SELECT + col2 DIV col1 + col1 AS col0 FROM tab2 ---- 19 31 59 skipif mysql # not compatible query I rowsort label-1040 SELECT + col2 / col1 + col1 AS col0 FROM tab2 ---- 19 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( 73 ) - tab0.col1 col0 FROM tab0 ---- -13 -18 -24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 17 * col1 col1 FROM tab2 ---- 1003 289 527 onlyif mysql # use DIV operator for integer division query I rowsort label-1043 SELECT DISTINCT + 10 * 95 - + col0 DIV - ( - 26 * + col0 ) FROM tab1 ---- 950 skipif mysql # not compatible query I rowsort label-1043 SELECT DISTINCT + 10 * 95 - + col0 / - ( - 26 * + col0 ) FROM tab1 ---- 950 query I rowsort SELECT DISTINCT col1 * - col0 - - col2 AS col1 FROM tab1 ---- -24 -583 -944 query I rowsort SELECT cor0.col1 * col0 + + col2 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT DISTINCT - 97 FROM tab2, tab0 cor0 ---- -97 query I rowsort SELECT DISTINCT cor1.col0 * + 30 * - cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- -17280 -237630 -36750 query I rowsort SELECT + tab1.col1 FROM tab1, tab1 cor0, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT + 21 * + tab2.col2 * 19 AS col1 FROM tab2 ---- 10374 10773 15162 query I rowsort SELECT ALL 58 + col1 AS col1 FROM tab2 ---- 117 75 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + 13 col2 FROM tab0 AS cor0 ---- 104 110 99 query I rowsort SELECT ALL col2 + - ( col0 ) FROM tab1 cor0 ---- -7 16 51 query I rowsort SELECT ALL + col0 - - col0 * + col0 AS col0 FROM tab1 AS cor0 ---- 12 4160 6480 onlyif mysql # use DIV operator for integer division query I rowsort label-1054 SELECT DISTINCT col1 DIV col2 + col1 AS col2 FROM tab1 cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-1054 SELECT DISTINCT col1 / col2 + col1 AS col2 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT ALL + col1 * - 2 - + col2 AS col2 FROM tab1 AS cor0 ---- -106 -122 -77 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1056 SELECT ALL - col0 + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1056 SELECT ALL - col0 + CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col2 * 11 + + col0 * col1 FROM tab0 cor0 ---- 1701 3384 7197 query I rowsort SELECT - + col2 * 15 AS col2 FROM tab1 AS cor0 ---- -1440 -810 -855 query I rowsort SELECT ALL + col1 * - 24 FROM tab1 cor0 ---- -240 -312 -624 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 43 col0 FROM tab0, tab2 cor0, tab1 cor1 ---- -43 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * cor0.col0 + + col0 col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # use DIV operator for integer division query I rowsort label-1062 SELECT ALL - cor0.col2 DIV + col1 AS col0 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-1062 SELECT ALL - cor0.col2 / + col1 AS col0 FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT ALL + - ( - 95 ) FROM tab0 AS cor0 ---- 95 95 95 query I rowsort SELECT ALL + 49 * col2 * + col0 + - ( ( col0 ) ) FROM tab1 AS cor0 ---- 178688 376240 7935 query I rowsort SELECT DISTINCT cor0.col2 - - cor0.col1 * - col0 * col1 FROM tab1 AS cor0 ---- -13424 -1974 -6343 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1066 SELECT ALL - ( col1 ) * - col0 + - CAST( col1 AS SIGNED ) * + col2 FROM tab2 AS cor0 ---- -620 3068 697 skipif mysql # not compatible query I rowsort label-1066 SELECT ALL - ( col1 ) * - col0 + - CAST ( col1 AS INTEGER ) * + col2 FROM tab2 AS cor0 ---- -620 3068 697 query I rowsort SELECT DISTINCT + 95 - + col2 FROM tab2 AS cor0 ---- 57 68 69 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1068 SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - cor0.col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1068 SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - cor0.col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1069 SELECT ALL + col1 + cor0.col0 DIV col0 FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-1069 SELECT ALL + col1 + cor0.col0 / col0 FROM tab1 AS cor0 ---- 11 14 27 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1070 SELECT - CAST( - col0 AS SIGNED ) col2 FROM tab2 cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1070 SELECT - CAST ( - col0 AS INTEGER ) col2 FROM tab2 cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 85 col2 FROM tab2 AS cor0 ---- 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1072 SELECT ALL - CAST( NULL AS SIGNED ) * col2 - - col2 / col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1072 SELECT ALL - CAST ( NULL AS INTEGER ) * col2 - - col2 / col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1073 SELECT DISTINCT - ( col2 ) DIV col2 FROM tab1 cor0 ---- -1 skipif mysql # not compatible query I rowsort label-1073 SELECT DISTINCT - ( col2 ) / col2 FROM tab1 cor0 ---- -1 query I rowsort SELECT col1 + col2 * 81 AS col2 FROM tab1 ---- 4400 4627 7789 query I rowsort SELECT ALL col0 + - 10 AS col1 FROM tab1 ---- -7 54 70 query I rowsort SELECT ALL col2 * - ( + col2 ) + col1 AS col0 FROM tab1 ---- -2890 -3239 -9203 query I rowsort SELECT DISTINCT col0 * + col0 + + ( col0 ) AS col1 FROM tab1 AS cor0 ---- 12 4160 6480 query I rowsort SELECT ALL + - cor0.col2 * + col0 AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-1079 SELECT 27 + - cor0.col0 DIV - 9 AS col1 FROM tab2 AS cor0 ---- 27 35 35 skipif mysql # not compatible query I rowsort label-1079 SELECT 27 + - cor0.col0 / - 9 AS col1 FROM tab2 AS cor0 ---- 27 35 35 query I rowsort SELECT DISTINCT - + col0 * - col2 AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-1081 SELECT ALL + - cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-1081 SELECT ALL + - cor0.col0 / col2 AS col1 FROM tab1 AS cor0 ---- -1 0 0 query I rowsort SELECT - - ( - col2 ) * cor0.col0 + 51 * + col0 FROM tab2 AS cor0 ---- 1027 168 1950 query I rowsort SELECT ALL - - 52 FROM tab0 AS cor0 ---- 52 52 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * - col0 * col0 col0 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT 31 * - ( col0 ) + 15 + col1 FROM tab0 ---- -2653 -643 -973 query I rowsort SELECT col2 * + col1 + + col1 AS col1 FROM tab2 ---- 1593 663 868 query I rowsort SELECT ALL 83 + - col1 FROM tab0 AS cor0 ---- -14 -3 -8 query I rowsort SELECT DISTINCT + - cor0.col0 * + col1 FROM tab0 cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-1089 SELECT - col1 + + col2 * - col2 DIV col2 + + col1 col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1089 SELECT - col1 + + col2 * - col2 / col2 + + col1 col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT - ( + ( + col2 ) ) AS col0 FROM tab2 ---- -26 -27 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 8 col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1092 SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1092 SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT ALL + 59 FROM tab0, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3 query I rowsort SELECT 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 001554c2952f1a80506b182ee04686f5 query I rowsort SELECT - - col2 * col1 + - 11 FROM tab0 AS cor0 ---- 2827 7451 86 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1096 SELECT DISTINCT col2 + - tab1.col2 + - CAST( NULL AS SIGNED ) * 12 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-1096 SELECT DISTINCT col2 + - tab1.col2 + - CAST ( NULL AS INTEGER ) * 12 FROM tab1 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1097 SELECT - col1 DIV col1 + 96 FROM tab0 AS cor0 ---- 95 95 95 skipif mysql # not compatible query I rowsort label-1097 SELECT - col1 / col1 + 96 FROM tab0 AS cor0 ---- 95 95 95 query I rowsort SELECT - 87 * - col1 + + col0 + col2 * - col0 AS col2 FROM tab0 ---- 6714 708 8439 onlyif mysql # use DIV operator for integer division query I rowsort label-1099 SELECT DISTINCT - - 49 DIV + 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 4 skipif mysql # not compatible query I rowsort label-1099 SELECT DISTINCT - - 49 / + 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 4 query I rowsort SELECT DISTINCT + 58 + - ( col0 ) FROM tab1 cor0 ---- -22 -6 55 query I rowsort SELECT DISTINCT - 59 * + col0 FROM tab2 AS cor0 ---- -413 -4602 -4661 query I rowsort SELECT + col0 * col2 * col1 AS col0 FROM tab2 AS cor0 ---- 119652 51034 5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( 49 ) col1 FROM tab1 AS cor0 ---- 49 query I rowsort SELECT ALL - 43 * 54 + col2 FROM tab2 AS cor0 ---- -2284 -2295 -2296 query I rowsort SELECT DISTINCT - ( ( col2 ) ) * 83 AS col0 FROM tab0 AS cor0 ---- -2739 -6806 -83 query I rowsort SELECT ALL + + col0 * - col1 + col2 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT + - ( 22 ) * col2 AS col1 FROM tab0 cor0 ---- -1804 -22 -726 query I rowsort SELECT ALL - cor0.col1 * - cor0.col0 + - col2 FROM tab1 cor0 ---- 24 583 944 query I rowsort SELECT 42 - + col2 FROM tab2 AS cor0 ---- 15 16 4 query I rowsort SELECT ALL - col2 * col2 * - tab0.col0 + - tab0.col2 FROM tab0 ---- 26103 34 598354 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 972 values hashing to 9345325155d9f4d7dc4986690c631cb9 query I rowsort SELECT col0 * - 81 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -167184 -274995 -656019 query I rowsort SELECT ALL + 95 * + col0 - + col1 * + 26 FROM tab1 AS cor0 ---- -391 5820 7262 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( + col0 AS REAL ) + col0 FROM tab1 ---- 128 160 6 query I rowsort SELECT ALL + + cor0.col2 * - col0 AS col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL + col1 * + col2 + 12 AS col1 FROM tab2 AS cor0 ---- 1546 658 849 query I rowsort SELECT 34 * - col1 * 98 AS col2 FROM tab0 ---- -286552 -303212 -323204 query I rowsort SELECT DISTINCT + col0 * + ( 20 * - col1 ) FROM tab0 ---- -161980 -41280 -67900 query I rowsort SELECT ALL col0 * ( - col1 ) * col0 FROM tab0 ---- -118825 -49536 -720811 query I rowsort SELECT - col0 + - 77 AS col1 FROM tab0 ---- -101 -112 -166 query I rowsort SELECT ALL - cor0.col0 + 93 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 1fb8406bdbd38fcdbe27f1a40fd67c96 query I rowsort SELECT - 57 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505 query I rowsort SELECT - - col0 + - 4 * + col2 AS col0 FROM tab0 AS cor0 ---- -108 -239 31 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1124 SELECT ALL - + col1 * - CAST( NULL AS SIGNED ) + col1 * col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1124 SELECT ALL - + col1 * - CAST ( NULL AS INTEGER ) + col1 * col2 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + 12 AS col0 FROM tab0, tab0 AS cor0 ---- 12 query I rowsort SELECT ALL col0 + ( + 18 ) FROM tab0 cor0 ---- 107 42 53 query I rowsort SELECT DISTINCT - col2 + ( + ( col2 ) ) AS col0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT + 33 * - col2 AS col0 FROM tab1 AS cor0 ---- -1782 -1881 -3168 query I rowsort SELECT DISTINCT cor0.col0 + + ( - 18 ) * - cor0.col2 FROM tab2, tab0 AS cor0 ---- 1565 53 618 onlyif mysql # use DIV operator for integer division query I rowsort label-1130 SELECT ALL ( + 69 ) DIV + col1 AS col2 FROM tab1 ---- 2 5 6 skipif mysql # not compatible query I rowsort label-1130 SELECT ALL ( + 69 ) / + col1 AS col2 FROM tab1 ---- 2 5 6 query I rowsort SELECT DISTINCT - 18 * + col2 FROM tab2 ---- -468 -486 -684 query I rowsort SELECT + ( - col2 ) * col1 AS col2 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + - ( col2 ) * ( 6 ) AS col1 FROM tab1 AS cor0 ---- -324 -342 -576 query I rowsort SELECT ( col1 ) * 18 AS col1 FROM tab1 ---- 180 234 468 query I rowsort SELECT - 52 AS col2 FROM tab0 ---- -52 -52 -52 query I rowsort SELECT ALL - - 27 * + cor0.col0 FROM tab0 AS cor0 ---- 2403 648 945 query I rowsort SELECT + - col0 * - col1 + col1 FROM tab0 cor0 ---- 2150 3492 8190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * 55 + - col2 * - cor0.col1 col1 FROM tab1 AS cor0 ---- -2950 -3152 1239 onlyif mysql # use DIV operator for integer division query I rowsort label-1139 SELECT + + col2 DIV ( col0 ) + col0 FROM tab1 AS cor0 ---- 21 64 81 skipif mysql # not compatible query I rowsort label-1139 SELECT + + col2 / ( col0 ) + col0 FROM tab1 AS cor0 ---- 21 64 81 onlyif mysql # use DIV operator for integer division query I rowsort label-1140 SELECT - col0 * + col1 + 24 DIV col2 AS col1 FROM tab0 ---- -2064 -3371 -8099 skipif mysql # not compatible query I rowsort label-1140 SELECT - col0 * + col1 + 24 / col2 AS col1 FROM tab0 ---- -2064 -3371 -8099 query I rowsort SELECT + col1 + col0 + + 77 FROM tab0 ---- 187 209 257 query I rowsort SELECT tab1.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1143 SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-1143 SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab2, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL 47 + col1 + + 86 FROM tab1 ---- 143 146 159 query I rowsort SELECT DISTINCT + col2 * - col2 * ( col1 ) FROM tab0 AS cor0 ---- -611884 -93654 -97 query I rowsort SELECT DISTINCT + 48 * col1 AS col1 FROM tab1 AS cor0 ---- 1248 480 624 query I rowsort SELECT DISTINCT - 53 + cor0.col2 * col2 FROM tab0 AS cor0 ---- -52 1036 6671 query I rowsort SELECT ALL + 51 * ( col1 ) FROM tab0 ---- 4386 4641 4947 onlyif mysql # use DIV operator for integer division query I rowsort label-1149 SELECT DISTINCT - 69 DIV + cor0.col0 FROM tab0, tab2, tab0 AS cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-1149 SELECT DISTINCT - 69 / + cor0.col0 FROM tab0, tab2, tab0 AS cor0 ---- -1 -2 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1150 SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 5 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-1150 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 5 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 3 col1 FROM tab0, tab1 AS cor0 ---- 3 query I rowsort SELECT DISTINCT + 94 AS col0 FROM tab1, tab0 AS cor0 ---- 94 query I rowsort SELECT cor0.col0 FROM tab0, tab1, tab2 AS cor0, tab2 AS cor1 ---- 81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6 onlyif mysql # use DIV operator for integer division query I rowsort label-1154 SELECT DISTINCT + 6 DIV cor0.col0 FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-1154 SELECT DISTINCT + 6 / cor0.col0 FROM tab2 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1155 SELECT - col2 + ( col0 + - 98 ) DIV col0 AS col0 FROM tab1 cor0 ---- -57 -85 -96 skipif mysql # not compatible query I rowsort label-1155 SELECT - col2 + ( col0 + - 98 ) / col0 AS col0 FROM tab1 cor0 ---- -57 -85 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1156 SELECT DISTINCT CAST( NULL AS SIGNED ) * + 76 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1156 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 76 FROM tab2 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1157 SELECT DISTINCT + 25 * col1 DIV col1 + 61 FROM tab0 AS cor0 ---- 86 skipif mysql # not compatible query I rowsort label-1157 SELECT DISTINCT + 25 * col1 / col1 + 61 FROM tab0 AS cor0 ---- 86 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1158 SELECT CAST( - col1 AS SIGNED ) + + col0 * ( col0 ) * col0 - col2 AS col1 FROM tab2 AS cor0 ---- 285 474467 492984 skipif mysql # not compatible query I rowsort label-1158 SELECT CAST ( - col1 AS INTEGER ) + + col0 * ( col0 ) * col0 - col2 AS col1 FROM tab2 AS cor0 ---- 285 474467 492984 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1159 SELECT DISTINCT col0 * CAST( - 14 AS SIGNED ) - + col0 * + tab0.col0 FROM tab0 ---- -1715 -912 -9167 skipif mysql # not compatible query I rowsort label-1159 SELECT DISTINCT col0 * CAST ( - 14 AS INTEGER ) - + col0 * + tab0.col0 FROM tab0 ---- -1715 -912 -9167 onlyif mysql # use DIV operator for integer division query I rowsort label-1160 SELECT tab2.col2 DIV tab2.col1 col2 FROM tab2 ---- 0 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1160 SELECT tab2.col2 / tab2.col1 col2 FROM tab2 ---- 0 0 2 query I rowsort SELECT ALL + 60 - 35 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 525a55d5ed224a62da65df36731881a7 query I rowsort SELECT col2 + col1 + col2 * col0 AS col1 FROM tab2 ---- 2113 247 3057 onlyif mysql # use DIV operator for integer division query I rowsort label-1163 SELECT DISTINCT - col0 DIV + tab0.col0 AS col0 FROM tab0 ---- -1 skipif mysql # not compatible query I rowsort label-1163 SELECT DISTINCT - col0 / + tab0.col0 AS col0 FROM tab0 ---- -1 query I rowsort SELECT - + 0 + - col1 FROM tab2 cor0 ---- -17 -31 -59 query I rowsort SELECT + 98 * cor0.col2 + - cor0.col0 FROM tab1 cor0 ---- 5289 5522 9328 onlyif mysql # use DIV operator for integer division query I rowsort label-1166 SELECT - - col1 DIV 42 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-1166 SELECT - - col1 / 42 col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + 52 * + col0 FROM tab2 AS cor0 ---- 364 4056 4108 query I rowsort SELECT - - ( 91 ) * col2 + col0 FROM tab2 AS cor0 ---- 2444 2464 3537 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1169 SELECT CAST( - 27 AS SIGNED ) + col1 * col2 FROM tab0 AS cor0 ---- 2811 70 7435 skipif mysql # not compatible query I rowsort label-1169 SELECT CAST ( - 27 AS INTEGER ) + col1 * col2 FROM tab0 AS cor0 ---- 2811 70 7435 onlyif mysql # use DIV operator for integer division query I rowsort label-1170 SELECT - + cor0.col2 + - ( cor0.col2 ) DIV - col1 FROM tab2 AS cor0 ---- -26 -27 -36 skipif mysql # not compatible query I rowsort label-1170 SELECT - + cor0.col2 + - ( cor0.col2 ) / - col1 FROM tab2 AS cor0 ---- -26 -27 -36 onlyif mysql # use DIV operator for integer division query I rowsort label-1171 SELECT ALL 79 DIV col1 + tab0.col2 * ( - col2 ) AS col2 FROM tab0 ---- -1 -1089 -6724 skipif mysql # not compatible query I rowsort label-1171 SELECT ALL 79 / col1 + tab0.col2 * ( - col2 ) AS col2 FROM tab0 ---- -1 -1089 -6724 query I rowsort SELECT DISTINCT 9 + col1 FROM tab0 ---- 100 106 95 query I rowsort SELECT DISTINCT + ( cor0.col2 ) FROM tab2, tab0, tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL 68 + - col2 AS col2 FROM tab1 ---- -28 11 14 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1175 SELECT 20 * - 76 + + col2 * CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1175 SELECT 20 * - 76 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1176 SELECT ALL + - CAST( NULL AS SIGNED ) + + col2 * col0 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1176 SELECT ALL + - CAST ( NULL AS INTEGER ) + + col2 * col0 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 + - col2 * - col0 AS col2 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT ALL + col1 + - col1 * tab0.col2 FROM tab0 ---- -2752 -7371 0 query I rowsort SELECT - 83 + + col1 * col2 * col2 FROM tab2 AS cor0 ---- 22516 24465 39801 query I rowsort SELECT DISTINCT + 16 + - cor0.col1 * + 41 FROM tab1 AS cor0 ---- -1050 -394 -517 query I rowsort SELECT DISTINCT col0 + + col0 + cor0.col1 * col1 FROM tab2 AS cor0 ---- 3637 447 975 query I rowsort SELECT ALL - 18 + col2 * + ( col0 ) AS col2 FROM tab2 AS cor0 ---- 171 2010 2984 query I rowsort SELECT 31 + + col0 * - col1 AS col2 FROM tab2 ---- -1312 -186 -4571 query I rowsort SELECT DISTINCT col1 + - col0 * - ( cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- 35 4106 6413 onlyif mysql # use DIV operator for integer division query I rowsort label-1185 SELECT + col1 + - col2 DIV col1 FROM tab1 AS cor0 ---- 24 5 6 skipif mysql # not compatible query I rowsort label-1185 SELECT + col1 + - col2 / col1 FROM tab1 AS cor0 ---- 24 5 6 query I rowsort SELECT DISTINCT - - col1 * + col0 + ( - 2 * col2 ) AS col1 FROM tab2 AS cor0 ---- 1267 163 4550 query I rowsort SELECT DISTINCT + - 10 * + col0 * col2 FROM tab2 AS cor0 ---- -1890 -20280 -30020 query I rowsort SELECT - 20 * col0 + - 99 AS col1 FROM tab1 AS cor0 ---- -1379 -159 -1699 query I rowsort SELECT ALL - col2 * col0 + + col2 * + ( + col2 ) AS col2 FROM tab0 AS cor0 ---- -34 -574 297 query I rowsort SELECT ALL col2 * - cor0.col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT + 1 * tab2.col1 FROM tab2 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col1 * - col2 * + col0 + + col0 col2 FROM tab1 AS cor0 ---- -36416 -4209 -99760 query I rowsort SELECT ALL - - col0 * + col0 + + col0 + - ( + col2 ) AS col2 FROM tab1 cor0 ---- -42 4103 6384 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * 83 col2 FROM tab1 AS cor0 ---- 4482 4731 7968 query I rowsort SELECT ALL - cor0.col2 + + ( col1 ) * cor0.col2 FROM tab0 AS cor0 ---- 2805 7380 96 onlyif mysql # use DIV operator for integer division query I rowsort label-1196 SELECT DISTINCT - col0 + col1 DIV + col1 AS col1 FROM tab0 cor0 ---- -23 -34 -88 skipif mysql # not compatible query I rowsort label-1196 SELECT DISTINCT - col0 + col1 / + col1 AS col1 FROM tab0 cor0 ---- -23 -34 -88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + col1 * col2 col2 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT ALL cor0.col0 * col0 + + 14 - col1 FROM tab0 AS cor0 ---- 1142 504 7844 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1199 SELECT ALL + cor0.col2 + CAST( NULL AS SIGNED ) * 3 + cor0.col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1199 SELECT ALL + cor0.col2 + CAST ( NULL AS INTEGER ) * 3 + cor0.col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - col2 - - ( cor0.col2 ) AS col1 FROM tab1 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1201 SELECT DISTINCT - cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1201 SELECT DISTINCT - cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT col0 + - 40 FROM tab0 cor0 ---- -16 -5 49 query I rowsort SELECT DISTINCT col2 + - 43 * - col1 AS col0 FROM tab0 AS cor0 ---- 3731 3995 4172 query I rowsort SELECT DISTINCT - col0 * 69 FROM tab0 AS cor0 ---- -1656 -2415 -6141 query I rowsort SELECT ALL - col1 + col1 * + 26 * col2 AS col2 FROM tab2 AS cor0 ---- 16779 21731 39825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1206 SELECT ALL + col0 * - CAST( - 42 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 126 2688 3360 skipif mysql # not compatible query I rowsort label-1206 SELECT ALL + col0 * - CAST ( - 42 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 126 2688 3360 query I rowsort SELECT DISTINCT - ( col1 ) - + cor0.col1 AS col1 FROM tab1 AS cor0 ---- -20 -26 -52 query I rowsort SELECT ALL col0 - 78 * - col0 AS col2 FROM tab1 AS cor0 ---- 237 5056 6320 query I rowsort SELECT ALL + + ( col1 ) * col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL - + col1 + 90 FROM tab1 AS cor0 ---- 64 77 80 onlyif mysql # use DIV operator for integer division query I rowsort label-1211 SELECT DISTINCT + ( + col0 ) + - col1 DIV + 27 FROM tab1 cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-1211 SELECT DISTINCT + ( + col0 ) + - col1 / + 27 FROM tab1 cor0 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( col1 ) + - col0 * col2 col2 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT - + 53 * 42 - col2 FROM tab1 AS cor0 ---- -2280 -2283 -2322 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1214 SELECT + + col1 * + ( col0 ) - - CAST( NULL AS SIGNED ) * - col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1214 SELECT + + col1 * + ( col0 ) - - CAST ( NULL AS INTEGER ) * - col2 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 68 - 71 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1 ---- 27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166 query I rowsort SELECT ALL ( col1 + - col2 ) AS col2 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT 38 FROM tab0, tab1, tab0 cor0 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb query I rowsort SELECT ( - col2 ) * - ( ( + col0 ) ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL 35 * 54 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 0b233c0c53c78f852a46da4acac78ef7 query I rowsort SELECT ALL cor0.col2 * col0 - + col1 * + 72 AS col0 FROM tab2 AS cor0 ---- -2043 -2220 1778 onlyif mysql # use DIV operator for integer division query I rowsort label-1221 SELECT ALL - + col1 + col2 DIV col1 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-1221 SELECT ALL - + col1 + col2 / col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT + col2 + 23 FROM tab0 AS cor0 ---- 105 24 56 query I rowsort SELECT DISTINCT + col2 + - col0 * ( col1 ) FROM tab2 AS cor0 ---- -1305 -190 -4576 onlyif mysql # use DIV operator for integer division query I rowsort label-1224 SELECT col1 DIV + 80 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1224 SELECT col1 / + 80 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT col1 * col1 + - 51 FROM tab2 ---- 238 3430 910 query I rowsort SELECT - 3 + - tab1.col1 * + col2 AS col1 FROM tab1 ---- -1251 -1407 -573 query I rowsort SELECT DISTINCT - 13 FROM tab2, tab1, tab0 AS cor0 ---- -13 query I rowsort SELECT DISTINCT 95 * - col0 AS col1 FROM tab0 ---- -2280 -3325 -8455 query I rowsort SELECT DISTINCT 55 * col2 - cor0.col2 FROM tab1 AS cor0 ---- 2916 3078 5184 onlyif mysql # use DIV operator for integer division query I rowsort label-1230 SELECT cor0.col1 * 28 + + col1 DIV + col1 AS col2 FROM tab2 AS cor0 ---- 1653 477 869 skipif mysql # not compatible query I rowsort label-1230 SELECT cor0.col1 * 28 + + col1 / + col1 AS col2 FROM tab2 AS cor0 ---- 1653 477 869 query I rowsort SELECT ALL + 51 * col1 * col1 + - col1 FROM tab2 AS cor0 ---- 14722 177472 48980 onlyif mysql # use DIV operator for integer division query I rowsort label-1232 SELECT col0 DIV col0 + col2 FROM tab2 AS cor0 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-1232 SELECT col0 / col0 + col2 FROM tab2 AS cor0 ---- 27 28 39 query I rowsort SELECT ALL col1 + - 83 * col0 * - cor0.col1 FROM tab1 AS cor0 ---- 53130 6500 86333 query I rowsort SELECT DISTINCT 95 * - 25 AS col2 FROM tab1 AS cor0 ---- -2375 query I rowsort SELECT DISTINCT - 44 + col1 FROM tab2 AS cor0 ---- -13 -27 15 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1236 SELECT + CAST( NULL AS DECIMAL ) + + ( cor0.col1 ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1236 SELECT + CAST ( NULL AS REAL ) + + ( cor0.col1 ) AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1237 SELECT ALL CAST( col1 AS SIGNED ) * col0 + + 66 - + col1 AS col2 FROM tab0 AS cor0 ---- 2044 3364 8074 skipif mysql # not compatible query I rowsort label-1237 SELECT ALL CAST ( col1 AS INTEGER ) * col0 + + 66 - + col1 AS col2 FROM tab0 AS cor0 ---- 2044 3364 8074 query I rowsort SELECT - 94 * + col2 * col0 + + 44 + - 43 FROM tab2 AS cor0 ---- -17765 -190631 -282187 query I rowsort SELECT + col2 * col0 * col1 AS col2 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT col0 - + 57 AS col1 FROM tab1 AS cor0 ---- -54 23 7 query I rowsort SELECT tab2.col2 * - col0 * + tab2.col1 - col1 AS col0 FROM tab2 ---- -119711 -51051 -5890 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + 57 col1 FROM tab1 ---- 111 114 153 query I rowsort SELECT DISTINCT + ( + col1 ) * + cor0.col2 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT ( 82 ) + - cor0.col2 * col0 FROM tab1 AS cor0 ---- -3566 -7598 -80 query I rowsort SELECT ALL + ( col2 ) * + col1 AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT cor0.col1 * + cor0.col1 + col0 AS col1 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT DISTINCT - 70 * - col0 FROM tab1 ---- 210 4480 5600 query I rowsort SELECT - 28 * + tab2.col2 AS col1 FROM tab2 ---- -1064 -728 -756 query I rowsort SELECT DISTINCT col2 + - tab0.col0 * + col0 FROM tab0 ---- -1224 -543 -7839 query I rowsort SELECT DISTINCT col2 * - col2 * tab0.col1 FROM tab0 ---- -611884 -93654 -97 query I rowsort SELECT + + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT + 96 + - col0 + + col0 * + col2 FROM tab1 AS cor0 ---- 255 3680 7696 query I rowsort SELECT + 66 + + col2 FROM tab0 cor0 ---- 148 67 99 onlyif mysql # use DIV operator for integer division query I rowsort label-1254 SELECT - 28 DIV + col0 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-1254 SELECT - 28 / + col0 FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT DISTINCT - - col2 * col2 * col1 AS col1 FROM tab1 AS cor0 ---- 119808 32490 75816 query I rowsort SELECT ALL - 46 * - col2 FROM tab2 ---- 1196 1242 1748 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 * - col0 + - col0 col2 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT ALL + tab2.col2 AS col2 FROM tab2, tab1 cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 onlyif mysql # use DIV operator for integer division query I rowsort label-1259 SELECT ( col1 ) DIV - col0 + col0 * + col0 * cor0.col0 FROM tab1 AS cor0 ---- 19 262144 512000 skipif mysql # not compatible query I rowsort label-1259 SELECT ( col1 ) / - col0 + col0 * + col0 * cor0.col0 FROM tab1 AS cor0 ---- 19 262144 512000 query I rowsort SELECT ALL - cor0.col0 + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2 ---- 972 values hashing to 5342fb4caf4767cb98bd21989bad099f query I rowsort SELECT DISTINCT + 96 AS col2 FROM tab2, tab1 AS cor0 ---- 96 query I rowsort SELECT + + col1 * + col1 + + col0 + col2 AS col1 FROM tab2 AS cor0 ---- 3585 406 995 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + tab1.col0 ) col2 FROM tab1 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( 22 ) col2 FROM tab2 ---- 22 query I rowsort SELECT - col1 * 26 AS col1 FROM tab2 ---- -1534 -442 -806 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1267 SELECT - CAST( NULL AS SIGNED ) * - col2 - - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1267 SELECT - CAST ( NULL AS INTEGER ) * - col2 - - col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 * - 67 * col1 - col0 FROM tab1 AS cor0 ---- -38254 -83696 -94071 query I rowsort SELECT + 87 - - col0 FROM tab0 AS cor0 ---- 111 122 176 query I rowsort SELECT + 40 + + 79 + + col1 AS col0 FROM tab2 AS cor0 ---- 136 150 178 onlyif mysql # use DIV operator for integer division query I rowsort label-1271 SELECT - col1 * col0 * - col0 + + col2 DIV 99 + 69 FROM tab2 ---- 106166 1588 359025 skipif mysql # not compatible query I rowsort label-1271 SELECT - col1 * col0 * - col0 + + col2 / 99 + 69 FROM tab2 ---- 106166 1588 359025 query I rowsort SELECT + col0 * - 15 + + col1 + + col2 AS col2 FROM tab1 ---- -1091 -893 35 query I rowsort SELECT ALL + cor0.col1 * - cor0.col0 AS col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT + col0 + - 3 FROM tab2 AS cor0 ---- 4 75 76 query I rowsort SELECT DISTINCT col0 + ( - cor0.col1 ) AS col2 FROM tab2 AS cor0 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col1 + - col0 * - col0 col2 FROM tab0 AS cor0 ---- 16020 2640 4620 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1277 SELECT ALL col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1277 SELECT ALL col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 - 39 AS col2 FROM tab2 AS cor0 ---- -32 39 40 query I rowsort SELECT ALL + + ( cor0.col2 ) + - col0 * + 71 FROM tab2 AS cor0 ---- -470 -5512 -5571 query I rowsort SELECT DISTINCT + + cor0.col0 AS col0 FROM tab0, tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL + + ( + 12 ) + col1 * + 81 AS col2 FROM tab2 AS cor0 ---- 1389 2523 4791 query I rowsort SELECT 83 * - cor0.col1 FROM tab0 AS cor0 ---- -7138 -7553 -8051 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1283 SELECT + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-1283 SELECT + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT ALL 45 + tab1.col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 19ab309465256aa50f52f14f6850f59d query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 cor2 ---- 3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da onlyif mysql # use DIV operator for integer division query I rowsort label-1286 SELECT ALL + ( cor0.col1 ) DIV - col1 + 54 AS col0 FROM tab2 AS cor0 ---- 53 53 53 skipif mysql # not compatible query I rowsort label-1286 SELECT ALL + ( cor0.col1 ) / - col1 + 54 AS col0 FROM tab2 AS cor0 ---- 53 53 53 query I rowsort SELECT + ( - 29 ) * - col1 FROM tab0 AS cor0 ---- 2494 2639 2813 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 26 col1 FROM tab2 AS cor0 ---- 26 26 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 + - col0 * - col1 col1 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT DISTINCT 70 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2 ---- 70 query I rowsort SELECT + + 82 + + col2 FROM tab2 AS cor0 ---- 108 109 120 query I rowsort SELECT 23 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to 546d49aa433406dd83ea19885588e658 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1293 SELECT + + col1 * CAST( + col2 AS SIGNED ) + + col1 * 86 AS col1 FROM tab2 AS cor0 ---- 2108 3503 6608 skipif mysql # not compatible query I rowsort label-1293 SELECT + + col1 * CAST ( + col2 AS INTEGER ) + + col1 * 86 AS col1 FROM tab2 AS cor0 ---- 2108 3503 6608 query I rowsort SELECT - col1 + 32 AS col0 FROM tab1 AS cor0 ---- 19 22 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + cor0.col1 * - col0 col0 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT + col1 - col2 * col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT col1 * - tab0.col0 + - col2 + 54 AS col0 FROM tab0 ---- -2043 -3342 -8127 onlyif mysql # use DIV operator for integer division query I rowsort label-1298 SELECT - ( col2 ) DIV - ( + col2 ) - + col0 * + col0 FROM tab1 ---- -4095 -6399 -8 skipif mysql # not compatible query I rowsort label-1298 SELECT - ( col2 ) / - ( + col2 ) - + col0 * + col0 FROM tab1 ---- -4095 -6399 -8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col2 - col0 col2 FROM tab2 AS cor0 ---- 1456 567 830 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 46 + - col1 + tab1.col1 col1 FROM tab1 ---- -46 -46 -46 query I rowsort SELECT ALL - + cor0.col1 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 query I rowsort SELECT + col1 * 7 AS col1 FROM tab1 AS cor0 ---- 182 70 91 onlyif mysql # use DIV operator for integer division query I rowsort label-1303 SELECT + + col2 DIV - ( - col0 ) + col0 * 51 * - col2 FROM tab0 AS cor0 ---- -1785 -372198 -40391 skipif mysql # not compatible query I rowsort label-1303 SELECT + + col2 / - ( - col0 ) + col0 * 51 * - col2 FROM tab0 AS cor0 ---- -1785 -372198 -40391 query I rowsort SELECT DISTINCT + col1 + 93 AS col1 FROM tab2 AS cor0 ---- 110 124 152 onlyif mysql # use DIV operator for integer division query I rowsort label-1305 SELECT DISTINCT - + col2 + ( cor0.col0 ) * col0 DIV col1 AS col0 FROM tab1 AS cor0 ---- -54 352 396 skipif mysql # not compatible query I rowsort label-1305 SELECT DISTINCT - + col2 + ( cor0.col0 ) * col0 / col1 AS col0 FROM tab1 AS cor0 ---- -54 352 396 onlyif mysql # use DIV operator for integer division query I rowsort label-1306 SELECT ALL - col0 * col1 DIV col0 - col1 * - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 1027 52 630 skipif mysql # not compatible query I rowsort label-1306 SELECT ALL - col0 * col1 / col0 - col1 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT DISTINCT + - col1 * + 5 * ( - col2 ) FROM tab0 AS cor0 ---- 14190 37310 485 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1308 SELECT ALL CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1308 SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT + col1 * 16 FROM tab1 ---- 160 208 416 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + col0 col1 FROM tab2 ---- 14 156 158 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1311 SELECT ALL col0 + CAST( ( + col0 ) AS SIGNED ) * + tab0.col0 * + tab0.col2 col0 FROM tab0 ---- 1260 19032 649611 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1311 SELECT ALL col0 + CAST ( ( + col0 ) AS INTEGER ) * + tab0.col0 * + tab0.col2 col0 FROM tab0 ---- 1260 19032 649611 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1312 SELECT col1 * - CAST( NULL AS SIGNED ) + col0 * col1 * CAST( NULL AS SIGNED ) - 64 * - col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1312 SELECT col1 * - CAST ( NULL AS INTEGER ) + col0 * col1 * CAST ( NULL AS INTEGER ) - 64 * - col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 * - 26 + col1 AS col0 FROM tab0 ---- -2041 -772 71 query I rowsort SELECT - col1 * 32 * + 29 + col2 * 1 FROM tab1 ---- -11968 -24074 -9223 query I rowsort SELECT 77 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to 051bf10c50e061d74ad0a4d205a1c622 query I rowsort SELECT col0 - ( col2 ) * + col2 FROM tab0 AS cor0 ---- -1065 -6635 34 query I rowsort SELECT ALL + + col2 * - col1 * cor0.col1 AS col1 FROM tab1 AS cor0 ---- -16224 -36504 -5700 query I rowsort SELECT ALL 42 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1319 SELECT ALL - tab0.col2 / + CAST( NULL AS SIGNED ) + + 54 * - col2 / + col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1319 SELECT ALL - tab0.col2 / + CAST ( NULL AS INTEGER ) + + 54 * - col2 / + col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1320 SELECT + col1 DIV - 4 FROM tab0 ---- -21 -22 -24 skipif mysql # not compatible query I rowsort label-1320 SELECT + col1 / - 4 FROM tab0 ---- -21 -22 -24 query I rowsort SELECT ALL + + 32 * - col1 FROM tab0 AS cor0 ---- -2752 -2912 -3104 onlyif mysql # use DIV operator for integer division query I rowsort label-1322 SELECT ALL + 23 DIV - col1 AS col1 FROM tab2 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-1322 SELECT ALL + 23 / - col1 AS col1 FROM tab2 ---- -1 0 0 query I rowsort SELECT + col0 + - cor0.col2 * col1 * col1 AS col0 FROM tab1 AS cor0 ---- -16144 -36501 -5636 query I rowsort SELECT col1 + + 9 FROM tab0 AS cor0 ---- 100 106 95 onlyif mysql # use DIV operator for integer division query I rowsort label-1325 SELECT + cor0.col2 DIV cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1325 SELECT + cor0.col2 / cor0.col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - + 96 FROM tab2 cor0 ---- -96 -96 -96 query I rowsort SELECT ALL + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT ALL col2 + cor0.col2 FROM tab0 cor0 ---- 164 2 66 query I rowsort SELECT - col1 * - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL + 26 + col0 * - 30 FROM tab2 AS cor0 ---- -184 -2314 -2344 query I rowsort SELECT DISTINCT 63 + col2 AS col0 FROM tab0 AS cor0 ---- 145 64 96 query I rowsort SELECT ALL 21 + col1 FROM tab2 AS cor0 ---- 38 52 80 onlyif mysql # use DIV operator for integer division query I rowsort label-1333 SELECT DISTINCT col1 * + col2 + 40 DIV - 26 FROM tab0 AS cor0 ---- 2837 7461 96 skipif mysql # not compatible query I rowsort label-1333 SELECT DISTINCT col1 * + col2 + 40 / - 26 FROM tab0 AS cor0 ---- 2837 7461 96 onlyif mysql # use DIV operator for integer division query I rowsort label-1334 SELECT ALL - col2 DIV - cor0.col2 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1334 SELECT ALL - col2 / - cor0.col2 FROM tab0 cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + col1 * col0 + 64 FROM tab0 cor0 ---- 2128 3459 8163 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 6 col2 FROM tab0 AS cor0 ---- -6 -6 -6 query I rowsort SELECT ALL - 65 * col0 + + col0 + + 34 FROM tab2 ---- -414 -4958 -5022 query I rowsort SELECT + + 61 AS col0 FROM tab2 AS cor0 ---- 61 61 61 query I rowsort SELECT ALL + col0 * + col0 + col1 AS col2 FROM tab0 ---- 1322 662 8012 query I rowsort SELECT DISTINCT + - cor0.col1 * col1 + col1 FROM tab2 AS cor0 ---- -272 -3422 -930 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1341 SELECT DISTINCT CAST( NULL AS SIGNED ) + - 71 * + col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1341 SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 71 * + col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL - ( 40 ) FROM tab2 AS cor0 ---- -40 -40 -40 query I rowsort SELECT 80 * + tab2.col0 * - col2 FROM tab2 ---- -15120 -162240 -240160 query I rowsort SELECT DISTINCT - 61 AS col0 FROM tab1 ---- -61 query I rowsort SELECT ( - 61 ) AS col2 FROM tab1 ---- -61 -61 -61 query I rowsort SELECT ALL - col1 * + col1 * col2 FROM tab2 AS cor0 ---- -10982 -25947 -90506 onlyif mysql # use DIV operator for integer division query I rowsort label-1347 SELECT DISTINCT + 21 DIV - col0 AS col2 FROM tab2 AS cor0 ---- -3 0 skipif mysql # not compatible query I rowsort label-1347 SELECT DISTINCT + 21 / - col0 AS col2 FROM tab2 AS cor0 ---- -3 0 query I rowsort SELECT ALL - col1 * + col1 + - col1 FROM tab0 AS cor0 ---- -7482 -8372 -9506 query I rowsort SELECT - col2 * - ( col1 ) AS col2 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT ALL + cor0.col1 * + 64 + 20 + col0 * col2 FROM tab2 AS cor0 ---- 2193 4110 5824 onlyif mysql # use DIV operator for integer division query I rowsort label-1351 SELECT ALL col2 DIV - cor0.col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-1351 SELECT ALL col2 / - cor0.col2 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT - cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 query I rowsort SELECT col1 * + col1 - col2 FROM tab1 AS cor0 ---- 43 622 73 query I rowsort SELECT ALL + col0 * - ( - col2 ) FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT + - cor0.col1 * - cor0.col2 + - cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT - col1 + - cor0.col1 * col0 * col2 FROM tab2 AS cor0 ---- -119711 -51051 -5890 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1357 SELECT ALL - + col2 + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1357 SELECT ALL - + col2 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col0 - - col2 AS col2 FROM tab1 AS cor0 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-1359 SELECT + + cor0.col2 DIV + col1 - col2 * col0 FROM tab1 AS cor0 ---- -160 -3643 -7673 skipif mysql # not compatible query I rowsort label-1359 SELECT + + cor0.col2 / + col1 - col2 * col0 FROM tab1 AS cor0 ---- -160 -3643 -7673 query I rowsort SELECT ALL col2 + + 81 * 13 FROM tab2 AS cor0 ---- 1079 1080 1091 query I rowsort SELECT + col0 * - 3 FROM tab2 AS cor0 ---- -21 -234 -237 query I rowsort SELECT DISTINCT - 80 + - ( col1 + col2 ) AS col0 FROM tab1 AS cor0 ---- -147 -160 -189 query I rowsort SELECT col2 * cor0.col0 + - col0 * cor0.col2 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1364 SELECT DISTINCT - col0 DIV - col0 + col1 FROM tab2 AS cor0 ---- 18 32 60 skipif mysql # not compatible query I rowsort label-1364 SELECT DISTINCT - col0 / - col0 + col1 FROM tab2 AS cor0 ---- 18 32 60 query I rowsort SELECT ALL ( - 1 ) * col2 AS col1 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT tab0.col2 + 8 AS col0 FROM tab0 ---- 41 9 90 query I rowsort SELECT - + 12 + - 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1 ---- 27 values hashing to 6d967b3bac2e01a0318865f682f9a97b query I rowsort SELECT + - col1 - + 10 AS col0 FROM tab1 AS cor0 ---- -20 -23 -36 query I rowsort SELECT + col0 * - ( col2 * cor0.col0 ) - + 26 FROM tab0 AS cor0 ---- -1251 -19034 -649548 onlyif mysql # use DIV operator for integer division query I rowsort label-1370 SELECT - - col0 DIV col2 + - col1 AS col0 FROM tab1 AS cor0 ---- -13 -26 -9 skipif mysql # not compatible query I rowsort label-1370 SELECT - - col0 / col2 + - col1 AS col0 FROM tab1 AS cor0 ---- -13 -26 -9 query I rowsort SELECT 15 * - col1 - col1 * + 43 FROM tab1 AS cor0 ---- -1508 -580 -754 query I rowsort SELECT 37 * cor0.col2 + col0 * col1 - + cor0.col0 * col2 FROM tab2 AS cor0 ---- -253 1027 3536 query I rowsort SELECT - col0 * - col1 * + col1 AS col0 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT 20 + 86 + - col0 FROM tab1 AS cor0 ---- 103 26 42 query I rowsort SELECT + ( + 69 ) * col2 FROM tab2 AS cor0 ---- 1794 1863 2622 query I rowsort SELECT - cor0.col0 * - 49 + col2 FROM tab0 AS cor0 ---- 1209 1716 4443 query I rowsort SELECT ALL ( 36 * col2 ) AS col1 FROM tab1 ---- 1944 2052 3456 query I rowsort SELECT col2 * ( - col2 + col2 ) AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - cor1.col0 * + 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to df40dd365c2771035502546a1f87d044 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1380 SELECT ALL ( col2 + CAST( col2 AS SIGNED ) * - tab2.col0 ) AS col2 FROM tab2 ---- -162 -2002 -2964 skipif mysql # not compatible query I rowsort label-1380 SELECT ALL ( col2 + CAST ( col2 AS INTEGER ) * - tab2.col0 ) AS col2 FROM tab2 ---- -162 -2002 -2964 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + - cor0.col2 * - col1 col2 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1382 SELECT + CAST( NULL AS SIGNED ) + 98 FROM tab0, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1382 SELECT + CAST ( NULL AS INTEGER ) + 98 FROM tab0, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT col2 + 57 AS col0 FROM tab1 ---- 111 114 153 query I rowsort SELECT + 15 AS col0 FROM tab1, tab2 cor0 ---- 9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd query I rowsort SELECT ALL col2 * 97 FROM tab0 ---- 3201 7954 97 query I rowsort SELECT DISTINCT - tab1.col2 - - col0 * col0 AS col0 FROM tab1 ---- -45 4039 6304 query I rowsort SELECT ALL + tab2.col2 - col0 * col2 FROM tab2 ---- -162 -2002 -2964 query I rowsort SELECT - tab0.col0 * - tab0.col1 * + col0 FROM tab0 ---- 118825 49536 720811 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col1 / - col1 ) ---- query III rowsort SELECT * FROM tab2 WHERE + col2 + col1 * - col0 = col1 * + col2 + col0 ---- query I rowsort SELECT col0 + col1 * col2 + - col1 FROM tab0 cor0 ---- 2776 35 7460 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND ( NULL ) ---- query I rowsort SELECT DISTINCT + col2 * col1 + col2 AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT ALL - cor0.col0 + - col0 * + col1 - - col1 * col1 * col0 AS col2 FROM tab2 AS cor0 ---- 21409 266838 6503 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 col0 FROM tab1 AS cor0 WHERE col0 >= ( col1 ) ---- 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col2 col0 FROM tab1, tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT ALL + col0 * cor0.col2 * - col2 + col1 FROM tab2 AS cor0 ---- -114059 -5072 -52669 query I rowsort SELECT DISTINCT - + col0 + col2 * col0 + + col1 FROM tab2 AS cor0 ---- 2009 213 2940 query I rowsort SELECT ALL + col2 * col0 + - col1 AS col2 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT DISTINCT col2 * + cor0.col0 + col0 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT ALL col2 * + cor0.col2 + + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 2970 3306 9312 query I rowsort SELECT DISTINCT tab0.col1 - - col2 FROM tab0 WHERE NOT col2 <= NULL AND NOT NULL IN ( col2 ) ---- query I rowsort SELECT - + cor0.col1 * col1 AS col0 FROM tab0 cor0 ---- -7396 -8281 -9409 query I rowsort SELECT ALL tab1.col2 - - col2 * col2 AS col2 FROM tab1 ---- 2970 3306 9312 query I rowsort SELECT - col0 * + col1 * col2 + + col2 + - tab0.col2 AS col0 FROM tab0 ---- -3395 -664118 -68112 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 55 * col0 col2 FROM tab2 AS cor0 ---- -385 -4290 -4345 onlyif mysql # use DIV operator for integer division query I rowsort label-1407 SELECT ALL 64 DIV + col1 FROM tab1 AS cor0 ---- 2 4 6 skipif mysql # not compatible query I rowsort label-1407 SELECT ALL 64 / + col1 FROM tab1 AS cor0 ---- 2 4 6 query I rowsort SELECT - 40 * cor0.col0 FROM tab2 AS cor0 ---- -280 -3120 -3160 query I rowsort SELECT ALL - 73 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2931474b870c05694e446771031a6949 query I rowsort SELECT + 89 AS col2 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 860d55eb6785972467218a9c3badb5ad query I rowsort SELECT DISTINCT col1 + - ( + col2 ) * - col0 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT - 3 + - col0 * col0 FROM tab1 ---- -12 -4099 -6403 query III rowsort SELECT * FROM tab1 WHERE ( - col1 ) <> ( NULL ) ---- query I rowsort SELECT + col2 * tab0.col0 + col2 FROM tab0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-1415 SELECT col0 + + tab0.col2 DIV tab0.col2 AS col0 FROM tab0 WHERE + col0 <= - col2 + + col1 ---- 25 36 skipif mysql # not compatible query I rowsort label-1415 SELECT col0 + + tab0.col2 / tab0.col2 AS col0 FROM tab0 WHERE + col0 <= - col2 + + col1 ---- 25 36 query I rowsort SELECT + col0 / - tab1.col2 AS col0 FROM tab1 WHERE NOT col1 * col1 = ( NULL ) ---- query III rowsort SELECT ALL * FROM tab1 WHERE ( col2 ) < NULL ---- query I rowsort SELECT col0 * + col1 / + col1 AS col1 FROM tab1 WHERE NULL IN ( + col2 ) ---- query I rowsort SELECT DISTINCT col0 + col0 - col2 AS col0 FROM tab1 ---- -48 64 71 query I rowsort SELECT ALL + col2 * - tab0.col1 AS col2 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT col1 * col0 + + col1 FROM tab1 ---- 104 1053 650 query III rowsort SELECT * FROM tab2 WHERE ( + col0 / tab2.col1 ) NOT BETWEEN NULL AND ( col2 * + col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * col2 * - tab0.col2 col2 FROM tab0 ---- 26136 35 598436 query I rowsort SELECT ALL col2 + - col0 * - col0 - + col2 AS col1 FROM tab1 ---- 4096 6400 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab1.col1 * - col2 col1 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT + tab2.col2 * col1 + col0 FROM tab2 ---- 1612 725 844 query I rowsort SELECT ALL col1 * col0 * - tab0.col1 FROM tab0 ---- -177504 -329315 -737009 query I rowsort SELECT col0 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND - col0 * - col2 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * col2 col1 FROM tab1 WHERE NOT + col1 < + col1 + col0 * col1 + col0 ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE ( + col2 * + col1 ) = ( NULL ) ---- query I rowsort SELECT ALL col1 - col1 * col1 AS col2 FROM tab2 ---- -272 -3422 -930 query I rowsort SELECT DISTINCT col2 * - col0 AS col0 FROM tab1 WHERE NOT NULL > NULL ---- query I rowsort SELECT DISTINCT col0 * + col1 + col1 AS col2 FROM tab1 ---- 104 1053 650 query III rowsort SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col0 ---- query I rowsort SELECT ALL col2 * - col2 - col0 AS col1 FROM tab1 ---- -2919 -3313 -9296 onlyif mysql # use DIV operator for integer division query I rowsort label-1436 SELECT + + col0 - + 64 DIV + 44 AS col2 FROM tab0 AS cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-1436 SELECT + + col0 - + 64 / + 44 AS col2 FROM tab0 AS cor0 ---- 23 34 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * 60 + col1 col0 FROM tab0 AS cor0 ---- 5246 5551 5917 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1438 SELECT DISTINCT cor0.col1 + + CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0 ---- 137 38 96 skipif mysql # not compatible query I rowsort label-1438 SELECT DISTINCT cor0.col1 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-1439 SELECT + cor0.col0 DIV + 35 + + cor0.col0 * col1 FROM tab2 AS cor0 ---- 1345 217 4604 skipif mysql # not compatible query I rowsort label-1439 SELECT + cor0.col0 / + 35 + + cor0.col0 * col1 FROM tab2 AS cor0 ---- 1345 217 4604 query I rowsort SELECT col1 * col0 * col2 + + 81 FROM tab0 cor0 ---- 3476 664199 68193 query I rowsort SELECT - col0 * 0 AS col2 FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1442 SELECT ALL + col2 DIV ( - 88 ) FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-1442 SELECT ALL + col2 / ( - 88 ) FROM tab1 AS cor0 ---- -1 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * 22 * tab2.col2 col2 FROM tab2 ---- 14212 18414 33748 query I rowsort SELECT ALL + 15 + - 21 FROM tab2, tab0 AS cor0 ---- 9 values hashing to e92b2679faac7be63701967e3f0c0934 query I rowsort SELECT + ( col0 * tab1.col1 + - ( col1 ) * tab1.col1 ) AS col0 FROM tab1 ---- -598 540 871 query I rowsort SELECT + col2 + cor0.col2 * - 71 FROM tab0 AS cor0 ---- -2310 -5740 -70 query I rowsort SELECT DISTINCT ( 60 ) FROM tab0 ---- 60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1448 SELECT DISTINCT - CAST( + col2 * + col0 AS SIGNED ) FROM tab2 ---- -189 -2028 -3002 skipif mysql # not compatible query I rowsort label-1448 SELECT DISTINCT - CAST ( + col2 * + col0 AS INTEGER ) FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT ( + 49 ) AS col2 FROM tab1 ---- 49 49 49 query I rowsort SELECT ( col0 * col1 ) FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT ALL + 52 - 71 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4 onlyif mysql # use DIV operator for integer division query I rowsort label-1452 SELECT DISTINCT + cor0.col2 + + cor1.col2 DIV tab2.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 9 values hashing to 2c3910426227b2020de8073d60e83693 skipif mysql # not compatible query I rowsort label-1452 SELECT DISTINCT + cor0.col2 + + cor1.col2 / tab2.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 9 values hashing to 2c3910426227b2020de8073d60e83693 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 98 col2 FROM tab1 AS cor0 ---- 98 98 98 query I rowsort SELECT - col2 * ( + col0 ) - - cor0.col1 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT - col0 - - cor0.col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 2040 3360 8010 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1456 SELECT ALL - - col0 * + CAST( + 94 AS SIGNED ) + col2 col2 FROM tab1 AS cor0 ---- 336 6073 7616 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1456 SELECT ALL - - col0 * + CAST ( + 94 AS INTEGER ) + col2 col2 FROM tab1 AS cor0 ---- 336 6073 7616 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1457 SELECT DISTINCT - col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 ---- 1444 676 729 skipif mysql # not compatible query I rowsort label-1457 SELECT DISTINCT - col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 ---- 1444 676 729 onlyif mysql # use DIV operator for integer division query I rowsort label-1458 SELECT DISTINCT + col0 * col1 DIV + col2 col2 FROM tab0 AS cor0 ---- 3395 62 98 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1458 SELECT DISTINCT + col0 * col1 / + col2 col2 FROM tab0 AS cor0 ---- 3395 62 98 query I rowsort SELECT ALL - col1 * ( - 64 ) + col0 * col1 FROM tab2 AS cor0 ---- 2201 2431 8378 onlyif mysql # use DIV operator for integer division query I rowsort label-1460 SELECT ALL col2 + col2 DIV col2 AS col1 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-1460 SELECT ALL col2 + col2 / col2 AS col1 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT ALL - col0 + + ( 64 * col2 ) AS col2 FROM tab1 AS cor0 ---- 3453 3584 6064 query I rowsort SELECT DISTINCT - col1 * + 51 AS col1 FROM tab1 AS cor0 ---- -1326 -510 -663 onlyif mysql # use DIV operator for integer division query I rowsort label-1463 SELECT - col1 + + col2 DIV ( col1 + + ( cor0.col0 ) ) AS col0 FROM tab1 AS cor0 ---- -10 -12 -25 skipif mysql # not compatible query I rowsort label-1463 SELECT - col1 + + col2 / ( col1 + + ( cor0.col0 ) ) AS col0 FROM tab1 AS cor0 ---- -10 -12 -25 query I rowsort SELECT - - col1 + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT - 20 AS col2 FROM tab2 cor0 ---- -20 -20 -20 query I rowsort SELECT + - 15 FROM tab0 cor0 ---- -15 -15 -15 query I rowsort SELECT + col2 + - col0 + col1 * ( - ( col1 ) ) FROM tab2 AS cor0 ---- -330 -3533 -941 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1468 SELECT + + CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1468 SELECT + + CAST ( NULL AS REAL ) * col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 * col1 + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 1381 244 4628 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * col2 + + 11 col0 FROM tab0 cor0 ---- 108 2849 7473 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1471 SELECT - CAST( col1 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 skipif mysql # not compatible query I rowsort label-1471 SELECT - CAST ( col1 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL + - ( + 76 ) + col1 + + 67 FROM tab1 cor0 ---- 1 17 4 query I rowsort SELECT DISTINCT + - col1 - cor0.col0 AS col0 FROM tab2 cor0 ---- -137 -38 -96 query I rowsort SELECT ALL + ( col1 ) + - col0 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT ALL cor0.col0 * + cor0.col1 + col0 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT DISTINCT + 59 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1477 SELECT ALL - col1 * CAST( - 67 AS SIGNED ) FROM tab1 ---- 1742 670 871 skipif mysql # not compatible query I rowsort label-1477 SELECT ALL - col1 * CAST ( - 67 AS INTEGER ) FROM tab1 ---- 1742 670 871 query I rowsort SELECT DISTINCT + - 11 * - cor0.col2 FROM tab0 AS cor0 ---- 11 363 902 query I rowsort SELECT + + 60 * col1 * + col0 AS col2 FROM tab2 AS cor0 ---- 13020 276120 80580 query I rowsort SELECT DISTINCT - col1 + col0 * + col0 AS col2 FROM tab1 AS cor0 ---- -17 4086 6387 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 97 * col2 col1 FROM tab1 AS cor0 ---- 5238 5529 9312 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1482 SELECT DISTINCT + 39 + col1 * + CAST( col2 AS SIGNED ) + col0 col0 FROM tab1 ---- 1367 1446 673 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1482 SELECT DISTINCT + 39 + col1 * + CAST ( col2 AS INTEGER ) + col0 col0 FROM tab1 ---- 1367 1446 673 query I rowsort SELECT - 36 FROM tab2, tab0 cor0, tab0 cor1 ---- 27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e query I rowsort SELECT ALL + 41 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to f6a440b478f0d00f8326a8c51fe094b8 query I rowsort SELECT - - 54 + col1 AS col0 FROM tab0 cor0 ---- 140 145 151 query I rowsort SELECT col2 + col0 - - 91 FROM tab0 ---- 127 148 262 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * + cor0.col2 * col2 col2 FROM tab1 cor0 ---- -157464 -185193 -884736 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1488 SELECT + col2 * CAST( NULL AS DECIMAL ) * col2 + col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1488 SELECT + col2 * CAST ( NULL AS REAL ) * col2 + col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL 75 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to e61b59795204c348103a58c0a8e4ce16 query I rowsort SELECT cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab0 cor1, tab1 AS cor2 ---- 81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994 query I rowsort SELECT DISTINCT col1 * 89 FROM tab1 AS cor0 ---- 1157 2314 890 query I rowsort SELECT 30 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2 ---- 243 values hashing to 6462674292f618e24ce4be3cc7863661 query I rowsort SELECT DISTINCT - col2 * - 32 FROM tab1 AS cor0 ---- 1728 1824 3072 query I rowsort SELECT + cor0.col1 * + 19 AS col2 FROM tab1 AS cor0 ---- 190 247 494 query I rowsort SELECT DISTINCT cor0.col2 + 21 FROM tab0 AS cor0 ---- 103 22 54 query I rowsort SELECT ALL - col1 + - 67 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -67 2685 7304 query I rowsort SELECT ALL - + col1 + - col2 * col1 FROM tab2 AS cor0 ---- -1593 -663 -868 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col0 + + col1 * col0 col0 FROM tab0 AS cor0 ---- 2040 3360 8010 onlyif mysql # use DIV operator for integer division query I rowsort label-1499 SELECT ALL + + col2 * + col2 + - col2 DIV col0 + col0 DIV 99 AS col2 FROM tab1 AS cor0 ---- 2898 3249 9215 skipif mysql # not compatible query I rowsort label-1499 SELECT ALL + + col2 * + col2 + - col2 / col0 + col0 / 99 AS col2 FROM tab1 AS cor0 ---- 2898 3249 9215 query I rowsort SELECT - col0 * - 49 AS col0 FROM tab1 ---- 147 3136 3920 query I rowsort SELECT ALL - + col0 + cor0.col1 AS col1 FROM tab0 cor0 ---- 2 62 62 query I rowsort SELECT DISTINCT - col1 + - col0 * col1 FROM tab2 cor0 ---- -1360 -248 -4661 query I rowsort SELECT + + 37 * - 0 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + 97 + - col1 * col0 * + cor0.col1 AS col2 FROM tab2 AS cor0 ---- -22734 -271421 -6630 query I rowsort SELECT + cor2.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 cor2 ---- 81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05 onlyif mysql # use DIV operator for integer division query I rowsort label-1506 SELECT + col2 DIV 3 + col2 FROM tab1 ---- 128 72 76 skipif mysql # not compatible query I rowsort label-1506 SELECT + col2 / 3 + col2 FROM tab1 ---- 128 72 76 query I rowsort SELECT col1 * 39 AS col2 FROM tab0 ---- 3354 3549 3783 onlyif mysql # use DIV operator for integer division query I rowsort label-1508 SELECT ( ( + col1 ) ) DIV col0 AS col0 FROM tab1 AS cor0 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-1508 SELECT ( ( + col1 ) ) / col0 AS col0 FROM tab1 AS cor0 ---- 0 0 8 query I rowsort SELECT cor0.col1 FROM tab0, tab0 cor0, tab2 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT + 81 - + col1 FROM tab0 AS cor0 ---- -10 -16 -5 query I rowsort SELECT DISTINCT + - col2 * - col2 - 20 FROM tab2 AS cor0 ---- 1424 656 709 query I rowsort SELECT - col2 * + col2 + + col2 FROM tab2 AS cor0 ---- -1406 -650 -702 query I rowsort SELECT DISTINCT col0 + + col1 * - col2 AS col1 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT ALL col0 * col2 + + col1 FROM tab2 cor0 ---- 2087 220 3019 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1515 SELECT col1 * - col2 + - CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1515 SELECT col1 * - col2 + - CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1516 SELECT DISTINCT - - 93 DIV cor0.col2 + col0 FROM tab1 AS cor0 ---- 4 65 80 skipif mysql # not compatible query I rowsort label-1516 SELECT DISTINCT - - 93 / cor0.col2 + col0 FROM tab1 AS cor0 ---- 4 65 80 query I rowsort SELECT ALL - col0 * + col0 * ( + col1 + - cor0.col0 ) AS col1 FROM tab1 AS cor0 ---- -207 221184 428800 query I rowsort SELECT + - cor0.col1 * + col2 - - ( + 90 ) AS col1 FROM tab0 AS cor0 ---- -2748 -7 -7372 query I rowsort SELECT ALL - col1 * - col0 * + col2 - col2 FROM tab1 AS cor0 ---- 36423 4158 99744 query I rowsort SELECT ALL + + cor0.col1 * cor0.col0 - + ( col0 ) AS col2 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT ALL + col0 * ( - cor0.col2 * col2 ) AS col1 FROM tab0 cor0 ---- -26136 -35 -598436 query I rowsort SELECT - col1 * col1 * col0 + col0 * + 15 FROM tab0 AS cor0 ---- -177144 -328790 -735674 query I rowsort SELECT DISTINCT - 4 FROM tab0, tab1, tab0 AS cor0 ---- -4 query I rowsort SELECT + col1 * - 20 + - col1 FROM tab2 AS cor0 ---- -1239 -357 -651 query I rowsort SELECT cor0.col0 + - ( + col2 ) * - col2 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT DISTINCT + cor0.col2 * - col0 * 93 - + col2 AS col2 FROM tab1 cor0 ---- -15120 -339321 -714336 query I rowsort SELECT cor0.col1 * + 35 + - 36 FROM tab0 AS cor0 ---- 2974 3149 3359 query I rowsort SELECT ALL + col2 * - 82 FROM tab2 AS cor0 ---- -2132 -2214 -3116 query I rowsort SELECT - cor0.col2 * ( + col2 ) + - col1 * + col0 AS col1 FROM tab1 AS cor0 ---- -10256 -2994 -3889 query I rowsort SELECT 33 * + col0 * - 96 + col2 + + tab0.col0 * col1 * col2 FROM tab0 ---- -107484 -7887 382248 query I rowsort SELECT - tab2.col2 + - tab2.col2 * col1 AS col1 FROM tab2 ---- -1560 -684 -864 query I rowsort SELECT col1 + + col1 + 54 FROM tab0 ---- 226 236 248 query I rowsort SELECT + - 1 + 6 FROM tab0 AS cor0 ---- 5 5 5 query I rowsort SELECT DISTINCT - - 9 + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 35 36 47 query I rowsort SELECT DISTINCT - - ( col2 ) + - col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT + col2 + 46 AS col0 FROM tab1 AS cor0 ---- 100 103 142 query I rowsort SELECT - col2 * + 59 AS col2 FROM tab2 AS cor0 ---- -1534 -1593 -2242 query I rowsort SELECT - col2 * + col2 * - cor0.col2 AS col2 FROM tab1 AS cor0 ---- 157464 185193 884736 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 18 col2 FROM tab0, tab0 AS cor0 ---- 18 onlyif mysql # use DIV operator for integer division query I rowsort label-1540 SELECT 17 * col0 + 82 DIV - col1 FROM tab1 AS cor0 ---- 1080 1354 48 skipif mysql # not compatible query I rowsort label-1540 SELECT 17 * col0 + 82 / - col1 FROM tab1 AS cor0 ---- 1080 1354 48 query I rowsort SELECT + 58 * - ( - col1 ) AS col0 FROM tab0 ---- 4988 5278 5626 query I rowsort SELECT 57 * col2 AS col0 FROM tab2 ---- 1482 1539 2166 onlyif mysql # use DIV operator for integer division query I rowsort label-1543 SELECT + ( + col0 ) * - cor0.col2 + + 56 - cor0.col2 DIV - 42 FROM tab1 AS cor0 ---- -105 -3591 -7622 skipif mysql # not compatible query I rowsort label-1543 SELECT + ( + col0 ) * - cor0.col2 + + 56 - cor0.col2 / - 42 FROM tab1 AS cor0 ---- -105 -3591 -7622 query I rowsort SELECT + col0 * - col2 + col0 AS col2 FROM tab2 cor0 ---- -182 -1950 -2923 query I rowsort SELECT DISTINCT - 63 + col0 FROM tab1 ---- -60 1 17 query I rowsort SELECT ALL + 25 * col1 + col1 FROM tab2 ---- 1534 442 806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - 28 col2 FROM tab1 AS cor0 ---- 280 364 728 query I rowsort SELECT - + cor0.col2 + - 44 * + col1 FROM tab2 AS cor0 ---- -1391 -2622 -786 query I rowsort SELECT + col0 * - ( 90 ) AS col2 FROM tab1 AS cor0 ---- -270 -5760 -7200 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * 32 * col1 col2 FROM tab1 AS cor0 ---- 18240 39936 44928 query I rowsort SELECT col2 + - 30 * 88 FROM tab1 AS cor0 ---- -2544 -2583 -2586 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col0 + 3 * + 36 col0 FROM tab2 cor0 ---- 115 186 187 query I rowsort SELECT col2 * + col2 + + col0 AS col2 FROM tab1 AS cor0 ---- 2919 3313 9296 query I rowsort SELECT ALL col1 * - col2 + 16 * - col0 + col1 * cor0.col1 AS col2 FROM tab2 AS cor0 ---- -1621 12 699 query I rowsort SELECT DISTINCT col1 - - col0 AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT - col2 + + 16 * - col1 FROM tab2 AS cor0 ---- -310 -523 -970 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + + 68 col0 FROM tab1 AS cor0 ---- 78 81 94 query I rowsort SELECT - col0 * - col0 + col0 AS col0 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT DISTINCT col0 * col2 + col0 AS col1 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT DISTINCT col0 * + ( ( - cor0.col1 ) ) - col1 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT cor0.col0 + 89 AS col1 FROM tab0 AS cor0 ---- 113 124 178 query I rowsort SELECT 45 - 5 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 16 col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3 query I rowsort SELECT ALL + 92 FROM tab0 cor0 ---- 92 92 92 query I rowsort SELECT DISTINCT + + col1 + 38 FROM tab1 AS cor0 ---- 48 51 64 query I rowsort SELECT ALL 80 * col2 FROM tab0 AS cor0 ---- 2640 6560 80 query I rowsort SELECT DISTINCT + col2 * 0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT + 78 AS col2 FROM tab0, tab2 AS cor0 ---- 78 onlyif mysql # use DIV operator for integer division query I rowsort label-1569 SELECT DISTINCT col0 DIV 78 AS col1 FROM tab2 ---- 0 1 skipif mysql # not compatible query I rowsort label-1569 SELECT DISTINCT col0 / 78 AS col1 FROM tab2 ---- 0 1 query I rowsort SELECT - ( col0 ) - + col1 FROM tab0 ---- -110 -132 -180 query I rowsort SELECT + 49 + col0 * + col2 AS col0 FROM tab0 AS cor0 ---- 7347 84 841 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1572 SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab1 cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-1572 SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 cor0 ---- -10 -13 -26 query I rowsort SELECT - + 82 + col1 * col2 * - 5 AS col2 FROM tab1 AS cor0 ---- -2932 -6322 -7102 onlyif mysql # use DIV operator for integer division query I rowsort label-1574 SELECT + col1 - - col0 DIV col0 AS col0 FROM tab0 AS cor0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-1574 SELECT + col1 - - col0 / col0 AS col0 FROM tab0 AS cor0 ---- 87 92 98 query I rowsort SELECT - + col2 * cor0.col2 * col2 + + col0 * col0 FROM tab1 AS cor0 ---- -157455 -181097 -878336 query I rowsort SELECT - ( + col2 ) * + ( col1 ) FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-1577 SELECT DISTINCT col2 + - ( 30 ) + col1 DIV ( + 10 ) AS col0 FROM tab2 ---- 0 1 9 skipif mysql # not compatible query I rowsort label-1577 SELECT DISTINCT col2 + - ( 30 ) + col1 / ( + 10 ) AS col0 FROM tab2 ---- 0 1 9 query I rowsort SELECT + col1 + + 84 AS col1 FROM tab0 cor0 ---- 170 175 181 query I rowsort SELECT ALL 73 * - cor0.col1 + + cor0.col2 - - col2 FROM tab2 AS cor0 ---- -1165 -2209 -4255 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 40 - col2 * col2 col1 FROM tab1 AS cor0 ---- -2876 -3209 -9176 query I rowsort SELECT - ( col1 ) + + col0 * col1 AS col1 FROM tab0 AS cor0 ---- 1978 3298 8008 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 43 - + cor0.col0 col0 FROM tab2 AS cor0 ---- -121 -122 -50 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 58 col1 FROM tab2 cor0 ---- -58 -58 -58 query I rowsort SELECT ALL - + col2 + + col2 * cor0.col1 FROM tab1 AS cor0 ---- 1152 1350 513 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + col1 col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT ALL - - col2 * - col0 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT - 40 + + col1 * ( - 57 ) FROM tab1 AS cor0 ---- -1522 -610 -781 query I rowsort SELECT + col0 * + col1 + col2 * col2 AS col1 FROM tab0 AS cor0 ---- 14823 3153 3396 query I rowsort SELECT ALL col2 + + ( - ( col1 ) ) FROM tab0 cor0 ---- -53 -9 -96 query I rowsort SELECT ALL col1 * + 26 - + col1 FROM tab0 AS cor0 ---- 2150 2275 2425 query I rowsort SELECT + 73 - - col0 FROM tab2 ---- 151 152 80 query I rowsort SELECT ALL + - 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6 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 DISTINCT - - col2 + + col1 * cor0.col0 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT + 81 + - cor0.col2 FROM tab2 AS cor0 ---- 43 54 55 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 46 + col1 col2 FROM tab1 AS cor0 ---- 56 59 72 query I rowsort SELECT ALL ( 91 ) AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT + ( tab2.col1 ) * col2 * - col0 AS col0 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT - 16 * col2 AS col1 FROM tab2 ---- -416 -432 -608 query I rowsort SELECT - col2 - - col0 AS col2 FROM tab1 ---- -16 -51 7 query I rowsort SELECT ALL - cor0.col0 - + 19 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 388300f741ade00192b579283cad1e54 query I rowsort SELECT - col0 - 80 AS col1 FROM tab2 ---- -158 -159 -87 onlyif mysql # use DIV operator for integer division query I rowsort label-1603 SELECT + ( - cor0.col2 ) + col1 DIV - col2 + + col1 FROM tab0 AS cor0 ---- -1 51 8 skipif mysql # not compatible query I rowsort label-1603 SELECT + ( - cor0.col2 ) + col1 / - col2 + + col1 FROM tab0 AS cor0 ---- -1 51 8 query I rowsort SELECT DISTINCT + col1 + + col0 * - col2 AS col0 FROM tab2 ---- -158 -1969 -2985 query I rowsort SELECT + 82 * ( + col1 + col1 ) FROM tab1 ---- 1640 2132 4264 query I rowsort SELECT ALL - col0 * col0 + col2 AS col2 FROM tab1 AS cor0 ---- -4039 -6304 45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1607 SELECT + CAST( col2 AS SIGNED ) * col1 FROM tab0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-1607 SELECT + CAST ( col2 AS INTEGER ) * col1 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT ALL 81 * col1 + + tab0.col0 AS col1 FROM tab0 ---- 6990 7460 7892 query I rowsort SELECT DISTINCT + col2 * col1 + 69 AS col1 FROM tab0 cor0 ---- 166 2907 7531 onlyif mysql # use DIV operator for integer division query I rowsort label-1610 SELECT ALL + 27 DIV - col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1610 SELECT ALL + 27 / - col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1611 SELECT col2 DIV col1 AS col1 FROM tab1 cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-1611 SELECT col2 / col1 AS col1 FROM tab1 cor0 ---- 2 5 7 query I rowsort SELECT DISTINCT - col0 * - col1 * 79 AS col2 FROM tab0 AS cor0 ---- 163056 268205 639821 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1613 SELECT + - col0 * cor0.col1 + CAST( NULL AS SIGNED ) * 29 + col2 col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1613 SELECT + - col0 * cor0.col1 + CAST ( NULL AS INTEGER ) * 29 + col2 col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 50 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 314aace40e704c20a6be06204a329f80 query I rowsort SELECT DISTINCT + cor0.col1 * ( - col2 ) * - col2 + - col0 AS col0 FROM tab2 AS cor0 ---- 22592 24469 39806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 90 col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 96f7a90428db93f472e0d219bab64853 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1617 SELECT ALL + cor0.col0 * - CAST( + 97 * + col0 AS SIGNED ) col0 FROM tab0 cor0 ---- -118825 -55872 -768337 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1617 SELECT ALL + cor0.col0 * - CAST ( + 97 * + col0 AS INTEGER ) col0 FROM tab0 cor0 ---- -118825 -55872 -768337 query I rowsort SELECT DISTINCT - col0 + - 90 + 91 AS col0 FROM tab0 AS cor0 ---- -23 -34 -88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1619 SELECT - - col0 * CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-1619 SELECT - - col0 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT + cor0.col1 + - 41 AS col1 FROM tab2 AS cor0 ---- -10 -24 18 query I rowsort SELECT DISTINCT + 77 + + ( - cor0.col2 ) FROM tab2 AS cor0 ---- 39 50 51 query I rowsort SELECT ALL - - ( col1 ) + cor0.col2 AS col2 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT 31 + 17 + col1 AS col1 FROM tab2 AS cor0 ---- 107 65 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * + col2 col2 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT ALL + col2 * - col0 * col1 + + col2 * - col1 + col2 FROM tab0 AS cor0 ---- -3491 -671498 -70917 query I rowsort SELECT ALL + - 8 + - 38 * col2 + col2 * + col1 AS col1 FROM tab2 AS cor0 ---- -197 -806 538 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1627 SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1627 SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( + col2 ) * + col1 AS col2 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-1629 SELECT - col0 * col0 + cor0.col1 DIV + ( col2 ) AS col2 FROM tab0 AS cor0 ---- -1128 -574 -7920 skipif mysql # not compatible query I rowsort label-1629 SELECT - col0 * col0 + cor0.col1 / + ( col2 ) AS col2 FROM tab0 AS cor0 ---- -1128 -574 -7920 query I rowsort SELECT DISTINCT + col2 * + 61 FROM tab0 AS cor0 ---- 2013 5002 61 query I rowsort SELECT ALL 64 + col2 + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 162 183 237 query I rowsort SELECT col1 + col2 + - col2 AS col0 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT - ( - ( + cor0.col2 ) ) - 89 FROM tab2 AS cor0 ---- -51 -62 -63 query I rowsort SELECT ALL + ( + 91 ) AS col0 FROM tab1 AS cor0 ---- 91 91 91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1635 SELECT DISTINCT CAST( - ( - col1 ) AS SIGNED ) + + 24 col1 FROM tab2 AS cor0 ---- 41 55 83 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1635 SELECT DISTINCT CAST ( - ( - col1 ) AS INTEGER ) + + 24 col1 FROM tab2 AS cor0 ---- 41 55 83 query I rowsort SELECT ALL - cor0.col2 * col1 + + col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT ( + cor0.col2 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2 ---- 81 values hashing to 9d355f1f2edc347a359dad00d2d3f886 query I rowsort SELECT ALL ( ( + tab0.col2 ) ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8 query I rowsort SELECT + + col2 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT ALL + 25 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to 68fc0eecd4f434589f3ec576bbd0c540 query I rowsort SELECT - col0 * + cor0.col2 * col1 AS col0 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT ALL + col2 * ( - col0 + - 13 ) FROM tab2 ---- -2366 -3496 -540 onlyif mysql # use DIV operator for integer division query I rowsort label-1643 SELECT + 89 DIV + col2 AS col1 FROM tab1 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-1643 SELECT + 89 / + col2 AS col1 FROM tab1 AS cor0 ---- 0 1 1 query I rowsort SELECT 43 * - cor0.col2 + - col0 AS col2 FROM tab2 AS cor0 ---- -1168 -1196 -1713 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * - col2 + col1 * - 1 col1 FROM tab2 AS cor0 ---- -2087 -220 -3019 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1646 SELECT - - col1 * col1 - CAST( NULL AS SIGNED ) * + cor0.col0 AS col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1646 SELECT - - col1 * col1 - CAST ( NULL AS INTEGER ) * + cor0.col0 AS col1 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + + 82 + - cor0.col2 AS col1 FROM tab2 AS cor0 ---- 44 55 56 onlyif mysql # use DIV operator for integer division query I rowsort label-1648 SELECT col0 DIV 71 FROM tab1 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-1648 SELECT col0 / 71 FROM tab1 cor0 ---- 0 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-1649 SELECT - col0 * col1 + - col0 * col2 + + 90 DIV col2 FROM tab1 AS cor0 ---- -239 -4287 -8720 skipif mysql # not compatible query I rowsort label-1649 SELECT - col0 * col1 + - col0 * col2 + + 90 / col2 FROM tab1 AS cor0 ---- -239 -4287 -8720 onlyif mysql # use DIV operator for integer division query I rowsort label-1650 SELECT 89 DIV + col2 + - col1 * 95 FROM tab0 ---- -8168 -8644 -9126 skipif mysql # not compatible query I rowsort label-1650 SELECT 89 / + col2 + - col1 * 95 FROM tab0 ---- -8168 -8644 -9126 query I rowsort SELECT - - col0 + + 24 FROM tab1 cor0 ---- 104 27 88 query I rowsort SELECT - - col1 * col2 + col1 * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1653 SELECT ALL col0 + col2 DIV - 8 FROM tab1 ---- -3 57 68 skipif mysql # not compatible query I rowsort label-1653 SELECT ALL col0 + col2 / - 8 FROM tab1 ---- -3 57 68 query I rowsort SELECT - cor0.col2 + + 2 AS col0 FROM tab2 AS cor0 ---- -24 -25 -36 query I rowsort SELECT DISTINCT col2 * ( + 30 ) AS col0 FROM tab0 AS cor0 ---- 2460 30 990 query I rowsort SELECT ALL + - col2 * + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-1657 SELECT DISTINCT + 77 + ( col1 ) DIV - col2 + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 141 157 80 skipif mysql # not compatible query I rowsort label-1657 SELECT DISTINCT + 77 + ( col1 ) / - col2 + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 141 157 80 query I rowsort SELECT - 48 * + cor0.col2 + - col2 * ( col1 ) AS col2 FROM tab0 AS cor0 ---- -11398 -145 -4422 query I rowsort SELECT DISTINCT + 80 + + col2 FROM tab2 cor0 ---- 106 107 118 query I rowsort SELECT DISTINCT - 71 + ( + cor0.col1 ) - 87 * + col2 AS col1 FROM tab0 AS cor0 ---- -2856 -61 -7114 query I rowsort SELECT + + col0 + col0 + - col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT col1 * + tab1.col2 + col1 AS col1 FROM tab1 ---- 1261 1430 580 onlyif mysql # use DIV operator for integer division query I rowsort label-1663 SELECT - col0 * col0 + 71 DIV col1 FROM tab0 ---- -1225 -576 -7921 skipif mysql # not compatible query I rowsort label-1663 SELECT - col0 * col0 + 71 / col1 FROM tab0 ---- -1225 -576 -7921 query I rowsort SELECT 85 + col0 AS col1 FROM tab2 AS cor0 ---- 163 164 92 query I rowsort SELECT + + cor0.col2 * cor0.col2 - col1 FROM tab2 cor0 ---- 1427 617 698 onlyif mysql # use DIV operator for integer division query I rowsort label-1666 SELECT DISTINCT tab2.col0 * - col0 DIV + col0 FROM tab2 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-1666 SELECT DISTINCT tab2.col0 * - col0 / + col0 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT + 6 * - col2 FROM tab2 ---- -156 -162 -228 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + + col2 * col0 col2 FROM tab2 AS cor0 ---- 196 2106 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-1669 SELECT ALL col2 + - col2 DIV col2 + col0 FROM tab0 ---- 170 35 56 skipif mysql # not compatible query I rowsort label-1669 SELECT ALL col2 + - col2 / col2 + col0 FROM tab0 ---- 170 35 56 query I rowsort SELECT ALL col0 * + col0 * tab1.col1 + - col2 + - tab1.col0 FROM tab1 ---- 177 40839 83024 query I rowsort SELECT DISTINCT - col1 * col2 + col2 AS col0 FROM tab1 ---- -1152 -1350 -513 onlyif mysql # use DIV operator for integer division query I rowsort label-1672 SELECT - col0 - - col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0 ---- -24 -35 -89 skipif mysql # not compatible query I rowsort label-1672 SELECT - col0 - - col2 / cor0.col1 AS col1 FROM tab0 AS cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-1673 SELECT DISTINCT - col1 * + cor0.col2 + col0 + + col1 DIV - col2 FROM tab1 cor0 ---- -1168 -1401 -506 skipif mysql # not compatible query I rowsort label-1673 SELECT DISTINCT - col1 * + cor0.col2 + col0 + + col1 / - col2 FROM tab1 cor0 ---- -1168 -1401 -506 query I rowsort SELECT ALL + col1 * col1 + - col0 AS col0 FROM tab2 AS cor0 ---- 210 3403 954 query I rowsort SELECT ALL col0 + - tab1.col0 + + col1 AS col0 FROM tab1 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 + col0 + + col0 * col0 col1 FROM tab1 ---- 15 4224 6560 query I rowsort SELECT DISTINCT - col1 * - col2 * col2 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT - - col0 + col1 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT ALL col0 + col0 * - cor0.col0 FROM tab1 AS cor0 ---- -4032 -6 -6320 query I rowsort SELECT col2 * + col0 + + col2 FROM tab1 AS cor0 ---- 216 3705 7776 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + - col1 * col1 col0 FROM tab0 cor0 ---- -7372 -8192 -9374 query I rowsort SELECT DISTINCT col1 + + cor0.col0 * + col2 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT + col0 + col2 * + col2 FROM tab0 cor0 ---- 1113 36 6813 query I rowsort SELECT DISTINCT + col1 * + col2 + + col0 * + col0 FROM tab0 AS cor0 ---- 1322 15383 3414 query I rowsort SELECT + 64 * col1 AS col1 FROM tab0 AS cor0 ---- 5504 5824 6208 query I rowsort SELECT DISTINCT - 84 + - col0 * col1 AS col1 FROM tab1 AS cor0 ---- -1124 -162 -724 query I rowsort SELECT DISTINCT - col0 * col2 + col2 + + col0 * col1 FROM tab2 AS cor0 ---- -1621 2600 55 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 36 col1 FROM tab1 AS cor0 ---- 36 36 36 query I rowsort SELECT ALL + - col0 * - col0 + cor0.col1 * + cor0.col2 FROM tab1 cor0 ---- 1413 4666 7648 query I rowsort SELECT DISTINCT + - 51 * - cor0.col1 + - col1 * col2 * col1 FROM tab2 AS cor0 ---- -10115 -24366 -87497 query I rowsort SELECT DISTINCT - - col1 * col0 - - col2 AS col0 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT DISTINCT + 94 + col2 + - col1 * + col1 AS col1 FROM tab0 AS cor0 ---- -7269 -8105 -9314 query I rowsort SELECT ALL + cor0.col2 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL + col0 * col0 + + col2 + col0 AS col1 FROM tab2 AS cor0 ---- 6188 6358 83 query I rowsort SELECT - col0 * col2 - col1 * col2 AS col1 FROM tab0 AS cor0 ---- -132 -14760 -3630 query I rowsort SELECT ALL - col1 - + col0 * + col0 FROM tab1 AS cor0 ---- -35 -4106 -6413 query I rowsort SELECT cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT DISTINCT 13 - col0 FROM tab0 ---- -11 -22 -76 query I rowsort SELECT DISTINCT + cor1.col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 ---- 26 27 38 query I rowsort SELECT ALL cor1.col1 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT col1 + + col2 + + col1 * tab2.col0 FROM tab2 ---- 1398 275 4687 query I rowsort SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE + col2 BETWEEN ( - col0 ) AND ( + col2 - - col0 * + col0 / + col2 ) ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab2.col2 - col1 col1 FROM tab2 ---- -55 -58 -85 query I rowsort SELECT col0 - col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-1705 SELECT ALL - col0 DIV col2 - col2 FROM tab0 ---- -33 -36 -83 skipif mysql # not compatible query I rowsort label-1705 SELECT ALL - col0 / col2 - col2 FROM tab0 ---- -33 -36 -83 query I rowsort SELECT - col0 - - tab1.col0 * col1 * - col1 AS col2 FROM tab1 ---- -13600 -2031 -6464 onlyif mysql # use DIV operator for integer division query I rowsort label-1707 SELECT - col0 DIV + col0 + col1 * - col0 AS col2 FROM tab2 ---- -1344 -218 -4603 skipif mysql # not compatible query I rowsort label-1707 SELECT - col0 / + col0 + col1 * - col0 AS col2 FROM tab2 ---- -1344 -218 -4603 query I rowsort SELECT tab0.col0 AS col1 FROM tab0 WHERE col2 + + col0 IN ( col1 + - col1 ) ---- query I rowsort SELECT ALL + tab0.col2 * col0 AS col1 FROM tab0 ---- 35 7298 792 onlyif mysql # use DIV operator for integer division query I rowsort label-1710 SELECT tab1.col2 DIV col0 + - tab1.col1 FROM tab1 ---- -10 -12 -8 skipif mysql # not compatible query I rowsort label-1710 SELECT tab1.col2 / col0 + - tab1.col1 FROM tab1 ---- -10 -12 -8 query III rowsort SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - col2 ) ---- query I rowsort SELECT ALL 13 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb query I rowsort SELECT DISTINCT - col0 + col1 + - col1 * col2 FROM tab1 ---- -1315 -1381 -624 query I rowsort SELECT - col0 * col1 + + col0 FROM tab1 ---- -576 -75 -960 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - col1 + col1 / col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * + col1 col1 FROM tab2 ---- 1343 217 4602 onlyif mysql # use DIV operator for integer division query I rowsort label-1717 SELECT - col0 DIV tab1.col1 + + col2 DIV col2 AS col0 FROM tab1 ---- -5 -5 1 skipif mysql # not compatible query I rowsort label-1717 SELECT - col0 / tab1.col1 + + col2 / col2 AS col0 FROM tab1 ---- -5 -5 1 query III rowsort SELECT * FROM tab2 WHERE NOT ( + col1 + col2 ) BETWEEN ( col0 ) AND col2 ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT col2 * + col2 * col0 FROM tab0 ---- 26136 35 598436 onlyif mysql # use DIV operator for integer division query I rowsort label-1720 SELECT ALL - tab0.col0 DIV col0 - tab0.col0 * col2 * + col1 FROM tab0 ---- -3396 -664119 -68113 skipif mysql # not compatible query I rowsort label-1720 SELECT ALL - tab0.col0 / col0 - tab0.col0 * col2 * + col1 FROM tab0 ---- -3396 -664119 -68113 query I rowsort SELECT - col2 * col0 - - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 / col1 ) AND NULL ---- query I rowsort SELECT + col2 + col2 * tab1.col2 * col1 AS col0 FROM tab1 ---- 119904 32547 75870 query III rowsort SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( + col2 + col0 ) ---- query I rowsort SELECT - col0 + col2 * col1 FROM tab0 ---- 2814 62 7373 query III rowsort SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 + + col2 * col0 * - tab0.col2 ) ---- query I rowsort SELECT ALL + tab2.col1 + + col2 FROM tab2 ---- 55 58 85 query I rowsort SELECT + col1 + + col0 * - col1 AS col1 FROM tab2 ---- -1326 -186 -4543 onlyif mysql # use DIV operator for integer division query I rowsort label-1728 SELECT DISTINCT + col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-1728 SELECT DISTINCT + col1 / - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT ALL - col0 * col0 * col2 AS col0 FROM tab0 AS cor0 ---- -1225 -19008 -649522 query I rowsort SELECT ALL cor0.col0 * + col2 AS col0 FROM tab2 cor0 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 80 + + cor1.col2 col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 113 162 81 onlyif mysql # use DIV operator for integer division query I rowsort label-1732 SELECT + ( - col1 ) DIV cor0.col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1732 SELECT + ( - col1 ) / cor0.col2 AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + 71 FROM tab2, tab0 cor0 ---- 9 values hashing to c1aace5d5fe27721cc925552513c85c0 query I rowsort SELECT 1 * - 0 AS col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT - 59 * - col1 FROM tab0 ---- 5074 5369 5723 query I rowsort SELECT DISTINCT tab1.col1 * + col2 AS col0 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT 34 + - col1 * + col0 * + tab2.col2 FROM tab2 ---- -119618 -51000 -5825 query I rowsort SELECT ALL - col1 + tab1.col1 AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL - col0 + col1 + 44 FROM tab1 ---- -10 -23 67 query I rowsort SELECT ALL - col1 * col1 + + col0 * col2 FROM tab1 ---- -514 3548 7511 query I rowsort SELECT - col2 + - ( col2 ) * + col2 AS col0 FROM tab1 ---- -2970 -3306 -9312 query I rowsort SELECT col0 + - ( tab2.col2 ) + col0 AS col0 FROM tab2 ---- -13 120 130 query I rowsort SELECT ALL col0 + ( + tab0.col0 ) * col0 + + col2 AS col2 FROM tab0 ---- 1261 633 8092 query I rowsort SELECT DISTINCT cor0.col1 * tab2.col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 7e3c34e781801a3db37bc76b9d86ef8c query I rowsort SELECT DISTINCT col1 + col1 + + cor0.col0 AS col0 FROM tab0 cor0 ---- 196 229 271 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 50 + 14 col1 FROM tab1, tab2 AS cor0 ---- 64 query I rowsort SELECT ALL + + col1 * + col1 + - 3 FROM tab1 cor0 ---- 166 673 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 92 col2 FROM tab1 AS cor0 ---- -92 -92 -92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1749 SELECT ALL + CAST( col1 AS SIGNED ) * + cor0.col1 * + col1 FROM tab0 AS cor0 ---- 636056 753571 912673 skipif mysql # not compatible query I rowsort label-1749 SELECT ALL + CAST ( col1 AS INTEGER ) * + cor0.col1 * + col1 FROM tab0 AS cor0 ---- 636056 753571 912673 skipif mysql # not compatible query I rowsort SELECT CAST ( ( col2 ) AS REAL ) * col1 AS col0 FROM tab2 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1751 SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + col2 * col2 col0 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1751 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col2 * col2 col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT + 88 + col0 * col0 FROM tab1 AS cor0 ---- 4184 6488 97 onlyif mysql # use DIV operator for integer division query I rowsort label-1753 SELECT ( 86 ) + cor0.col0 DIV 78 FROM tab1 cor0 ---- 86 86 87 skipif mysql # not compatible query I rowsort label-1753 SELECT ( 86 ) + cor0.col0 / 78 FROM tab1 cor0 ---- 86 86 87 query I rowsort SELECT + - ( + col1 ) + col1 * col1 * ( - col2 ) FROM tab2 AS cor0 ---- -10999 -25978 -90565 query I rowsort SELECT DISTINCT - col2 + - ( 87 ) * col0 FROM tab0 ---- -2121 -3046 -7825 query I rowsort SELECT DISTINCT tab0.col2 * + 36 + col0 FROM tab0 ---- 1212 3041 71 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1757 SELECT + col2 + col1 + + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1757 SELECT + col2 + col1 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + 72 + col0 - col2 AS col0 FROM tab1 AS cor0 ---- 21 56 79 query I rowsort SELECT cor0.col0 * - tab0.col1 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 1d6523d2f8b36687eb45e9eba8273957 query I rowsort SELECT DISTINCT tab1.col0 - col0 AS col2 FROM tab1 ---- 0 query I rowsort SELECT DISTINCT ( 43 * col1 ) FROM tab2 ---- 1333 2537 731 query I rowsort SELECT tab0.col2 * ( col2 + col0 ) AS col1 FROM tab0 ---- 14022 1881 36 onlyif mysql # use DIV operator for integer division query I rowsort label-1763 SELECT + col1 * + ( + tab0.col0 ) DIV - col0 FROM tab0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-1763 SELECT + col1 * + ( + tab0.col0 ) / - col0 FROM tab0 ---- -86 -91 -97 query I rowsort SELECT + col2 * cor0.col0 + + col1 * - ( col2 * + col2 ) FROM tab2 AS cor0 ---- -21546 -22410 -37856 query I rowsort SELECT ALL - cor2.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5 onlyif mysql # use DIV operator for integer division query I rowsort label-1766 SELECT + - col2 - col2 DIV col0 FROM tab0 AS cor0 ---- -1 -34 -82 skipif mysql # not compatible query I rowsort label-1766 SELECT + - col2 - col2 / col0 FROM tab0 AS cor0 ---- -1 -34 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-1767 SELECT DISTINCT + - col1 DIV cor0.col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-1767 SELECT DISTINCT + - col1 / cor0.col0 FROM tab0 AS cor0 ---- -1 -2 -3 onlyif mysql # use DIV operator for integer division query I rowsort label-1768 SELECT - col0 DIV - col2 col1 FROM tab1 AS cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1768 SELECT - col0 / - col2 col1 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT ALL - + col0 * + col2 + - cor0.col1 FROM tab0 cor0 ---- -132 -7389 -878 query I rowsort SELECT 22 * + col1 + ( cor0.col2 ) * cor0.col0 AS col0 FROM tab1 AS cor0 ---- 3868 734 7966 query I rowsort SELECT - cor0.col2 * col0 + 37 AS col0 FROM tab0 AS cor0 ---- -7261 -755 2 query I rowsort SELECT ALL + col1 * col0 + ( + col1 ) FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT - col0 * col2 * + col2 - + col0 * - col0 * 27 AS col1 FROM tab1 AS cor0 ---- -564480 -8505 -97344 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1774 SELECT + + col1 * - col0 - CAST( col2 * + cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -15397 -2856 -3430 skipif mysql # not compatible query I rowsort label-1774 SELECT + + col1 * - col0 - CAST ( col2 * + cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -15397 -2856 -3430 query I rowsort SELECT DISTINCT - + col1 + - col2 * - cor0.col0 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT col2 + 1 AS col1 FROM tab1 cor0 ---- 55 58 97 query I rowsort SELECT ALL + col0 * + ( cor0.col2 ) * + col1 AS col0 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT + ( tab1.col1 ) + - ( col1 + + col0 ) AS col2 FROM tab1 ---- -3 -64 -80 query I rowsort SELECT + + col0 * col2 + - cor0.col2 AS col1 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT 88 * + col1 - + col0 * col0 AS col1 FROM tab0 ---- 6992 7311 87 onlyif mysql # use DIV operator for integer division query I rowsort label-1781 SELECT ALL col1 * col2 * col1 + 61 - col1 DIV col2 AS col2 FROM tab1 ---- 16285 36565 5761 skipif mysql # not compatible query I rowsort label-1781 SELECT ALL col1 * col2 * col1 + 61 - col1 / col2 AS col2 FROM tab1 ---- 16285 36565 5761 query I rowsort SELECT + col2 + 70 * - 92 AS col0 FROM tab0 cor0 ---- -6358 -6407 -6439 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1783 SELECT DISTINCT - cor0.col1 * - ( cor0.col1 ) + col1 * - CAST( col1 + col2 * col2 AS SIGNED ) FROM tab2 AS cor0 ---- -22599 -24548 -39884 skipif mysql # not compatible query I rowsort label-1783 SELECT DISTINCT - cor0.col1 * - ( cor0.col1 ) + col1 * - CAST ( col1 + col2 * col2 AS INTEGER ) FROM tab2 AS cor0 ---- -22599 -24548 -39884 onlyif mysql # use DIV operator for integer division query I rowsort label-1784 SELECT DISTINCT + - col2 DIV - col2 + - col2 AS col2 FROM tab0 AS cor0 ---- -32 -81 0 skipif mysql # not compatible query I rowsort label-1784 SELECT DISTINCT + - col2 / - col2 + - col2 AS col2 FROM tab0 AS cor0 ---- -32 -81 0 query I rowsort SELECT - + cor0.col0 + col0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col2 * + col2 * ( 25 ) AS col2 FROM tab2 ---- 16900 18225 36100 onlyif mysql # use DIV operator for integer division query I rowsort label-1787 SELECT col1 DIV col2 + col2 * + 61 AS col0 FROM tab1 ---- 3294 3477 5856 skipif mysql # not compatible query I rowsort label-1787 SELECT col1 / col2 + col2 * + 61 AS col0 FROM tab1 ---- 3294 3477 5856 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab0.col2 col1 FROM tab0, tab1 cor0, tab1 cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT ALL + cor0.col0 + - 98 * - 69 AS col1 FROM tab1 AS cor0 ---- 6765 6826 6842 query I rowsort SELECT DISTINCT 40 * + ( + tab2.col2 ) AS col0 FROM tab2, tab0 cor0 ---- 1040 1080 1520 query I rowsort SELECT + col1 * - col2 + + 0 + col1 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT DISTINCT - + col2 * + ( - 9 + - col0 ) AS col0 FROM tab1 AS cor0 ---- 4161 648 8544 query I rowsort SELECT - - col2 * + 32 * - col2 FROM tab0 cor0 ---- -215168 -32 -34848 query I rowsort SELECT ALL - col2 * 15 + + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -1139 -409 82 query I rowsort SELECT - - col1 - - col2 * - col0 * col2 FROM tab1 cor0 ---- -207926 -737267 -8722 onlyif mysql # use DIV operator for integer division query I rowsort label-1796 SELECT DISTINCT col1 DIV 34 AS col2 FROM tab2 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-1796 SELECT DISTINCT col1 / 34 AS col2 FROM tab2 AS cor0 ---- 0 1 query I rowsort SELECT + col0 * 56 + col2 + - col2 * + col1 FROM tab1 AS cor0 ---- -1182 3071 3328 query I rowsort SELECT + - col2 * 32 + + 3 * + col2 + col1 AS col1 FROM tab2 AS cor0 ---- -1085 -695 -752 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1799 SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1799 SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 ---- NULL query I rowsort SELECT col2 + - ( 93 ) * + col2 + 38 AS col2 FROM tab1 AS cor0 ---- -4930 -5206 -8794 query I rowsort SELECT 75 * - col1 + - col1 FROM tab0 ---- -6536 -6916 -7372 query I rowsort SELECT DISTINCT - 78 - - cor0.col0 FROM tab0 AS cor0 ---- -43 -54 11 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 8 col0 FROM tab1 AS cor0 ---- 8 8 8 query I rowsort SELECT 52 + + col1 FROM tab1 ---- 62 65 78 query I rowsort SELECT ALL 86 * col2 + 19 FROM tab1 AS cor0 ---- 4663 4921 8275 query I rowsort SELECT DISTINCT + + cor0.col1 + - cor0.col1 * + col2 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT ALL - 41 + col0 * - 53 * + col1 AS col2 FROM tab0 cor0 ---- -109433 -179976 -429288 query I rowsort SELECT DISTINCT - 21 * - col1 * ( - col1 ) AS col2 FROM tab0 AS cor0 ---- -155316 -173901 -197589 query I rowsort SELECT ALL - 43 * - col1 AS col0 FROM tab0 AS cor0 ---- 3698 3913 4171 query I rowsort SELECT - 72 + col0 * + cor0.col0 FROM tab0 cor0 ---- 1153 504 7849 query I rowsort SELECT ALL 37 + - cor0.col0 FROM tab2 cor0 ---- -41 -42 30 query I rowsort SELECT DISTINCT 77 + col2 FROM tab1 AS cor0 ---- 131 134 173 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1813 SELECT DISTINCT + cor0.col0 * col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1813 SELECT DISTINCT + cor0.col0 * col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 ---- NULL query I rowsort SELECT ALL + col0 - + cor0.col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - - 28 + - cor0.col0 FROM tab0 AS cor0 ---- -61 -7 4 query I rowsort SELECT - - 99 + col1 AS col1 FROM tab2 AS cor0 ---- 116 130 158 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * cor0.col1 col1 FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT ALL - col0 * - col1 * ( cor0.col2 ) AS col2 FROM tab2 AS cor0 ---- 119652 51034 5859 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1819 SELECT DISTINCT - - 38 - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1819 SELECT DISTINCT - - 38 - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-1820 SELECT ALL - 83 + + col0 DIV 99 AS col0 FROM tab0 AS cor0 ---- -83 -83 -83 skipif mysql # not compatible query I rowsort label-1820 SELECT ALL - 83 + + col0 / 99 AS col0 FROM tab0 AS cor0 ---- -83 -83 -83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1821 SELECT CAST( NULL AS SIGNED ) + + 49 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1821 SELECT CAST ( NULL AS INTEGER ) + + 49 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT ALL - col2 + - col2 * - col0 + col2 AS col1 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT col2 * + 33 - + col0 FROM tab2 AS cor0 ---- 1175 780 884 onlyif mysql # use DIV operator for integer division query I rowsort label-1824 SELECT + + col0 DIV - 90 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1824 SELECT + + col0 / - 90 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab1 cor2 ---- 3645 values hashing to c0625992cd48bef51317edf43a55d9e4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1826 SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1826 SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 ---- NULL query I rowsort SELECT DISTINCT + ( + col1 ) - col2 AS col0 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ALL + - col2 * - col0 + + cor0.col0 * - ( col1 ) FROM tab1 AS cor0 ---- 3008 6640 84 query I rowsort SELECT DISTINCT - col2 * 92 AS col1 FROM tab0 AS cor0 ---- -3036 -7544 -92 query I rowsort SELECT + col0 + + col1 + - cor0.col1 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT ALL - + cor0.col2 * - 83 FROM tab1 AS cor0 ---- 4482 4731 7968 query I rowsort SELECT DISTINCT - - cor0.col2 FROM tab2, tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT col1 + + ( col2 ) AS col2 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-1834 SELECT + tab1.col1 + + ( + col1 ) * col2 DIV - 64 FROM tab1 ---- -6 2 5 skipif mysql # not compatible query I rowsort label-1834 SELECT + tab1.col1 + + ( + col1 ) * col2 / - 64 FROM tab1 ---- -6 2 5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 70 + - col1 col1 FROM tab0 AS cor0 ---- -156 -161 -167 query I rowsort SELECT - cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * col1 * + col0 col2 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT + col0 * col2 * - col0 AS col0 FROM tab2 AS cor0 ---- -1323 -158184 -237158 query I rowsort SELECT DISTINCT col0 * + 63 * + col1 FROM tab0 ---- 130032 213885 510237 query I rowsort SELECT DISTINCT + 49 + col1 FROM tab2 AS cor0 ---- 108 66 80 onlyif mysql # use DIV operator for integer division query I rowsort label-1841 SELECT ALL - - ( - 39 ) DIV - col0 FROM tab2 cor0 ---- 0 0 5 skipif mysql # not compatible query I rowsort label-1841 SELECT ALL - - ( - 39 ) / - col0 FROM tab2 cor0 ---- 0 0 5 query I rowsort SELECT + cor0.col2 + ( - 88 ) FROM tab1 AS cor0 ---- -31 -34 8 query I rowsort SELECT - 6 + + tab2.col2 * cor0.col1 * 9 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 0707aa7271d032ca2557cb972a80ac01 query I rowsort SELECT ALL col2 * col1 * col2 - + col1 AS col2 FROM tab1 ---- 119795 32480 75790 query I rowsort SELECT + cor0.col0 * 84 - 78 FROM tab1 AS cor0 ---- 174 5298 6642 onlyif mysql # use DIV operator for integer division query I rowsort label-1846 SELECT + col2 DIV + ( - col2 * col0 ) + + col1 AS col0 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-1846 SELECT + col2 / + ( - col2 * col0 ) + + col1 AS col0 FROM tab1 AS cor0 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1847 SELECT DISTINCT col2 + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 ---- 119 173 98 skipif mysql # not compatible query I rowsort label-1847 SELECT DISTINCT col2 + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT col1 + + tab1.col0 * - ( + col1 ) FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT col2 * + ( + col2 ) FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT col2 - 39 AS col0 FROM tab2 AS cor0 ---- -1 -12 -13 query I rowsort SELECT + - 5 FROM tab1 cor0 ---- -5 -5 -5 query I rowsort SELECT - ( - col2 ) + - cor0.col0 AS col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT DISTINCT + ( 89 ) + + col1 * 4 AS col0 FROM tab2 AS cor0 ---- 157 213 325 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 94 col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24 query I rowsort SELECT - 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1 ---- 27 values hashing to d2579f9395350eda865ff3a2d38a74f6 query I rowsort SELECT + col0 + col0 * - col1 AS col0 FROM tab2 cor0 ---- -1264 -210 -4524 query I rowsort SELECT - - 75 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to e61b59795204c348103a58c0a8e4ce16 query I rowsort SELECT ALL col1 * + col2 + + col0 AS col0 FROM tab0 ---- 132 2862 7551 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1859 SELECT - CAST( NULL AS SIGNED ) * 64 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1859 SELECT - CAST ( NULL AS INTEGER ) * 64 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT DISTINCT + ( - col0 + - 4 ) AS col0 FROM tab1 ---- -68 -7 -84 query I rowsort SELECT + col2 * - 67 AS col0 FROM tab0 AS cor0 ---- -2211 -5494 -67 query I rowsort SELECT DISTINCT - - col0 + + col2 * col0 AS col0 FROM tab1 AS cor0 ---- 165 3712 7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + cor0.col1 col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT 43 FROM tab1, tab1 cor0, tab1 cor1 ---- 27 values hashing to ee5108f6248be48c54e069545f81c5d9 query I rowsort SELECT 45 + + col0 * - ( + col0 ) * - col2 AS col0 FROM tab2 ---- 1368 158229 237203 query I rowsort SELECT ALL - col1 - - ( 93 ) FROM tab0 ---- -4 2 7 query I rowsort SELECT tab0.col1 * + 53 AS col0 FROM tab0 ---- 4558 4823 5141 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + col0 - col1 * col0 col1 FROM tab1 ---- -512 -72 -880 query I rowsort SELECT ALL + col0 - ( col0 + col2 ) FROM tab1 ---- -54 -57 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-1870 SELECT - col1 DIV ( tab0.col2 ) + col0 + col2 FROM tab0 ---- -61 170 55 skipif mysql # not compatible query I rowsort label-1870 SELECT - col1 / ( tab0.col2 ) + col0 + col2 FROM tab0 ---- -61 170 55 query I rowsort SELECT - - col0 * 25 FROM tab2 AS cor0 ---- 175 1950 1975 query I rowsort SELECT + + col1 + - 90 AS col1 FROM tab2 AS cor0 ---- -31 -59 -73 query I rowsort SELECT ALL + ( - col1 + + col0 ) * 56 FROM tab1 ---- -1288 3024 3752 query I rowsort SELECT + col1 - ( col2 * - col2 + tab2.col1 ) FROM tab2 ---- 1444 676 729 query I rowsort SELECT 30 + tab1.col2 * col1 * 24 AS col2 FROM tab1 ---- 13710 29982 33726 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + 40 col1 FROM tab1 ---- 2160 2280 3840 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 64 col1 FROM tab2 ---- -64 -64 -64 query I rowsort SELECT + col1 * - 65 AS col2 FROM tab0 ---- -5590 -5915 -6305 query I rowsort SELECT DISTINCT - 96 * + cor0.col0 FROM tab2, tab1 cor0 ---- -288 -6144 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( col1 ) + - col2 + + col1 * 34 col2 FROM tab1 ---- 293 359 856 query I rowsort SELECT - - 8 + - col0 FROM tab1 AS cor0 ---- -56 -72 5 query I rowsort SELECT + 97 * col0 AS col1 FROM tab0 AS cor0 ---- 2328 3395 8633 query I rowsort SELECT - cor0.col2 * col2 + cor0.col0 AS col1 FROM tab2 cor0 ---- -1365 -598 -722 query I rowsort SELECT DISTINCT ( - col0 ) * + col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL + tab0.col0 * col0 AS col0 FROM tab0 ---- 1225 576 7921 query I rowsort SELECT col2 + cor0.col1 * - cor0.col1 AS col1 FROM tab2 cor0 ---- -251 -3455 -934 query I rowsort SELECT cor0.col0 - + 7 * - 16 FROM tab2, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to cad4d5a76f6df5d00137fd0647e50f3f query I rowsort SELECT ALL - col1 + - 17 FROM tab0 AS cor0 ---- -103 -108 -114 query I rowsort SELECT DISTINCT - 5 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- -130 -135 -190 onlyif mysql # use DIV operator for integer division query I rowsort label-1890 SELECT ALL col0 DIV + 92 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1890 SELECT ALL col0 / + 92 FROM tab1 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( col1 ) * + cor0.col0 + + col2 col2 FROM tab0 cor0 ---- 2097 3396 8181 query I rowsort SELECT ALL - cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT col2 + + ( col1 ) FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-1894 SELECT ALL cor1.col2 + - 86 DIV cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to a31e352586ddbd1f2a7df1c0f050017f skipif mysql # not compatible query I rowsort label-1894 SELECT ALL cor1.col2 + - 86 / cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to a31e352586ddbd1f2a7df1c0f050017f query I rowsort SELECT - col1 + ( col0 ) AS col0 FROM tab1 ---- -23 54 67 query I rowsort SELECT ALL + - 95 * 55 * col2 + 35 FROM tab0 AS cor0 ---- -172390 -428415 -5190 query I rowsort SELECT 5 * + col2 + + col2 * col1 FROM tab1 AS cor0 ---- 1674 1728 855 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 68 * - col0 + + col2 * 36 col1 FROM tab2 AS cor0 ---- -4004 -4368 496 query I rowsort SELECT - + 7 * - tab1.col2 AS col0 FROM tab2, tab0, tab0 AS cor0, tab1 ---- 81 values hashing to 65b0ae340e1e738b1f5ec33fad356cdf onlyif mysql # use DIV operator for integer division query I rowsort label-1900 SELECT ALL + col2 DIV col2 - + 21 FROM tab0 AS cor0 ---- -20 -20 -20 skipif mysql # not compatible query I rowsort label-1900 SELECT ALL + col2 / col2 - + 21 FROM tab0 AS cor0 ---- -20 -20 -20 onlyif mysql # use DIV operator for integer division query I rowsort label-1901 SELECT DISTINCT - + col0 DIV CAST( + 27 * col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-1901 SELECT DISTINCT - + col0 / CAST ( + 27 * col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT - col1 + - 98 AS col2 FROM tab1 cor0 ---- -108 -111 -124 query I rowsort SELECT DISTINCT - 89 + + col1 AS col0 FROM tab1 ---- -63 -76 -79 query I rowsort SELECT 46 + col1 + ( 22 ) AS col0 FROM tab0 ---- 154 159 165 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + col2 * 56 col2 FROM tab0 ---- -41 1762 4501 query I rowsort SELECT ( col1 * - col1 ) AS col2 FROM tab1 ---- -100 -169 -676 onlyif mysql # use DIV operator for integer division query I rowsort label-1907 SELECT + 25 - col2 DIV tab0.col1 FROM tab0 ---- 25 25 25 skipif mysql # not compatible query I rowsort label-1907 SELECT + 25 - col2 / tab0.col1 FROM tab0 ---- 25 25 25 query I rowsort SELECT - col2 + - 94 * + cor0.col0 AS col0 FROM tab0 AS cor0 ---- -2289 -3291 -8448 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col0 - col1 col1 FROM tab1 AS cor0 ---- -29 -74 -93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1910 SELECT DISTINCT + - col0 + + CAST( NULL AS DECIMAL ) * 82 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1910 SELECT DISTINCT + - col0 + + CAST ( NULL AS REAL ) * 82 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + col0 + ( + 10 * - cor0.col1 ) - - col0 AS col2 FROM tab0 AS cor0 ---- -732 -812 -900 query I rowsort SELECT + - col2 + 73 AS col0 FROM tab1 AS cor0 ---- -23 16 19 query I rowsort SELECT 38 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb query I rowsort SELECT ALL - col0 * - ( + col0 + + col1 ) AS col0 FROM tab2 ---- 10686 266 7584 onlyif mysql # use DIV operator for integer division query I rowsort label-1915 SELECT - ( + 7 ) DIV col0 AS col0 FROM tab2 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-1915 SELECT - ( + 7 ) / col0 AS col0 FROM tab2 cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1916 SELECT ALL + + cor0.col1 DIV + 2 + 6 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 4441c1818134dfa3cb6cc4bf6dafacac skipif mysql # not compatible query I rowsort label-1916 SELECT ALL + + cor0.col1 / + 2 + 6 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 4441c1818134dfa3cb6cc4bf6dafacac query I rowsort SELECT + col2 * ( + 54 ) AS col0 FROM tab2 ---- 1404 1458 2052 query I rowsort SELECT ALL col2 * - 14 + col2 AS col1 FROM tab0 AS cor0 ---- -1066 -13 -429 query I rowsort SELECT 45 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 60b9f935ee8e404d155a2f5e9515c050 query I rowsort SELECT ALL 25 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 2c77240b60ac01c717a5ed5d0165f450 query I rowsort SELECT DISTINCT + 74 + - 58 * col1 FROM tab0 AS cor0 ---- -4914 -5204 -5552 query I rowsort SELECT - - 24 * - col0 AS col1 FROM tab1 AS cor0 ---- -1536 -1920 -72 query I rowsort SELECT ALL - col1 * - 31 FROM tab2 AS cor0 ---- 1829 527 961 query I rowsort SELECT DISTINCT 15 + - cor0.col0 FROM tab0, tab0 AS cor0 ---- -20 -74 -9 query I rowsort SELECT DISTINCT + 88 FROM tab1, tab1 AS cor0 ---- 88 onlyif mysql # use DIV operator for integer division query I rowsort label-1926 SELECT - ( - cor0.col0 ) DIV col0 AS col0 FROM tab2 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-1926 SELECT - ( - cor0.col0 ) / col0 AS col0 FROM tab2 cor0 ---- 1 1 1 query I rowsort SELECT + col2 * - cor0.col1 + + cor0.col2 * - ( - ( col2 ) ) * + col1 AS col1 FROM tab2 AS cor0 ---- 21762 23902 38350 query I rowsort SELECT - col0 + - col1 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- -7420 -8370 -9444 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1929 SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 70 AS col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1929 SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 70 AS col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT col0 * + col0 + + col0 AS col0 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT + 79 * 29 AS col0 FROM tab1 AS cor0 ---- 2291 2291 2291 query I rowsort SELECT DISTINCT + - 79 * col1 AS col2 FROM tab0 AS cor0 ---- -6794 -7189 -7663 query I rowsort SELECT 70 + - 56 FROM tab0 AS cor0 ---- 14 14 14 query I rowsort SELECT ALL - col1 * col0 + 22 FROM tab1 ---- -1018 -56 -618 query I rowsort SELECT + cor0.col2 - col0 AS col1 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT DISTINCT - - cor0.col1 + col1 FROM tab1 cor0 ---- 20 26 52 onlyif mysql # use DIV operator for integer division query I rowsort label-1937 SELECT DISTINCT col1 DIV col1 + col2 FROM tab2 AS cor0 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-1937 SELECT DISTINCT col1 / col1 + col2 FROM tab2 AS cor0 ---- 27 28 39 query I rowsort SELECT ALL - col0 * - col1 - col1 * - col2 FROM tab1 AS cor0 ---- 1210 1482 2288 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1939 SELECT col0 + col1 * + CAST( - 10 * - col0 + - col0 AS SIGNED ) AS col2 FROM tab2 cor0 ---- 12166 1960 41496 skipif mysql # not compatible query I rowsort label-1939 SELECT col0 + col1 * + CAST ( - 10 * - col0 + - col0 AS INTEGER ) AS col2 FROM tab2 cor0 ---- 12166 1960 41496 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1940 SELECT DISTINCT + + col2 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-1940 SELECT DISTINCT + + col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL + - 46 * + col0 + 42 FROM tab0 AS cor0 ---- -1062 -1568 -4052 onlyif mysql # use DIV operator for integer division query I rowsort label-1942 SELECT DISTINCT - col1 + - cor0.col2 DIV ( col1 ) + col1 AS col2 FROM tab1 cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-1942 SELECT DISTINCT - col1 + - cor0.col2 / ( col1 ) + col1 AS col2 FROM tab1 cor0 ---- -2 -5 -7 query I rowsort SELECT col1 * + col1 + + col0 * - col2 - - col1 FROM tab2 cor0 ---- -2696 1512 803 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + cor0.col0 * col1 col2 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT - + ( - col2 ) + 35 FROM tab1 AS cor0 ---- 131 89 92 query I rowsort SELECT DISTINCT + - col0 * + col0 + - col1 * 51 * col2 AS col0 FROM tab2 AS cor0 ---- -39187 -42736 -84318 query I rowsort SELECT ALL - - 1 FROM tab1 cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-1948 SELECT DISTINCT - col1 DIV + 38 AS col0 FROM tab2 AS cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-1948 SELECT DISTINCT - col1 / + 38 AS col0 FROM tab2 AS cor0 ---- -1 0 onlyif mysql # use DIV operator for integer division query I rowsort label-1949 SELECT + cor0.col2 DIV 96 AS col0 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-1949 SELECT + cor0.col2 / 96 AS col0 FROM tab1 AS cor0 ---- 0 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-1950 SELECT ALL + col0 DIV + 98 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1950 SELECT ALL + col0 / + 98 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - cor0.col2 + 57 FROM tab2 AS cor0 ---- 19 30 31 query I rowsort SELECT DISTINCT - + col1 * col1 + + 10 FROM tab0 AS cor0 ---- -7386 -8271 -9399 onlyif mysql # use DIV operator for integer division query I rowsort label-1953 SELECT - + col2 + - col0 DIV col1 FROM tab1 AS cor0 ---- -102 -54 -63 skipif mysql # not compatible query I rowsort label-1953 SELECT - + col2 + - col0 / col1 FROM tab1 AS cor0 ---- -102 -54 -63 query I rowsort SELECT DISTINCT + 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 93 skipif mysql # not compatible query I rowsort SELECT - CAST ( - ( + col0 ) AS REAL ) * 71 AS col1 FROM tab1 AS cor0 ---- 213 4544 5680 query I rowsort SELECT ALL + ( + col0 ) + col0 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT - col1 * - col1 - + 15 * 48 FROM tab2 cor0 ---- -431 241 2761 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 0 - col2 col2 FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT col0 * + col0 - col1 AS col0 FROM tab0 AS cor0 ---- 1128 490 7830 query I rowsort SELECT - col0 + ( - col0 ) * + col1 FROM tab0 cor0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-1961 SELECT DISTINCT cor0.col1 DIV + ( col1 * col2 ) FROM tab1 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-1961 SELECT DISTINCT cor0.col1 / + ( col1 * col2 ) FROM tab1 cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1962 SELECT CAST( NULL AS SIGNED ) * 48 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-1962 SELECT CAST ( NULL AS INTEGER ) * 48 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # use DIV operator for integer division query I rowsort label-1963 SELECT + - ( col1 ) DIV col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-1963 SELECT + - ( col1 ) / col0 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT - - cor0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT + ( + ( + col2 ) ) FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT + col2 * - col0 + col0 FROM tab2 cor0 ---- -182 -1950 -2923 query I rowsort SELECT ALL col1 + + 21 FROM tab0 AS cor0 ---- 107 112 118 query I rowsort SELECT cor0.col2 * col1 * col2 AS col0 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT - + col2 * - col0 * + cor0.col1 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT - col2 * + 65 FROM tab0 AS cor0 ---- -2145 -5330 -65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor1.col2 + cor1.col2 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 82040855cb50fa1e428b3499d58f252b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1972 SELECT DISTINCT + CAST( + col2 AS SIGNED ) FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-1972 SELECT DISTINCT + CAST ( + col2 AS INTEGER ) FROM tab2 ---- 26 27 38 query IIIIII rowsort SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL ---- query I rowsort SELECT - cor0.col0 + 37 * + col1 FROM tab1 AS cor0 ---- 306 401 959 query I rowsort SELECT ALL 87 * + col0 AS col1 FROM tab0 ---- 2088 3045 7743 onlyif mysql # use DIV operator for integer division query I rowsort label-1976 SELECT + col0 DIV - ( col0 ) AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-1976 SELECT + col0 / - ( col0 ) AS col1 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL + col1 * 79 FROM tab1 AS cor0 ---- 1027 2054 790 query I rowsort SELECT DISTINCT + tab2.col0 + col2 - - col0 AS col0 FROM tab2 ---- 182 196 41 query I rowsort SELECT DISTINCT - col0 * + col0 * - col1 AS col0 FROM tab0 ---- 118825 49536 720811 query I rowsort SELECT ( - col1 ) * col2 * - col0 AS col1 FROM tab2 ---- 119652 51034 5859 onlyif mysql # use DIV operator for integer division query I rowsort label-1981 SELECT - 11 DIV - tab1.col2 AS col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-1981 SELECT - 11 / - tab1.col2 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL col1 + col1 * + col0 AS col0 FROM tab0 ---- 2150 3492 8190 query I rowsort SELECT col2 * - 76 * col1 AS col2 FROM tab2 AS cor0 ---- -116584 -49096 -63612 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1984 SELECT + col0 + - CAST( col0 AS SIGNED ) * + col1 col1 FROM tab0 AS cor0 ---- -2040 -3360 -8010 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-1984 SELECT + col0 + - CAST ( col0 AS INTEGER ) * + col1 col1 FROM tab0 AS cor0 ---- -2040 -3360 -8010 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1985 SELECT - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1985 SELECT - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT col1 * 16 FROM tab2 AS cor0 ---- 272 496 944 query I rowsort SELECT - col2 * + col0 + + 90 AS col0 FROM tab2 AS cor0 ---- -1938 -2912 -99 query I rowsort SELECT - - cor0.col2 * + cor0.col2 + col0 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT col0 * col2 * 63 AS col2 FROM tab0 AS cor0 ---- 2205 459774 49896 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1990 SELECT + + col0 + + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1990 SELECT + + col0 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + - col0 col0 FROM tab1 cor0 ---- -54 -67 23 query I rowsort SELECT ALL + 94 * col0 + - col0 AS col1 FROM tab2 AS cor0 ---- 651 7254 7347 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1993 SELECT ALL - col2 * col0 + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1993 SELECT ALL - col2 * col0 + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - ( col0 ) * + col2 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL col1 * - cor0.col2 - 38 * + 97 AS col1 FROM tab0 AS cor0 ---- -11148 -3783 -6524 query I rowsort SELECT DISTINCT - + col2 * 30 FROM tab1 AS cor0 ---- -1620 -1710 -2880 query I rowsort SELECT DISTINCT - col1 + + col0 * - col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-1998 SELECT + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-1998 SELECT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + cor0.col0 * - 74 + col1 FROM tab1 AS cor0 ---- -196 -4726 -5907 query I rowsort SELECT ALL - - col2 + + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT + col1 * + 4 * - col1 + col0 * - 98 FROM tab0 AS cor0 ---- -31936 -41066 -41846 query I rowsort SELECT DISTINCT cor0.col0 + ( col1 ) * - col2 AS col1 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT ALL - + col0 - - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT ALL 8 AS col2 FROM tab2 AS cor0 ---- 8 8 8 query I rowsort SELECT - + col1 * col0 * + col1 - - col1 FROM tab0 AS cor0 ---- -177418 -329218 -736918 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 2 + + col0 col1 FROM tab2 AS cor0 ---- 80 81 9 query I rowsort SELECT DISTINCT + col1 * - cor0.col1 + col2 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT ALL col1 - - 95 * col1 FROM tab0 AS cor0 ---- 8256 8736 9312 onlyif mysql # use DIV operator for integer division query I rowsort label-2009 SELECT - 81 DIV 17 + + col0 FROM tab1 AS cor0 ---- -1 60 76 skipif mysql # not compatible query I rowsort label-2009 SELECT - 81 / 17 + + col0 FROM tab1 AS cor0 ---- -1 60 76 query I rowsort SELECT DISTINCT - col2 + - col0 * - col0 FROM tab1 AS cor0 ---- -45 4039 6304 query I rowsort SELECT DISTINCT - 5 + col2 FROM tab0 AS cor0 ---- -4 28 77 query I rowsort SELECT + - ( cor0.col1 ) - + col0 AS col1 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT cor0.col2 * + col0 + cor0.col0 * + ( cor0.col1 + col2 ) AS col1 FROM tab2 cor0 ---- 595 7347 8658 query I rowsort SELECT DISTINCT - - ( + col1 ) + col2 * - 6 FROM tab1 AS cor0 ---- -298 -332 -563 query I rowsort SELECT 97 + - 55 * - col2 FROM tab0 AS cor0 ---- 152 1912 4607 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor0.col2 * col2 col0 FROM tab1 cor0 ---- -2916 -3249 -9216 query I rowsort SELECT ALL - + 5 * col1 FROM tab0 AS cor0 ---- -430 -455 -485 query I rowsort SELECT + 36 * + ( + col2 ) + + col0 FROM tab2 AS cor0 ---- 1014 1447 979 query I rowsort SELECT ALL + col0 * + ( - col2 * col2 ) FROM tab1 cor0 ---- -207936 -737280 -8748 query I rowsort SELECT col1 + col1 * - col2 FROM tab0 cor0 ---- -2752 -7371 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2021 SELECT DISTINCT + - col2 * 96 + - col1 * - CAST( NULL AS SIGNED ) + 74 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2021 SELECT DISTINCT + - col2 * 96 + - col1 * - CAST ( NULL AS INTEGER ) + 74 FROM tab2 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2022 SELECT - + CAST( - col0 AS SIGNED ) * col2 * col0 + + col1 AS col1 FROM tab1 AS cor0 ---- 233482 512 614413 skipif mysql # not compatible query I rowsort label-2022 SELECT - + CAST ( - col0 AS INTEGER ) * col2 * col0 + + col1 AS col1 FROM tab1 AS cor0 ---- 233482 512 614413 query I rowsort SELECT DISTINCT - col1 + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -2150 -3492 -8190 onlyif mysql # use DIV operator for integer division query I rowsort label-2024 SELECT ALL - - CAST( - col1 AS SIGNED ) DIV col2 - + ( + col2 * col0 ) AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 skipif mysql # not compatible query I rowsort label-2024 SELECT ALL - - CAST ( - col1 AS INTEGER ) / col2 - + ( + col2 * col0 ) AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT 38 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1 ---- 38 query I rowsort SELECT DISTINCT - 62 AS col2 FROM tab0, tab0 AS cor0 ---- -62 onlyif mysql # use DIV operator for integer division query I rowsort label-2027 SELECT ALL + col0 * + col1 + col1 DIV - col2 AS col0 FROM tab1 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-2027 SELECT ALL + col0 * + col1 + col1 / - col2 AS col0 FROM tab1 ---- 1040 640 78 query I rowsort SELECT - 75 + col2 + tab0.col0 AS col2 FROM tab0 ---- -18 -39 96 query I rowsort SELECT 83 * + cor0.col0 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 9be70d3ec671e7f479b3740bcfe04b7a query I rowsort SELECT + + 35 - + col1 * col2 FROM tab0 AS cor0 ---- -2803 -62 -7427 query I rowsort SELECT col1 * + col1 + col1 + col2 FROM tab2 cor0 ---- 1019 344 3566 query I rowsort SELECT + ( + col1 ) * col1 - col1 * col2 FROM tab0 AS cor0 ---- 4558 819 9312 query I rowsort SELECT - 37 + col0 * col1 + ( col0 ) FROM tab0 AS cor0 ---- 2051 3393 8151 query I rowsort SELECT DISTINCT col2 * 7 + col2 + - ( - col2 + col2 ) AS col2 FROM tab0 ---- 264 656 8 query I rowsort SELECT DISTINCT col1 + - col2 * + col2 FROM tab1 ---- -2890 -3239 -9203 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2036 SELECT 29 + col0 * - col0 * CAST( + col2 AS SIGNED ) FROM tab0 ---- -1196 -18979 -649493 skipif mysql # not compatible query I rowsort label-2036 SELECT 29 + col0 * - col0 * CAST ( + col2 AS INTEGER ) FROM tab0 ---- -1196 -18979 -649493 query I rowsort SELECT ( col2 ) + 7 FROM tab0 ---- 40 8 89 query I rowsort SELECT + 82 + + col0 FROM tab1 AS cor0 ---- 146 162 85 query I rowsort SELECT ALL - 16 + - col1 AS col2 FROM tab0 AS cor0 ---- -102 -107 -113 query I rowsort SELECT 1 + + col2 AS col0 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT ALL - col2 * col1 * + col2 FROM tab0 AS cor0 ---- -611884 -93654 -97 query I rowsort SELECT ALL col2 * col1 + + ( col2 ) - - col1 AS col2 FROM tab1 AS cor0 ---- 1357 1484 637 query I rowsort SELECT 23 + - col2 AS col1 FROM tab0 AS cor0 ---- -10 -59 22 query I rowsort SELECT ALL + 12 * - cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to f94d1f5aee956890c12dd2fdfe33cceb query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3 ---- 3645 values hashing to 5acb69cde71208fe580e10b8b669428e onlyif mysql # use DIV operator for integer division query I rowsort label-2046 SELECT ALL + cor0.col2 * + col0 + - 14 DIV + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 162 3647 7679 skipif mysql # not compatible query I rowsort label-2046 SELECT ALL + cor0.col2 * + col0 + - 14 / + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 162 3647 7679 onlyif mysql # use DIV operator for integer division query I rowsort label-2047 SELECT DISTINCT - + col1 DIV col2 AS col2 FROM tab0 AS cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-2047 SELECT DISTINCT - + col1 / col2 AS col2 FROM tab0 AS cor0 ---- -1 -2 -97 query I rowsort SELECT - - col1 * + ( + 63 ) FROM tab1 AS cor0 ---- 1638 630 819 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2049 SELECT ALL - + col2 + + CAST( col0 + - col2 AS SIGNED ) FROM tab2 AS cor0 ---- -47 26 3 skipif mysql # not compatible query I rowsort label-2049 SELECT ALL - + col2 + + CAST ( col0 + - col2 AS INTEGER ) FROM tab2 AS cor0 ---- -47 26 3 query I rowsort SELECT DISTINCT - - col0 + + ( - cor0.col2 ) * + col2 AS col2 FROM tab0 AS cor0 ---- -1065 -6635 34 onlyif mysql # use DIV operator for integer division query I rowsort label-2051 SELECT - + 71 DIV col1 - col1 * 36 FROM tab0 AS cor0 ---- -3096 -3276 -3492 skipif mysql # not compatible query I rowsort label-2051 SELECT - + 71 / col1 - col1 * 36 FROM tab0 AS cor0 ---- -3096 -3276 -3492 query I rowsort SELECT DISTINCT ( + col2 ) + col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT + 75 * + 61 + + col2 * + ( col2 ) AS col0 FROM tab1 ---- 13791 7491 7824 onlyif mysql # use DIV operator for integer division query I rowsort label-2054 SELECT ALL + 41 DIV col0 col0 FROM tab2 ---- 0 0 5 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2054 SELECT ALL + 41 / col0 col0 FROM tab2 ---- 0 0 5 query I rowsort SELECT - + 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 84 col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cadd876c26338fc58b9297e74fc324d8 query I rowsort SELECT tab2.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT + cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT - + 51 * - col0 FROM tab1 AS cor0 ---- 153 3264 4080 query I rowsort SELECT col1 + + 39 * col1 AS col1 FROM tab2 AS cor0 ---- 1240 2360 680 query I rowsort SELECT ( + col0 ) * cor0.col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT + 38 * cor0.col1 FROM tab2, tab1 cor0, tab1 cor1 ---- 27 values hashing to 655af3eb99a5595dca58c63f79dcb01e query I rowsort SELECT + ( - 48 ) * col0 FROM tab0 AS cor0 ---- -1152 -1680 -4272 query I rowsort SELECT ALL 59 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3 query I rowsort SELECT cor0.col1 + cor0.col2 * + col1 * - col0 AS col2 FROM tab2 AS cor0 ---- -119593 -51017 -5828 query I rowsort SELECT + col2 * col0 + - col1 * cor0.col1 - - col1 AS col1 FROM tab2 AS cor0 ---- -1394 -741 2730 query I rowsort SELECT ALL + 45 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 60b9f935ee8e404d155a2f5e9515c050 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2068 SELECT - col0 / 49 + cor0.col1 + col2 * + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2068 SELECT - col0 / 49 + cor0.col1 + col2 * + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * ( col0 ) * cor0.col0 col2 FROM tab2 cor0 ---- 106097 1519 358956 query I rowsort SELECT - cor0.col1 + - 38 * + cor0.col1 AS col0 FROM tab0 AS cor0 ---- -3354 -3549 -3783 onlyif mysql # use DIV operator for integer division query I rowsort label-2071 SELECT ALL - - col0 DIV - col2 AS col1 FROM tab1 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-2071 SELECT ALL - - col0 / - col2 AS col1 FROM tab1 AS cor0 ---- -1 0 0 query I rowsort SELECT DISTINCT + col0 * col2 + 4 AS col1 FROM tab2 AS cor0 ---- 193 2032 3006 onlyif mysql # use DIV operator for integer division query I rowsort label-2073 SELECT + - col2 DIV - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-2073 SELECT + - col2 / - cor0.col0 AS col0 FROM tab0 AS cor0 ---- 0 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-2074 SELECT + - col0 * + col0 * cor0.col2 + cor0.col2 DIV 77 FROM tab1 AS cor0 ---- -233472 -486 -614399 skipif mysql # not compatible query I rowsort label-2074 SELECT + - col0 * + col0 * cor0.col2 + cor0.col2 / 77 FROM tab1 AS cor0 ---- -233472 -486 -614399 query I rowsort SELECT DISTINCT col1 * col2 + + col2 AS col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT - + col2 + - ( - 9 * + col1 ) FROM tab1 AS cor0 ---- 180 21 33 query I rowsort SELECT DISTINCT col1 * 54 * col1 + col2 FROM tab1 AS cor0 ---- 36558 5457 9222 query I rowsort SELECT - cor0.col2 + 45 * - 61 AS col2 FROM tab2 cor0 ---- -2771 -2772 -2783 onlyif mysql # use DIV operator for integer division query I rowsort label-2079 SELECT ALL col1 DIV + col1 col2 FROM tab1 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2079 SELECT ALL col1 / + col1 col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - col1 + - cor0.col1 * col1 AS col1 FROM tab2 AS cor0 ---- -306 -3540 -992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 - + col0 * - col1 * col2 col0 FROM tab2 cor0 ---- 119678 51072 5886 query I rowsort SELECT DISTINCT - + col2 + 16 AS col0 FROM tab1 cor0 ---- -38 -41 -80 query I rowsort SELECT DISTINCT + + ( - 69 ) * col1 FROM tab0 AS cor0 ---- -5934 -6279 -6693 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2084 SELECT - CAST( NULL AS SIGNED ) + col1 * - cor0.col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2084 SELECT - CAST ( NULL AS INTEGER ) + col1 * - cor0.col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2085 SELECT - - cor0.col1 DIV 21 AS col2 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-2085 SELECT - - cor0.col1 / 21 AS col2 FROM tab1 AS cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 3 * - col0 * + col0 col1 FROM tab2 AS cor0 ---- -147 -18252 -18723 onlyif mysql # use DIV operator for integer division query I rowsort label-2087 SELECT + ( - cor0.col2 ) DIV col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-2087 SELECT + ( - cor0.col2 ) / col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 51 col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- 81 values hashing to c9771396949659773ab2fa2a1ac228de onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2089 SELECT DISTINCT + col1 + - CAST( col0 AS SIGNED ) * - col2 * - ( + 23 ) FROM tab2 ---- -4316 -46585 -69029 skipif mysql # not compatible query I rowsort label-2089 SELECT DISTINCT + col1 + - CAST ( col0 AS INTEGER ) * - col2 * - ( + 23 ) FROM tab2 ---- -4316 -46585 -69029 query I rowsort SELECT ALL + col1 * - col1 + + ( - col1 ) * + col0 + - 49 FROM tab1 cor0 ---- -1258 -789 -803 query I rowsort SELECT - 86 + col2 * + ( - col0 ) AS col2 FROM tab2 AS cor0 ---- -2114 -275 -3088 query I rowsort SELECT ALL + 29 * cor0.col1 * - col2 + + col2 + + col1 AS col1 FROM tab2 AS cor0 ---- -18679 -24215 -44401 query I rowsort SELECT + + 49 + col2 FROM tab1 AS cor0 ---- 103 106 145 query I rowsort SELECT DISTINCT col0 + col0 - col0 * + col0 FROM tab2 AS cor0 ---- -35 -5928 -6083 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col0 col2 FROM tab0 cor0 ---- -24 -35 -89 query I rowsort SELECT ALL col0 * ( ( col2 ) ) AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT cor0.col2 + - ( + 59 ) FROM tab1 cor0 ---- -2 -5 37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col0 * + col0 + - 53 col0 FROM tab2 AS cor0 ---- -102 -6137 -6294 query I rowsort SELECT ALL + col2 * - col0 + col2 * col2 AS col0 FROM tab2 AS cor0 ---- -1352 -1558 540 query I rowsort SELECT DISTINCT 71 - tab2.col2 AS col1 FROM tab2 ---- 33 44 45 query I rowsort SELECT - tab1.col1 * - col1 * 9 + col2 + - col0 FROM tab1 ---- 1537 6135 893 query I rowsort SELECT col2 + + col0 + + 87 FROM tab2 ---- 121 191 204 query I rowsort SELECT + tab1.col1 - + col0 AS col0 FROM tab1 ---- -54 -67 23 query I rowsort SELECT col0 + col2 + - col2 FROM tab2 ---- 7 78 79 query I rowsort SELECT ALL 83 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 002a717a3d902d97220759065fb107c3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - col2 * 44 + col1 col0 FROM tab1 ---- -2347 -2434 -4131 query I rowsort SELECT 3 + col1 - col0 AS col1 FROM tab1 ---- -51 -64 26 query I rowsort SELECT col1 * + col0 - col0 AS col2 FROM tab1 ---- 576 75 960 query I rowsort SELECT ALL col2 * tab2.col2 - 69 AS col0 FROM tab2 ---- 1375 607 660 query I rowsort SELECT DISTINCT - col2 - col2 * col2 * col0 AS col1 FROM tab0 ---- -26169 -36 -598518 query I rowsort SELECT ALL + col2 + 19 + + col2 * + 72 * - col2 FROM tab2 ---- -103911 -48627 -52442 query I rowsort SELECT col0 * - 21 * col0 FROM tab1 ---- -134400 -189 -86016 query I rowsort SELECT DISTINCT + 3 + + cor0.col1 * - 63 - + col1 AS col2 FROM tab2 AS cor0 ---- -1085 -1981 -3773 query I rowsort SELECT DISTINCT - col0 * col0 + - ( cor0.col0 ) * cor0.col1 AS col1 FROM tab1 AS cor0 ---- -4736 -7440 -87 query I rowsort SELECT - - 21 * col0 AS col0 FROM tab0 AS cor0 ---- 1869 504 735 query I rowsort SELECT ALL + cor0.col2 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT ALL ( col1 ) + col2 * col0 AS col0 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT DISTINCT cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-2119 SELECT - - col0 + cor0.col2 DIV + col2 AS col1 FROM tab0 AS cor0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-2119 SELECT - - col0 + cor0.col2 / + col2 AS col1 FROM tab0 AS cor0 ---- 25 36 90 query I rowsort SELECT - 68 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6fbba7db5bccb533a35aa5125a231f88 query I rowsort SELECT ALL - + col2 + 71 FROM tab2 AS cor0 ---- 33 44 45 query I rowsort SELECT DISTINCT + - col2 + cor0.col0 * + cor0.col2 AS col2 FROM tab0 cor0 ---- 34 7216 759 query I rowsort SELECT DISTINCT - + col1 * + col2 + + col1 AS col0 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT ALL 87 + - 28 * col0 AS col1 FROM tab0 AS cor0 ---- -2405 -585 -893 query I rowsort SELECT 8 - col0 FROM tab2 AS cor0 ---- -70 -71 1 query I rowsort SELECT DISTINCT + col2 + - col1 * col0 AS col0 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT - col1 * - cor0.col0 + + col1 AS col0 FROM tab0 cor0 ---- 2150 3492 8190 query I rowsort SELECT ALL + ( col1 ) * - col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT + col1 - + 39 AS col0 FROM tab0 AS cor0 ---- 47 52 58 query I rowsort SELECT ALL 83 * ( cor0.col2 ) FROM tab2 AS cor0 ---- 2158 2241 3154 query I rowsort SELECT DISTINCT - 74 + ( + col0 ) FROM tab1 AS cor0 ---- -10 -71 6 query I rowsort SELECT + col0 * + col1 * col2 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT ( col2 ) + - col0 AS col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT + + col1 - + col2 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT + 53 + + ( - col2 ) + col1 AS col0 FROM tab0 AS cor0 ---- 106 149 62 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 - + ( - col2 ) * + col2 * 80 col1 FROM tab1 AS cor0 ---- 233280 259920 737280 query I rowsort SELECT DISTINCT - col2 * col2 + + col2 AS col1 FROM tab1 AS cor0 ---- -2862 -3192 -9120 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * col1 * 45 col0 FROM tab0 ---- 332820 372645 423405 query I rowsort SELECT - + col1 * col0 + col2 * + 88 + - col1 AS col0 FROM tab1 AS cor0 ---- 4366 4648 7395 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2141 SELECT - - CAST( + col2 AS SIGNED ) + - col1 + col2 * - col0 FROM tab0 AS cor0 ---- -131 -7307 -845 skipif mysql # not compatible query I rowsort label-2141 SELECT - - CAST ( + col2 AS INTEGER ) + - col1 + col2 * - col0 FROM tab0 AS cor0 ---- -131 -7307 -845 query I rowsort SELECT ALL col0 * + 89 FROM tab2 AS cor0 ---- 623 6942 7031 query I rowsort SELECT DISTINCT + + col1 * col2 + col2 * - ( col1 ) * - col1 FROM tab2 cor0 ---- 11628 26784 92040 query I rowsort SELECT 87 - col2 AS col0 FROM tab2 AS cor0 ---- 49 60 61 query I rowsort SELECT - col2 - + col0 FROM tab0 cor0 ---- -171 -36 -57 query I rowsort SELECT + 5 * - tab2.col1 + - tab2.col2 * ( - col0 ) FROM tab2 ---- 1733 2917 34 query I rowsort SELECT col0 + - ( + cor0.col2 ) * cor0.col0 AS col2 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT + col0 * - 92 AS col0 FROM tab1 AS cor0 ---- -276 -5888 -7360 query I rowsort SELECT ALL + col0 + col2 * + 19 FROM tab2 cor0 ---- 520 572 801 query I rowsort SELECT + + col2 * 49 AS col0 FROM tab1 cor0 ---- 2646 2793 4704 query I rowsort SELECT DISTINCT + col1 * - 37 AS col0 FROM tab0 AS cor0 ---- -3182 -3367 -3589 onlyif mysql # use DIV operator for integer division query I rowsort label-2152 SELECT DISTINCT col1 + + col2 DIV + ( + col1 ) AS col1 FROM tab1 AS cor0 ---- 15 20 28 skipif mysql # not compatible query I rowsort label-2152 SELECT DISTINCT col1 + + col2 / + ( + col1 ) AS col1 FROM tab1 AS cor0 ---- 15 20 28 query I rowsort SELECT + - col1 + - ( + col2 + - col2 * 52 ) AS col0 FROM tab1 AS cor0 ---- 2728 2897 4883 query I rowsort SELECT - cor0.col0 * + cor0.col0 + col1 FROM tab0 AS cor0 ---- -1128 -490 -7830 onlyif mysql # use DIV operator for integer division query I rowsort label-2155 SELECT DISTINCT - col1 + + col1 DIV - 72 + col2 * col2 AS col0 FROM tab2 AS cor0 ---- 1427 617 698 skipif mysql # not compatible query I rowsort label-2155 SELECT DISTINCT - col1 + + col1 / - 72 + col2 * col2 AS col0 FROM tab2 AS cor0 ---- 1427 617 698 query I rowsort SELECT ALL col1 * + cor0.col2 - 75 * col2 FROM tab2 cor0 ---- -1188 -2204 -416 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2157 SELECT ALL col1 * + CAST( NULL AS SIGNED ) - 84 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2157 SELECT ALL col1 * + CAST ( NULL AS INTEGER ) - 84 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 13 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb query I rowsort SELECT - 40 * - col2 + col0 * + col2 AS col0 FROM tab1 AS cor0 ---- 11520 2322 5928 query I rowsort SELECT col0 * - col2 + 60 * - col0 FROM tab1 AS cor0 ---- -12480 -342 -7488 query I rowsort SELECT + 2 * cor0.col2 + - col2 * - 32 FROM tab0 AS cor0 ---- 1122 2788 34 onlyif mysql # use DIV operator for integer division query I rowsort label-2162 SELECT - col0 DIV - cor0.col0 + + cor0.col2 DIV + cor0.col1 AS col2 FROM tab0 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2162 SELECT - col0 / - cor0.col0 + + cor0.col2 / + cor0.col1 AS col2 FROM tab0 cor0 ---- 1 1 1 query I rowsort SELECT - - cor0.col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 2064 3395 8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 35 + col0 * - col1 col1 FROM tab1 AS cor0 ---- -1005 -43 -605 query I rowsort SELECT cor0.col0 * - col2 + - col2 * col2 AS col0 FROM tab0 AS cor0 ---- -14022 -1881 -36 query I rowsort SELECT + - cor0.col2 * col2 + cor0.col1 + 76 FROM tab0 AS cor0 ---- -6557 -927 172 onlyif mysql # use DIV operator for integer division query I rowsort label-2167 SELECT + col2 + - cor0.col2 DIV + 17 FROM tab1 AS cor0 ---- 51 54 91 skipif mysql # not compatible query I rowsort label-2167 SELECT + col2 + - cor0.col2 / + 17 FROM tab1 AS cor0 ---- 51 54 91 query I rowsort SELECT - + col2 * col2 + col1 FROM tab0 cor0 ---- -1003 -6633 96 query I rowsort SELECT DISTINCT - col1 * + col1 + cor0.col1 FROM tab1 AS cor0 ---- -156 -650 -90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2170 SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-2170 SELECT ALL CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT col1 * + 37 FROM tab2 cor0 ---- 1147 2183 629 query I rowsort SELECT + + col0 - + col2 AS col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT DISTINCT 71 * - 68 AS col0 FROM tab0, tab2 AS cor0 ---- -4828 query I rowsort SELECT + 35 * tab2.col0 FROM tab2 ---- 245 2730 2765 query I rowsort SELECT col1 * 15 * + col1 FROM tab0 ---- 110940 124215 141135 onlyif mysql # use DIV operator for integer division query I rowsort label-2176 SELECT col1 * + col2 + col2 * cor0.col1 DIV - col1 col0 FROM tab0 AS cor0 ---- 2805 7380 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2176 SELECT col1 * + col2 + col2 * cor0.col1 / - col1 col0 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT ALL + 59 * + 52 FROM tab1 ---- 3068 3068 3068 query I rowsort SELECT ALL 40 * 57 * + col1 FROM tab0 ---- 196080 207480 221160 query I rowsort SELECT DISTINCT + ( ( - col1 ) ) AS col2 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT ALL + cor1.col2 * 20 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to f7dfbbb148535eac9b7d3eecee67074c query I rowsort SELECT - ( col2 ) - col1 * col1 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT - col2 * - col2 + col1 AS col1 FROM tab0 AS cor0 ---- 1175 6815 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 50 col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 query I rowsort SELECT + col0 * - col1 + col0 * + ( + ( col2 ) ) + - col1 FROM tab2 cor0 ---- -2633 -59 1642 query I rowsort SELECT DISTINCT + 62 + + col0 FROM tab2 cor0 ---- 140 141 69 query I rowsort SELECT - col0 * cor0.col2 + + col0 - + col1 FROM tab2 AS cor0 ---- -2009 -213 -2940 query I rowsort SELECT + - 54 AS col0 FROM tab1 AS cor0 ---- -54 -54 -54 onlyif mysql # use DIV operator for integer division query I rowsort label-2188 SELECT DISTINCT col1 DIV tab1.col2 + - tab1.col1 * ( + col0 ) + + col0 * - col2 AS col0 FROM tab1 ---- -240 -4288 -8720 skipif mysql # not compatible query I rowsort label-2188 SELECT DISTINCT col1 / tab1.col2 + - tab1.col1 * ( + col0 ) + + col0 * - col2 AS col0 FROM tab1 ---- -240 -4288 -8720 query I rowsort SELECT ALL col1 + col0 * + 6 AS col0 FROM tab0 ---- 230 307 625 query I rowsort SELECT col1 + col0 + - 5 AS col2 FROM tab1 AS cor0 ---- 24 69 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + col0 * 14 col1 FROM tab2 AS cor0 ---- 1118 1144 125 query IIIIII rowsort SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT NULL IN ( cor0.col1 ) ---- query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab1 AS cor2 ---- 3645 values hashing to f464d40c605db608927f2c4d66190a23 query I rowsort SELECT + col2 + + col0 * - col2 AS col0 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT ALL - 59 * + col0 + - col1 AS col2 FROM tab0 cor0 ---- -1502 -2162 -5342 query I rowsort SELECT ALL - col2 * 29 + col1 FROM tab0 AS cor0 ---- -2287 -871 68 query I rowsort SELECT DISTINCT + - col1 * + 68 + + col1 AS col2 FROM tab1 AS cor0 ---- -1742 -670 -871 onlyif mysql # use DIV operator for integer division query I rowsort label-2198 SELECT ALL col2 DIV ( 32 ) + col1 * 79 DIV cor0.col2 AS col0 FROM tab0 AS cor0 ---- 206 7663 89 skipif mysql # not compatible query I rowsort label-2198 SELECT ALL col2 / ( 32 ) + col1 * 79 / cor0.col2 AS col0 FROM tab0 AS cor0 ---- 206 7663 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * + ( col1 ) col2 FROM tab0 AS cor0 ---- 2838 7462 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 90 * - 41 + col0 col2 FROM tab0 AS cor0 ---- -3601 -3655 -3666 query I rowsort SELECT ALL + col2 * - col0 * cor0.col0 - 9 * + col2 AS col1 FROM tab1 AS cor0 ---- -233985 -615264 -972 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2202 SELECT ALL - + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2202 SELECT ALL - + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + ( 61 ) * col2 FROM tab1 AS cor0 ---- 3294 3477 5856 query I rowsort SELECT - 35 * - cor0.col0 AS col2 FROM tab2 AS cor0 ---- 245 2730 2765 query I rowsort SELECT DISTINCT + 34 * col0 AS col0 FROM tab0 AS cor0 ---- 1190 3026 816 query I rowsort SELECT ALL + 37 * - col0 FROM tab2 AS cor0 ---- -259 -2886 -2923 query I rowsort SELECT ( 50 ) + cor0.col2 FROM tab0 AS cor0 ---- 132 51 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2208 SELECT - + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-2208 SELECT - + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT + + ( + col2 ) * - col0 + - cor0.col1 * col0 * - col0 FROM tab2 AS cor0 ---- 103095 1330 356928 query I rowsort SELECT ALL 86 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19 query I rowsort SELECT + 39 * cor0.col1 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 5dde7da9aec6b2abc4d24c8d50e16968 onlyif mysql # use DIV operator for integer division query I rowsort label-2212 SELECT ALL - 38 DIV - 37 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2212 SELECT ALL - 38 / - 37 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT + col2 + - 8 FROM tab0 cor0 ---- -7 25 74 onlyif mysql # use DIV operator for integer division query I rowsort label-2214 SELECT - col1 DIV + 44 + col0 DIV + col0 AS col1 FROM tab1 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2214 SELECT - col1 / + 44 + col0 / + col0 AS col1 FROM tab1 cor0 ---- 1 1 1 query I rowsort SELECT ALL + col2 + ( cor0.col2 ) * col1 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2216 SELECT col2 - - CAST( col2 AS SIGNED ) * col1 FROM tab0 AS cor0 ---- 2871 7544 98 skipif mysql # not compatible query I rowsort label-2216 SELECT col2 - - CAST ( col2 AS INTEGER ) * col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT ALL + - col0 * 58 AS col1 FROM tab2 AS cor0 ---- -406 -4524 -4582 query I rowsort SELECT + 59 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc query I rowsort SELECT DISTINCT col2 * - ( col0 ) + col0 FROM tab2 ---- -182 -1950 -2923 query I rowsort SELECT ALL col2 * ( col0 ) + col2 * - col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL - tab0.col0 + col2 * col0 FROM tab0 ---- 0 7209 768 query I rowsort SELECT DISTINCT - col0 + 36 AS col1 FROM tab2 ---- -42 -43 29 query I rowsort SELECT col2 * 88 * + col0 + + col1 + - 2 FROM tab1 ---- 14280 321032 675851 query I rowsort SELECT - cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 query I rowsort SELECT DISTINCT col1 * + 80 + - 98 * col0 FROM tab0 ---- -1442 4330 4528 query I rowsort SELECT DISTINCT + col1 + - col0 * + ( col2 ) AS col0 FROM tab0 ---- -706 -7207 62 query I rowsort SELECT ALL - col1 + ( col1 ) FROM tab1 ---- 0 0 0 query I rowsort SELECT ALL + col2 + + col1 * col1 FROM tab0 ---- 7429 8363 9410 query I rowsort SELECT col1 * 76 AS col0 FROM tab0 ---- 6536 6916 7372 skipif mysql # not compatible query I rowsort SELECT ALL + col2 + CAST ( - col0 AS REAL ) * + col1 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT - - col0 * + col1 * - col2 - col1 AS col1 FROM tab0 AS cor0 ---- -3492 -664209 -68198 query I rowsort SELECT - 52 * 17 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 850c7caebdf97f7163b0d2d7a810c066 query I rowsort SELECT ALL - col1 + - col1 * - 22 AS col2 FROM tab0 AS cor0 ---- 1806 1911 2037 query I rowsort SELECT + 44 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 13 - col1 col0 FROM tab0 ---- -104 -110 -99 onlyif mysql # use DIV operator for integer division query I rowsort label-2236 SELECT ALL + ( col2 ) + col1 DIV - cor0.col0 AS col2 FROM tab1 AS cor0 ---- 46 57 96 skipif mysql # not compatible query I rowsort label-2236 SELECT ALL + ( col2 ) + col1 / - cor0.col0 AS col2 FROM tab1 AS cor0 ---- 46 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 39 col1 FROM tab2 ---- 39 39 39 query I rowsort SELECT ( - 64 ) + col1 AS col1 FROM tab0 ---- 22 27 33 query I rowsort SELECT DISTINCT ( tab0.col1 ) * - col0 * ( + col2 ) FROM tab0 ---- -3395 -664118 -68112 query I rowsort SELECT ALL - 70 + 95 FROM tab1 cor0 ---- 25 25 25 query I rowsort SELECT - - col2 * 52 + col1 FROM tab2 cor0 ---- 1411 1435 1993 query I rowsort SELECT DISTINCT ( col2 ) * - col1 AS col0 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT - - col2 - + col0 AS col1 FROM tab2 cor0 ---- -41 -52 20 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 66 + - col1 * + col1 col2 FROM tab0 AS cor0 ---- -7462 -8347 -9475 query I rowsort SELECT ALL + 46 * - col2 + - col0 - - col2 AS col1 FROM tab0 cor0 ---- -1509 -3779 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * + col2 col1 FROM tab0 cor0 ---- 1 1089 6724 query I rowsort SELECT ALL + col1 + col1 * + cor0.col1 * - col2 FROM tab0 cor0 ---- -243982 -678951 -9312 query I rowsort SELECT DISTINCT + - 42 + - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -101 -59 -73 query I rowsort SELECT ALL + cor0.col2 + + col2 * col0 FROM tab2 AS cor0 ---- 2054 216 3040 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 41 col2 FROM tab0 AS cor0 ---- -41 query I rowsort SELECT - col2 + + col0 * col0 AS col1 FROM tab2 AS cor0 ---- 22 6058 6203 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 0 col2 FROM tab0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2253 SELECT + ( col0 ) + - CAST( + col0 AS SIGNED ) * - col1 FROM tab2 cor0 ---- 1422 224 4680 skipif mysql # not compatible query I rowsort label-2253 SELECT + ( col0 ) + - CAST ( + col0 AS INTEGER ) * - col1 FROM tab2 cor0 ---- 1422 224 4680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 14 col1 FROM tab2 AS cor0 ---- 14 14 14 query I rowsort SELECT + cor0.col1 * 48 FROM tab1 AS cor0 ---- 1248 480 624 query I rowsort SELECT + col2 * 78 + cor0.col0 * col2 AS col1 FROM tab1 AS cor0 ---- 15168 4374 8094 query I rowsort SELECT col1 * + ( 79 ) * + cor0.col1 FROM tab0 AS cor0 ---- 584284 654199 743311 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2258 SELECT - col0 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2258 SELECT - col0 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT - col1 * - 44 FROM tab0 AS cor0 ---- 3784 4004 4268 query I rowsort SELECT DISTINCT + col1 * - col2 + col1 + col2 FROM tab0 AS cor0 ---- -2719 -7289 1 query I rowsort SELECT ALL - 14 + 90 * cor0.col2 + ( - 66 * col2 ) FROM tab2 cor0 ---- 610 634 898 query I rowsort SELECT + col0 + + cor0.col1 * cor0.col2 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT DISTINCT - - col0 + 72 FROM tab0 AS cor0 ---- 107 161 96 query I rowsort SELECT DISTINCT col1 * ( + col0 * 12 ) + col2 AS col0 FROM tab1 cor0 ---- 12576 7737 990 query I rowsort SELECT ( 77 ) FROM tab2 cor0 ---- 77 77 77 query I rowsort SELECT ALL col2 + 22 * - col1 FROM tab1 AS cor0 ---- -163 -190 -518 onlyif mysql # use DIV operator for integer division query I rowsort label-2267 SELECT 90 + - 19 DIV col1 FROM tab1 cor0 ---- 89 89 90 skipif mysql # not compatible query I rowsort label-2267 SELECT 90 + - 19 / col1 FROM tab1 cor0 ---- 89 89 90 query I rowsort SELECT DISTINCT col2 + col0 * + col2 * cor0.col1 FROM tab1 AS cor0 ---- 36537 4266 99936 query I rowsort SELECT ALL + ( + col1 ) - - col1 AS col2 FROM tab1 AS cor0 ---- 20 26 52 query I rowsort SELECT - col2 * - col0 + col0 AS col0 FROM tab2 AS cor0 ---- 196 2106 3081 onlyif mysql # use DIV operator for integer division query I rowsort label-2271 SELECT ( - col2 ) DIV - col1 - col2 AS col1 FROM tab0 cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-2271 SELECT ( - col2 ) / - col1 - col2 AS col1 FROM tab0 cor0 ---- -1 -33 -82 query I rowsort SELECT + - ( - col0 ) + col1 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT + col1 * - col0 + col2 AS col0 FROM tab0 AS cor0 ---- -2031 -3394 -8017 query I rowsort SELECT ALL + cor0.col2 * cor0.col1 + col2 AS col1 FROM tab2 AS cor0 ---- 1560 684 864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 39 + + col1 col2 FROM tab1 AS cor0 ---- 49 52 65 query I rowsort SELECT ALL + col0 * col0 * + col2 - - col2 * + 1 FROM tab0 ---- 1226 19041 649604 query I rowsort SELECT DISTINCT col2 - 10 * 45 * - col0 FROM tab0 ---- 10833 15751 40132 onlyif mysql # use DIV operator for integer division query I rowsort label-2278 SELECT DISTINCT - col1 - 53 DIV + col1 col1 FROM tab1 ---- -15 -17 -28 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2278 SELECT DISTINCT - col1 - 53 / + col1 col1 FROM tab1 ---- -15 -17 -28 query I rowsort SELECT tab0.col0 + + col1 + + 83 AS col1 FROM tab0 ---- 193 215 263 query I rowsort SELECT - tab2.col0 - + col0 AS col2 FROM tab2 ---- -14 -156 -158 query I rowsort SELECT - - col1 + + ( - col1 * col0 ) + - 19 AS col1 FROM tab0 AS cor0 ---- -1997 -3317 -8027 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2282 SELECT col0 * + CAST( NULL AS SIGNED ) + 2 - - col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2282 SELECT col0 * + CAST ( NULL AS INTEGER ) + 2 - - col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col0 * 68 + + 92 - col0 FROM tab2 AS cor0 ---- 5318 5385 561 query I rowsort SELECT - cor0.col2 * + col1 - - 3 * - cor0.col0 FROM tab0 AS cor0 ---- -202 -2910 -7729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2285 SELECT 19 + - 52 * - col0 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2285 SELECT 19 + - 52 * - col0 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2286 SELECT - - col1 * + col2 DIV cor0.col2 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-2286 SELECT - - col1 * + col2 / cor0.col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT DISTINCT + + cor0.col1 * - col2 + col0 AS col2 FROM tab2 AS cor0 ---- -1456 -567 -830 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2288 SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2288 SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - + col1 * 9 AS col0 FROM tab0 cor0 ---- -774 -819 -873 query I rowsort SELECT + col0 + 90 * - col1 AS col1 FROM tab1 AS cor0 ---- -1090 -2337 -836 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + 45 + col1 * + cor0.col1 + col1 col2 FROM tab1 AS cor0 ---- 137 65 657 query I rowsort SELECT + 52 + + col1 FROM tab2 AS cor0 ---- 111 69 83 onlyif mysql # use DIV operator for integer division query I rowsort label-2293 SELECT - col2 + col2 DIV col1 AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-2293 SELECT - col2 + col2 / col1 AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT ALL col1 * ( col2 ) * col2 AS col2 FROM tab0 ---- 611884 93654 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2295 SELECT ALL - tab0.col0 * - CAST( NULL AS DECIMAL ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2295 SELECT ALL - tab0.col0 * - CAST ( NULL AS REAL ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - ( + col2 ) + + col0 - + 68 FROM tab0 AS cor0 ---- -34 -61 -77 query I rowsort SELECT ALL 64 * 56 FROM tab0 AS cor0 ---- 3584 3584 3584 onlyif mysql # use DIV operator for integer division query I rowsort label-2298 SELECT 31 DIV col0 FROM tab1 cor0 ---- 0 0 10 skipif mysql # not compatible query I rowsort label-2298 SELECT 31 / col0 FROM tab1 cor0 ---- 0 0 10 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 * + col2 col0 FROM tab1 cor0 ---- -2916 -3249 -9216 query I rowsort SELECT 94 * - col0 AS col1 FROM tab2 AS cor0 ---- -658 -7332 -7426 onlyif mysql # use DIV operator for integer division query I rowsort label-2301 SELECT ALL - + col1 + + cor0.col0 DIV - col2 AS col0 FROM tab1 AS cor0 ---- -11 -13 -26 skipif mysql # not compatible query I rowsort label-2301 SELECT ALL - + col1 + + cor0.col0 / - col2 AS col0 FROM tab1 AS cor0 ---- -11 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2302 SELECT DISTINCT ( col0 ) + + CAST( col1 + - col1 AS SIGNED ) FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-2302 SELECT DISTINCT ( col0 ) + + CAST ( col1 + - col1 AS INTEGER ) FROM tab2 AS cor0 ---- 7 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( - tab1.col0 + - col2 * col0 ) col2 FROM tab1 ---- -165 -3712 -7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col1 ) col1 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT tab2.col1 * - cor0.col0 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 737dbb26f65dd374aa3c71dabdd3903c query I rowsort SELECT DISTINCT - col1 + - 1 AS col0 FROM tab0 AS cor0 ---- -87 -92 -98 query I rowsort SELECT DISTINCT - col0 * + 14 + - col2 FROM tab0 AS cor0 ---- -1328 -369 -491 query I rowsort SELECT 92 * tab2.col0 - + col2 AS col2 FROM tab2 ---- 617 7150 7230 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col1 + - col2 col2 FROM tab1 AS cor0 ---- -109 -67 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-2310 SELECT DISTINCT + col1 + - 95 DIV - 52 FROM tab0 AS cor0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-2310 SELECT DISTINCT + col1 + - 95 / - 52 FROM tab0 AS cor0 ---- 87 92 98 query I rowsort SELECT ALL + col2 * col0 + 28 FROM tab1 AS cor0 ---- 190 3676 7708 query I rowsort SELECT col2 + + col1 * - cor0.col0 FROM tab2 AS cor0 ---- -1305 -190 -4576 query I rowsort SELECT DISTINCT - - cor0.col2 * - ( - cor0.col1 * col2 ) + cor0.col0 AS col0 FROM tab2 cor0 ---- 22606 24627 39962 query I rowsort SELECT ALL col1 * col0 - + 81 AS col2 FROM tab1 AS cor0 ---- -3 559 959 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + + col0 - + col0 col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT - cor0.col1 * - ( - col2 ) AS col2 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL + + col1 * - 94 * - col1 + col2 + col0 AS col2 FROM tab1 AS cor0 ---- 16062 63601 9521 query I rowsort SELECT DISTINCT - col0 + + col0 * col2 FROM tab2 cor0 ---- 182 1950 2923 onlyif mysql # use DIV operator for integer division query I rowsort label-2319 SELECT DISTINCT col2 DIV col0 + col0 * + col0 col1 FROM tab2 AS cor0 ---- 52 6084 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2319 SELECT DISTINCT col2 / col0 + col0 * + col0 col1 FROM tab2 AS cor0 ---- 52 6084 6241 query I rowsort SELECT DISTINCT 43 AS col1 FROM tab1, tab0, tab0 AS cor0 ---- 43 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col1 + tab2.col0 col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to a0891d923255f338145ac78ca8c0ccef query I rowsort SELECT ALL cor0.col0 * + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT cor0.col0 + + ( + col2 ) * col0 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT ALL col0 * 5 + col2 * col1 FROM tab1 AS cor0 ---- 1419 1648 890 query I rowsort SELECT DISTINCT - col0 - + ( + col2 ) * - col0 * + col1 FROM tab1 ---- 36416 4209 99760 query I rowsort SELECT ALL 70 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 9758da65ae4711e3e8c8def2fe026911 query I rowsort SELECT DISTINCT + cor0.col0 + 30 * col0 + + col0 AS col0 FROM tab2 cor0 ---- 224 2496 2528 query I rowsort SELECT DISTINCT + + col1 * 4 - col1 AS col1 FROM tab2 AS cor0 ---- 177 51 93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2329 SELECT ALL col1 + - CAST( col0 AS SIGNED ) * + col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 skipif mysql # not compatible query I rowsort label-2329 SELECT ALL col1 + - CAST ( col0 AS INTEGER ) * + col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 onlyif mysql # use DIV operator for integer division query I rowsort label-2330 SELECT ALL ( - tab0.col0 ) DIV col1 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2330 SELECT ALL ( - tab0.col0 ) / col1 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL + 47 * - col1 AS col2 FROM tab1 ---- -1222 -470 -611 query I rowsort SELECT ALL - 81 * col0 FROM tab1 ---- -243 -5184 -6480 query I rowsort SELECT ALL 67 * + col1 AS col1 FROM tab2 cor0 ---- 1139 2077 3953 query I rowsort SELECT DISTINCT - 66 + - col2 * - 10 AS col2 FROM tab0 AS cor0 ---- -56 264 754 query I rowsort SELECT ALL - col1 * - col1 + ( col1 ) FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT ALL - 29 * col2 + col1 FROM tab1 AS cor0 ---- -1540 -1643 -2771 query I rowsort SELECT DISTINCT ( + cor0.col0 + + 21 ) FROM tab0, tab0 AS cor0 ---- 110 45 56 query I rowsort SELECT DISTINCT 10 * col1 + col2 * cor0.col0 FROM tab0 AS cor0 ---- 1005 1652 8208 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2339 SELECT - ( + col0 ) * cor0.col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2339 SELECT - ( + col0 ) * cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + ( + col2 ) + - col1 FROM tab0 AS cor0 ---- -53 -9 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * ( + col0 ) col0 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT ALL - 53 + cor0.col2 - col2 AS col1 FROM tab0 AS cor0 ---- -53 -53 -53 query I rowsort SELECT DISTINCT - ( 68 ) FROM tab0 AS cor0 ---- -68 query I rowsort SELECT ALL col1 * col2 + + col1 * - ( col1 ) + cor0.col1 FROM tab0 AS cor0 ---- -4472 -728 -9215 skipif mysql # not compatible query I rowsort SELECT ALL + - CAST ( - ( col0 ) AS REAL ) FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT - 1 * cor0.col1 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT 31 * - col1 FROM tab1 AS cor0 ---- -310 -403 -806 query I rowsort SELECT + ( + col2 ) * - col0 + 54 FROM tab1 ---- -108 -3594 -7626 query IIIIIIIIIIII rowsort SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab0 AS cor1 ---- 972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9 query I rowsort SELECT DISTINCT 75 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 75 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2351 SELECT CAST( 41 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e skipif mysql # not compatible query I rowsort label-2351 SELECT CAST ( 41 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e query I rowsort SELECT + col1 * - 17 + - 0 * + col2 FROM tab0 AS cor0 ---- -1462 -1547 -1649 onlyif mysql # use DIV operator for integer division query I rowsort label-2353 SELECT DISTINCT cor0.col2 DIV 68 col0 FROM tab1, tab2 AS cor0, tab0 cor1 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2353 SELECT DISTINCT cor0.col2 / 68 col0 FROM tab1, tab2 AS cor0, tab0 cor1 ---- 0 query I rowsort SELECT + + cor0.col1 + 60 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- 1526 2197 5431 query I rowsort SELECT - col0 * - 92 + - col2 FROM tab2 AS cor0 ---- 617 7150 7230 query I rowsort SELECT + col1 * ( col0 ) AS col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT - + ( cor1.col0 ) FROM tab2 cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 query I rowsort SELECT DISTINCT ( col1 ) * - tab1.col0 * + ( + tab1.col1 ) AS col1 FROM tab1 ---- -13520 -2028 -6400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2359 SELECT ALL CAST( + col2 AS SIGNED ) * + tab2.col2 AS col1 FROM tab2 ---- 1444 676 729 skipif mysql # not compatible query I rowsort label-2359 SELECT ALL CAST ( + col2 AS INTEGER ) * + tab2.col2 AS col1 FROM tab2 ---- 1444 676 729 query I rowsort SELECT ALL + ( + 30 ) FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to 6c98840ed134c765d56389f4150075f0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 51 col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to d8bf0a05c9c4d2a93812d106baae4752 query I rowsort SELECT - col2 * + ( + col0 ) AS col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT + 2 * - col2 * + col2 + ( ( + col1 ) * col2 ) AS col0 FROM tab2 ---- -2242 -621 182 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2364 SELECT - cor0.col1 * col2 + - col2 * CAST( col0 + - col2 AS SIGNED ) col1 FROM tab1 AS cor0 ---- -969 1350 288 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2364 SELECT - cor0.col1 * col2 + - col2 * CAST ( col0 + - col2 AS INTEGER ) col1 FROM tab1 AS cor0 ---- -969 1350 288 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2365 SELECT DISTINCT + 36 + col2 * CAST( NULL AS SIGNED ) FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-2365 SELECT DISTINCT + 36 + col2 * CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL query I rowsort SELECT ALL 67 FROM tab0, tab1, tab1 cor0 ---- 27 values hashing to eea8a0738728ea55e4e7ba1506c9905a query I rowsort SELECT + col2 * - col1 * ( - col0 ) AS col0 FROM tab1 ---- 36480 4212 99840 onlyif mysql # use DIV operator for integer division query I rowsort label-2368 SELECT col0 DIV ( 56 ) + + col0 * + ( col2 ) col2 FROM tab1 AS cor0 ---- 162 3649 7681 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2368 SELECT col0 / ( 56 ) + + col0 * + ( col2 ) col2 FROM tab1 AS cor0 ---- 162 3649 7681 query I rowsort SELECT - col1 * col2 * + col1 + col2 + + 73 * - 45 * + col1 AS col0 FROM tab1 AS cor0 ---- -121860 -38493 -58833 query I rowsort SELECT - col1 + + col0 + col2 * + col1 AS col1 FROM tab2 AS cor0 ---- 1553 708 813 query I rowsort SELECT ALL col2 * - col1 * - tab0.col2 AS col1 FROM tab0 ---- 611884 93654 97 query I rowsort SELECT + col1 * 10 + + 76 * - col1 FROM tab1 AS cor0 ---- -1716 -660 -858 query I rowsort SELECT + col1 * - 72 - + 10 * - col2 FROM tab2 AS cor0 ---- -1962 -3988 -844 query I rowsort SELECT ALL col2 + + ( + col1 ) AS col2 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2375 SELECT col0 * CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2375 SELECT col0 * CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col2 + 55 + + col0 * + col0 AS col2 FROM tab0 AS cor0 ---- 1281 664 8058 query I rowsort SELECT DISTINCT + col1 * - 30 * 43 FROM tab0 AS cor0 ---- -110940 -117390 -125130 query I rowsort SELECT DISTINCT - cor0.col0 + + 18 AS col1 FROM tab1 AS cor0 ---- -46 -62 15 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col0 - + col1 col2 FROM tab0 AS cor0 ---- -62 706 7207 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2380 SELECT - col1 * - col0 + col2 * col1 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 ---- 15479 3491 4869 skipif mysql # not compatible query I rowsort label-2380 SELECT - col1 * - col0 + col2 * col1 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 ---- 15479 3491 4869 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col2 ) ---- query I rowsort SELECT ALL tab0.col1 - + col0 FROM tab0 ---- 2 62 62 query I rowsort SELECT ALL - col1 + tab2.col2 * - col1 + col0 AS col2 FROM tab2 WHERE NULL NOT IN ( - col0 * + tab2.col0 ) ---- query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( NULL ) >= ( NULL ) ---- query I rowsort SELECT ALL tab2.col1 + col0 * + col1 FROM tab2 ---- 1360 248 4661 query I rowsort SELECT ALL tab1.col0 * + col0 + + tab1.col1 AS col2 FROM tab1 ---- 35 4106 6413 query III rowsort SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - col0 ---- query I rowsort SELECT DISTINCT col0 - - col0 * - col0 FROM tab0 ---- -1190 -552 -7832 query I rowsort SELECT DISTINCT tab0.col2 * - col0 + col1 AS col1 FROM tab0 ---- -706 -7207 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col0 + - col1 col1 FROM tab0 ---- -110 -132 -180 query I rowsort SELECT DISTINCT col1 * + tab2.col1 AS col2 FROM tab2 ---- 289 3481 961 query I rowsort SELECT DISTINCT - col1 * col2 * col0 FROM tab2 WHERE col2 * - col1 * - col1 + col1 + col2 BETWEEN NULL AND ( NULL ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * - tab2.col0 col1 FROM tab2 ---- -49 -6084 -6241 query III rowsort SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( - col0 ) ---- query I rowsort SELECT DISTINCT col2 * - col0 * + col1 + - col0 AS col0 FROM tab1 ---- -36544 -4215 -99920 query I rowsort SELECT - cor0.col1 * + col0 AS col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-2397 SELECT + ( - col1 ) + + 80 DIV - 27 AS col1 FROM tab1 cor0 ---- -12 -15 -28 skipif mysql # not compatible query I rowsort label-2397 SELECT + ( - col1 ) + + 80 / - 27 AS col1 FROM tab1 cor0 ---- -12 -15 -28 query I rowsort SELECT ALL + - 82 * - col1 + - 60 - + 52 FROM tab0 AS cor0 ---- 6940 7350 7842 query I rowsort SELECT + + ( - col1 ) * 77 FROM tab0 AS cor0 ---- -6622 -7007 -7469 onlyif mysql # use DIV operator for integer division query I rowsort label-2400 SELECT DISTINCT col0 * - col2 + + col1 DIV + col0 col1 FROM tab1 cor0 ---- -154 -3648 -7680 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2400 SELECT DISTINCT col0 * - col2 + + col1 / + col0 col1 FROM tab1 cor0 ---- -154 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-2401 SELECT - tab0.col0 DIV col2 + tab0.col0 AS col0 FROM tab0 ---- 0 24 88 skipif mysql # not compatible query I rowsort label-2401 SELECT - tab0.col0 / col2 + tab0.col0 AS col0 FROM tab0 ---- 0 24 88 query I rowsort SELECT + + col1 * - col2 + 73 AS col1 FROM tab1 cor0 ---- -1175 -1331 -497 query I rowsort SELECT - - 60 AS col1 FROM tab2 cor0 ---- 60 60 60 query I rowsort SELECT ALL - col1 * - col1 + - 90 AS col1 FROM tab1 AS cor0 ---- 10 586 79 query I rowsort SELECT DISTINCT + col1 + col0 * 20 AS col2 FROM tab1 AS cor0 ---- 1290 1613 86 query I rowsort SELECT 84 * col0 * col0 FROM tab2 ---- 4116 511056 524244 query I rowsort SELECT DISTINCT + tab2.col1 + 70 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 101 129 87 query I rowsort SELECT DISTINCT + - col0 + - col0 * ( - col0 ) AS col0 FROM tab2 AS cor0 ---- 42 6006 6162 query I rowsort SELECT 85 + col1 AS col0 FROM tab2 AS cor0 ---- 102 116 144 query I rowsort SELECT DISTINCT + 5 + + cor0.col1 * cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1539 651 842 query I rowsort SELECT ALL col2 * + 36 FROM tab2 cor0 ---- 1368 936 972 query I rowsort SELECT 82 - + col0 AS col0 FROM tab2 ---- 3 4 75 onlyif mysql # use DIV operator for integer division query I rowsort label-2413 SELECT ALL - col0 DIV - col1 AS col1 FROM tab2 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-2413 SELECT ALL - col0 / - col1 AS col1 FROM tab2 ---- 0 1 4 skipif mysql # not compatible query I rowsort SELECT DISTINCT - - col0 * - CAST ( col0 AS REAL ) + col0 FROM tab2 AS cor0 ---- -42 -6006 -6162 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * + 9 + col1 col1 FROM tab2 AS cor0 ---- 274 293 359 query I rowsort SELECT DISTINCT + - col0 + 38 * - col0 FROM tab1 AS cor0 ---- -117 -2496 -3120 onlyif mysql # use DIV operator for integer division query I rowsort label-2417 SELECT DISTINCT + + col0 DIV + 76 - col2 * + col2 FROM tab0 cor0 ---- -1 -1089 -6723 skipif mysql # not compatible query I rowsort label-2417 SELECT DISTINCT + + col0 / + 76 - col2 * + col2 FROM tab0 cor0 ---- -1 -1089 -6723 query I rowsort SELECT - col0 * + ( - col1 ) AS col2 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + 3 + + col0 FROM tab0 AS cor0 ---- 27 38 92 onlyif mysql # use DIV operator for integer division query I rowsort label-2420 SELECT + col1 DIV - col0 + - col2 AS col2 FROM tab2 AS cor0 ---- -26 -31 -38 skipif mysql # not compatible query I rowsort label-2420 SELECT + col1 / - col0 + - col2 AS col2 FROM tab2 AS cor0 ---- -26 -31 -38 query I rowsort SELECT DISTINCT + ( + col1 ) + + col0 AS col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT DISTINCT + col2 + 40 FROM tab2 ---- 66 67 78 query I rowsort SELECT 98 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to 6624b1f09c0594f5576803ac29f4499d query I rowsort SELECT ALL + col0 * col1 + + col1 AS col1 FROM tab1 ---- 104 1053 650 query I rowsort SELECT ALL + + 44 AS col1 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 0cc3e52e781e46962291c3060c6ae73b query I rowsort SELECT col0 * + col1 * tab0.col2 + col2 AS col0 FROM tab0 ---- 3396 664200 68145 query I rowsort SELECT - 14 + + col2 AS col0 FROM tab1 ---- 40 43 82 query I rowsort SELECT + - 88 + + col2 AS col0 FROM tab0 AS cor0 ---- -55 -6 -87 query I rowsort SELECT DISTINCT + cor0.col0 * + col2 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT 40 + + col0 * col1 AS col0 FROM tab0 AS cor0 ---- 2104 3435 8139 query I rowsort SELECT DISTINCT - col1 * col1 * col0 FROM tab2 cor0 ---- -22831 -271518 -6727 query I rowsort SELECT + + 14 + - col1 * col0 AS col2 FROM tab1 AS cor0 ---- -1026 -626 -64 query I rowsort SELECT + - cor0.col1 + col1 * col0 * cor0.col1 FROM tab0 AS cor0 ---- 177418 329218 736918 query I rowsort SELECT col0 + - col1 * - col1 AS col0 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT ALL - - col1 + - col2 + col0 FROM tab2 AS cor0 ---- 11 111 58 query I rowsort SELECT DISTINCT + 52 * 84 - col0 FROM tab0 AS cor0 ---- 4279 4333 4344 query I rowsort SELECT + 49 - - col0 * col1 AS col1 FROM tab2 AS cor0 ---- 1392 266 4651 query I rowsort SELECT DISTINCT - col1 * - col1 * + col0 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT col0 + - 94 * + tab0.col1 + - tab0.col0 AS col2 FROM tab0 ---- -8084 -8554 -9118 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + 94 ) + col0 col0 FROM tab0 ---- 118 129 183 query I rowsort SELECT + + col2 * 71 * - cor0.col2 - col1 AS col1 FROM tab2 cor0 ---- -102541 -48055 -51790 query I rowsort SELECT DISTINCT col0 * - col1 + - cor0.col0 * col1 AS col2 FROM tab2 AS cor0 ---- -2686 -434 -9204 query I rowsort SELECT col1 - + col1 AS col1 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT ( + col1 ) + + col0 - - cor0.col1 * + col1 FROM tab2 AS cor0 ---- 3618 385 999 query I rowsort SELECT 9 * cor0.col2 + - col1 AS col0 FROM tab1 AS cor0 ---- 460 503 851 query I rowsort SELECT - 81 * cor0.col1 AS col1 FROM tab2 AS cor0 ---- -1377 -2511 -4779 query I rowsort SELECT - col0 - - 3 * + col1 FROM tab0 ---- 184 234 256 query I rowsort SELECT 10 * + col1 + col2 + + col0 AS col0 FROM tab2 ---- 287 344 694 query I rowsort SELECT ALL 55 + col1 AS col0 FROM tab0 AS cor0 ---- 141 146 152 query I rowsort SELECT ALL 69 + cor0.col1 * cor0.col0 FROM tab0 AS cor0 ---- 2133 3464 8168 onlyif mysql # use DIV operator for integer division query I rowsort label-2451 SELECT ALL ( col1 ) DIV col1 + col0 + + col0 FROM tab0 ---- 179 49 71 skipif mysql # not compatible query I rowsort label-2451 SELECT ALL ( col1 ) / col1 + col0 + + col0 FROM tab0 ---- 179 49 71 onlyif mysql # use DIV operator for integer division query I rowsort label-2452 SELECT ( + tab0.col2 * - col0 ) + - col2 * col1 DIV col0 AS col0 FROM tab0 ---- -37 -7381 -910 skipif mysql # not compatible query I rowsort label-2452 SELECT ( + tab0.col2 * - col0 ) + - col2 * col1 / col0 AS col0 FROM tab0 ---- -37 -7381 -910 query I rowsort SELECT - 16 + 19 AS col1 FROM tab2 ---- 3 3 3 query I rowsort SELECT + 72 + - col0 FROM tab1 ---- -8 69 8 query I rowsort SELECT DISTINCT col2 * + col0 * col1 + col0 * col2 AS col1 FROM tab2 ---- 121680 54036 6048 query I rowsort SELECT DISTINCT ( + col0 ) + - col0 + - col2 AS col2 FROM tab1 ---- -54 -57 -96 query I rowsort SELECT DISTINCT - 78 + - col1 FROM tab2 ---- -109 -137 -95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2458 SELECT + CAST( ( + col2 ) + - col1 AS SIGNED ) FROM tab1 ---- 28 47 83 skipif mysql # not compatible query I rowsort label-2458 SELECT + CAST ( ( + col2 ) + - col1 AS INTEGER ) FROM tab1 ---- 28 47 83 query I rowsort SELECT 62 * - 86 FROM tab0 ---- -5332 -5332 -5332 query I rowsort SELECT DISTINCT col2 * - col2 FROM tab0 WHERE NOT NULL >= col2 ---- query I rowsort SELECT + col0 * + col0 + - tab2.col2 FROM tab2 ---- 22 6058 6203 query I rowsort SELECT col2 * col0 * + tab1.col0 - + col0 * - tab1.col0 AS col1 FROM tab1 ---- 237568 495 620800 query I rowsort SELECT col2 * + col2 * - col2 AS col0 FROM tab1 ---- -157464 -185193 -884736 query I rowsort SELECT - col2 * - col2 + col1 * col1 * col1 FROM tab0 ---- 637145 760295 912674 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) IN ( + col1 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + tab1.col0 NOT IN ( + col0 + - col2 ) ---- query I rowsort SELECT + col0 * + col1 + col2 AS col0 FROM tab2 AS cor0 ---- 1381 244 4628 query III rowsort SELECT * FROM tab1 WHERE col2 IN ( + tab1.col2 + col1 ) ---- query I rowsort SELECT - col2 * col0 + col1 * col2 * col0 AS col2 FROM tab0 ---- 3360 656820 67320 query I rowsort SELECT ALL - col1 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT + col2 * col2 * col0 FROM tab2 AS cor0 ---- 114076 5103 52728 query I rowsort SELECT - - col1 + - cor0.col2 * cor0.col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT - col1 AS col2 FROM tab1 WHERE NOT ( col1 + col1 * + col1 ) IN ( col1 ) ---- -10 -13 -26 query I rowsort SELECT - col2 FROM tab1 WHERE col2 > ( NULL ) ---- query I rowsort SELECT ALL col2 + col0 * - col2 AS col1 FROM tab0 ---- -34 -7216 -759 query I rowsort SELECT - col2 + - col0 * col1 AS col0 FROM tab1 cor0 ---- -1136 -132 -697 onlyif mysql # use DIV operator for integer division query I rowsort label-2477 SELECT ALL + col1 * - col2 + col1 DIV col0 FROM tab1 AS cor0 ---- -1248 -1396 -570 skipif mysql # not compatible query I rowsort label-2477 SELECT ALL + col1 * - col2 + col1 / col0 FROM tab1 AS cor0 ---- -1248 -1396 -570 query I rowsort SELECT ALL + cor0.col0 * - col0 * col0 + col1 FROM tab2 AS cor0 ---- -312 -474493 -493022 query I rowsort SELECT ALL cor0.col2 - + col1 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL - col2 + - col0 * + col1 * col0 FROM tab1 AS cor0 ---- -288 -41017 -83296 query I rowsort SELECT DISTINCT + cor0.col2 * - col0 + + col0 - + col1 FROM tab1 AS cor0 ---- -185 -3594 -7613 query I rowsort SELECT col1 * - col2 + - col0 * + col0 FROM tab2 AS cor0 ---- -6887 -7618 -886 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( - 14 ) + - col2 * 41 col1 FROM tab2 AS cor0 ---- -1052 -1093 -1544 query I rowsort SELECT DISTINCT - + col2 + 52 AS col0 FROM tab0 AS cor0 ---- -30 19 51 query I rowsort SELECT DISTINCT - ( col2 ) + + col0 AS col0 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT ALL - cor2.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab0 cor2 ---- 243 values hashing to 7f0405f8197238fbd342972ef0bcee12 query I rowsort SELECT ALL - + col0 + col1 * col1 FROM tab0 AS cor0 ---- 7372 8192 9374 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 cor2 ---- 3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c query I rowsort SELECT + 71 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2 query I rowsort SELECT DISTINCT + 7 + + col1 AS col1 FROM tab2 cor0 ---- 24 38 66 query I rowsort SELECT ALL 69 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 query I rowsort SELECT + - 48 AS col2 FROM tab0 cor0 ---- -48 -48 -48 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - ( - col2 * - col1 ) col1 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT + - col2 * + 31 AS col0 FROM tab1 AS cor0 ---- -1674 -1767 -2976 query I rowsort SELECT ALL 22 * + col2 FROM tab0 ---- 1804 22 726 query I rowsort SELECT + col1 * + col2 * ( col0 ) AS col1 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT 68 - col2 FROM tab2 ---- 30 41 42 query I rowsort SELECT DISTINCT + tab0.col0 - col2 * col0 * 54 AS col2 FROM tab0 ---- -1855 -394003 -42744 query I rowsort SELECT - 78 * - col2 AS col0 FROM tab1 ---- 4212 4446 7488 query I rowsort SELECT 15 * - col1 FROM tab1 ---- -150 -195 -390 query I rowsort SELECT ALL - 39 * 68 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 4c858381edeb44324643d822ca882551 query I rowsort SELECT ALL col2 + ( col0 ) * col2 - col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT - col0 * - 68 AS col2 FROM tab2 AS cor0 ---- 476 5304 5372 query I rowsort SELECT ALL - tab0.col2 + + col0 * 95 AS col1 FROM tab0 ---- 2247 3324 8373 query I rowsort SELECT DISTINCT col2 * - ( col1 ) + col2 * - col0 + - col2 AS col0 FROM tab0 ---- -133 -14842 -3663 query I rowsort SELECT col1 + - 77 * - col1 * + col2 FROM tab1 ---- 108134 43900 96109 query I rowsort SELECT 14 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 409c1790b702540dd9dc067c1965b7c0 query I rowsort SELECT ALL + cor1.col0 * - tab1.col2 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to fbfed5c6e3d5d050a7e16da7b07959a5 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab1 AS cor0, tab1 cor1, tab0, tab2 AS cor2 ---- 3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703 onlyif mysql # use DIV operator for integer division query I rowsort label-2510 SELECT ALL + - col0 DIV ( col0 * - col2 ) FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2510 SELECT ALL + - col0 / ( col0 * - col2 ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + ( + col0 ) * cor0.col0 AS col1 FROM tab2 cor0 ---- 49 6084 6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 80 col2 FROM tab2 AS cor0 ---- 80 onlyif mysql # use DIV operator for integer division query I rowsort label-2513 SELECT ALL + 77 DIV col0 FROM tab2 AS cor0 ---- 0 0 11 skipif mysql # not compatible query I rowsort label-2513 SELECT ALL + 77 / col0 FROM tab2 AS cor0 ---- 0 0 11 query I rowsort SELECT ALL - tab2.col2 + 67 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to cba4fac109972066583930fe134f9b3d query I rowsort SELECT DISTINCT 99 * - 34 AS col1 FROM tab1 AS cor0 ---- -3366 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2516 SELECT - + col0 * + ( - col2 * - col2 ) + + ( - cor0.col0 * + CAST( NULL AS SIGNED ) ) col0 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2516 SELECT - + col0 * + ( - col2 * - col2 ) + + ( - cor0.col0 * + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT - cor0.col0 + - 92 * col1 * 60 AS col1 FROM tab0 AS cor0 ---- -474744 -502409 -535475 query I rowsort SELECT - + ( - 32 ) + col2 FROM tab1 AS cor0 ---- 128 86 89 onlyif mysql # use DIV operator for integer division query I rowsort label-2519 SELECT 34 DIV 52 + - cor0.col1 AS col0 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-2519 SELECT 34 / 52 + - cor0.col1 AS col0 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT DISTINCT + + ( 22 ) FROM tab2 AS cor0 ---- 22 query I rowsort SELECT ALL + - 61 * - col2 + col0 FROM tab2 cor0 ---- 1654 1664 2397 query I rowsort SELECT DISTINCT - - 33 * - 62 * - col1 - col2 AS col1 FROM tab2 AS cor0 ---- 120688 34744 63399 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2523 SELECT - - CAST( cor0.col1 AS SIGNED ) * - col2 + 89 * col0 * - col2 AS col0 FROM tab2 AS cor0 ---- -17658 -182026 -267824 skipif mysql # not compatible query I rowsort label-2523 SELECT - - CAST ( cor0.col1 AS INTEGER ) * - col2 + 89 * col0 * - col2 AS col0 FROM tab2 AS cor0 ---- -17658 -182026 -267824 query I rowsort SELECT + col0 * 79 + col0 * - col0 AS col1 FROM tab1 AS cor0 ---- -80 228 960 query I rowsort SELECT DISTINCT + cor0.col1 * + col2 + - col0 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT DISTINCT + + 68 + col0 * - col0 * + col2 AS col0 FROM tab2 AS cor0 ---- -1255 -158116 -237090 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - col2 + 87 col1 FROM tab1 ---- 36 71 94 query I rowsort SELECT DISTINCT + - col1 + col0 * - col0 AS col2 FROM tab2 AS cor0 ---- -6143 -6258 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-2529 SELECT DISTINCT - col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-2529 SELECT DISTINCT - col1 / - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1 2 97 query I rowsort SELECT ALL - col0 * col0 + + ( + col0 ) * - col2 FROM tab1 cor0 ---- -14080 -171 -7744 query I rowsort SELECT DISTINCT - - col2 * col0 + - col2 * + ( col1 ) AS col0 FROM tab1 AS cor0 ---- -1242 3078 6432 query I rowsort SELECT ALL + 41 + + col2 FROM tab1 AS cor0 ---- 137 95 98 query I rowsort SELECT - + 73 AS col2 FROM tab0 AS cor0 ---- -73 -73 -73 query I rowsort SELECT ALL cor0.col1 + + col0 * + col2 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT DISTINCT col1 * ( col0 ) + col0 AS col0 FROM tab1 AS cor0 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * 7 col0 FROM tab0 AS cor0 ---- -168 -245 -623 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 col2 - 62 * col2 AS col0 FROM tab2 AS cor0 ---- -1586 -1647 -2318 query I rowsort SELECT - 26 * col2 + col0 FROM tab0 AS cor0 ---- -2043 -834 9 query I rowsort SELECT - - 62 * + col2 + - col1 FROM tab0 AS cor0 ---- -35 1960 4993 query I rowsort SELECT 26 * - col1 FROM tab2 AS cor0 ---- -1534 -442 -806 query I rowsort SELECT - col1 * cor0.col2 - ( col2 ) * + col0 AS col2 FROM tab2 AS cor0 ---- -1026 -3562 -3648 query I rowsort SELECT + col0 + cor0.col1 * + col1 FROM tab0 AS cor0 ---- 7420 8370 9444 query I rowsort SELECT ALL - cor0.col0 + cor0.col2 AS col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 48730a4f3ae72ef34da4083404b84d99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2545 SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 + col1 * - 30 AS col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-2545 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 + col1 * - 30 AS col0 FROM tab1 ---- NULL query I rowsort SELECT ALL + col2 + col2 * col1 FROM tab2 ---- 1560 684 864 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2547 SELECT DISTINCT + CAST( NULL AS SIGNED ) * + tab2.col0 + + col1 AS col2 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-2547 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + tab2.col0 + + col1 AS col2 FROM tab2 ---- NULL query I rowsort SELECT 10 * 94 + + tab0.col1 + - 74 AS col0 FROM tab0 ---- 952 957 963 query I rowsort SELECT col1 * - 54 + col0 * col1 * col2 FROM tab2 ---- 116466 4185 50116 query I rowsort SELECT - ( col2 ) * 70 FROM tab0 ---- -2310 -5740 -70 query I rowsort SELECT + 67 * tab1.col2 + ( - 56 ) * col2 FROM tab1 ---- 1056 594 627 query I rowsort SELECT ALL col1 * col1 * cor0.col2 FROM tab0 AS cor0 ---- 244068 679042 9409 query I rowsort SELECT ALL + col2 * col1 * - col2 + + 82 + col1 * ( col0 * + col0 ) FROM tab0 AS cor0 ---- -44036 109009 118810 query I rowsort SELECT DISTINCT + 76 * cor0.col1 FROM tab2 AS cor0 ---- 1292 2356 4484 query I rowsort SELECT ALL - cor0.col0 + col1 AS col2 FROM tab1 cor0 ---- -54 -67 23 query I rowsort SELECT + - ( col1 ) * col2 AS col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL + 76 * 69 FROM tab1, tab2 cor0 ---- 9 values hashing to 09bf3b176774b0469f8d427f4d475e3a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2558 SELECT - + cor0.col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2558 SELECT - + cor0.col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + ( col0 ) * col0 AS col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT ALL + + ( 85 ) * col2 AS col0 FROM tab2 cor0 ---- 2210 2295 3230 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 81 * + col1 col0 FROM tab2 AS cor0 ---- 1377 2511 4779 query I rowsort SELECT + cor0.col2 - + 86 FROM tab2 AS cor0 ---- -48 -59 -60 query I rowsort SELECT - 3 + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0 ---- -1537 -649 -840 onlyif mysql # use DIV operator for integer division query I rowsort label-2564 SELECT + + col2 - 64 DIV - col0 AS col1 FROM tab1 AS cor0 ---- 58 75 96 skipif mysql # not compatible query I rowsort label-2564 SELECT + + col2 - 64 / - col0 AS col1 FROM tab1 AS cor0 ---- 58 75 96 query I rowsort SELECT ALL + 69 * col1 FROM tab2 ---- 1173 2139 4071 query I rowsort SELECT + + ( col2 ) * + col1 AS col0 FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # use DIV operator for integer division query I rowsort label-2567 SELECT - 0 DIV + 83 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2567 SELECT - 0 / + 83 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2568 SELECT - CAST( - ( col0 ) AS SIGNED ) * col1 FROM tab1 AS cor0 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-2568 SELECT - CAST ( - ( col0 ) AS INTEGER ) * col1 FROM tab1 AS cor0 ---- 1040 640 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 98 col0 FROM tab0 AS cor0 ---- -98 -98 -98 query I rowsort SELECT - + cor0.col2 * col2 - cor0.col0 FROM tab1 AS cor0 ---- -2919 -3313 -9296 query I rowsort SELECT + col1 - + col0 * + ( 27 ) AS col2 FROM tab1 AS cor0 ---- -1718 -2147 -55 query I rowsort SELECT + cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT - 69 * - tab1.col2 * col1 AS col1 FROM tab1 ---- 39330 86112 96876 query I rowsort SELECT ALL 41 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to f6a440b478f0d00f8326a8c51fe094b8 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab0, tab2 cor2 ---- 3645 values hashing to 61c64d7c972af4105004f57e1913df08 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2576 SELECT + col2 * CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-2576 SELECT + col2 * CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort SELECT ALL - CAST ( 18 + - cor0.col2 AS REAL ) AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to fb85b93f89c19ceb3181e0a6a79a7f39 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2578 SELECT CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2578 SELECT CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ( - 96 ) * + col2 FROM tab1 AS cor0 ---- -5184 -5472 -9216 query I rowsort SELECT tab1.col2 - + 22 FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to 15d598cbc8c9956696a68861df89f1ce query I rowsort SELECT DISTINCT + col0 * ( col2 ) FROM tab2 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-2582 SELECT + + ( col2 ) * + col0 + - 15 DIV col2 FROM tab0 AS cor0 ---- 20 7298 792 skipif mysql # not compatible query I rowsort label-2582 SELECT + + ( col2 ) * + col0 + - 15 / col2 FROM tab0 AS cor0 ---- 20 7298 792 query I rowsort SELECT - 33 + - col0 * - ( 23 * - col1 ) + col2 AS col1 FROM tab0 ---- -186228 -47472 -78117 query I rowsort SELECT DISTINCT + - 38 * - 47 AS col2 FROM tab1, tab1 cor0 ---- 1786 onlyif mysql # use DIV operator for integer division query I rowsort label-2585 SELECT ALL + 2 DIV col2 FROM tab0 AS cor0 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-2585 SELECT ALL + 2 / col2 FROM tab0 AS cor0 ---- 0 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 * + col0 col2 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT - col2 + + ( col0 ) AS col2 FROM tab2 cor0 ---- -20 41 52 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2588 SELECT DISTINCT + - col1 * CAST( 13 AS SIGNED ) FROM tab0 AS cor0 ---- -1118 -1183 -1261 skipif mysql # not compatible query I rowsort label-2588 SELECT DISTINCT + - col1 * CAST ( 13 AS INTEGER ) FROM tab0 AS cor0 ---- -1118 -1183 -1261 query I rowsort SELECT ALL col1 + - 52 AS col0 FROM tab0 AS cor0 ---- 34 39 45 query I rowsort SELECT - col0 + 54 FROM tab1 cor0 ---- -10 -26 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2591 SELECT DISTINCT + col1 + + CAST( col2 * - col0 AS SIGNED ) + + ( + col0 ) FROM tab2 AS cor0 ---- -151 -1891 -2906 skipif mysql # not compatible query I rowsort label-2591 SELECT DISTINCT + col1 + + CAST ( col2 * - col0 AS INTEGER ) + + ( + col0 ) FROM tab2 AS cor0 ---- -151 -1891 -2906 query I rowsort SELECT ALL col0 + + 90 AS col2 FROM tab1 AS cor0 ---- 154 170 93 onlyif mysql # use DIV operator for integer division query I rowsort label-2593 SELECT col1 + 86 DIV + col0 AS col0 FROM tab0 AS cor0 ---- 89 91 99 skipif mysql # not compatible query I rowsort label-2593 SELECT col1 + 86 / + col0 AS col0 FROM tab0 AS cor0 ---- 89 91 99 onlyif mysql # use DIV operator for integer division query I rowsort label-2594 SELECT DISTINCT col0 + ( col2 ) DIV col2 AS col2 FROM tab0 cor0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-2594 SELECT DISTINCT col0 + ( col2 ) / col2 AS col2 FROM tab0 cor0 ---- 25 36 90 onlyif mysql # use DIV operator for integer division query I rowsort label-2595 SELECT col1 DIV col1 + col2 AS col1 FROM tab0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-2595 SELECT col1 / col1 + col2 AS col1 FROM tab0 ---- 2 34 83 query I rowsort SELECT - col2 + - col2 * - 51 AS col1 FROM tab0 ---- 1650 4100 50 query I rowsort SELECT ( + col1 ) * ( col2 ) AS col0 FROM tab2 ---- 1534 646 837 query I rowsort SELECT 14 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 409c1790b702540dd9dc067c1965b7c0 query I rowsort SELECT + + ( - 37 ) * + col2 * cor0.col0 FROM tab1 AS cor0 ---- -134976 -284160 -5994 query I rowsort SELECT + ( - 50 ) AS col2 FROM tab2 AS cor0 ---- -50 -50 -50 query I rowsort SELECT DISTINCT + + cor0.col1 * - col0 FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT - ( + ( col0 ) ) - 17 FROM tab2 AS cor0 ---- -24 -95 -96 query I rowsort SELECT ALL - 8 * col1 AS col1 FROM tab2 AS cor0 ---- -136 -248 -472 query I rowsort SELECT + col0 * col0 - + cor0.col0 FROM tab1 AS cor0 ---- 4032 6 6320 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 * + col2 + col0 col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT col2 + 97 * col1 FROM tab1 cor0 ---- 1027 1357 2576 onlyif mysql # use DIV operator for integer division query I rowsort label-2607 SELECT - col0 * - col2 + col0 * col2 DIV cor0.col0 AS col0 FROM tab2 AS cor0 ---- 2054 216 3040 skipif mysql # not compatible query I rowsort label-2607 SELECT - col0 * - col2 + col0 * col2 / cor0.col0 AS col0 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT ALL + 9 * + col2 FROM tab2 cor0 ---- 234 243 342 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( + 57 ) col0 FROM tab1 ---- 57 query I rowsort SELECT + cor0.col2 * - 26 - + cor0.col2 * + 28 FROM tab0 AS cor0 ---- -1782 -4428 -54 query I rowsort SELECT + col0 - col0 * col0 * + col0 AS col2 FROM tab2 AS cor0 ---- -336 -474474 -492960 query I rowsort SELECT + 75 + - col0 FROM tab2 AS cor0 ---- -3 -4 68 skipif mysql # not compatible query I rowsort SELECT - 29 * + col0 + - col2 * CAST ( + 34 AS REAL ) FROM tab0 cor0 ---- -1049 -1818 -5369 query I rowsort SELECT ALL 56 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 27 values hashing to b5ba4b44e3deadce1edb30e76df61200 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2615 SELECT ALL col1 + - col0 * + col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2615 SELECT ALL col1 + - col0 * + col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2616 SELECT CAST( - col1 AS SIGNED ) - - col2 AS col1 FROM tab1 ---- 28 47 83 skipif mysql # not compatible query I rowsort label-2616 SELECT CAST ( - col1 AS INTEGER ) - - col2 AS col1 FROM tab1 ---- 28 47 83 query I rowsort SELECT ALL col2 - col1 * - col1 AS col1 FROM tab1 ---- 157 265 730 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 57 col2 FROM tab2 cor0 ---- 57 query I rowsort SELECT + col0 * col1 - col1 * 87 * + col1 AS col0 FROM tab0 AS cor0 ---- -641388 -712348 -815188 query I rowsort SELECT - - col1 + col1 + col2 * 80 FROM tab2 AS cor0 ---- 2198 2222 3074 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col1 * col2 col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT - ( 5 ) AS col1 FROM tab2 ---- -5 -5 -5 onlyif mysql # use DIV operator for integer division query I rowsort label-2623 SELECT col1 * + tab1.col2 + col2 + - tab1.col1 DIV - col2 FROM tab1 ---- 1344 1458 627 skipif mysql # not compatible query I rowsort label-2623 SELECT col1 * + tab1.col2 + col2 + - tab1.col1 / - col2 FROM tab1 ---- 1344 1458 627 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2624 SELECT - CAST( NULL AS SIGNED ) + - col1 + col2 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2624 SELECT - CAST ( NULL AS INTEGER ) + - col1 + col2 AS col2 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2625 SELECT col0 DIV + col0 + col2 FROM tab0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-2625 SELECT col0 / + col0 + col2 FROM tab0 ---- 2 34 83 query I rowsort SELECT + 33 + - col2 * col2 * + col2 + col1 * - 53 FROM tab2 ---- -20670 -21293 -55740 query I rowsort SELECT ALL + + col2 * - cor0.col2 - col1 AS col0 FROM tab2 AS cor0 ---- -1461 -735 -760 query I rowsort SELECT ALL - + col2 * + col1 * + cor0.col1 + col0 AS col2 FROM tab0 AS cor0 ---- -244044 -678953 -9374 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * col0 + - col0 col0 FROM tab0 cor0 ---- 1190 552 7832 query I rowsort SELECT ALL + col0 - col2 AS col2 FROM tab2 cor0 ---- -20 41 52 query I rowsort SELECT DISTINCT ( col1 ) * - col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT + col0 - + col2 * col0 FROM tab1 cor0 ---- -159 -3584 -7600 query I rowsort SELECT ALL + + col2 + col0 + - col1 * col1 FROM tab0 AS cor0 ---- -7339 -8110 -9373 query I rowsort SELECT - ( col2 ) * cor0.col2 AS col1 FROM tab1 AS cor0 ---- -2916 -3249 -9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 27 col1 FROM tab2 cor0 ---- 27 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col0 * - col1 + CAST ( col1 + + col1 AS REAL ) AS col2 FROM tab2 AS cor0 ---- 1377 279 4720 query I rowsort SELECT + ( - col0 ) + ( + cor0.col1 ) FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT - - col0 * + cor0.col0 + col2 FROM tab1 AS cor0 ---- 4153 63 6496 onlyif mysql # use DIV operator for integer division query I rowsort label-2639 SELECT ALL + cor0.col0 + - col1 * 27 DIV - col0 AS col2 FROM tab0 AS cor0 ---- 109 116 120 skipif mysql # not compatible query I rowsort label-2639 SELECT ALL + cor0.col0 + - col1 * 27 / - col0 AS col2 FROM tab0 AS cor0 ---- 109 116 120 query I rowsort SELECT DISTINCT + + col1 + col0 + + col0 AS col1 FROM tab1 AS cor0 ---- 138 173 32 query I rowsort SELECT - cor0.col0 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 2 62 62 onlyif mysql # use DIV operator for integer division query I rowsort label-2642 SELECT cor0.col0 + col0 DIV col2 FROM tab0 AS cor0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-2642 SELECT cor0.col0 + col0 / col2 FROM tab0 AS cor0 ---- 24 70 90 query I rowsort SELECT - col0 + col0 * + 42 AS col2 FROM tab1 ---- 123 2624 3280 query I rowsort SELECT + - col0 * ( + ( col2 ) ) * - col2 FROM tab1 cor0 ---- 207936 737280 8748 query I rowsort SELECT - - cor0.col0 + - ( col2 ) FROM tab0 AS cor0 ---- -9 34 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 83 + + col0 col2 FROM tab1 AS cor0 ---- 147 163 86 query I rowsort SELECT ALL - 83 * - col0 * + col2 AS col1 FROM tab2 AS cor0 ---- 15687 168324 249166 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 41 col0 FROM tab2 AS cor0 ---- 41 query I rowsort SELECT DISTINCT - col0 + col2 * col0 FROM tab1 cor0 ---- 159 3584 7600 query I rowsort SELECT ALL 15 * ( + col1 ) FROM tab1 AS cor0 ---- 150 195 390 query I rowsort SELECT - cor0.col1 + - 64 AS col2 FROM tab2 AS cor0 ---- -123 -81 -95 query I rowsort SELECT DISTINCT + col2 + col1 - 12 FROM tab0 AS cor0 ---- 107 161 86 query I rowsort SELECT - cor0.col2 - - col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT DISTINCT col1 * ( + col1 ) * col2 + col1 FROM tab2 AS cor0 ---- 10999 25978 90565 skipif mysql # not compatible query I rowsort SELECT DISTINCT col0 * CAST ( - ( col2 ) AS REAL ) AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-2657 SELECT ALL + - col1 * - col1 + 38 * col1 DIV - 40 FROM tab0 AS cor0 ---- 7315 8195 9317 skipif mysql # not compatible query I rowsort label-2657 SELECT ALL + - col1 * - col1 + 38 * col1 / - 40 FROM tab0 AS cor0 ---- 7315 8195 9317 query I rowsort SELECT ALL + col2 + + 31 * col2 FROM tab2 AS cor0 ---- 1216 832 864 query I rowsort SELECT col1 * + col2 + 54 AS col0 FROM tab2 ---- 1588 700 891 query I rowsort SELECT ALL col0 + ( - col0 + - col2 ) * + col2 AS col2 FROM tab0 ---- -1 -13933 -1857 query I rowsort SELECT DISTINCT + 95 * col0 FROM tab1 ---- 285 6080 7600 query I rowsort SELECT DISTINCT + 78 + col0 FROM tab1 AS cor0 ---- 142 158 81 query IIIIIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab2 cor1, tab0 cor2, tab2 cor3 ---- 13122 values hashing to bd6b263bd946b853e71bf3528edc912f query I rowsort SELECT DISTINCT 1 + - cor0.col1 FROM tab0, tab1 AS cor0 ---- -12 -25 -9 query I rowsort SELECT col0 * - tab0.col0 + + tab0.col2 FROM tab0 ---- -1224 -543 -7839 query I rowsort SELECT DISTINCT - tab1.col1 AS col2 FROM tab1, tab0, tab0 cor0 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 * cor0.col2 col0 FROM tab2 AS cor0 ---- 1444 676 729 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 24 col0 FROM tab0 AS cor0 ---- 24 24 24 query I rowsort SELECT DISTINCT + + col2 * + cor0.col1 + col0 + col0 FROM tab2 AS cor0 ---- 1690 804 851 query I rowsort SELECT + 45 * col2 AS col0 FROM tab2 AS cor0 ---- 1170 1215 1710 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 * col2 + col1 + col2 col0 FROM tab0 AS cor0 ---- -2719 -7289 1 query I rowsort SELECT - 9 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to caf28657beb43049740febe1fa9ded5a query I rowsort SELECT ALL col1 * 34 AS col0 FROM tab2 ---- 1054 2006 578 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * 32 col0 FROM tab1 AS cor0 ---- -320 -416 -832 query I rowsort SELECT DISTINCT - 88 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2 ---- -88 query I rowsort SELECT ALL + ( ( + tab1.col1 ) * - ( - col2 ) ) FROM tab1 ---- 1248 1404 570 query I rowsort SELECT + 22 + + ( col0 ) AS col0 FROM tab0 cor0 ---- 111 46 57 query I rowsort SELECT col1 * 12 FROM tab1 ---- 120 156 312 query I rowsort SELECT - col1 * col1 + - col1 FROM tab1 AS cor0 ---- -110 -182 -702 query I rowsort SELECT DISTINCT 7 + + col0 * col1 AS col1 FROM tab0 AS cor0 ---- 2071 3402 8106 query I rowsort SELECT + ( + col2 ) + - col1 * cor0.col1 AS col1 FROM tab1 AS cor0 ---- -43 -622 -73 query I rowsort SELECT DISTINCT + - col1 * + cor0.col2 * col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT - 33 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- -1023 -1947 -561 query I rowsort SELECT - col1 + col2 * + col2 AS col2 FROM tab1 AS cor0 ---- 2890 3239 9203 query I rowsort SELECT - + ( cor0.col2 ) * col0 * col0 FROM tab1 cor0 ---- -233472 -486 -614400 query I rowsort SELECT 41 * - cor0.col0 FROM tab1 AS cor0 ---- -123 -2624 -3280 onlyif mysql # use DIV operator for integer division query I rowsort label-2687 SELECT ALL 78 DIV - tab0.col2 FROM tab0 ---- -2 -78 0 skipif mysql # not compatible query I rowsort label-2687 SELECT ALL 78 / - tab0.col2 FROM tab0 ---- -2 -78 0 query I rowsort SELECT ALL - 96 * col2 AS col0 FROM tab1 ---- -5184 -5472 -9216 query I rowsort SELECT - col0 * col1 + + col0 FROM tab2 ---- -1264 -210 -4524 onlyif mysql # use DIV operator for integer division query I rowsort label-2690 SELECT col0 DIV col0 + + col0 * col2 FROM tab0 ---- 36 7299 793 skipif mysql # not compatible query I rowsort label-2690 SELECT col0 / col0 + + col0 * col2 FROM tab0 ---- 36 7299 793 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab2.col0 * - col2 + col1 * - col0 + col0 col2 FROM tab2 ---- -399 -4266 -6552 onlyif mysql # use DIV operator for integer division query I rowsort label-2692 SELECT DISTINCT + col0 DIV tab0.col0 FROM tab0 ---- 1 skipif mysql # not compatible query I rowsort label-2692 SELECT DISTINCT + col0 / tab0.col0 FROM tab0 ---- 1 query I rowsort SELECT ALL col2 AS col0 FROM tab1 WHERE NOT col0 + col1 > NULL ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col2 + col1 ) AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-2695 SELECT - col1 DIV + col1 + - tab0.col0 AS col0 FROM tab0 ---- -25 -36 -90 skipif mysql # not compatible query I rowsort label-2695 SELECT - col1 / + col1 + - tab0.col0 AS col0 FROM tab0 ---- -25 -36 -90 query I rowsort SELECT ALL col2 + col0 + tab2.col1 AS col1 FROM tab2 ---- 134 163 65 query I rowsort SELECT tab2.col2 * - col0 * col2 AS col1 FROM tab2 ---- -114076 -5103 -52728 onlyif mysql # use DIV operator for integer division query I rowsort label-2698 SELECT DISTINCT + col0 DIV col0 + col0 * col0 + col0 AS col1 FROM tab1 ---- 13 4161 6481 skipif mysql # not compatible query I rowsort label-2698 SELECT DISTINCT + col0 / col0 + col0 * col0 + col0 AS col1 FROM tab1 ---- 13 4161 6481 query I rowsort SELECT - col1 * tab1.col0 + col0 FROM tab1 ---- -576 -75 -960 query I rowsort SELECT ALL + ( + col0 ) * - 67 + col1 * + col1 AS col0 FROM tab1 AS cor0 ---- -4188 -5191 475 query I rowsort SELECT DISTINCT + 74 + + col0 AS col2 FROM tab0 AS cor0 ---- 109 163 98 query I rowsort SELECT col1 + col0 + - col1 AS col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT - col0 AS col2 FROM tab1 WHERE col2 * tab1.col1 >= NULL ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col0 * col2 + col0 col0 FROM tab1 ---- 111 3655 7664 query I rowsort SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND ( NULL ) ---- query I rowsort SELECT cor0.col0 * col1 FROM tab2 AS cor0 WHERE NOT NULL <= ( - col1 * col0 ) ---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) <= NULL ---- query III rowsort SELECT * FROM tab0 WHERE NOT + col0 NOT IN ( - col2 ) ---- query I rowsort SELECT + col0 FROM tab0 WHERE col1 * col1 <> NULL ---- query I rowsort SELECT DISTINCT col1 * - col2 - col0 * col0 FROM tab1 ---- -1413 -4666 -7648 query I rowsort SELECT ALL + col1 + + col1 * tab0.col2 AS col0 FROM tab0 ---- 194 2924 7553 query III rowsort SELECT * FROM tab0 WHERE NOT ( NULL ) = + col2 + - col1 ---- query I rowsort SELECT ALL + col1 * - col1 - col2 * col1 FROM tab2 ---- -1798 -5015 -935 query I rowsort SELECT DISTINCT + tab0.col2 + col2 AS col1 FROM tab0 ---- 164 2 66 query I rowsort SELECT DISTINCT - col0 + + ( - col2 ) FROM tab1 AS cor0 ---- -121 -176 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2716 SELECT ALL - ( 11 ) + col2 * CAST( + col2 * - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- -157475 -185204 -884747 skipif mysql # not compatible query I rowsort label-2716 SELECT ALL - ( 11 ) + col2 * CAST ( + col2 * - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- -157475 -185204 -884747 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2717 SELECT - CAST( 75 AS SIGNED ) FROM tab2 AS cor0 ---- -75 -75 -75 skipif mysql # not compatible query I rowsort label-2717 SELECT - CAST ( 75 AS INTEGER ) FROM tab2 AS cor0 ---- -75 -75 -75 query I rowsort SELECT ALL + col1 + col2 * - col1 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT ALL + - 16 * - col1 - + col0 * + col2 AS col0 FROM tab2 AS cor0 ---- -1084 -2730 307 query I rowsort SELECT 22 FROM tab0, tab0 cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to c6f049334398e3533dd6996714479a2f query IIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab2 AS cor0, tab0 cor1, tab0 cor2 ---- 972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 + + col0 * col0 col0 FROM tab2 AS cor0 ---- 18 6025 6224 query I rowsort SELECT DISTINCT + ( + col0 ) * + tab0.col0 FROM tab0 ---- 1225 576 7921 query I rowsort SELECT col2 + 44 AS col0 FROM tab0 ---- 126 45 77 query I rowsort SELECT + col2 + - ( tab1.col0 ) AS col2 FROM tab1 ---- -7 16 51 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2726 SELECT CAST( col0 AS SIGNED ) * col1 + col2 col1 FROM tab1 ---- 1136 132 697 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2726 SELECT CAST ( col0 AS INTEGER ) * col1 + col2 col1 FROM tab1 ---- 1136 132 697 query I rowsort SELECT - 1 + - 98 FROM tab0 ---- -99 -99 -99 onlyif mysql # use DIV operator for integer division query I rowsort label-2728 SELECT DISTINCT + tab2.col2 DIV - col1 col0 FROM tab2 ---- -2 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2728 SELECT DISTINCT + tab2.col2 / - col1 col0 FROM tab2 ---- -2 0 query I rowsort SELECT DISTINCT - col1 + ( col2 ) * + col1 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT + col0 * - col2 - ( - col2 ) FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT tab0.col2 - tab0.col2 AS col0 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2732 SELECT - col1 DIV + cor0.col1 + + col2 AS col0 FROM tab0 AS cor0 ---- 0 32 81 skipif mysql # not compatible query I rowsort label-2732 SELECT - col1 / + cor0.col1 + + col2 AS col0 FROM tab0 AS cor0 ---- 0 32 81 query I rowsort SELECT DISTINCT - col1 * col1 + + col1 - col2 * - 57 * col2 AS col0 FROM tab0 AS cor0 ---- -9255 375078 54763 skipif mysql # not compatible query I rowsort SELECT DISTINCT - + cor0.col1 * CAST ( 75 AS REAL ) - cor0.col1 FROM tab2 AS cor0 ---- -1292 -2356 -4484 query I rowsort SELECT DISTINCT + col2 + 38 AS col2 FROM tab0 AS cor0 ---- 120 39 71 query I rowsort SELECT ALL - col0 + + col1 * - 92 AS col0 FROM tab1 AS cor0 ---- -1276 -2395 -984 query I rowsort SELECT col2 * + col1 * col2 + cor0.col0 FROM tab0 AS cor0 ---- 132 611973 93678 query I rowsort SELECT ( col2 ) + + tab0.col0 FROM tab0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-2739 SELECT + col2 + tab0.col2 * 26 DIV col2 FROM tab0 ---- 108 27 59 skipif mysql # not compatible query I rowsort label-2739 SELECT + col2 + tab0.col2 * 26 / col2 FROM tab0 ---- 108 27 59 query I rowsort SELECT DISTINCT + ( 7 ) AS col0 FROM tab1, tab1 AS cor0 ---- 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * - col2 + + col1 col2 FROM tab0 AS cor0 ---- 194 2924 7553 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - cor0.col1 col0 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT + 32 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to d30a2acbf33c88274474306936d3227b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 * 40 col1 FROM tab1 AS cor0 ---- -1040 -400 -520 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2745 SELECT DISTINCT - col1 * - CAST( - 55 + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -1892 -5238 2457 skipif mysql # not compatible query I rowsort label-2745 SELECT DISTINCT - col1 * - CAST ( - 55 + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -1892 -5238 2457 query I rowsort SELECT ALL - ( - col2 ) * col1 * + col1 AS col0 FROM tab0 ---- 244068 679042 9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2747 SELECT CAST( col2 + + col0 AS SIGNED ) FROM tab1 ---- 121 176 57 skipif mysql # not compatible query I rowsort label-2747 SELECT CAST ( col2 + + col0 AS INTEGER ) FROM tab1 ---- 121 176 57 query I rowsort SELECT - ( tab2.col2 * col0 ) FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT ALL + 3 * 38 AS col0 FROM tab0 AS cor0 ---- 114 114 114 query I rowsort SELECT ALL + 47 FROM tab2, tab1 cor0 ---- 9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7 query I rowsort SELECT ALL 0 * 75 AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT 40 + col1 AS col2 FROM tab0 AS cor0 ---- 126 131 137 query I rowsort SELECT + + col0 + cor0.col1 * col2 AS col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL - ( col0 ) * col2 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * cor0.col1 col2 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-2756 SELECT ( + col0 ) + - col0 DIV + tab2.col0 col1 FROM tab2 ---- 6 77 78 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2756 SELECT ( + col0 ) + - col0 / + tab2.col0 col1 FROM tab2 ---- 6 77 78 query I rowsort SELECT ALL tab0.col0 * + ( col0 ) * + col1 FROM tab0 ---- 118825 49536 720811 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2758 SELECT ALL + CAST( NULL AS SIGNED ) * col1 * - col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2758 SELECT ALL + CAST ( NULL AS INTEGER ) * col1 * - col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ( col2 ) + tab2.col0 FROM tab2 ---- 104 117 34 query I rowsort SELECT + - col2 + col0 * + col1 AS col0 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT ALL col1 * - ( col1 ) FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT ALL - col2 * + col1 + col2 AS col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT DISTINCT col2 * 87 AS col2 FROM tab0 cor0 ---- 2871 7134 87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 + col0 col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT - col1 * ( 69 ) AS col2 FROM tab0 cor0 ---- -5934 -6279 -6693 onlyif mysql # use DIV operator for integer division query I rowsort label-2766 SELECT DISTINCT col1 DIV col1 + - col2 * - cor0.col1 FROM tab1 AS cor0 ---- 1249 1405 571 skipif mysql # not compatible query I rowsort label-2766 SELECT DISTINCT col1 / col1 + - col2 * - cor0.col1 FROM tab1 AS cor0 ---- 1249 1405 571 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2767 SELECT DISTINCT - + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-2767 SELECT DISTINCT - + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2768 SELECT col1 DIV - 90 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2768 SELECT col1 / - 90 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + col1 * col0 + + cor0.col2 * + col2 FROM tab0 AS cor0 ---- 14823 3153 3396 query I rowsort SELECT col0 + + tab2.col1 * + ( + col1 ) + col1 FROM tab2 ---- 3618 385 999 onlyif mysql # use DIV operator for integer division query I rowsort label-2771 SELECT - 75 * col1 DIV CAST( + ( col1 ) AS SIGNED ) + col2 FROM tab1 ---- -18 -21 21 skipif mysql # not compatible query I rowsort label-2771 SELECT - 75 * col1 / CAST ( + ( col1 ) AS INTEGER ) + col2 FROM tab1 ---- -18 -21 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + ( col0 ) col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT + col0 * col2 + - col2 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT - col1 * col1 + + cor0.col2 * col0 FROM tab1 AS cor0 ---- -514 3548 7511 query I rowsort SELECT ALL - cor0.col2 * - col0 * - col2 AS col1 FROM tab0 cor0 ---- -26136 -35 -598436 query I rowsort SELECT DISTINCT col1 + - col0 - col2 FROM tab1 AS cor0 ---- -111 -163 -31 query I rowsort SELECT - - col0 * + col1 * + col2 + col2 AS col0 FROM tab0 AS cor0 ---- 3396 664200 68145 query I rowsort SELECT ALL + - col1 * + cor0.col1 + - col0 FROM tab2 AS cor0 ---- -3559 -368 -968 query I rowsort SELECT - cor0.col0 * col1 + - col1 AS col1 FROM tab1 AS cor0 ---- -104 -1053 -650 query I rowsort SELECT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT ALL col0 - col0 * - col1 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT + cor1.col1 - cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 023677f2362ebf8bd60cb629f4090df4 query I rowsort SELECT DISTINCT + col1 - - col1 * tab1.col1 * + col2 AS col1 FROM tab1 ---- 16237 36530 5710 onlyif mysql # use DIV operator for integer division query I rowsort label-2784 SELECT col0 - col0 DIV col0 AS col0 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-2784 SELECT col0 - col0 / col0 AS col0 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT + + col0 - + col0 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - col0 + + col2 - col1 FROM tab0 AS cor0 ---- -131 -77 -98 query I rowsort SELECT ALL - + col1 + ( 33 ) - + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -104 -5 -63 query I rowsort SELECT col1 + tab2.col0 AS col2 FROM tab2 ---- 137 38 96 query I rowsort SELECT + + 78 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 onlyif mysql # use DIV operator for integer division query I rowsort label-2790 SELECT DISTINCT col0 * - 3 - col2 DIV col0 AS col0 FROM tab1 ---- -192 -241 -27 skipif mysql # not compatible query I rowsort label-2790 SELECT DISTINCT col0 * - 3 - col2 / col0 AS col0 FROM tab1 ---- -192 -241 -27 onlyif mysql # use DIV operator for integer division query I rowsort label-2791 SELECT DISTINCT col2 + 57 DIV + col2 AS col0 FROM tab1 ---- 55 58 96 skipif mysql # not compatible query I rowsort label-2791 SELECT DISTINCT col2 + 57 / + col2 AS col0 FROM tab1 ---- 55 58 96 query I rowsort SELECT 6 FROM tab2, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04 onlyif mysql # use DIV operator for integer division query I rowsort label-2793 SELECT DISTINCT tab1.col2 - ( ( + col1 ) + col0 ) DIV + col1 FROM tab1 ---- 50 53 89 skipif mysql # not compatible query I rowsort label-2793 SELECT DISTINCT tab1.col2 - ( ( + col1 ) + col0 ) / + col1 FROM tab1 ---- 50 53 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 - 37 col0 FROM tab2 ---- -20 -6 22 query I rowsort SELECT DISTINCT + - col1 + col0 * + col1 * col1 FROM tab0 AS cor0 ---- 177418 329218 736918 query I rowsort SELECT DISTINCT + cor0.col1 + - 48 AS col2 FROM tab1 cor0 ---- -22 -35 -38 query I rowsort SELECT DISTINCT cor0.col1 * - col0 * + 45 AS col1 FROM tab2 AS cor0 ---- -207090 -60435 -9765 query I rowsort SELECT DISTINCT - col2 + + 40 + col0 AS col0 FROM tab0 AS cor0 ---- 31 47 74 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2799 SELECT col1 + - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2799 SELECT col1 + - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 - cor0.col0 col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT + 87 * - col0 - - col0 FROM tab2 ---- -602 -6708 -6794 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 49 col2 FROM tab2, tab0, tab1 AS cor0 ---- 49 query I rowsort SELECT DISTINCT ( col0 ) * + col0 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT col2 + + col0 * + col0 AS col1 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT - 15 + + col1 AS col1 FROM tab0 AS cor0 ---- 71 76 82 query I rowsort SELECT DISTINCT - 32 FROM tab0, tab0 AS cor0, tab1 cor1 ---- -32 query I rowsort SELECT + ( - col1 ) * ( 38 ) FROM tab0 AS cor0 ---- -3268 -3458 -3686 query I rowsort SELECT DISTINCT 57 - + col0 FROM tab2 AS cor0 ---- -21 -22 50 query I rowsort SELECT ALL - col0 + - cor0.col0 + + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1378 488 823 query I rowsort SELECT + 4 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 6fec965b60b9885c4af73e85422cfd9b query I rowsort SELECT DISTINCT + 73 * + col0 FROM tab0 cor0 ---- 1752 2555 6497 onlyif mysql # use DIV operator for integer division query I rowsort label-2812 SELECT ALL 89 DIV - col1 AS col1 FROM tab1 ---- -3 -6 -8 skipif mysql # not compatible query I rowsort label-2812 SELECT ALL 89 / - col1 AS col1 FROM tab1 ---- -3 -6 -8 query I rowsort SELECT - col0 + cor0.col1 * col0 FROM tab0 cor0 ---- 2040 3360 8010 onlyif mysql # use DIV operator for integer division query I rowsort label-2814 SELECT ALL + 70 DIV col0 AS col1 FROM tab2 ---- 0 0 10 skipif mysql # not compatible query I rowsort label-2814 SELECT ALL + 70 / col0 AS col1 FROM tab2 ---- 0 0 10 query I rowsort SELECT + 22 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 7dda382e7c08428abac8600fd696eb3e query I rowsort SELECT ( col1 ) + - col1 * + col1 AS col2 FROM tab0 AS cor0 ---- -7310 -8190 -9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + cor0.col1 * cor0.col1 col1 FROM tab1 AS cor0 ---- -100 -169 -676 onlyif mysql # use DIV operator for integer division query I rowsort label-2818 SELECT - col0 DIV - cor0.col0 AS col1 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-2818 SELECT - col0 / - cor0.col0 AS col1 FROM tab1 AS cor0 ---- 1 1 1 query IIIIII rowsort SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL ---- query I rowsort SELECT + + col1 * 92 FROM tab1 AS cor0 ---- 1196 2392 920 query I rowsort SELECT ALL col2 + - 34 FROM tab1 AS cor0 ---- 20 23 62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2822 SELECT cor0.col0 * CAST( NULL AS SIGNED ) * ( col2 ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2822 SELECT cor0.col0 * CAST ( NULL AS INTEGER ) * ( col2 ) AS col1 FROM tab2 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2823 SELECT ALL + col2 DIV ( - col0 * + col1 ) AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2823 SELECT ALL + col2 / ( - col0 * + col1 ) AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - + col0 + col0 * + cor0.col2 FROM tab2 cor0 ---- 182 1950 2923 query I rowsort SELECT - + col0 + - 61 AS col2 FROM tab2 AS cor0 ---- -139 -140 -68 query I rowsort SELECT DISTINCT ( - col0 ) * - col0 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT ALL ( col1 ) - + col0 AS col2 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT + ( col0 ) * col2 - col2 AS col0 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT ALL - col2 + - 7 AS col1 FROM tab0 AS cor0 ---- -40 -8 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 99 + 14 * - col0 col2 FROM tab2 AS cor0 ---- -1191 -1205 -197 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2831 SELECT ALL - - CAST( NULL AS SIGNED ) * col2 + - col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2831 SELECT ALL - - CAST ( NULL AS INTEGER ) * col2 + - col0 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - ( cor0.col2 ) FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT ALL + 95 + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 119 130 184 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * cor0.col1 * cor0.col1 + col1 col1 FROM tab1 AS cor0 ---- -17550 -2184 -990 query I rowsort SELECT ALL - col0 + + 69 AS col0 FROM tab0 AS cor0 ---- -20 34 45 query I rowsort SELECT - 25 * - col2 + + col0 FROM tab2 AS cor0 ---- 1029 682 728 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * 47 col1 FROM tab0 AS cor0 ---- 1128 1645 4183 query I rowsort SELECT ALL - 13 * - col1 FROM tab0 AS cor0 ---- 1118 1183 1261 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * col0 + cor0.col1 col2 FROM tab0 cor0 ---- 132 7389 878 query I rowsort SELECT DISTINCT cor0.col0 * cor0.col2 - col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT 66 * col1 + cor0.col1 FROM tab0 AS cor0 ---- 5762 6097 6499 query I rowsort SELECT ALL - col1 + - 8 FROM tab1 AS cor0 ---- -18 -21 -34 query I rowsort SELECT + 80 - col0 * - col2 FROM tab0 AS cor0 ---- 115 7378 872 query I rowsort SELECT - 66 + - ( col0 ) FROM tab0 AS cor0 ---- -101 -155 -90 query I rowsort SELECT ALL 31 + - ( + col0 + col0 ) * + col0 FROM tab1 AS cor0 ---- -12769 -8161 13 query I rowsort SELECT ALL col0 + - 18 FROM tab0 ---- 17 6 71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 29 col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 onlyif mysql # use DIV operator for integer division query I rowsort label-2848 SELECT + - col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-2848 SELECT + - col1 / cor0.col1 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab1.col2 + - 27 col0 FROM tab1 ---- 27 30 69 query I rowsort SELECT ( 60 ) FROM tab2, tab1 AS cor0 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT + ( - col2 ) * cor0.col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT - - 5 * 28 AS col2 FROM tab2 AS cor0 ---- 140 140 140 query I rowsort SELECT ALL - tab2.col1 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5 query I rowsort SELECT - cor0.col0 + 26 FROM tab2, tab2 AS cor0 ---- 9 values hashing to dcbb3a1b6ccec84b658d7ee62b3616f4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + - ( 97 ) col2 FROM tab2 AS cor0 ---- -59 -70 -71 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2856 SELECT ALL - col2 / - CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2856 SELECT ALL - col2 / - CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 78 + ( tab2.col2 ) col1 FROM tab2, tab0 AS cor0 ---- 104 105 116 query I rowsort SELECT DISTINCT col0 * 16 FROM tab2 AS cor0 ---- 112 1248 1264 query I rowsort SELECT + ( col1 * + col0 ) FROM tab2 ---- 1343 217 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col1 ) * col0 col2 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT + + 34 * cor0.col1 AS col1 FROM tab2 cor0 ---- 1054 2006 578 query I rowsort SELECT - 95 * - col2 * - col2 AS col1 FROM tab2 AS cor0 ---- -137180 -64220 -69255 query I rowsort SELECT 83 * col2 * - col1 AS col2 FROM tab1 ---- -103584 -116532 -47310 query I rowsort SELECT + 23 * - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 89fc03b78564c5284a06c13e7d25f5a1 query I rowsort SELECT ALL ( + col0 ) * - 67 + - tab2.col0 FROM tab2 ---- -476 -5304 -5372 query I rowsort SELECT ALL ( cor0.col2 ) AS col1 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-2867 SELECT DISTINCT - col1 DIV - col2 FROM tab1 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-2867 SELECT DISTINCT - col1 / - col2 FROM tab1 cor0 ---- 0 query I rowsort SELECT + 59 + - col0 + 3 FROM tab1 AS cor0 ---- -18 -2 59 query I rowsort SELECT 50 + - col2 AS col1 FROM tab2 AS cor0 ---- 12 23 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 col2 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT + col0 * + col1 + - col1 AS col0 FROM tab1 cor0 ---- 1027 52 630 onlyif mysql # use DIV operator for integer division query I rowsort label-2872 SELECT ALL col2 DIV cor0.col1 + - col2 DIV + col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2872 SELECT ALL col2 / cor0.col1 + - col2 / + col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - - cor0.col0 + cor0.col2 * col0 + col0 AS col2 FROM tab2 AS cor0 ---- 203 2184 3160 query I rowsort SELECT + - 40 + col0 * + ( + col0 ) * col2 - + col0 FROM tab1 AS cor0 ---- 233368 443 614280 query I rowsort SELECT ALL + cor0.col1 + + col2 AS col0 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT + + col0 * 66 FROM tab2 AS cor0 ---- 462 5148 5214 query I rowsort SELECT ALL 76 + col2 * - tab2.col2 * + col1 FROM tab2 ---- -22523 -24472 -39808 query I rowsort SELECT col2 * + ( col2 ) + + col2 * ( + col0 * col2 ) AS col2 FROM tab2 AS cor0 ---- 115520 53404 5832 query I rowsort SELECT - col0 * ( cor0.col2 ) - - col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT ALL col1 + + col0 - - 90 AS col2 FROM tab0 ---- 200 222 270 query I rowsort SELECT - col2 * - 69 + - col1 - + col2 * + col1 * - col0 AS col2 FROM tab0 cor0 ---- 3367 669685 70303 query I rowsort SELECT - - col0 + + 14 AS col1 FROM tab1 AS cor0 ---- 17 78 94 query I rowsort SELECT + col1 * + cor0.col0 + - col0 FROM tab0 cor0 ---- 2040 3360 8010 query I rowsort SELECT DISTINCT - col2 + + ( ( - col2 ) ) AS col2 FROM tab1 cor0 ---- -108 -114 -192 query I rowsort SELECT col2 + cor0.col2 * 61 * - col2 FROM tab0 AS cor0 ---- -410082 -60 -66396 query I rowsort SELECT + col2 * cor0.col0 + - col0 FROM tab1 AS cor0 ---- 159 3584 7600 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2887 SELECT ALL col2 * - ( + col1 ) + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -2752 -7371 0 skipif mysql # not compatible query I rowsort label-2887 SELECT ALL col2 * - ( + col1 ) + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -2752 -7371 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2888 SELECT + - CAST( - 22 AS SIGNED ) + cor0.col2 DIV ( ( col0 ) ) AS col1 FROM tab0 AS cor0 ---- 22 22 23 skipif mysql # not compatible query I rowsort label-2888 SELECT + - CAST ( - 22 AS INTEGER ) + cor0.col2 / ( ( col0 ) ) AS col1 FROM tab0 AS cor0 ---- 22 22 23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2889 SELECT ALL CAST( + col2 AS SIGNED ) * + col0 FROM tab1 cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-2889 SELECT ALL CAST ( + col2 AS INTEGER ) * + col0 FROM tab1 cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-2890 SELECT - + col0 DIV - cor0.col0 col0 FROM tab0 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2890 SELECT - + col0 / - cor0.col0 col0 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT col1 * col2 + - 18 * col2 FROM tab1 AS cor0 ---- -456 -480 432 query I rowsort SELECT - + col2 * + col1 * - ( - ( + col2 ) ) AS col2 FROM tab1 AS cor0 ---- -119808 -32490 -75816 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( col2 * + col2 ) + - col1 col0 FROM tab2 ---- -1461 -735 -760 query I rowsort SELECT DISTINCT col2 + - tab2.col0 * - 7 FROM tab2 ---- 572 591 76 query I rowsort SELECT + tab1.col0 * tab1.col1 FROM tab1 ---- 1040 640 78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2896 SELECT - - ( cor0.col0 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2896 SELECT - - ( cor0.col0 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col2 * + col1 * - ( 6 * - col1 ) FROM tab0 ---- 1464408 4074252 56454 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2898 SELECT ALL - + CAST( NULL AS SIGNED ) + + 66 * + col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2898 SELECT ALL - + CAST ( NULL AS INTEGER ) + + 66 * + col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - 99 + - col2 AS col1 FROM tab0 cor0 ---- -100 -132 -181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 28 col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97 query I rowsort SELECT 60 * 90 AS col0 FROM tab1 AS cor0 ---- 5400 5400 5400 query I rowsort SELECT DISTINCT + ( - col2 ) * cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT - + ( + col2 ) * - col0 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 query I rowsort SELECT ALL ( col2 ) * + col0 AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-2905 SELECT DISTINCT + + 39 * col1 DIV - col0 + col2 + + 21 AS col0 FROM tab0 AS cor0 ---- -85 -86 64 skipif mysql # not compatible query I rowsort label-2905 SELECT DISTINCT + + 39 * col1 / - col0 + col2 + + 21 AS col0 FROM tab0 AS cor0 ---- -85 -86 64 onlyif mysql # use DIV operator for integer division query I rowsort label-2906 SELECT DISTINCT - + ( 41 ) DIV - col1 AS col1 FROM tab1 AS cor0 ---- 1 3 4 skipif mysql # not compatible query I rowsort label-2906 SELECT DISTINCT - + ( 41 ) / - col1 AS col1 FROM tab1 AS cor0 ---- 1 3 4 query I rowsort SELECT DISTINCT + + cor0.col0 * - col2 FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL - 3 * col2 FROM tab2 AS cor0 ---- -114 -78 -81 query I rowsort SELECT ALL - col1 + + col2 * col1 AS col2 FROM tab2 AS cor0 ---- 1475 629 806 skipif mysql # not compatible query I rowsort SELECT - col1 + ( col1 ) * + CAST ( + col2 * col2 AS REAL ) AS col2 FROM tab2 ---- 22568 24531 39825 query I rowsort SELECT ALL 5 AS col0 FROM tab1 ---- 5 5 5 query I rowsort SELECT col0 + ( + col0 ) AS col1 FROM tab0 AS cor0 ---- 178 48 70 onlyif mysql # use DIV operator for integer division query I rowsort label-2913 SELECT DISTINCT - cor0.col0 DIV - cor0.col0 FROM tab2 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-2913 SELECT DISTINCT - cor0.col0 / - cor0.col0 FROM tab2 AS cor0 ---- 1 query I rowsort SELECT DISTINCT - cor0.col0 + col0 * col0 FROM tab0 cor0 ---- 1190 552 7832 query I rowsort SELECT ALL + + col0 * col0 + - col0 FROM tab1 cor0 ---- 4032 6 6320 query I rowsort SELECT - 95 * + col1 * tab2.col1 FROM tab2 ---- -27455 -330695 -91295 query I rowsort SELECT DISTINCT - 24 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- -24 query I rowsort SELECT ALL 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4 query I rowsort SELECT ALL col0 - + tab0.col1 * 88 AS col1 FROM tab0 ---- -7544 -7919 -8501 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 67 col1 FROM tab1 ---- 67 67 67 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2921 SELECT col2 - - CAST( NULL AS DECIMAL ) * + col2 * tab2.col2 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2921 SELECT col2 - - CAST ( NULL AS REAL ) * + col2 * tab2.col2 AS col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 * 29 + 20 AS col0 FROM tab0 ---- 2514 2659 2833 query I rowsort SELECT col2 + 59 * ( col2 ) FROM tab1 ---- 3240 3420 5760 onlyif mysql # use DIV operator for integer division query I rowsort label-2924 SELECT ALL col0 * col2 * col1 + col0 * 30 DIV tab0.col1 AS col1 FROM tab0 ---- 3405 664147 68120 skipif mysql # not compatible query I rowsort label-2924 SELECT ALL col0 * col2 * col1 + col0 * 30 / tab0.col1 AS col1 FROM tab0 ---- 3405 664147 68120 query I rowsort SELECT ALL col1 * col0 + + col0 AS col1 FROM tab0 AS cor0 ---- 2088 3430 8188 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2926 SELECT ALL - CAST( + 84 AS SIGNED ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f skipif mysql # not compatible query I rowsort label-2926 SELECT ALL - CAST ( + 84 AS INTEGER ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f query I rowsort SELECT col0 * - col2 * - col2 + col0 AS col0 FROM tab2 ---- 114155 5110 52806 query I rowsort SELECT DISTINCT 65 + - 59 * - cor0.col2 FROM tab1, tab2 AS cor0 ---- 1599 1658 2307 query I rowsort SELECT ALL - 71 - 60 FROM tab0 AS cor0 ---- -131 -131 -131 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 col1 FROM tab2, tab1, tab0 AS cor0 ---- 27 values hashing to d4c673b7444eb9927ec63175b43c6b84 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2931 SELECT ALL - + CAST( NULL AS SIGNED ) * + 8 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2931 SELECT ALL - + CAST ( NULL AS INTEGER ) * + 8 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 98 * col0 AS col2 FROM tab1 AS cor0 ---- 294 6272 7840 query I rowsort SELECT - col2 + ( - col0 ) AS col0 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT + ( tab2.col2 + col1 ) AS col2 FROM tab2 ---- 55 58 85 query I rowsort SELECT DISTINCT + tab1.col1 - + col0 FROM tab1 ---- -54 -67 23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2936 SELECT DISTINCT + - col0 + col0 * - CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0 ---- -119730 -51113 -5866 skipif mysql # not compatible query I rowsort label-2936 SELECT DISTINCT + - col0 + col0 * - CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0 ---- -119730 -51113 -5866 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 65 col2 FROM tab1 AS cor0 ---- -65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 63 col0 FROM tab1 AS cor0 ---- 63 63 63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col2 * cor0.col2 + col0 col1 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT - - col1 * - 7 FROM tab0 AS cor0 ---- -602 -637 -679 query I rowsort SELECT - - cor0.col1 * - col1 + - col0 + col2 AS col2 FROM tab2 AS cor0 ---- -330 -3533 -941 query I rowsort SELECT ALL + - col2 * 10 AS col2 FROM tab0 AS cor0 ---- -10 -330 -820 query I rowsort SELECT DISTINCT + col2 * + 94 AS col0 FROM tab0 AS cor0 ---- 3102 7708 94 onlyif mysql # use DIV operator for integer division query I rowsort label-2944 SELECT DISTINCT col2 DIV 75 AS col2 FROM tab1 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-2944 SELECT DISTINCT col2 / 75 AS col2 FROM tab1 AS cor0 ---- 0 1 onlyif mysql # use DIV operator for integer division query I rowsort label-2945 SELECT - col2 DIV col1 + 3 FROM tab2 AS cor0 ---- 1 3 3 skipif mysql # not compatible query I rowsort label-2945 SELECT - col2 / col1 + 3 FROM tab2 AS cor0 ---- 1 3 3 query I rowsort SELECT + col2 * 25 - - col2 FROM tab0 AS cor0 ---- 2132 26 858 query I rowsort SELECT ALL - - col0 * + 66 + col0 AS col0 FROM tab1 AS cor0 ---- 201 4288 5360 query I rowsort SELECT DISTINCT - - col1 - col2 AS col2 FROM tab1 AS cor0 ---- -28 -47 -83 query I rowsort SELECT - + col1 - - ( + cor0.col2 ) AS col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT - - col0 + + col1 + + col1 * + col2 FROM tab0 AS cor0 ---- 229 2948 7642 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * - cor0.col1 - col2 col1 FROM tab0 cor0 ---- -2871 -7544 -98 onlyif mysql # use DIV operator for integer division query I rowsort label-2952 SELECT + col2 * + ( col0 ) + col0 DIV + col0 FROM tab2 AS cor0 ---- 190 2029 3003 skipif mysql # not compatible query I rowsort label-2952 SELECT + col2 * + ( col0 ) + col0 / + col0 FROM tab2 AS cor0 ---- 190 2029 3003 query I rowsort SELECT - - col2 * cor0.col1 * + col1 AS col2 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT - - col0 + 6 FROM tab1 AS cor0 ---- 70 86 9 query I rowsort SELECT + cor0.col2 * - cor0.col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT - col2 - ( + 9 ) * + col0 * ( - col0 ) AS col2 FROM tab1 AS cor0 ---- 27 36807 57504 query I rowsort SELECT - + col0 - + col1 AS col2 FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT + col2 * col2 + + 42 AS col0 FROM tab2 cor0 ---- 1486 718 771 query I rowsort SELECT DISTINCT - + col2 * ( 91 ) AS col0 FROM tab2 AS cor0 ---- -2366 -2457 -3458 skipif mysql # not compatible query I rowsort SELECT + - col1 + - CAST ( - col2 AS REAL ) * col1 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT 53 * col0 AS col2 FROM tab2 ---- 371 4134 4187 query I rowsort SELECT 99 * + col0 AS col1 FROM tab1 ---- 297 6336 7920 query I rowsort SELECT DISTINCT ( 17 ) FROM tab0 ---- 17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2964 SELECT CAST( - 78 AS SIGNED ) FROM tab2 AS cor0 ---- -78 -78 -78 skipif mysql # not compatible query I rowsort label-2964 SELECT CAST ( - 78 AS INTEGER ) FROM tab2 AS cor0 ---- -78 -78 -78 query I rowsort SELECT col0 * 3 + col2 * ( 75 ) FROM tab1 AS cor0 ---- 4059 4467 7440 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 75 col2 FROM tab2 AS cor0 ---- 75 75 75 query I rowsort SELECT col0 * cor0.col1 - + col1 * + 42 AS col2 FROM tab1 AS cor0 ---- -1014 220 494 query I rowsort SELECT DISTINCT - + col0 * col0 - col1 * + ( - col0 + - col1 ) AS col1 FROM tab2 cor0 ---- -4609 1129 1999 query I rowsort SELECT ALL - col2 - 13 FROM tab1 AS cor0 ---- -109 -67 -70 query I rowsort SELECT + ( + col2 ) + + col2 FROM tab2 AS cor0 ---- 52 54 76 query I rowsort SELECT DISTINCT - 69 * + col2 AS col2 FROM tab0 ---- -2277 -5658 -69 query I rowsort SELECT + ( col1 * + tab1.col2 ) FROM tab1 ---- 1248 1404 570 query I rowsort SELECT + ( ( + col0 ) ) AS col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT DISTINCT col0 + cor0.col2 * + ( cor0.col0 ) AS col0 FROM tab0 cor0 ---- 70 7387 816 onlyif mysql # use DIV operator for integer division query I rowsort label-2975 SELECT ALL - 28 DIV + col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-2975 SELECT ALL - 28 / + col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT 81 * - tab0.col0 FROM tab0, tab0 AS cor0 ---- -1944 -2835 -7209 query I rowsort SELECT + - 6 + + col2 FROM tab1 AS cor0 ---- 48 51 90 query I rowsort SELECT ALL - ( 31 ) + + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 62546acdb78daa375c532aeee92b5983 query I rowsort SELECT - 0 + - col1 FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-2980 SELECT ALL + - 28 DIV col0 FROM tab1 AS cor0 ---- -9 0 0 skipif mysql # not compatible query I rowsort label-2980 SELECT ALL + - 28 / col0 FROM tab1 AS cor0 ---- -9 0 0 query I rowsort SELECT DISTINCT + col2 + col0 * - cor0.col0 * - col1 FROM tab0 AS cor0 ---- 118826 49569 720893 query I rowsort SELECT DISTINCT + - col0 * + cor0.col0 + cor0.col2 FROM tab1 cor0 ---- -4039 -6304 45 query I rowsort SELECT DISTINCT - + col2 * - cor0.col2 AS col1 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT col0 - + col0 AS col1 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-2985 SELECT - col1 * col2 + - cor0.col1 DIV + cor0.col2 FROM tab0 AS cor0 ---- -194 -2840 -7463 skipif mysql # not compatible query I rowsort label-2985 SELECT - col1 * col2 + - cor0.col1 / + cor0.col2 FROM tab0 AS cor0 ---- -194 -2840 -7463 query I rowsort SELECT + - col0 * - col1 - 99 AS col0 FROM tab1 AS cor0 ---- -21 541 941 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * 36 col0 FROM tab2 AS cor0 ---- 1368 936 972 query I rowsort SELECT + col0 + 78 * col1 FROM tab2 AS cor0 ---- 1405 2425 4680 query I rowsort SELECT col1 * ( col2 ) AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-2990 SELECT col0 * - CAST( NULL AS SIGNED ) + + col0 * - col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-2990 SELECT col0 * - CAST ( NULL AS INTEGER ) + + col0 * - col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-2991 SELECT cor0.col0 DIV 56 col2 FROM tab2 AS cor0 ---- 0 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-2991 SELECT cor0.col0 / 56 col2 FROM tab2 AS cor0 ---- 0 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-2992 SELECT DISTINCT 54 * col2 DIV + col0 AS col1 FROM tab0 AS cor0 ---- 1 49 74 skipif mysql # not compatible query I rowsort label-2992 SELECT DISTINCT 54 * col2 / + col0 AS col1 FROM tab0 AS cor0 ---- 1 49 74 query I rowsort SELECT 85 + col0 * cor0.col2 FROM tab0 cor0 ---- 120 7383 877 query I rowsort SELECT DISTINCT + + 61 FROM tab2 cor0 ---- 61 query I rowsort SELECT col1 + + 87 AS col2 FROM tab2 ---- 104 118 146 query I rowsort SELECT + ( col1 ) * - col1 + col2 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT + 67 * col1 FROM tab2 ---- 1139 2077 3953 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 + - col2 col2 FROM tab1 AS cor0 ---- -28 -47 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-2999 SELECT - + 41 + + col1 DIV - 65 FROM tab0 AS cor0 ---- -42 -42 -42 skipif mysql # not compatible query I rowsort label-2999 SELECT - + 41 + + col1 / - 65 FROM tab0 AS cor0 ---- -42 -42 -42 query I rowsort SELECT ALL cor0.col2 + + col2 AS col1 FROM tab0 cor0 ---- 164 2 66 onlyif mysql # use DIV operator for integer division query I rowsort label-3001 SELECT ALL cor0.col2 DIV + col1 + 53 + - col2 FROM tab0 AS cor0 ---- -29 20 52 skipif mysql # not compatible query I rowsort label-3001 SELECT ALL cor0.col2 / + col1 + 53 + - col2 FROM tab0 AS cor0 ---- -29 20 52 onlyif mysql # use DIV operator for integer division query I rowsort label-3002 SELECT + col1 + col1 DIV + 67 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-3002 SELECT + col1 + col1 / + 67 FROM tab2 AS cor0 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 7 col0 FROM tab0 AS cor0 ---- 7 7 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 10 + - cor0.col1 col1 FROM tab1 AS cor0 ---- -16 -3 0 query I rowsort SELECT ALL - col1 + 33 * cor0.col2 FROM tab0 AS cor0 ---- -64 1003 2615 query I rowsort SELECT DISTINCT col1 * + col0 + cor0.col0 * col1 FROM tab0 cor0 ---- 16198 4128 6790 query I rowsort SELECT DISTINCT + col1 + ( + col2 ) * - col1 FROM tab2 AS cor0 ---- -1475 -629 -806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * + ( col1 ) col0 FROM tab2 cor0 ---- 289 3481 961 onlyif mysql # use DIV operator for integer division query I rowsort label-3009 SELECT - col1 DIV + 50 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3009 SELECT - col1 / + 50 FROM tab0 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * + col1 * - 30 col1 FROM tab2 AS cor0 ---- -19380 -25110 -46020 query I rowsort SELECT ( col2 ) - col0 FROM tab1 AS cor0 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-3012 SELECT DISTINCT - cor0.col2 * col2 + + col0 * ( col1 ) DIV col1 col0 FROM tab1 AS cor0 ---- -2913 -3185 -9136 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3012 SELECT DISTINCT - cor0.col2 * col2 + + col0 * ( col1 ) / col1 col0 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query I rowsort SELECT 67 - - col2 FROM tab1 AS cor0 ---- 121 124 163 onlyif mysql # use DIV operator for integer division query I rowsort label-3014 SELECT DISTINCT - + col1 * - col1 + - cor0.col0 * cor0.col2 DIV col1 FROM tab1 AS cor0 ---- -264 -421 670 skipif mysql # not compatible query I rowsort label-3014 SELECT DISTINCT - + col1 * - col1 + - cor0.col0 * cor0.col2 / col1 FROM tab1 AS cor0 ---- -264 -421 670 query I rowsort SELECT + + col0 * + col0 - - col2 AS col2 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT DISTINCT - col1 + - cor0.col2 * - col1 * + col1 + - 54 * - col0 FROM tab0 AS cor0 ---- 11202 245278 683757 query I rowsort SELECT ALL - cor0.col2 * - 60 + col2 AS col2 FROM tab1 AS cor0 ---- 3294 3477 5856 query I rowsort SELECT ALL + + 16 * - col1 FROM tab2 AS cor0 ---- -272 -496 -944 query I rowsort SELECT + col1 + cor0.col2 * ( ( col0 ) + 56 ) FROM tab0 AS cor0 ---- 11981 188 2726 query I rowsort SELECT DISTINCT + + ( - col2 ) * 38 AS col0 FROM tab2 AS cor0 ---- -1026 -1444 -988 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * col0 col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + cor0.col0 + col0 col2 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT - ( col1 ) + + cor0.col2 FROM tab1 AS cor0 ---- 28 47 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3024 SELECT DISTINCT ( col0 * col2 ) - + CAST( NULL AS SIGNED ) * col1 FROM tab0 ---- NULL skipif mysql # not compatible query I rowsort label-3024 SELECT DISTINCT ( col0 * col2 ) - + CAST ( NULL AS INTEGER ) * col1 FROM tab0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * + col1 * - col1 col0 FROM tab0 ---- -636056 -753571 -912673 query I rowsort SELECT col2 + - col2 + col2 * col1 AS col2 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT + 40 + col2 FROM tab2 ---- 66 67 78 query I rowsort SELECT col0 + col1 * - tab1.col2 FROM tab1 ---- -1168 -1401 -506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 49 col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cb40783c0fff72e8802cdf0682e7cb55 query I rowsort SELECT col0 + ( col0 ) AS col1 FROM tab2 ---- 14 156 158 onlyif mysql # use DIV operator for integer division query I rowsort label-3031 SELECT ALL + 90 - + col1 DIV + col0 AS col0 FROM tab0 ---- 87 88 89 skipif mysql # not compatible query I rowsort label-3031 SELECT ALL + 90 - + col1 / + col0 AS col0 FROM tab0 ---- 87 88 89 query I rowsort SELECT DISTINCT - + col1 * + col2 - - ( col1 ) * + col0 FROM tab0 cor0 ---- -774 3298 637 onlyif mysql # use DIV operator for integer division query I rowsort label-3033 SELECT ALL + + 68 + col1 DIV + col2 col0 FROM tab1 cor0 ---- 68 68 68 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3033 SELECT ALL + + 68 + col1 / + col2 col0 FROM tab1 cor0 ---- 68 68 68 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3034 SELECT + - col1 + - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3034 SELECT + - col1 + - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 18 * - col1 + 88 col2 FROM tab1 ---- 268 322 556 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 22 + col1 col0 FROM tab0 ---- 108 113 119 query I rowsort SELECT DISTINCT 66 + col1 FROM tab0 ---- 152 157 163 query I rowsort SELECT DISTINCT - col2 + col1 + - tab2.col1 AS col1 FROM tab2 ---- -26 -27 -38 query I rowsort SELECT ALL + 87 FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 8661ffbd1a72897c495405c53b816e50 query I rowsort SELECT DISTINCT 25 + - tab1.col1 * col2 AS col1 FROM tab1 ---- -1223 -1379 -545 onlyif mysql # use DIV operator for integer division query I rowsort label-3041 SELECT - - col2 DIV - cor0.col0 FROM tab1 AS cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-3041 SELECT - - col2 / - cor0.col0 FROM tab1 AS cor0 ---- -1 -18 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3042 SELECT DISTINCT + + col2 DIV col0 + - col0 AS col0 FROM tab1 AS cor0 ---- -64 -79 15 skipif mysql # not compatible query I rowsort label-3042 SELECT DISTINCT + + col2 / col0 + - col0 AS col0 FROM tab1 AS cor0 ---- -64 -79 15 query I rowsort SELECT + col2 * cor0.col0 - + col2 FROM tab1 AS cor0 ---- 108 3591 7584 onlyif mysql # use DIV operator for integer division query I rowsort label-3044 SELECT + col0 * col0 * - tab1.col1 - - tab1.col0 * col0 DIV + col1 AS col2 FROM tab1 ---- -234 -40551 -82708 skipif mysql # not compatible query I rowsort label-3044 SELECT + col0 * col0 * - tab1.col1 - - tab1.col0 * col0 / + col1 AS col2 FROM tab1 ---- -234 -40551 -82708 query I rowsort SELECT ALL col2 - ( col1 ) AS col0 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT DISTINCT - tab1.col0 * - 54 FROM tab1 ---- 162 3456 4320 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3047 SELECT + col1 * CAST( NULL AS SIGNED ) * tab0.col0 - + col0 * 38 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3047 SELECT + col1 * CAST ( NULL AS INTEGER ) * tab0.col0 - + col0 * 38 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3048 SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab1, tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3048 SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab1, tab0 AS cor0 ---- NULL query I rowsort SELECT ALL - col0 * + col0 * col1 AS col1 FROM tab2 AS cor0 ---- -106097 -1519 -358956 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 60 * 36 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to f8b8391d89c6219f35186c8a1e070fe4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3051 SELECT ALL col1 * - CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3051 SELECT ALL col1 * - CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 66 * col2 AS col1 FROM tab1 AS cor0 ---- -3564 -3762 -6336 query I rowsort SELECT ALL col2 + cor0.col1 AS col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ALL - ( + 97 ) + - col2 - - col0 AS col0 FROM tab1 AS cor0 ---- -113 -148 -90 query I rowsort SELECT ALL + col2 * col0 * cor0.col1 + - 33 AS col1 FROM tab0 cor0 ---- 3362 664085 68079 query I rowsort SELECT ALL - + cor0.col2 + cor0.col0 AS col0 FROM tab0 cor0 ---- -9 34 7 query I rowsort SELECT DISTINCT - col2 * col1 + + col2 AS col2 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT ALL - 35 + col0 AS col2 FROM tab0 AS cor0 ---- -11 0 54 query I rowsort SELECT + - 18 * 47 + - col1 AS col1 FROM tab1 AS cor0 ---- -856 -859 -872 query I rowsort SELECT DISTINCT col0 + - col1 AS col0 FROM tab0 cor0 ---- -2 -62 query I rowsort SELECT DISTINCT + col2 * - 28 + col2 + + 5 FROM tab2 AS cor0 ---- -1021 -697 -724 onlyif mysql # use DIV operator for integer division query I rowsort label-3062 SELECT DISTINCT 23 DIV + col2 FROM tab0 AS cor0 ---- 0 23 skipif mysql # not compatible query I rowsort label-3062 SELECT DISTINCT 23 / + col2 FROM tab0 AS cor0 ---- 0 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 18 * ( col1 ) col1 FROM tab2 AS cor0 ---- -1062 -306 -558 query I rowsort SELECT ALL - - col0 + 45 AS col0 FROM tab1 AS cor0 ---- 109 125 48 query I rowsort SELECT ( + col1 ) * col0 * + col1 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT DISTINCT + col2 * 29 AS col1 FROM tab1 AS cor0 ---- 1566 1653 2784 query I rowsort SELECT ALL col2 * 58 * + col0 FROM tab2 ---- 10962 117624 174116 onlyif mysql # use DIV operator for integer division query I rowsort label-3068 SELECT + col0 + + col2 DIV - col1 AS col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-3068 SELECT + col0 + + col2 / - col1 AS col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ( - cor0.col0 ) + + cor0.col1 + 71 * - col0 FROM tab2 AS cor0 ---- -473 -5557 -5671 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 84 - + ( col1 + 88 ) * col0 col1 FROM tab2 AS cor0 ---- -11382 -749 -8211 query I rowsort SELECT + 70 + ( + col1 ) + ( - 15 * - col1 ) FROM tab0 AS cor0 ---- 1446 1526 1622 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3072 SELECT CAST( NULL AS SIGNED ) / + col0 + col2 + - CAST( col2 AS SIGNED ) * - col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3072 SELECT CAST ( NULL AS INTEGER ) / + col0 + col2 + - CAST ( col2 AS INTEGER ) * - col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 * - 81 FROM tab0 ---- -2673 -6642 -81 onlyif mysql # use DIV operator for integer division query I rowsort label-3074 SELECT col1 DIV + 51 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-3074 SELECT col1 / + 51 FROM tab0 ---- 1 1 1 query I rowsort SELECT col1 * + 83 * col0 FROM tab0 ---- 171312 281785 672217 query I rowsort SELECT + col1 + col1 * + ( + col0 ) FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT DISTINCT col2 + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT DISTINCT + - 83 + + col0 AS col1 FROM tab0 AS cor0 ---- -48 -59 6 query I rowsort SELECT ALL - 81 * - col2 FROM tab0 ---- 2673 6642 81 query I rowsort SELECT - 29 + col2 AS col0 FROM tab2 ---- -2 -3 9 query I rowsort SELECT col1 * 0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3082 SELECT 14 + - col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3082 SELECT 14 + - col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + + 7 + col0 AS col2 FROM tab1 AS cor0 ---- 10 71 87 onlyif mysql # use DIV operator for integer division query I rowsort label-3084 SELECT - + 18 DIV + col0 col1 FROM tab1 AS cor0 ---- -6 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3084 SELECT - + 18 / + col0 col1 FROM tab1 AS cor0 ---- -6 0 0 query I rowsort SELECT ALL - cor0.col1 * + col1 + - col0 FROM tab0 AS cor0 ---- -7420 -8370 -9444 query I rowsort SELECT DISTINCT + col1 * ( + col1 ) + col2 * col1 AS col0 FROM tab0 AS cor0 ---- 10234 15743 9506 onlyif mysql # use DIV operator for integer division query I rowsort label-3087 SELECT ALL + cor0.col1 * - ( + col0 * + col2 ) + 13 DIV cor0.col1 FROM tab1 AS cor0 ---- -36479 -4212 -99839 skipif mysql # not compatible query I rowsort label-3087 SELECT ALL + cor0.col1 * - ( + col0 * + col2 ) + 13 / cor0.col1 FROM tab1 AS cor0 ---- -36479 -4212 -99839 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + - cor0.col1 col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT col1 * - 63 + + col0 AS col0 FROM tab2 AS cor0 ---- -1946 -3639 -992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 83 col0 FROM tab1 ---- -83 query I rowsort SELECT ALL - 0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT + cor0.col0 + + 64 FROM tab0 cor0 ---- 153 88 99 query I rowsort SELECT DISTINCT + 44 + tab2.col2 AS col0 FROM tab2, tab0 AS cor0 ---- 70 71 82 query I rowsort SELECT DISTINCT 28 * - col2 AS col0 FROM tab1 ---- -1512 -1596 -2688 query I rowsort SELECT ALL tab0.col2 * 80 * col2 AS col0 FROM tab0 ---- 537920 80 87120 query I rowsort SELECT - - col1 * - ( col1 ) + - col1 * + ( + col0 ) * 44 FROM tab2 AS cor0 ---- -10509 -205969 -59381 query I rowsort SELECT - col1 * 35 + col2 - col1 * - col0 AS col1 FROM tab0 AS cor0 ---- -913 1 4996 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 63 + + col0 col1 FROM tab2 AS cor0 ---- 141 142 70 query I rowsort SELECT + 84 * + col0 FROM tab2 ---- 588 6552 6636 onlyif mysql # use DIV operator for integer division query I rowsort label-3100 SELECT + + col0 + + 93 * + cor0.col1 + - ( + col1 ) DIV col0 FROM tab2 AS cor0 ---- 1660 2886 5565 skipif mysql # not compatible query I rowsort label-3100 SELECT + + col0 + + 93 * + cor0.col1 + - ( + col1 ) / col0 FROM tab2 AS cor0 ---- 1660 2886 5565 query I rowsort SELECT - + ( - cor0.col2 ) + 62 * + col0 FROM tab1 AS cor0 ---- 240 4025 5056 query I rowsort SELECT DISTINCT - - col2 + - col1 AS col1 FROM tab0 AS cor0 ---- -53 -9 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col1 + col2 col2 FROM tab1 AS cor0 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-3104 SELECT + col1 DIV col1 + + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-3104 SELECT + col1 / col1 + + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT - + ( - col0 ) * ( 95 ) FROM tab0 AS cor0 ---- 2280 3325 8455 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3106 SELECT - cor0.col0 + - col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3106 SELECT - cor0.col0 + - col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 90 * col2 + col1 AS col0 FROM tab2 AS cor0 ---- 2399 2461 3437 query I rowsort SELECT 88 * 37 - col2 FROM tab1 ---- 3160 3199 3202 onlyif mysql # use DIV operator for integer division query I rowsort label-3109 SELECT ALL - - col0 * - col2 + col0 * col0 DIV col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 skipif mysql # not compatible query I rowsort label-3109 SELECT ALL - - col0 * - col2 + col0 * col0 / col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT DISTINCT + col1 + + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT ALL - 37 * + col1 AS col0 FROM tab2 cor0 ---- -1147 -2183 -629 onlyif mysql # use DIV operator for integer division query I rowsort label-3112 SELECT DISTINCT col2 DIV col1 AS col2 FROM tab2 cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-3112 SELECT DISTINCT col2 / col1 AS col2 FROM tab2 cor0 ---- 0 2 query I rowsort SELECT - col2 + 42 + + col0 AS col0 FROM tab1 ---- -9 26 49 query I rowsort SELECT DISTINCT - 1 * col2 * col0 + ( 75 ) + + col0 FROM tab2 ---- -107 -1875 -2848 query I rowsort SELECT DISTINCT + ( col1 ) + + tab2.col0 AS col0 FROM tab2 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-3116 SELECT + col0 + + 2 DIV tab1.col1 AS col0 FROM tab1 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-3116 SELECT + col0 + + 2 / tab1.col1 AS col0 FROM tab1 ---- 3 64 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * - tab2.col2 - - col1 col2 FROM tab2 ---- 1461 735 760 query I rowsort SELECT ( - col0 * + col1 ) + + 15 * - 57 AS col2 FROM tab1 ---- -1495 -1895 -933 query I rowsort SELECT - ( 5 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 74665fbb47d5b17da011bca567195b21 onlyif mysql # use DIV operator for integer division query I rowsort label-3120 SELECT col1 DIV + col2 + col1 + col2 DIV col0 AS col2 FROM tab1 ---- 10 14 44 skipif mysql # not compatible query I rowsort label-3120 SELECT col1 / + col2 + col1 + col2 / col0 AS col2 FROM tab1 ---- 10 14 44 onlyif mysql # use DIV operator for integer division query I rowsort label-3121 SELECT - ( col1 ) DIV + col0 FROM tab2 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-3121 SELECT - ( col1 ) / + col0 FROM tab2 ---- -4 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3122 SELECT ALL + col2 * col1 * + col2 - col1 DIV col2 FROM tab0 AS cor0 ---- 0 611883 93652 skipif mysql # not compatible query I rowsort label-3122 SELECT ALL + col2 * col1 * + col2 - col1 / col2 FROM tab0 AS cor0 ---- 0 611883 93652 query I rowsort SELECT ( - col2 ) + + col2 AS col2 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3124 SELECT DISTINCT - cor0.col0 DIV cor0.col2 + col2 * ( - col1 + ( col1 ) ) FROM tab1 cor0 ---- -1 0 skipif mysql # not compatible query I rowsort label-3124 SELECT DISTINCT - cor0.col0 / cor0.col2 + col2 * ( - col1 + ( col1 ) ) FROM tab1 cor0 ---- -1 0 query I rowsort SELECT 11 * - cor0.col2 AS col0 FROM tab0 cor0 ---- -11 -363 -902 onlyif mysql # use DIV operator for integer division query I rowsort label-3126 SELECT + 7 + - col2 DIV + ( + col0 ) FROM tab0 AS cor0 ---- 6 7 7 skipif mysql # not compatible query I rowsort label-3126 SELECT + 7 + - col2 / + ( + col0 ) FROM tab0 AS cor0 ---- 6 7 7 query I rowsort SELECT + col1 + - cor0.col1 * col2 FROM tab0 cor0 ---- -2752 -7371 0 query I rowsort SELECT DISTINCT - - 31 + - col2 FROM tab2 AS cor0 ---- -7 4 5 query I rowsort SELECT DISTINCT + ( col1 ) + 9 * col2 AS col1 FROM tab2 AS cor0 ---- 274 293 359 query I rowsort SELECT - 97 * + col2 + col1 * col2 AS col1 FROM tab1 cor0 ---- -3834 -4959 -8064 query I rowsort SELECT DISTINCT col2 + col0 * col2 AS col2 FROM tab2 cor0 ---- 2054 216 3040 query I rowsort SELECT - col1 * col1 * - col1 + 27 FROM tab2 AS cor0 ---- 205406 29818 4940 onlyif mysql # use DIV operator for integer division query I rowsort label-3133 SELECT ALL + 67 + col2 DIV - col1 AS col0 FROM tab1 AS cor0 ---- 60 62 65 skipif mysql # not compatible query I rowsort label-3133 SELECT ALL + 67 + col2 / - col1 AS col0 FROM tab1 AS cor0 ---- 60 62 65 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3134 SELECT DISTINCT - + cor0.col2 * cor0.col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3134 SELECT DISTINCT - + cor0.col2 * cor0.col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - - col2 - col2 * ( 31 ) * - col1 FROM tab1 AS cor0 ---- 17727 38784 43578 query I rowsort SELECT DISTINCT - + 60 + col0 AS col0 FROM tab2 cor0 ---- -53 18 19 query I rowsort SELECT ALL + - 21 - - col1 * + col2 * 68 FROM tab0 AS cor0 ---- 192963 507395 6575 query I rowsort SELECT - 51 + - col0 FROM tab0 cor0 ---- -140 -75 -86 query I rowsort SELECT - col1 - - col1 AS col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT - 18 * 44 FROM tab0, tab1 AS cor0 ---- 9 values hashing to efe8af464b9c93ee4c4a10c3a6ae3d7d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3141 SELECT CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3141 SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - + col0 * - 87 FROM tab1 AS cor0 ---- 261 5568 6960 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3143 SELECT DISTINCT - - cor0.col2 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3143 SELECT DISTINCT - - cor0.col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3144 SELECT col2 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 ---- 1 1089 6724 skipif mysql # not compatible query I rowsort label-3144 SELECT col2 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT + cor0.col2 * col1 + + col0 + col0 AS col0 FROM tab2 AS cor0 ---- 1690 804 851 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3146 SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3146 SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT col1 * - 70 AS col0 FROM tab0 AS cor0 ---- -6020 -6370 -6790 query I rowsort SELECT DISTINCT + - 19 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1 ---- -19 query I rowsort SELECT ALL + + 15 * + ( col2 ) * - col0 + col2 AS col2 FROM tab2 cor0 ---- -2808 -30394 -44992 query I rowsort SELECT + cor0.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT ALL col0 + col2 - col1 * + col0 FROM tab1 AS cor0 ---- -21 -519 -864 query I rowsort SELECT DISTINCT cor0.col2 * 2 - - cor0.col0 FROM tab0 AS cor0 ---- 253 37 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * - col0 * col2 col2 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT ALL - col0 + 8 + - cor0.col1 AS col0 FROM tab2 cor0 ---- -129 -30 -88 onlyif mysql # use DIV operator for integer division query I rowsort label-3155 SELECT DISTINCT + - 89 DIV - col0 + col2 AS col0 FROM tab1 AS cor0 ---- 58 83 97 skipif mysql # not compatible query I rowsort label-3155 SELECT DISTINCT + - 89 / - col0 + col2 AS col0 FROM tab1 AS cor0 ---- 58 83 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 98 * + col1 col0 FROM tab2 AS cor0 ---- 1666 3038 5782 query I rowsort SELECT DISTINCT + - 57 * col1 AS col0 FROM tab1 AS cor0 ---- -1482 -570 -741 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3158 SELECT - - CAST( col2 AS SIGNED ) + col1 * + col2 FROM tab1 AS cor0 ---- 1344 1458 627 skipif mysql # not compatible query I rowsort label-3158 SELECT - - CAST ( col2 AS INTEGER ) + col1 * + col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT DISTINCT - 47 + + col2 * col2 AS col2 FROM tab0 AS cor0 ---- -46 1042 6677 query I rowsort SELECT 78 * 7 FROM tab2 AS cor0 ---- 546 546 546 query I rowsort SELECT ALL cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3162 SELECT ALL + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-3162 SELECT ALL + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT - ( 82 ) FROM tab0 AS cor0 ---- -82 -82 -82 query I rowsort SELECT - ( - 58 ) * + col1 AS col0 FROM tab0 AS cor0 ---- 4988 5278 5626 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3165 SELECT + CAST( NULL AS SIGNED ) + 9 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3165 SELECT + CAST ( NULL AS INTEGER ) + 9 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 34 AS col1 FROM tab2 cor0 ---- 34 34 34 query I rowsort SELECT ALL - 8 * + col2 FROM tab0 AS cor0 ---- -264 -656 -8 onlyif mysql # use DIV operator for integer division query I rowsort label-3168 SELECT DISTINCT - - cor0.col2 DIV cor0.col1 FROM tab2 AS cor0 ---- 0 2 skipif mysql # not compatible query I rowsort label-3168 SELECT DISTINCT - - cor0.col2 / cor0.col1 FROM tab2 AS cor0 ---- 0 2 query I rowsort SELECT + 6 + 67 * + col2 FROM tab0 AS cor0 ---- 2217 5500 73 query I rowsort SELECT ALL ( 21 ) * + col1 FROM tab2 cor0 ---- 1239 357 651 onlyif mysql # use DIV operator for integer division query I rowsort label-3171 SELECT + cor0.col2 DIV + cor0.col2 col2 FROM tab0 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3171 SELECT + cor0.col2 / + cor0.col2 col2 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT - col0 * 55 + + col0 FROM tab0 AS cor0 ---- -1296 -1890 -4806 query I rowsort SELECT - ( - cor0.col0 ) FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd onlyif mysql # use DIV operator for integer division query I rowsort label-3174 SELECT + + 53 DIV col0 - col1 FROM tab1 AS cor0 ---- -10 -13 -9 skipif mysql # not compatible query I rowsort label-3174 SELECT + + 53 / col0 - col1 FROM tab1 AS cor0 ---- -10 -13 -9 query I rowsort SELECT col1 - col1 * + 18 FROM tab0 AS cor0 ---- -1462 -1547 -1649 onlyif mysql # use DIV operator for integer division query I rowsort label-3176 SELECT col0 DIV col2 + - tab0.col0 AS col1 FROM tab0 ---- -24 -88 0 skipif mysql # not compatible query I rowsort label-3176 SELECT col0 / col2 + - tab0.col0 AS col1 FROM tab0 ---- -24 -88 0 query I rowsort SELECT - + col1 * ( + 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-3178 SELECT CAST( 4 AS SIGNED ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to 6fec965b60b9885c4af73e85422cfd9b skipif mysql # not compatible query I rowsort label-3178 SELECT CAST ( 4 AS INTEGER ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to 6fec965b60b9885c4af73e85422cfd9b query I rowsort SELECT ALL + cor1.col1 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3180 SELECT DISTINCT + - col0 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-3180 SELECT DISTINCT + - col0 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- -35 -7298 -792 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3181 SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3181 SELECT ALL - col2 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 + ( - col0 ) * cor0.col0 AS col2 FROM tab1 AS cor0 ---- -4032 -6 -6320 query I rowsort SELECT ALL - tab2.col0 + col2 + 10 AS col0 FROM tab2 ---- -31 -42 30 query I rowsort SELECT + col0 * - 98 * 23 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -15771 -175734 -177987 query I rowsort SELECT + col1 * 32 - - col1 FROM tab0 ---- 2838 3003 3201 query I rowsort SELECT ALL col2 * - 93 FROM tab0 ---- -3069 -7626 -93 query I rowsort SELECT - 51 * col2 AS col0 FROM tab1 AS cor0 ---- -2754 -2907 -4896 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 26 * + ( col1 ) col0 FROM tab0 AS cor0 ---- 2236 2366 2522 query I rowsort SELECT - 2 * col2 AS col2 FROM tab0 AS cor0 ---- -164 -2 -66 query I rowsort SELECT ALL - - cor0.col0 + - ( - cor0.col2 * col0 ) FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT ALL 2 FROM tab2, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 535345c50a19fdab97ce05d1837b1f09 query I rowsort SELECT + - col2 * cor0.col1 * col2 AS col1 FROM tab0 AS cor0 ---- -611884 -93654 -97 query I rowsort SELECT - - col0 * - ( - col0 ) FROM tab1 cor0 ---- 4096 6400 9 query I rowsort SELECT 72 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 92cc3d5daa550304e96c1542787691c7 query I rowsort SELECT ALL - ( - 60 ) * + col2 FROM tab1 AS cor0 ---- 3240 3420 5760 query I rowsort SELECT - ( - col2 ) * tab1.col2 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT + + 14 * col1 * col0 + + col0 + + 6 AS col1 FROM tab0 cor0 ---- 113481 28926 47571 onlyif mysql # use DIV operator for integer division query I rowsort label-3198 SELECT ( - 60 ) DIV col2 FROM tab1 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-3198 SELECT ( - 60 ) / col2 FROM tab1 AS cor0 ---- -1 -1 0 query I rowsort SELECT ( 82 ) AS col2 FROM tab1 AS cor0 ---- 82 82 82 query I rowsort SELECT ALL ( 33 ) * - col0 AS col0 FROM tab0 AS cor0 ---- -1155 -2937 -792 query I rowsort SELECT - ( + cor0.col1 ) * + ( col2 ) FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT + 47 + col0 AS col2 FROM tab1 AS cor0 ---- 111 127 50 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + cor0.col2 col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT - + 59 * col1 AS col1 FROM tab0 AS cor0 ---- -5074 -5369 -5723 query I rowsort SELECT + 94 + - ( + col1 ) FROM tab2 ---- 35 63 77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 35 * + col1 * + col1 col2 FROM tab0 ---- -258860 -289835 -329315 query I rowsort SELECT ( - col0 ) * ( 71 ) + - col0 FROM tab2 AS cor0 ---- -504 -5616 -5688 query I rowsort SELECT + tab0.col2 * cor0.col2 + + cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to de49394bd5df3831030adb4642cc9b0a onlyif mysql # use DIV operator for integer division query I rowsort label-3209 SELECT col1 + + col0 DIV col0 AS col1 FROM tab2 AS cor0 ---- 18 32 60 skipif mysql # not compatible query I rowsort label-3209 SELECT col1 + + col0 / col0 AS col1 FROM tab2 AS cor0 ---- 18 32 60 query I rowsort SELECT + - col2 * + col2 * - cor0.col2 FROM tab1 AS cor0 ---- 157464 185193 884736 query I rowsort SELECT DISTINCT ( 89 ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 89 onlyif mysql # use DIV operator for integer division query I rowsort label-3212 SELECT DISTINCT col0 DIV - tab2.col1 + - col1 DIV + 51 AS col2 FROM tab2 ---- -2 -4 0 skipif mysql # not compatible query I rowsort label-3212 SELECT DISTINCT col0 / - tab2.col1 + - col1 / + 51 AS col2 FROM tab2 ---- -2 -4 0 query I rowsort SELECT cor0.col1 + + cor0.col2 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 15ff38272c484fb486e1883e64781cf3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col0 + - col2 col0 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT - + cor0.col1 * + col2 + - cor0.col1 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT ALL 16 + + col1 * + col2 AS col1 FROM tab0 AS cor0 ---- 113 2854 7478 query I rowsort SELECT ALL - cor0.col0 * + col1 AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-3218 SELECT DISTINCT col0 + col1 DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- 132 26 90 skipif mysql # not compatible query I rowsort label-3218 SELECT DISTINCT col0 + col1 / CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- 132 26 90 query I rowsort SELECT DISTINCT + - cor0.col1 AS col1 FROM tab2 cor0 ---- -17 -31 -59 query I rowsort SELECT - 59 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f query I rowsort SELECT col2 * - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0 ---- 207936 737280 8748 query I rowsort SELECT DISTINCT - col0 * 85 + + col1 * col2 * col2 AS col2 FROM tab0 cor0 ---- -2878 604319 91614 query I rowsort SELECT 89 * - col0 AS col2 FROM tab2 ---- -623 -6942 -7031 query I rowsort SELECT DISTINCT + col1 + - col0 * col1 * + col1 FROM tab1 ---- -13507 -2002 -6390 query I rowsort SELECT + 91 AS col2 FROM tab0 ---- 91 91 91 query I rowsort SELECT ALL - col2 * + cor0.col0 + - col0 AS col1 FROM tab1 AS cor0 ---- -165 -3712 -7760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * - 72 - + col0 * + col0 col0 FROM tab0 AS cor0 ---- -14473 -6768 -8209 query I rowsort SELECT ALL cor0.col2 * - 23 AS col0 FROM tab2 cor0 ---- -598 -621 -874 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 82 * col1 + col0 col0 FROM tab0 AS cor0 ---- -7028 -7373 -7919 onlyif mysql # use DIV operator for integer division query I rowsort label-3230 SELECT + + col0 DIV + col1 + + col1 FROM tab2 AS cor0 ---- 21 31 60 skipif mysql # not compatible query I rowsort label-3230 SELECT + + col0 / + col1 + + col1 FROM tab2 AS cor0 ---- 21 31 60 query I rowsort SELECT col1 * - col2 * - col0 - - col0 FROM tab2 AS cor0 ---- 119730 51113 5866 onlyif mysql # use DIV operator for integer division query I rowsort label-3232 SELECT + 80 + col0 DIV - col0 col1 FROM tab2 AS cor0 ---- 79 79 79 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3232 SELECT + 80 + col0 / - col0 col1 FROM tab2 AS cor0 ---- 79 79 79 query I rowsort SELECT - col0 * 16 + col2 - col1 FROM tab0 AS cor0 ---- -1433 -437 -656 query I rowsort SELECT - + col2 + - 29 FROM tab1 AS cor0 ---- -125 -83 -86 query I rowsort SELECT ALL col2 * - ( col2 ) FROM tab1 ---- -2916 -3249 -9216 query I rowsort SELECT ALL + + col1 * col0 * cor0.col2 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT - 93 * col2 AS col2 FROM tab0 ---- -3069 -7626 -93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3238 SELECT + - CAST( NULL AS SIGNED ) + + ( - col0 ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3238 SELECT + - CAST ( NULL AS INTEGER ) + + ( - col0 ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 + + col0 * - col1 * - col0 AS col0 FROM tab1 AS cor0 ---- 231 40896 83120 onlyif mysql # use DIV operator for integer division query I rowsort label-3240 SELECT DISTINCT + + col0 DIV - ( - col0 ) + col0 FROM tab1 AS cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-3240 SELECT DISTINCT + + col0 / - ( - col0 ) + col0 FROM tab1 AS cor0 ---- 4 65 81 query I rowsort SELECT DISTINCT - + col0 + 19 FROM tab2 cor0 ---- -59 -60 12 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3242 SELECT ALL col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3242 SELECT ALL col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col0 * - col1 * + 4 AS col0 FROM tab2 AS cor0 ---- -18408 -5372 -868 query I rowsort SELECT ALL + col1 + ( col1 ) * + col2 * + 1 FROM tab0 cor0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT + cor0.col0 + cor0.col0 FROM tab2 cor0 ---- 14 156 158 query I rowsort SELECT DISTINCT - + col2 + col2 * col0 + - cor0.col1 AS col0 FROM tab2 AS cor0 ---- 131 1943 2947 query I rowsort SELECT - ( - col0 ) + col2 FROM tab2 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-3248 SELECT 84 + col2 DIV - 13 FROM tab1 ---- 77 80 80 skipif mysql # not compatible query I rowsort label-3248 SELECT 84 + col2 / - 13 FROM tab1 ---- 77 80 80 query I rowsort SELECT DISTINCT + col2 - + col2 FROM tab2 cor0 ---- 0 query I rowsort SELECT ALL col1 + 68 * - col2 AS col0 FROM tab0 cor0 ---- -2158 -5485 29 query I rowsort SELECT ALL - ( + tab0.col1 ) + + col0 AS col0 FROM tab0 ---- -2 -62 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-3252 SELECT ALL + cor0.col0 DIV + col1 + col2 AS col0 FROM tab1 AS cor0 ---- 102 54 63 skipif mysql # not compatible query I rowsort label-3252 SELECT ALL + cor0.col0 / + col1 + col2 AS col0 FROM tab1 AS cor0 ---- 102 54 63 query I rowsort SELECT - 87 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23 query I rowsort SELECT col0 + + col1 * + col2 * col0 FROM tab0 ---- 3430 664207 68136 query I rowsort SELECT ALL + 28 * - col1 + + col2 FROM tab0 ---- -2375 -2466 -2715 query I rowsort SELECT cor0.col2 * 10 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 41bb55132a35faf7962d281277863aaa query I rowsort SELECT ALL - - 16 + + col2 FROM tab1 AS cor0 ---- 112 70 73 onlyif mysql # use DIV operator for integer division query I rowsort label-3258 SELECT ALL - col1 + + col0 DIV - col1 AS col0 FROM tab1 AS cor0 ---- -16 -19 -26 skipif mysql # not compatible query I rowsort label-3258 SELECT ALL - col1 + + col0 / - col1 AS col0 FROM tab1 AS cor0 ---- -16 -19 -26 query I rowsort SELECT ALL + - 89 * + col1 * - col0 + col2 * col1 FROM tab1 AS cor0 ---- 57530 8346 93808 query I rowsort SELECT col0 * cor0.col0 + + 3 * - cor0.col2 AS col0 FROM tab2 AS cor0 ---- -32 6006 6127 onlyif mysql # use DIV operator for integer division query I rowsort label-3261 SELECT ALL - col1 DIV col1 + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 ---- -79 -8 -80 skipif mysql # not compatible query I rowsort label-3261 SELECT ALL - col1 / col1 + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 ---- -79 -8 -80 query I rowsort SELECT DISTINCT - 85 * tab2.col2 AS col0 FROM tab2 ---- -2210 -2295 -3230 query I rowsort SELECT + cor0.col2 * col0 AS col1 FROM tab0 cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT - - 26 + col0 FROM tab0 cor0 ---- 115 50 61 query I rowsort SELECT ALL + 17 * + col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 137683 35088 57715 onlyif mysql # use DIV operator for integer division query I rowsort label-3266 SELECT ALL + col0 DIV cor0.col0 + - 3 AS col0 FROM tab1 AS cor0 ---- -2 -2 -2 skipif mysql # not compatible query I rowsort label-3266 SELECT ALL + col0 / cor0.col0 + - 3 AS col0 FROM tab1 AS cor0 ---- -2 -2 -2 query I rowsort SELECT + col1 * - 12 * col1 FROM tab0 AS cor0 ---- -112908 -88752 -99372 query I rowsort SELECT + col2 * ( + 68 ) AS col0 FROM tab1 AS cor0 ---- 3672 3876 6528 query I rowsort SELECT DISTINCT 46 * 33 + - col2 * - col2 FROM tab2 cor0 ---- 2194 2247 2962 query I rowsort SELECT 47 + - 33 * col1 FROM tab1 AS cor0 ---- -283 -382 -811 query I rowsort SELECT DISTINCT + - col1 + - col2 * + cor0.col2 FROM tab0 AS cor0 ---- -1175 -6815 -98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3272 SELECT + 25 + - cor0.col2 * - cor0.col1 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- 121 2830 7405 skipif mysql # not compatible query I rowsort label-3272 SELECT + 25 + - cor0.col2 * - cor0.col1 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- 121 2830 7405 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3273 SELECT ALL CAST( NULL AS SIGNED ) * - col2 + + col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3273 SELECT ALL CAST ( NULL AS INTEGER ) * - col2 + + col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT col1 * + 96 - col2 AS col2 FROM tab0 AS cor0 ---- 8223 8654 9311 query I rowsort SELECT ALL + + col2 + + col0 * + col0 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT DISTINCT - + col1 + ( + cor0.col1 ) AS col1 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT + 8 * - col2 + + 69 AS col2 FROM tab1 AS cor0 ---- -363 -387 -699 query I rowsort SELECT 9 * col2 + cor0.col0 + col1 * - col0 FROM tab2 cor0 ---- -4290 -922 33 query I rowsort SELECT + ( + col2 ) * + col1 + - col0 + col2 AS col2 FROM tab0 ---- 2847 63 7455 query I rowsort SELECT 81 * + col0 AS col1 FROM tab2 AS cor0 ---- 567 6318 6399 query I rowsort SELECT ALL 5 + col2 FROM tab2 ---- 31 32 43 query I rowsort SELECT DISTINCT - tab0.col0 + - col0 * tab0.col1 AS col2 FROM tab0 ---- -2088 -3430 -8188 onlyif mysql # use DIV operator for integer division query I rowsort label-3283 SELECT - col1 * + ( tab0.col2 ) + 45 + 98 DIV + col0 AS col2 FROM tab0 ---- -2789 -50 -7416 skipif mysql # not compatible query I rowsort label-3283 SELECT - col1 * + ( tab0.col2 ) + 45 + 98 / + col0 AS col2 FROM tab0 ---- -2789 -50 -7416 query I rowsort SELECT DISTINCT + 2 + - col0 + + col1 FROM tab1 ---- -52 -65 25 query I rowsort SELECT 49 + + 39 FROM tab0 ---- 88 88 88 query I rowsort SELECT DISTINCT 33 + col1 + - col0 FROM tab2 ---- -29 14 57 query I rowsort SELECT - - col1 + - col0 * - col0 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT + col1 * 71 FROM tab2 ---- 1207 2201 4189 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 cor2 ---- 3645 values hashing to 7eb416b97f0ed263f6364cf59aa64c2b query I rowsort SELECT col0 * 43 FROM tab1 ---- 129 2752 3440 query I rowsort SELECT col0 * 61 AS col0 FROM tab1 ---- 183 3904 4880 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3292 SELECT ALL - CAST( - 50 AS SIGNED ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 skipif mysql # not compatible query I rowsort label-3292 SELECT ALL - CAST ( - 50 AS INTEGER ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 query I rowsort SELECT - ( 27 * tab2.col1 + - 96 ) FROM tab2 ---- -1497 -363 -741 query I rowsort SELECT DISTINCT - 43 AS col1 FROM tab0 ---- -43 query I rowsort SELECT ( col0 ) * cor0.col2 AS col0 FROM tab1 AS cor0 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - 58 * 29 + - col2 col2 FROM tab2 AS cor0 ---- 1644 1655 1656 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3297 SELECT ALL ( col1 * col2 + - CAST( NULL AS SIGNED ) ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3297 SELECT ALL ( col1 * col2 + - CAST ( NULL AS INTEGER ) ) FROM tab2 ---- NULL NULL NULL query I rowsort SELECT 81 AS col2 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 0a85639e0dddbffdab2cb16b027cb360 onlyif mysql # use DIV operator for integer division query I rowsort label-3299 SELECT - tab1.col0 DIV + col1 AS col2 FROM tab1 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-3299 SELECT - tab1.col0 / + col1 AS col2 FROM tab1 ---- -6 -6 0 query I rowsort SELECT - 70 * col0 + + col0 * 53 FROM tab1 AS cor0 ---- -1088 -1360 -51 query I rowsort SELECT ALL - 47 * col2 + col1 FROM tab0 AS cor0 ---- -1465 -3763 50 query I rowsort SELECT DISTINCT + + col2 - col1 AS col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT col2 + col1 * cor0.col0 * col0 FROM tab0 AS cor0 ---- 118826 49569 720893 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + + col0 + 99 * col2 col1 FROM tab1 AS cor0 ---- 5403 5764 9680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + col2 col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT col0 * + col1 + col0 + - col2 AS col1 FROM tab1 AS cor0 ---- 1024 27 647 onlyif mysql # use DIV operator for integer division query I rowsort label-3307 SELECT DISTINCT col0 + col2 DIV 74 FROM tab2 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-3307 SELECT DISTINCT col0 + col2 / 74 FROM tab2 ---- 7 78 79 query I rowsort SELECT - col2 * 43 - ( + cor0.col1 ) AS col2 FROM tab1 cor0 ---- -2348 -2461 -4141 query I rowsort SELECT col1 + 24 + - col2 AS col0 FROM tab2 ---- 28 3 57 query I rowsort SELECT ALL - col0 + + 95 - 21 * + col0 FROM tab0 ---- -1863 -433 -675 query I rowsort SELECT + col2 + - col0 - + col0 AS col2 FROM tab2 ---- -120 -130 13 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3312 SELECT col0 * + CAST( + col0 AS SIGNED ) - col1 FROM tab0 AS cor0 ---- 1128 490 7830 skipif mysql # not compatible query I rowsort label-3312 SELECT col0 * + CAST ( + col0 AS INTEGER ) - col1 FROM tab0 AS cor0 ---- 1128 490 7830 query I rowsort SELECT DISTINCT - col1 + col2 * col1 AS col0 FROM tab0 cor0 ---- 0 2752 7371 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3314 SELECT + CAST( NULL AS DECIMAL ) / 91 + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3314 SELECT + CAST ( NULL AS REAL ) / 91 + col2 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + cor0.col0 + - 16 AS col0 FROM tab0 AS cor0 ---- 19 73 8 query I rowsort SELECT - - 25 * col2 * cor0.col0 + ( - cor0.col1 ) * col1 AS col0 FROM tab1 cor0 ---- 191831 3374 91100 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3317 SELECT CAST( NULL AS SIGNED ) + col0 * + cor0.col1 / + col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3317 SELECT CAST ( NULL AS INTEGER ) + col0 * + cor0.col1 / + col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 36 * col1 + cor0.col2 * col1 AS col0 FROM tab0 AS cor0 ---- -258 -3395 4186 query I rowsort SELECT ALL + cor0.col1 + tab0.col0 FROM tab0, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 0d3314bb1336bbbe450f5f7434b6b3cd query I rowsort SELECT DISTINCT 21 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 21 query I rowsort SELECT ALL ( 77 ) * col1 FROM tab1 AS cor0 ---- 1001 2002 770 query I rowsort SELECT ALL 52 + - col1 * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -1291 -165 -4550 onlyif mysql # use DIV operator for integer division query I rowsort label-3323 SELECT - col0 DIV - col2 FROM tab1 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3323 SELECT - col0 / - col2 FROM tab1 cor0 ---- 0 0 1 query I rowsort SELECT ALL ( 74 ) FROM tab1 cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31 query I rowsort SELECT ALL + 31 * 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to e37383c9292a80d820fa92bb47789e26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3326 SELECT + - col1 * cor0.col0 * - CAST( ( col0 ) AS SIGNED ) FROM tab0 AS cor0 ---- 118825 49536 720811 skipif mysql # not compatible query I rowsort label-3326 SELECT + - col1 * cor0.col0 * - CAST ( ( col0 ) AS INTEGER ) FROM tab0 AS cor0 ---- 118825 49536 720811 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + + col0 * col2 col2 FROM tab0 cor0 ---- 34 7216 759 query I rowsort SELECT DISTINCT 58 * 10 FROM tab1 ---- 580 onlyif mysql # use DIV operator for integer division query I rowsort label-3329 SELECT ALL 69 + + cor0.col0 DIV - col0 FROM tab1 AS cor0 ---- 68 68 68 skipif mysql # not compatible query I rowsort label-3329 SELECT ALL 69 + + cor0.col0 / - col0 FROM tab1 AS cor0 ---- 68 68 68 onlyif mysql # use DIV operator for integer division query I rowsort label-3330 SELECT DISTINCT + cor0.col0 + - col2 DIV ( col2 ) FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-3330 SELECT DISTINCT + cor0.col0 + - col2 / ( col2 ) FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT ALL - 85 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a query I rowsort SELECT - + col2 * col0 - col1 AS col0 FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT - 94 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to a95bfa539191d3f72f6548147d7efb9e query I rowsort SELECT ALL - - ( col2 ) AS col0 FROM tab1 cor0 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab0.col1 col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT ALL - - ( cor0.col2 ) * - col0 + 76 AS col0 FROM tab1 AS cor0 ---- -3572 -7604 -86 query I rowsort SELECT DISTINCT - col2 + ( + cor0.col1 ) * col2 AS col2 FROM tab1 AS cor0 ---- 1152 1350 513 onlyif mysql # use DIV operator for integer division query I rowsort label-3338 SELECT - cor0.col2 * 11 DIV + col1 AS col1 FROM tab2 AS cor0 ---- -24 -4 -9 skipif mysql # not compatible query I rowsort label-3338 SELECT - cor0.col2 * 11 / + col1 AS col1 FROM tab2 AS cor0 ---- -24 -4 -9 query I rowsort SELECT DISTINCT 2 * cor0.col2 FROM tab2 AS cor0 ---- 52 54 76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 67 * + col2 col0 FROM tab1 AS cor0 ---- 3618 3819 6432 query I rowsort SELECT DISTINCT + col0 * + 41 * col2 AS col1 FROM tab0 AS cor0 ---- 1435 299218 32472 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( col1 ) * + col0 * col1 col2 FROM tab1 cor0 ---- 13520 2028 6400 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab1 cor2 ---- 3645 values hashing to 71d467ba3372dfdd21847af1687c92e7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 1 col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b onlyif mysql # use DIV operator for integer division query I rowsort label-3345 SELECT ALL col0 + col0 DIV + col1 AS col2 FROM tab1 AS cor0 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-3345 SELECT ALL col0 + col0 / + col1 AS col2 FROM tab1 AS cor0 ---- 3 70 86 onlyif mysql # use DIV operator for integer division query I rowsort label-3346 SELECT ALL + col0 * + col1 + + col0 DIV + col0 col2 FROM tab0 AS cor0 ---- 2065 3396 8100 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3346 SELECT ALL + col0 * + col1 + + col0 / + col0 col2 FROM tab0 AS cor0 ---- 2065 3396 8100 query I rowsort SELECT DISTINCT + + 94 * col0 + col0 - cor0.col2 * - col0 FROM tab2 AS cor0 ---- 10507 854 9438 query I rowsort SELECT ALL + 91 * col2 FROM tab2 cor0 ---- 2366 2457 3458 query I rowsort SELECT ALL - 81 * col1 + col2 * 88 - col0 FROM tab0 AS cor0 ---- -244 -4086 -7804 query I rowsort SELECT + 28 + col2 FROM tab2 ---- 54 55 66 query I rowsort SELECT ALL + ( ( + col1 ) ) * tab1.col1 AS col0 FROM tab1 ---- 100 169 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 42 col1 FROM tab2 ---- 42 42 42 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3353 SELECT CAST( 63 AS SIGNED ) - - col2 FROM tab2 ---- 101 89 90 skipif mysql # not compatible query I rowsort label-3353 SELECT CAST ( 63 AS INTEGER ) - - col2 FROM tab2 ---- 101 89 90 query I rowsort SELECT ALL 54 * tab1.col2 AS col2 FROM tab1 ---- 2916 3078 5184 onlyif mysql # use DIV operator for integer division query I rowsort label-3355 SELECT + col1 + col0 DIV - 57 AS col2 FROM tab2 AS cor0 ---- 16 31 58 skipif mysql # not compatible query I rowsort label-3355 SELECT + col1 + col0 / - 57 AS col2 FROM tab2 AS cor0 ---- 16 31 58 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3356 SELECT - col1 * CAST( NULL AS SIGNED ) + + col2 - col2 * + ( col0 ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3356 SELECT - col1 * CAST ( NULL AS INTEGER ) + + col2 - col2 * + ( col0 ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL 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 + col0 + 57 * col1 FROM tab2 AS cor0 ---- 1048 1774 3441 query I rowsort SELECT + col2 * col1 + col1 * - col0 AS col1 FROM tab0 cor0 ---- -3298 -637 774 query I rowsort SELECT DISTINCT - - col0 * ( - ( col0 ) + + cor0.col2 ) AS col0 FROM tab1 AS cor0 ---- -448 1280 153 query I rowsort SELECT ALL col2 * + 73 FROM tab2 AS cor0 ---- 1898 1971 2774 query I rowsort SELECT - col0 + ( - cor0.col1 ) FROM tab0 cor0 ---- -110 -132 -180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab1.col2 - - col1 col0 FROM tab1 ---- 109 67 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 * + col2 * + 90 + - col2 * col2 + + 42 col2 FROM tab2 AS cor0 ---- 128558 60206 64923 onlyif mysql # use DIV operator for integer division query I rowsort label-3365 SELECT ALL col1 DIV - col0 col0 FROM tab1 AS cor0 ---- -8 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3365 SELECT ALL col1 / - col0 col0 FROM tab1 AS cor0 ---- -8 0 0 query I rowsort SELECT + + col1 + - 39 * 94 + col0 AS col1 FROM tab0 cor0 ---- -3486 -3534 -3556 query I rowsort SELECT ALL + + col1 * + col2 + - col1 AS col1 FROM tab0 AS cor0 ---- 0 2752 7371 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3368 SELECT col1 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3368 SELECT col1 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col2 * + col1 + + col0 FROM tab1 AS cor0 ---- 1328 1407 634 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3370 SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( + col2 ) / + col1 AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3370 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( + col2 ) / + col1 AS col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - - col1 + - col2 * + col0 AS col0 FROM tab1 cor0 ---- -136 -3638 -7667 query I rowsort SELECT + - cor0.col0 * + ( + 42 ) * cor0.col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 1199120e7435f466414b1692169609bc query I rowsort SELECT 92 * + col0 FROM tab0 cor0 ---- 2208 3220 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-3374 SELECT + cor0.col0 DIV + col1 + col0 AS col2 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-3374 SELECT + cor0.col0 / + col1 + col0 AS col2 FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-3375 SELECT + - col1 DIV + col1 AS col0 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3375 SELECT + - col1 / + col1 AS col0 FROM tab0 AS cor0 ---- -1 -1 -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3376 SELECT + CAST( NULL AS DECIMAL ) * col0 / - col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3376 SELECT + CAST ( NULL AS REAL ) * col0 / - col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 1 + + col2 * col0 AS col0 FROM tab2 AS cor0 ---- 188 2027 3001 query I rowsort SELECT - col0 + tab0.col2 * + col2 FROM tab0 ---- -34 1065 6635 query I rowsort SELECT - ( + col1 * tab1.col2 ) AS col1 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT - - col0 * + col2 * col0 + col2 + - 90 FROM tab2 AS cor0 ---- 1260 158120 237106 onlyif mysql # use DIV operator for integer division query I rowsort label-3381 SELECT ALL - + 29 + + col2 DIV + col1 AS col1 FROM tab2 AS cor0 ---- -27 -29 -29 skipif mysql # not compatible query I rowsort label-3381 SELECT ALL - + 29 + + col2 / + col1 AS col1 FROM tab2 AS cor0 ---- -27 -29 -29 query I rowsort SELECT DISTINCT - ( 73 ) FROM tab1 ---- -73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - col2 ) + col1 col1 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT DISTINCT ( - col2 + + col2 ) AS col1 FROM tab0 ---- 0 query I rowsort SELECT + ( - 5 ) * - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 4a6896ddd09b72f74e533e3e01c820bb query I rowsort SELECT DISTINCT + + col1 * - col2 AS col2 FROM tab1 cor0 ---- -1248 -1404 -570 query I rowsort SELECT DISTINCT + col0 - col2 FROM tab2 cor0 ---- -20 41 52 query I rowsort SELECT col1 * ( - col2 ) * col2 FROM tab2 AS cor0 ---- -22599 -24548 -39884 query I rowsort SELECT + - col1 * - 20 + col2 FROM tab1 AS cor0 ---- 257 356 574 query I rowsort SELECT DISTINCT + - col1 * + ( col1 ) + cor0.col1 AS col0 FROM tab0 AS cor0 ---- -7310 -8190 -9312 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3391 SELECT ALL col0 + + CAST( NULL AS SIGNED ) * - col1 / col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3391 SELECT ALL col0 + + CAST ( NULL AS INTEGER ) * - col1 / col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT - - col2 - cor0.col0 * col0 FROM tab0 cor0 ---- -1224 -543 -7839 onlyif mysql # use DIV operator for integer division query I rowsort label-3393 SELECT + col1 DIV - col1 + - ( 36 ) FROM tab1 AS cor0 ---- -37 -37 -37 skipif mysql # not compatible query I rowsort label-3393 SELECT + col1 / - col1 + - ( 36 ) FROM tab1 AS cor0 ---- -37 -37 -37 query I rowsort SELECT + + col1 + + col1 - + col2 * - col2 AS col0 FROM tab0 AS cor0 ---- 1261 195 6906 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3395 SELECT - col1 * + col1 + CAST( NULL AS SIGNED ) 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-3395 SELECT - col1 * + col1 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3396 SELECT + 46 * col1 * CAST( + col2 AS SIGNED ) FROM tab1 ---- 26220 57408 64584 skipif mysql # not compatible query I rowsort label-3396 SELECT + 46 * col1 * CAST ( + col2 AS INTEGER ) FROM tab1 ---- 26220 57408 64584 query I rowsort SELECT - col0 - + col0 * cor0.col2 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT DISTINCT - col2 * - col2 + col0 + col1 FROM tab1 AS cor0 ---- 2945 3323 9309 query I rowsort SELECT - - 41 * - col0 - ( col0 * col0 ) FROM tab0 cor0 ---- -11570 -1560 -2660 query I rowsort SELECT ALL + 98 * col1 FROM tab2 AS cor0 ---- 1666 3038 5782 onlyif mysql # use DIV operator for integer division query I rowsort label-3401 SELECT - col0 * col1 + - col1 DIV col0 FROM tab1 AS cor0 ---- -1040 -640 -86 skipif mysql # not compatible query I rowsort label-3401 SELECT - col0 * col1 + - col1 / col0 FROM tab1 AS cor0 ---- -1040 -640 -86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * - 17 + ( col1 ) * + ( cor0.col0 ) col1 FROM tab2 AS cor0 ---- 1632 5605 744 query I rowsort SELECT ALL + cor0.col0 + 4 FROM tab0 AS cor0 ---- 28 39 93 query I rowsort SELECT + col0 + col0 * col2 FROM tab0 cor0 ---- 70 7387 816 query I rowsort SELECT - col2 + - 15 * - cor0.col0 FROM tab2 AS cor0 ---- 1144 1147 78 query I rowsort SELECT - 27 * + col2 FROM tab1 ---- -1458 -1539 -2592 query I rowsort SELECT + - 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 40442a74794ded4c78101eefe525a5bb query I rowsort SELECT + 60 * col0 FROM tab1 ---- 180 3840 4800 query I rowsort SELECT + cor0.col1 * 11 FROM tab0, tab1 cor0 ---- 9 values hashing to 2317ce0c4c8f7dfe40c62e4e9ed83fb1 query I rowsort SELECT 3 * + 79 AS col1 FROM tab0 AS cor0 ---- 237 237 237 query I rowsort SELECT ALL - cor0.col0 AS col2 FROM tab0, tab1 cor0 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 onlyif mysql # use DIV operator for integer division query I rowsort label-3412 SELECT ( col0 ) DIV tab1.col0 AS col0 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-3412 SELECT ( col0 ) / tab1.col0 AS col0 FROM tab1 ---- 1 1 1 query I rowsort SELECT DISTINCT + - col0 * + col1 * ( 72 ) + col1 FROM tab0 AS cor0 ---- -148522 -244343 -583037 query I rowsort SELECT + col1 * + col2 + col2 AS col0 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT ALL col2 * col2 + col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT DISTINCT col0 * tab2.col2 * + col0 + + ( col1 * + col1 + 62 ) AS col0 FROM tab2 ---- 161727 2346 237509 onlyif mysql # use DIV operator for integer division query I rowsort label-3417 SELECT ALL ( col0 ) DIV + col2 AS col2 FROM tab0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-3417 SELECT ALL ( col0 ) / + col2 AS col2 FROM tab0 ---- 0 1 35 query I rowsort SELECT DISTINCT 8 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 8 query I rowsort SELECT ALL + 24 + col0 * cor0.col2 AS col2 FROM tab2 cor0 ---- 2052 213 3026 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3420 SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-3420 SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col0 + - ( 54 ) col2 FROM tab0 AS cor0 ---- -7352 -846 -89 query I rowsort SELECT 83 + col1 * col0 FROM tab2 ---- 1426 300 4685 query I rowsort SELECT ALL 52 + tab1.col2 * + ( - col0 ) AS col2 FROM tab1 ---- -110 -3596 -7628 query I rowsort SELECT ALL - tab2.col0 - + tab2.col1 FROM tab2 ---- -137 -38 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 34 + + col0 - 59 * ( col2 ) col1 FROM tab0 ---- -1957 -4783 -58 query I rowsort SELECT ( - col0 ) * - 92 - cor0.col0 AS col2 FROM tab0 AS cor0 ---- 2184 3185 8099 query I rowsort SELECT ALL + 4 * cor0.col0 + col2 AS col0 FROM tab2 AS cor0 ---- 338 354 55 query I rowsort SELECT ALL - + 52 - + cor0.col0 * - 52 FROM tab1 AS cor0 ---- 104 3276 4108 onlyif mysql # use DIV operator for integer division query I rowsort label-3429 SELECT DISTINCT - col0 DIV cor0.col1 + col1 - col2 FROM tab1 AS cor0 ---- -28 -53 -89 skipif mysql # not compatible query I rowsort label-3429 SELECT DISTINCT - col0 / cor0.col1 + col1 - col2 FROM tab1 AS cor0 ---- -28 -53 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3430 SELECT DISTINCT - col0 * col1 + + CAST( NULL AS DECIMAL ) FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-3430 SELECT DISTINCT - col0 * col1 + + CAST ( NULL AS REAL ) FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT DISTINCT col1 * - 16 + 11 FROM tab1 ---- -149 -197 -405 query I rowsort SELECT - col1 * - ( col0 * + col2 ) AS col2 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT + + col0 * + ( col0 ) AS col1 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT cor0.col2 + 78 * 21 FROM tab1 AS cor0 ---- 1692 1695 1734 query I rowsort SELECT DISTINCT - col2 + 43 AS col1 FROM tab0 ---- -39 10 42 query I rowsort SELECT DISTINCT - tab0.col2 + - col1 + + tab0.col0 * + col1 * 10 AS col2 FROM tab0 ---- 20521 33852 80817 query I rowsort SELECT - + 73 * cor0.col2 AS col1 FROM tab2 AS cor0 ---- -1898 -1971 -2774 query I rowsort SELECT 0 * 15 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT 60 AS col0 FROM tab0, tab1 cor0 ---- 9 values hashing to a97561e17ecaa618227c75a57b268f33 query I rowsort SELECT ALL - + col1 - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -20 -26 -52 query I rowsort SELECT ALL - col1 - ( - col1 * + col1 ) FROM tab2 AS cor0 ---- 272 3422 930 query I rowsort SELECT DISTINCT - 90 + + col0 * + col2 FROM tab2 AS cor0 ---- 1938 2912 99 query I rowsort SELECT DISTINCT - + col1 + + col2 * - col1 FROM tab0 AS cor0 ---- -194 -2924 -7553 onlyif mysql # use DIV operator for integer division query I rowsort label-3445 SELECT ALL cor0.col1 * ( - col2 ) DIV - 2 - col2 * col2 AS col2 FROM tab1 AS cor0 ---- -2214 -2964 -8592 skipif mysql # not compatible query I rowsort label-3445 SELECT ALL cor0.col1 * ( - col2 ) / - 2 - col2 * col2 AS col2 FROM tab1 AS cor0 ---- -2214 -2964 -8592 query I rowsort SELECT + - 23 * + cor0.col1 * col1 AS col2 FROM tab2 AS cor0 ---- -22103 -6647 -80063 query I rowsort SELECT col0 FROM tab0 WHERE + col0 + - col2 NOT BETWEEN col1 AND NULL ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-3448 SELECT tab1.col2 * - tab1.col1 * col1 - + col2 DIV tab1.col2 FROM tab1 ---- -16225 -36505 -5701 skipif mysql # not compatible query I rowsort label-3448 SELECT tab1.col2 * - tab1.col1 * col1 - + col2 / tab1.col2 FROM tab1 ---- -16225 -36505 -5701 query I rowsort SELECT ALL col2 * col0 + col2 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT + col1 * col0 + col1 * col1 FROM tab0 ---- 12804 16380 9460 query I rowsort SELECT - col0 + - col1 + col1 AS col1 FROM tab1 ---- -3 -64 -80 query I rowsort SELECT col0 * - tab0.col1 * + col1 AS col1 FROM tab0 ---- -177504 -329315 -737009 query I rowsort SELECT + col0 * col0 * + col0 + + col2 * - col0 + + col0 AS col0 FROM tab2 ---- 161 472602 490116 query I rowsort SELECT tab2.col1 / col2 AS col2 FROM tab2 WHERE NULL IN ( col1 ) ---- query I rowsort SELECT - col0 + cor0.col1 + - col2 FROM tab1 AS cor0 ---- -111 -163 -31 query I rowsort SELECT col1 + + col1 + - col0 * + col2 * col0 FROM tab0 AS cor0 ---- -1031 -18836 -649340 query I rowsort SELECT DISTINCT col0 * + col2 - col1 AS col1 FROM tab0 ---- -62 706 7207 query I rowsort SELECT ALL col2 * col1 + col0 * col1 * - col2 AS col0 FROM tab2 ---- -118118 -5022 -50388 query I rowsort SELECT col0 + - col0 * - col0 FROM tab2 ---- 56 6162 6320 query I rowsort SELECT ALL + col2 * - col1 + col1 - col0 AS col2 FROM tab0 ---- -2776 -35 -7460 query I rowsort SELECT DISTINCT col2 + col0 * - col0 - - col0 * - col0 FROM tab1 ---- -12704 -8135 36 query I rowsort SELECT DISTINCT - col2 FROM tab1 WHERE NOT col2 > col0 ---- -57 query I rowsort SELECT cor0.col0 + col1 * col0 AS col2 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT - col0 + col1 * + col2 + + col2 FROM tab0 AS cor0 ---- 2847 63 7455 query I rowsort SELECT ALL + col2 + col0 * - tab0.col1 AS col0 FROM tab0 ---- -2031 -3394 -8017 query I rowsort SELECT col1 + col1 * col2 AS col0 FROM tab0 cor0 ---- 194 2924 7553 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col1 * col1 * - col1 + col1 col2 FROM tab2 AS cor0 ---- 205438 29822 4930 query I rowsort SELECT DISTINCT - col0 * col0 + + col0 * col2 FROM tab1 cor0 ---- -448 1280 153 query I rowsort SELECT DISTINCT - + col0 + - col0 * col2 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT DISTINCT - col0 * col0 + col2 * - cor0.col0 FROM tab2 AS cor0 ---- -238 -8112 -9243 onlyif mysql # use DIV operator for integer division query I rowsort label-3471 SELECT ALL - - col0 DIV - col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-3471 SELECT ALL - - col0 / - col0 FROM tab1 AS cor0 ---- -1 -1 -1 onlyif mysql # use DIV operator for integer division query I rowsort label-3472 SELECT - col0 * + col0 DIV + col0 FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-3472 SELECT - col0 * + col0 / + col0 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT DISTINCT + - col0 + col2 * - col0 AS col1 FROM tab2 AS cor0 ---- -196 -2106 -3081 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 / col1 >= NULL ---- query I rowsort SELECT DISTINCT col2 * col0 * cor0.col2 - col1 FROM tab1 AS cor0 ---- 207926 737267 8722 query I rowsort SELECT col2 - + col1 FROM tab1 AS cor0 WHERE cor0.col0 NOT IN ( + col2 * + col0 + - col1 * col0 ) ---- 28 47 83 query I rowsort SELECT DISTINCT - col0 - + col2 AS col0 FROM tab0 cor0 ---- -171 -36 -57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 - - col0 * + col1 col0 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT ALL tab0.col0 * col0 - + col0 FROM tab0 ---- 1190 552 7832 query I rowsort SELECT col0 * col0 * tab2.col1 AS col0 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT col1 * - tab1.col1 - col0 AS col0 FROM tab1 ---- -164 -249 -679 query I rowsort SELECT DISTINCT cor0.col1 * col1 + ( col1 ) AS col2 FROM tab0 AS cor0 ---- 7482 8372 9506 query I rowsort SELECT + + col0 + - col1 * - 3 * cor0.col0 + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 13910 4146 685 query I rowsort SELECT + cor0.col2 + col2 - + col0 FROM tab0 AS cor0 ---- -33 42 75 query I rowsort SELECT DISTINCT + + col0 * ( 65 ) FROM tab0 AS cor0 ---- 1560 2275 5785 query I rowsort SELECT - + col0 - ( - 80 ) AS col1 FROM tab0 AS cor0 ---- -9 45 56 query I rowsort SELECT col0 + 48 * 60 AS col2 FROM tab0 AS cor0 ---- 2904 2915 2969 query I rowsort SELECT + 24 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef query I rowsort SELECT ALL + tab2.col1 + col2 AS col0 FROM tab2 ---- 55 58 85 query I rowsort SELECT DISTINCT col1 - col1 * + col0 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT + col1 + + col0 * tab1.col2 AS col1 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0 + col2 / - col1 ---- query I rowsort SELECT ALL + tab2.col0 + col2 * + col2 AS col1 FROM tab2 ---- 1523 736 754 onlyif mysql # use DIV operator for integer division query I rowsort label-3494 SELECT tab0.col1 + - col2 DIV - col2 FROM tab0 ---- 87 92 98 skipif mysql # not compatible query I rowsort label-3494 SELECT tab0.col1 + - col2 / - col2 FROM tab0 ---- 87 92 98 query I rowsort SELECT ALL + col0 + tab1.col0 AS col0 FROM tab1 ---- 128 160 6 onlyif mysql # use DIV operator for integer division query I rowsort label-3496 SELECT - col0 + col0 DIV + tab2.col1 FROM tab2 ---- -7 -75 -77 skipif mysql # not compatible query I rowsort label-3496 SELECT - col0 + col0 / + tab2.col1 FROM tab2 ---- -7 -75 -77 query III rowsort SELECT * FROM tab0 WHERE NOT ( NULL ) < col2 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * + col1 + - col0 col0 FROM tab2 ---- 1456 567 830 query I rowsort SELECT ALL - 44 * col2 + ( - col0 ) * col2 AS col1 FROM tab2 AS cor0 ---- -1377 -3172 -4674 query I rowsort SELECT + 41 * - 61 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 00bc3da89d369b7effaac72c7199d4f2 query I rowsort SELECT ALL + cor0.col1 + - col2 AS col0 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ( + 42 ) FROM tab0, tab1 AS cor0 ---- 9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442 query I rowsort SELECT col0 * - 69 FROM tab1 ---- -207 -4416 -5520 query I rowsort SELECT + cor0.col2 + ( - col1 ) * - col1 * - cor0.col2 FROM tab1 AS cor0 ---- -16128 -36450 -5643 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3505 SELECT - CAST( col2 AS SIGNED ) + - col0 FROM tab1 AS cor0 ---- -121 -176 -57 skipif mysql # not compatible query I rowsort label-3505 SELECT - CAST ( col2 AS INTEGER ) + - col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT ( col2 ) * col0 + col1 AS col0 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ALL ( 70 ) FROM tab2 AS cor0 ---- 70 70 70 query I rowsort SELECT cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT + col1 * col2 * + col2 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT DISTINCT - col1 * - col1 * - 76 AS col2 FROM tab0 ---- -562096 -629356 -715084 query I rowsort SELECT ALL + tab1.col2 AS col0 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3512 SELECT ALL 95 * col1 * + CAST( NULL AS SIGNED ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3512 SELECT ALL 95 * col1 * + CAST ( NULL AS INTEGER ) FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + + col1 * + ( col0 ) * col2 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT DISTINCT + - col1 + + col1 FROM tab1 cor0 ---- 0 query I rowsort SELECT - col1 + cor0.col0 * col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT ALL + col0 * col1 + col1 * col1 AS col0 FROM tab0 AS cor0 ---- 12804 16380 9460 query I rowsort SELECT ALL col2 + + col1 * + cor0.col0 FROM tab2 cor0 ---- 1381 244 4628 query I rowsort SELECT + 92 * + tab0.col0 AS col2 FROM tab0 ---- 2208 3220 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-3519 SELECT ALL - 10 DIV + col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3519 SELECT ALL - 10 / + col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT + + cor0.col0 * col0 + col1 FROM tab0 AS cor0 ---- 1322 662 8012 query I rowsort SELECT - col0 * col2 - col1 FROM tab1 ---- -188 -3658 -7693 query I rowsort SELECT col0 * + col1 + tab1.col1 AS col1 FROM tab1 ---- 104 1053 650 query I rowsort SELECT ( + tab0.col2 + - col1 ) FROM tab0 ---- -53 -9 -96 query I rowsort SELECT ALL - ( + col1 + + col2 ) FROM tab2 ---- -55 -58 -85 query I rowsort SELECT DISTINCT - 18 + - col0 FROM tab0 AS cor0 ---- -107 -42 -53 onlyif mysql # use DIV operator for integer division query I rowsort label-3526 SELECT ( col1 ) * - col1 DIV - col1 + col2 * - col1 FROM tab2 AS cor0 ---- -1475 -629 -806 skipif mysql # not compatible query I rowsort label-3526 SELECT ( col1 ) * - col1 / - col1 + col2 * - col1 FROM tab2 AS cor0 ---- -1475 -629 -806 onlyif mysql # use DIV operator for integer division query I rowsort label-3527 SELECT - cor0.col0 + col1 DIV - col0 FROM tab0 AS cor0 ---- -27 -37 -90 skipif mysql # not compatible query I rowsort label-3527 SELECT - cor0.col0 + col1 / - col0 FROM tab0 AS cor0 ---- -27 -37 -90 query I rowsort SELECT ALL - - 53 FROM tab2 cor0 ---- 53 53 53 query I rowsort SELECT - 67 * - cor0.col1 + - col2 FROM tab2 AS cor0 ---- 1101 2050 3927 query I rowsort SELECT DISTINCT ( - 90 ) - - col1 FROM tab2 ---- -31 -59 -73 query I rowsort SELECT 59 + + col2 * tab2.col1 AS col0 FROM tab2 ---- 1593 705 896 query I rowsort SELECT ALL - cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2 onlyif mysql # use DIV operator for integer division query I rowsort label-3533 SELECT col1 DIV - 96 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3533 SELECT col1 / - 96 FROM tab2 ---- 0 0 0 query I rowsort SELECT 13 * + col1 + - cor0.col1 * - col0 FROM tab1 AS cor0 ---- 1209 416 770 query I rowsort SELECT DISTINCT col0 + col1 * col2 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT ALL - 66 * + col1 FROM tab1 AS cor0 ---- -1716 -660 -858 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 17 + col0 col0 FROM tab2 AS cor0 ---- -10 61 62 query I rowsort SELECT + col1 * col1 + + col2 * col2 FROM tab2 AS cor0 ---- 1690 1733 4157 query I rowsort SELECT cor0.col0 + - cor0.col2 - ( + col1 + - col2 ) * + col2 FROM tab1 AS cor0 ---- 1461 2686 7952 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3540 SELECT DISTINCT + + col0 * col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3540 SELECT DISTINCT + + col0 * col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT 8 * 72 + - col1 * - 36 FROM tab1 ---- 1044 1512 936 query I rowsort SELECT ALL + ( - col1 ) - + col1 * col1 FROM tab0 ---- -7482 -8372 -9506 query I rowsort SELECT DISTINCT col2 + - col0 * tab2.col2 AS col1 FROM tab2 ---- -162 -2002 -2964 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3544 SELECT DISTINCT 83 + col1 * - CAST( + col0 * + col1 AS SIGNED ) + + col0 AS col0 FROM tab0 ---- -177397 -329197 -736837 skipif mysql # not compatible query I rowsort label-3544 SELECT DISTINCT 83 + col1 * - CAST ( + col0 * + col1 AS INTEGER ) + + col0 AS col0 FROM tab0 ---- -177397 -329197 -736837 query I rowsort SELECT ALL - - 11 + + col2 FROM tab1 AS cor0 ---- 107 65 68 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab2 cor2 ---- 3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703 query I rowsort SELECT 89 * - col1 AS col1 FROM tab1 ---- -1157 -2314 -890 query I rowsort SELECT tab0.col2 * ( 71 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 0f2523bfe6dc2dbed77f633d6bb57f11 query I rowsort SELECT tab0.col0 + tab0.col2 * col0 AS col0 FROM tab0 ---- 70 7387 816 onlyif mysql # use DIV operator for integer division query I rowsort label-3550 SELECT + col0 + col1 DIV tab0.col1 AS col0 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-3550 SELECT + col0 + col1 / tab0.col1 AS col0 FROM tab0 ---- 25 36 90 query I rowsort SELECT col2 * - ( col0 + 77 * 65 ) FROM tab2 AS cor0 ---- -132158 -135324 -193192 query I rowsort SELECT - col1 * - 63 FROM tab0 AS cor0 ---- 5418 5733 6111 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col2 - + col1 * - col1 col2 FROM tab0 ---- 7429 8363 9410 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * + col2 col2 FROM tab0 ---- -35 -7298 -792 query I rowsort SELECT ALL + col0 + + col1 * + col0 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT ALL - col2 + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT ALL 29 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 query I rowsort SELECT DISTINCT - - col2 * col2 + col2 AS col0 FROM tab1 cor0 ---- 2970 3306 9312 query I rowsort SELECT ALL - col1 - 46 FROM tab2 AS cor0 ---- -105 -63 -77 query I rowsort SELECT DISTINCT + col2 * + 46 AS col0 FROM tab0 AS cor0 ---- 1518 3772 46 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * - col2 + cor0.col0 * - cor0.col0 col1 FROM tab0 AS cor0 ---- -1197 -1224 513 query I rowsort SELECT ALL + - 55 * cor0.col2 + - col1 AS col0 FROM tab1 AS cor0 ---- -2996 -3145 -5293 query I rowsort SELECT DISTINCT col2 * + 81 * col2 - - col2 FROM tab2 AS cor0 ---- 117002 54782 59076 query I rowsort SELECT ( 93 ) FROM tab2 cor0 ---- 93 93 93 query I rowsort SELECT DISTINCT col2 + - 43 AS col0 FROM tab1 AS cor0 ---- 11 14 53 query I rowsort SELECT ALL + 74 FROM tab2 AS cor0 ---- 74 74 74 query I rowsort SELECT ALL 48 * + col2 + + col2 * + col1 AS col1 FROM tab0 cor0 ---- 11398 145 4422 query I rowsort SELECT - + ( - 2 ) AS col2 FROM tab2 cor0 ---- 2 2 2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3569 SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 + col1 * + col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3569 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 + col1 * + col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT DISTINCT ( + col2 ) * + col2 AS col2 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT DISTINCT + 16 AS col2 FROM tab1 ---- 16 query I rowsort SELECT DISTINCT col1 + col1 * col2 FROM tab1 cor0 ---- 1261 1430 580 query I rowsort SELECT DISTINCT 84 FROM tab0, tab1 AS cor0 ---- 84 query I rowsort SELECT 55 * col2 AS col2 FROM tab0 AS cor0 ---- 1815 4510 55 query I rowsort SELECT + cor0.col2 * 39 AS col1 FROM tab2 cor0 ---- 1014 1053 1482 query I rowsort SELECT cor0.col2 + - ( + 65 ) FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 9cdc0dc33a54fab7cc09f96e04bbf03c query I rowsort SELECT - 30 * - col2 * - col0 AS col1 FROM tab0 AS cor0 ---- -1050 -218940 -23760 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * + col1 col1 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT + 90 + col0 FROM tab2 AS cor0 ---- 168 169 97 query I rowsort SELECT - - ( + col2 ) * - col2 - 80 AS col1 FROM tab0 AS cor0 ---- -1169 -6804 -81 query I rowsort SELECT - + col0 * - col1 AS col1 FROM tab0 cor0 ---- 2064 3395 8099 query I rowsort SELECT 72 * col1 + - ( 90 ) AS col1 FROM tab2 AS cor0 ---- 1134 2142 4158 skipif mysql # not compatible query I rowsort SELECT + col2 * CAST ( + col2 AS REAL ) * - col2 AS col1 FROM tab1 AS cor0 ---- -157464 -185193 -884736 query I rowsort SELECT col0 * + ( col0 + + col0 ) FROM tab2 AS cor0 ---- 12168 12482 98 query I rowsort SELECT + - col0 * 76 + 79 * + col1 AS col0 FROM tab1 AS cor0 ---- -4074 -5053 1826 query I rowsort SELECT DISTINCT + 84 FROM tab0, tab2 cor0 ---- 84 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3587 SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3587 SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT + + col1 + col2 * + col1 FROM tab1 AS cor0 ---- 1261 1430 580 onlyif mysql # use DIV operator for integer division query I rowsort label-3589 SELECT - - col0 DIV - col1 AS col2 FROM tab1 cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-3589 SELECT - - col0 / - col1 AS col2 FROM tab1 cor0 ---- -6 -6 0 query I rowsort SELECT - col2 + 25 + + ( - col1 ) AS col1 FROM tab2 AS cor0 ---- -30 -33 -60 query I rowsort SELECT col1 * + ( col2 ) + + col0 * col2 AS col1 FROM tab2 AS cor0 ---- 1026 3562 3648 query I rowsort SELECT col1 + + 94 AS col2 FROM tab2 ---- 111 125 153 query I rowsort SELECT - col1 * ( col0 ) FROM tab2 ---- -1343 -217 -4602 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3 ---- 3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e query I rowsort SELECT - col0 * - 61 FROM tab1 AS cor0 ---- 183 3904 4880 query I rowsort SELECT ALL + col1 * + ( - 17 * - col0 ) AS col2 FROM tab0 AS cor0 ---- 137683 35088 57715 onlyif mysql # use DIV operator for integer division query I rowsort label-3597 SELECT ALL + col1 DIV 25 FROM tab1 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-3597 SELECT ALL + col1 / 25 FROM tab1 cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT col1 * - 4 + + col2 AS col0 FROM tab1 AS cor0 ---- -50 17 44 query I rowsort SELECT - cor0.col0 * cor0.col0 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT 30 + tab2.col0 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to dc39546f39c4994da9dfa92c4ba7685f query I rowsort SELECT ALL + 86 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 51 col0 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 cor2 ---- 3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8 query I rowsort SELECT + col0 - - col0 * col2 AS col1 FROM tab1 ---- 165 3712 7760 onlyif mysql # use DIV operator for integer division query I rowsort label-3605 SELECT + col0 DIV + ( col1 ) FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3605 SELECT + col0 / + ( col1 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - ( - 46 ) AS col0 FROM tab2 ---- 46 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3607 SELECT ALL - CAST( NULL AS SIGNED ) * tab0.col1 AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3607 SELECT ALL - CAST ( NULL AS INTEGER ) * tab0.col1 AS col0 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT col2 * 40 AS col0 FROM tab2 ---- 1040 1080 1520 query I rowsort SELECT - - col1 + 50 FROM tab0 AS cor0 ---- 136 141 147 query I rowsort SELECT + ( cor0.col1 ) + col1 * col2 + col1 FROM tab1 AS cor0 ---- 1274 1456 590 query I rowsort SELECT + col2 * 22 AS col1 FROM tab0 ---- 1804 22 726 query I rowsort SELECT - 50 + col1 * - col0 FROM tab1 AS cor0 ---- -1090 -128 -690 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col1 * cor0.col2 + 32 col1 FROM tab0 cor0 ---- 129 2870 7494 query I rowsort SELECT DISTINCT + 72 * col1 + + tab0.col0 AS col0 FROM tab0 ---- 6216 6641 7019 query I rowsort SELECT col2 + - col2 * - 48 + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- 1372 7358 8103 query I rowsort SELECT ALL + + col2 + col1 * + ( col2 ) * + col2 FROM tab0 cor0 ---- 611966 93687 98 query I rowsort SELECT + 39 * col2 + cor0.col1 FROM tab1 cor0 ---- 2132 2233 3757 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + col2 * + col2 col2 FROM tab1 AS cor0 ---- 2890 3239 9203 query I rowsort SELECT - col2 * + col0 * + 2 FROM tab2 AS cor0 ---- -378 -4056 -6004 query I rowsort SELECT ALL + + col2 * col0 + + ( - col0 ) FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT DISTINCT col0 * cor0.col2 + + col2 FROM tab1 cor0 ---- 216 3705 7776 query I rowsort SELECT ALL + col0 * + cor0.col1 + + col2 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT - + col1 + - col2 * col1 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT DISTINCT + - cor0.col2 + - cor0.col2 AS col0 FROM tab0 AS cor0 ---- -164 -2 -66 onlyif mysql # use DIV operator for integer division query I rowsort label-3625 SELECT DISTINCT + 42 DIV col1 + + col1 + 95 FROM tab2 ---- 114 127 154 skipif mysql # not compatible query I rowsort label-3625 SELECT DISTINCT + 42 / col1 + + col1 + 95 FROM tab2 ---- 114 127 154 query I rowsort SELECT 20 * + col1 * col2 + + col2 * col0 AS col2 FROM tab1 AS cor0 ---- 15048 28242 32640 skipif mysql # not compatible query I rowsort SELECT - - CAST ( + col0 AS REAL ) * - col0 + col2 + + cor0.col0 FROM tab1 AS cor0 ---- -3975 -6224 48 query I rowsort SELECT DISTINCT + ( cor0.col1 ) FROM tab1, tab1 AS cor0 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + + col2 * col0 col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT - col0 * + col0 - col2 AS col2 FROM tab1 AS cor0 ---- -4153 -63 -6496 query I rowsort SELECT ALL - - cor0.col1 + 86 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 21ba6badc2e2d538b9d76ba7685c7aa3 query I rowsort SELECT DISTINCT ( ( + col1 ) ) FROM tab0 ---- 86 91 97 query I rowsort SELECT DISTINCT + col0 + - col1 * + col2 FROM tab0 AS cor0 ---- -2814 -62 -7373 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + col0 * cor0.col0 + + 20 col0 FROM tab2 AS cor0 ---- 6026 6182 62 onlyif mysql # use DIV operator for integer division query I rowsort label-3635 SELECT 7 * - col1 + - col1 DIV - ( + col1 ) AS col2 FROM tab2 AS cor0 ---- -118 -216 -412 skipif mysql # not compatible query I rowsort label-3635 SELECT 7 * - col1 + - col1 / - ( + col1 ) AS col2 FROM tab2 AS cor0 ---- -118 -216 -412 query I rowsort SELECT ALL + col2 + + cor0.col2 FROM tab1 cor0 ---- 108 114 192 onlyif mysql # use DIV operator for integer division query I rowsort label-3637 SELECT DISTINCT + 93 DIV + cor0.col1 - col2 AS col2 FROM tab1 AS cor0 ---- -48 -51 -89 skipif mysql # not compatible query I rowsort label-3637 SELECT DISTINCT + 93 / + cor0.col1 - col2 AS col2 FROM tab1 AS cor0 ---- -48 -51 -89 query I rowsort SELECT DISTINCT + + 49 + cor0.col2 FROM tab0 AS cor0 ---- 131 50 82 query I rowsort SELECT DISTINCT + col2 * col0 + col0 * col2 - col0 AS col1 FROM tab2 AS cor0 ---- 371 3978 5925 query I rowsort SELECT ALL + 65 - - 28 AS col2 FROM tab0 ---- 93 93 93 query I rowsort SELECT DISTINCT tab2.col2 * 5 AS col1 FROM tab2, tab1, tab2 cor0 ---- 130 135 190 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 30 * + tab0.col2 col2 FROM tab0 ---- 2460 30 990 query I rowsort SELECT ALL col1 + - 15 FROM tab2 AS cor0 ---- 16 2 44 query I rowsort SELECT - col2 * + 58 AS col1 FROM tab1 AS cor0 ---- -3132 -3306 -5568 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + + ( col2 ) col0 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT ALL cor0.col2 + + 42 * - ( + col1 ) AS col1 FROM tab0 AS cor0 ---- -3579 -3740 -4073 query I rowsort SELECT DISTINCT - col2 + - ( + col2 ) AS col1 FROM tab1 AS cor0 ---- -108 -114 -192 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + cor0.col2 col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT ALL + ( 93 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde query I rowsort SELECT + + col0 * 27 AS col2 FROM tab1 AS cor0 ---- 1728 2160 81 query I rowsort SELECT ALL + col2 * 77 + 94 FROM tab1 AS cor0 ---- 4252 4483 7486 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3652 SELECT + col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-3652 SELECT + col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT ALL col1 * - col0 - + 20 AS col0 FROM tab2 ---- -1363 -237 -4622 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col2 ) - col2 col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col0 - + 53 FROM tab2 AS cor0 ---- -131 -132 -60 query I rowsort SELECT col1 * 28 + col0 FROM tab1 ---- 344 444 731 query I rowsort SELECT col1 + + ( - col0 ) FROM tab1 ---- -54 -67 23 query I rowsort SELECT - col1 + - 54 FROM tab1 ---- -64 -67 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-3659 SELECT col2 + + CAST( tab0.col2 AS SIGNED ) DIV + col0 FROM tab0 ---- 1 34 82 skipif mysql # not compatible query I rowsort label-3659 SELECT col2 + + CAST ( tab0.col2 AS INTEGER ) / + col0 FROM tab0 ---- 1 34 82 query I rowsort SELECT DISTINCT 46 * col0 AS col0 FROM tab2 cor0 ---- 322 3588 3634 query I rowsort SELECT ALL col2 * + cor0.col2 + col2 * col2 FROM tab1 AS cor0 ---- 18432 5832 6498 onlyif mysql # use DIV operator for integer division query I rowsort label-3662 SELECT ALL - col0 + - col0 DIV + 39 AS col0 FROM tab0 AS cor0 ---- -24 -35 -91 skipif mysql # not compatible query I rowsort label-3662 SELECT ALL - col0 + - col0 / + 39 AS col0 FROM tab0 AS cor0 ---- -24 -35 -91 query I rowsort SELECT + col0 + - 2 FROM tab0 ---- 22 33 87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 71 - col2 col1 FROM tab1 AS cor0 ---- -125 -128 -167 onlyif mysql # use DIV operator for integer division query I rowsort label-3665 SELECT DISTINCT - 24 DIV col0 FROM tab1 cor0 ---- -8 0 skipif mysql # not compatible query I rowsort label-3665 SELECT DISTINCT - 24 / col0 FROM tab1 cor0 ---- -8 0 query I rowsort SELECT + col0 + + col0 * - col1 AS col1 FROM tab0 cor0 ---- -2040 -3360 -8010 query I rowsort SELECT + col0 + col2 + - 54 AS col2 FROM tab1 AS cor0 ---- 122 3 67 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3668 SELECT + CAST( NULL AS DECIMAL ) / col2 + col0 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3668 SELECT + CAST ( NULL AS REAL ) / col2 + col0 AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 + 1 AS col0 FROM tab1 ---- 55 58 97 query I rowsort SELECT ALL - 2 + col0 FROM tab2 ---- 5 76 77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( - tab0.col0 ) - col2 * - 56 col1 FROM tab0 ---- 1872 4681 91 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 76 col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to f8b6589bc7503fc720ca5430e3569317 query I rowsort SELECT DISTINCT - 91 AS col1 FROM tab1, tab0, tab0 AS cor0 ---- -91 query I rowsort SELECT col0 + + 46 FROM tab0 ---- 135 70 81 onlyif mysql # use DIV operator for integer division query I rowsort label-3675 SELECT col1 DIV col2 + - col1 AS col0 FROM tab0 ---- -84 -90 0 skipif mysql # not compatible query I rowsort label-3675 SELECT col1 / col2 + - col1 AS col0 FROM tab0 ---- -84 -90 0 query I rowsort SELECT + col2 + + col0 * + col2 FROM tab0 ---- 36 7380 825 query I rowsort SELECT DISTINCT 81 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + + cor0.col2 col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT - col1 * col2 + + ( col0 ) FROM tab1 AS cor0 ---- -1168 -1401 -506 onlyif mysql # use DIV operator for integer division query I rowsort label-3680 SELECT DISTINCT + 5 DIV + col2 + - 83 AS col0 FROM tab1 AS cor0 ---- -83 skipif mysql # not compatible query I rowsort label-3680 SELECT DISTINCT + 5 / + col2 + - 83 AS col0 FROM tab1 AS cor0 ---- -83 query I rowsort SELECT ALL + + col2 * - col2 AS col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 96 * col2 + + cor0.col0 col2 FROM tab0 AS cor0 ---- 131 3192 7961 onlyif mysql # use DIV operator for integer division query I rowsort label-3683 SELECT + - col0 * col2 DIV col0 AS col2 FROM tab0 cor0 ---- -1 -33 -82 skipif mysql # not compatible query I rowsort label-3683 SELECT + - col0 * col2 / col0 AS col2 FROM tab0 cor0 ---- -1 -33 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + + 34 col0 FROM tab2 AS cor0 ---- 112 113 41 query I rowsort SELECT ALL 91 * - col0 * + col1 AS col1 FROM tab2 ---- -122213 -19747 -418782 query I rowsort SELECT DISTINCT + col0 * 81 + + col2 FROM tab2 cor0 ---- 594 6344 6437 query I rowsort SELECT + - 87 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23 query I rowsort SELECT + - col2 + - 11 AS col0 FROM tab2 AS cor0 ---- -37 -38 -49 query I rowsort SELECT ( col0 ) * - col0 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT ALL + - col2 * 95 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- -15390 -346560 -729600 query I rowsort SELECT + ( col1 ) - col1 AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - - col2 * + ( + col0 ) + - ( col2 * + cor0.col0 ) FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - ( - col1 ) * - col0 AS col1 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT - col1 + col0 + - cor0.col0 FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-3695 SELECT ALL - col1 DIV 13 AS col1 FROM tab1 AS cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-3695 SELECT ALL - col1 / 13 AS col1 FROM tab1 AS cor0 ---- -1 -2 0 query I rowsort SELECT + ( + col2 ) * - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT + ( col1 ) * - col0 - col2 FROM tab2 cor0 ---- -1381 -244 -4628 query I rowsort SELECT ALL + + col2 * ( - col2 ) FROM tab2 AS cor0 ---- -1444 -676 -729 onlyif mysql # use DIV operator for integer division query I rowsort label-3699 SELECT DISTINCT col2 DIV - col2 AS col2 FROM tab0 cor0 ---- -1 skipif mysql # not compatible query I rowsort label-3699 SELECT DISTINCT col2 / - col2 AS col2 FROM tab0 cor0 ---- -1 query I rowsort SELECT - cor0.col1 + cor0.col1 AS col2 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT col1 + - col2 * col0 AS col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3702 SELECT DISTINCT + 85 + col1 + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 ---- 152 165 194 skipif mysql # not compatible query I rowsort label-3702 SELECT DISTINCT + 85 + col1 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 ---- 152 165 194 query I rowsort SELECT DISTINCT + col0 + + col2 * - 53 AS col2 FROM tab2 AS cor0 ---- -1300 -1424 -1935 query I rowsort SELECT ALL col2 * - 67 + col1 * - col1 FROM tab2 ---- -2770 -2835 -5223 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 13 col1 FROM tab2 cor0 ---- -13 -13 -13 query I rowsort SELECT - cor0.col2 * + ( col0 ) AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT 79 + cor0.col1 FROM tab1 AS cor0 ---- 105 89 92 query I rowsort SELECT + - 91 * col1 FROM tab0 AS cor0 ---- -7826 -8281 -8827 query I rowsort SELECT ( + cor0.col1 ) * - col1 FROM tab1 AS cor0 ---- -100 -169 -676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 67 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to eea8a0738728ea55e4e7ba1506c9905a onlyif mysql # use DIV operator for integer division query I rowsort label-3711 SELECT ALL + 56 DIV + 17 FROM tab2 AS cor0 ---- 3 3 3 skipif mysql # not compatible query I rowsort label-3711 SELECT ALL + 56 / + 17 FROM tab2 AS cor0 ---- 3 3 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + cor0.col0 col0 FROM tab1 AS cor0 ---- 4096 6400 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 95 + col0 col1 FROM tab2 cor0 ---- 102 173 174 query I rowsort SELECT DISTINCT + ( + col2 ) * col1 + - col1 AS col2 FROM tab1 AS cor0 ---- 1235 1378 560 onlyif mysql # use DIV operator for integer division query I rowsort label-3715 SELECT - col0 * 15 DIV - col1 AS col0 FROM tab0 cor0 ---- 14 4 5 skipif mysql # not compatible query I rowsort label-3715 SELECT - col0 * 15 / - col1 AS col0 FROM tab0 cor0 ---- 14 4 5 query I rowsort SELECT + - cor0.col2 * + col2 + col2 * - col0 FROM tab2 AS cor0 ---- -2704 -4446 -918 query I rowsort SELECT ALL ( - 35 ) FROM tab1 ---- -35 -35 -35 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3718 SELECT - cor1.col1 + - CAST( cor1.col2 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 5f7b5c5678d2f6f42d8763f44ca95184 skipif mysql # not compatible query I rowsort label-3718 SELECT - cor1.col1 + - CAST ( cor1.col2 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 5f7b5c5678d2f6f42d8763f44ca95184 query I rowsort SELECT col1 * col1 + + col0 * tab0.col2 FROM tab0 ---- 15579 8188 9444 query I rowsort SELECT + 13 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb query I rowsort SELECT ( cor0.col2 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT + cor0.col2 * 52 FROM tab0, tab1 AS cor0 ---- 9 values hashing to e26cb9061eadbc87bf8e7d739b6a6b51 query I rowsort SELECT + tab0.col2 * - 31 + - ( col2 ) AS col0 FROM tab0 ---- -1056 -2624 -32 query I rowsort SELECT DISTINCT - tab1.col1 + ( col2 ) * - col0 AS col0 FROM tab1 ---- -188 -3658 -7693 query I rowsort SELECT + col1 - + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT + col1 + 30 AS col1 FROM tab2 AS cor0 ---- 47 61 89 query I rowsort SELECT DISTINCT - col1 - 65 AS col1 FROM tab1 ---- -75 -78 -91 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3728 SELECT - col2 * + CAST( col0 AS SIGNED ) * col0 FROM tab2 ---- -1323 -158184 -237158 skipif mysql # not compatible query I rowsort label-3728 SELECT - col2 * + CAST ( col0 AS INTEGER ) * col0 FROM tab2 ---- -1323 -158184 -237158 query I rowsort SELECT DISTINCT - 28 FROM tab2, tab0 AS cor0 ---- -28 query I rowsort SELECT ALL + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5 query I rowsort SELECT col1 + - tab1.col0 * 68 AS col0 FROM tab1 ---- -178 -4342 -5427 query I rowsort SELECT + + col2 * col2 * - 39 + + col0 FROM tab0 AS cor0 ---- -262147 -4 -42447 query I rowsort SELECT - - col1 * + col2 AS col1 FROM tab2 cor0 ---- 1534 646 837 onlyif mysql # use DIV operator for integer division query I rowsort label-3734 SELECT - col0 + - col1 DIV + col2 AS col2 FROM tab1 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-3734 SELECT - col0 + - col1 / + col2 AS col2 FROM tab1 ---- -3 -64 -80 query I rowsort SELECT ALL col0 * - col1 + col1 * col2 AS col1 FROM tab2 ---- -3068 -697 620 query I rowsort SELECT ALL col1 * 36 * - col0 FROM tab2 AS cor0 ---- -165672 -48348 -7812 query I rowsort SELECT DISTINCT + - ( + cor0.col1 ) * - col1 + col0 * col2 AS col1 FROM tab2 AS cor0 ---- 1150 3291 5509 query I rowsort SELECT 75 * - col1 + - col0 AS col0 FROM tab2 AS cor0 ---- -1354 -2332 -4503 query I rowsort SELECT - 75 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2 ---- 81 values hashing to a0b2f2fd1ab7466175d5b39a8fa7be73 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab2, tab0 cor2 ---- 3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b query I rowsort SELECT - ( + col1 ) - - 96 AS col0 FROM tab0 ---- -1 10 5 query I rowsort SELECT + 86 + - col0 FROM tab2 AS cor0 ---- 7 79 8 query I rowsort SELECT + 61 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55 query I rowsort SELECT - 58 * col1 * col2 AS col2 FROM tab1 AS cor0 ---- -33060 -72384 -81432 query I rowsort SELECT DISTINCT + - ( col2 ) * cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT 54 + col0 * - col2 FROM tab1 AS cor0 ---- -108 -3594 -7626 onlyif mysql # use DIV operator for integer division query I rowsort label-3747 SELECT ALL cor0.col1 DIV + col1 AS col0 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-3747 SELECT ALL cor0.col1 / + col1 AS col0 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT - + col1 * 85 AS col0 FROM tab2 AS cor0 ---- -1445 -2635 -5015 onlyif mysql # use DIV operator for integer division query I rowsort label-3749 SELECT ALL col0 DIV col0 - - col0 * col1 * - col0 AS col1 FROM tab1 cor0 ---- -233 -40959 -83199 skipif mysql # not compatible query I rowsort label-3749 SELECT ALL col0 / col0 - - col0 * col1 * - col0 AS col1 FROM tab1 cor0 ---- -233 -40959 -83199 query I rowsort SELECT ALL col0 + 7 FROM tab1 AS cor0 ---- 10 71 87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 - - cor0.col0 col1 FROM tab1 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3752 SELECT DISTINCT - cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3752 SELECT DISTINCT - cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 + - ( - col0 ) col2 FROM tab2 AS cor0 ---- 104 117 34 onlyif mysql # use DIV operator for integer division query I rowsort label-3754 SELECT - col0 + col0 DIV - col2 FROM tab0 AS cor0 ---- -24 -70 -90 skipif mysql # not compatible query I rowsort label-3754 SELECT - col0 + col0 / - col2 FROM tab0 AS cor0 ---- -24 -70 -90 query I rowsort SELECT col0 * - col0 * + col1 + - col0 * 73 * - 55 FROM tab1 AS cor0 ---- 11811 216000 238000 query I rowsort SELECT ALL + + cor0.col0 * + col0 * - 89 FROM tab2 AS cor0 ---- -4361 -541476 -555449 query I rowsort SELECT + col1 - - col2 * col1 FROM tab0 cor0 ---- 194 2924 7553 query I rowsort SELECT ALL + 34 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa query I rowsort SELECT ALL + cor0.col0 + - 80 * + 40 AS col0 FROM tab2 AS cor0 ---- -3121 -3122 -3193 query I rowsort SELECT - col0 + - col0 * - col1 * + col1 AS col1 FROM tab1 AS cor0 ---- 13440 2025 6336 query I rowsort SELECT DISTINCT col1 - 64 AS col1 FROM tab2 AS cor0 ---- -33 -47 -5 query I rowsort SELECT DISTINCT - col0 * col1 * tab1.col0 AS col2 FROM tab1 WHERE ( NULL ) IN ( tab1.col2 + - tab1.col0 ) ---- query I rowsort SELECT tab2.col1 AS col1 FROM tab2 cor0 CROSS JOIN tab2 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query III rowsort SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + col2 ---- query I rowsort SELECT DISTINCT - col0 * + col2 + + col1 - col1 AS col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT col2 * + col2 + + col0 * + col1 FROM tab0 AS cor0 ---- 14823 3153 3396 query I rowsort SELECT ALL - col1 * + cor0.col0 * - col0 + col0 AS col0 FROM tab2 AS cor0 ---- 106176 1526 359034 query I rowsort SELECT ALL col1 * cor0.col1 * - cor0.col2 AS col0 FROM tab2 AS cor0 ---- -10982 -25947 -90506 onlyif mysql # use DIV operator for integer division query I rowsort label-3769 SELECT col2 DIV col1 + col2 * + col0 AS col1 FROM tab0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-3769 SELECT col2 / col1 + col2 * + col0 AS col1 FROM tab0 ---- 35 7298 792 query I rowsort SELECT - - col0 + - col2 * cor0.col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 query I rowsort SELECT ALL + col2 * + col1 + - col2 FROM tab0 AS cor0 ---- 2805 7380 96 query I rowsort SELECT ALL col2 AS col2 FROM tab1 WHERE ( NULL ) <> NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-3773 SELECT DISTINCT + col1 DIV col2 + col2 AS col1 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-3773 SELECT DISTINCT + col1 / col2 + col2 AS col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL ---- query I rowsort SELECT DISTINCT + col2 + - col2 - col0 FROM tab1 AS cor0 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + col1 + col1 col0 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT DISTINCT - col1 * + cor0.col1 + col2 + col1 AS col0 FROM tab2 AS cor0 ---- -234 -3396 -903 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + col2 + + tab2.col2 col0 FROM tab2 ---- 111 85 93 onlyif mysql # use DIV operator for integer division query I rowsort label-3779 SELECT + col1 DIV + col2 + + cor0.col0 * + cor0.col2 col1 FROM tab1 cor0 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3779 SELECT + col1 / + col2 + + cor0.col0 * + cor0.col2 col1 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT + col2 * - col0 + col2 * col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col0 * tab1.col1 + + col1 FROM tab1 ---- -1027 -52 -630 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col0 + col1 col2 FROM tab0 ---- 110 132 180 onlyif mysql # use DIV operator for integer division query I rowsort label-3783 SELECT DISTINCT + col0 + col2 * - col1 DIV - col1 FROM tab1 ---- 121 176 57 skipif mysql # not compatible query I rowsort label-3783 SELECT DISTINCT + col0 + col2 * - col1 / - col1 FROM tab1 ---- 121 176 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + col1 col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT tab0.col1 * + col0 + - col1 FROM tab0 ---- 1978 3298 8008 query I rowsort SELECT DISTINCT + col1 + col2 * - tab2.col2 FROM tab2 ---- -1427 -617 -698 query I rowsort SELECT - + col1 * - col1 * col1 AS col1 FROM tab0 AS cor0 ---- 636056 753571 912673 onlyif mysql # use DIV operator for integer division query I rowsort label-3788 SELECT + col2 DIV col2 + - cor0.col1 + - col0 FROM tab0 AS cor0 ---- -109 -131 -179 skipif mysql # not compatible query I rowsort label-3788 SELECT + col2 / col2 + - cor0.col1 + - col0 FROM tab0 AS cor0 ---- -109 -131 -179 query I rowsort SELECT + + col2 + col0 * + col0 + ( col0 ) AS col0 FROM tab2 AS cor0 ---- 6188 6358 83 query I rowsort SELECT + cor0.col0 - + col2 FROM tab2 cor0 ---- -20 41 52 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * tab0.col0 * - col1 col1 FROM tab0 ---- -177504 -329315 -737009 query I rowsort SELECT ALL col1 + col0 * - col1 AS col0 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT - col2 * col1 * + col1 AS col2 FROM tab1 ---- -16224 -36504 -5700 query I rowsort SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1 * - col2 ---- query I rowsort SELECT - + cor0.col1 * - col0 AS col1 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT + - col1 + 5 * - col2 AS col0 FROM tab0 AS cor0 ---- -102 -251 -501 onlyif mysql # use DIV operator for integer division query I rowsort label-3797 SELECT ALL + cor0.col2 DIV col0 FROM tab2 cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-3797 SELECT ALL + cor0.col2 / col0 FROM tab2 cor0 ---- 0 0 3 query I rowsort SELECT ALL - cor0.col2 AS col2 FROM tab0, tab1 cor0, tab1 cor1 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e onlyif mysql # use DIV operator for integer division query I rowsort label-3799 SELECT 11 DIV - col1 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3799 SELECT 11 / - col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT tab0.col2 * col0 - col1 FROM tab0 ---- -62 706 7207 query I rowsort SELECT col1 + col1 AS col0 FROM tab1 WHERE NULL IN ( + col1 * + tab1.col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + - col0 col0 FROM tab1 ---- -7 16 51 query I rowsort SELECT col1 + + col1 * col1 + col2 FROM tab0 ---- 7515 8454 9507 query I rowsort SELECT ALL tab0.col1 * col0 * col2 - col1 FROM tab0 ---- 3298 664027 68026 query I rowsort SELECT DISTINCT + col1 * col2 - - col2 AS col0 FROM tab0 ---- 2871 7544 98 query III rowsort SELECT ALL * FROM tab1 WHERE - tab1.col2 NOT IN ( - col2 * - col1 + col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT DISTINCT col1 AS col0 FROM tab1 WHERE col0 BETWEEN ( col1 ) AND col0 / col1 ---- query III rowsort SELECT ALL * FROM tab0 WHERE ( col0 ) IN ( col0 * + col2 * - col2 ) ---- query I rowsort SELECT ALL + col1 + col0 * col2 * col0 AS col1 FROM tab0 ---- 1322 19094 649613 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + col1 / + col0 >= + col1 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT col1 FROM tab1 WHERE col1 <> NULL ---- query I rowsort SELECT DISTINCT - tab2.col2 * col1 * - col1 - + col1 * col1 * col2 AS col2 FROM tab2 ---- 0 query I rowsort SELECT col0 * col0 + + col1 * col0 AS col1 FROM tab2 ---- 10686 266 7584 query III rowsort SELECT * FROM tab1 WHERE col2 - + col0 * + col0 IN ( + tab1.col1 ) ---- query I rowsort SELECT DISTINCT - col1 + tab1.col0 * col1 - + col0 * col2 AS col0 FROM tab1 ---- -110 -3018 -6653 query I rowsort SELECT col1 * tab0.col2 * - col1 AS col0 FROM tab0 ---- -244068 -679042 -9409 query I rowsort SELECT DISTINCT - col1 FROM tab2 WHERE NOT - col0 - - col2 NOT BETWEEN - col2 AND NULL ---- query I rowsort SELECT ALL + tab0.col2 + - col2 + - col0 FROM tab0 ---- -24 -35 -89 query I rowsort SELECT - col2 * tab2.col1 - - tab2.col1 AS col0 FROM tab2 ---- -1475 -629 -806 query I rowsort SELECT - tab0.col2 * col0 + + col2 AS col2 FROM tab0 ---- -34 -7216 -759 query I rowsort SELECT ALL + col1 + col2 - - col1 AS col2 FROM tab1 ---- 106 122 77 query I rowsort SELECT DISTINCT + col2 * - col0 + col1 * - tab1.col1 * + tab1.col0 + col0 * col0 AS col0 FROM tab1 ---- -14800 -2181 -5952 query I rowsort SELECT ALL col1 * col2 - - tab1.col1 * + 92 AS col1 FROM tab1 ---- 1490 2444 3796 query I rowsort SELECT 86 + col0 * + col1 * - 40 + col0 FROM tab2 ---- -183916 -53555 -8587 onlyif mysql # use DIV operator for integer division query I rowsort label-3825 SELECT DISTINCT col0 DIV col0 + - col1 col1 FROM tab1 ---- -12 -25 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3825 SELECT DISTINCT col0 / col0 + - col1 col1 FROM tab1 ---- -12 -25 -9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3826 SELECT col0 * tab0.col0 - CAST( - col1 + + col2 AS SIGNED ) * col2 FROM tab0 ---- 1321 2325 8659 skipif mysql # not compatible query I rowsort label-3826 SELECT col0 * tab0.col0 - CAST ( - col1 + + col2 AS INTEGER ) * col2 FROM tab0 ---- 1321 2325 8659 query I rowsort SELECT ALL + 72 * - col0 - col2 AS col0 FROM tab2 ---- -531 -5642 -5726 query I rowsort SELECT + - ( + cor0.col2 ) + - cor0.col1 * col1 AS col1 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT + + col0 * - col1 - - col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - cor0.col1 * + col0 - col0 col0 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT ALL + col1 * col2 + - 54 AS col2 FROM tab1 AS cor0 ---- 1194 1350 516 query I rowsort SELECT + col0 + 69 FROM tab0 AS cor0 ---- 104 158 93 query I rowsort SELECT col0 + ( - col2 ) FROM tab1 cor0 ---- -16 -51 7 query I rowsort SELECT + - col1 + 13 * + col0 FROM tab1 AS cor0 ---- 1027 13 822 query I rowsort SELECT DISTINCT - + col1 * cor0.col1 FROM tab0 cor0 ---- -7396 -8281 -9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * - 53 + + col0 * col0 * + col0 + col0 col1 FROM tab2 AS cor0 ---- 1781 476008 495132 onlyif mysql # use DIV operator for integer division query I rowsort label-3837 SELECT ALL - col1 DIV cor0.col0 + - col1 AS col1 FROM tab1 AS cor0 ---- -10 -13 -34 skipif mysql # not compatible query I rowsort label-3837 SELECT ALL - col1 / cor0.col0 + - col1 AS col1 FROM tab1 AS cor0 ---- -10 -13 -34 query I rowsort SELECT - col2 * 59 FROM tab1 cor0 ---- -3186 -3363 -5664 query I rowsort SELECT + 5 * + tab1.col1 * tab1.col2 FROM tab1 ---- 2850 6240 7020 query I rowsort SELECT DISTINCT cor0.col1 * col2 + - col0 AS col2 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT + col0 * 12 AS col2 FROM tab1 cor0 ---- 36 768 960 onlyif mysql # use DIV operator for integer division query I rowsort label-3842 SELECT ALL + col1 * + cor0.col1 + col2 DIV - col1 FROM tab0 cor0 ---- 7396 8281 9409 skipif mysql # not compatible query I rowsort label-3842 SELECT ALL + col1 * + cor0.col1 + col2 / - col1 FROM tab0 cor0 ---- 7396 8281 9409 query I rowsort SELECT - + col0 + 72 FROM tab2 AS cor0 ---- -6 -7 65 query I rowsort SELECT ALL + col2 + col1 * - ( col2 ) * - col0 + col1 FROM tab1 AS cor0 ---- 36547 4292 99949 query I rowsort SELECT + - col2 * ( - col0 ) AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 66 + + col1 * + cor0.col0 col0 FROM tab0 AS cor0 ---- 2130 3461 8165 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 67 col0 FROM tab2 AS cor0 ---- -67 -67 -67 query I rowsort SELECT + ( - col0 ) AS col2 FROM tab2 cor0 ---- -7 -78 -79 query I rowsort SELECT + 70 + 97 * col0 FROM tab2 AS cor0 ---- 749 7636 7733 query I rowsort SELECT DISTINCT - - col1 * ( cor0.col1 ) FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT DISTINCT + + 27 + - col1 AS col1 FROM tab0 cor0 ---- -59 -64 -70 query I rowsort SELECT - col0 * 40 FROM tab2 AS cor0 ---- -280 -3120 -3160 query I rowsort SELECT ALL + + col0 + - col1 * cor0.col1 AS col1 FROM tab2 cor0 ---- -210 -3403 -954 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3854 SELECT DISTINCT CAST( 82 AS SIGNED ) + col2 FROM tab2 AS cor0 ---- 108 109 120 skipif mysql # not compatible query I rowsort label-3854 SELECT DISTINCT CAST ( 82 AS INTEGER ) + col2 FROM tab2 AS cor0 ---- 108 109 120 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3855 SELECT - + CAST( NULL AS SIGNED ) + 39 * col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-3855 SELECT - + CAST ( NULL AS INTEGER ) + 39 * col1 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + cor0.col2 * + cor0.col0 - + 47 FROM tab0 cor0 ---- -12 7251 745 query I rowsort SELECT DISTINCT col0 * col1 * - 87 FROM tab2 cor0 ---- -116841 -18879 -400374 query I rowsort SELECT DISTINCT + - ( col2 ) + cor0.col1 AS col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT - col0 - + col2 * + col1 AS col1 FROM tab1 ---- -1328 -1407 -634 query I rowsort SELECT DISTINCT - - col1 + + col1 * col2 AS col0 FROM tab2 AS cor0 ---- 1593 663 868 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * - col1 + - col1 col0 FROM tab0 AS cor0 ---- -2150 -3492 -8190 query I rowsort SELECT + + 61 * - col1 * col0 AS col0 FROM tab2 AS cor0 ---- -13237 -280722 -81923 query I rowsort SELECT ALL + 29 + - cor0.col1 FROM tab2 AS cor0 ---- -2 -30 12 onlyif mysql # use DIV operator for integer division query I rowsort label-3864 SELECT 96 DIV + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 3 7 9 skipif mysql # not compatible query I rowsort label-3864 SELECT 96 / + cor0.col1 AS col0 FROM tab1 AS cor0 ---- 3 7 9 query I rowsort SELECT DISTINCT - col0 + col2 * - cor0.col0 * - col2 FROM tab2 AS cor0 ---- 113997 5096 52650 onlyif mysql # use DIV operator for integer division query I rowsort label-3866 SELECT 4 DIV col2 AS col0 FROM tab0 cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-3866 SELECT 4 / col2 AS col0 FROM tab0 cor0 ---- 0 0 4 query I rowsort SELECT ALL - + ( col0 ) * col2 * + col1 AS col2 FROM tab2 cor0 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT + cor0.col2 + + col2 AS col2 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT ALL - col1 * col0 + + col2 FROM tab2 cor0 ---- -1305 -190 -4576 query I rowsort SELECT DISTINCT - - col1 * - col2 AS col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT - ( + tab0.col0 ) FROM tab0 ---- -24 -35 -89 query I rowsort SELECT col2 - + col1 * + col1 FROM tab2 ---- -251 -3455 -934 query I rowsort SELECT + ( - col2 ) * - col1 + + col1 * col0 AS col1 FROM tab1 ---- 1210 1482 2288 query I rowsort SELECT DISTINCT col1 - col0 * - col2 AS col1 FROM tab1 ---- 188 3658 7693 query I rowsort SELECT - col2 - + tab0.col2 * + col0 * col1 AS col0 FROM tab0 ---- -3396 -664200 -68145 query I rowsort SELECT DISTINCT + 57 * + col0 FROM tab2 cor0 ---- 399 4446 4503 query I rowsort SELECT + - 10 * col0 FROM tab2 AS cor0 ---- -70 -780 -790 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + + col0 * - col2 col1 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT ALL + col1 * - col0 + tab2.col1 FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT DISTINCT + tab1.col1 * - col0 + + col1 AS col0 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT DISTINCT col1 + + 76 AS col0 FROM tab1 AS cor0 ---- 102 86 89 query I rowsort SELECT ALL col2 * - col1 * cor0.col0 + col0 FROM tab0 cor0 ---- -3360 -664029 -68088 query I rowsort SELECT DISTINCT - 51 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- -51 query I rowsort SELECT + 53 * + 12 FROM tab1 cor0 ---- 636 636 636 query I rowsort SELECT + 15 + + col2 AS col2 FROM tab1 AS cor0 ---- 111 69 72 query I rowsort SELECT + ( + 14 ) AS col2 FROM tab0 AS cor0 ---- 14 14 14 onlyif mysql # use DIV operator for integer division query I rowsort label-3887 SELECT + + 53 DIV - col2 AS col1 FROM tab0 AS cor0 ---- -1 -53 0 skipif mysql # not compatible query I rowsort label-3887 SELECT + + 53 / - col2 AS col1 FROM tab0 AS cor0 ---- -1 -53 0 query I rowsort SELECT DISTINCT + + cor0.col2 * + col2 AS col0 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT ALL - ( + 9 ) * col2 FROM tab2 ---- -234 -243 -342 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + 0 ) col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL + 90 - col0 AS col0 FROM tab0 ---- 1 55 66 query I rowsort SELECT + ( col0 ) * - col1 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT DISTINCT 64 + - col0 * 68 FROM tab2 AS cor0 ---- -412 -5240 -5308 query I rowsort SELECT + 49 + col0 AS col1 FROM tab1 cor0 ---- 113 129 52 query I rowsort SELECT + col0 * + 91 + col2 * - col1 * col2 AS col2 FROM tab0 AS cor0 ---- -603785 -91470 3088 query I rowsort SELECT + col2 + ( + col1 ) AS col2 FROM tab2 cor0 ---- 55 58 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 + col1 * - 13 col1 FROM tab0 AS cor0 ---- -1142 -1272 -1296 query I rowsort SELECT ALL - + cor0.col1 + col1 * 11 AS col0 FROM tab0 AS cor0 ---- 860 910 970 query I rowsort SELECT DISTINCT - cor0.col2 * ( col0 ) FROM tab1 AS cor0 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-3901 SELECT + col0 DIV - col0 - col2 AS col2 FROM tab0 AS cor0 ---- -2 -34 -83 skipif mysql # not compatible query I rowsort label-3901 SELECT + col0 / - col0 - col2 AS col2 FROM tab0 AS cor0 ---- -2 -34 -83 query I rowsort SELECT ALL - col1 * - col2 + - col2 FROM tab2 AS cor0 ---- 1508 608 810 query I rowsort SELECT ALL + - col1 * + cor0.col2 - - 93 AS col1 FROM tab1 AS cor0 ---- -1155 -1311 -477 query I rowsort SELECT ALL col0 + - 80 FROM tab0 AS cor0 ---- -45 -56 9 query I rowsort SELECT DISTINCT - col0 * + 99 * + col0 FROM tab0 AS cor0 ---- -121275 -57024 -784179 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3906 SELECT cor0.col0 * + CAST( col2 AS SIGNED ) - - col2 AS col0 FROM tab2 AS cor0 ---- 2054 216 3040 skipif mysql # not compatible query I rowsort label-3906 SELECT cor0.col0 * + CAST ( col2 AS INTEGER ) - - col2 AS col0 FROM tab2 AS cor0 ---- 2054 216 3040 onlyif mysql # use DIV operator for integer division query I rowsort label-3907 SELECT DISTINCT col0 DIV col2 + col2 AS col1 FROM tab0 AS cor0 ---- 33 36 83 skipif mysql # not compatible query I rowsort label-3907 SELECT DISTINCT col0 / col2 + col2 AS col1 FROM tab0 AS cor0 ---- 33 36 83 query I rowsort SELECT DISTINCT + col2 * - 23 AS col2 FROM tab0 AS cor0 ---- -1886 -23 -759 onlyif mysql # use DIV operator for integer division query I rowsort label-3909 SELECT - col0 + ( col2 ) DIV cor0.col0 AS col2 FROM tab1 AS cor0 ---- -64 -79 15 skipif mysql # not compatible query I rowsort label-3909 SELECT - col0 + ( col2 ) / cor0.col0 AS col2 FROM tab1 AS cor0 ---- -64 -79 15 onlyif mysql # use DIV operator for integer division query I rowsort label-3910 SELECT ALL - - col2 * col0 DIV ( - col1 ) AS col2 FROM tab0 AS cor0 ---- -80 -9 0 skipif mysql # not compatible query I rowsort label-3910 SELECT ALL - - col2 * col0 / ( - col1 ) AS col2 FROM tab0 AS cor0 ---- -80 -9 0 query I rowsort SELECT col1 * ( - 39 ) - col0 FROM tab0 AS cor0 ---- -3378 -3638 -3818 query I rowsort SELECT col1 + + 76 * col1 FROM tab1 AS cor0 ---- 1001 2002 770 query I rowsort SELECT DISTINCT - col2 * 36 + - col2 + - col1 FROM tab1 cor0 ---- -2024 -2119 -3565 query I rowsort SELECT DISTINCT col0 - - col0 * + col2 * - col1 AS col1 FROM tab0 cor0 ---- -3360 -664029 -68088 query I rowsort SELECT - col0 - ( + ( col1 ) + - col1 ) * col0 AS col1 FROM tab2 AS cor0 ---- -7 -78 -79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3916 SELECT - col0 * col2 * + ( col2 * 8 ) + - 54 * - col2 * + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -166320 -4393396 1610 skipif mysql # not compatible query I rowsort label-3916 SELECT - col0 * col2 * + ( col2 * 8 ) + - 54 * - col2 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -166320 -4393396 1610 query I rowsort SELECT ALL col1 * + ( + col2 ) AS col1 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT - 37 + - 22 AS col1 FROM tab0 AS cor0 ---- -59 -59 -59 query I rowsort SELECT - - col0 + + col1 AS col1 FROM tab2 cor0 ---- 137 38 96 query I rowsort SELECT - col1 + + col0 + col1 AS col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT col1 * col0 + - cor0.col1 + - ( col0 ) * col0 FROM tab1 AS cor0 ---- -3466 -5373 43 query I rowsort SELECT col1 * col1 + col1 FROM tab2 cor0 ---- 306 3540 992 query I rowsort SELECT col2 * + 46 * - col1 FROM tab1 ---- -26220 -57408 -64584 query I rowsort SELECT - col0 * col1 * ( col0 ) + - col2 AS col1 FROM tab2 ---- -106135 -1546 -358982 query I rowsort SELECT + col2 * col1 + + 14 FROM tab1 ---- 1262 1418 584 onlyif mysql # use DIV operator for integer division query I rowsort label-3926 SELECT DISTINCT - col1 + tab1.col1 DIV - col0 AS col2 FROM tab1 ---- -10 -13 -34 skipif mysql # not compatible query I rowsort label-3926 SELECT DISTINCT - col1 + tab1.col1 / - col0 AS col2 FROM tab1 ---- -10 -13 -34 onlyif mysql # use DIV operator for integer division query I rowsort label-3927 SELECT DISTINCT + col0 * col1 DIV - col1 FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-3927 SELECT DISTINCT + col0 * col1 / - col1 FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT - - 76 AS col2 FROM tab2 AS cor0 ---- 76 76 76 onlyif mysql # use DIV operator for integer division query I rowsort label-3929 SELECT - 24 DIV - col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3929 SELECT - 24 / - col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3930 SELECT + col1 + cor0.col0 DIV + 72 FROM tab0 AS cor0 ---- 86 92 97 skipif mysql # not compatible query I rowsort label-3930 SELECT + col1 + cor0.col0 / + 72 FROM tab0 AS cor0 ---- 86 92 97 query I rowsort SELECT + - 60 * cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to faebb42060ddaf5dec7dbf1f01bae592 onlyif mysql # use DIV operator for integer division query I rowsort label-3932 SELECT + col2 DIV + col0 col0 FROM tab2 AS cor0 ---- 0 0 3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-3932 SELECT + col2 / + col0 col0 FROM tab2 AS cor0 ---- 0 0 3 query I rowsort SELECT ( + col2 ) * ( - col0 ) * + col2 AS col0 FROM tab1 cor0 ---- -207936 -737280 -8748 query I rowsort SELECT DISTINCT - 25 FROM tab0, tab0 cor0, tab2 AS cor1 ---- -25 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 61 col2 FROM tab2 ---- 61 query I rowsort SELECT - ( 27 ) AS col2 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 0259a67676b131a4843853be4811b775 query I rowsort SELECT DISTINCT - cor0.col2 + col0 - 72 * + col2 AS col1 FROM tab1 AS cor0 ---- -3939 -4097 -6928 query I rowsort SELECT ALL + ( + col0 * col1 + ( + col1 ) ) AS col1 FROM tab0 ---- 2150 3492 8190 query I rowsort SELECT 96 + + col1 * + col2 FROM tab1 ---- 1344 1500 666 onlyif mysql # use DIV operator for integer division query I rowsort label-3940 SELECT + col1 - - col0 DIV - cor0.col1 FROM tab1 cor0 ---- 26 4 7 skipif mysql # not compatible query I rowsort label-3940 SELECT + col1 - - col0 / - cor0.col1 FROM tab1 cor0 ---- 26 4 7 query I rowsort SELECT DISTINCT - - col0 * col2 + 2 AS col2 FROM tab0 AS cor0 ---- 37 7300 794 onlyif mysql # use DIV operator for integer division query I rowsort label-3942 SELECT ALL - col2 * col1 * - 62 - + col2 DIV col2 AS col0 FROM tab1 AS cor0 ---- 35339 77375 87047 skipif mysql # not compatible query I rowsort label-3942 SELECT ALL - col2 * col1 * - 62 - + col2 / col2 AS col0 FROM tab1 AS cor0 ---- 35339 77375 87047 onlyif mysql # use DIV operator for integer division query I rowsort label-3943 SELECT ALL - col2 DIV + col2 + + ( + col1 ) FROM tab0 AS cor0 ---- 85 90 96 skipif mysql # not compatible query I rowsort label-3943 SELECT ALL - col2 / + col2 + + ( + col1 ) FROM tab0 AS cor0 ---- 85 90 96 query I rowsort SELECT - 14 + cor0.col1 * col1 * - col0 AS col2 FROM tab1 AS cor0 ---- -13534 -2042 -6414 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 11 * col1 + col1 * + cor0.col2 col2 FROM tab1 cor0 ---- 1105 1118 460 query I rowsort SELECT DISTINCT col2 * col1 + - col1 AS col0 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT + col0 + col0 * - 0 * + col0 AS col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL + - col0 + + col0 * + ( col0 * col2 + + col0 ) AS col2 FROM tab1 AS cor0 ---- 237504 492 620720 query I rowsort SELECT DISTINCT + 50 AS col1 FROM tab1 AS cor0 ---- 50 query I rowsort SELECT DISTINCT 82 AS col1 FROM tab0, tab0 cor0 ---- 82 query I rowsort SELECT col1 + + col2 * - 64 AS col1 FROM tab1 AS cor0 ---- -3430 -3638 -6131 query I rowsort SELECT - + col1 * - ( col2 * + col0 + + col2 ) FROM tab2 AS cor0 ---- 121186 51680 6696 query I rowsort SELECT - col0 * - 7 FROM tab2 AS cor0 ---- 49 546 553 query I rowsort SELECT + col2 * - 15 * + ( col0 ) FROM tab1 AS cor0 ---- -115200 -2430 -54720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col2 * - cor0.col0 col0 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3956 SELECT ALL CAST( col0 AS SIGNED ) + cor0.col2 + - col2 FROM tab0 cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-3956 SELECT ALL CAST ( col0 AS INTEGER ) + cor0.col2 + - col2 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT ( + 92 ) * col1 * col1 FROM tab2 AS cor0 ---- 26588 320252 88412 query I rowsort SELECT - 53 * - 34 AS col0 FROM tab0 cor0 ---- 1802 1802 1802 query I rowsort SELECT DISTINCT + - 5 - col1 FROM tab0 AS cor0 ---- -102 -91 -96 onlyif mysql # use DIV operator for integer division query I rowsort label-3960 SELECT ALL + cor0.col0 - ( + col2 + col2 ) DIV 98 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-3960 SELECT ALL + cor0.col0 - ( + col2 + col2 ) / 98 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT + ( - 7 ) * cor0.col2 FROM tab0 AS cor0 ---- -231 -574 -7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 88 col0 FROM tab0, tab2 AS cor0 ---- 88 query I rowsort SELECT ALL - - cor0.col1 * + cor0.col0 * cor0.col0 FROM tab0 cor0 ---- 118825 49536 720811 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + ( col0 ) * col0 * - col2 col1 FROM tab2 AS cor0 ---- -1316 -158106 -237079 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 1 col2 FROM tab2 AS cor0 ---- -1 -1 -1 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2 ---- 3645 values hashing to e3f81e329d34d83e4528a9ef7b933946 query I rowsort SELECT DISTINCT + + col0 + 71 FROM tab2 AS cor0 ---- 149 150 78 onlyif mysql # use DIV operator for integer division query I rowsort label-3968 SELECT ALL 54 + - col1 DIV col1 - - 41 FROM tab2 AS cor0 ---- 94 94 94 skipif mysql # not compatible query I rowsort label-3968 SELECT ALL 54 + - col1 / col1 - - 41 FROM tab2 AS cor0 ---- 94 94 94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 51 * - cor0.col0 + - col2 col2 FROM tab0 AS cor0 ---- -1257 -1786 -4621 query I rowsort SELECT - - col0 + 36 * cor0.col1 FROM tab2 AS cor0 ---- 1123 2202 691 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-3971 SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-3971 SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT + - ( - col2 ) + col1 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT ALL ( - 67 ) FROM tab2 AS cor0 ---- -67 -67 -67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - cor0.col2 * 85 col0 FROM tab0 AS cor0 ---- -2805 -6970 -85 query I rowsort SELECT + tab2.col1 + + 65 AS col2 FROM tab2 ---- 124 82 96 query I rowsort SELECT 41 * col0 AS col1 FROM tab0 AS cor0 ---- 1435 3649 984 query I rowsort SELECT ALL - + 88 * col0 + + col2 - col0 FROM tab2 AS cor0 ---- -596 -6916 -6993 query I rowsort SELECT DISTINCT - col0 * ( + 3 ) * col2 FROM tab2 AS cor0 ---- -567 -6084 -9006 query I rowsort SELECT ALL + + col2 * - 23 AS col1 FROM tab0 AS cor0 ---- -1886 -23 -759 query I rowsort SELECT + cor0.col2 * 71 FROM tab2 cor0 ---- 1846 1917 2698 query I rowsort SELECT - col1 * col1 - ( col1 ) AS col2 FROM tab2 ---- -306 -3540 -992 onlyif mysql # use DIV operator for integer division query I rowsort label-3982 SELECT tab1.col1 + + col0 DIV col2 FROM tab1 ---- 11 13 26 skipif mysql # not compatible query I rowsort label-3982 SELECT tab1.col1 + + col0 / col2 FROM tab1 ---- 11 13 26 query I rowsort SELECT - col0 - 37 FROM tab2 ---- -115 -116 -44 query I rowsort SELECT DISTINCT col0 + + ( + col2 * col0 ) + - col0 * 70 FROM tab2 ---- -2449 -294 -3354 onlyif mysql # use DIV operator for integer division query I rowsort label-3985 SELECT DISTINCT - col2 DIV - ( 2 ) + + col0 DIV col0 AS col0 FROM tab0 ---- 1 17 42 skipif mysql # not compatible query I rowsort label-3985 SELECT DISTINCT - col2 / - ( 2 ) + + col0 / col0 AS col0 FROM tab0 ---- 1 17 42 query I rowsort SELECT ALL col2 * - col1 + - 20 + + col2 AS col1 FROM tab0 ---- -116 -2825 -7400 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + col1 * tab1.col0 col2 FROM tab1 ---- 1120 704 81 onlyif mysql # use DIV operator for integer division query I rowsort label-3988 SELECT ALL - col2 DIV - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-3988 SELECT ALL - col2 / - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-3989 SELECT ALL + + col1 * + col1 + - col2 DIV - col2 AS col1 FROM tab0 AS cor0 ---- 7397 8282 9410 skipif mysql # not compatible query I rowsort label-3989 SELECT ALL + + col1 * + col1 + - col2 / - col2 AS col1 FROM tab0 AS cor0 ---- 7397 8282 9410 query I rowsort SELECT DISTINCT + + col1 * - col1 AS col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 query I rowsort SELECT - + col2 + col1 * col0 FROM tab2 cor0 ---- 1305 190 4576 query I rowsort SELECT + 36 - - col1 * - col0 FROM tab2 AS cor0 ---- -1307 -181 -4566 query I rowsort SELECT ( + cor0.col2 ) * col1 + col2 AS col2 FROM tab0 cor0 ---- 2871 7544 98 query I rowsort SELECT ALL + - 65 AS col1 FROM tab0 AS cor0 ---- -65 -65 -65 query I rowsort SELECT - col1 + col1 * - cor0.col2 * + col0 + - col0 FROM tab0 AS cor0 ---- -3527 -664298 -68222 query I rowsort SELECT DISTINCT 38 + col2 * cor0.col0 FROM tab2 AS cor0 ---- 2066 227 3040 query I rowsort SELECT - col1 - - col1 * cor0.col0 AS col0 FROM tab0 cor0 ---- 1978 3298 8008 query I rowsort SELECT DISTINCT + 33 FROM tab0, tab1 AS cor0 ---- 33 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 11 col2 FROM tab0 AS cor0 ---- -11 -11 -11 onlyif mysql # use DIV operator for integer division query I rowsort label-4000 SELECT ( + col2 ) * + tab1.col0 + - col0 DIV + col1 FROM tab1 ---- 162 3642 7674 skipif mysql # not compatible query I rowsort label-4000 SELECT ( + col2 ) * + tab1.col0 + - col0 / + col1 FROM tab1 ---- 162 3642 7674 onlyif mysql # use DIV operator for integer division query I rowsort label-4001 SELECT ALL col0 * + col1 + + tab0.col1 DIV - col1 AS col2 FROM tab0 ---- 2063 3394 8098 skipif mysql # not compatible query I rowsort label-4001 SELECT ALL col0 * + col1 + + tab0.col1 / - col1 AS col2 FROM tab0 ---- 2063 3394 8098 onlyif mysql # use DIV operator for integer division query I rowsort label-4002 SELECT col1 DIV col0 col1 FROM tab2 ---- 0 0 4 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4002 SELECT col1 / col0 col1 FROM tab2 ---- 0 0 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col2 * - col0 col1 FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT ( 17 ) FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4005 SELECT - CAST( col0 AS SIGNED ) + col2 FROM tab1 AS cor0 ---- -7 16 51 skipif mysql # not compatible query I rowsort label-4005 SELECT - CAST ( col0 AS INTEGER ) + col2 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT ALL cor0.col2 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT ( col2 + tab2.col0 ) FROM tab2 ---- 104 117 34 query I rowsort SELECT DISTINCT - 61 * + 37 AS col2 FROM tab1 ---- -2257 query I rowsort SELECT - - 87 AS col1 FROM tab1 cor0 ---- 87 87 87 query I rowsort SELECT + ( - 51 ) * + col2 FROM tab0 AS cor0 ---- -1683 -4182 -51 query I rowsort SELECT DISTINCT - + col0 + ( col0 ) * col1 AS col2 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT DISTINCT + cor1.col2 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1 ---- 1 33 82 query I rowsort SELECT DISTINCT + - col0 + + col0 * + 11 AS col2 FROM tab2 cor0 ---- 70 780 790 query I rowsort SELECT ALL 66 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 897b6122ac98340b78905f39d81897fc query I rowsort SELECT ALL + col1 * col2 * col2 AS col0 FROM tab1 AS cor0 ---- 119808 32490 75816 onlyif mysql # use DIV operator for integer division query I rowsort label-4016 SELECT + + 55 DIV - col1 FROM tab1 cor0 ---- -2 -4 -5 skipif mysql # not compatible query I rowsort label-4016 SELECT + + 55 / - col1 FROM tab1 cor0 ---- -2 -4 -5 query I rowsort SELECT ALL ( - 9 ) FROM tab1, tab2 AS cor0 ---- 9 values hashing to caf28657beb43049740febe1fa9ded5a query I rowsort SELECT ALL - - cor0.col2 - - cor0.col2 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 82040855cb50fa1e428b3499d58f252b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4019 SELECT + col1 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-4019 SELECT + col1 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4020 SELECT + col1 + CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-4020 SELECT + col1 + CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT + col0 + 37 FROM tab0 AS cor0 ---- 126 61 72 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4022 SELECT ALL col0 + - CAST( NULL AS SIGNED ) - + 45 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4022 SELECT ALL col0 + - CAST ( NULL AS INTEGER ) - + 45 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4023 SELECT + - col1 + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- -23 54 67 skipif mysql # not compatible query I rowsort label-4023 SELECT + - col1 + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- -23 54 67 query I rowsort SELECT - 85 * + 44 AS col1 FROM tab2 cor0 ---- -3740 -3740 -3740 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( + col2 ) col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT - - 61 * col0 FROM tab2 AS cor0 ---- 427 4758 4819 query I rowsort SELECT DISTINCT ( - cor0.col1 + - 76 ) * - 40 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 6480 6680 6920 query I rowsort SELECT + 41 * col1 FROM tab1 AS cor0 ---- 1066 410 533 query I rowsort SELECT DISTINCT + col2 + + col0 * col1 + - cor0.col2 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT ALL col0 + col2 * col1 AS col0 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL 84 * - cor0.col1 FROM tab0, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to 24dd65be219b7c07d3cf70aa7293fddb onlyif mysql # use DIV operator for integer division query I rowsort label-4032 SELECT + cor0.col1 DIV + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-4032 SELECT + cor0.col1 / + cor0.col0 AS col0 FROM tab2 AS cor0 ---- 0 0 4 query I rowsort SELECT tab0.col1 + 75 AS col1 FROM tab0 ---- 161 166 172 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * 68 * + col2 + col2 * 10 col0 FROM tab1 ---- 198828 221502 627648 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4035 SELECT ALL CAST( col2 AS SIGNED ) * - col1 col0 FROM tab2 AS cor0 ---- -1534 -646 -837 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4035 SELECT ALL CAST ( col2 AS INTEGER ) * - col1 col0 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4036 SELECT DISTINCT CAST( col2 AS SIGNED ) * col0 * - ( + col2 + col1 * 35 ) FROM tab0 AS cor0 ---- -118860 -23842566 -2410056 skipif mysql # not compatible query I rowsort label-4036 SELECT DISTINCT CAST ( col2 AS INTEGER ) * col0 * - ( + col2 + col1 * 35 ) FROM tab0 AS cor0 ---- -118860 -23842566 -2410056 query I rowsort SELECT + 95 AS col2 FROM tab1, tab2, tab0 cor0, tab0 ---- 81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a query I rowsort SELECT ALL col1 * - ( ( tab0.col0 ) ) FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT + + col0 + - cor0.col2 * - col0 FROM tab0 cor0 ---- 70 7387 816 query I rowsort SELECT 23 * - 85 AS col2 FROM tab0 ---- -1955 -1955 -1955 query I rowsort SELECT cor0.col0 + - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL - - col2 * + cor0.col1 + - ( + cor0.col2 ) + - col1 FROM tab1 cor0 ---- 1139 1324 503 query I rowsort SELECT DISTINCT - 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-4044 SELECT DISTINCT CAST( 79 AS SIGNED ) + col2 FROM tab2 ---- 105 106 117 skipif mysql # not compatible query I rowsort label-4044 SELECT DISTINCT CAST ( 79 AS INTEGER ) + col2 FROM tab2 ---- 105 106 117 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 91 * - tab2.col1 col1 FROM tab2 ---- -1547 -2821 -5369 query I rowsort SELECT 40 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0 query I rowsort SELECT - - cor0.col2 AS col0 FROM tab1, tab0 cor0, tab2, tab2 AS cor1 ---- 81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05 query I rowsort SELECT col0 + + col0 + + col1 * col1 AS col2 FROM tab0 AS cor0 ---- 7444 8459 9479 query I rowsort SELECT DISTINCT - col0 + col0 * + col0 FROM tab2 AS cor0 ---- 42 6006 6162 query I rowsort SELECT DISTINCT + col1 * col2 * + 41 AS col1 FROM tab2 cor0 ---- 26486 34317 62894 query I rowsort SELECT - col1 + + col1 * col0 + - col2 FROM tab2 AS cor0 ---- 1288 159 4517 query I rowsort SELECT DISTINCT + tab2.col2 + - col0 + + ( + col1 ) FROM tab2 ---- -24 51 7 query I rowsort SELECT DISTINCT col0 + - col2 * 73 AS col0 FROM tab0 ---- -2385 -38 -5897 query I rowsort SELECT 83 + - col0 AS col2 FROM tab1 ---- 19 3 80 query I rowsort SELECT 89 * + col0 * tab2.col1 AS col0 FROM tab2 ---- 119527 19313 409578 query I rowsort SELECT DISTINCT - 96 * + col2 + 82 AS col0 FROM tab2 AS cor0 ---- -2414 -2510 -3566 onlyif mysql # use DIV operator for integer division query I rowsort label-4057 SELECT DISTINCT + col1 DIV + col0 + tab0.col0 DIV 73 FROM tab0 ---- 2 3 skipif mysql # not compatible query I rowsort label-4057 SELECT DISTINCT + col1 / + col0 + tab0.col0 / 73 FROM tab0 ---- 2 3 query I rowsort SELECT DISTINCT - col1 * tab0.col2 + col0 AS col1 FROM tab0 ---- -2814 -62 -7373 query I rowsort SELECT 6 * - col2 FROM tab1 ---- -324 -342 -576 onlyif mysql # use DIV operator for integer division query I rowsort label-4060 SELECT col1 DIV col2 + + col2 * col1 FROM tab1 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-4060 SELECT col1 / col2 + + col2 * col1 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT DISTINCT + cor0.col1 + col2 * - col1 AS col2 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT ALL cor0.col1 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT ALL + col2 * 47 AS col1 FROM tab2 cor0 ---- 1222 1269 1786 query I rowsort SELECT DISTINCT col0 * ( 27 * col0 ) AS col0 FROM tab1 AS cor0 ---- 110592 172800 243 query I rowsort SELECT DISTINCT - col0 + + ( + ( col2 ) ) FROM tab2 AS cor0 ---- -41 -52 20 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4066 SELECT cor0.col2 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4066 SELECT cor0.col2 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col1 + cor0.col1 + col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + col2 * 12 + col1 FROM tab1 AS cor0 ---- 1165 674 694 query I rowsort SELECT col1 + + ( + cor0.col0 ) FROM tab2 AS cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-4070 SELECT ALL - cor0.col1 DIV - col1 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4070 SELECT ALL - cor0.col1 / - col1 FROM tab2 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-4071 SELECT ALL + col1 * + col2 + + col2 DIV - col1 FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-4071 SELECT ALL + col1 * + col2 + + col2 / - col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT + col2 + - 84 AS col1 FROM tab2 AS cor0 ---- -46 -57 -58 query I rowsort SELECT DISTINCT - + col2 * ( + col0 ) FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4074 SELECT ALL - - CAST( NULL AS SIGNED ) * col0 + col0 * - CAST( - col2 + col2 AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4074 SELECT ALL - - CAST ( NULL AS INTEGER ) * col0 + col0 * - CAST ( - col2 + col2 AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4075 SELECT ALL col1 + col0 + col0 DIV ( col0 ) FROM tab0 ---- 111 133 181 skipif mysql # not compatible query I rowsort label-4075 SELECT ALL col1 + col0 + col0 / ( col0 ) FROM tab0 ---- 111 133 181 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4076 SELECT ALL - CAST( + cor0.col1 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 skipif mysql # not compatible query I rowsort label-4076 SELECT ALL - CAST ( + cor0.col1 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - col1 * 51 FROM tab0 cor0 ---- -4386 -4641 -4947 query I rowsort SELECT ALL + + ( cor0.col1 ) * col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT ALL + 47 + + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 106 64 78 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( col0 ) * cor0.col1 * col1 - 92 col1 FROM tab0 AS cor0 ---- -177596 -329407 -737101 query I rowsort SELECT DISTINCT + + 28 + - 70 * col2 AS col2 FROM tab0 AS cor0 ---- -2282 -42 -5712 query I rowsort SELECT + ( - 46 ) - col0 FROM tab1 cor0 ---- -110 -126 -49 query I rowsort SELECT ALL + + col1 * + ( col2 ) + + col2 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT DISTINCT + cor0.col0 - - col1 * - col2 * 55 FROM tab1 AS cor0 ---- -31286 -68560 -77217 onlyif mysql # use DIV operator for integer division query I rowsort label-4085 SELECT ALL - col0 DIV col0 AS col2 FROM tab1 cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4085 SELECT ALL - col0 / col0 AS col2 FROM tab1 cor0 ---- -1 -1 -1 query I rowsort SELECT + 40 + - col0 FROM tab1 cor0 ---- -24 -40 37 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 12 col2 FROM tab0 AS cor0 ---- 12 12 12 query I rowsort SELECT - 84 - col2 FROM tab2 AS cor0 ---- -110 -111 -122 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4089 SELECT ALL CAST( + 81 AS SIGNED ) FROM tab1, tab2 AS cor0 ---- 9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267 skipif mysql # not compatible query I rowsort label-4089 SELECT ALL CAST ( + 81 AS INTEGER ) FROM tab1, tab2 AS cor0 ---- 9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267 query I rowsort SELECT ALL + + col1 * cor0.col2 + + col2 * - col2 AS col0 FROM tab0 AS cor0 ---- 1749 738 96 query I rowsort SELECT + + col1 + - ( col0 ) FROM tab2 AS cor0 ---- -19 -62 24 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - ( + ( + col1 ) ) col0 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT DISTINCT + col0 + col2 * col1 - col1 AS col2 FROM tab1 AS cor0 ---- 1315 1381 624 query I rowsort SELECT ALL + + cor0.col2 * ( ( + col1 ) * col0 ) + col1 * - col1 AS col2 FROM tab1 AS cor0 ---- 3536 36380 99671 query I rowsort SELECT col0 + 95 * + 34 AS col1 FROM tab2 AS cor0 ---- 3237 3308 3309 onlyif mysql # use DIV operator for integer division query I rowsort label-4096 SELECT ALL col0 * 99 + - col0 DIV cor0.col2 FROM tab0 AS cor0 ---- 2376 3430 8810 skipif mysql # not compatible query I rowsort label-4096 SELECT ALL col0 * 99 + - col0 / cor0.col2 FROM tab0 AS cor0 ---- 2376 3430 8810 query I rowsort SELECT - col0 * col1 * + col0 AS col2 FROM tab0 cor0 ---- -118825 -49536 -720811 query I rowsort SELECT + + ( + ( - col2 ) ) * - 61 FROM tab1 AS cor0 ---- 3294 3477 5856 onlyif mysql # use DIV operator for integer division query I rowsort label-4099 SELECT + 35 DIV + 6 - + col0 * - 76 FROM tab0 cor0 ---- 1829 2665 6769 skipif mysql # not compatible query I rowsort label-4099 SELECT + 35 / + 6 - + col0 * - 76 FROM tab0 cor0 ---- 1829 2665 6769 query I rowsort SELECT DISTINCT - + ( - col1 ) * col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT + 99 * - col0 * + col0 FROM tab2 AS cor0 ---- -4851 -602316 -617859 query IIIIIIIIIIII rowsort SELECT * FROM tab2, tab0 cor0, tab0 cor1, tab2 AS cor2 ---- 972 values hashing to d41be7437523f0dba2158c7f0439f329 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 14 * - col0 col1 FROM tab0 cor0 ---- 1246 336 490 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4104 SELECT 86 * - col2 + CAST( col0 AS SIGNED ) * col0 FROM tab0 cor0 ---- -2262 1139 869 skipif mysql # not compatible query I rowsort label-4104 SELECT 86 * - col2 + CAST ( col0 AS INTEGER ) * col0 FROM tab0 cor0 ---- -2262 1139 869 onlyif mysql # use DIV operator for integer division query I rowsort label-4105 SELECT + + col1 DIV - col1 col1 FROM tab2 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4105 SELECT + + col1 / - col1 col1 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL 66 + cor0.col1 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 385efd049694f0de10caf8236b4700fc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * - ( cor0.col2 ) col2 FROM tab2 AS cor0 ---- -1444 -676 -729 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4108 SELECT DISTINCT col0 * - CAST( 10 AS SIGNED ) FROM tab0 ---- -240 -350 -890 skipif mysql # not compatible query I rowsort label-4108 SELECT DISTINCT col0 * - CAST ( 10 AS INTEGER ) FROM tab0 ---- -240 -350 -890 query I rowsort SELECT - tab0.col1 * + 30 + + 67 FROM tab0 ---- -2513 -2663 -2843 query I rowsort SELECT 88 * + 35 FROM tab1 ---- 3080 3080 3080 query I rowsort SELECT DISTINCT - ( + tab0.col1 * col2 ) + - 72 FROM tab0 ---- -169 -2910 -7534 onlyif mysql # use DIV operator for integer division query I rowsort label-4112 SELECT - col2 DIV - ( - col2 + + 6 ) FROM tab0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-4112 SELECT - col2 / - ( - col2 + + 6 ) FROM tab0 ---- -1 -1 0 query I rowsort SELECT DISTINCT + tab1.col2 + + col2 AS col1 FROM tab1 ---- 108 114 192 query I rowsort SELECT - cor0.col0 * - 29 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6e07a482375ef46face061c7c2824f9b query I rowsort SELECT DISTINCT col1 * col2 + - col0 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT ALL col2 - - col2 * - col0 FROM tab1 AS cor0 ---- -108 -3591 -7584 query IIIIII rowsort SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT + col0 + col1 + - col2 AS col0 FROM tab0 AS cor0 ---- 131 77 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4119 SELECT cor0.col1 * - cor0.col1 * CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4119 SELECT cor0.col1 * - cor0.col1 * CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + cor0.col0 col1 FROM tab1 cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-4121 SELECT + - col0 * col0 * col2 + + col1 DIV col1 col1 FROM tab2 AS cor0 ---- -1322 -158183 -237157 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4121 SELECT + - col0 * col0 * col2 + + col1 / col1 col1 FROM tab2 AS cor0 ---- -1322 -158183 -237157 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + - col2 col0 FROM tab1 cor0 ---- -16 -51 7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 94 col1 FROM tab0 AS cor0 ---- 94 94 94 query I rowsort SELECT DISTINCT col1 * - 57 + + col1 + + ( + col1 + col2 ) * ( col1 ) AS col2 FROM tab2 ---- -17 1711 62 query I rowsort SELECT DISTINCT tab1.col2 + col0 + col0 AS col2 FROM tab1 ---- 185 256 60 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4126 SELECT ALL CAST( col1 AS SIGNED ) + col2 FROM tab2 ---- 55 58 85 skipif mysql # not compatible query I rowsort label-4126 SELECT ALL CAST ( col1 AS INTEGER ) + col2 FROM tab2 ---- 55 58 85 query I rowsort SELECT + 82 * - col2 - col0 AS col0 FROM tab1 ---- -4431 -4738 -7952 query I rowsort SELECT 2 * - col0 AS col1 FROM tab0 AS cor0 ---- -178 -48 -70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4129 SELECT ALL + cor0.col1 + CAST( + 79 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to fa7f0b5ced7c5128280f681bea814f94 skipif mysql # not compatible query I rowsort label-4129 SELECT ALL + cor0.col1 + CAST ( + 79 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to fa7f0b5ced7c5128280f681bea814f94 query I rowsort SELECT DISTINCT - col2 * - col1 * + col0 + - col2 AS col1 FROM tab1 AS cor0 ---- 36423 4158 99744 query I rowsort SELECT ALL + 8 * - col0 * col1 FROM tab0 AS cor0 ---- -16512 -27160 -64792 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 23 * col2 col0 FROM tab1 AS cor0 ---- 1242 1311 2208 query I rowsort SELECT DISTINCT ( - tab2.col2 * - col1 ) + 99 + - col0 * col1 AS col1 FROM tab2 ---- -2969 -598 719 query I rowsort SELECT + ( col1 + col0 ) * + col0 FROM tab0 ---- 16020 2640 4620 query I rowsort SELECT ALL - 45 + + 17 FROM tab0 ---- -28 -28 -28 query I rowsort SELECT col0 + + col0 * col1 FROM tab0 ---- 2088 3430 8188 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4137 SELECT - col2 + - CAST( NULL AS SIGNED ) - - col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4137 SELECT - col2 + - CAST ( NULL AS INTEGER ) - - col1 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT col2 * - 88 + 66 FROM tab0 AS cor0 ---- -22 -2838 -7150 query I rowsort SELECT ALL + col1 + cor0.col1 * - col1 FROM tab2 AS cor0 ---- -272 -3422 -930 query I rowsort SELECT + + col2 + col1 - col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT + col2 + - 87 * col1 + col0 AS col0 FROM tab2 AS cor0 ---- -1362 -2663 -5029 onlyif mysql # use DIV operator for integer division query I rowsort label-4142 SELECT 71 DIV col2 AS col2 FROM tab0 ---- 0 2 71 skipif mysql # not compatible query I rowsort label-4142 SELECT 71 / col2 AS col2 FROM tab0 ---- 0 2 71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( 29 ) col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4144 SELECT + col0 + - CAST( + col0 AS SIGNED ) + + tab2.col2 AS col0 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-4144 SELECT + col0 + - CAST ( + col0 AS INTEGER ) + + tab2.col2 AS col0 FROM tab2 ---- 26 27 38 query I rowsort SELECT cor0.col1 * ( + col2 ) + + cor0.col1 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT + col1 + col0 - - ( col2 + - col1 ) AS col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT ALL + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab1 cor3 ---- 243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2 query I rowsort SELECT DISTINCT + 28 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1 ---- 28 query I rowsort SELECT ALL + tab2.col0 - col1 * + 50 FROM tab2 ---- -1543 -2872 -771 query I rowsort SELECT 3 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to 3e22859a313d85a6146c6df5f23d77cf query I rowsort SELECT DISTINCT + - 86 * cor0.col1 FROM tab1 AS cor0 ---- -1118 -2236 -860 query I rowsort SELECT 87 * col2 - col0 AS col1 FROM tab2 AS cor0 ---- 2184 2342 3227 query I rowsort SELECT ALL ( col1 ) + cor0.col2 FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT + 36 + - col0 AS col1 FROM tab1 AS cor0 ---- -28 -44 33 onlyif mysql # use DIV operator for integer division query I rowsort label-4155 SELECT DISTINCT - col2 * col0 + cor0.col0 DIV - 45 AS col0 FROM tab2 cor0 ---- -189 -2029 -3003 skipif mysql # not compatible query I rowsort label-4155 SELECT DISTINCT - col2 * col0 + cor0.col0 / - 45 AS col0 FROM tab2 cor0 ---- -189 -2029 -3003 query I rowsort SELECT DISTINCT + 39 * + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1014 1053 1482 query I rowsort SELECT + ( - cor0.col0 ) + col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col2 + ( - col2 ) AS col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL + col2 + + 51 FROM tab2 ---- 77 78 89 query I rowsort SELECT ALL col1 * - tab1.col2 * tab1.col2 + - tab1.col1 - + tab1.col2 * col1 FROM tab1 ---- -121069 -33070 -77246 query I rowsort SELECT ALL col1 + + col2 + col1 AS col0 FROM tab2 ---- 144 72 89 query I rowsort SELECT - col0 + - col0 * col2 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT - + 79 AS col2 FROM tab2 AS cor0 ---- -79 -79 -79 query I rowsort SELECT ALL + - 86 * + ( + col2 ) + - ( col0 ) FROM tab2 cor0 ---- -2314 -2329 -3347 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 62 * col0 + col1 - - col1 * + col0 col0 FROM tab2 AS cor0 ---- 6258 682 9497 query I rowsort SELECT DISTINCT - + 99 FROM tab1 AS cor0 ---- -99 query I rowsort SELECT ALL - col0 + + cor0.col2 * col1 FROM tab2 AS cor0 ---- 1456 567 830 query I rowsort SELECT DISTINCT - col1 + col1 * - col2 FROM tab0 AS cor0 ---- -194 -2924 -7553 query I rowsort SELECT + 35 + col0 * col0 FROM tab2 AS cor0 ---- 6119 6276 84 query I rowsort SELECT DISTINCT + col0 * - col1 + col0 FROM tab1 AS cor0 ---- -576 -75 -960 query I rowsort SELECT DISTINCT 6 + - cor0.col1 * col2 FROM tab0 AS cor0 ---- -2832 -7456 -91 onlyif mysql # use DIV operator for integer division query I rowsort label-4172 SELECT ALL + 86 DIV + col1 + ( 49 ) FROM tab1 AS cor0 ---- 52 55 57 skipif mysql # not compatible query I rowsort label-4172 SELECT ALL + 86 / + col1 + ( 49 ) FROM tab1 AS cor0 ---- 52 55 57 query I rowsort SELECT DISTINCT - col2 + 54 AS col0 FROM tab0 AS cor0 ---- -28 21 53 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4174 SELECT ALL - - col0 * - CAST( NULL AS DECIMAL ) + col0 * + col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4174 SELECT ALL - - col0 * - CAST ( NULL AS REAL ) + col0 * + col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4175 SELECT + - cor0.col1 - CAST( 77 AS SIGNED ) col2 FROM tab1 AS cor0 ---- -103 -87 -90 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4175 SELECT + - cor0.col1 - CAST ( 77 AS INTEGER ) col2 FROM tab1 AS cor0 ---- -103 -87 -90 query I rowsort SELECT DISTINCT - - col1 + - 16 - - ( col1 + + col1 ) * - col1 AS col0 FROM tab1 AS cor0 ---- -1342 -206 -341 query I rowsort SELECT - + col2 * + col0 - - col2 * - col0 AS col1 FROM tab0 AS cor0 ---- -14596 -1584 -70 query I rowsort SELECT DISTINCT - - col0 + col1 + 10 * col0 * - col2 FROM tab1 AS cor0 ---- -1591 -36406 -76707 query I rowsort SELECT ALL - + col0 * - cor0.col1 + 37 AS col2 FROM tab0 AS cor0 ---- 2101 3432 8136 onlyif mysql # use DIV operator for integer division query I rowsort label-4180 SELECT DISTINCT + col1 * col2 DIV - 19 + col1 + col2 AS col1 FROM tab0 AS cor0 ---- -219 -30 93 skipif mysql # not compatible query I rowsort label-4180 SELECT DISTINCT + col1 * col2 / - 19 + col1 + col2 AS col1 FROM tab0 AS cor0 ---- -219 -30 93 query I rowsort SELECT ALL 95 + - cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 5b7080f693fc1b1673e706cfa737063f query I rowsort SELECT - col1 * col0 + col2 * + col1 FROM tab2 ---- -3068 -697 620 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab2.col2 col2 FROM tab2, tab1, tab1 AS cor0 ---- -26 -27 -38 query I rowsort SELECT ALL + tab1.col2 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT DISTINCT 55 FROM tab1, tab0, tab1 AS cor0 ---- 55 query I rowsort SELECT DISTINCT - - col1 * + ( + 47 ) + - col0 AS col0 FROM tab2 AS cor0 ---- 1450 2695 720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 * col2 col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT - - col1 * col2 * col2 AS col2 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT col1 * ( 95 ) FROM tab0 AS cor0 ---- 8170 8645 9215 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col2 * - col2 col0 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT - col2 * 53 AS col1 FROM tab0 cor0 ---- -1749 -4346 -53 query I rowsort SELECT col1 + + col2 * - col0 AS col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 onlyif mysql # use DIV operator for integer division query I rowsort label-4193 SELECT col1 DIV + ( 91 ) AS col1 FROM tab0 cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-4193 SELECT col1 / + ( 91 ) AS col1 FROM tab0 cor0 ---- 0 1 1 query I rowsort SELECT ALL - ( 83 ) + + col2 FROM tab1 ---- -26 -29 13 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 11 * col0 + - col2 col1 FROM tab2 AS cor0 ---- 50 831 832 query I rowsort SELECT ALL + + cor0.col1 + - 37 FROM tab1 cor0 ---- -11 -24 -27 query I rowsort SELECT + col1 * col2 - cor0.col2 * col2 AS col0 FROM tab2 AS cor0 ---- -798 108 858 query I rowsort SELECT DISTINCT - - 28 + + 27 AS col1 FROM tab1 AS cor0 ---- 55 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4199 SELECT DISTINCT + CAST( + col2 AS SIGNED ) * col2 + 73 FROM tab0 AS cor0 ---- 1162 6797 74 skipif mysql # not compatible query I rowsort label-4199 SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * col2 + 73 FROM tab0 AS cor0 ---- 1162 6797 74 query I rowsort SELECT ALL - + col0 * - 61 - col1 * + col1 AS col2 FROM tab2 cor0 ---- -534 1277 4530 query I rowsort SELECT - col1 * + 91 + - col2 AS col0 FROM tab1 AS cor0 ---- -1279 -2420 -967 query I rowsort SELECT + col0 + 16 AS col0 FROM tab2 AS cor0 ---- 23 94 95 query I rowsort SELECT ( - 77 ) * + col2 - - col0 AS col0 FROM tab1 AS cor0 ---- -4155 -4325 -7312 query I rowsort SELECT ALL + + ( col0 ) * col0 * col2 + - col2 FROM tab2 AS cor0 ---- 1296 158158 237120 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 66 + col1 col0 FROM tab0 AS cor0 ---- 152 157 163 query I rowsort SELECT ALL + - ( + col0 ) + col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL 37 * - cor0.col0 AS col2 FROM tab2 AS cor0 ---- -259 -2886 -2923 query I rowsort SELECT - col0 + ( col1 + + cor0.col1 ) * col2 FROM tab1 AS cor0 ---- 1076 2416 2805 query I rowsort SELECT ALL + + 52 + col2 + cor0.col2 FROM tab2 AS cor0 ---- 104 106 128 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 81 col0 FROM tab1 cor0 ---- 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * - cor0.col0 * col0 col1 FROM tab2 AS cor0 ---- -343 -474552 -493039 query I rowsort SELECT - ( cor0.col1 ) * - col2 AS col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT - col2 * + cor0.col0 AS col2 FROM tab2 cor0 ---- -189 -2028 -3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4214 SELECT DISTINCT ( - col2 * col0 ) + CAST( col1 AS SIGNED ) FROM tab1 ---- -136 -3638 -7667 skipif mysql # not compatible query I rowsort label-4214 SELECT DISTINCT ( - col2 * col0 ) + CAST ( col1 AS INTEGER ) FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT ALL tab0.col1 * col0 * tab0.col0 + + 71 * - col0 AS col0 FROM tab0 ---- 116340 47832 714492 query I rowsort SELECT - - 28 * + col1 FROM tab1 AS cor0 ---- 280 364 728 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4217 SELECT + - cor0.col1 * col1 + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- -7420 -8370 -9444 skipif mysql # not compatible query I rowsort label-4217 SELECT + - cor0.col1 * col1 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- -7420 -8370 -9444 query I rowsort SELECT col0 + + tab1.col1 + - ( - 83 ) FROM tab1 ---- 112 157 176 query I rowsort SELECT DISTINCT - col0 + col1 * - col0 + col1 FROM tab2 ---- -1405 -193 -4621 query I rowsort SELECT ALL + + 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 22c5141a629f0ef396738ee2c8be6303 onlyif mysql # use DIV operator for integer division query I rowsort label-4221 SELECT col2 - + col1 * ( + ( - col1 ) ) DIV - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -33 -4 21 skipif mysql # not compatible query I rowsort label-4221 SELECT col2 - + col1 * ( + ( - col1 ) ) / - cor0.col1 AS col1 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT ALL ( + col2 ) * 86 FROM tab0 AS cor0 ---- 2838 7052 86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 92 - - col1 col1 FROM tab1 AS cor0 ---- 102 105 118 query I rowsort SELECT + - 75 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 258bc565c64924d905a55eaaa6e57547 query I rowsort SELECT DISTINCT + - 39 AS col1 FROM tab0, tab1 AS cor0 ---- -39 query I rowsort SELECT DISTINCT + col0 + - ( col1 ) AS col0 FROM tab1 cor0 ---- -23 54 67 query I rowsort SELECT DISTINCT - 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- -10 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * - col2 * + col0 col2 FROM tab2 ---- -114076 -5103 -52728 onlyif mysql # use DIV operator for integer division query I rowsort label-4229 SELECT ( 69 ) DIV col0 FROM tab1 AS cor0 ---- 0 1 23 skipif mysql # not compatible query I rowsort label-4229 SELECT ( 69 ) / col0 FROM tab1 AS cor0 ---- 0 1 23 query I rowsort SELECT + cor0.col1 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ( 72 ) + col0 FROM tab2 AS cor0 ---- 150 151 79 query I rowsort SELECT ALL + 93 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1, tab2 cor2 ---- 81 values hashing to bed80270d2bd273301f8ff63d7ef9f43 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4233 SELECT - + CAST( 65 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0 ---- -2145 -5330 -65 skipif mysql # not compatible query I rowsort label-4233 SELECT - + CAST ( 65 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0 ---- -2145 -5330 -65 query I rowsort SELECT + + col2 + col1 * col0 FROM tab1 AS cor0 ---- 1136 132 697 onlyif mysql # use DIV operator for integer division query I rowsort label-4235 SELECT tab0.col0 + col1 * - col1 DIV - col1 FROM tab0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-4235 SELECT tab0.col0 + col1 * - col1 / - col1 FROM tab0 ---- 110 132 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 72 * + col1 * col0 col1 FROM tab0 AS cor0 ---- -148608 -244440 -583128 query I rowsort SELECT ALL 52 - + tab0.col2 FROM tab0 ---- -30 19 51 query I rowsort SELECT col0 - + ( - col2 ) FROM tab2 ---- 104 117 34 query I rowsort SELECT ALL col2 * col0 * col0 + col1 * + col0 AS col2 FROM tab2 ---- 1540 162786 238501 query I rowsort SELECT DISTINCT tab1.col2 + tab1.col1 + col0 FROM tab1 ---- 131 189 83 query I rowsort SELECT + 21 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7 query I rowsort SELECT DISTINCT col0 - ( col1 ) AS col0 FROM tab1 ---- -23 54 67 query I rowsort SELECT ALL col2 * - col0 + + 0 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT - tab2.col1 + + col0 + col2 AS col1 FROM tab2 ---- 100 3 45 query I rowsort SELECT - 74 + - col0 FROM tab0 AS cor0 ---- -109 -163 -98 query I rowsort SELECT ALL - col1 * + cor0.col0 + col2 AS col1 FROM tab0 AS cor0 ---- -2031 -3394 -8017 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col2 + col2 * col1 col2 FROM tab2 AS cor0 ---- 1508 608 810 onlyif mysql # use DIV operator for integer division query I rowsort label-4248 SELECT - col2 + - 81 DIV + col0 FROM tab0 AS cor0 ---- -3 -36 -82 skipif mysql # not compatible query I rowsort label-4248 SELECT - col2 + - 81 / + col0 FROM tab0 AS cor0 ---- -3 -36 -82 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( ( - col1 ) AS REAL ) + - 34 * 79 FROM tab1 AS cor0 ---- -2696 -2699 -2712 query I rowsort SELECT DISTINCT + cor0.col0 * 53 AS col0 FROM tab2 AS cor0 ---- 371 4134 4187 query I rowsort SELECT DISTINCT - - 59 AS col2 FROM tab0 AS cor0 ---- 59 query I rowsort SELECT DISTINCT tab2.col0 - cor0.col0 AS col2 FROM tab2, tab0, tab1 AS cor0 ---- 9 values hashing to f8c8144a1e750f938e34a2795af6b4c2 query I rowsort SELECT + tab0.col0 AS col1 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT DISTINCT - tab2.col1 AS col1 FROM tab2, tab0, tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT ALL - col0 * - col2 + + col1 * col0 + + col1 * col1 AS col2 FROM tab1 AS cor0 ---- 4388 8889 916 query I rowsort SELECT ALL - 16 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2 ---- 81 values hashing to 6a726f8493b62c5d4e1dd657007160c3 query I rowsort SELECT ALL + 82 * - col0 - - col2 * - col1 AS col2 FROM tab1 AS cor0 ---- -1650 -5818 -7808 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4258 SELECT ALL - + col2 * + CAST( + 89 AS SIGNED ) - + col1 * - col2 FROM tab2 AS cor0 ---- -1566 -2736 -780 skipif mysql # not compatible query I rowsort label-4258 SELECT ALL - + col2 * + CAST ( + 89 AS INTEGER ) - + col1 * - col2 FROM tab2 AS cor0 ---- -1566 -2736 -780 query I rowsort SELECT col2 * + col2 + ( cor0.col1 ) FROM tab1 AS cor0 ---- 2942 3259 9229 query I rowsort SELECT ALL - + col1 * + 32 AS col0 FROM tab1 cor0 ---- -320 -416 -832 query I rowsort SELECT + col2 - 93 FROM tab2 AS cor0 ---- -55 -66 -67 onlyif mysql # use DIV operator for integer division query I rowsort label-4262 SELECT col2 DIV cor0.col0 - - 85 FROM tab2 AS cor0 ---- 85 85 88 skipif mysql # not compatible query I rowsort label-4262 SELECT col2 / cor0.col0 - - 85 FROM tab2 AS cor0 ---- 85 85 88 query I rowsort SELECT DISTINCT - + col0 + + 96 FROM tab2 AS cor0 ---- 17 18 89 query I rowsort SELECT + - col0 - - 59 FROM tab1 AS cor0 ---- -21 -5 56 query I rowsort SELECT + col0 - col0 * col1 FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT ALL cor0.col1 + + col1 AS col0 FROM tab0 cor0 ---- 172 182 194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col2 * 11 + 91 col2 FROM tab2 AS cor0 ---- 377 388 509 query I rowsort SELECT + cor0.col1 + + ( + col1 ) * col0 * col0 AS col1 FROM tab1 AS cor0 ---- 260 40970 83213 query I rowsort SELECT ALL - col2 - - ( col1 ) AS col1 FROM tab0 AS cor0 ---- 53 9 96 query I rowsort SELECT DISTINCT col2 * - ( col0 ) FROM tab2 ---- -189 -2028 -3002 query I rowsort SELECT ALL + cor0.col0 + col2 AS col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT - 2 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab1 AS cor2 ---- 243 values hashing to 4621fcc9d3a19948ae979ff38b574aa9 query I rowsort SELECT ALL + cor0.col0 * + cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 13db62c4f935162dbaa859c1d738cc13 onlyif mysql # use DIV operator for integer division query I rowsort label-4274 SELECT ALL - - col0 DIV - 96 + col1 * - col0 FROM tab1 AS cor0 ---- -1040 -640 -78 skipif mysql # not compatible query I rowsort label-4274 SELECT ALL - - col0 / - 96 + col1 * - col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT + - col0 * ( - col0 ) + + col2 AS col0 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT ALL 78 AS col1 FROM tab2, tab0 cor0 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 query I rowsort SELECT - col1 * ( + 15 ) FROM tab2 cor0 ---- -255 -465 -885 query I rowsort SELECT col2 * - cor0.col2 * - col2 FROM tab1 AS cor0 ---- 157464 185193 884736 query I rowsort SELECT + - ( + col2 ) + - col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT + ( + col0 ) - + col1 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT ALL - col2 + 43 AS col1 FROM tab1 ---- -11 -14 -53 query I rowsort SELECT + + col1 * col1 + col2 * col1 FROM tab1 cor0 ---- 1417 2080 670 query I rowsort SELECT DISTINCT - col1 * - col1 + + ( col1 * + col1 ) FROM tab0 cor0 ---- 14792 16562 18818 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 59 * + col0 col0 FROM tab0 AS cor0 ---- 1416 2065 5251 query I rowsort SELECT DISTINCT col1 + + col0 + - col1 AS col2 FROM tab0 ---- 24 35 89 query I rowsort SELECT + ( 22 ) * + col0 + + ( col0 + + tab0.col2 * - 87 ) AS col1 FROM tab0 ---- -2319 -5087 718 query I rowsort SELECT DISTINCT + 91 + tab1.col1 + + col1 FROM tab1 ---- 111 117 143 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4288 SELECT CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4288 SELECT CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4289 SELECT ALL + - col1 DIV col1 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4289 SELECT ALL + - col1 / col1 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + col1 * col0 * - ( + col2 * col1 ) FROM tab2 AS cor0 ---- -181629 -7059468 -867578 query I rowsort SELECT + - 77 * cor0.col2 * 47 AS col0 FROM tab2 cor0 ---- -137522 -94094 -97713 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 + - col2 col2 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT cor0.col0 * - ( col1 ) + col1 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT + - 8 * 63 + col1 * + col2 + 35 AS col2 FROM tab2 AS cor0 ---- 1065 177 368 query I rowsort SELECT col2 * 60 FROM tab1 ---- 3240 3420 5760 query I rowsort SELECT col2 * - 16 + col1 FROM tab0 ---- -1221 -442 81 query I rowsort SELECT DISTINCT + col1 + + 40 AS col2 FROM tab1 ---- 50 53 66 onlyif mysql # use DIV operator for integer division query I rowsort label-4298 SELECT DISTINCT col0 DIV - col1 col1 FROM tab0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4298 SELECT DISTINCT col0 / - col1 col1 FROM tab0 ---- 0 query I rowsort SELECT DISTINCT 19 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 19 query I rowsort SELECT ALL + col1 * ( + col2 ) FROM tab1 ---- 1248 1404 570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4301 SELECT DISTINCT - col0 + + CAST( 78 AS SIGNED ) * + col1 AS col2 FROM tab1 ---- 2025 716 934 skipif mysql # not compatible query I rowsort label-4301 SELECT DISTINCT - col0 + + CAST ( 78 AS INTEGER ) * + col1 AS col2 FROM tab1 ---- 2025 716 934 query I rowsort SELECT DISTINCT - col1 + + tab2.col0 * + col2 + - col0 * col1 FROM tab2 ---- -2633 -59 1642 query I rowsort SELECT + 43 * tab0.col2 AS col2 FROM tab0 ---- 1419 3526 43 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 cor1 ---- 972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2 query I rowsort SELECT DISTINCT + col2 * ( - tab1.col1 ) FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT - col2 * - 94 FROM tab2 AS cor0 ---- 2444 2538 3572 query I rowsort SELECT cor0.col0 * 55 + + col1 FROM tab0 AS cor0 ---- 1406 2022 4986 query I rowsort SELECT col1 - - col0 * col0 AS col0 FROM tab1 AS cor0 ---- 35 4106 6413 query I rowsort SELECT DISTINCT - ( - cor0.col1 ) + col2 AS col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT ALL 57 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 query I rowsort SELECT ALL col1 * + 20 + col1 + col0 FROM tab0 AS cor0 ---- 1830 2000 2072 query I rowsort SELECT + col1 + col0 - col0 AS col0 FROM tab2 AS cor0 ---- 17 31 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4313 SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4313 SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT + - col0 + - col1 FROM tab0 cor0 ---- -110 -132 -180 query I rowsort SELECT col1 + - 44 FROM tab2 AS cor0 ---- -13 -27 15 onlyif mysql # use DIV operator for integer division query I rowsort label-4316 SELECT - col2 DIV 32 FROM tab1 ---- -1 -1 -3 skipif mysql # not compatible query I rowsort label-4316 SELECT - col2 / 32 FROM tab1 ---- -1 -1 -3 query I rowsort SELECT tab0.col1 * - ( col0 ) FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT cor0.col1 * ( cor0.col1 ) - - col1 FROM tab2 AS cor0 ---- 306 3540 992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 * - cor0.col2 col1 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT - col1 + - 40 - + cor0.col2 AS col2 FROM tab2 AS cor0 ---- -125 -95 -98 query I rowsort SELECT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 onlyif mysql # use DIV operator for integer division query I rowsort label-4322 SELECT + col0 + + col1 DIV col0 - + col2 AS col2 FROM tab1 ---- -16 -43 7 skipif mysql # not compatible query I rowsort label-4322 SELECT + col0 + + col1 / col0 - + col2 AS col2 FROM tab1 ---- -16 -43 7 query I rowsort SELECT ALL - 17 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4 query IIIIIIIIIIII rowsort SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2 ---- 972 values hashing to 63ccb67e72ebac679a0221202c067b9e query I rowsort SELECT + col1 + + 37 AS col2 FROM tab1 AS cor0 ---- 47 50 63 query I rowsort SELECT + - 68 * - ( + col0 ) - - col1 FROM tab2 AS cor0 ---- 507 5363 5389 onlyif mysql # use DIV operator for integer division query I rowsort label-4327 SELECT + - ( - col1 ) DIV col2 AS col2 FROM tab0 cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-4327 SELECT + - ( - col1 ) / col2 AS col2 FROM tab0 cor0 ---- 1 2 97 query I rowsort SELECT 54 + - 74 FROM tab0 AS cor0 ---- -20 -20 -20 query I rowsort SELECT ALL - 86 * 33 FROM tab1, tab1 AS cor0 ---- 9 values hashing to f64849faf59028aa8ddb86f6d52154bd onlyif mysql # use DIV operator for integer division query I rowsort label-4330 SELECT ALL + + ( col1 ) DIV - col1 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4330 SELECT ALL + + ( col1 ) / - col1 FROM tab1 AS cor0 ---- -1 -1 -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col2 - + 26 col0 FROM tab0 AS cor0 ---- -108 -27 -59 query I rowsort SELECT ALL + - 37 AS col0 FROM tab0 AS cor0 ---- -37 -37 -37 query I rowsort SELECT + - 14 * - col1 + col1 FROM tab2 AS cor0 ---- 255 465 885 query I rowsort SELECT + 14 FROM tab1, tab2 cor0, tab0 cor1 ---- 27 values hashing to 409c1790b702540dd9dc067c1965b7c0 query I rowsort SELECT col0 * + col1 * ( 96 * col2 ) FROM tab0 AS cor0 ---- 325920 63755328 6538752 query I rowsort SELECT - 42 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1 ---- 27 values hashing to 56f86ff01cd96a3511acd46e0e811e27 query I rowsort SELECT + - col1 * col1 * col2 FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT ALL cor0.col1 + + 84 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 01e57787628064ac063a43fd0abbbe4f query I rowsort SELECT + + col1 + col0 * + 5 AS col0 FROM tab1 AS cor0 ---- 330 41 413 query I rowsort SELECT DISTINCT col2 * + col0 * 29 FROM tab2 ---- 5481 58812 87058 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col1 + ( + tab1.col0 ) * + cor0.col2 col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 6686c166d8ce5d6541ed5665580049ae query I rowsort SELECT ( - col2 + col1 ) AS col0 FROM tab1 ---- -28 -47 -83 query I rowsort SELECT + 76 FROM tab1 cor0 ---- 76 76 76 query I rowsort SELECT ALL + - col2 * - cor0.col2 + col0 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT DISTINCT col1 * + col1 + col0 * col0 AS col0 FROM tab0 cor0 ---- 10634 16202 7972 query I rowsort SELECT DISTINCT + - col1 * col2 + 58 * + col1 * cor0.col1 FROM tab2 AS cor0 ---- 16116 200364 54901 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4347 SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-4347 SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - col1 + + 14 * col1 * + 71 AS col2 FROM tab2 ---- 16881 30783 58587 query I rowsort SELECT 26 - col2 * + tab1.col2 AS col2 FROM tab1 ---- -2890 -3223 -9190 query I rowsort SELECT 15 * + col1 + + col2 AS col2 FROM tab2 ---- 293 492 911 query I rowsort SELECT ALL col0 + + col1 * col0 + 23 AS col2 FROM tab0 ---- 2111 3453 8211 skipif mysql # not compatible query I rowsort SELECT ALL col2 * + col0 - + ( col2 + + col0 ) * - CAST ( - 39 AS REAL ) FROM tab0 ---- -1369 -1431 629 query I rowsort SELECT ALL col0 + + col1 - + col2 FROM tab0 ---- 131 77 98 query I rowsort SELECT DISTINCT col1 + + tab1.col2 + col0 FROM tab1 ---- 131 189 83 query I rowsort SELECT ALL 22 * col2 AS col1 FROM tab0 AS cor0 ---- 1804 22 726 query I rowsort SELECT + - col2 * col2 + - col1 - col1 AS col2 FROM tab0 AS cor0 ---- -1261 -195 -6906 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4357 SELECT - - cor0.col1 - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4357 SELECT - - cor0.col1 - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 37 FROM tab0, tab2, tab2 cor0 ---- 27 values hashing to c023509f63faa044d654943e6df55ca2 query I rowsort SELECT DISTINCT col0 * + col1 + - col0 + + tab2.col0 AS col2 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT col2 + + 11 FROM tab1 ---- 107 65 68 query I rowsort SELECT DISTINCT + col1 * col1 + tab0.col1 * tab0.col1 FROM tab0 ---- 14792 16562 18818 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 - - col0 * + col2 col1 FROM tab0 ---- 36 7380 825 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4363 SELECT DISTINCT col1 + - CAST( col0 + col1 AS SIGNED ) * + 47 AS col1 FROM tab2 ---- -1755 -4495 -6380 skipif mysql # not compatible query I rowsort label-4363 SELECT DISTINCT col1 + - CAST ( col0 + col1 AS INTEGER ) * + 47 AS col1 FROM tab2 ---- -1755 -4495 -6380 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4364 SELECT ALL + cor0.col0 + + ( + col2 ) * + CAST( 34 AS SIGNED ) FROM tab2 AS cor0 ---- 1371 925 962 skipif mysql # not compatible query I rowsort label-4364 SELECT ALL + cor0.col0 + + ( + col2 ) * + CAST ( 34 AS INTEGER ) FROM tab2 AS cor0 ---- 1371 925 962 query I rowsort SELECT DISTINCT + - 78 AS col2 FROM tab2 AS cor0 ---- -78 query I rowsort SELECT - col0 + + 11 AS col2 FROM tab0 AS cor0 ---- -13 -24 -78 query I rowsort SELECT + - 3 AS col1 FROM tab2 AS cor0 ---- -3 -3 -3 query I rowsort SELECT DISTINCT - + col0 * - col0 + col2 * + ( + cor0.col2 ) AS col0 FROM tab0 AS cor0 ---- 1226 14645 1665 onlyif mysql # use DIV operator for integer division query I rowsort label-4369 SELECT DISTINCT 68 + - col2 DIV - col2 AS col1 FROM tab0 AS cor0 ---- 69 skipif mysql # not compatible query I rowsort label-4369 SELECT DISTINCT 68 + - col2 / - col2 AS col1 FROM tab0 AS cor0 ---- 69 onlyif mysql # use DIV operator for integer division query I rowsort label-4370 SELECT - - col2 DIV 19 AS col0 FROM tab1 cor0 ---- 2 3 5 skipif mysql # not compatible query I rowsort label-4370 SELECT - - col2 / 19 AS col0 FROM tab1 cor0 ---- 2 3 5 query I rowsort SELECT - + 48 * - 57 * - col2 FROM tab1 AS cor0 ---- -147744 -155952 -262656 query I rowsort SELECT ALL + 83 + col2 FROM tab2 AS cor0 ---- 109 110 121 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 86 + - col2 col0 FROM tab1 AS cor0 ---- -140 -143 -182 query I rowsort SELECT DISTINCT - + col1 + col0 * + col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT ALL ( col0 ) * tab2.col2 AS col1 FROM tab2 ---- 189 2028 3002 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4376 SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab1 cor1, tab0 cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif mysql # not compatible query I rowsort label-4376 SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab1 cor1, tab0 cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c onlyif mysql # use DIV operator for integer division query I rowsort label-4377 SELECT DISTINCT - - 39 DIV + col1 AS col1 FROM tab1 cor0 ---- 1 3 skipif mysql # not compatible query I rowsort label-4377 SELECT DISTINCT - - 39 / + col1 AS col1 FROM tab1 cor0 ---- 1 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 + + col2 col0 FROM tab2 AS cor0 ---- -33 -4 21 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4379 SELECT ALL - ( ( cor0.col2 / CAST( NULL AS DECIMAL ) / - col0 ) ) * + col1 * cor0.col2 col1 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4379 SELECT ALL - ( ( cor0.col2 / CAST ( NULL AS REAL ) / - col0 ) ) * + col1 * cor0.col2 col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT ( cor0.col1 ) + - cor0.col0 + col1 * + col1 FROM tab1 AS cor0 ---- 102 46 699 onlyif mysql # use DIV operator for integer division query I rowsort label-4381 SELECT ALL + + col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-4381 SELECT ALL + + col1 / cor0.col2 AS col0 FROM tab0 AS cor0 ---- 1 2 97 query I rowsort SELECT DISTINCT 80 + - cor0.col2 AS col0 FROM tab1 cor0 ---- -16 23 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 7 + col1 col1 FROM tab2 AS cor0 ---- 10 24 52 query I rowsort SELECT + 93 * cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0 ---- 687828 770133 875037 query I rowsort SELECT + 41 * col0 FROM tab1 AS cor0 ---- 123 2624 3280 query I rowsort SELECT DISTINCT + + ( col1 ) + + col2 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT DISTINCT + + col1 * - col2 - - 33 * cor0.col2 * - col1 FROM tab1 AS cor0 ---- -19380 -42432 -47736 onlyif mysql # use DIV operator for integer division query I rowsort label-4388 SELECT ALL col1 + col2 DIV CAST( + cor0.col0 AS SIGNED ) FROM tab1 cor0 ---- 10 14 44 skipif mysql # not compatible query I rowsort label-4388 SELECT ALL col1 + col2 / CAST ( + cor0.col0 AS INTEGER ) FROM tab1 cor0 ---- 10 14 44 query I rowsort SELECT DISTINCT col2 * + col1 + + col0 + - 29 AS col1 FROM tab2 AS cor0 ---- 1583 696 815 query I rowsort SELECT ALL 60 - - col0 FROM tab0 AS cor0 ---- 149 84 95 query I rowsort SELECT ALL - col0 * + ( + 47 ) + col0 * cor0.col0 + col2 * col0 FROM tab1 AS cor0 ---- 10320 30 4736 query I rowsort SELECT + col0 * + cor0.col0 + + col2 FROM tab0 AS cor0 ---- 1226 609 8003 query I rowsort SELECT DISTINCT - - col2 + col2 + - 19 AS col1 FROM tab2 cor0 ---- 33 35 57 query I rowsort SELECT + col2 * - col0 + 64 AS col0 FROM tab0 AS cor0 ---- -7234 -728 29 onlyif mysql # use DIV operator for integer division query I rowsort label-4395 SELECT DISTINCT col2 - + col2 DIV - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-4395 SELECT DISTINCT col2 - + col2 / - cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT - + col1 * - col0 + 39 * - col2 * 73 FROM tab1 AS cor0 ---- -153660 -161639 -272272 onlyif mysql # use DIV operator for integer division query I rowsort label-4397 SELECT DISTINCT - + cor0.col0 DIV - col0 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-4397 SELECT DISTINCT - + cor0.col0 / - col0 FROM tab0 AS cor0 ---- 1 query I rowsort SELECT col1 * + col1 + - col0 AS col2 FROM tab1 AS cor0 ---- 36 673 89 onlyif mysql # use DIV operator for integer division query I rowsort label-4399 SELECT - col0 * - col0 + + col0 DIV col2 FROM tab0 cor0 ---- 1260 576 7922 skipif mysql # not compatible query I rowsort label-4399 SELECT - col0 * - col0 + + col0 / col2 FROM tab0 cor0 ---- 1260 576 7922 query I rowsort SELECT ALL - + cor0.col2 + 65 AS col0 FROM tab0 AS cor0 ---- -17 32 64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab2.col1 + + col1 - - col0 col1 FROM tab2 ---- 113 196 69 onlyif mysql # use DIV operator for integer division query I rowsort label-4402 SELECT ALL 34 - + col2 DIV 73 AS col1 FROM tab0 ---- 33 34 34 skipif mysql # not compatible query I rowsort label-4402 SELECT ALL 34 - + col2 / 73 AS col1 FROM tab0 ---- 33 34 34 query I rowsort SELECT DISTINCT - col2 * - col0 + - 4 * col0 FROM tab0 AS cor0 ---- -105 6942 696 query I rowsort SELECT ALL + col2 * + 88 FROM tab0 AS cor0 ---- 2904 7216 88 query I rowsort SELECT ALL + col0 * - ( 83 ) AS col0 FROM tab1 AS cor0 ---- -249 -5312 -6640 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4406 SELECT DISTINCT col1 * - CAST( 22 AS SIGNED ) + - col2 + tab2.col1 * - col0 AS col2 FROM tab2 ---- -1755 -5926 -926 skipif mysql # not compatible query I rowsort label-4406 SELECT DISTINCT col1 * - CAST ( 22 AS INTEGER ) + - col2 + tab2.col1 * - col0 AS col2 FROM tab2 ---- -1755 -5926 -926 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col2 + + 11 col1 FROM tab0 AS cor0 ---- 12 44 93 query I rowsort SELECT ( + 20 ) * col0 AS col0 FROM tab1 AS cor0 ---- 1280 1600 60 query I rowsort SELECT - - ( - col0 ) - - 69 AS col1 FROM tab0 AS cor0 ---- -20 34 45 query I rowsort SELECT - 85 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 91e44ead5e72fa22f87a57243e232ede query I rowsort SELECT - 50 - + col1 AS col0 FROM tab2 AS cor0 ---- -109 -67 -81 query I rowsort SELECT + ( col0 ) * - cor0.col0 - + col0 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT cor0.col2 * col2 - col0 AS col2 FROM tab2 AS cor0 ---- 1365 598 722 query I rowsort SELECT col1 * cor0.col1 * - col0 - + col2 FROM tab2 AS cor0 ---- -22869 -271544 -6754 query I rowsort SELECT - col2 * 69 + + col2 AS col0 FROM tab0 AS cor0 ---- -2244 -5576 -68 query I rowsort SELECT DISTINCT - cor0.col1 - + col0 AS col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT - col0 + + ( cor0.col0 ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT col1 + 98 * + 54 * cor0.col2 FROM tab2 cor0 ---- 137651 142915 201113 query I rowsort SELECT col2 * col2 + col1 * + 79 + col0 FROM tab0 ---- 14002 7699 7907 query I rowsort SELECT + ( cor0.col2 ) * col1 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT + + ( + ( col1 ) ) AS col0 FROM tab1 AS cor0 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 2 * - col2 col0 FROM tab2 AS cor0 ---- -52 -54 -76 query I rowsort SELECT - - ( col2 ) * col2 AS col0 FROM tab1 AS cor0 ---- 2916 3249 9216 query I rowsort SELECT - ( 99 ) * col2 + col1 AS col2 FROM tab1 AS cor0 ---- -5320 -5633 -9491 query I rowsort SELECT ( + 54 ) AS col1 FROM tab2 cor0 ---- 54 54 54 query I rowsort SELECT DISTINCT tab0.col0 * - 54 AS col0 FROM tab0 ---- -1296 -1890 -4806 query I rowsort SELECT ALL ( 62 ) AS col0 FROM tab2 ---- 62 62 62 query I rowsort SELECT DISTINCT + + cor0.col0 * col0 FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT ALL 54 * col0 * col2 AS col0 FROM tab2 AS cor0 ---- 10206 109512 162108 query I rowsort SELECT cor0.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 query I rowsort SELECT ALL col0 * col1 + cor0.col2 FROM tab0 AS cor0 ---- 2097 3396 8181 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + col2 * 15 col0 FROM tab0 cor0 ---- 1148 14 462 onlyif mysql # use DIV operator for integer division query I rowsort label-4433 SELECT - - cor0.col0 + col0 DIV col1 AS col1 FROM tab2 AS cor0 ---- 7 79 83 skipif mysql # not compatible query I rowsort label-4433 SELECT - - cor0.col0 + col0 / col1 AS col1 FROM tab2 AS cor0 ---- 7 79 83 query I rowsort SELECT DISTINCT col1 + + col1 * 95 FROM tab1 AS cor0 ---- 1248 2496 960 query I rowsort SELECT - - 63 + - col0 AS col0 FROM tab0 AS cor0 ---- -26 28 39 query I rowsort SELECT col2 + + col1 * + col2 AS col2 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # use DIV operator for integer division query I rowsort label-4437 SELECT DISTINCT + col1 DIV + col2 col2 FROM tab0 cor0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4437 SELECT DISTINCT + col1 / + col2 col2 FROM tab0 cor0 ---- 1 2 97 onlyif mysql # use DIV operator for integer division query I rowsort label-4438 SELECT ( + col2 ) DIV - col1 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-4438 SELECT ( + col2 ) / - col1 FROM tab1 AS cor0 ---- -2 -5 -7 query I rowsort SELECT ALL - 17 * col0 FROM tab0 AS cor0 ---- -1513 -408 -595 onlyif mysql # use DIV operator for integer division query I rowsort label-4440 SELECT DISTINCT - - ( col1 ) DIV col2 + - cor0.col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-4440 SELECT DISTINCT - - ( col1 ) / col2 + - cor0.col1 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT ALL + ( - col1 ) * + col0 FROM tab0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-4442 SELECT col2 DIV - col0 - + tab0.col2 FROM tab0 ---- -1 -34 -82 skipif mysql # not compatible query I rowsort label-4442 SELECT col2 / - col0 - + tab0.col2 FROM tab0 ---- -1 -34 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 70 col1 FROM tab1 ---- 70 query I rowsort SELECT + 76 + col2 * col0 FROM tab0 AS cor0 ---- 111 7374 868 query I rowsort SELECT + col2 * col1 * - col2 FROM tab0 AS cor0 ---- -611884 -93654 -97 query I rowsort SELECT ALL - 57 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 520dc393896969e02a72ab6c5d92126b query I rowsort SELECT - col0 * ( col0 ) FROM tab0 ---- -1225 -576 -7921 query I rowsort SELECT + col2 + 40 AS col2 FROM tab1 AS cor0 ---- 136 94 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col0 + - 88 col1 FROM tab1 AS cor0 ---- -24 -8 -85 onlyif mysql # use DIV operator for integer division query I rowsort label-4450 SELECT ALL - cor0.col0 DIV - 23 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e28dcfeb40d8becacbc8bd219f1748bd skipif mysql # not compatible query I rowsort label-4450 SELECT ALL - cor0.col0 / - 23 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e28dcfeb40d8becacbc8bd219f1748bd onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4451 SELECT + CAST( NULL AS SIGNED ) col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4451 SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 cor2 ---- 81 values hashing to cb33c30d6f52bbb24338a293c740f29c skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 63 col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 5a7845ef6e239561caf9a17a28e274b5 query I rowsort SELECT - col1 * - col0 - - tab1.col2 FROM tab1 ---- 1136 132 697 query I rowsort SELECT - + col2 + - col1 AS col2 FROM tab1 AS cor0 ---- -109 -67 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4455 SELECT + CAST( col0 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0 ---- 4096 6400 9 skipif mysql # not compatible query I rowsort label-4455 SELECT + CAST ( col0 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0 ---- 4096 6400 9 onlyif mysql # use DIV operator for integer division query I rowsort label-4456 SELECT ( col0 ) + + col2 DIV + col2 AS col2 FROM tab0 AS cor0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-4456 SELECT ( col0 ) + + col2 / + col2 AS col2 FROM tab0 AS cor0 ---- 25 36 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4457 SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * + col2 * 46 + + col0 AS col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4457 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * + col2 * 46 + + col0 AS col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT - 35 * col1 AS col2 FROM tab0 AS cor0 ---- -3010 -3185 -3395 query I rowsort SELECT col1 + col0 * col0 * col0 FROM tab1 cor0 ---- 262154 512013 53 query I rowsort SELECT - col0 * col0 * 25 AS col2 FROM tab0 AS cor0 ---- -14400 -198025 -30625 skipif mysql # not compatible query I rowsort SELECT ALL - col2 * CAST ( col1 AS REAL ) AS col2 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT + - col1 * 94 FROM tab2 AS cor0 ---- -1598 -2914 -5546 query I rowsort SELECT DISTINCT + col1 - - 75 * + col1 FROM tab2 AS cor0 ---- 1292 2356 4484 query I rowsort SELECT ALL + col0 - 92 AS col2 FROM tab2 AS cor0 ---- -13 -14 -85 query I rowsort SELECT DISTINCT + col0 * 89 AS col2 FROM tab0 AS cor0 ---- 2136 3115 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-4466 SELECT ALL - - col2 DIV - CAST( ( col2 ) AS SIGNED ) + ( col2 ) + + col0 col2 FROM tab1 cor0 ---- 120 175 56 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4466 SELECT ALL - - col2 / - CAST ( ( col2 ) AS INTEGER ) + ( col2 ) + + col0 col2 FROM tab1 cor0 ---- 120 175 56 query I rowsort SELECT - col1 * + col0 * col0 AS col2 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT - col2 * - 36 AS col1 FROM tab0 AS cor0 ---- 1188 2952 36 query I rowsort SELECT DISTINCT col2 * - 55 + col1 + - col1 AS col2 FROM tab2 AS cor0 ---- -1430 -1485 -2090 query I rowsort SELECT ALL col0 - 54 AS col1 FROM tab2 AS cor0 ---- -47 24 25 query I rowsort SELECT - cor0.col0 + 81 * - col0 FROM tab1 AS cor0 ---- -246 -5248 -6560 query I rowsort SELECT - 35 * col2 AS col2 FROM tab2 AS cor0 ---- -1330 -910 -945 query I rowsort SELECT DISTINCT col0 * col2 + cor0.col1 * + 78 FROM tab2 AS cor0 ---- 2607 4328 6630 query I rowsort SELECT DISTINCT - cor0.col2 - 19 FROM tab0 cor0 ---- -101 -20 -52 query I rowsort SELECT DISTINCT - cor0.col1 FROM tab0, tab2 AS cor0, tab2 cor1 ---- -17 -31 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4476 SELECT DISTINCT - - ( - col2 ) - cor0.col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -1381 -244 -4628 skipif mysql # not compatible query I rowsort label-4476 SELECT DISTINCT - - ( - col2 ) - cor0.col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT ALL 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4 query I rowsort SELECT ALL + 35 * - cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 17f5eca9d4d632167d9b17b94d4bee66 onlyif mysql # use DIV operator for integer division query I rowsort label-4479 SELECT ALL - 17 DIV col0 AS col1 FROM tab2 AS cor0 ---- -2 0 0 skipif mysql # not compatible query I rowsort label-4479 SELECT ALL - 17 / col0 AS col1 FROM tab2 AS cor0 ---- -2 0 0 query I rowsort SELECT ALL - col0 + - col0 * + 7 AS col1 FROM tab2 AS cor0 ---- -56 -624 -632 query I rowsort SELECT DISTINCT ( col1 ) - col1 * ( 79 ) FROM tab2 ---- -1326 -2418 -4602 query I rowsort SELECT DISTINCT 23 + col1 AS col2 FROM tab2 ---- 40 54 82 query I rowsort SELECT + col2 * - 34 AS col2 FROM tab1 ---- -1836 -1938 -3264 query I rowsort SELECT - 51 * col0 FROM tab0 ---- -1224 -1785 -4539 query I rowsort SELECT DISTINCT col0 * tab0.col0 + 7 FROM tab0 ---- 1232 583 7928 query I rowsort SELECT ALL col0 * tab2.col1 + - ( ( col0 ) * + 0 ) AS col0 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT tab2.col1 * col0 - col0 FROM tab2 ---- 1264 210 4524 query I rowsort SELECT ALL 67 + - col1 * col1 AS col2 FROM tab1 ---- -102 -33 -609 query I rowsort SELECT + col1 * + cor0.col0 AS col1 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT + cor0.col1 * col2 * + col0 AS col1 FROM tab1 AS cor0 ---- 36480 4212 99840 query I rowsort SELECT DISTINCT - col2 + + col0 + - col2 FROM tab2 ---- -47 26 3 query I rowsort SELECT ( col0 ) + + col0 FROM tab1 ---- 128 160 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col1 col0 FROM tab1 ---- 100 169 676 query I rowsort SELECT col2 + + col2 * + col1 FROM tab1 ---- 1344 1458 627 query I rowsort SELECT ALL - tab0.col0 * + col1 * - col0 FROM tab0 ---- 118825 49536 720811 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + cor0.col1 * ( + col0 ) col2 FROM tab1 AS cor0 ---- -1040 -640 -78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4497 SELECT col1 * CAST( - col0 * - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 22831 271518 6727 skipif mysql # not compatible query I rowsort label-4497 SELECT col1 * CAST ( - col0 * - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 22831 271518 6727 query I rowsort SELECT ALL - + col0 * + 4 AS col0 FROM tab0 AS cor0 ---- -140 -356 -96 query I rowsort SELECT DISTINCT + cor0.col1 + col2 * - col0 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT ALL cor0.col0 * - cor0.col1 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT ALL col0 + ( col2 ) * col0 * - col0 FROM tab2 ---- -1316 -158106 -237079 query I rowsort SELECT 47 + - tab2.col2 * col2 AS col1 FROM tab2 ---- -1397 -629 -682 query I rowsort SELECT DISTINCT + 69 FROM tab0, tab1, tab2 AS cor0 ---- 69 query I rowsort SELECT ALL col2 + tab0.col0 * col2 FROM tab0 ---- 36 7380 825 query I rowsort SELECT ALL col1 + 30 FROM tab0 ---- 116 121 127 query I rowsort SELECT ALL - 99 * cor0.col2 + + col2 * col0 FROM tab1 AS cor0 ---- -1824 -1995 -5184 query I rowsort SELECT DISTINCT + + 10 + col1 * - col0 AS col2 FROM tab0 AS cor0 ---- -2054 -3385 -8089 query I rowsort SELECT ALL - + 76 + + col2 FROM tab2 AS cor0 ---- -38 -49 -50 query I rowsort SELECT - - ( + cor0.col1 ) AS col0 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - 56 + 95 AS col2 FROM tab1 cor0 ---- 39 39 39 onlyif mysql # use DIV operator for integer division query I rowsort label-4511 SELECT ( - col2 ) DIV - col1 FROM tab2 ---- 0 0 2 skipif mysql # not compatible query I rowsort label-4511 SELECT ( - col2 ) / - col1 FROM tab2 ---- 0 0 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + ( col1 ) * + ( - col0 ) col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + col1 ) * + col2 col0 FROM tab2 AS cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 44 col2 FROM tab2 AS cor0 ---- 44 44 44 query I rowsort SELECT DISTINCT + + col2 * col1 + col2 FROM tab1 AS cor0 ---- 1344 1458 627 skipif mysql # not compatible query I rowsort SELECT DISTINCT + 53 * col2 + CAST ( col0 AS REAL ) FROM tab0 AS cor0 ---- 1773 4435 88 query I rowsort SELECT DISTINCT - col2 + col1 * 72 * + cor0.col0 AS col1 FROM tab0 cor0 ---- 148575 244439 583046 query I rowsort SELECT + 38 + col2 AS col1 FROM tab1 AS cor0 ---- 134 92 95 onlyif mysql # use DIV operator for integer division query I rowsort label-4519 SELECT ALL + cor0.col1 DIV col1 AS col2 FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4519 SELECT ALL + cor0.col1 / col1 AS col2 FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT DISTINCT 23 + - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -31 -34 -73 query I rowsort SELECT ALL + col0 - - cor0.col2 * - 86 FROM tab1 AS cor0 ---- -4641 -4838 -8176 query I rowsort SELECT + col0 + col0 * + 85 AS col1 FROM tab0 AS cor0 ---- 2064 3010 7654 query I rowsort SELECT - + 40 - + cor0.col1 * col2 * + 13 AS col1 FROM tab0 AS cor0 ---- -1301 -36934 -97046 query I rowsort SELECT - 53 * col1 + 75 AS col0 FROM tab0 AS cor0 ---- -4483 -4748 -5066 query I rowsort SELECT DISTINCT + + 49 + + col1 FROM tab0 cor0 ---- 135 140 146 query I rowsort SELECT - 38 + + col1 FROM tab2 cor0 ---- -21 -7 21 query I rowsort SELECT col1 * col1 + - 51 FROM tab1 AS cor0 ---- 118 49 625 query I rowsort SELECT + col0 + + col2 * 19 AS col2 FROM tab1 AS cor0 ---- 1029 1147 1904 query I rowsort SELECT ALL + col0 * col2 + ( col0 ) AS col0 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT - 69 * - cor0.col2 AS col1 FROM tab1 cor0 ---- 3726 3933 6624 query I rowsort SELECT + + col2 * col2 - cor0.col2 AS col0 FROM tab1 AS cor0 ---- 2862 3192 9120 query I rowsort SELECT + ( col0 ) + 56 AS col2 FROM tab0 AS cor0 ---- 145 80 91 query I rowsort SELECT - cor0.col0 * cor0.col2 * + cor0.col2 AS col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to b7b2b8effc834052f52e5cf071e0a114 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col1 + + cor0.col1 col1 FROM tab1, tab0 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 - col1 * + col0 col1 FROM tab1 cor0 ---- -576 -75 -960 query I rowsort SELECT - col2 + - col0 * - col2 * + col0 AS col1 FROM tab2 AS cor0 ---- 1296 158158 237120 query I rowsort SELECT DISTINCT - ( - col2 ) * + col2 AS col0 FROM tab1 AS cor0 ---- 2916 3249 9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * col1 col0 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT + + col0 + col0 * col2 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT ( + col0 ) + cor0.col1 FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-4541 SELECT 95 + col1 DIV + col0 FROM tab1 AS cor0 ---- 103 95 95 skipif mysql # not compatible query I rowsort label-4541 SELECT 95 + col1 / + col0 FROM tab1 AS cor0 ---- 103 95 95 query I rowsort SELECT - + col0 + col1 * cor0.col2 * col2 FROM tab0 AS cor0 ---- 611795 62 93630 query I rowsort SELECT - + 75 + - col0 AS col2 FROM tab2 AS cor0 ---- -153 -154 -82 query I rowsort SELECT ALL ( tab1.col2 + col1 ) AS col0 FROM tab1 ---- 109 67 80 query I rowsort SELECT tab2.col0 + tab2.col0 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 10977325261681ddca962e0a5d2b348b query I rowsort SELECT - - cor0.col0 - cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 79f1b3e85fe5920ef50ef4fba8457641 query I rowsort SELECT ALL col2 + col2 * + col1 AS col1 FROM tab2 ---- 1560 684 864 query I rowsort SELECT col2 * + col2 - + col0 FROM tab1 WHERE NOT ( NULL ) <= col1 + - col2 / + col1 ---- query I rowsort SELECT DISTINCT - tab1.col2 + + col1 * col0 * col1 FROM tab1 ---- 13424 1974 6343 query III rowsort SELECT * FROM tab2 WHERE NOT col2 NOT IN ( - col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + tab0.col1 col1 FROM tab0 ---- 110 132 180 query I rowsort SELECT ALL + col0 + tab2.col1 AS col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT ALL - col2 * col1 + col0 AS col2 FROM tab2 ---- -1456 -567 -830 onlyif mysql # use DIV operator for integer division query I rowsort label-4554 SELECT DISTINCT + col1 DIV + col1 col2 FROM tab1 AS cor0 ---- 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4554 SELECT DISTINCT + col1 / + col1 col2 FROM tab1 AS cor0 ---- 1 query I rowsort SELECT ALL tab2.col1 + col2 * tab2.col2 FROM tab2 ---- 1461 735 760 query I rowsort SELECT col1 * + col1 - col1 FROM tab0 ---- 7310 8190 9312 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * - col0 col0 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT DISTINCT col2 + - col1 * + col1 AS col1 FROM tab2 ---- -251 -3455 -934 query I rowsort SELECT ALL col0 * - col1 * + col2 + + col0 FROM tab0 ---- -3360 -664029 -68088 query I rowsort SELECT DISTINCT + col2 * + col2 + + col0 * + col2 FROM tab2 ---- 2704 4446 918 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col0 + - col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col2 * + tab2.col2 col1 FROM tab2 ---- 1444 676 729 query I rowsort SELECT DISTINCT + col1 / + col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL ---- onlyif mysql # use DIV operator for integer division query I rowsort label-4564 SELECT col1 DIV + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-4564 SELECT col1 / + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 1 2 97 query I rowsort SELECT DISTINCT + col1 * + col0 FROM tab1 WHERE col2 * col0 NOT BETWEEN + col1 * col2 / - col2 AND NULL ---- query III rowsort SELECT * FROM tab1 WHERE ( col2 * - col2 ) NOT IN ( + col1 * col0 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT + col1 * - col0 + - col2 AS col1 FROM tab2 ---- -1381 -244 -4628 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL tab1.col0 + col0 - + tab1.col2 * col0 col1 FROM tab1 ---- -156 -3520 -7520 query I rowsort SELECT ALL col0 + - col2 + - col2 AS col1 FROM tab0 ---- -42 -75 33 query I rowsort SELECT ALL - tab1.col0 + - col0 * + col1 AS col0 FROM tab1 ---- -1120 -704 -81 query I rowsort SELECT - col1 * - col0 + col0 AS col0 FROM tab1 ---- 1120 704 81 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 - col1 ) NOT IN ( col1 + - col0 ) ---- query I rowsort SELECT + col2 + + col0 * col1 - col0 FROM tab1 AS cor0 ---- 1056 129 633 query I rowsort SELECT ALL col1 * 26 + col2 * - ( - col0 + - col2 ) * col0 AS col2 FROM tab2 ---- 212446 351676 7232 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4575 SELECT DISTINCT - + CAST( col1 AS SIGNED ) AS col1 FROM tab1 cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-4575 SELECT DISTINCT - + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 cor0 ---- -10 -13 -26 query I rowsort SELECT ( + col1 ) * col2 * - ( col0 ) + + col1 FROM tab2 AS cor0 ---- -119593 -51017 -5828 query I rowsort SELECT ALL + col2 * - col2 * + col2 AS col0 FROM tab0 AS cor0 ---- -1 -35937 -551368 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 92 col2 FROM tab2 AS cor0 ---- 92 92 92 onlyif mysql # use DIV operator for integer division query I rowsort label-4579 SELECT DISTINCT 61 + - col0 DIV + col2 + - 8 AS col0 FROM tab0 AS cor0 ---- 18 52 53 skipif mysql # not compatible query I rowsort label-4579 SELECT DISTINCT 61 + - col0 / + col2 + - 8 AS col0 FROM tab0 AS cor0 ---- 18 52 53 query I rowsort SELECT ALL 97 + + col2 * cor0.col0 FROM tab2 AS cor0 ---- 2125 286 3099 onlyif mysql # use DIV operator for integer division query I rowsort label-4581 SELECT DISTINCT - col1 + - 72 DIV - col0 AS col2 FROM tab2 AS cor0 ---- -17 -21 -59 skipif mysql # not compatible query I rowsort label-4581 SELECT DISTINCT - col1 + - 72 / - col0 AS col2 FROM tab2 AS cor0 ---- -17 -21 -59 query I rowsort SELECT + col1 * 45 * col2 + + ( + col0 ) AS col2 FROM tab2 cor0 ---- 29149 37672 69108 query I rowsort SELECT DISTINCT + + ( - 85 ) + col0 AS col2 FROM tab0 AS cor0 ---- -50 -61 4 query I rowsort SELECT ALL - ( 68 ) * col2 - + col1 FROM tab1 cor0 ---- -3698 -3886 -6541 query I rowsort SELECT - col0 * + col2 * - col1 + col0 AS col2 FROM tab2 AS cor0 ---- 119730 51113 5866 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4586 SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 * col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4586 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 * col2 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT ALL - col2 + - col1 * col2 FROM tab2 AS cor0 ---- -1560 -684 -864 query I rowsort SELECT ALL ( + col0 ) * col1 + + col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT ALL - 52 * col2 + col1 FROM tab0 AS cor0 ---- -1630 -4173 45 query I rowsort SELECT ALL tab2.col0 + - col2 AS col1 FROM tab2 ---- -20 41 52 query I rowsort SELECT + tab2.col0 * 14 FROM tab2 ---- 1092 1106 98 query I rowsort SELECT ALL + 27 * col0 * cor0.col0 AS col1 FROM tab2 cor0 ---- 1323 164268 168507 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 47 col2 FROM tab0 AS cor0 ---- 47 query I rowsort SELECT col0 + 73 FROM tab2 AS cor0 ---- 151 152 80 query I rowsort SELECT + col1 - 44 AS col2 FROM tab1 AS cor0 ---- -18 -31 -34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4596 SELECT col0 - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 ---- 104 117 34 skipif mysql # not compatible query I rowsort label-4596 SELECT col0 - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT col0 + - 9 AS col1 FROM tab1 AS cor0 ---- -6 55 71 query I rowsort SELECT col1 * ( 72 * col2 ) FROM tab1 ---- 101088 41040 89856 onlyif mysql # use DIV operator for integer division query I rowsort label-4599 SELECT - col1 + + ( col1 ) DIV col0 + + col2 * + 33 * - col0 col0 FROM tab2 AS cor0 ---- -6264 -66983 -99083 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4599 SELECT - col1 + + ( col1 ) / col0 + + col2 * + 33 * - col0 col0 FROM tab2 AS cor0 ---- -6264 -66983 -99083 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col0 * 81 - + col0 col2 FROM tab2 AS cor0 ---- 560 6240 6320 query I rowsort SELECT DISTINCT + col2 * 83 AS col0 FROM tab2 AS cor0 ---- 2158 2241 3154 skipif mysql # not compatible query I rowsort SELECT cor0.col0 + CAST ( col2 AS REAL ) AS col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT + col2 * 83 - 72 FROM tab1 cor0 ---- 4410 4659 7896 query I rowsort SELECT col2 - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT col0 + - ( - col1 * col1 ) FROM tab0 ---- 7420 8370 9444 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4606 SELECT DISTINCT + ( - col2 ) + + cor0.col2 + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4606 SELECT DISTINCT + ( - col2 ) + + cor0.col2 + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT 92 + ( cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- 156 172 95 query I rowsort SELECT ALL - 58 + 86 AS col2 FROM tab2 AS cor0 ---- 28 28 28 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( col2 AS REAL ) + col1 * - col2 * - 71 AS col1 FROM tab2 AS cor0 ---- 108940 45904 59454 query I rowsort SELECT DISTINCT + col0 + col0 * - col1 AS col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 onlyif mysql # use DIV operator for integer division query I rowsort label-4611 SELECT ALL - 56 DIV col2 - col0 AS col0 FROM tab1 cor0 ---- -4 -64 -80 skipif mysql # not compatible query I rowsort label-4611 SELECT ALL - 56 / col2 - col0 AS col0 FROM tab1 cor0 ---- -4 -64 -80 query I rowsort SELECT + - col1 * - 8 + col1 FROM tab2 AS cor0 ---- 153 279 531 query I rowsort SELECT DISTINCT - + cor0.col2 * col0 + col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT ALL - - ( + 4 ) + col2 * - 51 AS col0 FROM tab2 AS cor0 ---- -1322 -1373 -1934 query I rowsort SELECT - col0 * ( - 34 ) + col0 AS col2 FROM tab0 ---- 1225 3115 840 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4616 SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-4616 SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT cor0.col1 + cor0.col0 * + cor0.col2 + - col2 * - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 14851 229 3716 query I rowsort SELECT DISTINCT col2 * col0 + - col1 * + col2 AS col2 FROM tab2 ---- -648 2356 494 query I rowsort SELECT + col1 + col2 * + col1 FROM tab1 ---- 1261 1430 580 query I rowsort SELECT DISTINCT 46 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1 ---- 46 onlyif mysql # use DIV operator for integer division query I rowsort label-4621 SELECT 89 DIV + col1 + + col2 + col2 AS col2 FROM tab0 ---- 164 2 67 skipif mysql # not compatible query I rowsort label-4621 SELECT 89 / + col1 + + col2 + col2 AS col2 FROM tab0 ---- 164 2 67 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4622 SELECT - CAST( - 20 AS SIGNED ) * + tab2.col0 FROM tab2 ---- 140 1560 1580 skipif mysql # not compatible query I rowsort label-4622 SELECT - CAST ( - 20 AS INTEGER ) * + tab2.col0 FROM tab2 ---- 140 1560 1580 query I rowsort SELECT col1 * - col2 + + col0 FROM tab1 ---- -1168 -1401 -506 query I rowsort SELECT + 2 * 71 FROM tab1 ---- 142 142 142 query I rowsort SELECT DISTINCT 87 + col0 FROM tab2 ---- 165 166 94 query I rowsort SELECT DISTINCT - 92 * - 36 * - col1 + col1 + col0 FROM tab0 ---- -284722 -301212 -321132 query I rowsort SELECT col0 * - 98 + col1 FROM tab1 ---- -268 -6262 -7827 query I rowsort SELECT ALL + cor0.col1 * col0 * col0 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT + 22 * col1 AS col2 FROM tab1 cor0 ---- 220 286 572 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - ( - col1 ) + - col1 + col0 col0 FROM tab0 AS cor0 ---- -148 -159 -93 query I rowsort SELECT + ( + 72 ) * col0 AS col1 FROM tab1 ---- 216 4608 5760 onlyif mysql # use DIV operator for integer division query I rowsort label-4632 SELECT - ( col1 + col0 ) * col2 DIV - col0 AS col0 FROM tab1 ---- 111 522 65 skipif mysql # not compatible query I rowsort label-4632 SELECT - ( col1 + col0 ) * col2 / - col0 AS col0 FROM tab1 ---- 111 522 65 query I rowsort SELECT - + 49 AS col1 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to adfccb10c9468825d9961e3613140f89 query I rowsort SELECT + 70 * col0 + ( + col0 ) FROM tab0 ---- 1704 2485 6319 query I rowsort SELECT DISTINCT - 43 AS col2 FROM tab1 ---- -43 query I rowsort SELECT + 99 + 50 FROM tab1, tab0 AS cor0 ---- 9 values hashing to e405bda2d02faef1ec0a7731ac2315a4 query I rowsort SELECT col0 * tab0.col2 + + col0 AS col1 FROM tab0 ---- 70 7387 816 query I rowsort SELECT DISTINCT + tab0.col2 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4639 SELECT DISTINCT - cor0.col1 * CAST( NULL AS SIGNED ) + - 16 * - cor0.col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4639 SELECT DISTINCT - cor0.col1 * CAST ( NULL AS INTEGER ) + - 16 * - cor0.col0 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT 52 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 76100d10f51995d20efdeb657e444d3c query I rowsort SELECT col0 * col2 * + col2 AS col1 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT - col2 * 69 * - col2 FROM tab0 ---- 463956 69 75141 query I rowsort SELECT - col0 * + ( + ( - col0 ) * + col0 ) AS col0 FROM tab0 cor0 ---- 13824 42875 704969 query I rowsort SELECT + - col0 * ( - col2 * col0 ) AS col1 FROM tab2 AS cor0 ---- 1323 158184 237158 onlyif mysql # use DIV operator for integer division query I rowsort label-4645 SELECT - - col0 DIV CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4645 SELECT - - col0 / CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0 ---- 1 1 1 query I rowsort SELECT ALL + + cor1.col1 * cor2.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab2 cor2 ---- 243 values hashing to d1dd20708fd992c2b312a75e8a045ffb onlyif mysql # use DIV operator for integer division query I rowsort label-4647 SELECT + col1 DIV - 27 col0 FROM tab1 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4647 SELECT + col1 / - 27 col0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT ALL - 23 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d query I rowsort SELECT - tab1.col1 + 31 FROM tab1, tab0, tab0 cor0 ---- 27 values hashing to 9908cb0feee6c540d37522aa7f10c7e7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * ( 22 ) col1 FROM tab1 ---- -220 -286 -572 query I rowsort SELECT DISTINCT - tab0.col1 * + ( + col1 ) * + col1 FROM tab0 ---- -636056 -753571 -912673 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4652 SELECT cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4652 SELECT cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 - 19 FROM tab1 ---- -16 45 61 query I rowsort SELECT - 28 * - col0 AS col0 FROM tab1 ---- 1792 2240 84 query I rowsort SELECT ( 10 + + col0 ) * col2 FROM tab1 ---- 4218 702 8640 query I rowsort SELECT DISTINCT col1 * col1 + col0 * + col2 * col1 + - col2 * 36 FROM tab0 ---- 12768 669447 74320 onlyif mysql # use DIV operator for integer division query I rowsort label-4657 SELECT ( col2 ) DIV + col2 + - col1 col0 FROM tab1 ---- -12 -25 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4657 SELECT ( col2 ) / + col2 + - col1 col0 FROM tab1 ---- -12 -25 -9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4658 SELECT ALL + CAST( 78 AS SIGNED ) + + col0 FROM tab0 AS cor0 ---- 102 113 167 skipif mysql # not compatible query I rowsort label-4658 SELECT ALL + CAST ( 78 AS INTEGER ) + + col0 FROM tab0 AS cor0 ---- 102 113 167 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4659 SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col0 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-4659 SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 ---- 1 33 82 query I rowsort SELECT - 20 + + col1 * + ( 38 ) FROM tab0 AS cor0 ---- 3248 3438 3666 query I rowsort SELECT - 21 * + col2 AS col2 FROM tab2 AS cor0 ---- -546 -567 -798 query I rowsort SELECT DISTINCT + cor0.col0 AS col2 FROM tab0, tab2 cor0 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-4663 SELECT + + 21 DIV + col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4663 SELECT + + 21 / + col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT col2 + - col0 - + 56 FROM tab1 AS cor0 ---- -40 -5 -63 query I rowsort SELECT col2 + col0 * col1 * 14 FROM tab2 ---- 18840 3065 64454 query I rowsort SELECT + 54 + - col0 AS col1 FROM tab0 AS cor0 ---- -35 19 30 query I rowsort SELECT ALL - col1 * - col2 + 48 AS col0 FROM tab2 AS cor0 ---- 1582 694 885 query I rowsort SELECT + - col0 + col0 * - cor0.col2 AS col0 FROM tab1 cor0 ---- -165 -3712 -7760 onlyif mysql # use DIV operator for integer division query I rowsort label-4669 SELECT DISTINCT + col1 DIV col1 + + col0 AS col2 FROM tab2 AS cor0 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-4669 SELECT DISTINCT + col1 / col1 + + col0 AS col2 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT ALL + cor0.col1 + ( col0 ) * col1 FROM tab0 AS cor0 ---- 2150 3492 8190 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4671 SELECT DISTINCT + col2 + CAST( + cor0.col1 AS SIGNED ) * + col0 * - cor0.col2 + - col0 * - col2 AS col2 FROM tab0 cor0 ---- -3359 -656738 -67287 skipif mysql # not compatible query I rowsort label-4671 SELECT DISTINCT + col2 + CAST ( + cor0.col1 AS INTEGER ) * + col0 * - cor0.col2 + - col0 * - col2 AS col2 FROM tab0 cor0 ---- -3359 -656738 -67287 onlyif mysql # use DIV operator for integer division query I rowsort label-4672 SELECT ALL cor0.col1 DIV - ( - col1 * + col2 ) AS col1 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4672 SELECT ALL cor0.col1 / - ( - col1 * + col2 ) AS col1 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + - col0 + 43 AS col1 FROM tab2 cor0 ---- -35 -36 36 query I rowsort SELECT col0 * + ( + 63 ) FROM tab0 AS cor0 ---- 1512 2205 5607 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4675 SELECT cor0.col2 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- 164 2 66 skipif mysql # not compatible query I rowsort label-4675 SELECT cor0.col2 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- 164 2 66 query I rowsort SELECT ALL - col1 + 45 AS col1 FROM tab1 AS cor0 ---- 19 32 35 query I rowsort SELECT DISTINCT - col1 + - ( - col1 + + cor0.col2 ) FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT DISTINCT - cor0.col1 * + col0 + 14 * - col2 + - ( col0 ) FROM tab2 cor0 ---- -1954 -5044 -602 query I rowsort SELECT ALL + + col0 * col1 - cor0.col0 FROM tab1 AS cor0 ---- 576 75 960 query I rowsort SELECT col1 + + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT DISTINCT - col0 * - ( col2 * + col1 ) FROM tab0 cor0 ---- 3395 664118 68112 onlyif mysql # use DIV operator for integer division query I rowsort label-4682 SELECT cor0.col0 DIV col1 + 2 DIV col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4682 SELECT cor0.col0 / col1 + 2 / col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4683 SELECT + CAST( NULL AS SIGNED ) * col0 * - col1 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4683 SELECT + CAST ( NULL AS INTEGER ) * col0 * - col1 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col0 + 83 AS col2 FROM tab2 AS cor0 ---- 161 162 90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 11 + + 37 col2 FROM tab1 cor0 ---- 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4686 SELECT ALL CAST( col0 AS SIGNED ) * + col1 + col1 - + col0 FROM tab2 AS cor0 ---- 1281 241 4583 skipif mysql # not compatible query I rowsort label-4686 SELECT ALL CAST ( col0 AS INTEGER ) * + col1 + col1 - + col0 FROM tab2 AS cor0 ---- 1281 241 4583 query I rowsort SELECT DISTINCT + 5 + + col1 AS col2 FROM tab1 cor0 ---- 15 18 31 onlyif mysql # use DIV operator for integer division query I rowsort label-4688 SELECT ALL ( + 43 ) - + col2 DIV - 56 AS col1 FROM tab2 AS cor0 ---- 43 43 43 skipif mysql # not compatible query I rowsort label-4688 SELECT ALL ( + 43 ) - + col2 / - 56 AS col1 FROM tab2 AS cor0 ---- 43 43 43 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col2 - - col0 col1 FROM tab0 AS cor0 ---- 1113 36 6813 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4690 SELECT DISTINCT + col2 + - col1 * - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 ---- -7363 -8199 -9408 skipif mysql # not compatible query I rowsort label-4690 SELECT DISTINCT + col2 + - col1 * - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 ---- -7363 -8199 -9408 query I rowsort SELECT ALL + 35 AS col0 FROM tab0, tab0 cor0 CROSS JOIN tab2 ---- 27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc query I rowsort SELECT - 52 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 9500afe5646d620d5e8943351a29d082 query I rowsort SELECT - + col0 + ( - cor0.col0 ) FROM tab2 AS cor0 ---- -14 -156 -158 onlyif mysql # use DIV operator for integer division query I rowsort label-4694 SELECT ALL - col1 - + 45 DIV + col0 AS col0 FROM tab1 ---- -10 -13 -41 skipif mysql # not compatible query I rowsort label-4694 SELECT ALL - col1 - + 45 / + col0 AS col0 FROM tab1 ---- -10 -13 -41 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + 79 - col1 * tab1.col0 col1 FROM tab1 ---- -497 -881 4 query I rowsort SELECT ALL + ( + 13 ) FROM tab2 cor0 ---- 13 13 13 query I rowsort SELECT col1 * + col0 + - col2 - ( + col1 ) FROM tab1 AS cor0 ---- -2 573 931 query I rowsort SELECT + 6 * + col2 + - cor0.col2 FROM tab2 AS cor0 ---- 130 135 190 query I rowsort SELECT - col0 + col0 - + col0 * + ( 51 ) * col1 FROM tab2 cor0 ---- -11067 -234702 -68493 query I rowsort SELECT DISTINCT - + col2 * col0 * col1 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT - cor0.col1 * 54 AS col1 FROM tab1 AS cor0 ---- -1404 -540 -702 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4702 SELECT ALL + col1 + CAST( NULL AS SIGNED ) / + col2 AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4702 SELECT ALL + col1 + CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL - col2 * col1 + 40 FROM tab2 ---- -1494 -606 -797 query I rowsort SELECT ALL - 6 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 8be8910507908e6353d02a545b748252 onlyif mysql # use DIV operator for integer division query I rowsort label-4705 SELECT ALL col2 * + col2 + + col2 DIV col2 AS col0 FROM tab1 ---- 2917 3250 9217 skipif mysql # not compatible query I rowsort label-4705 SELECT ALL col2 * + col2 + + col2 / col2 AS col0 FROM tab1 ---- 2917 3250 9217 query I rowsort SELECT col2 * col1 + col0 * + col1 + col2 AS col0 FROM tab1 ---- 1267 1536 2384 query I rowsort SELECT ALL + col1 * - col0 + col1 AS col0 FROM tab1 ---- -1027 -52 -630 query I rowsort SELECT 12 * 70 AS col0 FROM tab2 ---- 840 840 840 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4709 SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4709 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 ---- NULL query I rowsort SELECT - col1 + cor0.col0 * + col0 AS col2 FROM tab2 AS cor0 ---- 18 6025 6224 onlyif mysql # use DIV operator for integer division query I rowsort label-4711 SELECT + col0 * cor0.col0 DIV - col1 FROM tab1 AS cor0 ---- -409 -492 0 skipif mysql # not compatible query I rowsort label-4711 SELECT + col0 * cor0.col0 / - col1 FROM tab1 AS cor0 ---- -409 -492 0 query I rowsort SELECT ALL - - 68 FROM tab2 cor0 ---- 68 68 68 query I rowsort SELECT DISTINCT - 24 * + col1 AS col1 FROM tab2 AS cor0 ---- -1416 -408 -744 query I rowsort SELECT DISTINCT col1 * col2 + + cor0.col1 FROM tab2 AS cor0 ---- 1593 663 868 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - 9 + col0 * + cor0.col2 col2 FROM tab0 AS cor0 ---- 44 7307 801 query I rowsort SELECT - + col2 + col2 + col1 * col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT ALL + - col0 + + col0 AS col2 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-4718 SELECT + cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-4718 SELECT + cor0.col0 / col0 AS col1 FROM tab2 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-4719 SELECT ALL - ( + col1 ) DIV + col1 - + ( - 66 ) DIV + col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-4719 SELECT ALL - ( + col1 ) / + col1 - + ( - 66 ) / + col1 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT - - ( 36 ) + - col1 FROM tab1 AS cor0 ---- 10 23 26 skipif mysql # not compatible query I rowsort SELECT DISTINCT - col1 + + col1 * CAST ( 38 AS REAL ) AS col0 FROM tab0 AS cor0 ---- 3182 3367 3589 query I rowsort SELECT ALL 25 FROM tab0 cor0 ---- 25 25 25 query I rowsort SELECT DISTINCT + - cor0.col1 + col0 * - col2 FROM tab1 AS cor0 ---- -188 -3658 -7693 query I rowsort SELECT DISTINCT + - 68 + + col2 AS col0 FROM tab1 AS cor0 ---- -11 -14 28 query I rowsort SELECT col2 + col0 * - col0 FROM tab0 AS cor0 ---- -1224 -543 -7839 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4726 SELECT ALL - col0 * CAST( NULL AS SIGNED ) + - ( + col1 ) + + 50 AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4726 SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + - ( + col1 ) + + 50 AS col2 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL ( 12 ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to d4f5a8e032294c3b9342821617800972 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4728 SELECT ALL + cor0.col2 + CAST( NULL AS DECIMAL ) * + col1 * - col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4728 SELECT ALL + cor0.col2 + CAST ( NULL AS REAL ) * + col1 * - col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT cor0.col1 + 30 * col1 AS col2 FROM tab2 AS cor0 ---- 1829 527 961 query I rowsort SELECT - col2 + + cor0.col1 * col1 + - col1 * col1 * col1 FROM tab1 AS cor0 ---- -16954 -2124 -957 query I rowsort SELECT - col2 * - col1 - + col1 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT ALL col2 * - col0 + - col1 * cor0.col0 FROM tab1 AS cor0 ---- -240 -4288 -8720 query I rowsort SELECT col2 + - col2 + + 22 FROM tab0 AS cor0 ---- 22 22 22 query I rowsort SELECT - cor0.col0 * - 88 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to b71e562fa208472535c371c678cb1c9a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * 5 col0 FROM tab1 AS cor0 ---- 130 50 65 onlyif mysql # use DIV operator for integer division query I rowsort label-4736 SELECT ALL col2 + + 48 + - col0 DIV + col1 FROM tab1 AS cor0 ---- 102 138 99 skipif mysql # not compatible query I rowsort label-4736 SELECT ALL col2 + + 48 + - col0 / + col1 FROM tab1 AS cor0 ---- 102 138 99 query I rowsort SELECT DISTINCT - cor0.col2 * + col1 + + col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4738 SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) / 69 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4738 SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) / 69 FROM tab2 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4739 SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-4739 SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL query I rowsort SELECT - 29 + - cor1.col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to c124f92154ee6bb89335e1ec4d734274 query I rowsort SELECT ALL + col2 - - 76 FROM tab0 AS cor0 ---- 109 158 77 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2, tab0 AS cor3 ---- 3645 values hashing to 2566f3fa788816c8bfc482e730aaed74 query I rowsort SELECT ALL + col0 + - col2 * + col1 AS col2 FROM tab2 cor0 ---- -1456 -567 -830 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 - - col2 col2 FROM tab0 AS cor0 ---- 119 173 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4745 SELECT CAST( NULL AS SIGNED ) - - col1 / col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4745 SELECT CAST ( NULL AS INTEGER ) - - col1 / col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( - 15 ) AS col0 FROM tab0 AS cor0 ---- 15 15 15 query I rowsort SELECT - + cor0.col1 * col1 - col2 * + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -10234 -15743 -9506 query I rowsort SELECT DISTINCT + col0 * ( 33 ) FROM tab2 ---- 231 2574 2607 query I rowsort SELECT DISTINCT - 30 + + col0 FROM tab0 AS cor0 ---- -6 5 59 query I rowsort SELECT DISTINCT col2 + + col2 * + col0 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT ALL - - col2 * cor0.col1 * - ( col2 * col2 ) FROM tab1 AS cor0 ---- -11501568 -1851930 -4094064 query I rowsort SELECT ALL + 23 + - col1 FROM tab0 AS cor0 ---- -63 -68 -74 query I rowsort SELECT DISTINCT - 49 AS col0 FROM tab1 ---- -49 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 94 col2 FROM tab2 ---- 94 onlyif mysql # use DIV operator for integer division query I rowsort label-4755 SELECT col1 DIV + col1 + - CAST( col1 * col0 AS SIGNED ) AS col0 FROM tab0 ---- -2063 -3394 -8098 skipif mysql # not compatible query I rowsort label-4755 SELECT col1 / + col1 + - CAST ( col1 * col0 AS INTEGER ) AS col0 FROM tab0 ---- -2063 -3394 -8098 query I rowsort SELECT col1 * col1 + 56 AS col0 FROM tab0 ---- 7452 8337 9465 query I rowsort SELECT col2 + 37 AS col1 FROM tab0 cor0 ---- 119 38 70 query I rowsort SELECT - cor0.col1 + cor0.col2 + tab2.col0 * ( 83 ) FROM tab2, tab2 AS cor0 ---- 9 values hashing to f2689e3231a539d60eed5c45960761bc query I rowsort SELECT 54 * ( col0 ) + + col2 FROM tab2 AS cor0 ---- 405 4238 4304 query I rowsort SELECT ALL + ( + col0 ) * - tab2.col0 AS col0 FROM tab2 ---- -49 -6084 -6241 query I rowsort SELECT ALL + tab1.col1 AS col2 FROM tab1, tab2 cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4762 SELECT ALL - 42 + + col2 - CAST( 37 + + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -79 -79 -79 skipif mysql # not compatible query I rowsort label-4762 SELECT ALL - 42 + + col2 - CAST ( 37 + + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -79 -79 -79 query I rowsort SELECT + col1 * col0 + col2 * - col1 AS col2 FROM tab0 AS cor0 ---- -774 3298 637 query I rowsort SELECT DISTINCT + col0 * + col2 + - col2 AS col1 FROM tab2 AS cor0 ---- 162 2002 2964 query I rowsort SELECT DISTINCT - 49 + col0 AS col0 FROM tab2 AS cor0 ---- -42 29 30 query I rowsort SELECT - cor0.col0 + - cor0.col1 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT ALL ( + 73 ) + - col2 AS col0 FROM tab1 ---- -23 16 19 query I rowsort SELECT 72 * - col0 - - tab2.col0 AS col2 FROM tab2 ---- -497 -5538 -5609 query I rowsort SELECT - cor0.col0 * 17 AS col2 FROM tab0 AS cor0 ---- -1513 -408 -595 onlyif mysql # use DIV operator for integer division query I rowsort label-4770 SELECT + - col1 DIV ( 39 ) FROM tab0 AS cor0 ---- -2 -2 -2 skipif mysql # not compatible query I rowsort label-4770 SELECT + - col1 / ( 39 ) FROM tab0 AS cor0 ---- -2 -2 -2 onlyif mysql # use DIV operator for integer division query I rowsort label-4771 SELECT 37 DIV - col1 + + col2 FROM tab1 ---- 53 54 94 skipif mysql # not compatible query I rowsort label-4771 SELECT 37 / - col1 + + col2 FROM tab1 ---- 53 54 94 onlyif mysql # use DIV operator for integer division query I rowsort label-4772 SELECT - col2 - - cor0.col2 DIV + cor0.col2 FROM tab1 AS cor0 ---- -53 -56 -95 skipif mysql # not compatible query I rowsort label-4772 SELECT - col2 - - cor0.col2 / + cor0.col2 FROM tab1 AS cor0 ---- -53 -56 -95 query I rowsort SELECT + - col0 * 58 + + col0 + + col1 FROM tab1 AS cor0 ---- -145 -3638 -4547 query I rowsort SELECT + col2 * col0 + 86 + + col0 FROM tab1 AS cor0 ---- 251 3798 7846 query I rowsort SELECT ALL ( - col0 * col0 ) FROM tab1 ---- -4096 -6400 -9 query I rowsort SELECT ALL col1 * + ( 44 ) * + col0 FROM tab2 ---- 202488 59092 9548 query I rowsort SELECT cor0.col0 * - ( col2 ) AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-4778 SELECT - col1 * + col2 + - col0 + cor0.col0 DIV - 90 AS col2 FROM tab2 AS cor0 ---- -1612 -725 -844 skipif mysql # not compatible query I rowsort label-4778 SELECT - col1 * + col2 + - col0 + cor0.col0 / - 90 AS col2 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT + col0 * 39 * + cor0.col1 - col1 * ( + 18 ) AS col1 FROM tab2 AS cor0 ---- 178416 52071 7905 query I rowsort SELECT DISTINCT + col2 * col2 + - cor0.col0 + - col2 * 94 FROM tab1 AS cor0 ---- -2163 -2173 112 query I rowsort SELECT ALL + col0 * - cor0.col1 - + col0 AS col1 FROM tab1 AS cor0 ---- -1120 -704 -81 query I rowsort SELECT + + col2 * - 26 - cor0.col2 * col2 * - col2 AS col1 FROM tab1 AS cor0 ---- 156060 183711 882240 query I rowsort SELECT DISTINCT 17 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1 ---- 17 query I rowsort SELECT + col2 * 20 AS col1 FROM tab2 ---- 520 540 760 onlyif mysql # use DIV operator for integer division query I rowsort label-4785 SELECT + 40 * tab0.col0 + cor0.col2 * 43 DIV 39 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ed4f9cecc79850900289d7b845f6073b skipif mysql # not compatible query I rowsort label-4785 SELECT + 40 * tab0.col0 + cor0.col2 * 43 / 39 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ed4f9cecc79850900289d7b845f6073b query I rowsort SELECT DISTINCT 12 + + ( col0 ) * - col2 FROM tab0 cor0 ---- -23 -7286 -780 query I rowsort SELECT tab0.col0 * ( ( col2 ) ) * 97 FROM tab0 ---- 3395 707906 76824 query I rowsort SELECT - col2 * - 43 AS col1 FROM tab0 ---- 1419 3526 43 query I rowsort SELECT DISTINCT + 40 AS col2 FROM tab0, tab2 cor0 ---- 40 query I rowsort SELECT ALL tab0.col2 * + col2 * - 30 AS col0 FROM tab0 ---- -201720 -30 -32670 onlyif mysql # use DIV operator for integer division query I rowsort label-4791 SELECT + + 90 DIV 12 + - col2 FROM tab1 AS cor0 ---- -47 -50 -89 skipif mysql # not compatible query I rowsort label-4791 SELECT + + 90 / 12 + - col2 FROM tab1 AS cor0 ---- -47 -50 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( - 58 ) * - col1 + + col1 + col2 col0 FROM tab1 ---- 1588 647 863 query I rowsort SELECT - ( - col1 ) + + col0 * - 25 + ( col1 + 19 ) FROM tab1 ---- -1561 -1955 -4 query I rowsort SELECT + col1 + + 1 - + col1 AS col1 FROM tab1 ---- 1 1 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4795 SELECT + CAST( 75 AS SIGNED ) * col0 FROM tab2 AS cor0 ---- 525 5850 5925 skipif mysql # not compatible query I rowsort label-4795 SELECT + CAST ( 75 AS INTEGER ) * col0 FROM tab2 AS cor0 ---- 525 5850 5925 query I rowsort SELECT ALL + col1 + - col1 * col2 AS col2 FROM tab2 AS cor0 ---- -1475 -629 -806 onlyif mysql # use DIV operator for integer division query I rowsort label-4797 SELECT col0 + col0 DIV + col0 AS col1 FROM tab0 AS cor0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-4797 SELECT col0 + col0 / + col0 AS col1 FROM tab0 AS cor0 ---- 25 36 90 query I rowsort SELECT DISTINCT cor0.col0 * + ( col2 ) AS col2 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT ALL - cor0.col0 * col2 AS col1 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL 1 * - col0 AS col2 FROM tab1 cor0 ---- -3 -64 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4801 SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-4801 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- NULL query I rowsort SELECT + 22 * - col2 + + ( cor0.col1 ) AS col2 FROM tab0 AS cor0 ---- -1713 -640 75 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4803 SELECT ALL - + col2 * CAST( - col2 * - col0 AS SIGNED ) + col0 * - 27 AS col1 FROM tab1 AS cor0 ---- -209664 -739440 -8829 skipif mysql # not compatible query I rowsort label-4803 SELECT ALL - + col2 * CAST ( - col2 * - col0 AS INTEGER ) + col0 * - 27 AS col1 FROM tab1 AS cor0 ---- -209664 -739440 -8829 query I rowsort SELECT ALL 25 FROM tab0, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to 2c77240b60ac01c717a5ed5d0165f450 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4805 SELECT ALL col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4805 SELECT ALL col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-4806 SELECT ALL + + col2 + col0 DIV + col0 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-4806 SELECT ALL + + col2 + col0 / + col0 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT DISTINCT - - ( - 34 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1 ---- -34 query I rowsort SELECT DISTINCT + 26 * + col0 AS col1 FROM tab2 AS cor0 ---- 182 2028 2054 query I rowsort SELECT ALL + 77 AS col0 FROM tab2 cor0 ---- 77 77 77 query I rowsort SELECT + - col0 * - cor0.col0 AS col2 FROM tab0 AS cor0 ---- 1225 576 7921 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( cor0.col1 ) col2 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT + + ( + cor0.col0 ) + + ( + col1 ) * - col0 FROM tab0 AS cor0 ---- -2040 -3360 -8010 onlyif mysql # use DIV operator for integer division query I rowsort label-4813 SELECT col1 + col2 DIV col0 AS col0 FROM tab0 ---- 87 91 97 skipif mysql # not compatible query I rowsort label-4813 SELECT col1 + col2 / col0 AS col0 FROM tab0 ---- 87 91 97 query I rowsort SELECT DISTINCT + ( tab1.col0 ) * col2 AS col2 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT 33 * + col0 AS col0 FROM tab2 AS cor0 ---- 231 2574 2607 query I rowsort SELECT DISTINCT + - 88 * + col0 + - 96 AS col2 FROM tab1 AS cor0 ---- -360 -5728 -7136 query I rowsort SELECT ( col2 ) * + 48 FROM tab2 AS cor0 ---- 1248 1296 1824 query I rowsort SELECT DISTINCT ( - col1 ) * + col1 FROM tab0 ---- -7396 -8281 -9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4819 SELECT - col2 * cor0.col2 - - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 ---- -2970 -3306 -9312 skipif mysql # not compatible query I rowsort label-4819 SELECT - col2 * cor0.col2 - - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 ---- -2970 -3306 -9312 query I rowsort SELECT DISTINCT - col2 * + col0 + 12 * + col1 FROM tab2 AS cor0 ---- -1320 -2798 183 onlyif mysql # use DIV operator for integer division query I rowsort label-4821 SELECT col1 DIV + cor0.col0 + + cor0.col1 * + ( col0 ) FROM tab0 AS cor0 ---- 2067 3397 8100 skipif mysql # not compatible query I rowsort label-4821 SELECT col1 / + cor0.col0 + + cor0.col1 * + ( col0 ) FROM tab0 AS cor0 ---- 2067 3397 8100 query I rowsort SELECT - + col2 + col0 * + ( - col1 ) AS col1 FROM tab2 AS cor0 ---- -1381 -244 -4628 query I rowsort SELECT ALL col2 + + col0 * - col0 AS col2 FROM tab1 AS cor0 ---- -4039 -6304 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + col0 + tab0.col2 * + col0 col1 FROM tab0 ---- 167 7478 902 query I rowsort SELECT col2 * + 0 - 25 FROM tab2 ---- -25 -25 -25 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 10 col2 FROM tab0 AS cor0 ---- 10 10 10 query I rowsort SELECT ALL + + ( + col1 ) * - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT ALL 24 AS col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef query I rowsort SELECT - col0 + + 81 * col0 FROM tab2 AS cor0 ---- 560 6240 6320 query I rowsort SELECT - ( col1 * - col0 ) + ( col1 + tab2.col1 ) FROM tab2 ---- 1377 279 4720 query I rowsort SELECT - - col1 * 66 AS col2 FROM tab1 AS cor0 ---- 1716 660 858 query I rowsort SELECT DISTINCT 13 * + col0 AS col0 FROM tab0 cor0 ---- 1157 312 455 onlyif mysql # use DIV operator for integer division query I rowsort label-4833 SELECT DISTINCT + col1 * col0 DIV col0 AS col1 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-4833 SELECT DISTINCT + col1 * col0 / col0 AS col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + - 67 FROM tab0 AS cor0 ---- -67 query I rowsort SELECT ( col2 ) * + col0 + col1 FROM tab0 ---- 132 7389 878 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4836 SELECT CAST( 14 AS SIGNED ) col0 FROM tab0 ---- 14 14 14 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4836 SELECT CAST ( 14 AS INTEGER ) col0 FROM tab0 ---- 14 14 14 query I rowsort SELECT DISTINCT + 17 FROM tab0, tab0 AS cor0 ---- 17 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4838 SELECT DISTINCT + CAST( col1 AS SIGNED ) + + cor0.col2 * - col2 FROM tab0 cor0 ---- -1003 -6633 96 skipif mysql # not compatible query I rowsort label-4838 SELECT DISTINCT + CAST ( col1 AS INTEGER ) + + cor0.col2 * - col2 FROM tab0 cor0 ---- -1003 -6633 96 query I rowsort SELECT - col0 + - cor0.col0 * col0 + col1 * + col2 * col2 FROM tab2 cor0 ---- 18228 22543 33722 query I rowsort SELECT DISTINCT 64 * + col1 + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 1667 704 912 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 30 * - 14 col1 FROM tab1 AS cor0 ---- -420 -420 -420 query I rowsort SELECT DISTINCT + 0 * + col0 + col2 AS col0 FROM tab0 cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-4843 SELECT ALL 30 + 36 DIV cor0.col2 FROM tab0 AS cor0 ---- 30 31 66 skipif mysql # not compatible query I rowsort label-4843 SELECT ALL 30 + 36 / cor0.col2 FROM tab0 AS cor0 ---- 30 31 66 query I rowsort SELECT ALL 96 AS col2 FROM tab0 cor0 ---- 96 96 96 query I rowsort SELECT DISTINCT - 86 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- -86 query I rowsort SELECT DISTINCT + 93 * col1 FROM tab2 AS cor0 ---- 1581 2883 5487 query I rowsort SELECT DISTINCT 62 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 62 onlyif mysql # use DIV operator for integer division query I rowsort label-4848 SELECT + col1 + + col0 DIV CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 ---- 13 26 9 skipif mysql # not compatible query I rowsort label-4848 SELECT + col1 + + col0 / CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 ---- 13 26 9 query I rowsort SELECT - 76 * col1 AS col0 FROM tab2 AS cor0 ---- -1292 -2356 -4484 query I rowsort SELECT col2 * 3 + - ( col0 ) * 36 FROM tab0 AS cor0 ---- -1257 -2958 -765 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 - + col2 col1 FROM tab2 cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4852 SELECT col1 * CAST( NULL AS SIGNED ) + col2 / - col2 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4852 SELECT col1 * CAST ( NULL AS INTEGER ) + col2 / - col2 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col0 * col1 + col2 * + col0 + - col2 FROM tab2 AS cor0 ---- 379 4307 6604 query I rowsort SELECT + + col1 * col0 - col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT + col1 + + col1 * cor0.col2 FROM tab1 cor0 ---- 1261 1430 580 query I rowsort SELECT + 27 + col2 FROM tab2 AS cor0 ---- 53 54 65 query I rowsort SELECT ALL ( - ( + col0 ) ) FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT DISTINCT - ( + 98 ) + col2 FROM tab1 AS cor0 ---- -2 -41 -44 onlyif mysql # use DIV operator for integer division query I rowsort label-4859 SELECT DISTINCT + 69 DIV - col1 + col2 * - col1 FROM tab0 cor0 ---- -2838 -7462 -97 skipif mysql # not compatible query I rowsort label-4859 SELECT DISTINCT + 69 / - col1 + col2 * - col1 FROM tab0 cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL + 63 + col0 AS col1 FROM tab0 AS cor0 ---- 152 87 98 query I rowsort SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab0, tab2 AS cor0, tab2 ---- 17 31 59 query I rowsort SELECT - col2 + - col0 * - col1 FROM tab0 ---- 2031 3394 8017 skipif mysql # not compatible query I rowsort SELECT DISTINCT + col2 * CAST ( col0 AS REAL ) + col1 FROM tab1 ---- 188 3658 7693 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 63 col2 FROM tab1 ---- -63 -63 -63 onlyif mysql # use DIV operator for integer division query I rowsort label-4865 SELECT col1 * col0 DIV + col0 col2 FROM tab0 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-4865 SELECT col1 * col0 / + col0 col2 FROM tab0 ---- 86 91 97 query I rowsort SELECT + col1 * + col1 - + col1 AS col2 FROM tab2 cor0 ---- 272 3422 930 query I rowsort SELECT - col1 * cor0.col0 * col1 + col0 - cor0.col1 * - cor0.col1 AS col1 FROM tab1 AS cor0 ---- -13271 -1349 -6236 query I rowsort SELECT DISTINCT + + col2 + cor0.col1 + col0 AS col1 FROM tab2 AS cor0 ---- 134 163 65 query I rowsort SELECT 94 * ( + col0 ) FROM tab0 AS cor0 ---- 2256 3290 8366 query I rowsort SELECT cor0.col2 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT DISTINCT - ( + tab1.col2 * col0 + - col2 ) AS col1 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT + 46 + ( col0 ) FROM tab0 ---- 135 70 81 query I rowsort SELECT DISTINCT col1 * - col1 + - col0 AS col0 FROM tab2 AS cor0 ---- -3559 -368 -968 onlyif mysql # use DIV operator for integer division query I rowsort label-4874 SELECT ALL - 77 DIV - col0 - - col1 AS col0 FROM tab0 AS cor0 ---- 89 91 99 skipif mysql # not compatible query I rowsort label-4874 SELECT ALL - 77 / - col0 - - col1 AS col0 FROM tab0 AS cor0 ---- 89 91 99 query I rowsort SELECT - + 85 * + col1 FROM tab1 AS cor0 ---- -1105 -2210 -850 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 12 col2 FROM tab0 AS cor0 ---- 12 12 12 query I rowsort SELECT ( + col0 * - col2 ) AS col1 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT 8 + cor0.col1 AS col1 FROM tab0, tab0 AS cor0 ---- 105 94 99 query III rowsort SELECT * FROM tab2 WHERE NOT - col1 * col0 + + col0 * + col2 BETWEEN ( NULL ) AND col1 * col2 + col1 ---- 79 17 38 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col1 > NULL ---- query I rowsort SELECT ALL - col0 * + col1 * - col1 + col0 FROM tab0 ---- 177528 329350 737098 query I rowsort SELECT - col0 + + tab1.col2 * col1 FROM tab1 ---- 1168 1401 506 query III rowsort SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) > NULL ---- query I rowsort SELECT - col1 + col2 * col1 AS col1 FROM tab2 ---- 1475 629 806 onlyif mysql # use DIV operator for integer division query I rowsort label-4885 SELECT DISTINCT - col0 DIV - col0 + col2 * + col2 * col1 AS col0 FROM tab0 ---- 611885 93655 98 skipif mysql # not compatible query I rowsort label-4885 SELECT DISTINCT - col0 / - col0 + col2 * + col2 * col1 AS col0 FROM tab0 ---- 611885 93655 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab2.col2 + - col2 col0 FROM tab2 ---- -52 -54 -76 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * col2 + col1 + col1 col0 FROM tab2 ---- -1416 -612 -775 query I rowsort SELECT ALL col1 - - col2 * + col1 FROM tab2 ---- 1593 663 868 query I rowsort SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL NOT IN ( - col1 * - col0 + tab1.col2 ) ---- query III rowsort SELECT * FROM tab1 WHERE - col2 NOT IN ( col0 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT col1 * - col1 + col0 * - col2 FROM tab2 AS cor0 ---- -1150 -3291 -5509 query I rowsort SELECT ALL - col0 + cor0.col0 * + col2 FROM tab2 AS cor0 ---- 182 1950 2923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + cor0.col1 col0 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT - - col0 * col1 + - cor0.col2 FROM tab2 AS cor0 ---- 1305 190 4576 query I rowsort SELECT ALL col0 + - col2 * - col1 AS col2 FROM tab2 ---- 1612 725 844 query I rowsort SELECT ALL col2 + col1 * + col1 + + col2 AS col0 FROM tab0 ---- 7462 8445 9411 onlyif mysql # use DIV operator for integer division query I rowsort label-4897 SELECT DISTINCT + col0 DIV col1 + col2 * + col0 * tab2.col2 AS col1 FROM tab2 ---- 114080 5103 52729 skipif mysql # not compatible query I rowsort label-4897 SELECT DISTINCT + col0 / col1 + col2 * + col0 * tab2.col2 AS col1 FROM tab2 ---- 114080 5103 52729 query I rowsort SELECT DISTINCT col2 * + tab1.col2 * col1 FROM tab1 ---- 119808 32490 75816 onlyif mysql # use DIV operator for integer division query I rowsort label-4899 SELECT col2 - col1 DIV col1 AS col1 FROM tab0 ---- 0 32 81 skipif mysql # not compatible query I rowsort label-4899 SELECT col2 - col1 / col1 AS col1 FROM tab0 ---- 0 32 81 query I rowsort SELECT + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT 90 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 5d25a546acf3ae171e731e50adc0112e query I rowsort SELECT ALL + 26 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to ede8226bb7e602e221f9d98345b4da37 query I rowsort SELECT DISTINCT + col1 + 85 FROM tab0 AS cor0 ---- 171 176 182 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4904 SELECT - col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4904 SELECT - col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 85 * 55 - + cor0.col1 AS col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to ba5c0dd036d6489a54a97d32fa9c38ab onlyif mysql # use DIV operator for integer division query I rowsort label-4906 SELECT ALL - col2 + col0 DIV - 23 FROM tab0 AS cor0 ---- -2 -34 -85 skipif mysql # not compatible query I rowsort label-4906 SELECT ALL - col2 + col0 / - 23 FROM tab0 AS cor0 ---- -2 -34 -85 query I rowsort SELECT DISTINCT col2 * + 83 FROM tab1 AS cor0 ---- 4482 4731 7968 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4908 SELECT + CAST( NULL AS SIGNED ) * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4908 SELECT + CAST ( NULL AS INTEGER ) * + cor0.col0 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4909 SELECT - CAST( 65 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0 ---- -58 13 14 skipif mysql # not compatible query I rowsort label-4909 SELECT - CAST ( 65 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0 ---- -58 13 14 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 51 * col0 col0 FROM tab2 AS cor0 ---- 357 3978 4029 query I rowsort SELECT ALL + 53 + 42 FROM tab0 AS cor0 ---- 95 95 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 52 * + 36 col2 FROM tab0 AS cor0 ---- -1872 query I rowsort SELECT ALL col1 * - ( - col1 ) AS col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT ALL + 95 * + ( - col1 ) * 3 + + col2 FROM tab0 AS cor0 ---- -24477 -25853 -27644 query I rowsort SELECT - tab1.col0 - col0 * - col1 AS col0 FROM tab1 ---- 576 75 960 query I rowsort SELECT ALL + col1 - + col0 AS col0 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT ALL + - col0 * col2 + + col1 AS col0 FROM tab0 AS cor0 ---- -706 -7207 62 onlyif mysql # use DIV operator for integer division query I rowsort label-4918 SELECT + - 18 DIV col1 + col2 AS col2 FROM tab0 cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-4918 SELECT + - 18 / col1 + col2 AS col2 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT + col0 - + col0 * col2 AS col2 FROM tab2 cor0 ---- -182 -1950 -2923 query I rowsort SELECT ALL - col0 * col2 * col2 AS col2 FROM tab0 AS cor0 ---- -26136 -35 -598436 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4921 SELECT + col2 * + col2 * CAST( col1 AS SIGNED ) + cor0.col0 * 71 FROM tab0 cor0 ---- 2582 618203 95358 skipif mysql # not compatible query I rowsort label-4921 SELECT + col2 * + col2 * CAST ( col1 AS INTEGER ) + cor0.col0 * 71 FROM tab0 cor0 ---- 2582 618203 95358 query I rowsort SELECT ALL - col0 * col0 - 40 AS col1 FROM tab1 AS cor0 ---- -4136 -49 -6440 query I rowsort SELECT DISTINCT + 11 + - col2 * col1 AS col2 FROM tab0 AS cor0 ---- -2827 -7451 -86 query I rowsort SELECT + + col1 * col2 + col0 AS col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL - col1 * + col2 + + 73 * + cor0.col1 + col2 * 40 * - col0 FROM tab1 AS cor0 ---- -145760 -307499 -5986 query I rowsort SELECT ALL ( + tab0.col0 ) - tab0.col2 AS col1 FROM tab0 ---- -9 34 7 query I rowsort SELECT DISTINCT + ( col2 ) - - col0 AS col2 FROM tab0 ---- 171 36 57 query I rowsort SELECT 63 * - col1 * - col0 + col0 - col1 FROM tab0 ---- 129970 213823 510235 query I rowsort SELECT col0 * cor0.col1 + + col0 + cor0.col2 AS col2 FROM tab0 cor0 ---- 2121 3431 8270 query I rowsort SELECT ALL + + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT - + 79 + col1 FROM tab1 AS cor0 ---- -53 -66 -69 onlyif mysql # use DIV operator for integer division query I rowsort label-4932 SELECT cor0.col1 DIV - col1 + col0 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-4932 SELECT cor0.col1 / - col1 + col0 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT DISTINCT - - 81 FROM tab0 AS cor0 ---- 81 query I rowsort SELECT - + col1 + col1 + ( col0 ) AS col2 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT col1 * + col0 * + col1 AS col0 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT col2 + ( 90 ) * col2 AS col2 FROM tab2 AS cor0 ---- 2366 2457 3458 query I rowsort SELECT ALL col1 * + col2 * ( tab0.col1 ) + + col0 FROM tab0 ---- 244092 679131 9444 query I rowsort SELECT - 56 * - tab1.col1 FROM tab1 ---- 1456 560 728 query I rowsort SELECT + col0 + col0 * - 70 AS col0 FROM tab2 AS cor0 ---- -483 -5382 -5451 query I rowsort SELECT + col1 + + 7 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- 104 208 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + ( + col0 ) * col2 col0 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT col1 * - col2 + ( - col1 ) * + col1 AS col2 FROM tab0 AS cor0 ---- -10234 -15743 -9506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab0.col0 * + col1 col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT + col1 * - col1 * 31 AS col0 FROM tab1 ---- -20956 -3100 -5239 query I rowsort SELECT ALL 73 + - tab1.col2 FROM tab1 ---- -23 16 19 query I rowsort SELECT - ( 23 ) AS col1 FROM tab0, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5 query I rowsort SELECT DISTINCT 65 + - col1 FROM tab1 ---- 39 52 55 query I rowsort SELECT tab1.col2 * - tab1.col2 * + ( - 77 * + tab1.col2 ) FROM tab1 ---- 12124728 14259861 68124672 query I rowsort SELECT ALL + col1 * col0 + - col0 * - cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 14560 2106 7040 onlyif mysql # use DIV operator for integer division query I rowsort label-4950 SELECT - col1 DIV 33 + col2 AS col1 FROM tab2 AS cor0 ---- 25 27 38 skipif mysql # not compatible query I rowsort label-4950 SELECT - col1 / 33 + col2 AS col1 FROM tab2 AS cor0 ---- 25 27 38 query I rowsort SELECT DISTINCT 40 * col0 + col2 AS col1 FROM tab1 ---- 174 2617 3296 query I rowsort SELECT DISTINCT 47 + col0 AS col2 FROM tab1 ---- 111 127 50 query I rowsort SELECT 42 + + col1 * + col2 * ( col0 ) FROM tab2 ---- 119694 51076 5901 query I rowsort SELECT ALL 67 * - cor0.col1 FROM tab2 AS cor0 ---- -1139 -2077 -3953 onlyif mysql # use DIV operator for integer division query I rowsort label-4955 SELECT ( col2 ) DIV 7 FROM tab2 ---- 3 3 5 skipif mysql # not compatible query I rowsort label-4955 SELECT ( col2 ) / 7 FROM tab2 ---- 3 3 5 query I rowsort SELECT DISTINCT - col1 * col1 * + col1 FROM tab0 ---- -636056 -753571 -912673 onlyif mysql # use DIV operator for integer division query I rowsort label-4957 SELECT ALL + + 76 DIV + col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-4957 SELECT ALL + + 76 / + col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - - 83 + col0 - 51 * + 4 * - cor0.col1 FROM tab2 cor0 ---- 12197 3630 6414 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4959 SELECT col0 * cor0.col1 + CAST( + col2 AS SIGNED ) * col1 - - col2 FROM tab1 AS cor0 ---- 1267 1536 2384 skipif mysql # not compatible query I rowsort label-4959 SELECT col0 * cor0.col1 + CAST ( + col2 AS INTEGER ) * col1 - - col2 FROM tab1 AS cor0 ---- 1267 1536 2384 query I rowsort SELECT DISTINCT - + ( - cor0.col2 ) FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL 54 * + col0 FROM tab1 AS cor0 ---- 162 3456 4320 query I rowsort SELECT ALL + 77 * 74 FROM tab1, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to b9ed41ee68433de5e03a7b3ba0ff805f query I rowsort SELECT - 39 * cor0.col0 FROM tab1 cor0 ---- -117 -2496 -3120 query I rowsort SELECT ALL col2 + col1 * - 59 FROM tab2 AS cor0 ---- -1802 -3455 -965 query I rowsort SELECT - 6 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 8be8910507908e6353d02a545b748252 query I rowsort SELECT ALL - 16 * col1 FROM tab1 ---- -160 -208 -416 query I rowsort SELECT - col2 + - col0 + + col2 AS col0 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT 32 FROM tab0, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to cf4f01ac97eb83445b1721f3ae28961a onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4969 SELECT + col1 + cor0.col1 * + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-4969 SELECT + col1 + cor0.col1 * + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( tab1.col0 ) * tab1.col0 * 69 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to aad2365742ba5767fbfc4b905d25f583 query I rowsort SELECT ALL col1 + - col0 * + col1 AS col2 FROM tab1 cor0 ---- -1027 -52 -630 query I rowsort SELECT - + col2 * 81 + cor0.col1 FROM tab2 AS cor0 ---- -2047 -2156 -3061 query I rowsort SELECT + + col1 + - cor0.col2 * col1 AS col0 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT + 50 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 query I rowsort SELECT - col0 + - 74 AS col1 FROM tab1 AS cor0 ---- -138 -154 -77 query I rowsort SELECT DISTINCT + col0 * 5 FROM tab2 AS cor0 ---- 35 390 395 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4977 SELECT CAST( + 12 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- 12 12 12 skipif mysql # not compatible query I rowsort label-4977 SELECT CAST ( + 12 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- 12 12 12 query I rowsort SELECT 60 * ( cor0.col0 ) FROM tab0 AS cor0 ---- 1440 2100 5340 query I rowsort SELECT ALL + 11 + - col2 FROM tab0 cor0 ---- -22 -71 10 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( - cor0.col1 ) col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT - 3 + 96 FROM tab1 AS cor0 ---- 93 93 93 query I rowsort SELECT DISTINCT + 63 AS col1 FROM tab0 AS cor0 ---- 63 query I rowsort SELECT ALL - 68 AS col0 FROM tab2 AS cor0 ---- -68 -68 -68 query I rowsort SELECT + - 66 AS col2 FROM tab0 cor0 ---- -66 -66 -66 query I rowsort SELECT DISTINCT + + 36 * col1 AS col2 FROM tab0 AS cor0 ---- 3096 3276 3492 onlyif mysql # use DIV operator for integer division query I rowsort label-4986 SELECT ALL 97 DIV + col2 + - col1 DIV - 23 FROM tab0 AS cor0 ---- 101 4 5 skipif mysql # not compatible query I rowsort label-4986 SELECT ALL 97 / + col2 + - col1 / - 23 FROM tab0 AS cor0 ---- 101 4 5 query I rowsort SELECT DISTINCT - ( - cor0.col0 ) + ( col0 ) AS col2 FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT DISTINCT - col2 * cor0.col1 * + col2 + - col0 AS col2 FROM tab1 AS cor0 ---- -119888 -32554 -75819 onlyif mysql # use DIV operator for integer division query I rowsort label-4989 SELECT DISTINCT + 73 + col2 DIV + col1 FROM tab0 AS cor0 ---- 73 skipif mysql # not compatible query I rowsort label-4989 SELECT DISTINCT + 73 + col2 / + col1 FROM tab0 AS cor0 ---- 73 query I rowsort SELECT 59 + - 80 * col0 FROM tab0 ---- -1861 -2741 -7061 query I rowsort SELECT DISTINCT 17 * 67 + col2 * col1 FROM tab1 ---- 1709 2387 2543 query I rowsort SELECT ALL 30 + col0 FROM tab0 ---- 119 54 65 query I rowsort SELECT + + cor0.col1 * + col1 FROM tab1 cor0 ---- 100 169 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 - cor0.col2 col2 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col1 * - col0 * - col0 AS col2 FROM tab1 AS cor0 ---- 234 40960 83200 query I rowsort SELECT - col0 + - col1 + col0 * col0 FROM tab0 AS cor0 ---- 1093 466 7741 query I rowsort SELECT col1 * col2 * 62 FROM tab0 ---- 175956 462644 6014 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-4998 SELECT DISTINCT + col0 + CAST( 81 AS SIGNED ) FROM tab2 ---- 159 160 88 skipif mysql # not compatible query I rowsort label-4998 SELECT DISTINCT + col0 + CAST ( 81 AS INTEGER ) FROM tab2 ---- 159 160 88 query I rowsort SELECT tab0.col1 * + 95 + + 31 + col1 * col0 AS col2 FROM tab0 ---- 10265 12641 16775 query I rowsort SELECT - + 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680 onlyif mysql # use DIV operator for integer division query I rowsort label-5001 SELECT col0 + 48 - col0 DIV col0 FROM tab0 ---- 136 71 82 skipif mysql # not compatible query I rowsort label-5001 SELECT col0 + 48 - col0 / col0 FROM tab0 ---- 136 71 82 query I rowsort SELECT ALL 44 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5003 SELECT ALL + CAST( 26 AS SIGNED ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 skipif mysql # not compatible query I rowsort label-5003 SELECT ALL + CAST ( 26 AS INTEGER ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5004 SELECT col1 + CAST( + col1 AS SIGNED ) * - col1 * col1 + - col1 AS col0 FROM tab1 ---- -1000 -17576 -2197 skipif mysql # not compatible query I rowsort label-5004 SELECT col1 + CAST ( + col1 AS INTEGER ) * - col1 * col1 + - col1 AS col0 FROM tab1 ---- -1000 -17576 -2197 query I rowsort SELECT - + cor0.col0 * col1 - col2 * cor0.col2 AS col2 FROM tab0 AS cor0 ---- -14823 -3153 -3396 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5006 SELECT cor0.col0 * + CAST( NULL AS SIGNED ) / col0 + col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5006 SELECT cor0.col0 * + CAST ( NULL AS INTEGER ) / col0 + col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 * 55 * - tab2.col0 AS col1 FROM tab2 ---- -11935 -253110 -73865 query I rowsort SELECT DISTINCT - col2 + 35 * + tab1.col0 * col1 FROM tab1 ---- 22343 2676 36304 query I rowsort SELECT tab1.col0 * col1 - col0 AS col2 FROM tab1 ---- 576 75 960 query I rowsort SELECT + 42 * cor0.col1 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 603f62ad077d44f7b7a830a552aee028 query I rowsort SELECT DISTINCT col1 * - col2 + 69 * + col0 AS col0 FROM tab2 ---- -354 3848 4805 query I rowsort SELECT - tab2.col2 + + col2 AS col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL - ( + col0 ) + + col2 FROM tab2 ---- -41 -52 20 query I rowsort SELECT + + 87 + cor0.col1 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 92ed391e1e0dfe246e05f91b5252c355 onlyif mysql # use DIV operator for integer division query I rowsort label-5015 SELECT ( col0 ) DIV 30 + - 37 AS col2 FROM tab1 ---- -35 -35 -37 skipif mysql # not compatible query I rowsort label-5015 SELECT ( col0 ) / 30 + - 37 AS col2 FROM tab1 ---- -35 -35 -37 query I rowsort SELECT ALL + col2 + col0 * + 23 FROM tab2 ---- 1820 1855 188 onlyif mysql # use DIV operator for integer division query I rowsort label-5017 SELECT - col2 DIV + col0 + - col1 * - ( tab0.col2 ) FROM tab0 ---- 2837 7462 97 skipif mysql # not compatible query I rowsort label-5017 SELECT - col2 / + col0 + - col1 * - ( tab0.col2 ) FROM tab0 ---- 2837 7462 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 44 + col0 col2 FROM tab2 AS cor0 ---- 122 123 51 query I rowsort SELECT DISTINCT col1 + - col1 * - col1 AS col1 FROM tab0 AS cor0 ---- 7482 8372 9506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 67 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 67 onlyif mysql # use DIV operator for integer division query I rowsort label-5021 SELECT col1 DIV ( col0 ) AS col2 FROM tab0 AS cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-5021 SELECT col1 / ( col0 ) AS col2 FROM tab0 AS cor0 ---- 1 2 3 query I rowsort SELECT ALL - col0 * col1 * - col1 FROM tab2 cor0 ---- 22831 271518 6727 query I rowsort SELECT DISTINCT - col0 * ( + col1 ) + col2 FROM tab1 AS cor0 ---- -24 -583 -944 query I rowsort SELECT DISTINCT - col2 + + col2 * - col1 AS col2 FROM tab1 AS cor0 ---- -1344 -1458 -627 onlyif mysql # use DIV operator for integer division query I rowsort label-5025 SELECT col1 DIV - ( 56 ) FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5025 SELECT col1 / - ( 56 ) FROM tab0 AS cor0 ---- -1 -1 -1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5026 SELECT ALL + col1 * CAST( col1 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0 ---- -13520 -2028 -6400 skipif mysql # not compatible query I rowsort label-5026 SELECT ALL + col1 * CAST ( col1 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0 ---- -13520 -2028 -6400 query I rowsort SELECT - + col0 * 61 FROM tab1 cor0 ---- -183 -3904 -4880 query I rowsort SELECT DISTINCT - col2 * + 41 * - col2 AS col2 FROM tab1 AS cor0 ---- 119556 133209 377856 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5029 SELECT DISTINCT - col2 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 ---- -1444 -676 -729 skipif mysql # not compatible query I rowsort label-5029 SELECT DISTINCT - col2 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT + col2 + col0 * 18 FROM tab0 AS cor0 ---- 1684 465 631 query I rowsort SELECT ALL - col2 * col2 - col2 AS col0 FROM tab0 ---- -1122 -2 -6806 onlyif mysql # use DIV operator for integer division query I rowsort label-5032 SELECT DISTINCT - col2 DIV col1 + + col0 AS col1 FROM tab2 ---- 7 77 78 skipif mysql # not compatible query I rowsort label-5032 SELECT DISTINCT - col2 / col1 + + col0 AS col1 FROM tab2 ---- 7 77 78 query I rowsort SELECT ALL + col1 * + col0 + col0 FROM tab0 ---- 2088 3430 8188 onlyif mysql # use DIV operator for integer division query I rowsort label-5034 SELECT DISTINCT + col2 DIV col0 + - tab2.col2 col2 FROM tab2 ---- -24 -26 -38 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5034 SELECT DISTINCT + col2 / col0 + - tab2.col2 col2 FROM tab2 ---- -24 -26 -38 query I rowsort SELECT ALL col0 * col0 * + col0 + - col2 + - col1 * col0 * + col1 FROM tab0 ---- -163713 -286441 -32122 query I rowsort SELECT ALL col2 AS col1 FROM tab0 WHERE NULL BETWEEN + col2 * col1 / - col0 - col1 AND NULL ---- query I rowsort SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE tab0.col0 <= NULL ---- query I rowsort SELECT + tab2.col0 * - tab2.col0 - col2 AS col2 FROM tab2 ---- -6110 -6279 -76 onlyif mysql # use DIV operator for integer division query I rowsort label-5039 SELECT - col0 DIV col0 + col0 DIV col0 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5039 SELECT - col0 / col0 + col0 / col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT - + 13 + + col0 AS col0 FROM tab1 AS cor0 ---- -10 51 67 onlyif mysql # use DIV operator for integer division query I rowsort label-5041 SELECT ALL + 5 * col1 DIV - 92 AS col2 FROM tab2 AS cor0 ---- -1 -3 0 skipif mysql # not compatible query I rowsort label-5041 SELECT ALL + 5 * col1 / - 92 AS col2 FROM tab2 AS cor0 ---- -1 -3 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5042 SELECT DISTINCT col1 DIV + col2 + col2 * - col2 + + col0 * - col0 FROM tab0 ---- -1129 -14644 -1663 skipif mysql # not compatible query I rowsort label-5042 SELECT DISTINCT col1 / + col2 + col2 * - col2 + + col0 * - col0 FROM tab0 ---- -1129 -14644 -1663 query I rowsort SELECT col2 * col2 * + col1 FROM tab1 ---- 119808 32490 75816 query I rowsort SELECT - col2 * + col0 * col2 FROM tab2 ---- -114076 -5103 -52728 query I rowsort SELECT + tab0.col1 * + col1 * - tab0.col1 AS col0 FROM tab0 ---- -636056 -753571 -912673 query I rowsort SELECT ALL col2 * - col2 + col2 + tab0.col1 * + col0 FROM tab0 ---- 1008 1457 3395 query I rowsort SELECT - col2 + + col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( tab1.col1 * + col2 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + - tab0.col1 + col2 col0 FROM tab0 ---- 1 33 82 query III rowsort SELECT * FROM tab2 WHERE ( NULL ) IN ( + tab2.col1 ) ---- query I rowsort SELECT col2 + col0 + col1 AS col0 FROM tab0 ---- 133 143 262 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5051 SELECT 78 * + col0 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5051 SELECT 78 * + col0 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col0 * col2 + ( + col2 ) AS col1 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT - + col0 - + col0 AS col0 FROM tab0 cor0 ---- -178 -48 -70 query I rowsort SELECT DISTINCT cor0.col1 * + col1 * cor0.col0 + 88 AS col1 FROM tab2 cor0 ---- 22919 271606 6815 query I rowsort SELECT ALL - + col0 + - col0 * col2 AS col2 FROM tab2 AS cor0 ---- -196 -2106 -3081 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + col0 * col1 + col0 col1 FROM tab0 AS cor0 ---- 2112 3465 8277 query I rowsort SELECT ALL + - cor0.col2 * + cor0.col1 - col1 FROM tab0 AS cor0 ---- -194 -2924 -7553 query I rowsort SELECT DISTINCT - + cor0.col1 - col2 FROM tab1 AS cor0 ---- -109 -67 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-5059 SELECT col2 - cor0.col2 DIV col1 FROM tab2 AS cor0 ---- 26 27 36 skipif mysql # not compatible query I rowsort label-5059 SELECT col2 - cor0.col2 / col1 FROM tab2 AS cor0 ---- 26 27 36 query I rowsort SELECT - - col2 * col0 + + col0 FROM tab0 cor0 ---- 70 7387 816 query I rowsort SELECT ( - col1 ) + col0 * col1 + - col0 FROM tab2 AS cor0 ---- 1247 179 4465 query I rowsort SELECT cor1.col0 AS col0 FROM tab0, tab2 cor0, tab1, tab0 AS cor1 ---- 81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5063 SELECT ALL + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-5063 SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT col1 * + 45 AS col2 FROM tab2 AS cor0 ---- 1395 2655 765 query I rowsort SELECT - 72 * + col1 AS col2 FROM tab0 cor0 ---- -6192 -6552 -6984 query I rowsort SELECT ALL - + 60 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 067a4b5daf8747042e3b07ca8459859f query I rowsort SELECT - ( - ( cor0.col1 ) ) FROM tab2, tab2 AS cor0 ---- 9 values hashing to c61d27a0022e6d022371dc58819ab272 query I rowsort SELECT cor0.col0 AS col1 FROM tab0, tab2, tab2 AS cor0, tab1 ---- 81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6 query I rowsort SELECT 33 * + col0 + col2 AS col0 FROM tab0 AS cor0 ---- 1156 3019 825 query I rowsort SELECT ALL + col1 + 99 FROM tab2 AS cor0 ---- 116 130 158 onlyif mysql # use DIV operator for integer division query I rowsort label-5071 SELECT DISTINCT - CAST( - col2 AS SIGNED ) * - col1 - + col1 DIV col0 FROM tab2 AS cor0 ---- -1534 -646 -841 skipif mysql # not compatible query I rowsort label-5071 SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * - col1 - + col1 / col0 FROM tab2 AS cor0 ---- -1534 -646 -841 query I rowsort SELECT ALL - col0 - col1 * - col1 AS col0 FROM tab1 AS cor0 ---- 36 673 89 query I rowsort SELECT DISTINCT - + 32 * col1 * + col0 + 21 FROM tab0 AS cor0 ---- -108619 -259147 -66027 query I rowsort SELECT DISTINCT - col0 * - 76 AS col2 FROM tab1 ---- 228 4864 6080 query I rowsort SELECT + cor0.col2 + + ( + col0 ) AS col0 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT + 81 + 6 FROM tab0 AS cor0 ---- 87 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT DISTINCT + col1 * + CAST ( - col2 AS REAL ) col1 FROM tab0 AS cor0 ---- -2838 -7462 -97 query I rowsort SELECT ALL col1 * 5 + col2 FROM tab1 cor0 ---- 107 161 184 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5079 SELECT col1 * CAST( - 91 AS SIGNED ) FROM tab2 AS cor0 ---- -1547 -2821 -5369 skipif mysql # not compatible query I rowsort label-5079 SELECT col1 * CAST ( - 91 AS INTEGER ) FROM tab2 AS cor0 ---- -1547 -2821 -5369 query I rowsort SELECT col2 * + col2 + col1 FROM tab1 AS cor0 ---- 2942 3259 9229 query I rowsort SELECT col0 + ( - ( - col1 ) ) * - ( cor0.col2 ) * - col1 AS col1 FROM tab1 AS cor0 ---- 16304 36507 5764 skipif mysql # not compatible query I rowsort SELECT - + col2 + CAST ( + col2 + + col1 AS REAL ) AS col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + col1 * - ( + ( col0 ) ) FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT cor0.col0 + - 58 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- -23 -34 31 query I rowsort SELECT DISTINCT ( cor0.col1 ) + - col1 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT - + 16 * 16 FROM tab0, tab1 AS cor0, tab1, tab1 cor1 ---- 81 values hashing to c9ebc16c9b54e72978d92a3e19160629 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5087 SELECT col1 + - CAST( 40 AS SIGNED ) AS col1 FROM tab0 cor0 ---- 46 51 57 skipif mysql # not compatible query I rowsort label-5087 SELECT col1 + - CAST ( 40 AS INTEGER ) AS col1 FROM tab0 cor0 ---- 46 51 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5088 SELECT - - col0 + - col0 * + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 ---- 1260 600 8010 skipif mysql # not compatible query I rowsort label-5088 SELECT - - col0 + - col0 * + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT ALL + col1 * col1 * col1 AS col0 FROM tab0 ---- 636056 753571 912673 query I rowsort SELECT ALL + 38 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7 query I rowsort SELECT + col2 * - col0 + - col0 * ( - col0 ) * col2 FROM tab2 ---- 1134 156156 234156 query I rowsort SELECT col1 * col1 * 83 AS col0 FROM tab2 ---- 23987 288923 79763 query I rowsort SELECT - 35 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 6d967b3bac2e01a0318865f682f9a97b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 51 + col1 + ( - col1 ) * col1 col1 FROM tab2 AS cor0 ---- -221 -3371 -879 query I rowsort SELECT ALL + 74 + + col2 AS col0 FROM tab1 ---- 128 131 170 query I rowsort SELECT + ( - col2 ) * ( + col2 ) FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT col1 + col1 * - cor0.col2 AS col0 FROM tab0 cor0 ---- -2752 -7371 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5098 SELECT DISTINCT + col2 - col2 DIV + CAST( - ( col0 ) + + col1 AS SIGNED ) FROM tab1 ---- 52 58 97 skipif mysql # not compatible query I rowsort label-5098 SELECT DISTINCT + col2 - col2 / + CAST ( - ( col0 ) + + col1 AS INTEGER ) FROM tab1 ---- 52 58 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 19 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 84 col1 FROM tab0 cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f query I rowsort SELECT ALL - col0 * col2 + ( col2 * + col1 ) - + tab0.col1 AS col2 FROM tab0 ---- -35 1960 73 query I rowsort SELECT + 34 + col1 * - 92 - col1 AS col1 FROM tab0 cor0 ---- -7964 -8429 -8987 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5103 SELECT - col1 + - CAST( + 62 * - col2 AS SIGNED ) FROM tab2 ---- 1553 1643 2339 skipif mysql # not compatible query I rowsort label-5103 SELECT - col1 + - CAST ( + 62 * - col2 AS INTEGER ) FROM tab2 ---- 1553 1643 2339 query I rowsort SELECT DISTINCT + 16 AS col1 FROM tab0, tab1 AS cor0 ---- 16 query I rowsort SELECT ALL - + col0 + - col1 * - col2 FROM tab0 AS cor0 ---- 2814 62 7373 onlyif mysql # use DIV operator for integer division query I rowsort label-5106 SELECT DISTINCT - cor0.col0 DIV ( cor0.col1 * + col2 + - ( - 11 ) ) FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5106 SELECT DISTINCT - cor0.col0 / ( cor0.col1 * + col2 + - ( - 11 ) ) FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - col1 + col2 * col0 AS col1 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT col2 * 27 + col0 FROM tab1 ---- 1461 1603 2672 query I rowsort SELECT ALL 35 + - 77 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to 9fa3c02ecae23525dd0e284c4751c1df onlyif mysql # use DIV operator for integer division query I rowsort label-5110 SELECT ALL - + col0 DIV - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5110 SELECT ALL - + col0 / - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5111 SELECT ALL - CAST( NULL AS DECIMAL ) * 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-5111 SELECT ALL - CAST ( NULL AS REAL ) * col0 col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + col0 * col0 + - ( col2 * - col0 ) + + 75 FROM tab2 cor0 ---- 313 8187 9318 query I rowsort SELECT ALL - 89 * - col2 + + col0 AS col2 FROM tab2 AS cor0 ---- 2392 2410 3461 query I rowsort SELECT - col2 + + col0 * + col2 AS col1 FROM tab1 AS cor0 ---- 108 3591 7584 query I rowsort SELECT DISTINCT + + cor0.col0 * col1 * - ( - cor0.col2 ) FROM tab0 cor0 ---- 3395 664118 68112 query I rowsort SELECT ALL + col0 * + col2 + 93 FROM tab1 AS cor0 ---- 255 3741 7773 query I rowsort SELECT col0 + cor0.col2 * ( - col2 * - col2 ) AS col1 FROM tab2 cor0 ---- 17654 19690 54951 onlyif mysql # use DIV operator for integer division query I rowsort label-5118 SELECT col1 + + col2 * cor0.col1 * + col1 - col0 DIV col0 AS col2 FROM tab2 AS cor0 ---- 10998 25977 90564 skipif mysql # not compatible query I rowsort label-5118 SELECT col1 + + col2 * cor0.col1 * + col1 - col0 / col0 AS col2 FROM tab2 AS cor0 ---- 10998 25977 90564 query I rowsort SELECT DISTINCT + cor0.col1 * + col1 * + ( - ( + cor0.col1 ) ) AS col0 FROM tab0 AS cor0 ---- -636056 -753571 -912673 onlyif mysql # use DIV operator for integer division query I rowsort label-5120 SELECT DISTINCT col1 * - cor0.col1 * + cor0.col0 + - col0 DIV col1 AS col1 FROM tab2 AS cor0 ---- -22835 -271519 -6727 skipif mysql # not compatible query I rowsort label-5120 SELECT DISTINCT col1 * - cor0.col1 * + cor0.col0 + - col0 / col1 AS col1 FROM tab2 AS cor0 ---- -22835 -271519 -6727 query I rowsort SELECT + col0 * + col2 + col0 - col1 AS col2 FROM tab0 cor0 ---- -27 7296 730 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5122 SELECT ALL col2 * - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5122 SELECT ALL col2 * - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT col1 + 12 * - col1 * + col2 AS col1 FROM tab1 ---- -14963 -16822 -6830 query I rowsort SELECT ALL + + 5 AS col2 FROM tab0 cor0 ---- 5 5 5 onlyif mysql # use DIV operator for integer division query I rowsort label-5125 SELECT ALL - col2 DIV cor0.col2 + + col0 DIV 64 + + col2 AS col1 FROM tab1 AS cor0 ---- 53 57 96 skipif mysql # not compatible query I rowsort label-5125 SELECT ALL - col2 / cor0.col2 + + col0 / 64 + + col2 AS col1 FROM tab1 AS cor0 ---- 53 57 96 query I rowsort SELECT ALL + + cor0.col1 * - cor0.col1 - col0 FROM tab2 AS cor0 ---- -3559 -368 -968 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5127 SELECT ALL - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-5127 SELECT ALL - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL + ( col1 ) + + tab1.col1 FROM tab1 ---- 20 26 52 query I rowsort SELECT 57 FROM tab0, tab1, tab0 cor0 ---- 27 values hashing to 220a93709e207779b34ef74b544764a5 query I rowsort SELECT ALL + col2 * 18 + tab2.col0 AS col1 FROM tab2 ---- 493 546 763 query I rowsort SELECT col1 + 35 + tab1.col2 * 68 FROM tab1 ---- 3733 3921 6576 query I rowsort SELECT 81 + + col1 FROM tab1 ---- 107 91 94 query I rowsort SELECT + col2 * cor0.col2 + + col2 FROM tab0 AS cor0 ---- 1122 2 6806 query I rowsort SELECT 70 * + col2 FROM tab0 ---- 2310 5740 70 query I rowsort SELECT DISTINCT ( tab1.col0 ) FROM tab1, tab2, tab2 AS cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-5136 SELECT + 19 + col2 DIV 24 FROM tab1 ---- 21 21 23 skipif mysql # not compatible query I rowsort label-5136 SELECT + 19 + col2 / 24 FROM tab1 ---- 21 21 23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5137 SELECT + 21 + - tab0.col0 * - CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5137 SELECT + 21 + - tab0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL - 10 * col2 * ( + 81 + - tab2.col0 ) AS col0 FROM tab2 ---- -19980 -760 -780 query I rowsort SELECT ALL 13 AS col1 FROM tab0, tab1, tab0 AS cor0 ---- 27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed query I rowsort SELECT - 92 AS col0 FROM tab2, tab2 cor0 ---- 9 values hashing to 1af709a79a3e56281ffdce4d931d5965 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + 13 col0 FROM tab0 AS cor0 ---- -73 -78 -84 query I rowsort SELECT - col1 + col0 * - 21 + + col1 FROM tab1 ---- -1344 -1680 -63 query I rowsort SELECT DISTINCT + cor0.col0 + 97 * 99 AS col1 FROM tab1 AS cor0 ---- 9606 9667 9683 query I rowsort SELECT DISTINCT - + col1 - 37 FROM tab2 AS cor0 ---- -54 -68 -96 query I rowsort SELECT ALL + cor0.col1 * - ( col1 ) AS col2 FROM tab2 AS cor0 ---- -289 -3481 -961 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5146 SELECT + - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5146 SELECT + - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col0 + - 62 AS col2 FROM tab1 cor0 ---- -126 -142 -65 onlyif mysql # use DIV operator for integer division query I rowsort label-5148 SELECT ALL col1 DIV - ( ( col0 ) ) AS col2 FROM tab0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-5148 SELECT ALL col1 / - ( ( col0 ) ) AS col2 FROM tab0 ---- -1 -2 -3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5149 SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-5149 SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - + col1 * 64 + col1 FROM tab0 AS cor0 ---- -5418 -5733 -6111 query I rowsort SELECT col0 + + 42 + + col1 AS col2 FROM tab1 AS cor0 ---- 116 135 71 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5152 SELECT - + CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5152 SELECT - + CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5153 SELECT ALL + col0 * col2 + col1 * - CAST( NULL AS SIGNED ) - - col0 * col1 AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5153 SELECT ALL + col0 * col2 + col1 * - CAST ( NULL AS INTEGER ) - - col0 * col1 AS col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5154 SELECT + ( - col2 ) DIV + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -3 0 0 skipif mysql # not compatible query I rowsort label-5154 SELECT + ( - col2 ) / + cor0.col0 AS col1 FROM tab2 AS cor0 ---- -3 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col0 + col2 * + cor0.col2 col2 FROM tab2 AS cor0 ---- 1523 736 754 query I rowsort SELECT ALL - - col2 * col2 + + col1 * - col1 * + col2 FROM tab2 AS cor0 ---- -25218 -89830 -9538 onlyif mysql # use DIV operator for integer division query I rowsort label-5157 SELECT DISTINCT + col1 + col2 DIV - col2 AS col1 FROM tab1 AS cor0 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-5157 SELECT DISTINCT + col1 + col2 / - col2 AS col1 FROM tab1 AS cor0 ---- 12 25 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 4 * - col1 + ( col1 ) * - col0 col1 FROM tab0 AS cor0 ---- -1720 -3007 -7735 query I rowsort SELECT ALL + - col0 * col1 + ( - ( + col2 ) * - ( + col0 ) ) FROM tab2 AS cor0 ---- -2574 -28 1659 onlyif mysql # use DIV operator for integer division query I rowsort label-5160 SELECT col1 DIV - col1 + col2 * - 46 FROM tab1 AS cor0 ---- -2485 -2623 -4417 skipif mysql # not compatible query I rowsort label-5160 SELECT col1 / - col1 + col2 * - 46 FROM tab1 AS cor0 ---- -2485 -2623 -4417 query I rowsort SELECT - cor0.col2 * col1 + - col2 AS col0 FROM tab0 cor0 ---- -2871 -7544 -98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5162 SELECT cor0.col0 * + col2 + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 2054 216 3040 skipif mysql # not compatible query I rowsort label-5162 SELECT cor0.col0 * + col2 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT - + cor0.col0 + + col2 AS col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT 59 AS col2 FROM tab1, tab0 cor0 ---- 9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * ( + col1 + col0 ) col0 FROM tab2 AS cor0 ---- 1178 1632 8083 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 79 col1 FROM tab1 AS cor0 ---- 79 79 79 query I rowsort SELECT + 95 + + 63 - - col0 FROM tab2 ---- 165 236 237 query I rowsort SELECT DISTINCT + - 27 * col1 + col1 * 97 AS col1 FROM tab1 AS cor0 ---- 1820 700 910 query I rowsort SELECT + + ( - col1 ) * - col0 + + col0 * col0 FROM tab2 AS cor0 ---- 10686 266 7584 query I rowsort SELECT ALL ( 85 ) + - col1 AS col1 FROM tab0 AS cor0 ---- -1 -12 -6 onlyif mysql # use DIV operator for integer division query I rowsort label-5171 SELECT col1 DIV col1 + col2 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-5171 SELECT col1 / col1 + col2 FROM tab1 AS cor0 ---- 55 58 97 query I rowsort SELECT - - ( col1 ) * + col1 + 72 AS col2 FROM tab1 AS cor0 ---- 172 241 748 query I rowsort SELECT + + ( - cor0.col2 ) AS col0 FROM tab2 cor0 ---- -26 -27 -38 query I rowsort SELECT ALL 74 * col0 + ( + col2 ) FROM tab1 AS cor0 ---- 276 4793 6016 query I rowsort SELECT DISTINCT - col2 + - col2 + - 1 AS col2 FROM tab1 cor0 ---- -109 -115 -193 query I rowsort SELECT + - col2 * + col1 + ( - cor0.col2 ) * col2 AS col1 FROM tab2 cor0 ---- -1566 -2090 -2210 query I rowsort SELECT DISTINCT + 90 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 90 query I rowsort SELECT ALL + - 8 * + cor0.col0 FROM tab2 AS cor0 ---- -56 -624 -632 query I rowsort SELECT - col2 * - col0 + - col0 * + col1 FROM tab0 ---- -1272 -3360 -801 query I rowsort SELECT ALL + 19 AS col1 FROM tab1 ---- 19 19 19 query I rowsort SELECT ( + col0 ) * tab1.col0 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT cor1.col1 FROM tab1, tab0 AS cor0, tab1 cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT + col1 * 25 AS col0 FROM tab1 ---- 250 325 650 onlyif mysql # use DIV operator for integer division query I rowsort label-5184 SELECT ALL col1 DIV + col2 + + col0 * + 18 * ( - col2 ) FROM tab1 cor0 ---- -138240 -2916 -65664 skipif mysql # not compatible query I rowsort label-5184 SELECT ALL col1 / + col2 + + col0 * + 18 * ( - col2 ) FROM tab1 cor0 ---- -138240 -2916 -65664 query I rowsort SELECT ALL tab0.col1 * col1 - col1 AS col2 FROM tab0 ---- 7310 8190 9312 query I rowsort SELECT ALL + ( - 6 ) AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to e92b2679faac7be63701967e3f0c0934 query I rowsort SELECT DISTINCT col1 - ( + col1 ) AS col0 FROM tab0 ---- 0 query I rowsort SELECT + 69 * cor0.col0 - col2 AS col2 FROM tab1 AS cor0 ---- 153 4359 5424 query I rowsort SELECT ALL - 80 * ( + col0 * col2 ) FROM tab0 AS cor0 ---- -2800 -583840 -63360 query I rowsort SELECT ALL + + 23 * col0 AS col2 FROM tab2 cor0 ---- 161 1794 1817 query I rowsort SELECT DISTINCT + ( + 49 ) FROM tab0 AS cor0 ---- 49 query I rowsort SELECT ALL tab2.col2 * ( + col0 ) * + col1 AS col1 FROM tab2 ---- 119652 51034 5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * - col0 * + col2 + 18 col0 FROM tab0 ---- -1207 -18990 -649504 query I rowsort SELECT ALL ( - col2 ) + + col2 AS col0 FROM tab2 ---- 0 0 0 query I rowsort SELECT - - col1 - - col2 * - col2 AS col2 FROM tab0 AS cor0 ---- -1003 -6633 96 query I rowsort SELECT DISTINCT - cor0.col2 * ( + col2 ) FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT + + ( col1 ) + cor0.col1 AS col0 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT - ( col0 ) * + col0 * col2 + 73 * cor0.col0 FROM tab0 AS cor0 ---- -17256 -643025 1330 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5199 SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col1 - col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5199 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col1 - col1 FROM tab1 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5200 SELECT ( - col0 ) DIV - col1 - ( + 32 ) AS col1 FROM tab0 AS cor0 ---- -32 -32 -32 skipif mysql # not compatible query I rowsort label-5200 SELECT ( - col0 ) / - col1 - ( + 32 ) AS col1 FROM tab0 AS cor0 ---- -32 -32 -32 query I rowsort SELECT ALL + - 0 FROM tab2, tab1, tab1 cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT DISTINCT + col1 * 28 + + col0 AS col1 FROM tab1 ---- 344 444 731 query I rowsort SELECT ALL - ( 11 ) FROM tab0, tab2, tab2 AS cor0 ---- 27 values hashing to 7120875811e4d19a19b69cd34b6bc202 query I rowsort SELECT ALL - + cor0.col0 AS col0 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0 query I rowsort SELECT - ( 83 ) * + cor0.col1 - - col0 AS col0 FROM tab0 AS cor0 ---- -7114 -7464 -8016 query I rowsort SELECT col0 + col1 * 87 FROM tab2 ---- 1558 2704 5211 query I rowsort SELECT + col1 * 35 AS col2 FROM tab1 AS cor0 ---- 350 455 910 query I rowsort SELECT - col0 * + 41 FROM tab2 AS cor0 ---- -287 -3198 -3239 query I rowsort SELECT - col0 * - ( cor0.col2 + col2 * + cor0.col2 ) FROM tab1 AS cor0 ---- 211584 744960 8910 query I rowsort SELECT + - col1 * 71 AS col0 FROM tab2 AS cor0 ---- -1207 -2201 -4189 onlyif mysql # use DIV operator for integer division query I rowsort label-5211 SELECT - col0 + + 28 DIV col2 AS col0 FROM tab0 AS cor0 ---- -24 -7 -89 skipif mysql # not compatible query I rowsort label-5211 SELECT - col0 + + 28 / col2 AS col0 FROM tab0 AS cor0 ---- -24 -7 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 * ( - col1 ) col0 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT + + col2 * 56 AS col0 FROM tab0 cor0 ---- 1848 4592 56 query I rowsort SELECT DISTINCT col0 * - 18 * col1 FROM tab0 AS cor0 ---- -145782 -37152 -61110 query I rowsort SELECT DISTINCT col0 * + ( + 56 ) FROM tab2 cor0 ---- 392 4368 4424 onlyif mysql # use DIV operator for integer division query I rowsort label-5216 SELECT ALL - col2 DIV 60 AS col2 FROM tab1 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-5216 SELECT ALL - col2 / 60 AS col2 FROM tab1 cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5217 SELECT DISTINCT + + col1 * 69 + col1 DIV col1 FROM tab0 AS cor0 ---- 5935 6280 6694 skipif mysql # not compatible query I rowsort label-5217 SELECT DISTINCT + + col1 * 69 + col1 / col1 FROM tab0 AS cor0 ---- 5935 6280 6694 query I rowsort SELECT ALL col1 + + 44 FROM tab0 cor0 ---- 130 135 141 onlyif mysql # use DIV operator for integer division query I rowsort label-5219 SELECT DISTINCT - - col0 DIV cor0.col1 - 44 FROM tab2 AS cor0 ---- -40 -43 -44 skipif mysql # not compatible query I rowsort label-5219 SELECT DISTINCT - - col0 / cor0.col1 - 44 FROM tab2 AS cor0 ---- -40 -43 -44 query I rowsort SELECT 48 AS col2 FROM tab0 cor0 ---- 48 48 48 onlyif mysql # use DIV operator for integer division query I rowsort label-5221 SELECT DISTINCT - + col2 DIV - col0 + 64 - + col0 AS col2 FROM tab2 AS cor0 ---- -14 -15 60 skipif mysql # not compatible query I rowsort label-5221 SELECT DISTINCT - + col2 / - col0 + 64 - + col0 AS col2 FROM tab2 AS cor0 ---- -14 -15 60 query I rowsort SELECT ALL + 15 + + col2 * 43 FROM tab1 AS cor0 ---- 2337 2466 4143 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 * + col1 + col2 col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT ALL - - col1 + + col1 - + col1 * cor0.col0 AS col2 FROM tab0 AS cor0 ---- -1892 -3201 -7917 query I rowsort SELECT - 67 + - col2 * + col0 AS col2 FROM tab2 AS cor0 ---- -2095 -256 -3069 query I rowsort SELECT 20 AS col2 FROM tab0, tab0 cor0, tab2 AS cor1 ---- 27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4 query I rowsort SELECT col1 + col2 + - ( + col2 + - col0 ) AS col1 FROM tab2 ---- 137 38 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5228 SELECT cor0.col0 * CAST( NULL AS SIGNED ) + + col1 * + cor0.col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5228 SELECT cor0.col0 * CAST ( NULL AS INTEGER ) + + col1 * + cor0.col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - tab1.col1 * tab1.col1 * col1 + col0 AS col0 FROM tab1 ---- -17573 -2117 -936 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5230 SELECT DISTINCT + + cor0.col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2, tab2 AS cor0, tab1 ---- NULL skipif mysql # not compatible query I rowsort label-5230 SELECT DISTINCT + + cor0.col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2, tab2 AS cor0, tab1 ---- NULL query I rowsort SELECT ALL + - 20 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to eb3a66728062963cccbd15bd2f5c9eee onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5232 SELECT DISTINCT CAST( 15 AS SIGNED ) AS col1 FROM tab1, tab2 cor0, tab0 AS cor1 ---- 15 skipif mysql # not compatible query I rowsort label-5232 SELECT DISTINCT CAST ( 15 AS INTEGER ) AS col1 FROM tab1, tab2 cor0, tab0 AS cor1 ---- 15 query I rowsort SELECT ALL - ( 52 ) AS col0 FROM tab2, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74 query I rowsort SELECT ALL 34 + - tab2.col1 AS col2 FROM tab2 ---- -25 17 3 query I rowsort SELECT - 33 + 21 AS col0 FROM tab0 AS cor0 ---- -12 -12 -12 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5236 SELECT + CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5236 SELECT + CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 18 * + 37 FROM tab0 AS cor0 ---- 666 666 666 query I rowsort SELECT - 44 * col0 AS col0 FROM tab2 cor0 ---- -308 -3432 -3476 query I rowsort SELECT DISTINCT + 26 + col1 * col1 FROM tab0 AS cor0 ---- 7422 8307 9435 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5240 SELECT ALL CAST( NULL AS SIGNED ) + - col2 + + col1 * + cor0.col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5240 SELECT ALL CAST ( NULL AS INTEGER ) + - col2 + + col1 * + cor0.col2 AS col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - cor0.col1 * col0 + + col2 FROM tab1 AS cor0 ---- -24 -583 -944 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( col0 AS REAL ) * + col1 + col2 FROM tab2 cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT - col1 - + col2 AS col0 FROM tab1 AS cor0 ---- -109 -67 -80 query I rowsort SELECT tab0.col2 * + ( + col1 + col2 ) FROM tab0 ---- 14186 3927 98 query I rowsort SELECT DISTINCT - col1 + 51 * 89 AS col2 FROM tab1 ---- 4513 4526 4529 query I rowsort SELECT ALL + col2 + ( col2 ) * col1 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT - col1 * col1 + + col0 AS col0 FROM tab2 ---- -210 -3403 -954 query I rowsort SELECT ALL col2 + - tab1.col0 AS col2 FROM tab1 ---- -7 16 51 query I rowsort SELECT ALL + col1 * + col0 + col2 * col1 + 16 FROM tab2 ---- 1070 2005 6152 query I rowsort SELECT ALL + + 87 * col2 + - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 2838 7052 86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( ( + col1 ) ) col2 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT ALL + col0 + - col2 * col1 AS col2 FROM tab1 AS cor0 ---- -1168 -1401 -506 query I rowsort SELECT + + ( - col0 ) + cor0.col1 * 54 FROM tab0 AS cor0 ---- 4620 4825 5203 onlyif mysql # use DIV operator for integer division query I rowsort label-5254 SELECT ALL - col2 * + col0 - + col0 DIV col0 AS col0 FROM tab2 cor0 ---- -190 -2029 -3003 skipif mysql # not compatible query I rowsort label-5254 SELECT ALL - col2 * + col0 - + col0 / col0 AS col0 FROM tab2 cor0 ---- -190 -2029 -3003 query I rowsort SELECT col2 + 75 * col2 * col0 AS col1 FROM tab1 ---- 12204 273657 576096 query I rowsort SELECT DISTINCT 42 + cor0.col2 AS col2 FROM tab0, tab1 AS cor0 ---- 138 96 99 query I rowsort SELECT ALL 45 * + 68 * + col1 FROM tab0 ---- 263160 278460 296820 query I rowsort SELECT ALL + ( col1 + col2 ) AS col0 FROM tab2 ---- 55 58 85 query I rowsort SELECT ALL - ( col1 + + col1 ) * col2 AS col0 FROM tab1 ---- -1140 -2496 -2808 query I rowsort SELECT - 98 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to f17b7008a7deae1eb5a2e707ec237638 query I rowsort SELECT - col2 + + col2 * - ( col1 ) AS col1 FROM tab0 cor0 ---- -2871 -7544 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 18 * - col0 col0 FROM tab2 AS cor0 ---- -126 -1404 -1422 query I rowsort SELECT - 20 * col0 FROM tab2 AS cor0 ---- -140 -1560 -1580 query I rowsort SELECT + - col0 + + col2 * - col1 * 24 AS col2 FROM tab0 cor0 ---- -179177 -2363 -68136 onlyif mysql # use DIV operator for integer division query I rowsort label-5265 SELECT DISTINCT col2 - - col1 DIV col2 AS col0 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-5265 SELECT DISTINCT col2 - - col1 / col2 AS col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + - col0 - - 97 FROM tab2 cor0 ---- 18 19 90 query I rowsort SELECT ALL col2 * - col1 + col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 skipif mysql # not compatible query I rowsort SELECT + + cor0.col2 + + CAST ( - 46 AS REAL ) AS col1 FROM tab2 AS cor0 ---- -19 -20 -8 query I rowsort SELECT DISTINCT - - col2 + + cor0.col1 * 62 AS col0 FROM tab1 AS cor0 ---- 1666 677 902 onlyif mysql # use DIV operator for integer division query I rowsort label-5270 SELECT - - col2 DIV 52 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-5270 SELECT - - col2 / 52 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL - col1 + + col1 * col1 FROM tab2 AS cor0 ---- 272 3422 930 query I rowsort SELECT DISTINCT - + 81 * col1 FROM tab2 AS cor0 ---- -1377 -2511 -4779 query I rowsort SELECT - + 5 * + col0 FROM tab2 AS cor0 ---- -35 -390 -395 query I rowsort SELECT ALL 79 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1 query I rowsort SELECT + col0 * + col1 * tab2.col0 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT - + 28 + cor0.col0 * - col2 AS col2 FROM tab1 AS cor0 ---- -190 -3676 -7708 query I rowsort SELECT + 26 AS col0 FROM tab0, tab1 cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5278 SELECT col2 * CAST( col2 + - col1 AS SIGNED ) * ( ( tab0.col2 ) ) AS col2 FROM tab0 ---- -57717 -60516 -96 skipif mysql # not compatible query I rowsort label-5278 SELECT col2 * CAST ( col2 + - col1 AS INTEGER ) * ( ( tab0.col2 ) ) AS col2 FROM tab0 ---- -57717 -60516 -96 query I rowsort SELECT - + col0 - + col1 * + col1 AS col1 FROM tab1 AS cor0 ---- -164 -249 -679 query I rowsort SELECT - + cor0.col2 + + 6 FROM tab2 AS cor0 ---- -20 -21 -32 query I rowsort SELECT + cor0.col0 FROM tab2, tab0, tab0 cor0 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT col1 - 99 AS col2 FROM tab0 ---- -13 -2 -8 query I rowsort SELECT cor0.col1 * - 93 AS col1 FROM tab0 AS cor0 ---- -7998 -8463 -9021 onlyif mysql # use DIV operator for integer division query I rowsort label-5284 SELECT - + col1 + - col1 DIV + col0 AS col0 FROM tab0 AS cor0 ---- -89 -92 -99 skipif mysql # not compatible query I rowsort label-5284 SELECT - + col1 + - col1 / + col0 AS col0 FROM tab0 AS cor0 ---- -89 -92 -99 query I rowsort SELECT ALL + ( + ( col0 ) ) AS col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT - - col1 + - col0 + cor0.col0 * - col0 FROM tab1 AS cor0 ---- -4150 -6467 14 query I rowsort SELECT + 30 + + col2 * - col0 FROM tab2 AS cor0 ---- -159 -1998 -2972 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5288 SELECT ALL CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5288 SELECT ALL CAST ( NULL AS REAL ) * col2 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL ( col0 ) + + col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT + - ( col0 ) * - cor0.col2 + col2 AS col1 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT ALL + - 96 + + col2 FROM tab1 AS cor0 ---- -39 -42 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5292 SELECT - col1 * + col0 - - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5292 SELECT - col1 * + col0 - - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5293 SELECT ALL - - CAST( col2 AS SIGNED ) col1 FROM tab0 cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5293 SELECT ALL - - CAST ( col2 AS INTEGER ) col1 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT - ( 60 ) * + col0 FROM tab1 AS cor0 ---- -180 -3840 -4800 query I rowsort SELECT ALL - cor0.col1 + 71 FROM tab1 AS cor0 ---- 45 58 61 query I rowsort SELECT + + col1 * - 50 * cor0.col0 + col2 * col2 - + col0 * col0 AS col1 FROM tab0 AS cor0 ---- -102687 -170974 -406147 query I rowsort SELECT DISTINCT + 97 * 76 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 7372 query I rowsort SELECT 47 + - col2 + 26 AS col0 FROM tab2 AS cor0 ---- 35 46 47 query I rowsort SELECT DISTINCT - col0 + ( col1 ) FROM tab0 AS cor0 ---- 2 62 query I rowsort SELECT + 88 * 78 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 5b1ee426a75af0a402830ae3c39b534b query I rowsort SELECT - col0 + + col0 * - col2 AS col0 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT DISTINCT 52 * 90 FROM tab0, tab0 AS cor0 ---- 4680 query I rowsort SELECT DISTINCT + col2 * + col2 + - cor0.col2 * col2 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT col2 + - col1 * - col2 FROM tab1 AS cor0 ---- 1344 1458 627 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - col1 * col0 + ( - col2 ) col2 FROM tab1 cor0 ---- 24 583 944 query I rowsort SELECT ALL + + col1 - + col0 FROM tab2 AS cor0 ---- -19 -62 24 onlyif mysql # use DIV operator for integer division query I rowsort label-5307 SELECT DISTINCT + col2 DIV - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -2 0 skipif mysql # not compatible query I rowsort label-5307 SELECT DISTINCT + col2 / - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -2 0 query I rowsort SELECT ALL + col2 + 75 * - col1 FROM tab0 AS cor0 ---- -6417 -6743 -7274 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5309 SELECT DISTINCT + col1 + + CAST( 43 + cor0.col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- 105 161 77 skipif mysql # not compatible query I rowsort label-5309 SELECT DISTINCT + col1 + + CAST ( 43 + cor0.col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- 105 161 77 query I rowsort SELECT ALL - col0 * col1 + col0 * + col0 AS col2 FROM tab2 AS cor0 ---- -168 1482 4898 query I rowsort SELECT DISTINCT + col1 - + cor0.col2 AS col0 FROM tab1 cor0 ---- -28 -47 -83 query I rowsort SELECT + col2 + col1 * + ( + col2 ) AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT col2 + + 12 FROM tab1 AS cor0 ---- 108 66 69 query I rowsort SELECT DISTINCT col2 - 69 AS col0 FROM tab2 AS cor0 ---- -31 -42 -43 onlyif mysql # use DIV operator for integer division query I rowsort label-5315 SELECT ALL - cor0.col0 + col1 DIV - col1 FROM tab1 AS cor0 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-5315 SELECT ALL - cor0.col0 + col1 / - col1 FROM tab1 AS cor0 ---- -4 -65 -81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * - cor0.col1 * + col1 + col1 * ( - col2 ) * + col0 col2 FROM tab0 AS cor0 ---- -1417689 -704168 -916068 query I rowsort SELECT DISTINCT - cor0.col1 * cor0.col1 + + cor0.col2 FROM tab2 AS cor0 ---- -251 -3455 -934 query I rowsort SELECT - + 36 FROM tab2 cor0 ---- -36 -36 -36 query I rowsort SELECT DISTINCT - - 18 * col1 * col1 AS col2 FROM tab2 AS cor0 ---- 17298 5202 62658 query I rowsort SELECT DISTINCT + - 28 * - col0 + col0 AS col1 FROM tab0 cor0 ---- 1015 2581 696 query I rowsort SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2 ---- 1 33 82 query I rowsort SELECT ALL + col1 * + ( - 29 ) * + col1 AS col0 FROM tab2 ---- -100949 -27869 -8381 query I rowsort SELECT - + 31 + cor0.col2 AS col2 FROM tab1 cor0 ---- 23 26 65 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + ( - col2 ) + col1 * + col0 col2 FROM tab1 AS cor0 ---- 1136 132 697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 82 col0 FROM tab1 AS cor0 ---- 82 query I rowsort SELECT DISTINCT 29 + col1 FROM tab1 AS cor0 ---- 39 42 55 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab0 cor2 ---- 3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3 query I rowsort SELECT DISTINCT col2 + - 96 + col1 FROM tab0 ---- 2 23 77 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( 35 ) + col2 - 41 col0 FROM tab1 ---- 48 51 90 onlyif mysql # use DIV operator for integer division query I rowsort label-5330 SELECT - 55 DIV - col1 + col2 + col0 col0 FROM tab0 ---- 171 36 57 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5330 SELECT - 55 / - col1 + col2 + col0 col0 FROM tab0 ---- 171 36 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 + cor0.col1 col1 FROM tab0, tab2 cor0 ---- 55 58 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5332 SELECT CAST( NULL AS SIGNED ) + - tab1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-5332 SELECT CAST ( NULL AS INTEGER ) + - tab1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT ( col2 ) * + col2 AS col2 FROM tab0 ---- 1 1089 6724 onlyif mysql # use DIV operator for integer division query I rowsort label-5334 SELECT + 84 DIV col2 + col1 AS col1 FROM tab1 ---- 11 13 27 skipif mysql # not compatible query I rowsort label-5334 SELECT + 84 / col2 + col1 AS col1 FROM tab1 ---- 11 13 27 query I rowsort SELECT ALL col0 + - tab0.col0 * + col2 AS col1 FROM tab0 ---- -7209 -768 0 query I rowsort SELECT 65 * cor0.col1 + + 38 AS col1 FROM tab1 AS cor0 ---- 1728 688 883 query I rowsort SELECT 81 * col0 FROM tab2 ---- 567 6318 6399 query I rowsort SELECT ( col0 ) + col0 * - tab2.col2 * + col0 AS col0 FROM tab2 ---- -1316 -158106 -237079 query I rowsort SELECT ALL + tab0.col2 AS col1 FROM tab0 WHERE NOT col1 <= col2 ---- 1 33 82 query I rowsort SELECT col0 + col0 * + col2 AS col2 FROM tab2 ---- 196 2106 3081 query I rowsort SELECT col2 * col2 AS col2 FROM tab1 WHERE NOT col0 = NULL ---- query III rowsort SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2 + col1 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col2 + col0 col0 FROM tab1 ---- 121 176 57 query I rowsort SELECT col2 * - col0 * - col0 - col1 FROM tab2 ---- 1292 158125 237141 query I rowsort SELECT ALL col2 + - col1 * - col1 FROM tab0 ---- 7429 8363 9410 query III rowsort SELECT ALL * FROM tab1 WHERE col0 IN ( + col2 ) ---- query I rowsort SELECT col2 * col0 - + tab0.col2 AS col2 FROM tab0 ---- 34 7216 759 query I rowsort SELECT ALL col1 - + col0 * + col0 FROM tab1 ---- -4086 -6387 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 + col2 * col0 col2 FROM tab0 AS cor0 ---- -62 706 7207 query I rowsort SELECT + cor0.col2 FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab1 AS cor2 ---- 243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2 query I rowsort SELECT col2 + col1 * col0 AS col2 FROM tab2 WHERE NOT NULL > NULL ---- query I rowsort SELECT + col2 * cor0.col0 * - 27 AS col0 FROM tab1 cor0 ---- -207360 -4374 -98496 query I rowsort SELECT - - col2 + col0 * - col2 FROM tab0 AS cor0 ---- -34 -7216 -759 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= col1 + - col2 ---- query I rowsort SELECT ALL - col0 * - col1 + col0 AS col2 FROM tab0 WHERE NOT ( - col0 * + col2 ) BETWEEN ( NULL ) AND ( NULL ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + tab2.col0 col0 FROM tab2 ---- 14 156 158 query III rowsort SELECT * FROM tab2 WHERE NULL NOT IN ( col1 * col2 ) ---- query I rowsort SELECT col0 + col2 * col1 * - col0 AS col1 FROM tab1 ---- -36416 -4209 -99760 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT col0 + col0 * col1 < NULL ---- query I rowsort SELECT - col2 * - col0 + col2 AS col2 FROM tab1 ---- 216 3705 7776 query I rowsort SELECT + col2 - tab2.col1 AS col2 FROM tab2 ---- -33 -4 21 query I rowsort SELECT col1 * col1 - - col0 FROM tab0 WHERE NULL IN ( col0 ) ---- query I rowsort SELECT ALL - col1 - col0 AS col0 FROM tab1 ---- -29 -74 -93 query I rowsort SELECT ALL tab2.col1 FROM tab2 WHERE NOT col1 + col1 IN ( + col2 * - col0 ) ---- 17 31 59 query I rowsort SELECT DISTINCT - col0 - col2 * col2 * - col1 FROM tab1 ---- 119728 32426 75813 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( - col1 ) * col0 col2 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + col1 + + 43 AS col0 FROM tab0 AS cor0 ---- 129 134 140 query I rowsort SELECT DISTINCT 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 94 query I rowsort SELECT col0 * col2 + col1 FROM tab1 cor0 ---- 188 3658 7693 query I rowsort SELECT ALL 66 * + tab2.col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 6cf4adfb5543c925127ece34baf521bb query I rowsort SELECT ALL - cor0.col2 * col0 + cor0.col1 * + 66 AS col0 FROM tab2 AS cor0 ---- -1880 1857 1866 query I rowsort SELECT DISTINCT - 33 AS col0 FROM tab0 AS cor0 ---- -33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5373 SELECT ALL - + col0 * + col0 + + CAST( NULL AS DECIMAL ) + + col2 col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5373 SELECT ALL - + col0 * + col0 + + CAST ( NULL AS REAL ) + + col2 col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 - col2 * 22 * col2 FROM tab2 AS cor0 ---- -14846 -16011 -31730 onlyif mysql # use DIV operator for integer division query I rowsort label-5375 SELECT col2 + - col2 DIV + 96 + tab2.col0 * + tab2.col0 AS col2 FROM tab2 ---- 6110 6279 76 skipif mysql # not compatible query I rowsort label-5375 SELECT col2 + - col2 / + 96 + tab2.col0 * + tab2.col0 AS col2 FROM tab2 ---- 6110 6279 76 query I rowsort SELECT - col2 + 86 FROM tab2 cor0 ---- 48 59 60 query I rowsort SELECT + + col2 * + cor0.col0 + + col0 * cor0.col1 FROM tab1 AS cor0 ---- 240 4288 8720 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5378 SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-5378 SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT col0 + cor0.col1 + + col2 * cor0.col2 FROM tab1 AS cor0 ---- 2945 3323 9309 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 * col1 col1 FROM tab2 AS cor0 ---- 289 3481 961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * - cor0.col2 * ( + col1 ) + col1 col1 FROM tab2 AS cor0 ---- 119711 51051 5890 query I rowsort SELECT ALL + 74 * col1 * col0 FROM tab2 AS cor0 ---- 16058 340548 99382 onlyif mysql # use DIV operator for integer division query I rowsort label-5383 SELECT DISTINCT - + 42 DIV - col0 FROM tab0 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-5383 SELECT DISTINCT - + 42 / - col0 FROM tab0 AS cor0 ---- 0 1 query I rowsort SELECT + + col0 * cor0.col2 * col0 AS col0 FROM tab2 AS cor0 ---- 1323 158184 237158 onlyif mysql # use DIV operator for integer division query I rowsort label-5385 SELECT ALL + col0 DIV + col0 + - ( + col1 ) - col2 AS col1 FROM tab1 AS cor0 ---- -108 -66 -79 skipif mysql # not compatible query I rowsort label-5385 SELECT ALL + col0 / + col0 + - ( + col1 ) - col2 AS col1 FROM tab1 AS cor0 ---- -108 -66 -79 query I rowsort SELECT DISTINCT 98 + cor0.col1 FROM tab1 AS cor0 ---- 108 111 124 query I rowsort SELECT DISTINCT + - 72 - col2 AS col2 FROM tab0 AS cor0 ---- -105 -154 -73 query I rowsort SELECT ALL + 52 * col2 - cor0.col2 * + col1 * col2 FROM tab1 AS cor0 ---- -114816 -29526 -73008 query I rowsort SELECT ALL tab1.col2 * col0 * + col2 AS col1 FROM tab1 ---- 207936 737280 8748 query I rowsort SELECT ALL + 40 - col1 FROM tab1 ---- 14 27 30 query I rowsort SELECT + cor0.col2 * col2 + cor0.col2 * col2 FROM tab0 AS cor0 ---- 13448 2 2178 query I rowsort SELECT DISTINCT - 85 * col2 + - 58 FROM tab0 AS cor0 ---- -143 -2863 -7028 query I rowsort SELECT - col0 * - col1 * - col0 AS col0 FROM tab1 cor0 ---- -234 -40960 -83200 query I rowsort SELECT + 69 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 85d9b90a03b9def161891b13085271f7 query I rowsort SELECT - col2 * + col1 * ( col2 * col0 ) FROM tab0 AS cor0 ---- -2247696 -3395 -54457676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5396 SELECT + CAST( - col2 AS SIGNED ) * - col1 col2 FROM tab1 AS cor0 ---- 1248 1404 570 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5396 SELECT + CAST ( - col2 AS INTEGER ) * - col1 col2 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT + col1 * 55 + + col2 AS col0 FROM tab2 ---- 1732 3271 973 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5398 SELECT CAST( col0 AS SIGNED ) * col2 - ( + col2 + col2 ) FROM tab0 ---- 33 7134 726 skipif mysql # not compatible query I rowsort label-5398 SELECT CAST ( col0 AS INTEGER ) * col2 - ( + col2 + col2 ) FROM tab0 ---- 33 7134 726 query I rowsort SELECT DISTINCT 88 * 15 AS col0 FROM tab2 ---- 1320 query I rowsort SELECT - col0 * 85 FROM tab0 AS cor0 ---- -2040 -2975 -7565 query I rowsort SELECT + - col0 * - 85 AS col1 FROM tab0 AS cor0 ---- 2040 2975 7565 query I rowsort SELECT ( + 26 ) * col0 FROM tab1 AS cor0 ---- 1664 2080 78 onlyif mysql # use DIV operator for integer division query I rowsort label-5403 SELECT col1 DIV - col1 + col2 AS col1 FROM tab2 ---- 25 26 37 skipif mysql # not compatible query I rowsort label-5403 SELECT col1 / - col1 + col2 AS col1 FROM tab2 ---- 25 26 37 query I rowsort SELECT ALL - col2 * 45 + + col0 AS col1 FROM tab2 AS cor0 ---- -1092 -1208 -1631 query I rowsort SELECT DISTINCT + 54 + col1 FROM tab2 AS cor0 ---- 113 71 85 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5406 SELECT ALL - 54 * + col0 + - cor0.col0 + - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- -416 -4349 -4362 skipif mysql # not compatible query I rowsort label-5406 SELECT ALL - 54 * + col0 + - cor0.col0 + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- -416 -4349 -4362 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5407 SELECT ALL + CAST( NULL AS SIGNED ) + - ( - col1 ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5407 SELECT ALL + CAST ( NULL AS INTEGER ) + - ( - col1 ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5408 SELECT - - ( + col1 ) * - cor0.col2 + 83 DIV col1 + - col0 col0 FROM tab1 AS cor0 ---- -1322 -1404 -626 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5408 SELECT - - ( + col1 ) * - cor0.col2 + 83 / col1 + - col0 col0 FROM tab1 AS cor0 ---- -1322 -1404 -626 query I rowsort SELECT DISTINCT + col2 + cor0.col0 * - col2 FROM tab0 AS cor0 ---- -34 -7216 -759 query I rowsort SELECT DISTINCT + col2 * + 61 * col1 + - ( col1 ) + - col0 FROM tab0 cor0 ---- 173008 455002 5785 query I rowsort SELECT ALL + col0 + - 95 AS col1 FROM tab0 AS cor0 ---- -6 -60 -71 onlyif mysql # use DIV operator for integer division query I rowsort label-5412 SELECT DISTINCT col1 DIV + col2 + col1 + - 41 FROM tab1 AS cor0 ---- -15 -28 -31 skipif mysql # not compatible query I rowsort label-5412 SELECT DISTINCT col1 / + col2 + col1 + - 41 FROM tab1 AS cor0 ---- -15 -28 -31 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 84 * col0 + cor0.col2 * col2 col0 FROM tab2 AS cor0 ---- 1317 7228 8080 query I rowsort SELECT - col0 * + ( col0 ) + - col2 FROM tab2 AS cor0 ---- -6110 -6279 -76 query I rowsort SELECT DISTINCT + col0 * 21 AS col2 FROM tab1 AS cor0 ---- 1344 1680 63 query I rowsort SELECT DISTINCT - 44 + + cor0.col2 * col0 AS col2 FROM tab2 AS cor0 ---- 145 1984 2958 query I rowsort SELECT 12 * - ( tab0.col0 + col1 ) * + tab0.col0 FROM tab0 ---- -192240 -31680 -55440 query I rowsort SELECT cor1.col0 * - ( - ( cor0.col0 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to eb103eabe531563e672e54874d056f9f query I rowsort SELECT 83 * col1 AS col2 FROM tab2 AS cor0 ---- 1411 2573 4897 query I rowsort SELECT DISTINCT + + col1 * + ( + 38 ) FROM tab0 AS cor0 ---- 3268 3458 3686 query I rowsort SELECT col2 * - col2 - + col2 AS col1 FROM tab2 cor0 ---- -1482 -702 -756 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5422 SELECT DISTINCT col2 * ( col2 ) + col2 * CAST( 21 AS SIGNED ) * col1 FROM tab1 cor0 ---- 15219 32400 35424 skipif mysql # not compatible query I rowsort label-5422 SELECT DISTINCT col2 * ( col2 ) + col2 * CAST ( 21 AS INTEGER ) * col1 FROM tab1 cor0 ---- 15219 32400 35424 query I rowsort SELECT DISTINCT - col2 * - col1 - + 13 * + col0 FROM tab0 AS cor0 ---- -358 2526 6305 query I rowsort SELECT + col1 * + ( + col2 ) - - col2 AS col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT + + cor0.col2 * ( - cor0.col0 ) + - col2 + cor0.col1 AS col1 FROM tab1 cor0 ---- -190 -3695 -7763 query I rowsort SELECT + + col0 * col0 * col1 FROM tab0 AS cor0 ---- 118825 49536 720811 onlyif mysql # use DIV operator for integer division query I rowsort label-5427 SELECT ALL - cor0.col0 DIV col1 - col1 DIV col0 AS col2 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-5427 SELECT ALL - cor0.col0 / col1 - col1 / col0 AS col2 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT ALL - col2 * + col2 * + col2 - col2 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- -157626 -188841 -892416 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 * - ( col1 * - col0 + col1 ) col1 FROM tab1 cor0 ---- 2808 35910 98592 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * 80 col1 FROM tab2 AS cor0 ---- 560 6240 6320 query I rowsort SELECT ALL + col2 * col2 * + col2 AS col1 FROM tab2 AS cor0 ---- 17576 19683 54872 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5432 SELECT - CAST( col2 AS SIGNED ) * col2 + + col2 AS col1 FROM tab1 AS cor0 ---- -2862 -3192 -9120 skipif mysql # not compatible query I rowsort label-5432 SELECT - CAST ( col2 AS INTEGER ) * col2 + + col2 AS col1 FROM tab1 AS cor0 ---- -2862 -3192 -9120 query I rowsort SELECT ALL - 1 * 7 * + col1 + cor0.col1 AS col1 FROM tab2 AS cor0 ---- -102 -186 -354 query I rowsort SELECT ALL col2 - - 20 FROM tab1 ---- 116 74 77 onlyif mysql # use DIV operator for integer division query I rowsort label-5435 SELECT ALL + cor0.col2 * - 14 * + col2 + + col0 DIV - 19 FROM tab2 AS cor0 ---- -10206 -20220 -9468 skipif mysql # not compatible query I rowsort label-5435 SELECT ALL + cor0.col2 * - 14 * + col2 + + col0 / - 19 FROM tab2 AS cor0 ---- -10206 -20220 -9468 query I rowsort SELECT ( + col1 ) * + col0 * + 73 AS col1 FROM tab1 AS cor0 ---- 46720 5694 75920 query I rowsort SELECT ALL - ( cor0.col0 ) * + col2 AS col1 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT col0 + - 47 FROM tab1 AS cor0 ---- -44 17 33 onlyif mysql # use DIV operator for integer division query I rowsort label-5439 SELECT ALL - col1 * + col2 + + tab1.col1 DIV tab1.col2 FROM tab1 ---- -1248 -1404 -570 skipif mysql # not compatible query I rowsort label-5439 SELECT ALL - col1 * + col2 + + tab1.col1 / tab1.col2 FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT ALL col1 * - 6 + col1 AS col1 FROM tab2 ---- -155 -295 -85 query I rowsort SELECT DISTINCT 9 FROM tab2, tab0 AS cor0 ---- 9 query I rowsort SELECT ALL - col0 + + 27 FROM tab2 ---- -51 -52 20 query I rowsort SELECT ALL + col0 + 96 AS col2 FROM tab2 ---- 103 174 175 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + + ( + col2 ) col1 FROM tab2 ---- 52 54 76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5445 SELECT ALL tab1.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5445 SELECT ALL tab1.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - tab0.col2 * 55 AS col2 FROM tab0, tab1, tab1 AS cor0 ---- 1815 4510 55 query I rowsort SELECT ALL + + col1 * + cor0.col1 AS col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT + col2 * 66 AS col2 FROM tab1 cor0 ---- 3564 3762 6336 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5449 SELECT ALL CAST( - col1 * col0 AS SIGNED ) + ( col0 ) FROM tab0 ---- -2040 -3360 -8010 skipif mysql # not compatible query I rowsort label-5449 SELECT ALL CAST ( - col1 * col0 AS INTEGER ) + ( col0 ) FROM tab0 ---- -2040 -3360 -8010 query I rowsort SELECT 13 + - ( + col0 ) * - 87 AS col0 FROM tab2 ---- 622 6799 6886 query I rowsort SELECT tab1.col1 * cor0.col1 AS col2 FROM tab1, tab2, tab0 AS cor0 ---- 27 values hashing to 5ea193ba73427313aa6d66d856b32bc7 query I rowsort SELECT DISTINCT - + col2 * + 7 + cor0.col2 FROM tab2 AS cor0 ---- -156 -162 -228 query I rowsort SELECT col0 + cor0.col1 * col1 AS col0 FROM tab0 cor0 ---- 7420 8370 9444 query I rowsort SELECT ALL col2 - - col0 AS col0 FROM tab0 AS cor0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-5455 SELECT ALL + col0 DIV + 61 FROM tab2 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-5455 SELECT ALL + col0 / + 61 FROM tab2 AS cor0 ---- 0 1 1 query I rowsort SELECT DISTINCT - col0 + 54 FROM tab0 AS cor0 ---- -35 19 30 query I rowsort SELECT DISTINCT 81 * + col0 + - col2 AS col2 FROM tab0 ---- 1911 2834 7127 query I rowsort SELECT ALL + col0 + + 0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT DISTINCT + + 24 + cor0.col1 * - cor0.col1 + 26 FROM tab0 AS cor0 ---- -7346 -8231 -9359 query I rowsort SELECT ALL + 52 * cor0.col0 AS col1 FROM tab1 AS cor0 ---- 156 3328 4160 query I rowsort SELECT - col2 * - col2 + + 97 * + col2 FROM tab0 AS cor0 ---- 14678 4290 98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5462 SELECT ALL ( + col1 ) + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 ---- 2 62 62 skipif mysql # not compatible query I rowsort label-5462 SELECT ALL ( + col1 ) + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 ---- 2 62 62 onlyif mysql # use DIV operator for integer division query I rowsort label-5463 SELECT - ( + cor0.col1 ) DIV col0 AS col0 FROM tab0 AS cor0 ---- -1 -2 -3 skipif mysql # not compatible query I rowsort label-5463 SELECT - ( + cor0.col1 ) / col0 AS col0 FROM tab0 AS cor0 ---- -1 -2 -3 query I rowsort SELECT - 59 * - col2 + col1 FROM tab2 AS cor0 ---- 1593 1624 2259 query I rowsort SELECT - cor0.col0 + + cor0.col0 * - col2 AS col0 FROM tab0 AS cor0 ---- -70 -7387 -816 query I rowsort SELECT col2 * + col2 + + cor0.col1 FROM tab0 AS cor0 ---- 1175 6815 98 query I rowsort SELECT DISTINCT + + 73 + col0 FROM tab1 AS cor0 ---- 137 153 76 query I rowsort SELECT + col2 - + col2 * + 61 FROM tab1 AS cor0 ---- -3240 -3420 -5760 query I rowsort SELECT ALL 75 + col2 * + 52 AS col0 FROM tab1 AS cor0 ---- 2883 3039 5067 onlyif mysql # use DIV operator for integer division query I rowsort label-5470 SELECT + - cor0.col2 + col1 DIV CAST( col1 * + col0 + col2 * col2 AS SIGNED ) AS col2 FROM tab1 cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-5470 SELECT + - cor0.col2 + col1 / CAST ( col1 * + col0 + col2 * col2 AS INTEGER ) AS col2 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT - col2 + col1 - ( 86 + col1 ) FROM tab0 AS cor0 ---- -119 -168 -87 query I rowsort SELECT DISTINCT - 52 * - col1 FROM tab1 ---- 1352 520 676 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col1 - col2 * - col0 col1 FROM tab1 cor0 ---- 136 3638 7667 query I rowsort SELECT + - ( - col1 ) + col0 * + ( - col0 ) FROM tab2 AS cor0 ---- -18 -6025 -6224 query I rowsort SELECT - 0 + col2 AS col0 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT - + cor0.col0 + - 15 * + 59 FROM tab0 AS cor0 ---- -909 -920 -974 onlyif mysql # use DIV operator for integer division query I rowsort label-5477 SELECT DISTINCT - col1 + col1 DIV col0 AS col0 FROM tab2 AS cor0 ---- -17 -27 -59 skipif mysql # not compatible query I rowsort label-5477 SELECT DISTINCT - col1 + col1 / col0 AS col0 FROM tab2 AS cor0 ---- -17 -27 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 48 col2 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 2558735eaa258a08592aef9d33020c18 onlyif mysql # use DIV operator for integer division query I rowsort label-5479 SELECT - 46 * col1 DIV col2 col1 FROM tab0 ---- -119 -4462 -51 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5479 SELECT - 46 * col1 / col2 col1 FROM tab0 ---- -119 -4462 -51 query I rowsort SELECT DISTINCT - + col0 * + 49 FROM tab0 cor0 ---- -1176 -1715 -4361 query I rowsort SELECT - 12 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0 query I rowsort SELECT - 26 * col0 AS col1 FROM tab0 AS cor0 ---- -2314 -624 -910 onlyif mysql # use DIV operator for integer division query I rowsort label-5483 SELECT ALL - col2 + ( col0 ) DIV - col0 AS col1 FROM tab2 AS cor0 ---- -27 -28 -39 skipif mysql # not compatible query I rowsort label-5483 SELECT ALL - col2 + ( col0 ) / - col0 AS col1 FROM tab2 AS cor0 ---- -27 -28 -39 query I rowsort SELECT col1 + + 18 * - col2 AS col0 FROM tab1 AS cor0 ---- -1016 -1715 -946 query I rowsort SELECT + col0 * ( + col1 * + col0 ) + tab2.col2 FROM tab2 ---- 106135 1546 358982 query I rowsort SELECT + col2 + - 90 * col0 AS col1 FROM tab1 ---- -216 -5703 -7104 query I rowsort SELECT ALL 14 FROM tab2, tab2 cor0 ---- 9 values hashing to 83e5779d2487d12495e7d816c797264f query I rowsort SELECT ( 35 ) FROM tab0, tab2 AS cor0 ---- 9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29 query I rowsort SELECT ALL 41 FROM tab1, tab1 AS cor0, tab2 cor1 ---- 27 values hashing to f6a440b478f0d00f8326a8c51fe094b8 query I rowsort SELECT - + 3 AS col0 FROM tab0 AS cor0 ---- -3 -3 -3 query I rowsort SELECT 26 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 44 col2 FROM tab1 ---- -44 -44 -44 query I rowsort SELECT 78 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 query I rowsort SELECT ALL cor0.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1 ---- 81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6 query I rowsort SELECT ALL + + ( col2 ) + col2 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT - 57 * cor0.col1 AS col2 FROM tab2, tab0 cor0, tab0, tab2 AS cor1 ---- 81 values hashing to 40a9bd72a68539dd5eaead6294567125 query I rowsort SELECT cor1.col2 AS col1 FROM tab0, tab1 cor0, tab0 cor1 ---- 27 values hashing to 7786718bd8042022537378d40ec87475 onlyif mysql # use DIV operator for integer division query I rowsort label-5498 SELECT ALL col0 DIV ( - col2 ) + col0 FROM tab0 cor0 ---- 0 24 88 skipif mysql # not compatible query I rowsort label-5498 SELECT ALL col0 / ( - col2 ) + col0 FROM tab0 cor0 ---- 0 24 88 onlyif mysql # use DIV operator for integer division query I rowsort label-5499 SELECT DISTINCT + col0 + + col0 * col1 DIV col0 FROM tab1 AS cor0 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-5499 SELECT DISTINCT + col0 + + col0 * col1 / col0 FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-5500 SELECT DISTINCT - col1 + - 21 DIV + ( - col0 ) col0 FROM tab1 AS cor0 ---- -10 -13 -19 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5500 SELECT DISTINCT - col1 + - 21 / + ( - col0 ) col0 FROM tab1 AS cor0 ---- -10 -13 -19 query I rowsort SELECT ALL + - 35 FROM tab2 cor0 ---- -35 -35 -35 onlyif mysql # use DIV operator for integer division query I rowsort label-5502 SELECT - + col0 DIV - 66 AS col2 FROM tab2 AS cor0 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-5502 SELECT - + col0 / - 66 AS col2 FROM tab2 AS cor0 ---- 0 1 1 query I rowsort SELECT DISTINCT 45 * col0 FROM tab1 AS cor0 ---- 135 2880 3600 onlyif mysql # use DIV operator for integer division query I rowsort label-5504 SELECT + 95 + col1 DIV col0 AS col0 FROM tab1 AS cor0 ---- 103 95 95 skipif mysql # not compatible query I rowsort label-5504 SELECT + 95 + col1 / col0 AS col0 FROM tab1 AS cor0 ---- 103 95 95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5505 SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 55 * + col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5505 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 55 * + col2 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT - ( 60 ) AS col0 FROM tab1 AS cor0 ---- -60 -60 -60 query I rowsort SELECT ALL + col1 * - ( cor0.col0 ) FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL - cor0.col2 + 40 * + col0 FROM tab0 AS cor0 ---- 1399 3478 927 query I rowsort SELECT DISTINCT - 56 AS col0 FROM tab0 AS cor0 ---- -56 query I rowsort SELECT ALL cor0.col2 * - col2 + col0 AS col1 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query I rowsort SELECT - 50 + + col2 AS col2 FROM tab0 AS cor0 ---- -17 -49 32 query I rowsort SELECT + ( + 53 ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to fede6033dee346dbd272085c05724fda query I rowsort SELECT ALL + + cor0.col0 * cor0.col1 + ( col1 + col2 ) FROM tab2 AS cor0 ---- 1398 275 4687 onlyif mysql # use DIV operator for integer division query I rowsort label-5514 SELECT 21 DIV col0 - 6 * col1 FROM tab2 AS cor0 ---- -102 -183 -354 skipif mysql # not compatible query I rowsort label-5514 SELECT 21 / col0 - 6 * col1 FROM tab2 AS cor0 ---- -102 -183 -354 query I rowsort SELECT DISTINCT + cor0.col1 - col1 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT - 37 - + col2 AS col0 FROM tab1 cor0 ---- -133 -91 -94 query I rowsort SELECT DISTINCT ( - cor0.col0 ) + + 14 * - 95 FROM tab2 cor0 ---- -1337 -1408 -1409 query I rowsort SELECT col2 * col2 + 46 AS col2 FROM tab0 AS cor0 ---- 1135 47 6770 query I rowsort SELECT - col2 + - col0 * + cor0.col2 AS col2 FROM tab2 AS cor0 ---- -2054 -216 -3040 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5520 SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + tab1.col0 FROM tab1 ---- -4096 -6400 -9 skipif mysql # not compatible query I rowsort label-5520 SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + tab1.col0 FROM tab1 ---- -4096 -6400 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 84 col2 FROM tab1, tab1 cor0 ---- 9 values hashing to cadd876c26338fc58b9297e74fc324d8 query I rowsort SELECT DISTINCT - cor0.col2 + - cor0.col2 AS col1 FROM tab1 AS cor0 ---- -108 -114 -192 query I rowsort SELECT + cor0.col1 * col1 + - 82 FROM tab2 AS cor0 ---- 207 3399 879 query I rowsort SELECT DISTINCT cor0.col1 - + col1 FROM tab2 cor0 ---- 0 query I rowsort SELECT 88 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to c46e7cf9bf516fdfde88534336a28177 query I rowsort SELECT ALL + col1 * + col1 + - 29 FROM tab1 cor0 ---- 140 647 71 onlyif mysql # use DIV operator for integer division query I rowsort label-5527 SELECT col0 * + col0 * + 0 + + col0 * - col1 + - col0 DIV col0 FROM tab0 ---- -2065 -3396 -8100 skipif mysql # not compatible query I rowsort label-5527 SELECT col0 * + col0 * + 0 + + col0 * - col1 + - col0 / col0 FROM tab0 ---- -2065 -3396 -8100 query I rowsort SELECT ALL - tab0.col2 - - col1 AS col1 FROM tab0 ---- 53 9 96 query I rowsort SELECT - - col0 * col2 - + 50 AS col1 FROM tab0 AS cor0 ---- -15 7248 742 query I rowsort SELECT DISTINCT cor0.col2 * col1 + - col0 + col0 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL col1 - col2 * col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT DISTINCT + col1 + + ( ( col0 ) ) FROM tab0 cor0 ---- 110 132 180 query I rowsort SELECT - col0 * + 96 + - 21 FROM tab1 AS cor0 ---- -309 -6165 -7701 onlyif mysql # use DIV operator for integer division query I rowsort label-5534 SELECT ALL col0 * tab1.col1 DIV - tab1.col1 + col2 + + col2 FROM tab1 ---- 105 112 50 skipif mysql # not compatible query I rowsort label-5534 SELECT ALL col0 * tab1.col1 / - tab1.col1 + col2 + + col2 FROM tab1 ---- 105 112 50 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5535 SELECT DISTINCT col2 * col1 + - CAST( NULL AS DECIMAL ) / - col0 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-5535 SELECT DISTINCT col2 * col1 + - CAST ( NULL AS REAL ) / - col0 FROM tab2 ---- NULL query I rowsort SELECT ALL cor0.col1 + - 62 AS col0 FROM tab0, tab1 cor0 ---- 9 values hashing to 3bbd800c0e95cb5fdca41ddcd2e0ef4c query I rowsort SELECT DISTINCT cor0.col2 + col2 * - col0 AS col0 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT DISTINCT col1 * 69 FROM tab1 AS cor0 ---- 1794 690 897 query I rowsort SELECT col2 * - 75 + col2 AS col0 FROM tab0 AS cor0 ---- -2442 -6068 -74 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5540 SELECT DISTINCT - + col2 + + CAST( NULL AS SIGNED ) * + 11 AS col0 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5540 SELECT DISTINCT - + col2 + + CAST ( NULL AS INTEGER ) * + 11 AS col0 FROM tab2 AS cor0 ---- NULL query I rowsort SELECT - + col0 * 94 + ( + col0 ) FROM tab2 AS cor0 ---- -651 -7254 -7347 query I rowsort SELECT DISTINCT - col2 + - 7 - + 0 FROM tab2 AS cor0 ---- -33 -34 -45 onlyif mysql # use DIV operator for integer division query I rowsort label-5543 SELECT tab0.col0 + - col1 DIV - col1 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-5543 SELECT tab0.col0 + - col1 / - col1 FROM tab0 ---- 25 36 90 query I rowsort SELECT ALL - ( 2 + col0 ) AS col2 FROM tab1 ---- -5 -66 -82 query I rowsort SELECT ALL - - col2 * - 94 FROM tab1 AS cor0 ---- -5076 -5358 -9024 query I rowsort SELECT ALL - - 82 * + 5 + col1 * col0 FROM tab1 cor0 ---- 1050 1450 488 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 25 * - col1 col0 FROM tab2 ---- -1475 -425 -775 onlyif mysql # use DIV operator for integer division query I rowsort label-5548 SELECT DISTINCT + - 43 * 45 DIV cor0.col2 AS col0 FROM tab1 AS cor0 ---- -20 -33 -35 skipif mysql # not compatible query I rowsort label-5548 SELECT DISTINCT + - 43 * 45 / cor0.col2 AS col0 FROM tab1 AS cor0 ---- -20 -33 -35 query I rowsort SELECT + ( + 38 ) + + cor0.col1 FROM tab1 AS cor0 ---- 48 51 64 onlyif mysql # use DIV operator for integer division query I rowsort label-5550 SELECT DISTINCT - tab2.col0 * col2 + ( - 17 ) DIV - col1 col0 FROM tab2 ---- -189 -2028 -3001 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5550 SELECT DISTINCT - tab2.col0 * col2 + ( - 17 ) / - col1 col0 FROM tab2 ---- -189 -2028 -3001 onlyif mysql # use DIV operator for integer division query I rowsort label-5551 SELECT DISTINCT col0 * col1 + + col0 DIV - col1 FROM tab2 AS cor0 ---- 1339 217 4601 skipif mysql # not compatible query I rowsort label-5551 SELECT DISTINCT col0 * col1 + + col0 / - col1 FROM tab2 AS cor0 ---- 1339 217 4601 query I rowsort SELECT DISTINCT + + col1 + cor0.col0 * 91 FROM tab1 AS cor0 ---- 299 5834 7293 query I rowsort SELECT ALL + 59 + - col1 FROM tab1 AS cor0 ---- 33 46 49 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5554 SELECT col2 - col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5554 SELECT col2 - col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT + + col2 * + cor0.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 ALL - cor0.col1 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to c7890469eabb2c6fc81454b35d2333b6 query I rowsort SELECT - + col1 + 44 * + col1 AS col0 FROM tab0 AS cor0 ---- 3698 3913 4171 query I rowsort SELECT - col0 + col2 * col1 * + 11 FROM tab2 AS cor0 ---- 16796 7027 9200 query I rowsort SELECT - col1 * col0 + col1 * + col0 FROM tab0 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 + 41 * + col0 * + cor0.col1 col1 FROM tab2 AS cor0 ---- 188741 55080 8928 query I rowsort SELECT ALL 42 + cor0.col1 FROM tab2 AS cor0 ---- 101 59 73 query I rowsort SELECT - col1 * - 7 - col0 AS col1 FROM tab2 AS cor0 ---- 210 335 40 onlyif mysql # use DIV operator for integer division query I rowsort label-5563 SELECT - + col1 DIV ( + col1 ) AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5563 SELECT - + col1 / ( + col1 ) AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT 63 + - col0 * - col2 FROM tab0 AS cor0 ---- 7361 855 98 onlyif mysql # use DIV operator for integer division query I rowsort label-5565 SELECT 52 DIV - cor0.col0 - - col0 AS col1 FROM tab0 cor0 ---- 22 34 89 skipif mysql # not compatible query I rowsort label-5565 SELECT 52 / - cor0.col0 - - col0 AS col1 FROM tab0 cor0 ---- 22 34 89 query I rowsort SELECT + col1 * + col0 * + col1 AS col2 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT ALL col1 + + 58 * 40 AS col1 FROM tab2 ---- 2337 2351 2379 query I rowsort SELECT col0 * - col1 + + 7 * + col0 + ( + col2 ) FROM tab0 ---- -1863 -3149 -7394 onlyif mysql # use DIV operator for integer division query I rowsort label-5569 SELECT + tab0.col1 DIV col2 AS col0 FROM tab0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-5569 SELECT + tab0.col1 / col2 AS col0 FROM tab0 ---- 1 2 97 query I rowsort SELECT + col1 * - col1 + cor0.col1 AS col2 FROM tab2 AS cor0 ---- -272 -3422 -930 query I rowsort SELECT col1 + col2 * + col2 AS col2 FROM tab0 cor0 ---- 1175 6815 98 query I rowsort SELECT ALL + ( - tab0.col2 ) * col2 + - col1 + - ( col0 ) FROM tab0 ---- -1199 -133 -6904 query I rowsort SELECT ALL col1 * col1 + col0 * col0 FROM tab2 ---- 1010 6530 9565 query I rowsort SELECT ALL + tab0.col2 + 0 * col2 AS col1 FROM tab0 ---- 1 33 82 query I rowsort SELECT ALL - - col1 + + col1 FROM tab2 cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT + col2 * + 41 AS col2 FROM tab0 AS cor0 ---- 1353 3362 41 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 66 * 44 col2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to d827b3698fc6fe9656d4d167d62c0e44 query I rowsort SELECT ALL - col2 + - col0 AS col0 FROM tab2 cor0 ---- -104 -117 -34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5579 SELECT CAST( NULL AS SIGNED ) + + 43 FROM tab1, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-5579 SELECT CAST ( NULL AS INTEGER ) + + 43 FROM tab1, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT - col1 * col1 * col1 FROM tab0 cor0 ---- -636056 -753571 -912673 query I rowsort SELECT + col1 * - ( + col2 ) FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL + - 26 + + col2 - - col0 FROM tab1 AS cor0 ---- 150 31 95 query I rowsort SELECT DISTINCT 88 + - 75 AS col2 FROM tab1, tab1 AS cor0 ---- 13 query I rowsort SELECT + cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5585 SELECT CAST( NULL AS SIGNED ) * - col1 + col0 * + col1 * 98 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5585 SELECT CAST ( NULL AS INTEGER ) * - col1 + col0 * + col1 * 98 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT + 5 - col2 FROM tab0 cor0 ---- -28 -77 4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( - col0 ) * - col1 col0 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT + col2 + + col2 - col2 FROM tab2 ---- 26 27 38 query I rowsort SELECT ALL - tab1.col2 * col0 - col2 FROM tab1 ---- -216 -3705 -7776 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5590 SELECT DISTINCT CAST( col0 AS SIGNED ) - - col1 FROM tab1 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-5590 SELECT DISTINCT CAST ( col0 AS INTEGER ) - - col1 FROM tab1 ---- 29 74 93 query I rowsort SELECT - col0 + + col2 * cor0.col1 FROM tab1 AS cor0 ---- 1168 1401 506 query I rowsort SELECT ALL 42 * col1 * 27 FROM tab0 ---- 103194 109998 97524 onlyif mysql # use DIV operator for integer division query I rowsort label-5593 SELECT ALL + col0 DIV + tab1.col1 FROM tab1 ---- 0 6 6 skipif mysql # not compatible query I rowsort label-5593 SELECT ALL + col0 / + tab1.col1 FROM tab1 ---- 0 6 6 query I rowsort SELECT 83 * + col2 FROM tab2 ---- 2158 2241 3154 query I rowsort SELECT ALL + + tab0.col0 + cor0.col0 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 9291d35e95708b6c1cfa77b59e2fdeeb skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 28 col1 FROM tab2, tab1 AS cor0 ---- 28 onlyif mysql # use DIV operator for integer division query I rowsort label-5597 SELECT col2 DIV - cor0.col0 FROM tab1 cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-5597 SELECT col2 / - cor0.col0 FROM tab1 cor0 ---- -1 -18 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + cor0.col0 * col0 col1 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT + - col1 * ( - 0 ) FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - cor0.col1 * 51 FROM tab1 AS cor0 ---- -1326 -510 -663 query I rowsort SELECT ALL - ( tab2.col1 + + 41 ) * - cor0.col0 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 1674625310699ea8b70e3bd7619f312c query I rowsort SELECT ALL ( + col2 ) * - 72 FROM tab0 ---- -2376 -5904 -72 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab1.col1 * col1 * + col2 col2 FROM tab1 ---- 16224 36504 5700 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + tab1.col1 col2 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ALL + col0 * - ( col0 ) FROM tab0 cor0 ---- -1225 -576 -7921 query I rowsort SELECT - col0 * + 45 AS col1 FROM tab1 AS cor0 ---- -135 -2880 -3600 query I rowsort SELECT ALL - col1 * col1 + - col0 AS col1 FROM tab2 ---- -3559 -368 -968 query I rowsort SELECT ALL col0 + + 24 FROM tab1 ---- 104 27 88 query I rowsort SELECT ALL 92 + + 90 + tab0.col0 * col2 AS col2 FROM tab0 ---- 217 7480 974 onlyif mysql # use DIV operator for integer division query I rowsort label-5610 SELECT DISTINCT - tab2.col1 DIV + col1 + - col1 + + col1 FROM tab2 ---- -1 skipif mysql # not compatible query I rowsort label-5610 SELECT DISTINCT - tab2.col1 / + col1 + - col1 + + col1 FROM tab2 ---- -1 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 col2 + + col2 - - col2 * col1 col2 FROM tab2 ---- 1586 722 891 query I rowsort SELECT col1 + + col1 * col2 * col0 AS col1 FROM tab1 ---- 36490 4238 99853 query I rowsort SELECT - + cor0.col2 + + 89 AS col1 FROM tab2 AS cor0 ---- 51 62 63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 63 * ( - col2 ) * col0 + col0 col0 FROM tab1 AS cor0 ---- -10203 -229760 -483760 query I rowsort SELECT ALL + col2 * + 91 FROM tab2 cor0 ---- 2366 2457 3458 query I rowsort SELECT col1 * + col0 - + col2 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT ALL - col1 + - col2 FROM tab0 cor0 ---- -119 -173 -98 query I rowsort SELECT 85 + col2 AS col0 FROM tab1 AS cor0 ---- 139 142 181 query I rowsort SELECT + 63 * - col1 + + col1 AS col2 FROM tab1 AS cor0 ---- -1612 -620 -806 query I rowsort SELECT col1 * + 78 FROM tab0 ---- 6708 7098 7566 query I rowsort SELECT ( - col0 * col2 ) AS col2 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + 48 * col2 FROM tab0 AS cor0 ---- 1584 3936 48 onlyif mysql # use DIV operator for integer division query I rowsort label-5624 SELECT + 83 DIV col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5624 SELECT + 83 / col1 AS col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 51 + col0 AS col2 FROM tab1 AS cor0 ---- -48 13 29 query I rowsort SELECT ALL + 54 * - col0 AS col1 FROM tab0 AS cor0 ---- -1296 -1890 -4806 query I rowsort SELECT ALL + 53 + col0 * + col0 FROM tab0 cor0 ---- 1278 629 7974 query I rowsort SELECT - tab2.col0 + col1 * - 82 + + col2 AS col0 FROM tab2 ---- -1435 -2522 -4890 query I rowsort SELECT DISTINCT - col0 - col0 * - 88 FROM tab0 AS cor0 ---- 2088 3045 7743 query I rowsort SELECT DISTINCT col0 * col1 * col0 + + col2 * + col0 - + col0 * col0 AS col0 FROM tab2 cor0 ---- 102858 1659 354900 query I rowsort SELECT - col1 * - cor0.col0 FROM tab1 cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT - - cor0.col0 + + ( + col0 ) AS col2 FROM tab2 AS cor0 ---- 14 156 158 query I rowsort SELECT + ( cor0.col0 ) + - col1 - + col0 AS col1 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT + - ( - col0 ) * cor0.col0 * col1 AS col1 FROM tab0 cor0 ---- 118825 49536 720811 onlyif mysql # use DIV operator for integer division query I rowsort label-5635 SELECT + 68 DIV + 11 FROM tab2 cor0 ---- 6 6 6 skipif mysql # not compatible query I rowsort label-5635 SELECT + 68 / + 11 FROM tab2 cor0 ---- 6 6 6 onlyif mysql # use DIV operator for integer division query I rowsort label-5636 SELECT ALL + - col1 DIV - 23 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5636 SELECT ALL + - col1 / - 23 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT ALL tab0.col1 - ( + tab0.col0 + - col2 ) FROM tab0 ---- 63 84 95 query I rowsort SELECT DISTINCT cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1 ---- 10 13 26 query I rowsort SELECT ALL + + col1 * - col0 + cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT DISTINCT + cor0.col0 - col0 AS col1 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL + col2 * cor0.col0 + + col2 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT DISTINCT + col0 - - col0 AS col1 FROM tab2 AS cor0 ---- 14 156 158 onlyif mysql # use DIV operator for integer division query I rowsort label-5643 SELECT ALL + - col0 + + col2 DIV col0 FROM tab0 AS cor0 ---- -23 -35 -89 skipif mysql # not compatible query I rowsort label-5643 SELECT ALL + - col0 + + col2 / col0 FROM tab0 AS cor0 ---- -23 -35 -89 query I rowsort SELECT ALL + + col0 * - col2 + col1 * col0 AS col2 FROM tab0 AS cor0 ---- 1272 3360 801 query I rowsort SELECT col0 - - col1 * + col0 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT DISTINCT + col2 * - col1 * + col2 FROM tab1 ---- -119808 -32490 -75816 query I rowsort SELECT col0 * - col2 + tab0.col0 AS col1 FROM tab0 ---- -7209 -768 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5648 SELECT DISTINCT - col2 * tab0.col0 + - col0 DIV col2 FROM tab0 ---- -70 -7299 -792 skipif mysql # not compatible query I rowsort label-5648 SELECT DISTINCT - col2 * tab0.col0 + - col0 / col2 FROM tab0 ---- -70 -7299 -792 query I rowsort SELECT ALL - tab0.col0 - col0 * col1 * + col0 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 ) ---- query I rowsort SELECT DISTINCT col2 + tab0.col0 * - col0 FROM tab0 ---- -1224 -543 -7839 onlyif mysql # use DIV operator for integer division query I rowsort label-5651 SELECT + col2 + + col1 DIV col1 + - col2 DIV col1 FROM tab1 ---- 53 53 90 skipif mysql # not compatible query I rowsort label-5651 SELECT + col2 + + col1 / col1 + - col2 / col1 FROM tab1 ---- 53 53 90 query I rowsort SELECT col1 + - col0 * col1 AS col0 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT - cor0.col0 * - col1 - - col2 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT - col1 * col1 + col2 FROM tab1 WHERE NULL >= col1 ---- query I rowsort SELECT col0 * tab2.col1 + - col2 * + col1 + col1 * col0 AS col2 FROM tab2 ---- -403 2040 7670 query III rowsort SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 + col2 * + tab0.col2 + col2 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + - col0 col2 FROM tab2 ---- 0 query I rowsort SELECT ALL col2 + + col0 * - col2 AS col0 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT ALL col2 + col1 * + tab1.col1 AS col2 FROM tab1 ---- 157 265 730 query I rowsort SELECT ALL + col2 * - col0 - col2 FROM tab2 AS cor0 ---- -2054 -216 -3040 onlyif mysql # use DIV operator for integer division query I rowsort label-5661 SELECT ALL - col1 + - cor0.col0 + col0 * col0 DIV + col0 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-5661 SELECT ALL - col1 + - cor0.col0 + col0 * col0 / + col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT DISTINCT - cor0.col2 * - col0 + + cor0.col1 AS col2 FROM tab1 AS cor0 ---- 188 3658 7693 onlyif mysql # use DIV operator for integer division query I rowsort label-5663 SELECT - col0 DIV col0 + + col1 FROM tab1 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-5663 SELECT - col0 / col0 + + col1 FROM tab1 ---- 12 25 9 query IIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab2, tab0 AS cor0 WHERE NULL > NULL ---- query IIIIIIIII rowsort SELECT ALL * FROM tab1, tab2, tab2 AS cor0 WHERE NULL < NULL ---- query I rowsort SELECT ALL + - col2 + col0 * cor0.col0 * col1 FROM tab2 AS cor0 ---- 106059 1492 358930 query I rowsort SELECT DISTINCT col0 * col2 * col0 AS col0 FROM tab2 ---- 1323 158184 237158 query I rowsort SELECT - - 81 * col0 + cor0.col1 FROM tab0 cor0 ---- 2030 2932 7300 query I rowsort SELECT DISTINCT + col2 * col0 + 88 FROM tab1 AS cor0 ---- 250 3736 7768 query I rowsort SELECT DISTINCT - 23 + - col2 FROM tab0 cor0 ---- -105 -24 -56 query I rowsort SELECT + - col2 * 82 + - 32 - + col2 FROM tab0 AS cor0 ---- -115 -2771 -6838 query I rowsort SELECT - col1 + + col2 * + 20 - - col0 AS col2 FROM tab0 AS cor0 ---- -42 1638 598 query I rowsort SELECT ALL + 16 * col0 + col2 FROM tab2 AS cor0 ---- 1274 1302 139 query I rowsort SELECT - 87 * col2 AS col0 FROM tab2 AS cor0 ---- -2262 -2349 -3306 onlyif mysql # use DIV operator for integer division query I rowsort label-5675 SELECT ALL 32 DIV - col2 AS col2 FROM tab0 AS cor0 ---- -32 0 0 skipif mysql # not compatible query I rowsort label-5675 SELECT ALL 32 / - col2 AS col2 FROM tab0 AS cor0 ---- -32 0 0 query I rowsort SELECT DISTINCT - col1 + 60 AS col1 FROM tab0 ---- -26 -31 -37 query I rowsort SELECT + - col0 * + ( - col2 ) + + 80 AS col1 FROM tab2 AS cor0 ---- 2108 269 3082 query I rowsort SELECT col0 * + col2 + col2 AS col0 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT DISTINCT - 74 * tab2.col1 FROM tab2 ---- -1258 -2294 -4366 query I rowsort SELECT - col2 + - col1 * tab0.col0 FROM tab0 ---- -2097 -3396 -8181 query I rowsort SELECT ALL - cor1.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc onlyif mysql # use DIV operator for integer division query I rowsort label-5682 SELECT + col2 * col0 DIV - cor0.col1 AS col0 FROM tab1 cor0 ---- -364 -590 -6 skipif mysql # not compatible query I rowsort label-5682 SELECT + col2 * col0 / - cor0.col1 AS col0 FROM tab1 cor0 ---- -364 -590 -6 onlyif mysql # use DIV operator for integer division query I rowsort label-5683 SELECT + - 43 DIV col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5683 SELECT + - 43 / col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + - ( - cor0.col2 ) FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 onlyif mysql # use DIV operator for integer division query I rowsort label-5685 SELECT + col2 + col2 DIV col1 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-5685 SELECT + col2 + col2 / col1 FROM tab0 ---- 1 33 82 query I rowsort SELECT DISTINCT - ( 0 ) AS col1 FROM tab1 ---- 0 query I rowsort SELECT DISTINCT + + col1 * col2 + - 82 * cor0.col1 FROM tab0 AS cor0 ---- -4214 -7857 0 skipif mysql # not compatible query I rowsort SELECT ALL - col1 - col2 * CAST ( cor0.col0 * + cor0.col0 AS REAL ) FROM tab2 cor0 ---- -1354 -158243 -237175 query I rowsort SELECT cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 ---- 243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2 query I rowsort SELECT - col2 * col1 + - 82 AS col2 FROM tab2 ---- -1616 -728 -919 query I rowsort SELECT DISTINCT col0 * 55 FROM tab0 ---- 1320 1925 4895 query I rowsort SELECT DISTINCT col2 * + 93 AS col2 FROM tab2 ---- 2418 2511 3534 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5693 SELECT - CAST( - col0 AS SIGNED ) * - col2 AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 skipif mysql # not compatible query I rowsort label-5693 SELECT - CAST ( - col0 AS INTEGER ) * - col2 AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT - 86 * - 76 + - col2 FROM tab1 AS cor0 ---- 6440 6479 6482 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( 39 * + tab2.col0 ) col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 1ebbdeb5daed83ce44092cc3875ddc57 query I rowsort SELECT + col1 * ( col1 + - col0 ) AS col1 FROM tab1 ---- -540 -871 598 query I rowsort SELECT col2 + col1 + - col2 AS col0 FROM tab1 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 48 col2 FROM tab2, tab2 cor0 ---- 9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * ( + col2 ) + col0 * - col0 + col2 col2 FROM tab1 AS cor0 ---- -117 -13984 -7687 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5700 SELECT DISTINCT + + col0 * - CAST( 9 AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0 ---- -183 -314 -719 skipif mysql # not compatible query I rowsort label-5700 SELECT DISTINCT + + col0 * - CAST ( 9 AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0 ---- -183 -314 -719 query I rowsort SELECT - 4 * 90 AS col0 FROM tab1 AS cor0 ---- -360 -360 -360 query I rowsort SELECT + + col0 + - col2 * + cor0.col2 FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT + col0 * - col2 + col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + - ( col1 ) col0 FROM tab2 AS cor0 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * + ( cor0.col0 * col1 ) col2 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT + cor1.col0 * + 94 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 6bcb30b154c5a1c781c1eeab74e167ae onlyif mysql # use DIV operator for integer division query I rowsort label-5707 SELECT DISTINCT - ( col2 ) DIV - cor0.col2 AS col0 FROM tab1 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-5707 SELECT DISTINCT - ( col2 ) / - cor0.col2 AS col0 FROM tab1 AS cor0 ---- 1 query I rowsort SELECT ALL col0 + ( - col2 ) FROM tab1 cor0 ---- -16 -51 7 query I rowsort SELECT DISTINCT + 12 + col2 * + col1 AS col2 FROM tab2 cor0 ---- 1546 658 849 query I rowsort SELECT - cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc query I rowsort SELECT + 91 - - col2 * + col1 FROM tab1 ---- 1339 1495 661 query I rowsort SELECT ALL ( + col2 ) + col2 * 96 AS col1 FROM tab0 ---- 3201 7954 97 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab2, tab2 AS cor2 ---- 3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5714 SELECT ALL + CAST( col2 AS SIGNED ) * - col2 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5714 SELECT ALL + CAST ( col2 AS INTEGER ) * - col2 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - ( 38 ) - col2 * col1 FROM tab2 AS cor0 ---- -1572 -684 -875 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5716 SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5716 SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT DISTINCT + col1 * 16 AS col1 FROM tab0 AS cor0 ---- 1376 1456 1552 query I rowsort SELECT ALL - 44 * 20 + col2 FROM tab0 AS cor0 ---- -798 -847 -879 query I rowsort SELECT ALL 80 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 6dd5038be71dffa82f5ceba787caab91 query I rowsort SELECT DISTINCT + 92 * + col2 AS col2 FROM tab0 ---- 3036 7544 92 query I rowsort SELECT 83 * + cor0.col1 * ( 0 ) FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5722 SELECT DISTINCT col1 DIV - tab0.col1 FROM tab0 ---- -1 skipif mysql # not compatible query I rowsort label-5722 SELECT DISTINCT col1 / - tab0.col1 FROM tab0 ---- -1 query I rowsort SELECT + 48 * + col2 FROM tab1 ---- 2592 2736 4608 query I rowsort SELECT - + cor0.col1 * col0 + - cor0.col2 FROM tab1 cor0 ---- -1136 -132 -697 query I rowsort SELECT ALL - - col1 * - col0 + col0 * col0 FROM tab0 AS cor0 ---- -1488 -178 -2170 query I rowsort SELECT DISTINCT col0 - - col1 AS col1 FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # use DIV operator for integer division query I rowsort label-5727 SELECT DISTINCT col1 * col2 + - col1 DIV - col1 col2 FROM tab2 cor0 ---- 1535 647 838 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5727 SELECT DISTINCT col1 * col2 + - col1 / - col1 col2 FROM tab2 cor0 ---- 1535 647 838 query I rowsort SELECT DISTINCT + - col0 + - 81 * col2 - col2 AS col1 FROM tab2 AS cor0 ---- -2210 -2221 -3195 query I rowsort SELECT cor0.col2 + - col0 AS col0 FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT ALL + col2 * + 20 AS col0 FROM tab0 ---- 1640 20 660 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab2 AS cor2 ---- 3645 values hashing to 4805bcb9c04e49d1f6f82defa880d751 onlyif mysql # use DIV operator for integer division query I rowsort label-5732 SELECT ALL col0 DIV ( - col1 ) FROM tab1 AS cor0 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-5732 SELECT ALL col0 / ( - col1 ) FROM tab1 AS cor0 ---- -6 -6 0 query I rowsort SELECT + cor0.col0 + + 27 * - col2 FROM tab0 AS cor0 ---- -2125 -867 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 * + col1 * - 26 col1 FROM tab2 AS cor0 ---- 24986 7514 90506 query I rowsort SELECT ALL - tab1.col1 * + 17 * ( + tab1.col1 ) FROM tab1 ---- -11492 -1700 -2873 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - cor0.col1 * + 12 col2 FROM tab0 AS cor0 ---- 1032 1092 1164 query I rowsort SELECT - cor0.col1 * cor2.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to bf1e0f66faa88c65bd30f110fcaed0e4 query I rowsort SELECT ALL ( - 62 ) * - col2 AS col0 FROM tab2 AS cor0 ---- 1612 1674 2356 query I rowsort SELECT + + col0 * cor0.col0 * col0 AS col1 FROM tab1 AS cor0 ---- 262144 27 512000 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + - col0 * col2 * col2 col0 FROM tab1 AS cor0 ---- -207993 -737376 -8802 query I rowsort SELECT + + ( - col2 ) + col2 * + col2 AS col2 FROM tab2 AS cor0 ---- 1406 650 702 query I rowsort SELECT ALL col0 - 44 FROM tab1 AS cor0 ---- -41 20 36 query I rowsort SELECT DISTINCT 11 FROM tab2, tab2 cor0 ---- 11 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5744 SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) col0 FROM tab0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5744 SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) col0 FROM tab0 ---- NULL query I rowsort SELECT ( 98 ) * col1 FROM tab1 AS cor0 ---- 1274 2548 980 query I rowsort SELECT ALL + cor0.col2 + - col0 AS col2 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT ALL - + 76 * cor0.col1 AS col2 FROM tab0 AS cor0 ---- -6536 -6916 -7372 query I rowsort SELECT - - cor0.col2 * - col1 + col0 AS col2 FROM tab0 AS cor0 ---- -2814 -62 -7373 query I rowsort SELECT ALL col2 + col1 * - col1 FROM tab1 cor0 ---- -43 -622 -73 onlyif mysql # use DIV operator for integer division query I rowsort label-5750 SELECT DISTINCT col1 + - col0 DIV 15 AS col0 FROM tab2 AS cor0 ---- 12 31 54 skipif mysql # not compatible query I rowsort label-5750 SELECT DISTINCT col1 + - col0 / 15 AS col0 FROM tab2 AS cor0 ---- 12 31 54 query I rowsort SELECT ALL - + 86 + - cor0.col2 FROM tab0 cor0 ---- -119 -168 -87 query I rowsort SELECT ALL + col2 * col2 + + col1 * - cor0.col0 FROM tab2 AS cor0 ---- -3926 101 512 query I rowsort SELECT col0 * - col2 * - col0 + cor0.col2 * + col1 FROM tab1 AS cor0 ---- 1890 234042 615648 query I rowsort SELECT DISTINCT + col0 * col0 + ( 95 ) AS col2 FROM tab0 AS cor0 ---- 1320 671 8016 query I rowsort SELECT DISTINCT - 55 * col1 + - 25 + - 61 * cor0.col2 FROM tab2 AS cor0 ---- -3278 -3377 -4856 query I rowsort SELECT ALL + cor0.col0 * - col0 * ( + col1 ) - col1 * + 21 FROM tab0 AS cor0 ---- -120862 -51342 -722722 query I rowsort SELECT DISTINCT 15 * - col0 FROM tab0 AS cor0 ---- -1335 -360 -525 onlyif mysql # use DIV operator for integer division query I rowsort label-5758 SELECT DISTINCT col2 DIV col2 + + col2 * 95 + col1 * tab0.col2 AS col0 FROM tab0 ---- 15253 193 5974 skipif mysql # not compatible query I rowsort label-5758 SELECT DISTINCT col2 / col2 + + col2 * 95 + col1 * tab0.col2 AS col0 FROM tab0 ---- 15253 193 5974 query I rowsort SELECT col2 + + ( + col1 ) AS col0 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT ALL + 55 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0 query I rowsort SELECT - 96 * tab0.col2 + col1 FROM tab0 ---- -3082 -7781 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * + col1 * + col1 col2 FROM tab0 AS cor0 ---- 244068 679042 9409 query I rowsort SELECT - cor0.col1 + + col0 * 80 AS col0 FROM tab0 AS cor0 ---- 1834 2703 7029 query I rowsort SELECT ALL - 1 FROM tab1, tab0, tab2 AS cor0, tab2 ---- 81 values hashing to f3aaea07874d9328a91c424c0907a688 query I rowsort SELECT DISTINCT - tab2.col2 * 91 FROM tab2 ---- -2366 -2457 -3458 query I rowsort SELECT - ( + col1 * col1 ) AS col0 FROM tab0 ---- -7396 -8281 -9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab2.col2 col1 FROM tab2, tab1 AS cor0, tab0 cor1 ---- -26 -27 -38 query I rowsort SELECT + 88 + col2 FROM tab0 AS cor0 ---- 121 170 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - cor0.col2 col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT ALL 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 2aff42d3e015022a738905090a20dfd4 onlyif mysql # use DIV operator for integer division query I rowsort label-5771 SELECT + cor0.col2 DIV 73 FROM tab1 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5771 SELECT + cor0.col2 / 73 FROM tab1 AS cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT col1 * ( - col2 ) * - col2 AS col0 FROM tab2 AS cor0 ---- 22599 24548 39884 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col2 + col0 * col0 col1 FROM tab1 cor0 ---- 4153 63 6496 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5774 SELECT DISTINCT + - col2 + + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5774 SELECT DISTINCT + - col2 + + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT - 55 + ( + col2 ) AS col0 FROM tab0 AS cor0 ---- -22 -54 27 query I rowsort SELECT 41 * 69 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to a866b71ffe6319193ae5dd492f788e5f skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + - 64 * - cor0.col1 col2 FROM tab2 AS cor0 ---- 1105 2015 3835 query I rowsort SELECT - 89 + col0 * - col0 * col1 + col1 FROM tab1 AS cor0 ---- -297 -41039 -83276 query I rowsort SELECT - col1 * - 8 AS col2 FROM tab2 AS cor0 ---- 136 248 472 query I rowsort SELECT DISTINCT + - col0 + 65 * + col0 AS col1 FROM tab1 AS cor0 ---- 192 4096 5120 query I rowsort SELECT ALL + + ( - 86 ) FROM tab2 AS cor0 ---- -86 -86 -86 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5782 SELECT ALL CAST( NULL AS SIGNED ) / + col0 col1 FROM tab1 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5782 SELECT ALL CAST ( NULL AS INTEGER ) / + col0 col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT + 24 * col1 + col2 FROM tab1 AS cor0 ---- 297 408 678 query I rowsort SELECT DISTINCT 47 + + col2 FROM tab2 AS cor0 ---- 73 74 85 query I rowsort SELECT ALL col2 * col0 * - cor0.col2 FROM tab1 cor0 ---- -207936 -737280 -8748 query I rowsort SELECT ALL col1 + col1 * - col1 FROM tab1 cor0 ---- -156 -650 -90 onlyif mysql # use DIV operator for integer division query I rowsort label-5787 SELECT + col1 + + col1 DIV - col1 FROM tab1 AS cor0 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-5787 SELECT + col1 + + col1 / - col1 FROM tab1 AS cor0 ---- 12 25 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5788 SELECT + CAST( col1 AS SIGNED ) * col0 FROM tab2 AS cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-5788 SELECT + CAST ( col1 AS INTEGER ) * col0 FROM tab2 AS cor0 ---- 1343 217 4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + col1 + - col2 col0 FROM tab0 AS cor0 ---- 100 139 193 query I rowsort SELECT col1 - + col2 * + col2 * - col2 FROM tab1 AS cor0 ---- 157490 185203 884749 onlyif mysql # use DIV operator for integer division query I rowsort label-5791 SELECT - - col0 + - col1 DIV col0 AS col0 FROM tab2 cor0 ---- 3 78 79 skipif mysql # not compatible query I rowsort label-5791 SELECT - - col0 + - col1 / col0 AS col0 FROM tab2 cor0 ---- 3 78 79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 25 + - col2 * col0 * 8 col1 FROM tab1 ---- -1271 -29159 -61415 query I rowsort SELECT ALL + cor0.col0 * - 59 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to a47085dafbcf8d5419de0228741dd28d query I rowsort SELECT + col1 + + 61 FROM tab2 AS cor0 ---- 120 78 92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5795 SELECT col2 * CAST( 40 + - col2 * col1 AS SIGNED ) AS col1 FROM tab0 ---- -57 -608604 -92334 skipif mysql # not compatible query I rowsort label-5795 SELECT col2 * CAST ( 40 + - col2 * col1 AS INTEGER ) AS col1 FROM tab0 ---- -57 -608604 -92334 onlyif mysql # use DIV operator for integer division query I rowsort label-5796 SELECT + col1 * col2 DIV + ( + tab1.col2 ) AS col1 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-5796 SELECT + col1 * col2 / + ( + tab1.col2 ) AS col1 FROM tab1 ---- 10 13 26 query I rowsort SELECT DISTINCT + - col1 * + 32 + + col1 AS col2 FROM tab2 AS cor0 ---- -1829 -527 -961 query I rowsort SELECT 7 + - ( + col1 + + 13 ) * - col0 AS col2 FROM tab1 AS cor0 ---- 124 1479 2087 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 - 9 col2 FROM tab0 ---- -33 -44 -98 onlyif mysql # use DIV operator for integer division query I rowsort label-5800 SELECT + col2 DIV + 30 FROM tab0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-5800 SELECT + col2 / + 30 FROM tab0 ---- 0 1 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 - 24 * - col1 col1 FROM tab2 ---- 1475 425 775 query I rowsort SELECT ALL + col1 + - col2 * + col1 FROM tab0 AS cor0 ---- -2752 -7371 0 query I rowsort SELECT ALL + + col1 + + cor0.col0 * ( col2 ) * col0 + - ( + 18 ) * col0 FROM tab1 AS cor0 ---- 232330 458 612973 query I rowsort SELECT DISTINCT - - col0 * col2 + + col0 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT DISTINCT - + col2 * col1 + - col1 + + col0 * - cor0.col2 FROM tab0 AS cor0 ---- -14851 -229 -3716 query I rowsort SELECT ALL + - 49 * col1 * 77 + col2 FROM tab0 AS cor0 ---- -324445 -343261 -365980 query I rowsort SELECT DISTINCT col1 - - col1 * cor0.col1 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT DISTINCT + col0 - - cor0.col0 * 68 FROM tab0 AS cor0 ---- 1656 2415 6141 query I rowsort SELECT - 48 * col1 + col1 AS col0 FROM tab0 ---- -4042 -4277 -4559 query I rowsort SELECT 53 - - tab0.col0 AS col0 FROM tab0 ---- 142 77 88 query I rowsort SELECT DISTINCT - ( + col2 * + tab2.col0 ) AS col2 FROM tab2 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-5812 SELECT DISTINCT col1 DIV + cor0.col1 + + 68 col1 FROM tab2 AS cor0 ---- 69 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5812 SELECT DISTINCT col1 / + cor0.col1 + + 68 col1 FROM tab2 AS cor0 ---- 69 query I rowsort SELECT ALL + - col0 + ( 71 ) FROM tab1 AS cor0 ---- -9 68 7 onlyif mysql # use DIV operator for integer division query I rowsort label-5814 SELECT col1 * - col0 + 60 DIV col0 - - col2 AS col1 FROM tab0 AS cor0 ---- -2029 -3393 -8017 skipif mysql # not compatible query I rowsort label-5814 SELECT col1 * - col0 + 60 / col0 - - col2 AS col1 FROM tab0 AS cor0 ---- -2029 -3393 -8017 query I rowsort SELECT - tab1.col2 * tab1.col0 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 91af1085835c3ef572d2dbd91480f658 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5816 SELECT CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-5816 SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT + cor0.col0 + 10 AS col0 FROM tab2 AS cor0 ---- 17 88 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5818 SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col1 + + cor0.col0 * 82 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-5818 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col1 + + cor0.col0 * 82 AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL + col1 * + 95 FROM tab1 ---- 1235 2470 950 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5820 SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab1, tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5820 SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab1, tab2 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 28 col0 FROM tab0 AS cor0 ---- 28 28 28 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5822 SELECT ALL + - CAST( + ( + col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-5822 SELECT ALL + - CAST ( + ( + col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT ALL + - col0 - + col1 * + col2 FROM tab2 AS cor0 ---- -1612 -725 -844 query I rowsort SELECT col2 + cor0.col1 * - col2 FROM tab0 cor0 ---- -2805 -7380 -96 query I rowsort SELECT ALL + col2 * col1 * - col2 FROM tab2 cor0 ---- -22599 -24548 -39884 query I rowsort SELECT DISTINCT col2 + 99 FROM tab0 AS cor0 ---- 100 132 181 query I rowsort SELECT DISTINCT col1 + - ( - tab2.col0 ) + col2 AS col1 FROM tab2 ---- 134 163 65 query I rowsort SELECT ALL col2 + - col0 * ( col0 ) AS col1 FROM tab0 ---- -1224 -543 -7839 query I rowsort SELECT ALL ( - col1 ) * col0 * + col0 FROM tab1 AS cor0 ---- -234 -40960 -83200 query I rowsort SELECT DISTINCT 47 AS col1 FROM tab0 AS cor0 ---- 47 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 + + ( col1 ) * + col0 col0 FROM tab2 AS cor0 ---- 1360 248 4661 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5832 SELECT + - CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5832 SELECT + - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-5833 SELECT + col2 DIV 29 + - col0 DIV 95 AS col0 FROM tab0 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-5833 SELECT + col2 / 29 + - col0 / 95 AS col0 FROM tab0 AS cor0 ---- 0 1 2 query I rowsort SELECT - ( + 33 ) AS col1 FROM tab2 AS cor0 ---- -33 -33 -33 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col2 ) * + col2 + 96 * - col0 col0 FROM tab1 ---- -2895 1536 2628 onlyif mysql # use DIV operator for integer division query I rowsort label-5836 SELECT cor0.col2 DIV col0 + col0 FROM tab1 AS cor0 ---- 21 64 81 skipif mysql # not compatible query I rowsort label-5836 SELECT cor0.col2 / col0 + col0 FROM tab1 AS cor0 ---- 21 64 81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5837 SELECT ALL CAST( - col2 AS SIGNED ) * col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 skipif mysql # not compatible query I rowsort label-5837 SELECT ALL CAST ( - col2 AS INTEGER ) * col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-5838 SELECT ALL - CAST( - 3 AS SIGNED ) DIV col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5838 SELECT ALL - CAST ( - 3 AS INTEGER ) / col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5839 SELECT tab1.col0 + - col0 DIV - col1 FROM tab1 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-5839 SELECT tab1.col0 + - col0 / - col1 FROM tab1 ---- 3 70 86 onlyif mysql # use DIV operator for integer division query I rowsort label-5840 SELECT DISTINCT - 41 - col2 DIV 22 FROM tab1 AS cor0 ---- -43 -45 skipif mysql # not compatible query I rowsort label-5840 SELECT DISTINCT - 41 - col2 / 22 FROM tab1 AS cor0 ---- -43 -45 query I rowsort SELECT + - cor0.col0 * cor0.col2 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT DISTINCT + - col0 * col1 + ( col0 ) FROM tab2 AS cor0 ---- -1264 -210 -4524 query I rowsort SELECT ALL col0 + + col1 * + 57 AS col2 FROM tab1 AS cor0 ---- 1485 634 821 onlyif mysql # use DIV operator for integer division query I rowsort label-5844 SELECT DISTINCT - - 67 DIV - col1 FROM tab1 AS cor0 ---- -2 -5 -6 skipif mysql # not compatible query I rowsort label-5844 SELECT DISTINCT - - 67 / - col1 FROM tab1 AS cor0 ---- -2 -5 -6 query I rowsort SELECT 73 + cor0.col0 AS col1 FROM tab2 cor0 ---- 151 152 80 query I rowsort SELECT - col2 + - col1 * 24 AS col1 FROM tab0 AS cor0 ---- -2097 -2266 -2329 query I rowsort SELECT DISTINCT + col0 + - 4 * + col2 + + col2 * col0 AS col1 FROM tab2 ---- 2002 2929 88 query I rowsort SELECT col2 * + col1 + + col1 + - col1 FROM tab2 ---- 1534 646 837 onlyif mysql # use DIV operator for integer division query I rowsort label-5849 SELECT col1 DIV - col1 + - col0 FROM tab1 AS cor0 ---- -4 -65 -81 skipif mysql # not compatible query I rowsort label-5849 SELECT col1 / - col1 + - col0 FROM tab1 AS cor0 ---- -4 -65 -81 query I rowsort SELECT DISTINCT + - col2 + 87 * - col1 FROM tab2 AS cor0 ---- -1517 -2724 -5159 query I rowsort SELECT + col0 - + col0 AS col2 FROM tab0 AS cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col0 + - 74 col1 FROM tab1 cor0 ---- -10 -71 6 query I rowsort SELECT DISTINCT + - col0 * col0 + 3 FROM tab2 AS cor0 ---- -46 -6081 -6238 query I rowsort SELECT DISTINCT - col2 + - col1 * + col1 FROM tab0 AS cor0 ---- -7429 -8363 -9410 onlyif mysql # use DIV operator for integer division query I rowsort label-5855 SELECT - col1 * col1 + col1 DIV - col2 AS col2 FROM tab0 AS cor0 ---- -7398 -8282 -9506 skipif mysql # not compatible query I rowsort label-5855 SELECT - col1 * col1 + col1 / - col2 AS col2 FROM tab0 AS cor0 ---- -7398 -8282 -9506 query I rowsort SELECT DISTINCT - + col2 + + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT col2 * cor0.col2 - - col1 FROM tab0 cor0 ---- 1175 6815 98 query I rowsort SELECT DISTINCT - - col2 + - col0 * - col2 FROM tab2 AS cor0 ---- 2054 216 3040 query I rowsort SELECT ALL - col1 + + col2 * - col2 AS col0 FROM tab1 AS cor0 ---- -2942 -3259 -9229 query I rowsort SELECT 50 + - 99 FROM tab1 AS cor0 ---- -49 -49 -49 query I rowsort SELECT - ( - col0 ) + - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -2 -62 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-5862 SELECT CAST( ( col1 ) AS SIGNED ) + col2 DIV col2 FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-5862 SELECT CAST ( ( col1 ) AS INTEGER ) + col2 / col2 FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT - col2 + 55 - + col1 FROM tab0 ---- -118 -43 -64 onlyif mysql # use DIV operator for integer division query I rowsort label-5864 SELECT + col0 DIV 12 AS col1 FROM tab1 ---- 0 5 6 skipif mysql # not compatible query I rowsort label-5864 SELECT + col0 / 12 AS col1 FROM tab1 ---- 0 5 6 onlyif mysql # use DIV operator for integer division query I rowsort label-5865 SELECT + col0 + 72 * cor0.col0 DIV col2 FROM tab1 AS cor0 ---- 140 144 7 skipif mysql # not compatible query I rowsort label-5865 SELECT + col0 + 72 * cor0.col0 / col2 FROM tab1 AS cor0 ---- 140 144 7 query I rowsort SELECT + - cor0.col0 + col0 * 18 AS col1 FROM tab2 AS cor0 ---- 119 1326 1343 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5867 SELECT + col0 + - CAST( NULL AS DECIMAL ) * + col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5867 SELECT + col0 + - CAST ( NULL AS REAL ) * + col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL col1 * - col0 * - col0 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT + 30 AS col1 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to 6c98840ed134c765d56389f4150075f0 query I rowsort SELECT DISTINCT - tab1.col2 * col1 AS col0 FROM tab1 ---- -1248 -1404 -570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5871 SELECT + col2 * + CAST( - col2 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0 ---- -1122 -2 -6806 skipif mysql # not compatible query I rowsort label-5871 SELECT + col2 * + CAST ( - col2 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0 ---- -1122 -2 -6806 query I rowsort SELECT ALL + col0 * col2 + - col1 FROM tab1 ---- 136 3638 7667 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - cor0.col2 + 4 col2 FROM tab2 AS cor0 ---- -22 -23 -34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 2 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to ec11209ab257030053484fc13a1f6d17 query I rowsort SELECT - ( 14 ) * + col2 + - 77 FROM tab2 ---- -441 -455 -609 query I rowsort SELECT DISTINCT - 19 * + tab0.col0 + - col0 * + col2 * col2 FROM tab0 ---- -26592 -600127 -700 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( - 94 ) * + col1 + col1 col2 FROM tab0 ---- 8170 8645 9215 query I rowsort SELECT ALL - 70 * tab1.col2 FROM tab1 ---- -3780 -3990 -6720 onlyif mysql # use DIV operator for integer division query I rowsort label-5880 SELECT - col1 DIV 21 AS col0 FROM tab2 AS cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-5880 SELECT - col1 / 21 AS col0 FROM tab2 AS cor0 ---- -1 -2 0 query I rowsort SELECT 76 * col1 FROM tab2 ---- 1292 2356 4484 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 - col1 col1 FROM tab2 cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT - - 55 - col1 FROM tab0 AS cor0 ---- -31 -36 -42 query I rowsort SELECT - tab1.col1 * - tab1.col1 AS col1 FROM tab1 ---- 100 169 676 query I rowsort SELECT DISTINCT + 98 AS col0 FROM tab1 ---- 98 onlyif mysql # use DIV operator for integer division query I rowsort label-5886 SELECT + - col1 DIV + col0 + col2 FROM tab1 AS cor0 ---- 46 57 96 skipif mysql # not compatible query I rowsort label-5886 SELECT + - col1 / + col0 + col2 FROM tab1 AS cor0 ---- 46 57 96 query I rowsort SELECT DISTINCT - col1 * - cor0.col2 - - col1 FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT ALL - col1 * - col0 * + col2 AS col0 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT - + 71 + - col0 + + ( col2 ) FROM tab1 AS cor0 ---- -20 -55 -78 onlyif mysql # use DIV operator for integer division query I rowsort label-5890 SELECT + col0 * + col0 - - 52 DIV - col1 FROM tab0 AS cor0 ---- 1225 576 7921 skipif mysql # not compatible query I rowsort label-5890 SELECT + col0 * + col0 - - 52 / - col1 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT + + col2 * col0 + - col1 * col2 + col2 * + col1 FROM tab2 AS cor0 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-5892 SELECT + - col1 DIV col1 + col1 * - col2 * CAST( + col1 AS SIGNED ) col2 FROM tab1 AS cor0 ---- -16225 -36505 -5701 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5892 SELECT + - col1 / col1 + col1 * - col2 * CAST ( + col1 AS INTEGER ) col2 FROM tab1 AS cor0 ---- -16225 -36505 -5701 query I rowsort SELECT col2 + + ( + col1 ) FROM tab1 AS cor0 ---- 109 67 80 query I rowsort SELECT DISTINCT ( - 84 ) FROM tab2, tab0 AS cor0 ---- -84 query I rowsort SELECT DISTINCT - col2 * - ( - col1 ) FROM tab1 AS cor0 ---- -1248 -1404 -570 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5896 SELECT DISTINCT col2 * + CAST( col1 + - col1 AS SIGNED ) FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-5896 SELECT DISTINCT col2 * + CAST ( col1 + - col1 AS INTEGER ) FROM tab2 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5897 SELECT col1 DIV - 52 AS col0 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-5897 SELECT col1 / - 52 AS col0 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT 14 AS col1 FROM tab0 cor0 ---- 14 14 14 query I rowsort SELECT ALL + col0 - + 45 FROM tab1 AS cor0 ---- -42 19 35 query I rowsort SELECT - col2 + - 54 AS col2 FROM tab0 AS cor0 ---- -136 -55 -87 onlyif mysql # use DIV operator for integer division query I rowsort label-5901 SELECT - 81 DIV - cor0.col0 FROM tab2 AS cor0 ---- 1 1 11 skipif mysql # not compatible query I rowsort label-5901 SELECT - 81 / - cor0.col0 FROM tab2 AS cor0 ---- 1 1 11 query I rowsort SELECT ALL + col2 + - col2 * - 58 FROM tab1 AS cor0 ---- 3186 3363 5664 query I rowsort SELECT - 5 * cor0.col0 AS col2 FROM tab0, tab2 cor0 ---- 9 values hashing to 99739a943df8f41edddb2227d2e0ae79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5904 SELECT - col2 + - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5904 SELECT - col2 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL ( - 92 * col1 ) FROM tab1 ---- -1196 -2392 -920 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 80 col0 FROM tab1 ---- 80 80 80 query I rowsort SELECT - + 38 FROM tab2, tab0, tab2 AS cor0, tab1 ---- 81 values hashing to dc3731b6ce8b1f8ecf6042af8e1c4df1 query I rowsort SELECT + tab0.col0 + tab0.col0 AS col1 FROM tab0 ---- 178 48 70 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5909 SELECT + col1 * CAST( - col1 AS SIGNED ) * - cor0.col2 FROM tab0 AS cor0 ---- 244068 679042 9409 skipif mysql # not compatible query I rowsort label-5909 SELECT + col1 * CAST ( - col1 AS INTEGER ) * - cor0.col2 FROM tab0 AS cor0 ---- 244068 679042 9409 query I rowsort SELECT + - col2 + + col2 * 29 AS col1 FROM tab1 AS cor0 ---- 1512 1596 2688 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5911 SELECT + col2 * CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5911 SELECT + col2 * CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + col1 * col2 + 8 FROM tab1 cor0 ---- 1256 1412 578 query I rowsort SELECT DISTINCT + - ( col2 ) + col1 + - col2 * - col2 * - col1 AS col1 FROM tab0 AS cor0 ---- -1 -611875 -93601 query I rowsort SELECT DISTINCT - ( cor0.col2 ) AS col0 FROM tab1, tab1 AS cor0 ---- -54 -57 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * col1 + - col1 * + col1 * - col0 col2 FROM tab0 AS cor0 ---- 184900 338724 745290 query I rowsort SELECT DISTINCT - col1 + + 24 AS col1 FROM tab2 AS cor0 ---- -35 -7 7 query I rowsort SELECT + 36 * col1 * - col1 AS col0 FROM tab0 AS cor0 ---- -266256 -298116 -338724 query I rowsort SELECT ALL - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 onlyif mysql # use DIV operator for integer division query I rowsort label-5919 SELECT DISTINCT - ( col0 ) DIV + col1 FROM tab1 cor0 ---- -6 0 skipif mysql # not compatible query I rowsort label-5919 SELECT DISTINCT - ( col0 ) / + col1 FROM tab1 cor0 ---- -6 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5920 SELECT ALL - col0 DIV - col2 FROM tab1 cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-5920 SELECT ALL - col0 / - col2 FROM tab1 cor0 ---- 0 0 1 query I rowsort SELECT + ( col2 ) * col2 + cor0.col0 - col2 FROM tab2 AS cor0 ---- 1485 709 728 query I rowsort SELECT DISTINCT - 35 * tab2.col0 * + 63 + + col0 AS col2 FROM tab2 ---- -15428 -171912 -174116 onlyif mysql # use DIV operator for integer division query I rowsort label-5923 SELECT ALL 29 DIV - col0 + col2 AS col2 FROM tab2 ---- 23 26 38 skipif mysql # not compatible query I rowsort label-5923 SELECT ALL 29 / - col0 + col2 AS col2 FROM tab2 ---- 23 26 38 query I rowsort SELECT DISTINCT - 79 * - cor0.col0 FROM tab2 AS cor0 ---- 553 6162 6241 query I rowsort SELECT DISTINCT + 76 + col1 AS col2 FROM tab1 cor0 ---- 102 86 89 query I rowsort SELECT + cor0.col2 * + 48 + - cor0.col2 FROM tab0 AS cor0 ---- 1551 3854 47 query I rowsort SELECT ALL + col1 * - cor0.col1 AS col0 FROM tab2 cor0 ---- -289 -3481 -961 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 59 col0 FROM tab2, tab1, tab2 AS cor0 ---- -59 query I rowsort SELECT DISTINCT + col2 * col2 + col2 * + col2 AS col1 FROM tab2 AS cor0 ---- 1352 1458 2888 query I rowsort SELECT ALL col0 + - cor0.col0 * + col0 AS col1 FROM tab2 AS cor0 ---- -42 -6006 -6162 query I rowsort SELECT - col0 + + col1 * - ( + cor0.col2 ) * col2 FROM tab1 AS cor0 ---- -119888 -32554 -75819 query I rowsort SELECT ALL col0 + + 63 FROM tab1 AS cor0 ---- 127 143 66 query I rowsort SELECT - col2 * col2 + 79 FROM tab1 AS cor0 ---- -2837 -3170 -9137 onlyif mysql # use DIV operator for integer division query I rowsort label-5934 SELECT DISTINCT - col0 DIV - 73 + + col1 AS col2 FROM tab2 AS cor0 ---- 18 31 60 skipif mysql # not compatible query I rowsort label-5934 SELECT DISTINCT - col0 / - 73 + + col1 AS col2 FROM tab2 AS cor0 ---- 18 31 60 query I rowsort SELECT 23 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 546d49aa433406dd83ea19885588e658 onlyif mysql # use DIV operator for integer division query I rowsort label-5936 SELECT ALL col0 DIV col2 + + col1 FROM tab0 ---- 132 86 92 skipif mysql # not compatible query I rowsort label-5936 SELECT ALL col0 / col2 + + col1 FROM tab0 ---- 132 86 92 query I rowsort SELECT ALL 66 + - col1 FROM tab1 ---- 40 53 56 query I rowsort SELECT DISTINCT - 22 + col2 * - 67 FROM tab2 ---- -1764 -1831 -2568 query I rowsort SELECT ALL - tab2.col1 * col1 + - col2 + col2 FROM tab2 ---- -289 -3481 -961 query I rowsort SELECT ALL - col1 + tab2.col1 + 45 * - 75 FROM tab2 ---- -3375 -3375 -3375 query I rowsort SELECT + col0 * - col0 - - col1 AS col2 FROM tab2 AS cor0 ---- -18 -6025 -6224 query I rowsort SELECT col2 + col1 * col0 + + col0 FROM tab1 ---- 1216 135 761 query I rowsort SELECT + col0 * + tab1.col0 + + tab1.col1 AS col2 FROM tab1 ---- 35 4106 6413 query I rowsort SELECT col2 * - col1 * - tab2.col1 + - col2 * - col0 FROM tab2 ---- 13984 26136 92534 query I rowsort SELECT tab0.col1 * + col0 * + col1 AS col2 FROM tab0 ---- 177504 329315 737009 query I rowsort SELECT tab1.col1 * - col0 + col2 AS col2 FROM tab1 ---- -24 -583 -944 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * cor0.col1 col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT col1 + - col0 * col1 FROM tab1 AS cor0 ---- -1027 -52 -630 query I rowsort SELECT ( tab0.col1 ) + + col1 * col0 * - col2 AS col0 FROM tab0 ---- -3298 -664027 -68026 onlyif mysql # use DIV operator for integer division query I rowsort label-5950 SELECT + col2 + col2 DIV col0 AS col2 FROM tab0 ---- 1 34 82 skipif mysql # not compatible query I rowsort label-5950 SELECT + col2 + col2 / col0 AS col2 FROM tab0 ---- 1 34 82 query I rowsort SELECT DISTINCT ( + 36 ) AS col1 FROM tab2 ---- 36 query I rowsort SELECT 18 * - ( + col2 ) - - col0 AS col0 FROM tab1 ---- -1648 -962 -969 query I rowsort SELECT + 43 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 199105619049271147956de52e7f5ed4 query I rowsort SELECT ALL ( + col1 ) * col2 * col0 AS col2 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT ALL - - col0 * col2 - col0 * + cor0.col1 FROM tab1 AS cor0 ---- 3008 6640 84 query I rowsort SELECT col0 * + col2 + + col2 * col0 * col0 FROM tab0 AS cor0 ---- 1260 19800 656820 query I rowsort SELECT - 97 - - col2 FROM tab0 AS cor0 ---- -15 -64 -96 query I rowsort SELECT DISTINCT - tab0.col0 + + col1 * - col2 FROM tab0 ---- -132 -2862 -7551 query I rowsort SELECT DISTINCT ( col0 ) + col1 AS col0 FROM tab2 ---- 137 38 96 query I rowsort SELECT col0 * + col1 * col0 AS col2 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT - + cor0.col1 + - col1 * + col2 AS col2 FROM tab2 AS cor0 ---- -1593 -663 -868 query I rowsort SELECT + cor0.col0 * - col2 * - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT DISTINCT + col1 + col1 * + col2 AS col0 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT - + col1 - - col1 * - col2 FROM tab2 AS cor0 ---- -1593 -663 -868 query I rowsort SELECT DISTINCT 93 + + col2 AS col0 FROM tab1 AS cor0 ---- 147 150 189 onlyif mysql # use DIV operator for integer division query I rowsort label-5966 SELECT ALL col2 DIV col0 - - col1 AS col0 FROM tab1 AS cor0 ---- 10 14 44 skipif mysql # not compatible query I rowsort label-5966 SELECT ALL col2 / col0 - - col1 AS col0 FROM tab1 AS cor0 ---- 10 14 44 query I rowsort SELECT + - 95 + + col0 AS col0 FROM tab0 AS cor0 ---- -6 -60 -71 query I rowsort SELECT ALL - - cor0.col1 * col1 + cor0.col1 FROM tab0 AS cor0 ---- 7482 8372 9506 query I rowsort SELECT + 10 * + col0 * + cor0.col2 FROM tab1 AS cor0 ---- 1620 36480 76800 query I rowsort SELECT ALL - col0 * - col1 - cor0.col2 AS col1 FROM tab0 AS cor0 ---- 2031 3394 8017 query I rowsort SELECT ( 41 ) + col1 * 21 + - col1 * - col0 FROM tab2 ---- 1741 5882 909 query I rowsort SELECT ALL - 51 FROM tab1, tab2 cor0 ---- 9 values hashing to 08d3853e39924d3c636260a6dd856837 onlyif mysql # use DIV operator for integer division query I rowsort label-5973 SELECT DISTINCT col0 DIV - 36 col0 FROM tab1 ---- -1 -2 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5973 SELECT DISTINCT col0 / - 36 col0 FROM tab1 ---- -1 -2 0 onlyif mysql # use DIV operator for integer division query I rowsort label-5974 SELECT + 2 DIV - col0 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-5974 SELECT + 2 / - col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT + tab2.col0 * tab2.col2 AS col0 FROM tab2 ---- 189 2028 3002 onlyif mysql # use DIV operator for integer division query I rowsort label-5976 SELECT - col2 DIV - 6 AS col2 FROM tab0 ---- 0 13 5 skipif mysql # not compatible query I rowsort label-5976 SELECT - col2 / - 6 AS col2 FROM tab0 ---- 0 13 5 onlyif mysql # use DIV operator for integer division query I rowsort label-5977 SELECT ( + 42 ) - - col2 DIV - col2 AS col2 FROM tab0 AS cor0 ---- 41 41 41 skipif mysql # not compatible query I rowsort label-5977 SELECT ( + 42 ) - - col2 / - col2 AS col2 FROM tab0 AS cor0 ---- 41 41 41 query I rowsort SELECT + - cor0.col1 * - cor0.col1 AS col1 FROM tab0, tab1 cor0 ---- 9 values hashing to ae5946db6904798b8afac35f5777bb79 query I rowsort SELECT + col2 * + 79 + col1 - + col0 AS col2 FROM tab1 AS cor0 ---- 4289 4449 7517 query I rowsort SELECT - - 39 * ( col2 ) FROM tab0 AS cor0 ---- 1287 3198 39 query I rowsort SELECT + + 42 + - col0 FROM tab0 AS cor0 ---- -47 18 7 query I rowsort SELECT ALL + 34 AS col0 FROM tab0 cor0 ---- 34 34 34 onlyif mysql # use DIV operator for integer division query I rowsort label-5983 SELECT - 53 DIV col0 + + col2 DIV - ( col0 ) FROM tab0 AS cor0 ---- -1 -3 0 skipif mysql # not compatible query I rowsort label-5983 SELECT - 53 / col0 + + col2 / - ( col0 ) FROM tab0 AS cor0 ---- -1 -3 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5984 SELECT DISTINCT - CAST( 69 AS SIGNED ) * col2 AS col1 FROM tab1 ---- -3726 -3933 -6624 skipif mysql # not compatible query I rowsort label-5984 SELECT DISTINCT - CAST ( 69 AS INTEGER ) * col2 AS col1 FROM tab1 ---- -3726 -3933 -6624 query I rowsort SELECT 3 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 3cf1e377a943589897b8d431a834f1ba query I rowsort SELECT ALL ( + col2 ) * + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT + + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5988 SELECT ( - col2 * CAST( col0 AS SIGNED ) ) FROM tab1 ---- -162 -3648 -7680 skipif mysql # not compatible query I rowsort label-5988 SELECT ( - col2 * CAST ( col0 AS INTEGER ) ) FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT - tab1.col0 * ( - cor0.col2 ) + + tab1.col2 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 3a5e6c1131683162005a0e8bb95fc6d9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5990 SELECT + col2 * + tab0.col0 / CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-5990 SELECT + col2 * + tab0.col0 / CAST ( NULL AS REAL ) + col0 AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT - col0 * ( cor0.col0 ) + - col0 AS col2 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT col0 + - ( col0 ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT cor0.col0 + 91 AS col2 FROM tab2, tab1 AS cor0 ---- 155 171 94 query I rowsort SELECT - col2 * 94 FROM tab1 ---- -5076 -5358 -9024 query I rowsort SELECT ALL - + cor0.col0 + + col0 AS col1 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-5996 SELECT DISTINCT - + col0 + - CAST( NULL AS SIGNED ) * + ( col1 ) col1 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-5996 SELECT DISTINCT - + col0 + - CAST ( NULL AS INTEGER ) * + ( col1 ) col1 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + 11 * - col2 + - col2 * col0 col2 FROM tab2 AS cor0 ---- -2236 -3341 -479 query I rowsort SELECT DISTINCT + 33 + - col1 AS col2 FROM tab1 cor0 ---- 20 23 7 query I rowsort SELECT ALL - 32 + + 6 FROM tab1 AS cor0 ---- -26 -26 -26 query I rowsort SELECT DISTINCT - col2 + + col1 * col2 FROM tab0 AS cor0 ---- 2805 7380 96 onlyif mysql # use DIV operator for integer division query I rowsort label-6001 SELECT ALL + col2 + + col1 DIV col2 FROM tab0 AS cor0 ---- 35 83 98 skipif mysql # not compatible query I rowsort label-6001 SELECT ALL + col2 + + col1 / col2 FROM tab0 AS cor0 ---- 35 83 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 36 * + col1 col2 FROM tab1 AS cor0 ---- -360 -468 -936 query I rowsort SELECT DISTINCT + - col0 * - cor0.col0 * - col2 - - ( + col2 + + col2 ) FROM tab1 AS cor0 ---- -233358 -378 -614208 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 86 * - col2 col0 FROM tab0 AS cor0 ---- -2838 -7052 -86 query I rowsort SELECT ALL - ( - col0 ) + col1 * - col2 - - ( col2 ) FROM tab2 AS cor0 ---- -1430 -529 -803 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - ( col2 ) col0 FROM tab2 AS cor0 ---- -26 -27 -38 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6007 SELECT DISTINCT - - CAST( - col0 AS SIGNED ) + + col1 * 3 FROM tab0 AS cor0 ---- 184 234 256 skipif mysql # not compatible query I rowsort label-6007 SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) + + col1 * 3 FROM tab0 AS cor0 ---- 184 234 256 query I rowsort SELECT - cor0.col1 * 47 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to a4d6f6d2c8f299ba09437cb908e3bff3 query I rowsort SELECT ALL + ( - col1 ) - - col1 AS col2 FROM tab1 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6010 SELECT CAST( NULL AS SIGNED ) * 11 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6010 SELECT CAST ( NULL AS INTEGER ) * 11 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT tab0.col1 + + 7 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 4783baa6da1fee30680b9c489c91bcaf skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 32 * col2 col0 FROM tab1 ---- -1728 -1824 -3072 onlyif mysql # use DIV operator for integer division query I rowsort label-6013 SELECT DISTINCT - col0 DIV - tab1.col2 + - tab1.col2 DIV col1 FROM tab1 ---- -2 -4 -7 skipif mysql # not compatible query I rowsort label-6013 SELECT DISTINCT - col0 / - tab1.col2 + - tab1.col2 / col1 FROM tab1 ---- -2 -4 -7 query I rowsort SELECT + - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 7b5938124253798426fbf09c18e1fd75 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6015 SELECT ( - col0 * CAST( col1 AS SIGNED ) ) + + tab1.col1 * - col0 FROM tab1 ---- -1280 -156 -2080 skipif mysql # not compatible query I rowsort label-6015 SELECT ( - col0 * CAST ( col1 AS INTEGER ) ) + + tab1.col1 * - col0 FROM tab1 ---- -1280 -156 -2080 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col2 - col2 col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT col1 + + 93 * col0 AS col0 FROM tab0 ---- 2318 3352 8368 onlyif mysql # use DIV operator for integer division query I rowsort label-6018 SELECT ALL + - col2 DIV - 47 + + 15 FROM tab1 AS cor0 ---- 16 16 17 skipif mysql # not compatible query I rowsort label-6018 SELECT ALL + - col2 / - 47 + + 15 FROM tab1 AS cor0 ---- 16 16 17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 * col1 col0 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT + cor0.col2 + - cor0.col1 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT DISTINCT - cor0.col1 - cor0.col1 FROM tab2, tab1 AS cor0 ---- -20 -26 -52 query I rowsort SELECT ALL + col2 - col0 AS col1 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT DISTINCT 57 * col0 * ( tab1.col1 ) + tab1.col0 AS col0 FROM tab1 ---- 36544 4449 59360 query I rowsort SELECT ALL + ( col2 ) * + col2 + col0 FROM tab2 ---- 1523 736 754 query I rowsort SELECT 77 * cor0.col0 + 64 + + col0 FROM tab0 AS cor0 ---- 1936 2794 7006 query I rowsort SELECT + col1 + - col1 - col1 AS col1 FROM tab1 ---- -10 -13 -26 query I rowsort SELECT col2 + col2 + tab0.col2 FROM tab0 ---- 246 3 99 query I rowsort SELECT DISTINCT - 85 AS col1 FROM tab2, tab0 AS cor0 ---- -85 onlyif mysql # use DIV operator for integer division query I rowsort label-6029 SELECT col1 + + tab0.col1 DIV col2 FROM tab0 ---- 194 88 92 skipif mysql # not compatible query I rowsort label-6029 SELECT col1 + + tab0.col1 / col2 FROM tab0 ---- 194 88 92 query I rowsort SELECT ALL + - col2 + cor0.col1 * col2 AS col2 FROM tab2 AS cor0 ---- 1508 608 810 onlyif mysql # use DIV operator for integer division query I rowsort label-6031 SELECT ALL - col2 DIV col2 + + col2 FROM tab0 AS cor0 ---- 0 32 81 skipif mysql # not compatible query I rowsort label-6031 SELECT ALL - col2 / col2 + + col2 FROM tab0 AS cor0 ---- 0 32 81 query I rowsort SELECT cor0.col2 + col2 * + cor0.col2 * + cor0.col0 FROM tab2 AS cor0 ---- 114114 5130 52754 query I rowsort SELECT ALL + col2 * + cor0.col1 + + col2 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT ALL col2 * 70 + col0 FROM tab0 AS cor0 ---- 105 2334 5829 onlyif mysql # use DIV operator for integer division query I rowsort label-6035 SELECT ALL col1 + col0 DIV + col2 AS col2 FROM tab1 AS cor0 ---- 11 13 26 skipif mysql # not compatible query I rowsort label-6035 SELECT ALL col1 + col0 / + col2 AS col2 FROM tab1 AS cor0 ---- 11 13 26 query I rowsort SELECT DISTINCT - ( + col1 ) * col1 FROM tab2 AS cor0 ---- -289 -3481 -961 query I rowsort SELECT ( col1 ) + - col0 AS col0 FROM tab2 AS cor0 ---- -19 -62 24 query I rowsort SELECT ALL 88 * col2 FROM tab2 AS cor0 ---- 2288 2376 3344 query I rowsort SELECT + 92 * col0 - 62 AS col1 FROM tab2 AS cor0 ---- 582 7114 7206 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 * col2 * col1 col1 FROM tab2 cor0 ---- 22599 24548 39884 query I rowsort SELECT DISTINCT 73 FROM tab1 cor0 ---- 73 query I rowsort SELECT ALL + col1 * + cor0.col2 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT ALL - - ( col2 ) * + col0 * - col1 AS col0 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT - col2 * + col2 + + cor0.col1 * col0 AS col0 FROM tab2 AS cor0 ---- -101 -512 3926 query I rowsort SELECT col1 * tab2.col0 + col0 * 46 FROM tab2 ---- 4977 539 8190 query I rowsort SELECT tab2.col0 + + col0 - - col1 FROM tab2 ---- 175 215 45 query I rowsort SELECT col2 - + col2 * - tab2.col1 FROM tab2 ---- 1560 684 864 query I rowsort SELECT + col0 + - 61 AS col0 FROM tab1 ---- -58 19 3 query I rowsort SELECT DISTINCT tab2.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1 ---- 17 31 59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6050 SELECT - CAST( NULL AS SIGNED ) * 77 * col0 col2 FROM tab2 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6050 SELECT - CAST ( NULL AS INTEGER ) * 77 * col0 col2 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL + + 65 + cor0.col0 * 52 FROM tab2 AS cor0 ---- 4121 4173 429 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6052 SELECT CAST( tab1.col2 AS SIGNED ) FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 skipif mysql # not compatible query I rowsort label-6052 SELECT CAST ( tab1.col2 AS INTEGER ) FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT ALL - - cor0.col0 + + cor0.col1 + - col0 AS col1 FROM tab1 AS cor0 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6054 SELECT + col1 + - col1 * - CAST( + col2 + + cor0.col1 AS SIGNED ) FROM tab0 AS cor0 ---- 10320 15834 9603 skipif mysql # not compatible query I rowsort label-6054 SELECT + col1 + - col1 * - CAST ( + col2 + + cor0.col1 AS INTEGER ) FROM tab0 AS cor0 ---- 10320 15834 9603 query I rowsort SELECT DISTINCT + 71 * - col1 AS col1 FROM tab1 AS cor0 ---- -1846 -710 -923 query I rowsort SELECT col0 * - col2 + + 30 AS col1 FROM tab2 AS cor0 ---- -159 -1998 -2972 query I rowsort SELECT DISTINCT + - 1 + col0 AS col1 FROM tab1 cor0 ---- 2 63 79 query I rowsort SELECT ALL 70 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to c76157a7a7ec18de56823b2058b49f32 query I rowsort SELECT + col1 - + ( cor0.col0 ) * col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT + col1 * - col2 + - 4 AS col2 FROM tab2 AS cor0 ---- -1538 -650 -841 query I rowsort SELECT - - col0 + + col2 * - ( - col0 ) * col0 AS col2 FROM tab0 AS cor0 ---- 1260 19032 649611 query I rowsort SELECT + cor0.col2 + ( - cor0.col0 ) AS col0 FROM tab2 cor0 ---- -41 -52 20 query I rowsort SELECT col1 + - 19 FROM tab1 cor0 ---- -6 -9 7 query I rowsort SELECT DISTINCT - tab2.col0 * col0 + col2 FROM tab2 ---- -22 -6058 -6203 onlyif mysql # use DIV operator for integer division query I rowsort label-6065 SELECT tab2.col1 + + col0 DIV - 61 col0 FROM tab2 ---- 16 31 58 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6065 SELECT tab2.col1 + + col0 / - 61 col0 FROM tab2 ---- 16 31 58 onlyif mysql # use DIV operator for integer division query I rowsort label-6066 SELECT DISTINCT - col1 * col1 DIV + col0 + + col1 * - tab0.col1 + CAST( + 89 + col0 AS SIGNED ) FROM tab0 ---- -7591 -8196 -9553 skipif mysql # not compatible query I rowsort label-6066 SELECT DISTINCT - col1 * col1 / + col0 + + col1 * - tab0.col1 + CAST ( + 89 + col0 AS INTEGER ) FROM tab0 ---- -7591 -8196 -9553 query I rowsort SELECT - 37 + - col0 AS col0 FROM tab0 AS cor0 ---- -126 -61 -72 query I rowsort SELECT DISTINCT + col2 + col0 * + col2 AS col0 FROM tab0 cor0 ---- 36 7380 825 query I rowsort SELECT ALL - + 14 * 77 + - cor0.col1 FROM tab1 AS cor0 ---- -1088 -1091 -1104 query I rowsort SELECT ALL + 84 * col0 - + cor0.col1 AS col0 FROM tab1 cor0 ---- 226 5366 6707 query I rowsort SELECT + col1 + + 15 * col0 AS col2 FROM tab1 AS cor0 ---- 1213 71 970 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( col2 AS REAL ) AS col2 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6073 SELECT + + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6073 SELECT + + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 34 col2 FROM tab1 AS cor0 ---- 34 34 34 query I rowsort SELECT ALL - ( + col1 ) * - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT + col1 * col0 + col2 AS col1 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT ALL + 78 * + col1 AS col2 FROM tab0 AS cor0 ---- 6708 7098 7566 query I rowsort SELECT DISTINCT - col2 + - cor0.col1 * col1 AS col1 FROM tab1 cor0 ---- -157 -265 -730 query I rowsort SELECT DISTINCT + cor0.col0 - col0 * col1 AS col1 FROM tab1 AS cor0 ---- -576 -75 -960 skipif mysql # not compatible query I rowsort SELECT DISTINCT CAST ( col0 AS REAL ) * + col1 + cor0.col2 * + col0 FROM tab0 AS cor0 ---- 15397 2856 3430 query I rowsort SELECT ALL - + col0 - - 68 * + col1 FROM tab0 AS cor0 ---- 5824 6099 6561 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6082 SELECT DISTINCT CAST( NULL AS SIGNED ) / - ( - col1 ) - col0 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6082 SELECT DISTINCT CAST ( NULL AS INTEGER ) / - ( - col1 ) - col0 AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL - cor0.col0 * 4 AS col1 FROM tab2 AS cor0 ---- -28 -312 -316 query I rowsort SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT NULL >= col2 ---- query I rowsort SELECT ALL + col1 * - col0 + col1 + + col1 / + col0 FROM tab2 WHERE col0 = - col1 ---- query I rowsort SELECT tab1.col0 AS col0 FROM tab1 WHERE NULL >= NULL ---- query III rowsort SELECT * FROM tab1 WHERE NOT + col1 IN ( col2 + - col2 + - col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT ALL col0 + col0 + col1 * - col2 FROM tab2 ---- -1378 -488 -823 onlyif mysql # use DIV operator for integer division query I rowsort label-6089 SELECT DISTINCT + col1 * col1 DIV - col0 AS col0 FROM tab0 ---- -268 -308 -93 skipif mysql # not compatible query I rowsort label-6089 SELECT DISTINCT + col1 * col1 / - col0 AS col0 FROM tab0 ---- -268 -308 -93 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( - col0 + col0 ) ---- query I rowsort SELECT ALL - col0 * + col0 * col2 + - tab2.col1 + col0 * + tab2.col0 FROM tab2 ---- -1305 -152159 -230934 query I rowsort SELECT DISTINCT - col1 * + col1 + + col0 * + col1 + - col0 FROM tab1 ---- -601 476 791 onlyif mysql # use DIV operator for integer division query I rowsort label-6093 SELECT + col0 DIV col0 + col0 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-6093 SELECT + col0 / col0 + col0 FROM tab0 ---- 25 36 90 query III rowsort SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( col0 * col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6095 SELECT DISTINCT - col2 * tab1.col2 DIV - col0 + - col1 * col0 + col2 AS col1 FROM tab1 ---- -533 -829 948 skipif mysql # not compatible query I rowsort label-6095 SELECT DISTINCT - col2 * tab1.col2 / - col0 + - col1 * col0 + col2 AS col1 FROM tab1 ---- -533 -829 948 query I rowsort SELECT ALL - tab0.col2 * + tab0.col2 AS col0 FROM tab0 ---- -1 -1089 -6724 query I rowsort SELECT DISTINCT + col0 + col1 - - tab0.col0 AS col0 FROM tab0 ---- 134 167 269 query I rowsort SELECT + col1 * col2 * col1 AS col0 FROM tab1 ---- 16224 36504 5700 query I rowsort SELECT col2 * - tab2.col2 * + col2 AS col1 FROM tab2 ---- -17576 -19683 -54872 onlyif mysql # use DIV operator for integer division query I rowsort label-6100 SELECT - col1 DIV - col1 - col1 col1 FROM tab1 ---- -12 -25 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6100 SELECT - col1 / - col1 - col1 col1 FROM tab1 ---- -12 -25 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-6101 SELECT ALL + cor0.col2 * col1 DIV + col0 col1 FROM tab2 AS cor0 ---- 119 19 8 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6101 SELECT ALL + cor0.col2 * col1 / + col0 col1 FROM tab2 AS cor0 ---- 119 19 8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - cor0.col0 col1 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT col0 + + col2 * cor0.col1 + col1 * + col1 AS col2 FROM tab2 AS cor0 ---- 1014 1805 5093 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> col1 * + col2 + + col1 OR NOT NULL >= col1 ---- query III rowsort SELECT * FROM tab0 WHERE ( col2 ) NOT IN ( col0 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col1 / col0 + - col2 ) OR NULL < ( NULL ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6107 SELECT - col2 + + col1 + col0 DIV + col0 FROM tab1 AS cor0 ---- -27 -46 -82 skipif mysql # not compatible query I rowsort label-6107 SELECT - col2 + + col1 + col0 / + col0 FROM tab1 AS cor0 ---- -27 -46 -82 onlyif mysql # use DIV operator for integer division query I rowsort label-6108 SELECT - col2 * 39 DIV col1 FROM tab1 AS cor0 ---- -222 -288 -81 skipif mysql # not compatible query I rowsort label-6108 SELECT - col2 * 39 / col1 FROM tab1 AS cor0 ---- -222 -288 -81 query I rowsort SELECT DISTINCT + col0 * 70 * col0 FROM tab1 cor0 ---- 286720 448000 630 query I rowsort SELECT ALL - - col2 + 60 FROM tab2 AS cor0 ---- 86 87 98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 * 52 col0 FROM tab0 AS cor0 ---- 4472 4732 5044 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6112 SELECT DISTINCT + col1 + - CAST( + 62 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0 ---- 118 48 70 skipif mysql # not compatible query I rowsort label-6112 SELECT DISTINCT + col1 + - CAST ( + 62 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0 ---- 118 48 70 query I rowsort SELECT ALL - col0 * col2 + col2 AS col0 FROM tab1 cor0 ---- -108 -3591 -7584 query I rowsort SELECT DISTINCT + col0 + - 35 FROM tab1 AS cor0 ---- -32 29 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 72 col0 FROM tab2, tab0 AS cor0 ---- 72 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - cor0.col2 * - cor0.col2 col0 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT ALL + col1 * 38 + - col2 AS col1 FROM tab0 AS cor0 ---- 3235 3376 3685 query I rowsort SELECT - col1 * 99 FROM tab0 AS cor0 ---- -8514 -9009 -9603 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( - col1 ) ---- query III rowsort SELECT * FROM tab0 WHERE NOT - col1 <= NULL ---- query I rowsort SELECT ALL - 36 * col1 * + col0 FROM tab0 cor0 ---- -122220 -291564 -74304 query III rowsort SELECT * FROM tab0 WHERE NOT - col1 * - col0 > col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6124 SELECT tab1.col1 DIV tab1.col1 + - col1 FROM tab1 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-6124 SELECT tab1.col1 / tab1.col1 + - col1 FROM tab1 ---- -12 -25 -9 query I rowsort SELECT ALL + col1 * col1 * - col2 + col0 AS col0 FROM tab0 ---- -244044 -678953 -9374 onlyif mysql # use DIV operator for integer division query I rowsort label-6126 SELECT DISTINCT + col1 DIV col0 + col2 FROM tab2 ---- 26 31 38 skipif mysql # not compatible query I rowsort label-6126 SELECT DISTINCT + col1 / col0 + col2 FROM tab2 ---- 26 31 38 query III rowsort SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND col2 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-6128 SELECT ALL + tab2.col2 DIV - col0 + - col2 * - col2 FROM tab2 ---- 1444 676 726 skipif mysql # not compatible query I rowsort label-6128 SELECT ALL + tab2.col2 / - col0 + - col2 * - col2 FROM tab2 ---- 1444 676 726 query I rowsort SELECT DISTINCT - col1 * - col0 + col2 AS col2 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT ALL col1 * - col2 * - col0 + - tab2.col0 FROM tab2 ---- 119574 50955 5852 query I rowsort SELECT ALL + 85 + + 23 * - col2 AS col2 FROM tab2 cor0 ---- -513 -536 -789 query I rowsort SELECT DISTINCT - 87 - + col2 AS col2 FROM tab0 AS cor0 ---- -120 -169 -88 query I rowsort SELECT DISTINCT + + col1 * 70 FROM tab2 AS cor0 ---- 1190 2170 4130 query I rowsort SELECT + 43 + col1 - col1 AS col2 FROM tab2 AS cor0 ---- 43 43 43 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6135 SELECT DISTINCT CAST( - 14 AS SIGNED ) * col0 + - col1 AS col0 FROM tab2 AS cor0 ---- -1123 -1151 -129 skipif mysql # not compatible query I rowsort label-6135 SELECT DISTINCT CAST ( - 14 AS INTEGER ) * col0 + - col1 AS col0 FROM tab2 AS cor0 ---- -1123 -1151 -129 query I rowsort SELECT ALL + ( - 60 ) - - col1 * col1 FROM tab2 AS cor0 ---- 229 3421 901 query I rowsort SELECT - ( - ( col2 ) ) + col2 * - col0 FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT ALL - ( + col1 ) * col2 FROM tab0 AS cor0 ---- -2838 -7462 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-6139 SELECT DISTINCT + + cor0.col1 * 51 + - col0 DIV + ( cor0.col0 ) AS col1 FROM tab1 AS cor0 ---- 1325 509 662 skipif mysql # not compatible query I rowsort label-6139 SELECT DISTINCT + + cor0.col1 * 51 + - col0 / + ( cor0.col0 ) AS col1 FROM tab1 AS cor0 ---- 1325 509 662 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6140 SELECT - CAST( NULL AS SIGNED ) + ( + col2 ) * + col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6140 SELECT - CAST ( NULL AS INTEGER ) + ( + col2 ) * + col1 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 + - col0 * - ( + col1 * col1 ) FROM tab2 ---- 22869 271544 6754 query I rowsort SELECT ALL + - tab1.col0 * ( 3 ) FROM tab1, tab0, tab2 cor0 ---- 27 values hashing to 8853737f589aafd40c7f6d3b3f2f7bfb onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6143 SELECT CAST( NULL AS DECIMAL ) * 35 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6143 SELECT CAST ( NULL AS REAL ) * 35 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col1 + 99 * + col1 FROM tab2 AS cor0 ---- 1666 3038 5782 query I rowsort SELECT ALL + + cor0.col0 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT DISTINCT - 28 + + col2 FROM tab0 ---- -27 5 54 query I rowsort SELECT - ( col0 ) * col1 AS col0 FROM tab0 ---- -2064 -3395 -8099 query I rowsort SELECT + col1 + + 98 AS col0 FROM tab2 AS cor0 ---- 115 129 157 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6149 SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 + - col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-6149 SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 + - col0 FROM tab1 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6150 SELECT 0 * - ( + col2 ) DIV + col2 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6150 SELECT 0 * - ( + col2 ) / + col2 FROM tab0 ---- 0 0 0 query I rowsort SELECT tab0.col1 AS col2 FROM tab0, tab2 cor0 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT - col1 * - 39 * 22 FROM tab1 AS cor0 ---- 11154 22308 8580 query I rowsort SELECT DISTINCT + col1 * col2 + + 14 + col2 FROM tab1 AS cor0 ---- 1358 1472 641 query I rowsort SELECT ALL - - col2 * - ( - 15 ) AS col0 FROM tab2 cor0 ---- 390 405 570 query I rowsort SELECT ALL - cor0.col1 + + 23 AS col1 FROM tab0 AS cor0 ---- -63 -68 -74 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6156 SELECT col2 + - CAST( col2 + - col1 AS SIGNED ) AS col1 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-6156 SELECT col2 + - CAST ( col2 + - col1 AS INTEGER ) AS col1 FROM tab1 ---- 10 13 26 query I rowsort SELECT col1 * col2 * + col1 + col2 * - ( - col1 ) FROM tab2 ---- 11628 26784 92040 query I rowsort SELECT DISTINCT cor0.col1 * 82 * col1 + + col0 FROM tab2 AS cor0 ---- 23777 285520 78809 query I rowsort SELECT DISTINCT - col1 * - cor0.col2 * col2 + - col1 + col1 FROM tab2 cor0 ---- 22599 24548 39884 query I rowsort SELECT + col2 + 91 FROM tab2 AS cor0 ---- 117 118 129 query I rowsort SELECT ALL 71 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to c1aace5d5fe27721cc925552513c85c0 query I rowsort SELECT ALL + - col0 + + ( col1 ) + - col0 FROM tab1 cor0 ---- -118 -147 20 query I rowsort SELECT ALL + cor0.col2 + col0 * - 70 FROM tab2 AS cor0 ---- -463 -5434 -5492 onlyif mysql # use DIV operator for integer division query I rowsort label-6164 SELECT DISTINCT + - col0 * ( - cor0.col2 ) DIV + cor0.col1 AS col0 FROM tab0 cor0 ---- 0 80 9 skipif mysql # not compatible query I rowsort label-6164 SELECT DISTINCT + - col0 * ( - cor0.col2 ) / + cor0.col1 AS col0 FROM tab0 cor0 ---- 0 80 9 query I rowsort SELECT 64 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9 query I rowsort SELECT ALL - col0 * - col0 * col1 AS col1 FROM tab1 AS cor0 ---- 234 40960 83200 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( - cor0.col0 ) col0 FROM tab1 AS cor0 ---- -3 -64 -80 query I rowsort SELECT DISTINCT 86 * col2 FROM tab1 ---- 4644 4902 8256 query I rowsort SELECT + ( + col0 ) * col1 AS col0 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT 81 AS col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267 query I rowsort SELECT ( col1 ) * - col2 AS col1 FROM tab0 ---- -2838 -7462 -97 query I rowsort SELECT DISTINCT + col0 * tab1.col2 AS col1 FROM tab1 ---- 162 3648 7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6173 SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-6173 SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + col1 * ( col1 * col2 + + 66 ) col2 FROM tab2 AS cor0 ---- 12183 28000 94478 query I rowsort SELECT 95 * - col1 AS col0 FROM tab2 AS cor0 ---- -1615 -2945 -5605 onlyif mysql # use DIV operator for integer division query I rowsort label-6176 SELECT - col0 DIV - col0 AS col2 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6176 SELECT - col0 / - col0 AS col2 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT + col2 + col2 * ( - col1 * - cor0.col2 ) AS col1 FROM tab1 cor0 ---- 119904 32547 75870 query I rowsort SELECT + col2 + - ( + 5 ) * + col2 FROM tab2 AS cor0 ---- -104 -108 -152 query I rowsort SELECT col2 + - 13 * - 44 FROM tab0 AS cor0 ---- 573 605 654 onlyif mysql # use DIV operator for integer division query I rowsort label-6180 SELECT col2 DIV - ( col2 ) + - col1 AS col2 FROM tab0 AS cor0 ---- -87 -92 -98 skipif mysql # not compatible query I rowsort label-6180 SELECT col2 / - ( col2 ) + - col1 AS col2 FROM tab0 AS cor0 ---- -87 -92 -98 onlyif mysql # use DIV operator for integer division query I rowsort label-6181 SELECT + cor0.col0 DIV + ( + col1 + col1 * + ( 55 ) ) FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6181 SELECT + cor0.col0 / + ( + col1 + col1 * + ( 55 ) ) FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 39 * col1 FROM tab1 ---- -1014 -390 -507 query I rowsort SELECT - 94 AS col2 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f query I rowsort SELECT ALL + 27 + col1 AS col0 FROM tab1 AS cor0 ---- 37 40 53 query I rowsort SELECT + col2 * - col2 + cor0.col0 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query I rowsort SELECT ALL 37 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 27 values hashing to c023509f63faa044d654943e6df55ca2 query I rowsort SELECT ALL - 85 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 91e44ead5e72fa22f87a57243e232ede query I rowsort SELECT + + tab1.col2 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT col1 * col1 * + col1 FROM tab1 ---- 1000 17576 2197 query I rowsort SELECT tab0.col2 * - col2 + tab0.col2 * col0 + col2 * - col1 * col2 FROM tab0 ---- -611310 -63 -93951 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6191 SELECT col2 * + CAST( ( col0 ) AS SIGNED ) * 50 AS col0 FROM tab0 ---- 1750 364900 39600 skipif mysql # not compatible query I rowsort label-6191 SELECT col2 * + CAST ( ( col0 ) AS INTEGER ) * 50 AS col0 FROM tab0 ---- 1750 364900 39600 query I rowsort SELECT tab2.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT + 22 * col1 AS col0 FROM tab1 AS cor0 ---- 220 286 572 query I rowsort SELECT - - 11 + col1 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- 111 180 687 query I rowsort SELECT 76 * col2 + + col2 FROM tab1 cor0 ---- 4158 4389 7392 query I rowsort SELECT - 49 + - cor0.col0 AS col2 FROM tab2 cor0 ---- -127 -128 -56 query I rowsort SELECT + - ( - col0 ) AS col1 FROM tab1 cor0 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-6198 SELECT - + ( + col0 ) DIV + cor0.col0 + 83 FROM tab2 AS cor0 ---- 82 82 82 skipif mysql # not compatible query I rowsort label-6198 SELECT - + ( + col0 ) / + cor0.col0 + 83 FROM tab2 AS cor0 ---- 82 82 82 query I rowsort SELECT cor0.col1 + 42 FROM tab1 AS cor0 ---- 52 55 68 query I rowsort SELECT - col0 * + 78 + cor0.col2 * col2 AS col2 FROM tab2 AS cor0 ---- -4718 -5408 183 query I rowsort SELECT - tab1.col0 * - col0 + col0 AS col0 FROM tab1 ---- 12 4160 6480 query I rowsort SELECT ALL ( col2 ) + col0 AS col0 FROM tab2 ---- 104 117 34 query I rowsort SELECT ALL - col1 + + 89 * + col1 * col2 AS col1 FROM tab0 ---- 252496 664027 8536 query I rowsort SELECT + col1 + - tab1.col0 * col2 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT - 56 * col2 AS col0 FROM tab2 cor0 ---- -1456 -1512 -2128 query I rowsort SELECT ALL + ( ( cor0.col0 ) ) FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-6207 SELECT ALL - col1 DIV 5 FROM tab2 AS cor0 ---- -11 -3 -6 skipif mysql # not compatible query I rowsort label-6207 SELECT ALL - col1 / 5 FROM tab2 AS cor0 ---- -11 -3 -6 query I rowsort SELECT col1 + - ( + col0 ) * + ( col0 ) FROM tab0 AS cor0 ---- -1128 -490 -7830 onlyif mysql # use DIV operator for integer division query I rowsort label-6209 SELECT ALL + 44 DIV - col0 col2 FROM tab0 AS cor0 ---- -1 -1 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6209 SELECT ALL + 44 / - col0 col2 FROM tab0 AS cor0 ---- -1 -1 0 query I rowsort SELECT ALL + + ( - col1 ) + + col0 AS col0 FROM tab2 AS cor0 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col1 * + col1 col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * cor0.col0 col2 FROM tab0 AS cor0 ---- -1225 -576 -7921 query I rowsort SELECT - + col2 * col0 * + 54 AS col0 FROM tab1 AS cor0 ---- -196992 -414720 -8748 query I rowsort SELECT DISTINCT 75 * col2 AS col2 FROM tab1 AS cor0 ---- 4050 4275 7200 onlyif mysql # use DIV operator for integer division query I rowsort label-6215 SELECT ALL - ( col1 ) DIV ( col2 ) FROM tab0 cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-6215 SELECT ALL - ( col1 ) / ( col2 ) FROM tab0 cor0 ---- -1 -2 -97 query I rowsort SELECT - 90 * - ( col0 * ( col1 ) ) FROM tab0 ---- 185760 305550 728910 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6217 SELECT DISTINCT - CAST( col1 AS SIGNED ) + - col1 AS col1 FROM tab2 ---- -118 -34 -62 skipif mysql # not compatible query I rowsort label-6217 SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col1 AS col1 FROM tab2 ---- -118 -34 -62 onlyif mysql # use DIV operator for integer division query I rowsort label-6218 SELECT ALL + - 56 DIV cor0.col1 - - 92 FROM tab1 AS cor0 ---- 87 88 90 skipif mysql # not compatible query I rowsort label-6218 SELECT ALL + - 56 / cor0.col1 - - 92 FROM tab1 AS cor0 ---- 87 88 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6219 SELECT DISTINCT + + col1 + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6219 SELECT DISTINCT + + col1 + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 * col2 * ( + 17 + - col1 ) col1 FROM tab1 AS cor0 ---- -12636 3990 4992 query I rowsort SELECT DISTINCT - + cor0.col1 * + col1 FROM tab1 AS cor0 ---- -100 -169 -676 query I rowsort SELECT + 21 * col0 + col0 * - col1 * + col0 AS col1 FROM tab0 AS cor0 ---- -118090 -49032 -718942 query I rowsort SELECT - col2 * col0 + - 28 * col0 + col2 AS col2 FROM tab2 ---- -358 -4186 -5176 query I rowsort SELECT - col0 * ( + col2 ) * + col0 + + 55 * - 2 AS col1 FROM tab2 AS cor0 ---- -1433 -158294 -237268 query I rowsort SELECT DISTINCT col2 * ( ( + col2 ) * + col2 ) AS col1 FROM tab0 AS cor0 ---- 1 35937 551368 query I rowsort SELECT DISTINCT + col2 + 9 AS col2 FROM tab2 cor0 ---- 35 36 47 query I rowsort SELECT ALL col1 * + col0 + + col0 * + col2 FROM tab2 AS cor0 ---- 406 4345 6630 query I rowsort SELECT ALL - col0 * + ( 93 + col0 ) AS col2 FROM tab2 AS cor0 ---- -13338 -13588 -700 onlyif mysql # use DIV operator for integer division query I rowsort label-6229 SELECT - col1 * col0 DIV ( col0 ) AS col0 FROM tab0 AS cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-6229 SELECT - col1 * col0 / ( col0 ) AS col0 FROM tab0 AS cor0 ---- -86 -91 -97 query I rowsort SELECT ALL col0 * col2 * col2 AS col0 FROM tab0 AS cor0 ---- 26136 35 598436 query I rowsort SELECT ALL + - col0 * + col1 + - cor0.col0 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT DISTINCT + - 13 * col1 AS col1 FROM tab0 cor0 ---- -1118 -1183 -1261 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( - col0 ) * + col0 + + cor0.col0 col0 FROM tab1 AS cor0 ---- -4032 -6 -6320 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6234 SELECT + - ( cor0.col0 ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6234 SELECT + - ( cor0.col0 ) * CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + col0 * col0 + ( - col0 ) * + col1 AS col0 FROM tab2 AS cor0 ---- -10686 -266 -7584 query I rowsort SELECT ALL + 78 + col0 FROM tab1 AS cor0 ---- 142 158 81 query I rowsort SELECT + col0 * 75 FROM tab0 AS cor0 ---- 1800 2625 6675 onlyif mysql # use DIV operator for integer division query I rowsort label-6238 SELECT DISTINCT + col0 + col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0 ---- 4 65 81 skipif mysql # not compatible query I rowsort label-6238 SELECT DISTINCT + col0 + col0 / cor0.col0 AS col0 FROM tab1 AS cor0 ---- 4 65 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + col2 * col2 col2 FROM tab1 AS cor0 ---- 2862 3192 9120 query I rowsort SELECT + ( cor1.col1 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT ALL - cor0.col1 + - ( cor0.col2 ) AS col1 FROM tab2 AS cor0 ---- -55 -58 -85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( - col2 ) + col2 col1 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL 24 + + col0 + cor0.col2 * + col0 FROM tab1 cor0 ---- 189 3736 7784 query I rowsort SELECT ALL 42 * + col1 * + col1 FROM tab0 AS cor0 ---- 310632 347802 395178 query I rowsort SELECT ALL cor0.col0 + ( col1 ) AS col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT 21 - 32 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 05cc989122d7724c7abefaba9625ef3d query I rowsort SELECT DISTINCT 79 AS col1 FROM tab0, tab1 AS cor0 ---- 79 query I rowsort SELECT DISTINCT - 95 * + 99 + col0 * + 25 FROM tab2 AS cor0 ---- -7430 -7455 -9230 query I rowsort SELECT 70 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 9758da65ae4711e3e8c8def2fe026911 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * col1 * + col1 col2 FROM tab1 ---- 1000 17576 2197 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + 7 col0 FROM tab2 AS cor0 ---- 7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6252 SELECT DISTINCT - CAST( - cor0.col1 AS SIGNED ) + col1 FROM tab2 cor0 ---- 118 34 62 skipif mysql # not compatible query I rowsort label-6252 SELECT DISTINCT - CAST ( - cor0.col1 AS INTEGER ) + col1 FROM tab2 cor0 ---- 118 34 62 query I rowsort SELECT + 86 * + col0 + col1 * ( ( + col2 ) + + ( - ( col1 ) ) ) * - col2 AS col1 FROM tab1 ---- -21286 -39054 -96704 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6254 SELECT + CAST( NULL AS DECIMAL ) FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-6254 SELECT + CAST ( NULL AS REAL ) FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT + 39 + + col2 * + tab1.col0 FROM tab1 ---- 201 3687 7719 query I rowsort SELECT - ( 6 ) * + col0 * 98 FROM tab2 ---- -4116 -45864 -46452 query I rowsort SELECT ALL 62 AS col0 FROM tab2, tab0 cor0 ---- 9 values hashing to 51dd2771d516ceb935483eded78a5fa0 query I rowsort SELECT ALL ( - cor0.col1 + - 39 ) AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to d661f5d76d1119911e325c9ca09157cb query I rowsort SELECT col2 * col0 + 52 * col0 FROM tab1 ---- 11840 318 6976 query I rowsort SELECT 81 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 0a85639e0dddbffdab2cb16b027cb360 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 16 * - cor0.col1 * col0 col1 FROM tab2 AS cor0 ---- 21488 3472 73632 query I rowsort SELECT ALL + + ( cor0.col1 ) AS col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL + 19 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to 86c53e8567a17c8d91fc5aff119e0498 query I rowsort SELECT ALL - col0 + - 29 * - col1 FROM tab2 AS cor0 ---- 1633 414 892 query I rowsort SELECT ALL col2 * 7 AS col0 FROM tab0 cor0 ---- 231 574 7 query I rowsort SELECT ALL - col0 * 35 AS col1 FROM tab1 ---- -105 -2240 -2800 query I rowsort SELECT col0 + col1 + 72 AS col1 FROM tab0 AS cor0 ---- 182 204 252 onlyif mysql # use DIV operator for integer division query I rowsort label-6268 SELECT ALL cor0.col2 DIV - cor0.col2 + - col2 * ( + col2 + + col0 ) * col2 FROM tab0 AS cor0 ---- -1149805 -37 -62074 skipif mysql # not compatible query I rowsort label-6268 SELECT ALL cor0.col2 / - cor0.col2 + - col2 * ( + col2 + + col0 ) * col2 FROM tab0 AS cor0 ---- -1149805 -37 -62074 query I rowsort SELECT ALL + col1 * - col0 + + col0 AS col2 FROM tab1 cor0 ---- -576 -75 -960 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( col0 ) + col0 col1 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT ALL + col2 * + cor0.col0 - - col0 AS col0 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT ALL 30 * ( + col0 ) + - col0 * + col0 + col1 * 45 * + ( - col2 + ( ( + col0 ) ) ) AS col2 FROM tab0 AS cor0 ---- -34686 148235 23414 query I rowsort SELECT - 36 + - col1 * col1 AS col2 FROM tab2 AS cor0 ---- -325 -3517 -997 query I rowsort SELECT + - col2 - 85 FROM tab1 AS cor0 ---- -139 -142 -181 onlyif mysql # use DIV operator for integer division query I rowsort label-6275 SELECT ALL col0 + - col2 DIV col0 AS col0 FROM tab1 AS cor0 ---- -15 64 79 skipif mysql # not compatible query I rowsort label-6275 SELECT ALL col0 + - col2 / col0 AS col0 FROM tab1 AS cor0 ---- -15 64 79 query I rowsort SELECT - 67 + - col0 * col1 AS col2 FROM tab1 AS cor0 ---- -1107 -145 -707 query I rowsort SELECT + - ( - cor0.col2 ) * + col2 AS col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT + + 67 + 24 FROM tab1 AS cor0 ---- 91 91 91 query I rowsort SELECT + col1 - 76 FROM tab0 AS cor0 ---- 10 15 21 query I rowsort SELECT - - 70 + col1 FROM tab0 AS cor0 ---- 156 161 167 query I rowsort SELECT DISTINCT - 11 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- -11 query I rowsort SELECT cor0.col0 * - cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to fa8f09039d622159cb79f83c1d68bd00 query I rowsort SELECT DISTINCT + col1 * 20 FROM tab0 AS cor0 ---- 1720 1820 1940 query I rowsort SELECT DISTINCT ( + 37 ) FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 37 query I rowsort SELECT - - col0 * - 32 FROM tab1 AS cor0 ---- -2048 -2560 -96 query I rowsort SELECT - + ( 74 ) AS col1 FROM tab2 AS cor0 ---- -74 -74 -74 skipif mysql # not compatible query I rowsort SELECT - CAST ( - col2 AS REAL ) * - cor0.col1 AS col1 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL + + ( - col0 ) FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT ALL + cor0.col1 * 27 * - col0 + - col1 + - col2 * - col0 FROM tab0 AS cor0 ---- -211466 -55022 -91727 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + col2 + tab2.col0 col1 FROM tab2 ---- 182 196 41 query I rowsort SELECT ALL - col2 * + col1 * - col0 AS col2 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT 83 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 002a717a3d902d97220759065fb107c3 query I rowsort SELECT cor0.col1 - + 47 AS col2 FROM tab1, tab2 AS cor0 ---- 9 values hashing to a2f1bae3c4aa2deba67c7c84d88d2e93 query I rowsort SELECT - col0 * col0 + + ( ( cor0.col0 ) * + col0 + col0 ) FROM tab0 AS cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( - col2 ) - + 39 col0 FROM tab2 cor0 ---- -1 -12 -13 query I rowsort SELECT DISTINCT tab2.col1 + ( col1 ) FROM tab2 ---- 118 34 62 query I rowsort SELECT DISTINCT - col0 * - 82 + + col0 FROM tab0 ---- 1992 2905 7387 onlyif mysql # use DIV operator for integer division query I rowsort label-6298 SELECT ALL col1 DIV + col2 + - col1 * - col1 FROM tab1 ---- 100 169 676 skipif mysql # not compatible query I rowsort label-6298 SELECT ALL col1 / + col2 + - col1 * - col1 FROM tab1 ---- 100 169 676 query I rowsort SELECT - col1 * + col2 - - col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT - - col0 * col1 + 12 FROM tab0 AS cor0 ---- 2076 3407 8111 query I rowsort SELECT - + col1 * + col1 - col2 AS col0 FROM tab2 AS cor0 ---- -327 -3507 -988 onlyif mysql # use DIV operator for integer division query I rowsort label-6302 SELECT col0 DIV - tab1.col1 AS col1 FROM tab1 ---- -6 -6 0 skipif mysql # not compatible query I rowsort label-6302 SELECT col0 / - tab1.col1 AS col1 FROM tab1 ---- -6 -6 0 query I rowsort SELECT - - 72 AS col0 FROM tab1 AS cor0 ---- 72 72 72 query I rowsort SELECT DISTINCT - col0 - - tab0.col1 AS col2 FROM tab0 ---- 2 62 onlyif mysql # use DIV operator for integer division query I rowsort label-6305 SELECT 95 * - col2 * - ( 31 ) + col2 DIV + 83 + - 4 * col0 FROM tab1 ---- 159018 167609 282401 skipif mysql # not compatible query I rowsort label-6305 SELECT 95 * - col2 * - ( 31 ) + col2 / + 83 + - 4 * col0 FROM tab1 ---- 159018 167609 282401 query I rowsort SELECT ALL - col1 + col0 * col2 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- 233462 460 614387 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6307 SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-6307 SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0, tab0 AS cor1 ---- NULL query I rowsort SELECT 10 * col1 FROM tab1 ---- 100 130 260 query I rowsort SELECT ALL 93 FROM tab1, tab0, tab1 AS cor0 ---- 27 values hashing to 85ef191bf1b307f300b3fd49992fcae7 query I rowsort SELECT DISTINCT 38 - + tab1.col1 * + 38 AS col2 FROM tab1 ---- -342 -456 -950 query I rowsort SELECT DISTINCT - 57 - + col0 FROM tab1 ---- -121 -137 -60 query I rowsort SELECT - col2 + col2 - ( + col0 * - col1 ) AS col0 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT ALL - col0 * - col0 - col0 FROM tab0 ---- 1190 552 7832 query I rowsort SELECT + cor0.col1 * + tab0.col0 FROM tab0, tab2 cor0 ---- 9 values hashing to 4079a7bf86eef7fda5333d4a7bc8c08e query I rowsort SELECT - + col0 * col2 + - col2 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT - col0 * 72 + - tab1.col0 + col1 * col1 FROM tab1 ---- -4572 -5671 457 query I rowsort SELECT ALL + - col2 - - 54 * + 82 * col1 FROM tab1 AS cor0 ---- 115074 44223 57468 query I rowsort SELECT - - col1 * col1 * - col2 + col2 FROM tab0 AS cor0 ---- -244035 -678960 -9408 onlyif mysql # use DIV operator for integer division query I rowsort label-6319 SELECT ALL col0 DIV + col2 - col2 AS col1 FROM tab0 cor0 ---- -33 -81 34 skipif mysql # not compatible query I rowsort label-6319 SELECT ALL col0 / + col2 - col2 AS col1 FROM tab0 cor0 ---- -33 -81 34 query I rowsort SELECT DISTINCT - col0 + - cor0.col2 * col0 AS col2 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT ALL - col1 + cor0.col2 + col1 * + col2 FROM tab1 AS cor0 ---- 1331 1432 617 query I rowsort SELECT - - col1 * 88 * col2 - col0 * col0 AS col1 FROM tab1 AS cor0 ---- 103424 123543 46064 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * 41 * col1 + col2 + - col1 col2 FROM tab1 AS cor0 ---- -26193 -3170 -42557 onlyif mysql # use DIV operator for integer division query I rowsort label-6324 SELECT ALL - cor0.col1 DIV - col0 - - 85 FROM tab1 cor0 ---- 85 85 93 skipif mysql # not compatible query I rowsort label-6324 SELECT ALL - cor0.col1 / - col0 - - 85 FROM tab1 cor0 ---- 85 85 93 query I rowsort SELECT DISTINCT - - col2 + 85 AS col2 FROM tab2 AS cor0 ---- 111 112 123 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6326 SELECT - - cor0.col0 * CAST( col2 * col2 AS SIGNED ) + + col2 * - cor0.col2 FROM tab1 AS cor0 ---- 204687 5832 728064 skipif mysql # not compatible query I rowsort label-6326 SELECT - - cor0.col0 * CAST ( col2 * col2 AS INTEGER ) + + col2 * - cor0.col2 FROM tab1 AS cor0 ---- 204687 5832 728064 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6327 SELECT ALL - col0 + + CAST( + 31 AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0 ---- -2690 -2910 -3042 skipif mysql # not compatible query I rowsort label-6327 SELECT ALL - col0 + + CAST ( + 31 AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0 ---- -2690 -2910 -3042 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 + + col0 col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col1 + 64 FROM tab0 AS cor0 ---- -22 -27 -33 query IIIIIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab1 AS cor3 ---- 13122 values hashing to d9abbd467a92a4fe6c8fc524d8570346 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6331 SELECT CAST( ( - col2 ) AS SIGNED ) AS col1 FROM tab1 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-6331 SELECT CAST ( ( - col2 ) AS INTEGER ) AS col1 FROM tab1 ---- -54 -57 -96 query I rowsort SELECT - 5 + - col0 FROM tab1 AS cor0 ---- -69 -8 -85 query I rowsort SELECT + col2 * + 84 * cor0.col2 AS col2 FROM tab1 AS cor0 ---- 244944 272916 774144 query I rowsort SELECT ALL ( cor1.col1 ) * cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to beb2df893579871bcb51459c78b13f94 query I rowsort SELECT - - 43 * + col2 FROM tab0 AS cor0 ---- 1419 3526 43 query I rowsort SELECT DISTINCT + + col2 * - col0 * ( 35 ) - cor0.col2 FROM tab0 cor0 ---- -1226 -255512 -27753 query I rowsort SELECT DISTINCT - - cor0.col2 + - col1 - - 43 AS col1 FROM tab2 AS cor0 ---- 10 39 64 query I rowsort SELECT - - 79 * - 17 * cor0.col1 AS col1 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 388498b07a36ebc410ed095661282c64 query I rowsort SELECT ALL + col0 + + cor0.col2 - + col0 AS col2 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT + - ( - col0 ) * col0 + col1 FROM tab2 AS cor0 ---- 6143 6258 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6341 SELECT - CAST( ( col0 ) AS SIGNED ) * col0 * 65 + + col1 FROM tab2 ---- -3154 -395401 -405648 skipif mysql # not compatible query I rowsort label-6341 SELECT - CAST ( ( col0 ) AS INTEGER ) * col0 * 65 + + col1 FROM tab2 ---- -3154 -395401 -405648 query I rowsort SELECT DISTINCT - ( col1 + col1 ) AS col2 FROM tab2 ---- -118 -34 -62 query I rowsort SELECT DISTINCT cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-6344 SELECT ALL - 46 + + col1 DIV col1 FROM tab2 AS cor0 ---- -45 -45 -45 skipif mysql # not compatible query I rowsort label-6344 SELECT ALL - 46 + + col1 / col1 FROM tab2 AS cor0 ---- -45 -45 -45 query I rowsort SELECT DISTINCT 21 * + col1 + col1 AS col0 FROM tab1 AS cor0 ---- 220 286 572 query I rowsort SELECT ALL + + 60 * cor0.col1 FROM tab1 AS cor0 ---- 1560 600 780 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6347 SELECT ALL - - col2 * col1 + CAST( NULL AS SIGNED ) / - col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6347 SELECT ALL - - col2 * col1 + CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - tab1.col0 * 48 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 39d4f5202b1fa64e4b4fdc6b7d150999 query I rowsort SELECT ALL col2 * + col2 * - 88 FROM tab2 AS cor0 ---- -127072 -59488 -64152 query I rowsort SELECT ALL col2 * col0 * 50 + + col0 * col2 AS col2 FROM tab2 AS cor0 ---- 103428 153102 9639 query I rowsort SELECT DISTINCT + col2 + col1 * - col1 * col1 AS col2 FROM tab1 AS cor0 ---- -17522 -2101 -943 onlyif mysql # use DIV operator for integer division query I rowsort label-6352 SELECT col1 DIV 47 FROM tab0 ---- 1 1 2 skipif mysql # not compatible query I rowsort label-6352 SELECT col1 / 47 FROM tab0 ---- 1 1 2 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + + col2 + 74 * col2 * col0 col2 FROM tab1 AS cor0 ---- 12068 270019 568429 query I rowsort SELECT DISTINCT + + col1 + + ( - col1 ) AS col0 FROM tab1 cor0 ---- 0 query I rowsort SELECT + col1 + 58 + + col1 * col1 FROM tab1 ---- 168 240 760 query I rowsort SELECT col0 + ( ( col0 ) ) * col2 + 80 * col2 FROM tab0 ---- 13947 150 3456 query I rowsort SELECT DISTINCT + col1 + 2 + col0 * - col2 AS col2 FROM tab1 ---- -134 -3636 -7665 query I rowsort SELECT + col1 + + col1 * + ( col0 ) - col2 FROM tab1 AS cor0 ---- 50 593 957 query I rowsort SELECT cor0.col0 * + 94 AS col2 FROM tab0 AS cor0 ---- 2256 3290 8366 query I rowsort SELECT - cor0.col2 * - col2 + col2 * - col0 + col2 AS col2 FROM tab0 AS cor0 ---- -33 -492 330 query I rowsort SELECT ALL col0 + - 39 FROM tab1 AS cor0 ---- -36 25 41 query I rowsort SELECT - + col1 + col1 * + col0 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT - col0 - 49 AS col0 FROM tab1 AS cor0 ---- -113 -129 -52 query I rowsort SELECT ALL + col2 * - col0 * 86 AS col1 FROM tab0 AS cor0 ---- -3010 -627628 -68112 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6365 SELECT col1 * - CAST( NULL AS SIGNED ) * cor0.col0 + - col0 + + 93 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6365 SELECT col1 * - CAST ( NULL AS INTEGER ) * cor0.col0 + - col0 + + 93 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6366 SELECT - col0 + col0 DIV + col0 FROM tab2 AS cor0 ---- -6 -77 -78 skipif mysql # not compatible query I rowsort label-6366 SELECT - col0 + col0 / + col0 FROM tab2 AS cor0 ---- -6 -77 -78 query I rowsort SELECT DISTINCT + ( col0 ) * + col0 AS col0 FROM tab1 cor0 ---- 4096 6400 9 query I rowsort SELECT DISTINCT 87 - + cor0.col1 FROM tab2, tab1 cor0 ---- 61 74 77 onlyif mysql # use DIV operator for integer division query I rowsort label-6369 SELECT + col2 - - cor0.col2 DIV col1 col1 FROM tab0 cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6369 SELECT + col2 - - cor0.col2 / col1 col1 FROM tab0 cor0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6370 SELECT + CAST( NULL AS SIGNED ) + ( + col0 ) * + col1 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6370 SELECT + CAST ( NULL AS INTEGER ) + ( + col0 ) * + col1 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6371 SELECT DISTINCT + + CAST( NULL AS SIGNED ) / + col0 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6371 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / + col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6372 SELECT ALL - CAST( + col2 AS SIGNED ) * - col1 + 33 + col0 * - col1 FROM tab0 AS cor0 ---- -3265 -604 807 skipif mysql # not compatible query I rowsort label-6372 SELECT ALL - CAST ( + col2 AS INTEGER ) * - col1 + 33 + col0 * - col1 FROM tab0 AS cor0 ---- -3265 -604 807 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6373 SELECT - cor0.col0 + - ( + col1 ) - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6373 SELECT - cor0.col0 + - ( + col1 ) - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - cor0.col2 * 80 + - col1 * + 92 - + col0 FROM tab0 AS cor0 ---- -10576 -15021 -9039 onlyif mysql # use DIV operator for integer division query I rowsort label-6375 SELECT - col2 * 12 DIV - col1 FROM tab1 ---- 24 68 88 skipif mysql # not compatible query I rowsort label-6375 SELECT - col2 * 12 / - col1 FROM tab1 ---- 24 68 88 query I rowsort SELECT + 29 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 4c56285992bcb76e1aac22e6d23d1318 query I rowsort SELECT + ( col1 ) * + col1 FROM tab1 AS cor0 ---- 100 169 676 onlyif mysql # use DIV operator for integer division query I rowsort label-6378 SELECT - - col2 + col2 DIV - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-6378 SELECT - - col2 + col2 / - cor0.col1 AS col1 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor1.col1 * - cor0.col0 col2 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1 ---- 81 values hashing to 1b93fc965c20c89fb49ae2f25c262841 onlyif mysql # use DIV operator for integer division query I rowsort label-6380 SELECT + - col2 + col0 DIV - col0 AS col1 FROM tab1 AS cor0 ---- -55 -58 -97 skipif mysql # not compatible query I rowsort label-6380 SELECT + - col2 + col0 / - col0 AS col1 FROM tab1 AS cor0 ---- -55 -58 -97 query I rowsort SELECT + 93 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 ---- 27 values hashing to 85ef191bf1b307f300b3fd49992fcae7 onlyif mysql # use DIV operator for integer division query I rowsort label-6382 SELECT ALL + col1 DIV col2 AS col1 FROM tab0 ---- 1 2 97 skipif mysql # not compatible query I rowsort label-6382 SELECT ALL + col1 / col2 AS col1 FROM tab0 ---- 1 2 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( tab1.col1 ) col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 query I rowsort SELECT - col0 + 95 FROM tab2 AS cor0 ---- 16 17 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 * ( 73 ) * col0 col0 FROM tab2 AS cor0 ---- 15841 335946 98039 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6386 SELECT - CAST( NULL AS DECIMAL ) * cor0.col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-6386 SELECT - CAST ( NULL AS REAL ) * cor0.col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT col2 + + tab0.col0 + - ( tab0.col1 * - col1 ) FROM tab0 ---- 7453 8452 9445 query I rowsort SELECT ALL 34 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + 13 * col2 col1 FROM tab2 ---- 260 344 415 query I rowsort SELECT ALL cor0.col1 FROM tab1, tab0, tab2 AS cor0 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d query I rowsort SELECT DISTINCT - ( tab0.col0 ) AS col1 FROM tab0, tab1 AS cor0 ---- -24 -35 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-6392 SELECT DISTINCT + - col1 * + col1 + - col0 DIV col2 FROM tab0 AS cor0 ---- -7396 -8282 -9444 skipif mysql # not compatible query I rowsort label-6392 SELECT DISTINCT + - col1 * + col1 + - col0 / col2 FROM tab0 AS cor0 ---- -7396 -8282 -9444 query I rowsort SELECT ALL + + cor0.col0 * ( + 5 ) AS col0 FROM tab0 AS cor0 ---- 120 175 445 query III rowsort SELECT * FROM tab1 WHERE col2 * col1 BETWEEN + col1 AND NULL ---- query I rowsort SELECT col0 * - col1 * + col2 + col0 AS col2 FROM tab0 AS cor0 ---- -3360 -664029 -68088 query I rowsort SELECT + cor0.col0 + - cor0.col1 + - col0 FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # use DIV operator for integer division query I rowsort label-6397 SELECT ALL tab1.col0 * col0 DIV col2 - + col2 AS col1 FROM tab1 ---- -30 -54 14 skipif mysql # not compatible query I rowsort label-6397 SELECT ALL tab1.col0 * col0 / col2 - + col2 AS col1 FROM tab1 ---- -30 -54 14 query I rowsort SELECT - col1 * - col2 - col1 AS col1 FROM tab1 AS cor0 ---- 1235 1378 560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + col2 * + col1 * col0 + - col0 * - col1 col1 FROM tab1 AS cor0 ---- 100867 37110 4264 query III rowsort SELECT * FROM tab0 WHERE col2 * - col0 + col2 <> - col1 + col0 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT ALL tab2.col2 - col1 * col2 AS col0 FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT - col1 * - col1 * cor0.col1 FROM tab1 cor0 ---- 1000 17576 2197 query I rowsort SELECT DISTINCT + col0 + col2 * 24 AS col0 FROM tab0 AS cor0 ---- 2057 59 816 query I rowsort SELECT ALL - + col1 * - col2 + 68 AS col2 FROM tab0 AS cor0 ---- 165 2906 7530 onlyif mysql # use DIV operator for integer division query I rowsort label-6405 SELECT DISTINCT + + 94 DIV + col1 + ( + col0 + col0 ) AS col0 FROM tab1 cor0 ---- 137 167 9 skipif mysql # not compatible query I rowsort label-6405 SELECT DISTINCT + + 94 / + col1 + ( + col0 + col0 ) AS col0 FROM tab1 cor0 ---- 137 167 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6406 SELECT - + 5 + - col2 * CAST( col1 + + col1 * 8 AS SIGNED ) FROM tab0 AS cor0 ---- -25547 -67163 -878 skipif mysql # not compatible query I rowsort label-6406 SELECT - + 5 + - col2 * CAST ( col1 + + col1 * 8 AS INTEGER ) FROM tab0 AS cor0 ---- -25547 -67163 -878 query I rowsort SELECT DISTINCT - 32 * col2 AS col2 FROM tab2 AS cor0 ---- -1216 -832 -864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 91 * + col1 + + ( col0 ) * + col0 col0 FROM tab0 AS cor0 ---- 10052 16202 8402 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6409 SELECT + col1 + - col1 * + CAST( NULL AS SIGNED ) / col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6409 SELECT + col1 + - col1 * + CAST ( NULL AS INTEGER ) / col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ( 55 ) FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3 query I rowsort SELECT ( col1 ) * ( 79 * col1 ) FROM tab0 AS cor0 ---- 584284 654199 743311 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6412 SELECT - 95 + + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6412 SELECT - 95 + + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + col0 + - tab0.col0 * + 4 FROM tab0 ---- -105 -267 -72 onlyif mysql # use DIV operator for integer division query I rowsort label-6414 SELECT ALL + + col2 DIV - ( col2 ) AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-6414 SELECT ALL + + col2 / - ( col2 ) AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT - ( - col2 ) * + col2 + tab2.col0 * col2 - + col2 * - col0 FROM tab2 ---- 1107 4732 7448 query I rowsort SELECT ALL + 30 AS col2 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 6c98840ed134c765d56389f4150075f0 query I rowsort SELECT DISTINCT col0 * col0 * 63 FROM tab2 ---- 3087 383292 393183 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 77 + col1 * + col2 col2 FROM tab1 ---- 1325 1481 647 query I rowsort SELECT DISTINCT + 68 + 39 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 107 query I rowsort SELECT + ( + tab0.col0 ) - + ( 71 + col2 ) FROM tab0 ---- -37 -64 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-6421 SELECT DISTINCT - 61 DIV + tab1.col1 AS col1 FROM tab1 ---- -2 -4 -6 skipif mysql # not compatible query I rowsort label-6421 SELECT DISTINCT - 61 / + tab1.col1 AS col1 FROM tab1 ---- -2 -4 -6 query I rowsort SELECT tab1.col2 * col1 * + col1 - col2 * + col0 AS col1 FROM tab1 ---- 2052 36342 8544 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - tab0.col2 + col0 col0 FROM tab0 ---- -9 34 7 query III rowsort SELECT * FROM tab1 WHERE NOT ( col1 ) IN ( - col0 + - tab1.col0 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d onlyif mysql # use DIV operator for integer division query I rowsort label-6425 SELECT ALL tab2.col0 DIV col1 - + tab2.col0 * - col2 FROM tab2 ---- 189 2029 3006 skipif mysql # not compatible query I rowsort label-6425 SELECT ALL tab2.col0 / col1 - + tab2.col0 * - col2 FROM tab2 ---- 189 2029 3006 query III rowsort SELECT * FROM tab0 WHERE + tab0.col2 >= ( col2 * col1 ) ---- query I rowsort SELECT DISTINCT + col1 * + col1 - + col1 AS col0 FROM tab1 ---- 156 650 90 query I rowsort SELECT ALL col0 * col0 * col0 AS col1 FROM tab0 ---- 13824 42875 704969 query I rowsort SELECT + tab1.col0 + col0 * col1 FROM tab1 ---- 1120 704 81 query I rowsort SELECT col0 * col1 + + col0 + - col2 AS col1 FROM tab0 ---- 2055 3429 8106 query I rowsort SELECT DISTINCT + col2 + - col0 + tab0.col2 FROM tab0 ---- -33 42 75 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( col0 ) AND NULL ---- query I rowsort SELECT DISTINCT tab0.col1 * - col1 AS col2 FROM tab0 ---- -7396 -8281 -9409 query I rowsort SELECT col2 + - col2 * + col1 AS col0 FROM tab2 ---- -1508 -608 -810 query I rowsort SELECT + tab1.col2 - col0 AS col1 FROM tab1 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-6436 SELECT ALL + tab0.col0 DIV + col0 + col2 AS col1 FROM tab0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-6436 SELECT ALL + tab0.col0 / + col0 + col2 AS col1 FROM tab0 ---- 2 34 83 onlyif mysql # use DIV operator for integer division query I rowsort label-6437 SELECT ALL - col1 DIV col2 - col0 AS col0 FROM tab0 ---- -132 -26 -90 skipif mysql # not compatible query I rowsort label-6437 SELECT ALL - col1 / col2 - col0 AS col0 FROM tab0 ---- -132 -26 -90 query I rowsort SELECT ALL tab0.col1 + col2 FROM tab0 WHERE col0 BETWEEN ( NULL ) AND col2 + - col0 ---- query I rowsort SELECT ALL + col2 * col1 + col2 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT - col2 * + col1 + col2 FROM tab0 ---- -2805 -7380 -96 query III rowsort SELECT ALL * FROM tab1 WHERE - col1 / col2 NOT IN ( col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 + col0 col2 FROM tab1 ---- 128 160 6 query I rowsort SELECT DISTINCT col0 + tab1.col1 * - 45 FROM tab1 ---- -1167 -386 -505 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 53 col2 FROM tab2 ---- 53 53 53 query I rowsort SELECT ALL col2 * col0 + - 28 * + col0 + cor0.col2 * - col0 FROM tab2 AS cor0 ---- -196 -2184 -2212 query I rowsort SELECT DISTINCT + col1 * ( - col0 ) AS col1 FROM tab2 cor0 ---- -1343 -217 -4602 query I rowsort SELECT - cor0.col0 + col2 FROM tab1 cor0 ---- -7 16 51 query I rowsort SELECT col0 * 15 + col2 FROM tab2 AS cor0 ---- 1196 1223 132 query I rowsort SELECT col0 + 72 AS col2 FROM tab2 AS cor0 ---- 150 151 79 query I rowsort SELECT + col1 * 0 + col1 AS col1 FROM tab1 cor0 ---- 10 13 26 query I rowsort SELECT DISTINCT + 29 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 29 query I rowsort SELECT ALL - 17 + + col0 FROM tab1 ---- -14 47 63 query I rowsort SELECT ALL - tab1.col1 + tab1.col1 * + col1 * col0 FROM tab1 ---- 13507 2002 6390 query I rowsort SELECT ALL ( + tab1.col2 ) AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17 query I rowsort SELECT DISTINCT + col2 + 4 + + col1 AS col0 FROM tab1 AS cor0 ---- 113 71 84 query I rowsort SELECT ALL - cor0.col2 * + ( + col1 ) + col0 AS col2 FROM tab0 AS cor0 ---- -2814 -62 -7373 onlyif mysql # use DIV operator for integer division query I rowsort label-6457 SELECT ALL + col0 DIV + col1 + - col2 FROM tab1 AS cor0 ---- -51 -54 -90 skipif mysql # not compatible query I rowsort label-6457 SELECT ALL + col0 / + col1 + - col2 FROM tab1 AS cor0 ---- -51 -54 -90 query I rowsort SELECT ALL - + ( - cor0.col0 ) * col2 + ( - ( col1 ) ) AS col1 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT col1 + ( - col1 ) * 2 AS col1 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT DISTINCT col0 + - col0 * + col1 AS col1 FROM tab0 AS cor0 ---- -2040 -3360 -8010 query I rowsort SELECT - - 52 * col1 AS col0 FROM tab1 AS cor0 ---- 1352 520 676 query I rowsort SELECT ALL - col0 + + 36 AS col1 FROM tab1 AS cor0 ---- -28 -44 33 query I rowsort SELECT - 2 * - col2 * col1 FROM tab0 AS cor0 ---- 14924 194 5676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6464 SELECT DISTINCT CAST( col2 AS SIGNED ) col2 FROM tab1 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6464 SELECT DISTINCT CAST ( col2 AS INTEGER ) col2 FROM tab1 ---- 54 57 96 query I rowsort SELECT ALL + 45 * col1 AS col0 FROM tab2 AS cor0 ---- 1395 2655 765 query I rowsort SELECT col2 - col1 * + col0 * - col2 FROM tab1 AS cor0 ---- 36537 4266 99936 query I rowsort SELECT + cor0.col1 * col0 - cor0.col0 AS col0 FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT - + cor0.col1 * col0 * - col1 - col1 * - col0 FROM tab1 AS cor0 ---- 14560 2106 7040 query I rowsort SELECT DISTINCT 86 * col1 AS col2 FROM tab0 cor0 ---- 7396 7826 8342 query I rowsort SELECT - 71 + cor0.col1 * - col2 FROM tab2 AS cor0 ---- -1605 -717 -908 onlyif mysql # use DIV operator for integer division query I rowsort label-6471 SELECT - 4 DIV tab2.col1 - + col0 FROM tab2 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-6471 SELECT - 4 / tab2.col1 - + col0 FROM tab2 ---- -7 -78 -79 query I rowsort SELECT ALL 59 - 68 * tab1.col0 FROM tab1 ---- -145 -4293 -5381 query I rowsort SELECT DISTINCT + col2 - col2 * cor0.col1 AS col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT ALL + col1 + - col0 * + cor0.col1 * 60 AS col2 FROM tab1 AS cor0 ---- -38390 -4654 -62387 query I rowsort SELECT ALL + - col2 - col1 * - col2 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT DISTINCT - 80 * col2 AS col1 FROM tab2 ---- -2080 -2160 -3040 query I rowsort SELECT DISTINCT 16 + col2 * + 94 AS col2 FROM tab2 AS cor0 ---- 2460 2554 3588 query I rowsort SELECT ALL - - cor0.col2 AS col1 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT tab1.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 778b50575a9b91448119ee0ee1a9c44f query I rowsort SELECT - 5 + - col2 AS col0 FROM tab0 AS cor0 ---- -38 -6 -87 onlyif mysql # use DIV operator for integer division query I rowsort label-6481 SELECT col1 * ( ( - col2 ) ) DIV - col2 - col2 AS col1 FROM tab1 cor0 ---- -28 -47 -83 skipif mysql # not compatible query I rowsort label-6481 SELECT col1 * ( ( - col2 ) ) / - col2 - col2 AS col1 FROM tab1 cor0 ---- -28 -47 -83 query I rowsort SELECT - cor0.col2 - col1 * - col0 * - col2 AS col2 FROM tab1 AS cor0 ---- -36537 -4266 -99936 query I rowsort SELECT DISTINCT + - col2 + - col1 * col1 FROM tab0 AS cor0 ---- -7429 -8363 -9410 query I rowsort SELECT - - col0 + 61 FROM tab2 AS cor0 ---- 139 140 68 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-6486 SELECT DISTINCT + - CAST( + 25 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1 ---- -25 skipif mysql # not compatible query I rowsort label-6486 SELECT DISTINCT + - CAST ( + 25 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1 ---- -25 query I rowsort SELECT + col1 * + 30 * + col0 FROM tab2 ---- 138060 40290 6510 query I rowsort SELECT ALL - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE ( NULL ) < NULL ---- query I rowsort SELECT - - cor0.col1 + 27 * col0 + + ( - col2 + col0 ) AS col0 FROM tab0 AS cor0 ---- 1076 2501 725 query I rowsort SELECT DISTINCT col1 * + 2 FROM tab1 ---- 20 26 52 query I rowsort SELECT - col2 * col0 * col1 + 31 AS col1 FROM tab0 ---- -3364 -664087 -68081 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6492 SELECT - CAST( + 11 AS SIGNED ) col2 FROM tab0 ---- -11 -11 -11 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6492 SELECT - CAST ( + 11 AS INTEGER ) col2 FROM tab0 ---- -11 -11 -11 query I rowsort SELECT DISTINCT - col2 - - 7 AS col0 FROM tab1 AS cor0 ---- -47 -50 -89 query I rowsort SELECT ALL + + ( + cor0.col1 ) FROM tab2 AS cor0 ---- 17 31 59 onlyif mysql # use DIV operator for integer division query I rowsort label-6495 SELECT ALL col2 DIV - col1 + col2 * col1 * + col0 - col0 FROM tab2 AS cor0 ---- 119574 50953 5852 skipif mysql # not compatible query I rowsort label-6495 SELECT ALL col2 / - col1 + col2 * col1 * + col0 - col0 FROM tab2 AS cor0 ---- 119574 50953 5852 query I rowsort SELECT + tab1.col2 + + ( col0 + - col0 ) FROM tab1 ---- 54 57 96 query I rowsort SELECT 21 * tab2.col0 AS col1 FROM tab2 ---- 147 1638 1659 query I rowsort SELECT 10 + col1 AS col0 FROM tab2 ---- 27 41 69 query I rowsort SELECT col0 + col0 * + col0 - ( 24 ) FROM tab1 AS cor0 ---- -12 4136 6456 query I rowsort SELECT ( + 79 ) + + col0 + col1 AS col1 FROM tab1 ---- 108 153 172 query I rowsort SELECT DISTINCT 0 - col0 FROM tab0 ---- -24 -35 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6502 SELECT + CAST( NULL AS DECIMAL ) + 51 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6502 SELECT + CAST ( NULL AS REAL ) + 51 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - col1 * 24 + + col0 * 20 FROM tab2 AS cor0 ---- 1988 2976 884 query I rowsort SELECT ALL tab0.col2 * + tab0.col0 AS col0 FROM tab0 ---- 35 7298 792 query I rowsort SELECT ALL col2 * col1 * col0 FROM tab1 ---- 36480 4212 99840 query I rowsort SELECT - 5 * col1 AS col1 FROM tab0 AS cor0 ---- -430 -455 -485 query I rowsort SELECT 80 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1 ---- 27 values hashing to 6dd5038be71dffa82f5ceba787caab91 query I rowsort SELECT - 43 * tab1.col2 AS col0 FROM tab1 ---- -2322 -2451 -4128 query I rowsort SELECT ALL + cor0.col0 + - 78 FROM tab1 AS cor0 ---- -14 -75 2 query I rowsort SELECT - + col1 + 25 AS col2 FROM tab0 AS cor0 ---- -61 -66 -72 query I rowsort SELECT DISTINCT col0 * + 88 + + 46 * cor0.col0 AS col2 FROM tab0 cor0 ---- 11926 3216 4690 onlyif mysql # use DIV operator for integer division query I rowsort label-6512 SELECT ALL col0 + + ( col2 ) * cor0.col2 DIV + col1 - 10 FROM tab0 AS cor0 ---- 152 25 26 skipif mysql # not compatible query I rowsort label-6512 SELECT ALL col0 + + ( col2 ) * cor0.col2 / + col1 - 10 FROM tab0 AS cor0 ---- 152 25 26 query I rowsort SELECT ALL + cor0.col1 * ( col1 ) * + cor0.col1 FROM tab0 AS cor0 ---- 636056 753571 912673 query I rowsort SELECT DISTINCT - col2 * ( + 23 ) AS col0 FROM tab0 AS cor0 ---- -1886 -23 -759 onlyif mysql # use DIV operator for integer division query I rowsort label-6515 SELECT ALL - cor0.col0 + col1 DIV - 11 FROM tab0 AS cor0 ---- -31 -43 -97 skipif mysql # not compatible query I rowsort label-6515 SELECT ALL - cor0.col0 + col1 / - 11 FROM tab0 AS cor0 ---- -31 -43 -97 query I rowsort SELECT ALL col1 * + 49 FROM tab0 AS cor0 ---- 4214 4459 4753 query I rowsort SELECT - col1 * ( col0 ) AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT DISTINCT - col1 * - ( + col2 ) FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT + + col1 * - col0 AS col1 FROM tab0 cor0 ---- -2064 -3395 -8099 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( - col0 ) + col1 col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT + ( 10 ) AS col2 FROM tab1 AS cor0 ---- 10 query I rowsort SELECT + - 38 + col1 * + col2 FROM tab1 AS cor0 ---- 1210 1366 532 query I rowsort SELECT DISTINCT + + col0 * - 44 - - col0 FROM tab1 AS cor0 ---- -129 -2752 -3440 query I rowsort SELECT DISTINCT 23 * col0 AS col2 FROM tab2 AS cor0 ---- 161 1794 1817 query I rowsort SELECT + cor0.col0 * - 58 FROM tab1 AS cor0 ---- -174 -3712 -4640 query I rowsort SELECT - + ( ( col1 ) ) + - col1 * col2 AS col2 FROM tab0 AS cor0 ---- -194 -2924 -7553 query I rowsort SELECT DISTINCT + ( cor0.col1 ) * + col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL + col1 * - 37 + col1 FROM tab2 AS cor0 ---- -1116 -2124 -612 query I rowsort SELECT ALL + ( col2 ) + col2 * + 10 AS col0 FROM tab0 AS cor0 ---- 11 363 902 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6530 SELECT - tab0.col2 - + CAST( 96 AS SIGNED ) FROM tab0 ---- -129 -178 -97 skipif mysql # not compatible query I rowsort label-6530 SELECT - tab0.col2 - + CAST ( 96 AS INTEGER ) FROM tab0 ---- -129 -178 -97 query I rowsort SELECT col0 - + ( col1 ) * - col0 * - ( - ( + tab2.col0 ) ) AS col0 FROM tab2 ---- 106176 1526 359034 query I rowsort SELECT DISTINCT + cor0.col1 + col0 * col1 + - col2 AS col0 FROM tab0 AS cor0 ---- 2117 3491 8108 query I rowsort SELECT ALL - + col2 * - col1 * col0 + + col0 * + col1 FROM tab0 AS cor0 ---- 672217 6790 70176 query I rowsort SELECT ALL - + col2 * - col2 + ( + 14 ) FROM tab2 AS cor0 ---- 1458 690 743 query I rowsort SELECT - + 49 * col1 + - col1 AS col2 FROM tab0 AS cor0 ---- -4300 -4550 -4850 query I rowsort SELECT - ( + col1 ) + - col1 * col1 FROM tab0 AS cor0 ---- -7482 -8372 -9506 query I rowsort SELECT ALL + 58 + col2 * 46 AS col0 FROM tab2 AS cor0 ---- 1254 1300 1806 query I rowsort SELECT DISTINCT + 9 + - col1 * 17 AS col0 FROM tab2 cor0 ---- -280 -518 -994 query I rowsort SELECT ( 6 ) FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 33 + - col0 col2 FROM tab0 AS cor0 ---- -122 -57 -68 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * col2 * col0 + + 39 + + col1 col1 FROM tab2 AS cor0 ---- 114132 5173 52826 query I rowsort SELECT ALL + 34 * - col1 FROM tab0 AS cor0 ---- -2924 -3094 -3298 query I rowsort SELECT ALL + 3 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 3e22859a313d85a6146c6df5f23d77cf query I rowsort SELECT ALL - col0 * - col0 + col1 AS col0 FROM tab1 ---- 35 4106 6413 onlyif mysql # use DIV operator for integer division query I rowsort label-6545 SELECT ALL + tab0.col0 DIV col0 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6545 SELECT ALL + tab0.col0 / col0 FROM tab0 ---- 1 1 1 query I rowsort SELECT - col2 * cor0.col0 + cor0.col0 FROM tab0 AS cor0 ---- -7209 -768 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6547 SELECT + col0 DIV col0 - col1 AS col2 FROM tab1 AS cor0 ---- -12 -25 -9 skipif mysql # not compatible query I rowsort label-6547 SELECT + col0 / col0 - col1 AS col2 FROM tab1 AS cor0 ---- -12 -25 -9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6548 SELECT ALL - CAST( col1 AS DECIMAL ) + col0 * - CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6548 SELECT ALL - CAST ( col1 AS REAL ) + col0 * - CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 7 * - cor0.col2 + col1 - 5 FROM tab2 cor0 ---- 215 236 278 query I rowsort SELECT DISTINCT - col1 * + col0 + - col1 + + col2 FROM tab1 AS cor0 ---- -50 -593 -957 query I rowsort SELECT - 20 * col2 - col2 FROM tab1 AS cor0 ---- -1134 -1197 -2016 query I rowsort SELECT ALL 3 * + col2 FROM tab1 ---- 162 171 288 query I rowsort SELECT ALL + - ( + col2 ) + + col1 AS col0 FROM tab1 AS cor0 ---- -28 -47 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 89 * col0 col2 FROM tab0 cor0 ---- -2136 -3115 -7921 query I rowsort SELECT - cor0.col2 + + col0 * ( col1 ) - + cor0.col1 AS col1 FROM tab1 AS cor0 ---- -2 573 931 query I rowsort SELECT 54 + - 77 AS col2 FROM tab2 ---- -23 -23 -23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - ( - col2 ) * + col1 + - 70 + col1 col1 FROM tab0 ---- 124 2854 7483 onlyif mysql # use DIV operator for integer division query I rowsort label-6558 SELECT ( col2 ) DIV 93 + 88 * - col1 FROM tab2 AS cor0 ---- -1496 -2728 -5192 skipif mysql # not compatible query I rowsort label-6558 SELECT ( col2 ) / 93 + 88 * - col1 FROM tab2 AS cor0 ---- -1496 -2728 -5192 query I rowsort SELECT col2 * col2 + col0 - 9 * col1 FROM tab1 AS cor0 ---- 2685 3223 9179 query I rowsort SELECT ALL + 27 + col0 * + col2 FROM tab1 ---- 189 3675 7707 query I rowsort SELECT + ( 75 ) * + col1 * col0 FROM tab2 ---- 100725 16275 345150 onlyif mysql # use DIV operator for integer division query I rowsort label-6562 SELECT ALL col0 DIV + col0 FROM tab1 cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-6562 SELECT ALL col0 / + col0 FROM tab1 cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 * + col2 col2 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT + - col1 * + col0 + 53 * - col0 FROM tab0 AS cor0 ---- -12816 -3336 -5250 query I rowsort SELECT ALL + col1 + - col0 * 70 * col0 FROM tab1 AS cor0 ---- -286710 -447987 -604 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col2 + 90 * col2 col2 FROM tab0 AS cor0 ---- 3003 7462 91 query I rowsort SELECT DISTINCT + col0 * col2 * cor0.col1 AS col0 FROM tab2 AS cor0 ---- 119652 51034 5859 query I rowsort SELECT ALL - col2 + + 60 AS col1 FROM tab0 AS cor0 ---- -22 27 59 query I rowsort SELECT DISTINCT - 62 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- -62 query I rowsort SELECT - col2 * col0 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -706 -7207 62 onlyif mysql # use DIV operator for integer division query I rowsort label-6571 SELECT - + col0 DIV + ( + 73 ) col2 FROM tab1 AS cor0 ---- -1 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6571 SELECT - + col0 / + ( + 73 ) col2 FROM tab1 AS cor0 ---- -1 0 0 query I rowsort SELECT DISTINCT + + cor0.col1 + 34 AS col0 FROM tab1 AS cor0 ---- 44 47 60 query I rowsort SELECT ALL - - col2 + - ( + col0 ) FROM tab1 cor0 ---- -7 16 51 query I rowsort SELECT ALL cor0.col2 * col1 + + col1 FROM tab1 cor0 ---- 1261 1430 580 query I rowsort SELECT + col1 + - ( - col1 ) * + col1 * tab0.col0 AS col1 FROM tab0 ---- 177590 329412 737100 query I rowsort SELECT + col1 * - 75 FROM tab0 ---- -6450 -6825 -7275 query I rowsort SELECT cor0.col1 AS col2 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6578 SELECT + CAST( - 29 AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- -29 -29 -29 skipif mysql # not compatible query I rowsort label-6578 SELECT + CAST ( - 29 AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- -29 -29 -29 query I rowsort SELECT - ( 11 ) AS col0 FROM tab2 AS cor0 ---- -11 -11 -11 query I rowsort SELECT + - 61 * + 41 AS col2 FROM tab1 AS cor0 ---- -2501 -2501 -2501 query I rowsort SELECT ( + cor0.col0 ) + cor0.col1 AS col0 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT ALL 27 * - col0 AS col2 FROM tab2 ---- -189 -2106 -2133 query I rowsort SELECT - col2 * col0 + 81 * + col0 FROM tab1 AS cor0 ---- -1200 1536 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 74 + + col0 col1 FROM tab2 cor0 ---- -67 4 5 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 - cor0.col0 col0 FROM tab1 AS cor0 ---- -121 -176 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-6586 SELECT ALL - - cor0.col2 + + cor0.col0 DIV col0 FROM tab1 AS cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-6586 SELECT ALL - - cor0.col2 + + cor0.col0 / col0 FROM tab1 AS cor0 ---- 55 58 97 query I rowsort SELECT + 54 FROM tab1, tab2 cor0, tab1 AS cor1 ---- 27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a query I rowsort SELECT DISTINCT + 0 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1 ---- 0 query I rowsort SELECT + + col1 + 52 AS col1 FROM tab2 AS cor0 ---- 111 69 83 query I rowsort SELECT DISTINCT + 21 * - col2 + - col0 AS col2 FROM tab0 AS cor0 ---- -1811 -56 -717 query I rowsort SELECT 72 * col2 FROM tab1 AS cor0 ---- 3888 4104 6912 query I rowsort SELECT ALL 89 + col1 FROM tab1 AS cor0 ---- 102 115 99 query I rowsort SELECT ALL - - 62 * + col2 * col1 FROM tab1 AS cor0 ---- 35340 77376 87048 query I rowsort SELECT - 30 * + col1 * - col0 AS col2 FROM tab1 ---- 19200 2340 31200 query I rowsort SELECT DISTINCT 86 * - 85 * - col1 FROM tab0 ---- 628660 665210 709070 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * col1 + + 36 col1 FROM tab0 AS cor0 ---- 133 2874 7498 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + ( + col2 ) col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col0 * 16 FROM tab1 cor0 ---- 1024 1280 48 query I rowsort SELECT DISTINCT col0 * + 5 AS col1 FROM tab1 AS cor0 ---- 15 320 400 query I rowsort SELECT ALL + 35 AS col2 FROM tab0, tab0 cor0 ---- 9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29 query I rowsort SELECT DISTINCT - 0 + - cor0.col2 + + col2 AS col1 FROM tab0 AS cor0 ---- 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6602 SELECT ALL + cor0.col1 + + col1 DIV col1 FROM tab1 AS cor0 ---- 11 14 27 skipif mysql # not compatible query I rowsort label-6602 SELECT ALL + cor0.col1 + + col1 / col1 FROM tab1 AS cor0 ---- 11 14 27 query I rowsort SELECT ALL - + 65 + + col1 AS col2 FROM tab0 AS cor0 ---- 21 26 32 query I rowsort SELECT DISTINCT - + 26 + col1 FROM tab0 AS cor0 ---- 60 65 71 query I rowsort SELECT col2 * - ( - col1 * col1 + ( 71 ) ) FROM tab1 ---- 1653 32670 9408 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6606 SELECT ALL CAST( NULL AS SIGNED ) + 7 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6606 SELECT ALL CAST ( NULL AS INTEGER ) + 7 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + cor0.col0 * - 0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT + 53 * - ( + col0 ) AS col2 FROM tab0 AS cor0 ---- -1272 -1855 -4717 query I rowsort SELECT cor0.col0 * 87 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 3534528bd45a27bc00ffe7fcae78ae6e query I rowsort SELECT ALL + col2 * + col2 + col2 * - 78 * col0 AS col1 FROM tab1 ---- -281295 -589824 -9720 onlyif mysql # use DIV operator for integer division query I rowsort label-6611 SELECT ( + cor0.col0 ) DIV + cor0.col1 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-6611 SELECT ( + cor0.col0 ) / + cor0.col1 AS col0 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT ALL + col0 * col1 - - col1 FROM tab0 AS cor0 ---- 2150 3492 8190 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6613 SELECT DISTINCT - cor0.col0 * cor0.col2 * - col0 + CAST( col1 + col1 AS SIGNED ) FROM tab0 AS cor0 ---- 1419 19180 649704 skipif mysql # not compatible query I rowsort label-6613 SELECT DISTINCT - cor0.col0 * cor0.col2 * - col0 + CAST ( col1 + col1 AS INTEGER ) FROM tab0 AS cor0 ---- 1419 19180 649704 query I rowsort SELECT ALL - + col2 * + col0 + + col2 FROM tab2 AS cor0 ---- -162 -2002 -2964 onlyif mysql # use DIV operator for integer division query I rowsort label-6615 SELECT ( - 49 + col0 ) DIV ( + 94 + - tab2.col2 ) col1 FROM tab2 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6615 SELECT ( - 49 + col0 ) / ( + 94 + - tab2.col2 ) col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT ALL - 38 + col1 AS col2 FROM tab0 cor0 ---- 48 53 59 onlyif mysql # use DIV operator for integer division query I rowsort label-6617 SELECT ALL - - 42 + col2 DIV + ( - ( col2 ) ) FROM tab0 AS cor0 ---- 41 41 41 skipif mysql # not compatible query I rowsort label-6617 SELECT ALL - - 42 + col2 / + ( - ( col2 ) ) FROM tab0 AS cor0 ---- 41 41 41 query I rowsort SELECT + cor0.col1 - + cor0.col0 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 023677f2362ebf8bd60cb629f4090df4 query I rowsort SELECT DISTINCT + - col2 * + col2 + - 48 FROM tab0 AS cor0 ---- -1137 -49 -6772 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + cor0.col2 * cor0.col0 col0 FROM tab2 AS cor0 ---- 158 1969 2985 query I rowsort SELECT DISTINCT + col2 + - cor0.col1 * - 44 AS col2 FROM tab0 AS cor0 ---- 3817 4086 4269 query I rowsort SELECT - 71 * ( cor0.col2 ) + 60 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 74884f40b97190860a989d5e2a39ddee query I rowsort SELECT DISTINCT + col2 - 9 AS col1 FROM tab0 ---- -8 24 73 query I rowsort SELECT DISTINCT col1 * - 77 - - col0 FROM tab0 ---- -6598 -6918 -7434 query I rowsort SELECT tab2.col2 + - 90 FROM tab2 ---- -52 -63 -64 query I rowsort SELECT col0 * col0 + ( + col1 + col0 ) FROM tab2 ---- 6221 6337 87 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 91 col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * - col2 + - 6 * + cor0.col0 col0 FROM tab1 AS cor0 ---- 2865 2898 8736 query I rowsort SELECT ALL + col2 - - col0 AS col2 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT + col0 * + 68 - col0 AS col2 FROM tab2 AS cor0 ---- 469 5226 5293 query I rowsort SELECT DISTINCT col1 + - col1 * + col1 FROM tab0 AS cor0 ---- -7310 -8190 -9312 query I rowsort SELECT ALL - cor0.col0 + col0 * - col0 AS col2 FROM tab2 AS cor0 ---- -56 -6162 -6320 query I rowsort SELECT - ( col1 ) * - col1 - + ( - col0 ) FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT col1 * - 70 + col2 + + col1 * col0 AS col2 FROM tab2 cor0 ---- -1926 191 498 query I rowsort SELECT DISTINCT col1 * + 81 FROM tab1 cor0 ---- 1053 2106 810 query I rowsort SELECT + 65 * col2 + - col1 * 71 * + col0 FROM tab2 cor0 ---- -13652 -325052 -92883 query I rowsort SELECT ALL - ( - col0 ) - col1 AS col0 FROM tab0 AS cor0 ---- -2 -62 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col1 - + cor0.col2 col1 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT DISTINCT + col1 - + 83 FROM tab0 ---- 14 3 8 query I rowsort SELECT ALL + tab0.col2 - - col2 * - tab0.col0 AS col1 FROM tab0 ---- -34 -7216 -759 onlyif mysql # use DIV operator for integer division query I rowsort label-6641 SELECT col2 * CAST( col0 AS SIGNED ) DIV tab2.col0 + + col1 - - 5 * - col0 FROM tab2 ---- -305 -340 23 skipif mysql # not compatible query I rowsort label-6641 SELECT col2 * CAST ( col0 AS INTEGER ) / tab2.col0 + + col1 - - 5 * - col0 FROM tab2 ---- -305 -340 23 onlyif mysql # use DIV operator for integer division query I rowsort label-6642 SELECT col1 DIV 64 + 62 FROM tab1 ---- 62 62 62 skipif mysql # not compatible query I rowsort label-6642 SELECT col1 / 64 + 62 FROM tab1 ---- 62 62 62 query I rowsort SELECT DISTINCT cor0.col1 + 65 FROM tab2 AS cor0 ---- 124 82 96 query I rowsort SELECT DISTINCT 41 * col0 AS col1 FROM tab0 ---- 1435 3649 984 query I rowsort SELECT ALL + tab1.col1 * 5 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 734fb968f04202fda33f6258fa1bd94e onlyif mysql # use DIV operator for integer division query I rowsort label-6646 SELECT DISTINCT + 67 + - col0 * - col2 DIV - col2 FROM tab0 AS cor0 ---- -22 32 43 skipif mysql # not compatible query I rowsort label-6646 SELECT DISTINCT + 67 + - col0 * - col2 / - col2 FROM tab0 AS cor0 ---- -22 32 43 onlyif mysql # use DIV operator for integer division query I rowsort label-6647 SELECT ALL + + 54 + col2 DIV - cor0.col1 FROM tab1 AS cor0 ---- 47 49 52 skipif mysql # not compatible query I rowsort label-6647 SELECT ALL + + 54 + col2 / - cor0.col1 FROM tab1 AS cor0 ---- 47 49 52 query I rowsort SELECT DISTINCT + col1 * - col1 - col1 FROM tab2 cor0 ---- -306 -3540 -992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - 69 * + 2 col1 FROM tab0 AS cor0 ---- -138 skipif mysql # not compatible query I rowsort SELECT DISTINCT - CAST ( - col0 AS REAL ) * col1 AS col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT ALL + col2 + + 25 AS col1 FROM tab0 AS cor0 ---- 107 26 58 onlyif mysql # use DIV operator for integer division query I rowsort label-6652 SELECT ALL ( + col2 ) DIV - col0 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-6652 SELECT ALL ( + col2 ) / - col0 FROM tab0 AS cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6653 SELECT - + 23 DIV - cor0.col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6653 SELECT - + 23 / - cor0.col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT - - 94 * + col1 FROM tab0 AS cor0 ---- 8084 8554 9118 query I rowsort SELECT - + 93 * - col0 FROM tab2 AS cor0 ---- 651 7254 7347 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6656 SELECT ALL col0 * + CAST( NULL AS SIGNED ) + + tab2.col2 + col2 AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6656 SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + + tab2.col2 + col2 AS col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT ALL - ( + 59 ) FROM tab0 AS cor0 ---- -59 -59 -59 query I rowsort SELECT + + ( + cor0.col2 ) * col1 FROM tab1 cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-6659 SELECT DISTINCT - 95 * col0 DIV col2 col0 FROM tab0 cor0 ---- -103 -3325 -69 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6659 SELECT DISTINCT - 95 * col0 / col2 col0 FROM tab0 cor0 ---- -103 -3325 -69 query I rowsort SELECT ALL 86 AS col1 FROM tab1 AS cor0 ---- 86 86 86 query I rowsort SELECT + 84 * + col2 FROM tab1 cor0 ---- 4536 4788 8064 query I rowsort SELECT - 79 * - col1 AS col2 FROM tab1 ---- 1027 2054 790 query I rowsort SELECT + 67 AS col1 FROM tab0 cor0 ---- 67 67 67 query I rowsort SELECT - + col0 * cor0.col0 + - col2 FROM tab2 AS cor0 ---- -6110 -6279 -76 query I rowsort SELECT DISTINCT - ( + 81 ) FROM tab1 ---- -81 query I rowsort SELECT + - col1 + col1 + col0 AS col2 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT - - ( cor0.col2 ) + col1 * cor0.col0 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT - col0 + - col2 * + col0 + col2 FROM tab2 ---- -169 -2080 -3043 query I rowsort SELECT ALL col0 * col0 + + 94 * - col1 FROM tab0 ---- -633 -7508 -7893 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6670 SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) - col2 * col0 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6670 SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) - col2 * col0 FROM tab1 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6671 SELECT ALL - col1 * - CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6671 SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col1 * + tab0.col0 AS col2 FROM tab0 ---- -2064 -3395 -8099 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( - col1 AS REAL ) - col1 * col2 * - col2 AS col2 FROM tab0 AS cor0 ---- 0 611793 93568 query I rowsort SELECT 91 * col2 AS col1 FROM tab0 ---- 3003 7462 91 skipif mysql # not compatible query I rowsort SELECT + CAST ( - col1 AS REAL ) AS col1 FROM tab1 AS cor0 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + ( - col2 ) * - col1 col1 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT + col1 * 26 FROM tab2 AS cor0 ---- 1534 442 806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - - col1 + + 92 * 36 col1 FROM tab1 AS cor0 ---- 3322 3325 3338 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6679 SELECT + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6679 SELECT + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT cor0.col2 * ( col1 ) FROM tab2 AS cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT DISTINCT + - col2 + CAST ( - col0 AS REAL ) col1 FROM tab1 AS cor0 ---- -121 -176 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6682 SELECT ALL col2 + CAST( - col2 AS SIGNED ) FROM tab1 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6682 SELECT ALL col2 + CAST ( - col2 AS INTEGER ) FROM tab1 cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-6683 SELECT - + col2 + - col1 DIV + col1 col1 FROM tab1 cor0 ---- -55 -58 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6683 SELECT - + col2 + - col1 / + col1 col1 FROM tab1 cor0 ---- -55 -58 -97 query I rowsort SELECT - cor0.col2 * ( - 86 ) * + col1 FROM tab1 AS cor0 ---- 107328 120744 49020 query I rowsort SELECT col1 + ( - col1 ) * cor0.col1 FROM tab1 cor0 ---- -156 -650 -90 query I rowsort SELECT ALL - col0 + + col2 * + col2 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT - cor0.col0 * col2 * col1 AS col0 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT + ( - 45 ) * col1 FROM tab1 AS cor0 ---- -1170 -450 -585 query I rowsort SELECT + + 51 * - col1 AS col0 FROM tab0 AS cor0 ---- -4386 -4641 -4947 onlyif mysql # use DIV operator for integer division query I rowsort label-6690 SELECT ALL - CAST( col0 AS SIGNED ) - + col2 DIV + ( col1 ) AS col2 FROM tab1 AS cor0 ---- -5 -69 -87 skipif mysql # not compatible query I rowsort label-6690 SELECT ALL - CAST ( col0 AS INTEGER ) - + col2 / + ( col1 ) AS col2 FROM tab1 AS cor0 ---- -5 -69 -87 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6691 SELECT DISTINCT - - CAST( + 84 AS SIGNED ) FROM tab2 AS cor0 ---- 84 skipif mysql # not compatible query I rowsort label-6691 SELECT DISTINCT - - CAST ( + 84 AS INTEGER ) FROM tab2 AS cor0 ---- 84 query IIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 cor2 ---- 972 values hashing to 4c46de5c1773124597e14f3b372fc4ea query I rowsort SELECT 79 - col0 FROM tab1 AS cor0 ---- -1 15 76 query I rowsort SELECT ALL - 50 AS col1 FROM tab1 AS cor0 ---- -50 -50 -50 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6695 SELECT + - ( col0 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6695 SELECT + - ( col0 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - tab2.col0 FROM tab2, tab1, tab1 AS cor0 ---- -7 -78 -79 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 57 * - col0 col1 FROM tab1 ---- -171 -3648 -4560 onlyif mysql # use DIV operator for integer division query I rowsort label-6698 SELECT ALL - col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-6698 SELECT ALL - col0 / cor0.col0 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT - col2 + ( - col0 ) AS col2 FROM tab0 cor0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-6700 SELECT ALL - - col2 DIV ( - cor0.col1 ) AS col2 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-6700 SELECT ALL - - col2 / ( - cor0.col1 ) AS col2 FROM tab1 AS cor0 ---- -2 -5 -7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 39 col2 FROM tab1 ---- -39 -39 -39 query I rowsort SELECT 81 * - col2 + col2 FROM tab0 ---- -2640 -6560 -80 query I rowsort SELECT + cor0.col2 + col1 * - cor0.col1 * col2 AS col2 FROM tab1 AS cor0 ---- -16128 -36450 -5643 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT ( 42 ) col0 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 42 onlyif mysql # use DIV operator for integer division query I rowsort label-6705 SELECT - 86 DIV + col0 AS col1 FROM tab2 ---- -1 -1 -12 skipif mysql # not compatible query I rowsort label-6705 SELECT - 86 / + col0 AS col1 FROM tab2 ---- -1 -1 -12 query I rowsort SELECT col0 + + col2 - + 60 FROM tab0 ---- -24 -3 111 onlyif mysql # use DIV operator for integer division query I rowsort label-6707 SELECT DISTINCT - col2 + tab1.col1 * 76 - col0 DIV - col2 col0 FROM tab1 ---- 1922 704 892 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6707 SELECT DISTINCT - col2 + tab1.col1 * 76 - col0 / - col2 col0 FROM tab1 ---- 1922 704 892 onlyif mysql # use DIV operator for integer division query I rowsort label-6708 SELECT ALL col1 DIV + 41 FROM tab0 AS cor0 ---- 2 2 2 skipif mysql # not compatible query I rowsort label-6708 SELECT ALL col1 / + 41 FROM tab0 AS cor0 ---- 2 2 2 query I rowsort SELECT DISTINCT + col2 * - ( + 33 ) FROM tab2 AS cor0 ---- -1254 -858 -891 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6710 SELECT ALL - col0 * + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 ---- -2064 -3395 -8099 skipif mysql # not compatible query I rowsort label-6710 SELECT ALL - col0 * + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 ---- -2064 -3395 -8099 onlyif mysql # use DIV operator for integer division query I rowsort label-6711 SELECT ALL - 51 - - col2 DIV col2 FROM tab1 ---- -50 -50 -50 skipif mysql # not compatible query I rowsort label-6711 SELECT ALL - 51 - - col2 / col2 FROM tab1 ---- -50 -50 -50 query I rowsort SELECT - 44 AS col0 FROM tab2 ---- -44 -44 -44 query I rowsort SELECT + + cor0.col1 + col0 - cor0.col1 AS col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL + col0 * + ( col1 * + col1 ) AS col0 FROM tab2 cor0 ---- 22831 271518 6727 query I rowsort SELECT + + col2 - + col2 AS col1 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ( 16 ) AS col1 FROM tab0 ---- 16 16 16 query I rowsort SELECT ALL + col0 * col0 * col0 FROM tab1 ---- 262144 27 512000 query I rowsort SELECT ALL 27 - cor0.col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 49250b8513c6479894293ff3be6f0e25 onlyif mysql # use DIV operator for integer division query I rowsort label-6719 SELECT DISTINCT col1 * col0 DIV cor0.col0 + cor0.col2 * cor0.col2 FROM tab1 cor0 ---- 2942 3259 9229 skipif mysql # not compatible query I rowsort label-6719 SELECT DISTINCT col1 * col0 / cor0.col0 + cor0.col2 * cor0.col2 FROM tab1 cor0 ---- 2942 3259 9229 query I rowsort SELECT ALL + - cor0.col2 * col0 - col1 FROM tab0 AS cor0 ---- -132 -7389 -878 query I rowsort SELECT DISTINCT - 1 + + col2 AS col2 FROM tab0 AS cor0 ---- 0 32 81 onlyif mysql # use DIV operator for integer division query I rowsort label-6722 SELECT ALL cor0.col2 DIV - cor0.col0 + + col1 FROM tab1 AS cor0 ---- 10 12 8 skipif mysql # not compatible query I rowsort label-6722 SELECT ALL cor0.col2 / - cor0.col0 + + col1 FROM tab1 AS cor0 ---- 10 12 8 query I rowsort SELECT DISTINCT + col2 - col2 AS col0 FROM tab2 AS cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6724 SELECT ALL - col0 * cor0.col0 + + CAST( + col0 AS SIGNED ) FROM tab2 cor0 ---- -42 -6006 -6162 skipif mysql # not compatible query I rowsort label-6724 SELECT ALL - col0 * cor0.col0 + + CAST ( + col0 AS INTEGER ) FROM tab2 cor0 ---- -42 -6006 -6162 query I rowsort SELECT ALL + + 64 * + col0 AS col0 FROM tab0 AS cor0 ---- 1536 2240 5696 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 14 col2 FROM tab0 AS cor0 ---- 14 14 14 query I rowsort SELECT ALL - col2 * col0 + + cor0.col0 + - col0 AS col2 FROM tab1 AS cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL + ( - col2 ) * + col1 + + col2 AS col1 FROM tab2 cor0 ---- -1508 -608 -810 query I rowsort SELECT - 12 AS col0 FROM tab1 cor0 ---- -12 -12 -12 query I rowsort SELECT DISTINCT - 25 AS col1 FROM tab2 ---- -25 query I rowsort SELECT + + col1 * col0 * col1 + + 31 AS col1 FROM tab1 cor0 ---- 13551 2059 6431 query I rowsort SELECT ALL 67 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1 ---- 81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8 query I rowsort SELECT + 63 * + 71 * col0 AS col1 FROM tab1 ---- 13419 286272 357840 query I rowsort SELECT - cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e onlyif mysql # use DIV operator for integer division query I rowsort label-6735 SELECT + tab1.col0 + tab1.col2 DIV - tab1.col0 FROM tab1 ---- -15 64 79 skipif mysql # not compatible query I rowsort label-6735 SELECT + tab1.col0 + tab1.col2 / - tab1.col0 FROM tab1 ---- -15 64 79 query I rowsort SELECT DISTINCT - ( 64 ) AS col2 FROM tab2, tab0 cor0, tab0 AS cor1 ---- -64 query I rowsort SELECT ALL + 69 * 1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 2810c3097fe4771e273cfff903357b40 query I rowsort SELECT - 7 * - col1 AS col0 FROM tab0 AS cor0 ---- 602 637 679 query I rowsort SELECT ALL col1 + - 95 FROM tab2 ---- -36 -64 -78 query I rowsort SELECT ALL - col0 + + 44 AS col1 FROM tab0 ---- -45 20 9 query I rowsort SELECT tab0.col1 + 6 * - 76 FROM tab0 ---- -359 -365 -370 query I rowsort SELECT DISTINCT + col2 * - col1 + + col0 AS col0 FROM tab2 ---- -1456 -567 -830 onlyif mysql # use DIV operator for integer division query I rowsort label-6743 SELECT ALL col1 + 31 DIV + col0 AS col2 FROM tab0 ---- 87 91 97 skipif mysql # not compatible query I rowsort label-6743 SELECT ALL col1 + 31 / + col0 AS col2 FROM tab0 ---- 87 91 97 query I rowsort SELECT + col1 * 91 + 89 + - col2 * 26 AS col1 FROM tab0 ---- 6238 7057 8890 query I rowsort SELECT ALL + - cor0.col1 + ( + col0 ) * - col2 FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT ALL + col2 * 29 - 27 AS col1 FROM tab1 AS cor0 ---- 1539 1626 2757 query I rowsort SELECT ALL col2 * ( tab2.col1 ) * tab2.col2 AS col2 FROM tab2 ---- 22599 24548 39884 query I rowsort SELECT ALL col2 + - col2 * col0 + col2 FROM tab0 cor0 ---- -33 -7134 -726 query I rowsort SELECT - ( cor0.col2 ) * - col2 + - ( 81 ) AS col0 FROM tab0 AS cor0 ---- -80 1008 6643 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * col1 - + col2 col1 FROM tab1 AS cor0 ---- -1344 -1458 -627 query I rowsort SELECT DISTINCT - 14 + col2 FROM tab0 AS cor0 ---- -13 19 68 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6752 SELECT + CAST( NULL AS DECIMAL ) + + col2 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6752 SELECT + CAST ( NULL AS REAL ) + + col2 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col0 - col2 * col2 AS col0 FROM tab0 cor0 ---- -1065 -6635 34 query I rowsort SELECT - + 65 + + 42 * - col2 AS col0 FROM tab2 AS cor0 ---- -1157 -1199 -1661 query I rowsort SELECT - - col1 * cor0.col2 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT - col2 * + col2 + col1 AS col1 FROM tab0 cor0 ---- -1003 -6633 96 query I rowsort SELECT col2 * - col2 + col2 * col0 FROM tab1 AS cor0 ---- -1536 -2754 399 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * ( - col1 ) + col0 col1 FROM tab1 AS cor0 ---- 164 249 679 query I rowsort SELECT 44 + - col1 + - tab0.col1 FROM tab0 ---- -128 -138 -150 query I rowsort SELECT DISTINCT + col1 * col1 - tab2.col0 * + ( + 87 ) FROM tab2 ---- -3305 -6584 352 query I rowsort SELECT + - 42 * col2 - col2 FROM tab0 AS cor0 ---- -1419 -3526 -43 query I rowsort SELECT - + col2 - col2 FROM tab0 cor0 ---- -164 -2 -66 query I rowsort SELECT DISTINCT - col2 * - col1 + - col2 * col0 AS col2 FROM tab1 AS cor0 ---- -3078 -6432 1242 onlyif mysql # use DIV operator for integer division query I rowsort label-6764 SELECT DISTINCT - 98 DIV col0 FROM tab0 AS cor0 ---- -1 -2 -4 skipif mysql # not compatible query I rowsort label-6764 SELECT DISTINCT - 98 / col0 FROM tab0 AS cor0 ---- -1 -2 -4 query I rowsort SELECT ALL - - cor0.col0 AS col2 FROM tab0 cor0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-6766 SELECT col2 DIV + col1 + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-6766 SELECT col2 / + col1 + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT + 71 AS col1 FROM tab2 AS cor0 ---- 71 query I rowsort SELECT + 92 + + col0 * - ( + col0 ) * + col1 AS col1 FROM tab0 AS cor0 ---- -118733 -49444 -720719 query I rowsort SELECT cor0.col2 + + col2 * 34 AS col1 FROM tab2 cor0 ---- 1330 910 945 query I rowsort SELECT ALL + 4 * + col0 FROM tab0 AS cor0 ---- 140 356 96 query I rowsort SELECT - + 54 + - col0 AS col0 FROM tab2 AS cor0 ---- -132 -133 -61 query I rowsort SELECT ALL - 17 AS col0 FROM tab0 ---- -17 -17 -17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - 74 col1 FROM tab1 AS cor0 ---- -222 -4736 -5920 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 + - col1 col0 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT - - cor0.col1 * - cor0.col2 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - col2 * ( - ( col1 ) ) * + col2 AS col1 FROM tab1 AS cor0 ---- 119808 32490 75816 query I rowsort SELECT - col1 + col1 * - ( + col1 ) AS col0 FROM tab2 cor0 ---- -306 -3540 -992 query I rowsort SELECT ALL cor0.col0 * + cor0.col1 * 6 AS col2 FROM tab0, tab1, tab0 cor0 ---- 27 values hashing to b13e98f8a6d4f8c4ad7cfc39b36ac72a query I rowsort SELECT col1 + - col0 * + col1 AS col1 FROM tab0 ---- -1978 -3298 -8008 query I rowsort SELECT + col2 + - 88 * col1 FROM tab2 AS cor0 ---- -1458 -2701 -5166 query I rowsort SELECT - + cor0.col0 * + cor0.col2 AS col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query IIIIIIIIIIIIIIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2, tab1 AS cor3 ---- 13122 values hashing to 99642d9202aa8708871961c498cbdd5f query I rowsort SELECT ALL - 94 - ( tab1.col2 ) * + tab1.col1 AS col2 FROM tab1, tab1 cor0 ---- 9 values hashing to be52d7eb610077e41d94b93cb4b44023 query I rowsort SELECT DISTINCT - + cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1, tab2, tab0 cor2 ---- -54 -57 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6785 SELECT DISTINCT - CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-6785 SELECT DISTINCT - CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- -54 -57 -96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6786 SELECT col1 * tab2.col2 + ( col2 ) - col0 * CAST( col2 AS SIGNED ) FROM tab2 ---- -2318 -468 675 skipif mysql # not compatible query I rowsort label-6786 SELECT col1 * tab2.col2 + ( col2 ) - col0 * CAST ( col2 AS INTEGER ) FROM tab2 ---- -2318 -468 675 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6787 SELECT col1 - - CAST( 93 AS SIGNED ) * col2 FROM tab1 AS cor0 ---- 5048 5311 8941 skipif mysql # not compatible query I rowsort label-6787 SELECT col1 - - CAST ( 93 AS INTEGER ) * col2 FROM tab1 AS cor0 ---- 5048 5311 8941 query I rowsort SELECT - + col0 - + cor0.col0 * - col1 FROM tab0 AS cor0 ---- 2040 3360 8010 query I rowsort SELECT ALL col2 * + 41 * - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -1435 -299218 -32472 query I rowsort SELECT DISTINCT + 98 - col2 FROM tab1 ---- 2 41 44 query I rowsort SELECT DISTINCT - col0 + col0 * + tab2.col0 AS col1 FROM tab2 ---- 42 6006 6162 query I rowsort SELECT + - col2 * - col0 - - col2 * - 64 FROM tab0 AS cor0 ---- -1320 -29 2050 query I rowsort SELECT + 53 - + col0 FROM tab0 ---- -36 18 29 query I rowsort SELECT col2 * + tab0.col2 + - 64 FROM tab0 ---- -63 1025 6660 query I rowsort SELECT + col2 + col0 + - col2 FROM tab2 ---- 7 78 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6796 SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-6796 SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2 ---- NULL query I rowsort SELECT ALL - cor0.col1 + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT ALL col1 + col0 * 59 AS col1 FROM tab1 ---- 203 3786 4733 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6799 SELECT CAST( NULL AS DECIMAL ) * - 26 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-6799 SELECT CAST ( NULL AS REAL ) * - 26 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b onlyif mysql # use DIV operator for integer division query I rowsort label-6800 SELECT col1 DIV + 16 FROM tab2 cor0 ---- 1 1 3 skipif mysql # not compatible query I rowsort label-6800 SELECT col1 / + 16 FROM tab2 cor0 ---- 1 1 3 query I rowsort SELECT ALL + col2 + ( - col1 ) * - col1 * + col2 FROM tab2 AS cor0 ---- 11020 25974 90532 query I rowsort SELECT ALL + col1 * col2 * col0 AS col0 FROM tab1 AS cor0 ---- 36480 4212 99840 onlyif mysql # use DIV operator for integer division query I rowsort label-6803 SELECT DISTINCT - cor0.col1 + + 0 DIV col0 col0 FROM tab1 AS cor0 ---- -10 -13 -26 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6803 SELECT DISTINCT - cor0.col1 + + 0 / col0 col0 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT + col1 * - 24 - + 13 AS col2 FROM tab0 AS cor0 ---- -2077 -2197 -2341 query I rowsort SELECT ALL - col2 + + col0 + + col0 FROM tab0 cor0 ---- 15 69 96 query I rowsort SELECT ALL + col1 * - 65 * + col2 + col1 AS col2 FROM tab2 AS cor0 ---- -41973 -54374 -99651 query I rowsort SELECT + col2 * cor0.col2 + - col2 * + col2 + 22 * - 17 AS col1 FROM tab1 AS cor0 ---- -374 -374 -374 query I rowsort SELECT - col0 + col2 * - 30 * + cor0.col2 FROM tab1 AS cor0 ---- -276560 -87483 -97534 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 50 col2 FROM tab1 AS cor0 ---- -50 -50 -50 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + col1 ) + - col0 * - 44 col1 FROM tab1 AS cor0 ---- 158 2826 3533 onlyif mysql # use DIV operator for integer division query I rowsort label-6811 SELECT ALL 53 + col2 * col0 * col1 - + col2 DIV - cor0.col0 FROM tab2 AS cor0 ---- 119705 51087 5915 skipif mysql # not compatible query I rowsort label-6811 SELECT ALL 53 + col2 * col0 * col1 - + col2 / - cor0.col0 FROM tab2 AS cor0 ---- 119705 51087 5915 query I rowsort SELECT - col2 + col0 * 27 AS col2 FROM tab1 AS cor0 ---- 1671 2064 27 query I rowsort SELECT ALL - + 88 * cor0.col1 - - col2 AS col2 FROM tab0 AS cor0 ---- -7535 -7926 -8535 query I rowsort SELECT ALL - 3 * col0 FROM tab1 AS cor0 ---- -192 -240 -9 onlyif mysql # use DIV operator for integer division query I rowsort label-6815 SELECT - col1 - col1 DIV ( - col2 + - col1 ) FROM tab2 cor0 ---- -17 -31 -59 skipif mysql # not compatible query I rowsort label-6815 SELECT - col1 - col1 / ( - col2 + - col1 ) FROM tab2 cor0 ---- -17 -31 -59 query IIIIIIIIIIII rowsort SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 cor1 ---- 972 values hashing to e610acd60f342127e6cdba18673d9f0e query I rowsort SELECT DISTINCT + 6 * + col2 AS col2 FROM tab0 cor0 ---- 198 492 6 query I rowsort SELECT + col2 * col0 * col1 AS col2 FROM tab0 AS cor0 ---- 3395 664118 68112 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6819 SELECT ALL - + 44 * - cor0.col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6819 SELECT ALL - + 44 * - cor0.col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 76 * col1 + + col0 col0 FROM tab0 AS cor0 ---- 6560 7005 7407 query I rowsort SELECT DISTINCT + 82 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 82 query I rowsort SELECT 6 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 5d1cb90ed58fa7573895d2f95b211821 query I rowsort SELECT ALL + ( col0 ) * - col0 AS col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT + cor0.col1 * + col1 AS col2 FROM tab2 cor0 ---- 289 3481 961 query I rowsort SELECT DISTINCT - 75 * + col2 FROM tab1 AS cor0 ---- -4050 -4275 -7200 onlyif mysql # use DIV operator for integer division query I rowsort label-6826 SELECT + + col1 DIV + col0 AS col0 FROM tab2 cor0 ---- 0 0 4 skipif mysql # not compatible query I rowsort label-6826 SELECT + + col1 / + col0 AS col0 FROM tab2 cor0 ---- 0 0 4 onlyif mysql # use DIV operator for integer division query I rowsort label-6827 SELECT ALL + + 37 DIV col1 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 78 8 81 skipif mysql # not compatible query I rowsort label-6827 SELECT ALL + + 37 / col1 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 78 8 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 * + col2 + col2 * + 14 col0 FROM tab0 cor0 ---- -5576 -627 13 query I rowsort SELECT - cor0.col0 + 82 * - ( - col0 ) AS col2 FROM tab0 AS cor0 ---- 1944 2835 7209 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT col0 - CAST ( + col1 AS REAL ) col1 FROM tab0 AS cor0 ---- -2 -62 -62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6831 SELECT DISTINCT col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-6831 SELECT DISTINCT col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT - col0 * + 79 - + col1 AS col0 FROM tab2 cor0 ---- -584 -6221 -6258 query I rowsort SELECT - + ( + 13 ) * col1 FROM tab0 AS cor0 ---- -1118 -1183 -1261 query I rowsort SELECT DISTINCT + - col2 * - 13 + col0 AS col0 FROM tab2 AS cor0 ---- 358 416 573 query I rowsort SELECT ALL + col2 + - col0 + col1 FROM tab1 AS cor0 ---- 29 3 77 query I rowsort SELECT ALL ( + 0 ) + + cor0.col2 AS col0 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT - 46 * + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -3956 -4186 -4462 query I rowsort SELECT DISTINCT 82 * 97 FROM tab1 AS cor0 ---- 7954 query I rowsort SELECT DISTINCT + 46 * col0 FROM tab2 AS cor0 ---- 322 3588 3634 query I rowsort SELECT tab0.col1 FROM tab0, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd onlyif mysql # use DIV operator for integer division query I rowsort label-6841 SELECT ALL CAST( + ( col1 ) AS SIGNED ) DIV - col2 AS col2 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6841 SELECT ALL CAST ( + ( col1 ) AS INTEGER ) / - col2 AS col2 FROM tab1 ---- 0 0 0 query I rowsort SELECT col0 * 75 * - col2 FROM tab1 ---- -12150 -273600 -576000 query I rowsort SELECT ALL - 27 * 29 FROM tab2 AS cor0 ---- -783 -783 -783 query I rowsort SELECT DISTINCT - col2 * - col2 + - 70 * + col2 FROM tab2 AS cor0 ---- -1144 -1161 -1216 query I rowsort SELECT DISTINCT + 93 AS col2 FROM tab0, tab1 cor0 ---- 93 query I rowsort SELECT - 32 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to ef8f93119983b962f4c81381ebf4b1e6 query I rowsort SELECT ALL 39 FROM tab2, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6848 SELECT + cor0.col1 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6848 SELECT + cor0.col1 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - - col1 * + 69 + - col1 FROM tab1 cor0 ---- 1768 680 884 query I rowsort SELECT + col1 * 39 AS col0 FROM tab1 ---- 1014 390 507 onlyif mysql # use DIV operator for integer division query I rowsort label-6851 SELECT 97 + + 29 DIV col2 AS col2 FROM tab0 ---- 126 97 97 skipif mysql # not compatible query I rowsort label-6851 SELECT 97 + + 29 / col2 AS col2 FROM tab0 ---- 126 97 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col1 * col1 col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT ALL + 49 + cor0.col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to ca39a2df60f5559cd03c4dc4a8b9eeb7 onlyif mysql # use DIV operator for integer division query I rowsort label-6854 SELECT ALL - col1 * + col0 + col0 DIV 59 AS col1 FROM tab2 AS cor0 ---- -1342 -217 -4601 skipif mysql # not compatible query I rowsort label-6854 SELECT ALL - col1 * + col0 + col0 / 59 AS col1 FROM tab2 AS cor0 ---- -1342 -217 -4601 query I rowsort SELECT cor0.col0 * col2 - - cor0.col2 AS col2 FROM tab0 AS cor0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-6856 SELECT cor0.col2 DIV - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -2 -5 -7 skipif mysql # not compatible query I rowsort label-6856 SELECT cor0.col2 / - cor0.col1 AS col2 FROM tab1 AS cor0 ---- -2 -5 -7 onlyif mysql # use DIV operator for integer division query I rowsort label-6857 SELECT DISTINCT - 6 DIV - col2 AS col1 FROM tab1 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-6857 SELECT DISTINCT - 6 / - col2 AS col1 FROM tab1 cor0 ---- 0 query I rowsort SELECT - col0 * col0 - - 69 * + col0 FROM tab0 AS cor0 ---- -1780 1080 1190 query I rowsort SELECT + col0 * - col2 + ( col1 ) * col0 AS col0 FROM tab1 cor0 ---- -3008 -6640 -84 onlyif mysql # use DIV operator for integer division query I rowsort label-6860 SELECT DISTINCT + cor0.col0 DIV col2 - 88 FROM tab1 AS cor0 ---- -87 -88 skipif mysql # not compatible query I rowsort label-6860 SELECT DISTINCT + cor0.col0 / col2 - 88 FROM tab1 AS cor0 ---- -87 -88 query I rowsort SELECT DISTINCT - ( col2 ) + ( col2 ) FROM tab2 AS cor0 ---- 0 query I rowsort SELECT ALL + ( col1 ) * - col0 AS col0 FROM tab2 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT - 76 FROM tab2, tab2 AS cor0, tab1 AS cor1 ---- -76 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6864 SELECT - + col0 * - CAST( 52 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0 ---- 29952 411892 63700 skipif mysql # not compatible query I rowsort label-6864 SELECT - + col0 * - CAST ( 52 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0 ---- 29952 411892 63700 query I rowsort SELECT ALL col1 * + 47 - - 28 FROM tab2 ---- 1485 2801 827 query I rowsort SELECT ALL col0 * + cor0.col1 + col1 AS col0 FROM tab1 cor0 ---- 104 1053 650 query I rowsort SELECT ALL + + col2 * - ( col1 ) + - col1 * cor0.col0 AS col1 FROM tab2 AS cor0 ---- -1054 -1989 -6136 query I rowsort SELECT ALL + cor0.col1 + col0 * 80 FROM tab0 AS cor0 ---- 2006 2897 7211 query I rowsort SELECT + col1 * col1 + col1 AS col2 FROM tab2 AS cor0 ---- 306 3540 992 query I rowsort SELECT + - col2 - + 46 AS col0 FROM tab1 AS cor0 ---- -100 -103 -142 query I rowsort SELECT + col0 * 66 - - col0 FROM tab0 AS cor0 ---- 1608 2345 5963 query I rowsort SELECT - - col1 * - 57 + 51 FROM tab0 cor0 ---- -4851 -5136 -5478 query I rowsort SELECT - cor0.col0 * + 45 + + col1 AS col2 FROM tab0 AS cor0 ---- -1478 -3914 -994 query I rowsort SELECT + col1 * - col0 + + 72 AS col2 FROM tab2 AS cor0 ---- -1271 -145 -4530 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6875 SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 col0 FROM tab0 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6875 SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 col0 FROM tab0 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-6876 SELECT ALL + + ( - col2 ) * cor0.col0 DIV - col1 col1 FROM tab1 AS cor0 ---- 364 590 6 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6876 SELECT ALL + + ( - col2 ) * cor0.col0 / - col1 col1 FROM tab1 AS cor0 ---- 364 590 6 query I rowsort SELECT + col0 + + col2 * col1 AS col1 FROM tab2 cor0 ---- 1612 725 844 query I rowsort SELECT - 26 + col2 * col1 FROM tab2 cor0 ---- 1508 620 811 query I rowsort SELECT - 71 * + cor0.col2 FROM tab0 AS cor0 ---- -2343 -5822 -71 query I rowsort SELECT - col1 * col1 * col0 AS col1 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT - cor0.col1 + col2 * - 81 AS col0 FROM tab1 AS cor0 ---- -4400 -4627 -7789 query I rowsort SELECT cor0.col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 query I rowsort SELECT ALL cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83 query I rowsort SELECT DISTINCT - ( + ( col2 ) ) + col0 AS col1 FROM tab0 cor0 ---- -9 34 7 query I rowsort SELECT ALL - col2 * 6 + col0 FROM tab2 AS cor0 ---- -149 -155 -78 query I rowsort SELECT - ( 25 ) + - col1 AS col1 FROM tab1 AS cor0 ---- -35 -38 -51 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + - ( - col2 * ( + 47 ) ) col1 FROM tab0 AS cor0 ---- -50 1465 3763 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6888 SELECT ALL - - CAST( - 50 AS SIGNED ) * + col2 + col1 col1 FROM tab1 AS cor0 ---- -2674 -2840 -4787 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6888 SELECT ALL - - CAST ( - 50 AS INTEGER ) * + col2 + col1 col1 FROM tab1 AS cor0 ---- -2674 -2840 -4787 query I rowsort SELECT DISTINCT + col2 * col1 * - cor0.col1 FROM tab0 AS cor0 ---- -244068 -679042 -9409 query I rowsort SELECT ALL + + col2 + - col1 AS col2 FROM tab1 AS cor0 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-6891 SELECT - 85 DIV + cor0.col2 FROM tab0 cor0 ---- -1 -2 -85 skipif mysql # not compatible query I rowsort label-6891 SELECT - 85 / + cor0.col2 FROM tab0 cor0 ---- -1 -2 -85 onlyif mysql # use DIV operator for integer division query I rowsort label-6892 SELECT ALL + col2 + + ( col1 ) DIV - col2 AS col0 FROM tab0 AS cor0 ---- -96 31 81 skipif mysql # not compatible query I rowsort label-6892 SELECT ALL + col2 + + ( col1 ) / - col2 AS col0 FROM tab0 AS cor0 ---- -96 31 81 query I rowsort SELECT DISTINCT + 13 * cor0.col0 + col2 AS col1 FROM tab0 AS cor0 ---- 1239 345 456 query I rowsort SELECT cor0.col0 * - ( + col0 ) FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT - 85 + - col1 * - cor0.col0 AS col2 FROM tab2 AS cor0 ---- 1258 132 4517 query I rowsort SELECT ALL col2 * - cor0.col0 + + col0 * col2 + col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + tab0.col1 AS col2 FROM tab0, tab0 cor0 ---- 9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc query I rowsort SELECT - - 70 * ( col1 ) AS col1 FROM tab1 AS cor0 ---- 1820 700 910 onlyif mysql # use DIV operator for integer division query I rowsort label-6899 SELECT - ( cor0.col2 ) + + col1 DIV - 74 AS col1 FROM tab0 cor0 ---- -2 -34 -83 skipif mysql # not compatible query I rowsort label-6899 SELECT - ( cor0.col2 ) + + col1 / - 74 AS col1 FROM tab0 cor0 ---- -2 -34 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-6900 SELECT DISTINCT 40 DIV ( - col1 ) AS col0 FROM tab2 AS cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-6900 SELECT DISTINCT 40 / ( - col1 ) AS col0 FROM tab2 AS cor0 ---- -1 -2 0 query I rowsort SELECT - - col0 + 15 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- 1024 1280 48 query I rowsort SELECT DISTINCT + 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 27 query I rowsort SELECT cor1.col2 FROM tab1, tab1 cor0, tab0, tab0 AS cor1 ---- 81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05 query I rowsort SELECT col2 + ( ( + col0 ) ) * - col2 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT DISTINCT - + col1 + col2 * col2 AS col0 FROM tab2 AS cor0 ---- 1427 617 698 query I rowsort SELECT DISTINCT - col1 + col0 * + col0 FROM tab0 AS cor0 ---- 1128 490 7830 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6907 SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) + ( + cor0.col2 ) col2 FROM tab2 cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6907 SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) + ( + cor0.col2 ) col2 FROM tab2 cor0 ---- NULL query I rowsort SELECT + + col2 + ( 79 ) FROM tab1 AS cor0 ---- 133 136 175 query I rowsort SELECT ALL - cor0.col1 * 18 AS col1 FROM tab0 AS cor0 ---- -1548 -1638 -1746 query I rowsort SELECT DISTINCT col0 * + ( - col0 * + col0 ) - 20 FROM tab0 AS cor0 ---- -13844 -42895 -704989 query I rowsort SELECT - col0 + + ( + col1 ) AS col1 FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT DISTINCT - col2 - ( - 2 ) FROM tab2 AS cor0 ---- -24 -25 -36 query I rowsort SELECT + + col2 * ( + col2 ) + col0 AS col0 FROM tab2 cor0 ---- 1523 736 754 query I rowsort SELECT DISTINCT col1 * - 67 FROM tab0 AS cor0 ---- -5762 -6097 -6499 onlyif mysql # use DIV operator for integer division query I rowsort label-6915 SELECT DISTINCT - - col0 DIV - cor0.col0 FROM tab1 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-6915 SELECT DISTINCT - - col0 / - cor0.col0 FROM tab1 AS cor0 ---- -1 onlyif mysql # use DIV operator for integer division query I rowsort label-6916 SELECT + col2 + - col2 DIV - col1 AS col2 FROM tab2 AS cor0 ---- 26 27 40 skipif mysql # not compatible query I rowsort label-6916 SELECT + col2 + - col2 / - col1 AS col2 FROM tab2 AS cor0 ---- 26 27 40 query I rowsort SELECT + col2 + col0 * - col2 FROM tab2 cor0 ---- -162 -2002 -2964 query I rowsort SELECT ALL col2 * + cor0.col0 + col0 * 37 - - col1 * - col2 FROM tab0 cor0 ---- -1158 1233 3129 query I rowsort SELECT ALL - col1 * - col1 - + col1 AS col2 FROM tab2 AS cor0 ---- 272 3422 930 query I rowsort SELECT DISTINCT + cor0.col1 + + col0 + + col2 FROM tab2 AS cor0 ---- 134 163 65 query I rowsort SELECT DISTINCT + 51 AS col2 FROM tab2, tab0 AS cor0 ---- 51 query I rowsort SELECT DISTINCT - ( + col1 ) + col2 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT - - ( + 74 ) + + col1 AS col2 FROM tab0 cor0 ---- 160 165 171 query I rowsort SELECT DISTINCT - - ( + col1 ) * - col1 + col2 * ( col0 ) * col2 AS col2 FROM tab2 AS cor0 ---- 113787 4142 49247 query I rowsort SELECT tab0.col1 + - 76 * col0 AS col2 FROM tab0 ---- -1738 -2563 -6673 query I rowsort SELECT - col0 * 7 AS col1 FROM tab0 AS cor0 ---- -168 -245 -623 query I rowsort SELECT + col1 + 38 * + col1 AS col0 FROM tab2 AS cor0 ---- 1209 2301 663 query I rowsort SELECT DISTINCT + 67 * - col0 FROM tab1 AS cor0 ---- -201 -4288 -5360 onlyif mysql # use DIV operator for integer division query I rowsort label-6929 SELECT DISTINCT + col1 * cor0.col0 DIV + col1 AS col2 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-6929 SELECT DISTINCT + col1 * cor0.col0 / + col1 AS col2 FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6930 SELECT - + col2 + + col1 * - CAST( NULL AS SIGNED ) - col0 col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6930 SELECT - + col2 + + col1 * - CAST ( NULL AS INTEGER ) - col0 col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 38 + col0 FROM tab1 ---- 102 118 41 query I rowsort SELECT + col1 + col1 * + col0 * col0 AS col1 FROM tab0 ---- 118922 49622 720902 query I rowsort SELECT + + col1 * - cor0.col0 AS col2 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT col0 * 45 AS col1 FROM tab1 ---- 135 2880 3600 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 15 + col0 col1 FROM tab1 cor0 ---- -12 49 65 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6936 SELECT - 81 + - col0 / CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-6936 SELECT - 81 + - col0 / CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - col0 + + cor0.col1 * + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT + 73 - 51 FROM tab0, tab2 cor0, tab2 cor1 ---- 27 values hashing to 7dda382e7c08428abac8600fd696eb3e query I rowsort SELECT + 85 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7 query I rowsort SELECT - col1 * - 62 FROM tab2 cor0 ---- 1054 1922 3658 query I rowsort SELECT ALL - cor0.col0 + 36 AS col0 FROM tab2 AS cor0 ---- -42 -43 29 query I rowsort SELECT DISTINCT - - col0 * - 59 FROM tab2 AS cor0 ---- -413 -4602 -4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * + ( + col0 * + col0 ) col1 FROM tab0 cor0 ---- 118825 49536 720811 query I rowsort SELECT ALL + 69 + col1 AS col1 FROM tab2 ---- 100 128 86 query I rowsort SELECT + col1 * - tab2.col0 * - col1 FROM tab2 ---- 22831 271518 6727 query I rowsort SELECT col2 - - tab1.col0 AS col1 FROM tab1 ---- 121 176 57 query I rowsort SELECT col0 - + col0 * col0 AS col2 FROM tab2 ---- -42 -6006 -6162 query I rowsort SELECT DISTINCT 48 + tab0.col2 FROM tab0 ---- 130 49 81 onlyif mysql # use DIV operator for integer division query I rowsort label-6949 SELECT DISTINCT 30 DIV col2 + ( col2 ) * col1 AS col1 FROM tab1 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-6949 SELECT DISTINCT 30 / col2 + ( col2 ) * col1 AS col1 FROM tab1 ---- 1248 1404 570 query I rowsort SELECT DISTINCT 35 * 3 AS col0 FROM tab1 ---- 105 onlyif mysql # use DIV operator for integer division query I rowsort label-6951 SELECT - col2 DIV ( col2 ) AS col1 FROM tab0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-6951 SELECT - col2 / ( col2 ) AS col1 FROM tab0 ---- -1 -1 -1 query IIIIIIIII rowsort SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1 AS cor1 ---- 243 values hashing to 9ed1a6a444254225f040123c46b7f70c query I rowsort SELECT DISTINCT + - 74 * + col0 AS col1 FROM tab0 AS cor0 ---- -1776 -2590 -6586 query I rowsort SELECT DISTINCT cor0.col0 * 0 FROM tab1 AS cor0 ---- 0 query I rowsort SELECT - 71 * 86 * col0 AS col0 FROM tab0 AS cor0 ---- -146544 -213710 -543434 query I rowsort SELECT DISTINCT + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- 26 27 38 query I rowsort SELECT - cor0.col2 + - col1 * - col2 FROM tab2 AS cor0 ---- 1508 608 810 query IIIIII rowsort SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) <> NULL ---- query I rowsort SELECT 97 FROM tab1, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to c73fa6978df8525c99d6bc792bb27123 query I rowsort SELECT col1 + ( + 33 ) * col1 AS col0 FROM tab2 ---- 1054 2006 578 query I rowsort SELECT DISTINCT col0 * 61 FROM tab1 ---- 183 3904 4880 query I rowsort SELECT + 57 * + col0 FROM tab1 AS cor0 ---- 171 3648 4560 query I rowsort SELECT DISTINCT + col2 * - col2 + col0 FROM tab1 cor0 ---- -2913 -3185 -9136 query I rowsort SELECT DISTINCT cor0.col2 AS col2 FROM tab0, tab0 cor0, tab2 AS cor1 ---- 1 33 82 query I rowsort SELECT ALL - 17 + + col1 + col2 * + col1 AS col2 FROM tab2 cor0 ---- 1576 646 851 query I rowsort SELECT + col2 * 53 AS col2 FROM tab1 AS cor0 ---- 2862 3021 5088 query I rowsort SELECT 15 FROM tab2, tab1 cor0 ---- 9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd onlyif mysql # use DIV operator for integer division query I rowsort label-6968 SELECT ALL + - col0 DIV - ( col2 ) + col1 * col1 FROM tab1 AS cor0 ---- 101 169 676 skipif mysql # not compatible query I rowsort label-6968 SELECT ALL + - col0 / - ( col2 ) + col1 * col1 FROM tab1 AS cor0 ---- 101 169 676 onlyif mysql # use DIV operator for integer division query I rowsort label-6969 SELECT ALL - CAST( + col2 AS SIGNED ) DIV col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-6969 SELECT ALL - CAST ( + col2 AS INTEGER ) / col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT ALL + ( + 12 ) * col1 AS col2 FROM tab2 ---- 204 372 708 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT + ( - ( + cor0.col0 ) ) + col1 FROM tab2 cor0 ---- -19 -62 24 query I rowsort SELECT ALL + col1 * - 98 AS col0 FROM tab1 ---- -1274 -2548 -980 onlyif mysql # use DIV operator for integer division query I rowsort label-6974 SELECT ALL col1 DIV 10 FROM tab2 ---- 1 3 5 skipif mysql # not compatible query I rowsort label-6974 SELECT ALL col1 / 10 FROM tab2 ---- 1 3 5 query I rowsort SELECT + ( + 36 ) * + col0 - + col0 * - col2 FROM tab2 ---- 441 4836 5846 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 88 * col2 col0 FROM tab0 ---- 2904 7216 88 query I rowsort SELECT DISTINCT - col1 * 22 + col2 * cor0.col1 + col1 AS col0 FROM tab1 cor0 ---- 360 858 975 query I rowsort SELECT 14 * col2 AS col1 FROM tab0 ---- 1148 14 462 query I rowsort SELECT + 42 + - col1 FROM tab0 AS cor0 ---- -44 -49 -55 query I rowsort SELECT - - cor0.col2 + cor0.col1 * col0 AS col1 FROM tab1 cor0 ---- 1136 132 697 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 + - col0 * - 94 col2 FROM tab2 AS cor0 ---- 685 7358 7464 query I rowsort SELECT col2 * - 13 FROM tab2 AS cor0 ---- -338 -351 -494 query I rowsort SELECT col1 * - col1 * - ( col0 ) AS col2 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT - + 24 * - col0 FROM tab1 AS cor0 ---- 1536 1920 72 query I rowsort SELECT ALL + + col2 + + cor0.col1 AS col0 FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT ALL + - 46 * - col1 FROM tab2 AS cor0 ---- 1426 2714 782 onlyif mysql # use DIV operator for integer division query I rowsort label-6987 SELECT col0 + cor0.col1 DIV col1 FROM tab0 AS cor0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-6987 SELECT col0 + cor0.col1 / col1 FROM tab0 AS cor0 ---- 25 36 90 query I rowsort SELECT ALL + + 17 + col2 FROM tab2 AS cor0 ---- 43 44 55 query I rowsort SELECT + col2 + - 6 FROM tab1 AS cor0 ---- 48 51 90 query I rowsort SELECT DISTINCT - - col1 + - ( + col0 ) FROM tab0 cor0 ---- 2 62 onlyif mysql # use DIV operator for integer division query I rowsort label-6991 SELECT ALL - + col2 + - CAST( col0 * col2 AS SIGNED ) - + 33 DIV 72 col1 FROM tab1 AS cor0 ---- -216 -3705 -7776 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-6991 SELECT ALL - + col2 + - CAST ( col0 * col2 AS INTEGER ) - + 33 / 72 col1 FROM tab1 AS cor0 ---- -216 -3705 -7776 query I rowsort SELECT + col1 + - ( col0 ) FROM tab1 cor0 ---- -54 -67 23 query I rowsort SELECT ALL - + col1 + col1 * - 7 FROM tab1 AS cor0 ---- -104 -208 -80 onlyif mysql # use DIV operator for integer division query I rowsort label-6994 SELECT DISTINCT - + col2 + col1 DIV + cor0.col1 + - col1 FROM tab2 AS cor0 ---- -54 -57 -84 skipif mysql # not compatible query I rowsort label-6994 SELECT DISTINCT - + col2 + col1 / + cor0.col1 + - col1 FROM tab2 AS cor0 ---- -54 -57 -84 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6995 SELECT DISTINCT - + col0 + + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-6995 SELECT DISTINCT - + col0 + + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 cor0 ---- NULL query I rowsort SELECT DISTINCT - col1 * + 12 + col1 FROM tab0 AS cor0 ---- -1001 -1067 -946 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-6997 SELECT ALL - col1 * CAST( - col2 * col0 AS SIGNED ) - - col0 FROM tab1 AS cor0 ---- 36544 4215 99920 skipif mysql # not compatible query I rowsort label-6997 SELECT ALL - col1 * CAST ( - col2 * col0 AS INTEGER ) - - col0 FROM tab1 AS cor0 ---- 36544 4215 99920 query I rowsort SELECT DISTINCT + cor0.col1 * - ( - col0 ) FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT 65 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 65 query I rowsort SELECT 54 - col1 FROM tab0 ---- -32 -37 -43 query I rowsort SELECT col2 + - 99 AS col0 FROM tab1 AS cor0 ---- -3 -42 -45 query I rowsort SELECT DISTINCT - + col0 + - col0 * col2 AS col1 FROM tab1 AS cor0 ---- -165 -3712 -7760 query I rowsort SELECT - - 77 * cor0.col2 AS col2 FROM tab0 cor0 ---- 2541 6314 77 query I rowsort SELECT DISTINCT - col1 * - cor0.col1 * - col0 FROM tab0 AS cor0 ---- -177504 -329315 -737009 onlyif mysql # use DIV operator for integer division query I rowsort label-7005 SELECT + 39 DIV - cor0.col1 FROM tab2 AS cor0 ---- -1 -2 0 skipif mysql # not compatible query I rowsort label-7005 SELECT + 39 / - cor0.col1 FROM tab2 AS cor0 ---- -1 -2 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7006 SELECT ALL 24 DIV 36 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7006 SELECT ALL 24 / 36 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7007 SELECT DISTINCT col0 + + cor0.col0 DIV - col2 AS col2 FROM tab0 AS cor0 ---- 0 24 88 skipif mysql # not compatible query I rowsort label-7007 SELECT DISTINCT col0 + + cor0.col0 / - col2 AS col2 FROM tab0 AS cor0 ---- 0 24 88 query I rowsort SELECT ALL - ( cor0.col1 ) * - col0 AS col2 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT DISTINCT 34 + cor0.col0 AS col2 FROM tab1 AS cor0 ---- 114 37 98 onlyif mysql # use DIV operator for integer division query I rowsort label-7010 SELECT + 19 + 71 DIV - col1 AS col1 FROM tab0 AS cor0 ---- 19 19 19 skipif mysql # not compatible query I rowsort label-7010 SELECT + 19 + 71 / - col1 AS col1 FROM tab0 AS cor0 ---- 19 19 19 query I rowsort SELECT DISTINCT 19 AS col0 FROM tab2 cor0 ---- 19 query I rowsort SELECT DISTINCT + 91 * - col0 + col2 FROM tab2 AS cor0 ---- -610 -7072 -7151 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 87 col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to fa0cdd86483844cda3bb806e032d5c64 query I rowsort SELECT - 78 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1 ---- 27 values hashing to c4f3c63f98c3c08f2848f46850a476d4 onlyif mysql # use DIV operator for integer division query I rowsort label-7015 SELECT col1 DIV - col0 + - col1 * 32 col2 FROM tab2 ---- -1888 -544 -996 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7015 SELECT col1 / - col0 + - col1 * 32 col2 FROM tab2 ---- -1888 -544 -996 query I rowsort SELECT ( 22 + - tab0.col1 ) AS col1 FROM tab0 ---- -64 -69 -75 query I rowsort SELECT - 37 + - 52 * col2 FROM tab0 AS cor0 ---- -1753 -4301 -89 query I rowsort SELECT col0 * 93 + col0 FROM tab1 AS cor0 ---- 282 6016 7520 query I rowsort SELECT + col2 * 55 AS col0 FROM tab2 ---- 1430 1485 2090 query I rowsort SELECT 20 - 34 AS col0 FROM tab2 ---- -14 -14 -14 query I rowsort SELECT + 44 + col0 + col1 FROM tab2 ---- 140 181 82 query I rowsort SELECT 27 + col2 * 26 FROM tab0 AS cor0 ---- 2159 53 885 query I rowsort SELECT + - cor0.col0 * - col1 + + col2 FROM tab1 cor0 ---- 1136 132 697 query I rowsort SELECT + - 19 * - col0 + + 12 AS col0 FROM tab2 AS cor0 ---- 145 1494 1513 onlyif mysql # use DIV operator for integer division query I rowsort label-7025 SELECT + cor0.col0 DIV cor0.col1 + + 69 * col2 * col2 + col1 * col1 FROM tab1 cor0 ---- 201880 224287 636079 skipif mysql # not compatible query I rowsort label-7025 SELECT + cor0.col0 / cor0.col1 + + 69 * col2 * col2 + col1 * col1 FROM tab1 cor0 ---- 201880 224287 636079 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 6 * - tab2.col2 * + col0 col1 FROM tab2 ---- -1134 -12168 -18012 query I rowsort SELECT DISTINCT - 64 + - col2 FROM tab1 ---- -118 -121 -160 query I rowsort SELECT ALL ( - col1 ) * - col2 * + tab2.col2 + 28 * tab2.col0 + col0 FROM tab2 ---- 22802 26839 42146 query I rowsort SELECT - - 46 * + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1196 1242 1748 query I rowsort SELECT ALL + + 92 * + col1 FROM tab2 AS cor0 ---- 1564 2852 5428 query I rowsort SELECT ALL 10 * col1 FROM tab1 AS cor0 ---- 100 130 260 query I rowsort SELECT ALL - + col1 * + col1 AS col1 FROM tab0 cor0 ---- -7396 -8281 -9409 query I rowsort SELECT + - col1 + - col1 * col0 AS col0 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT DISTINCT + 35 * - col2 + col2 FROM tab1 AS cor0 ---- -1836 -1938 -3264 query I rowsort SELECT ALL - col2 * + col1 + - col1 AS col1 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT ALL - + col0 + - 23 + col0 FROM tab0 AS cor0 ---- -23 -23 -23 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7037 SELECT ALL + col2 * 9 * + 38 + + col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7037 SELECT ALL + col2 * 9 * + 38 + + col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7038 SELECT - - col0 * - CAST( + 53 AS SIGNED ) FROM tab0 AS cor0 ---- -1272 -1855 -4717 skipif mysql # not compatible query I rowsort label-7038 SELECT - - col0 * - CAST ( + 53 AS INTEGER ) FROM tab0 AS cor0 ---- -1272 -1855 -4717 query I rowsort SELECT DISTINCT col1 * 49 + 51 * col0 FROM tab0 AS cor0 ---- 5438 6538 8998 query I rowsort SELECT ALL - 53 * + ( - col2 ) + - ( col1 ) AS col0 FROM tab1 AS cor0 ---- 2836 3011 5075 query I rowsort SELECT DISTINCT + col1 * 48 - - col0 * col1 FROM tab1 AS cor0 ---- 1120 1326 1664 query I rowsort SELECT ALL - 95 + + col1 AS col1 FROM tab2 AS cor0 ---- -36 -64 -78 query I rowsort SELECT 87 * cor0.col2 AS col1 FROM tab1 AS cor0 ---- 4698 4959 8352 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - - cor0.col1 - col2 col0 FROM tab0 AS cor0 ---- 53 9 96 onlyif mysql # use DIV operator for integer division query I rowsort label-7045 SELECT ALL - col2 * col2 DIV - cor0.col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-7045 SELECT ALL - col2 * col2 / - cor0.col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT - - col2 - cor0.col2 * col0 FROM tab1 AS cor0 ---- -108 -3591 -7584 query I rowsort SELECT ALL + col1 * - col0 * + ( + cor0.col0 ) + col1 + - 55 AS col0 FROM tab0 AS cor0 ---- -118783 -49505 -720775 query I rowsort SELECT ALL - col0 * 60 FROM tab0 cor0 ---- -1440 -2100 -5340 query I rowsort SELECT DISTINCT - - col2 + - ( 95 ) AS col0 FROM tab1 AS cor0 ---- -38 -41 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7050 SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7050 SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL query I rowsort SELECT - - 89 AS col0 FROM tab1 AS cor0 ---- 89 89 89 query I rowsort SELECT DISTINCT + ( - 28 ) * - col2 AS col1 FROM tab2 AS cor0 ---- 1064 728 756 query I rowsort SELECT + - ( cor0.col1 ) + col2 AS col0 FROM tab2 AS cor0 ---- -33 -4 21 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 56 col0 FROM tab2 AS cor0 ---- -56 query I rowsort SELECT + 26 AS col2 FROM tab2 ---- 26 26 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7056 SELECT ALL + 61 * + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7056 SELECT ALL + 61 * + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col1 + + 15 AS col2 FROM tab0 AS cor0 ---- 101 106 112 query I rowsort SELECT + + col1 * ( col2 ) FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT DISTINCT 63 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 63 query I rowsort SELECT - - col1 + 3 * + col0 AS col2 FROM tab2 AS cor0 ---- 254 293 52 query I rowsort SELECT + col1 * ( + col2 + - col2 ) AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - - col1 * 21 AS col2 FROM tab1 AS cor0 ---- 210 273 546 query I rowsort SELECT DISTINCT - 59 + col0 AS col2 FROM tab2 AS cor0 ---- -52 19 20 query I rowsort SELECT DISTINCT + 60 * 50 AS col0 FROM tab2 AS cor0 ---- 3000 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 36 col2 FROM tab0 cor0 ---- 36 36 36 query I rowsort SELECT DISTINCT ( col0 ) * + col1 * col0 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT + col0 * ( + col0 ) AS col1 FROM tab2 ---- 49 6084 6241 query I rowsort SELECT + 26 + col2 FROM tab1 AS cor0 ---- 122 80 83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - cor0.col1 * col1 col0 FROM tab0 AS cor0 ---- -7396 -8281 -9409 onlyif mysql # use DIV operator for integer division query I rowsort label-7070 SELECT col0 DIV 63 FROM tab1 ---- 0 1 1 skipif mysql # not compatible query I rowsort label-7070 SELECT col0 / 63 FROM tab1 ---- 0 1 1 query I rowsort SELECT - + cor0.col0 + - col1 AS col0 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT ALL + col1 * - col2 * tab0.col2 FROM tab0 ---- -611884 -93654 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7073 SELECT ALL CAST( + col0 AS SIGNED ) * col1 + col0 FROM tab1 ---- 1120 704 81 skipif mysql # not compatible query I rowsort label-7073 SELECT ALL CAST ( + col0 AS INTEGER ) * col1 + col0 FROM tab1 ---- 1120 704 81 query I rowsort SELECT ALL ( 52 * col0 + - col1 ) AS col1 FROM tab1 ---- 130 3318 4147 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col1 - ( + col0 ) * + col0 * + 62 col0 FROM tab1 AS cor0 ---- -253885 -396691 -478 query I rowsort SELECT ALL + 48 - - col2 FROM tab2 ---- 74 75 86 query I rowsort SELECT ALL - col2 + col1 * + col0 FROM tab2 ---- 1305 190 4576 query I rowsort SELECT DISTINCT - col2 * col1 + col1 AS col2 FROM tab2 ---- -1475 -629 -806 query I rowsort SELECT DISTINCT + tab2.col0 * - col2 + - col2 * tab2.col1 AS col2 FROM tab2 ---- -1026 -3562 -3648 query I rowsort SELECT ALL - col0 + col0 * - tab0.col2 AS col0 FROM tab0 ---- -70 -7387 -816 query I rowsort SELECT col2 * col0 + + col2 FROM tab1 ---- 216 3705 7776 onlyif mysql # use DIV operator for integer division query I rowsort label-7082 SELECT col0 * col2 DIV tab1.col0 + col2 AS col2 FROM tab1 ---- 108 114 192 skipif mysql # not compatible query I rowsort label-7082 SELECT col0 * col2 / tab1.col0 + col2 AS col2 FROM tab1 ---- 108 114 192 query I rowsort SELECT DISTINCT + col2 + col2 * col1 AS col2 FROM tab2 ---- 1560 684 864 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col2 + - col1 col0 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT + col1 * - col2 * col0 + - cor0.col1 FROM tab1 AS cor0 ---- -36490 -4238 -99853 query I rowsort SELECT ALL - + col2 + col2 AS col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - col2 - + col0 AS col0 FROM tab0 AS cor0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-7088 SELECT DISTINCT + + cor0.col2 + col1 DIV col2 AS col1 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-7088 SELECT DISTINCT + + cor0.col2 + col1 / col2 AS col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT ALL + cor0.col0 * col0 * + col2 FROM tab1 AS cor0 ---- 233472 486 614400 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * col0 - + col1 col2 FROM tab0 AS cor0 ---- 1128 490 7830 query I rowsort SELECT DISTINCT - + col2 * col1 * col1 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT col0 * - col0 + cor0.col2 * + col2 AS col2 FROM tab1 AS cor0 ---- -847 2816 2907 query I rowsort SELECT ALL + - col0 * - cor0.col0 + col2 FROM tab2 AS cor0 ---- 6110 6279 76 query I rowsort SELECT ALL - col2 * - cor0.col2 + + col1 AS col1 FROM tab1 AS cor0 ---- 2942 3259 9229 query I rowsort SELECT ALL - - col2 * col2 * - col0 AS col1 FROM tab2 AS cor0 ---- -114076 -5103 -52728 query I rowsort SELECT - col2 + col0 + - col1 FROM tab0 AS cor0 ---- -63 -84 -95 query I rowsort SELECT + ( col0 ) + col0 * col1 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT + col2 + + col2 * col2 + - col1 AS col0 FROM tab0 cor0 ---- -95 1036 6715 onlyif mysql # use DIV operator for integer division query I rowsort label-7099 SELECT + col1 DIV col2 - + col1 * - col1 FROM tab0 AS cor0 ---- 7398 8282 9506 skipif mysql # not compatible query I rowsort label-7099 SELECT + col1 / col2 - + col1 * - col1 FROM tab0 AS cor0 ---- 7398 8282 9506 onlyif mysql # use DIV operator for integer division query I rowsort label-7100 SELECT DISTINCT + ( col0 ) DIV + cor0.col0 FROM tab0 AS cor0 ---- 1 skipif mysql # not compatible query I rowsort label-7100 SELECT DISTINCT + ( col0 ) / + cor0.col0 FROM tab0 AS cor0 ---- 1 onlyif mysql # use DIV operator for integer division query I rowsort label-7101 SELECT - ( col2 ) DIV col0 AS col1 FROM tab2 AS cor0 ---- -3 0 0 skipif mysql # not compatible query I rowsort label-7101 SELECT - ( col2 ) / col0 AS col1 FROM tab2 AS cor0 ---- -3 0 0 query I rowsort SELECT DISTINCT - + col1 * col1 + - col1 AS col0 FROM tab2 cor0 ---- -306 -3540 -992 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col1 + col2 col0 FROM tab2 AS cor0 ---- 55 58 85 query I rowsort SELECT + col1 * + col2 + - col0 FROM tab1 cor0 ---- 1168 1401 506 query I rowsort SELECT col1 * col1 + + col0 AS col0 FROM tab2 ---- 3559 368 968 query I rowsort SELECT col1 + + tab0.col0 * col0 * + col2 AS col1 FROM tab0 ---- 1322 19094 649613 query I rowsort SELECT ALL - col1 * col1 * + col0 - - col1 AS col1 FROM tab1 ---- -13507 -2002 -6390 onlyif mysql # use DIV operator for integer division query I rowsort label-7108 SELECT col0 DIV col1 + col0 AS col0 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-7108 SELECT col0 / col1 + col0 AS col0 FROM tab0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-7109 SELECT - tab0.col2 DIV col2 - - tab0.col1 AS col0 FROM tab0 ---- 85 90 96 skipif mysql # not compatible query I rowsort label-7109 SELECT - tab0.col2 / col2 - - tab0.col1 AS col0 FROM tab0 ---- 85 90 96 query I rowsort SELECT ALL - tab1.col2 * - col1 AS col2 FROM tab1 WHERE - col2 IN ( col2 * + col1 ) ---- query III rowsort SELECT * FROM tab1 WHERE ( NULL ) BETWEEN + col0 AND col0 ---- query III rowsort SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1 ---- query I rowsort SELECT DISTINCT - col2 + col1 + col1 * - col2 AS col2 FROM tab0 ---- -1 -2785 -7453 query I rowsort SELECT + col2 + col0 * col2 + col1 FROM tab1 ---- 242 3715 7789 query I rowsort SELECT DISTINCT col2 * col0 * + col0 + - col2 + - col0 FROM tab1 ---- 233351 429 614224 query I rowsort SELECT DISTINCT col0 + col0 + + col1 AS col0 FROM tab1 ---- 138 173 32 onlyif mysql # use DIV operator for integer division query I rowsort label-7117 SELECT col0 * col1 DIV col0 AS col2 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-7117 SELECT col0 * col1 / col0 AS col2 FROM tab0 ---- 86 91 97 onlyif mysql # use DIV operator for integer division query I rowsort label-7118 SELECT ALL + tab0.col2 DIV col2 + - col2 + col0 * - tab0.col2 AS col0 FROM tab0 ---- -35 -7379 -824 skipif mysql # not compatible query I rowsort label-7118 SELECT ALL + tab0.col2 / col2 + - col2 + col0 * - tab0.col2 AS col0 FROM tab0 ---- -35 -7379 -824 query I rowsort SELECT ALL col2 * + col0 * - col1 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT - + cor0.col2 + - col1 * - col2 AS col0 FROM tab2 AS cor0 ---- 1508 608 810 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - ( 76 ) * - cor0.col0 col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 178b3e0ee15057d04451026d55623cc0 query I rowsort SELECT ALL + col2 + + col1 + - col1 * - col1 FROM tab1 ---- 167 278 756 query I rowsort SELECT - tab2.col1 * + col0 - - col0 AS col1 FROM tab2 ---- -1264 -210 -4524 onlyif mysql # use DIV operator for integer division query I rowsort label-7124 SELECT - tab1.col0 DIV - col1 + - tab1.col1 FROM tab1 ---- -26 -4 -7 skipif mysql # not compatible query I rowsort label-7124 SELECT - tab1.col0 / - col1 + - tab1.col1 FROM tab1 ---- -26 -4 -7 query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= ( + col0 + col2 ) ---- query I rowsort SELECT ALL + col2 - tab2.col0 AS col1 FROM tab2 ---- -41 -52 20 query I rowsort SELECT DISTINCT - col0 * + col1 + - col1 FROM tab0 ---- -2150 -3492 -8190 query I rowsort SELECT DISTINCT + tab1.col1 + + col0 AS col2 FROM tab1 ---- 29 74 93 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND ( col1 + + col0 ) ---- query I rowsort SELECT col1 * - col2 - col1 AS col0 FROM tab1 ---- -1261 -1430 -580 onlyif mysql # use DIV operator for integer division query I rowsort label-7131 SELECT tab1.col0 DIV col0 + col1 * - col1 AS col1 FROM tab1 ---- -168 -675 -99 skipif mysql # not compatible query I rowsort label-7131 SELECT tab1.col0 / col0 + col1 * - col1 AS col1 FROM tab1 ---- -168 -675 -99 query I rowsort SELECT tab2.col2 FROM tab2 AS cor0 CROSS JOIN tab2 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT col2 * col2 + col1 * - col1 AS col1 FROM tab2 ---- -232 -2805 1155 query I rowsort SELECT ALL col2 * col2 + - col1 AS col1 FROM tab1 AS cor0 ---- 2890 3239 9203 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * col0 + + col1 * - cor0.col0 / + col0 + + col2 BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT + col2 * + col2 + - col0 AS col1 FROM tab1 ---- 2913 3185 9136 query I rowsort SELECT ALL - col0 * col2 - tab0.col0 AS col2 FROM tab0 ---- -70 -7387 -816 query I rowsort SELECT col1 * + col1 / tab2.col0 AS col0 FROM tab2 WHERE - col2 BETWEEN ( - col1 + col2 * col0 ) AND ( NULL ) ---- query I rowsort SELECT - tab2.col0 + - tab2.col2 * - col1 AS col2 FROM tab2 ---- 1456 567 830 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT col1 * col1 <= NULL ---- query III rowsort SELECT ALL * FROM tab0 WHERE NOT + col2 * col2 BETWEEN - col1 AND NULL ---- query I rowsort SELECT DISTINCT + col2 * + col2 - tab0.col1 FROM tab0 ---- -96 1003 6633 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col1 col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to b234798d4706314ba14eaad539d0aa88 query I rowsort SELECT DISTINCT col1 * col0 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- 234 40960 83200 query I rowsort SELECT DISTINCT col0 * col1 + - col0 * col1 * - col0 AS col2 FROM tab0 AS cor0 ---- 122220 51600 728910 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - cor0.col1 ) ---- query I rowsort SELECT + 69 * - col2 AS col2 FROM tab2 AS cor0 ---- -1794 -1863 -2622 query I rowsort SELECT + col0 * col0 + col1 + ( col2 ) * 73 FROM tab0 AS cor0 ---- 1395 13998 3071 query I rowsort SELECT + col2 * - col0 + 74 AS col0 FROM tab2 AS cor0 ---- -115 -1954 -2928 query I rowsort SELECT - 88 * - col2 FROM tab0 AS cor0 ---- 2904 7216 88 query I rowsort SELECT DISTINCT - col0 * + 40 FROM tab0 ---- -1400 -3560 -960 query I rowsort SELECT DISTINCT + cor0.col0 * cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to ae10dfda2508149d338269366c35c584 query I rowsort SELECT - col0 * 63 FROM tab2 AS cor0 ---- -441 -4914 -4977 query I rowsort SELECT ( col2 ) * - 23 + - col0 FROM tab0 ---- -1975 -58 -783 query I rowsort SELECT - col2 * + cor0.col0 + - 9 AS col1 FROM tab0 AS cor0 ---- -44 -7307 -801 query I rowsort SELECT + 36 * 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 063b73dafa1115abe8d3a91e9f7972bc skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + + col2 col2 FROM tab2 ---- -41 -52 20 query I rowsort SELECT col1 * col0 + col0 FROM tab0 cor0 ---- 2088 3430 8188 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 + 46 col0 FROM tab1 ---- 56 59 72 query I rowsort SELECT DISTINCT + - 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 ---- -97 query I rowsort SELECT - 91 * + col0 FROM tab1 ---- -273 -5824 -7280 query I rowsort SELECT 25 * + tab1.col1 AS col0 FROM tab1 ---- 250 325 650 query I rowsort SELECT + 50 * + col0 AS col0 FROM tab2 ---- 350 3900 3950 query I rowsort SELECT DISTINCT 55 * - col0 * - col2 AS col0 FROM tab1 ---- 200640 422400 8910 onlyif mysql # use DIV operator for integer division query I rowsort label-7165 SELECT DISTINCT + 23 DIV + ( + col2 ) FROM tab1 ---- 0 skipif mysql # not compatible query I rowsort label-7165 SELECT DISTINCT + 23 / + ( + col2 ) FROM tab1 ---- 0 query I rowsort SELECT - cor0.col1 + col0 * cor0.col2 FROM tab2 AS cor0 ---- 158 1969 2985 onlyif mysql # use DIV operator for integer division query I rowsort label-7167 SELECT DISTINCT - cor0.col2 DIV + 23 col1 FROM tab2, tab2 AS cor0 ---- -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7167 SELECT DISTINCT - cor0.col2 / + 23 col1 FROM tab2, tab2 AS cor0 ---- -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + 27 col2 FROM tab2 AS cor0 ---- -32 -4 10 query I rowsort SELECT 4 - col1 AS col1 FROM tab0 cor0 ---- -82 -87 -93 query I rowsort SELECT DISTINCT 46 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1 ---- 46 query I rowsort SELECT + col2 * - col1 + - col1 AS col2 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT + ( - ( col1 ) ) + + 45 FROM tab2 AS cor0 ---- -14 14 28 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2 ---- 3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf query I rowsort SELECT 73 - - col2 FROM tab2 AS cor0 ---- 100 111 99 query I rowsort SELECT DISTINCT - 94 * + col1 AS col2 FROM tab2 AS cor0 ---- -1598 -2914 -5546 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + col1 + - ( tab2.col0 * col0 ) col1 FROM tab2 ---- -45 -6051 -6262 query I rowsort SELECT DISTINCT - ( col1 ) * 14 FROM tab1 AS cor0 ---- -140 -182 -364 query I rowsort SELECT ALL - col2 + - col0 + ( - col1 ) AS col0 FROM tab1 cor0 ---- -131 -189 -83 query I rowsort SELECT 93 * - col1 FROM tab2 AS cor0 ---- -1581 -2883 -5487 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 36 * col2 col2 FROM tab2 ---- 1368 936 972 query I rowsort SELECT + cor0.col2 + + 20 AS col0 FROM tab0 AS cor0 ---- 102 21 53 query I rowsort SELECT + + col2 + - col1 * - col2 AS col0 FROM tab0 cor0 ---- 2871 7544 98 query I rowsort SELECT ALL - col2 * cor0.col1 - - ( - col1 ) AS col1 FROM tab1 AS cor0 ---- -1261 -1430 -580 query I rowsort SELECT DISTINCT - col1 + - 32 - + col2 * col2 FROM tab0 AS cor0 ---- -1207 -130 -6847 query I rowsort SELECT col2 + + 84 * col0 FROM tab0 cor0 ---- 2049 2941 7558 query I rowsort SELECT ALL - + 98 * 73 - - col0 FROM tab0 AS cor0 ---- -7065 -7119 -7130 query I rowsort SELECT DISTINCT + + 71 * col0 * col0 FROM tab1 AS cor0 ---- 290816 454400 639 query I rowsort SELECT DISTINCT + - ( col0 ) + - col2 AS col1 FROM tab2 cor0 ---- -104 -117 -34 query I rowsort SELECT ALL + col0 - - col2 * + col1 AS col1 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT + col0 * 17 + col2 AS col1 FROM tab1 AS cor0 ---- 105 1145 1456 query I rowsort SELECT + col0 * - 22 + + col2 * 21 AS col2 FROM tab1 cor0 ---- -211 1068 256 query I rowsort SELECT DISTINCT ( + col2 ) + - col1 AS col0 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT ALL + ( 60 ) FROM tab1 AS cor0 ---- 60 60 60 query I rowsort SELECT + col2 * col1 - - col1 * col2 FROM tab1 AS cor0 ---- 1140 2496 2808 query I rowsort SELECT DISTINCT - cor0.col2 + + col2 AS col1 FROM tab2 cor0 ---- 0 query I rowsort SELECT ALL - + cor0.col0 * + ( + 29 ) AS col2 FROM tab2 AS cor0 ---- -203 -2262 -2291 onlyif mysql # use DIV operator for integer division query I rowsort label-7197 SELECT DISTINCT + + col0 DIV + 82 col2 FROM tab2 cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7197 SELECT DISTINCT + + col0 / + 82 col2 FROM tab2 cor0 ---- 0 query I rowsort SELECT 10 + + col0 - + ( col2 * - col0 ) AS col1 FROM tab0 ---- 7397 80 826 onlyif mysql # use DIV operator for integer division query I rowsort label-7199 SELECT - col1 + - col2 DIV col2 FROM tab0 ---- -87 -92 -98 skipif mysql # not compatible query I rowsort label-7199 SELECT - col1 + - col2 / col2 FROM tab0 ---- -87 -92 -98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7200 SELECT + CAST( NULL AS SIGNED ) - 15 AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-7200 SELECT + CAST ( NULL AS INTEGER ) - 15 AS col1 FROM tab1, tab0 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT ALL + 24 FROM tab1, tab0 AS cor0 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef query I rowsort SELECT tab2.col2 FROM tab2, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT + col2 * + col1 + 28 FROM tab0 ---- 125 2866 7490 onlyif mysql # use DIV operator for integer division query I rowsort label-7204 SELECT col0 DIV col1 + col0 + col1 FROM tab1 ---- 29 80 99 skipif mysql # not compatible query I rowsort label-7204 SELECT col0 / col1 + col0 + col1 FROM tab1 ---- 29 80 99 query I rowsort SELECT - col1 - 7 AS col1 FROM tab1 ---- -17 -20 -33 query I rowsort SELECT col1 + ( col1 ) + - col2 * + col0 * - col1 FROM tab1 ---- 36500 4264 99866 query I rowsort SELECT DISTINCT - col2 + + col2 + col0 FROM tab2 ---- 7 78 79 query I rowsort SELECT ALL tab1.col1 FROM tab1, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to d671a064e2da709ca4cdfea317b8e892 query I rowsort SELECT ALL - col1 + 5 FROM tab2 AS cor0 ---- -12 -26 -54 onlyif mysql # use DIV operator for integer division query I rowsort label-7210 SELECT ALL col2 DIV + 82 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-7210 SELECT ALL col2 / + 82 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT + 0 - cor0.col0 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT ALL col1 + 96 + col0 AS col2 FROM tab2 ---- 134 192 233 query I rowsort SELECT + 78 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to d8e5ef4db3419fc251e82c50ba04e048 query I rowsort SELECT ALL + ( col2 + + col2 ) * ( - 64 ) FROM tab0 ---- -10496 -128 -4224 query I rowsort SELECT ALL - 11 * + col1 FROM tab2 ---- -187 -341 -649 query I rowsort SELECT ALL - cor0.col0 + col1 * 93 FROM tab2 cor0 ---- 1502 2876 5409 query I rowsort SELECT DISTINCT - - 62 AS col1 FROM tab1 AS cor0 ---- 62 query I rowsort SELECT DISTINCT col0 + - col1 * - 51 + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 4443 4812 4983 onlyif mysql # use DIV operator for integer division query I rowsort label-7219 SELECT DISTINCT col1 DIV col0 + + 4 AS col2 FROM tab2 AS cor0 ---- 4 8 skipif mysql # not compatible query I rowsort label-7219 SELECT DISTINCT col1 / col0 + + 4 AS col2 FROM tab2 AS cor0 ---- 4 8 onlyif mysql # use DIV operator for integer division query I rowsort label-7220 SELECT DISTINCT - col2 DIV - col0 col0 FROM tab0 ---- 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7220 SELECT DISTINCT - col2 / - col0 col0 FROM tab0 ---- 0 1 query I rowsort SELECT DISTINCT + ( + col0 ) AS col2 FROM tab1 cor0 ---- 3 64 80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7222 SELECT ALL + - 42 * - col2 + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7222 SELECT ALL + - 42 * - col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + ( col1 ) * - cor0.col2 AS col1 FROM tab2 cor0 ---- -1534 -646 -837 query I rowsort SELECT DISTINCT + 98 + col2 AS col2 FROM tab0 AS cor0 ---- 131 180 99 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * + col2 + - 55 + - col0 col0 FROM tab2 AS cor0 ---- 127 1895 2868 query I rowsort SELECT DISTINCT ( col0 ) * + col1 FROM tab2 cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + col0 * col2 + - col0 * + col1 AS col1 FROM tab0 AS cor0 ---- -1272 -3360 -801 query I rowsort SELECT ALL - + cor0.col1 * 56 FROM tab1, tab2, tab0 AS cor0, tab0 ---- 81 values hashing to 5b445dedd379af65fa299a7799018663 query I rowsort SELECT 67 * cor0.col0 AS col0 FROM tab1 AS cor0 ---- 201 4288 5360 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col0 + - col1 * cor0.col0 col0 FROM tab1 AS cor0 ---- -1120 -704 -81 query I rowsort SELECT + cor0.col0 * + col1 * + col1 FROM tab1 AS cor0 ---- 13520 2028 6400 query I rowsort SELECT + + col2 + - 4 AS col2 FROM tab0 AS cor0 ---- -3 29 78 query I rowsort SELECT - + col0 * + col2 + col1 AS col0 FROM tab0 cor0 ---- -706 -7207 62 query I rowsort SELECT ALL col1 + + 14 AS col1 FROM tab2 cor0 ---- 31 45 73 query I rowsort SELECT DISTINCT - + col0 * - col0 + col2 * + col1 AS col0 FROM tab2 AS cor0 ---- 6887 7618 886 query I rowsort SELECT ALL + col0 + + col0 * col1 AS col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT col0 - - 41 * - col1 AS col0 FROM tab2 AS cor0 ---- -1264 -2341 -618 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col1 * + 83 * - col2 col1 FROM tab1 ---- -103488 -116478 -47253 query I rowsort SELECT ALL - 19 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 0fbbff28a7b63c37b01cf369f9325662 query I rowsort SELECT 86 * - col1 + + col2 FROM tab1 ---- -1022 -2182 -803 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7241 SELECT col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7241 SELECT col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 + + col1 * col0 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT DISTINCT + 33 * - 27 AS col2 FROM tab0 AS cor0 ---- -891 query I rowsort SELECT DISTINCT + 32 * + col2 FROM tab0 cor0 ---- 1056 2624 32 query I rowsort SELECT + + 82 + ( col2 * col0 ) FROM tab1 AS cor0 ---- 244 3730 7762 onlyif mysql # use DIV operator for integer division query I rowsort label-7246 SELECT ALL + col0 DIV col0 - col2 * - col0 * - col2 FROM tab0 AS cor0 ---- -26135 -34 -598435 skipif mysql # not compatible query I rowsort label-7246 SELECT ALL + col0 / col0 - col2 * - col0 * - col2 FROM tab0 AS cor0 ---- -26135 -34 -598435 query I rowsort SELECT - 79 * + 79 * - col1 FROM tab1 cor0 ---- 162266 62410 81133 query I rowsort SELECT DISTINCT + tab0.col2 * + 90 + 15 AS col0 FROM tab0 ---- 105 2985 7395 query I rowsort SELECT col0 * - 54 + - tab1.col1 * col1 AS col2 FROM tab1 ---- -3556 -4489 -838 query I rowsort SELECT 27 + col0 * + col0 * 98 FROM tab1 AS cor0 ---- 401435 627227 909 query I rowsort SELECT ALL - + 95 * - col0 AS col2 FROM tab1 cor0 ---- 285 6080 7600 query I rowsort SELECT + - col1 + - col0 * col1 FROM tab0 cor0 ---- -2150 -3492 -8190 query I rowsort SELECT DISTINCT - + col1 + - ( + col0 ) FROM tab1 AS cor0 ---- -29 -74 -93 query I rowsort SELECT DISTINCT - col0 * + 48 AS col2 FROM tab2 cor0 ---- -336 -3744 -3792 query I rowsort SELECT 38 * - tab1.col2 + - 86 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to cc6e9d9706d064d221849147e4714d69 query I rowsort SELECT ALL + cor1.col2 FROM tab0, tab2 cor0, tab2 AS cor1, tab0 AS cor2 ---- 81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9 query I rowsort SELECT - 42 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 9894093f29c0defae91347934f060329 query I rowsort SELECT col1 * col1 + 97 + col0 FROM tab2 AS cor0 ---- 1065 3656 465 onlyif mysql # use DIV operator for integer division query I rowsort label-7259 SELECT - col1 + + col1 - col1 DIV cor0.col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7259 SELECT - col1 + + col1 - col1 / cor0.col1 AS col2 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + cor0.col0 * - col0 - 91 AS col1 FROM tab2 AS cor0 ---- -140 -6175 -6332 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7261 SELECT + - col1 + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 ---- 28 47 83 skipif mysql # not compatible query I rowsort label-7261 SELECT + - col1 + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT col1 + 55 FROM tab0 AS cor0 ---- 141 146 152 onlyif mysql # use DIV operator for integer division query I rowsort label-7263 SELECT 59 + - tab0.col1 DIV + col1 AS col1 FROM tab0 ---- 58 58 58 skipif mysql # not compatible query I rowsort label-7263 SELECT 59 + - tab0.col1 / + col1 AS col1 FROM tab0 ---- 58 58 58 query I rowsort SELECT 3 * + tab1.col0 AS col0 FROM tab1 ---- 192 240 9 query I rowsort SELECT col0 + 80 FROM tab2 AS cor0 ---- 158 159 87 query I rowsort SELECT + col0 + ( col0 * + col1 ) FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT - ( + ( + col2 ) ) * - col1 + - col1 FROM tab1 AS cor0 ---- 1235 1378 560 query I rowsort SELECT - - cor0.col2 * col1 AS col1 FROM tab2 AS cor0 ---- 1534 646 837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7269 SELECT + col0 + + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7269 SELECT + col0 + + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL + col2 * cor0.col1 + + col1 + col1 * + col0 AS col1 FROM tab1 cor0 ---- 1220 1508 2301 onlyif mysql # use DIV operator for integer division query I rowsort label-7271 SELECT ALL - ( + col1 + - col1 ) DIV 39 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7271 SELECT ALL - ( + col1 + - col1 ) / 39 FROM tab2 ---- 0 0 0 query I rowsort SELECT + - col0 * + 52 FROM tab2 AS cor0 ---- -364 -4056 -4108 onlyif mysql # use DIV operator for integer division query I rowsort label-7273 SELECT ALL col0 + - col2 DIV col2 FROM tab1 AS cor0 ---- 2 63 79 skipif mysql # not compatible query I rowsort label-7273 SELECT ALL col0 + - col2 / col2 FROM tab1 AS cor0 ---- 2 63 79 query I rowsort SELECT - col0 + col1 + - 31 AS col0 FROM tab2 ---- -50 -7 -93 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7275 SELECT col2 - + CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0 ---- -33 -4 21 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7275 SELECT col2 - + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT col2 + tab2.col0 + 88 AS col1 FROM tab2 ---- 122 192 205 query I rowsort SELECT - tab0.col1 - - col2 AS col0 FROM tab0 ---- -53 -9 -96 query I rowsort SELECT DISTINCT + col1 - + ( 82 ) FROM tab0 ---- 15 4 9 query I rowsort SELECT DISTINCT - 32 AS col2 FROM tab2, tab2 cor0 ---- -32 query I rowsort SELECT - - col1 * - 82 - ( col1 ) FROM tab1 AS cor0 ---- -1079 -2158 -830 query I rowsort SELECT col2 + - col1 * col0 * cor0.col0 FROM tab2 AS cor0 ---- -106059 -1492 -358930 query I rowsort SELECT - col0 * - tab1.col0 AS col0 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT + ( + col1 + col1 ) AS col0 FROM tab0 ---- 172 182 194 query I rowsort SELECT 22 * cor0.col2 AS col2 FROM tab2, tab0, tab0 AS cor0 ---- 27 values hashing to 5882b1cc77f7fddcb836ab4ba56964df query I rowsort SELECT + + col2 + cor0.col2 * col0 AS col1 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT + ( ( cor0.col2 ) ) + col0 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT + 54 + - col2 AS col0 FROM tab1 AS cor0 ---- -3 -42 0 query I rowsort SELECT - + col0 * col2 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT ALL - 78 AS col1 FROM tab1 cor0 ---- -78 -78 -78 query I rowsort SELECT ALL + 92 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a query I rowsort SELECT ALL + - 38 - + col2 FROM tab1 AS cor0 ---- -134 -92 -95 query I rowsort SELECT col0 * - col0 * 15 FROM tab0 AS cor0 ---- -118815 -18375 -8640 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * - cor0.col0 col0 FROM tab0 AS cor0 ---- 1225 576 7921 query I rowsort SELECT ALL - 35 * col0 AS col0 FROM tab2 AS cor0 ---- -245 -2730 -2765 query I rowsort SELECT - + 31 FROM tab2 cor0 ---- -31 -31 -31 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( + cor0.col1 ) + - col2 col0 FROM tab0 AS cor0 ---- 53 9 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7297 SELECT - + CAST( col0 AS SIGNED ) + col0 * 74 AS col0 FROM tab1 AS cor0 ---- 219 4672 5840 skipif mysql # not compatible query I rowsort label-7297 SELECT - + CAST ( col0 AS INTEGER ) + col0 * 74 AS col0 FROM tab1 AS cor0 ---- 219 4672 5840 query I rowsort SELECT DISTINCT 66 * 59 FROM tab0 AS cor0 ---- 3894 query I rowsort SELECT DISTINCT tab2.col0 - - 23 AS col1 FROM tab2 ---- 101 102 30 query I rowsort SELECT DISTINCT + tab0.col1 * cor0.col1 AS col1 FROM tab0, tab0 AS cor0 ---- 7396 7826 8281 8342 8827 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-7301 SELECT DISTINCT col2 + + col0 * col0 DIV + col0 - col0 FROM tab2 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-7301 SELECT DISTINCT col2 + + col0 * col0 / + col0 - col0 FROM tab2 ---- 26 27 38 query I rowsort SELECT ALL - col0 * col0 + - 53 FROM tab0 AS cor0 ---- -1278 -629 -7974 query I rowsort SELECT - cor0.col0 - col2 AS col2 FROM tab0 AS cor0 ---- -171 -36 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-7304 SELECT DISTINCT - ( col1 ) DIV - tab2.col0 AS col2 FROM tab2 ---- 0 4 skipif mysql # not compatible query I rowsort label-7304 SELECT DISTINCT - ( col1 ) / - tab2.col0 AS col2 FROM tab2 ---- 0 4 query I rowsort SELECT - ( ( col0 ) ) + + 79 AS col1 FROM tab0 ---- -10 44 55 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7306 SELECT DISTINCT + CAST( col1 AS SIGNED ) * + col2 - col2 FROM tab1 ---- 1152 1350 513 skipif mysql # not compatible query I rowsort label-7306 SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + col2 - col2 FROM tab1 ---- 1152 1350 513 query I rowsort SELECT - 56 + col0 + + col2 FROM tab2 ---- -22 48 61 query I rowsort SELECT ALL + 67 AS col1 FROM tab0, tab1 cor0 ---- 9 values hashing to b56f8a4f1fcebc9802481256df61e97c query I rowsort SELECT + 57 + + col2 FROM tab1 ---- 111 114 153 onlyif mysql # use DIV operator for integer division query I rowsort label-7310 SELECT + ( + 22 + - tab1.col1 ) DIV 24 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7310 SELECT + ( + 22 + - tab1.col1 ) / 24 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT - - 76 + + 38 FROM tab1, tab0, tab0 AS cor0 ---- 114 onlyif mysql # use DIV operator for integer division query I rowsort label-7312 SELECT + col2 + + col2 * col0 + - col2 DIV + col0 FROM tab2 AS cor0 ---- 2054 213 3040 skipif mysql # not compatible query I rowsort label-7312 SELECT + col2 + + col2 * col0 + - col2 / + col0 FROM tab2 AS cor0 ---- 2054 213 3040 onlyif mysql # use DIV operator for integer division query I rowsort label-7313 SELECT DISTINCT + cor0.col0 DIV - col0 col2 FROM tab2 AS cor0 ---- -1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7313 SELECT DISTINCT + cor0.col0 / - col0 col2 FROM tab2 AS cor0 ---- -1 query I rowsort SELECT ALL + col1 * + col0 * ( - col2 ) FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT col0 + 2 * - 28 + - col0 * + cor0.col1 FROM tab2 AS cor0 ---- -1320 -266 -4580 query I rowsort SELECT 15 + col0 * 75 * ( col1 ) FROM tab2 ---- 100740 16290 345165 query I rowsort SELECT + 98 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2 query I rowsort SELECT ALL - 5 + col1 * col2 FROM tab2 ---- 1529 641 832 query I rowsort SELECT + 40 + - col2 FROM tab2 ---- 13 14 2 query I rowsort SELECT DISTINCT + 87 * + col1 + - 50 * col1 FROM tab1 ---- 370 481 962 query I rowsort SELECT DISTINCT - cor0.col1 * ( - col0 ) + cor0.col1 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT ALL + cor0.col0 * 77 AS col2 FROM tab1 AS cor0 ---- 231 4928 6160 query I rowsort SELECT DISTINCT - + col2 + + 55 * + col1 AS col1 FROM tab2 cor0 ---- 1678 3219 897 query I rowsort SELECT ALL cor0.col1 * + 2 FROM tab2 cor0 ---- 118 34 62 query I rowsort SELECT col2 * col0 * col0 AS col2 FROM tab0 ---- 1225 19008 649522 query I rowsort SELECT ALL col2 * ( cor0.col2 ) FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT + - col1 * 50 + col1 * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- -1496 -2387 -4484 query I rowsort SELECT DISTINCT - col1 * - col0 + col1 AS col2 FROM tab1 AS cor0 ---- 104 1053 650 query I rowsort SELECT DISTINCT - col0 * + 88 + col2 AS col1 FROM tab2 AS cor0 ---- -589 -6838 -6914 query I rowsort SELECT ALL col1 * 25 FROM tab2 AS cor0 ---- 1475 425 775 query I rowsort SELECT DISTINCT + 47 + - col1 * + col1 FROM tab2 ---- -242 -3434 -914 onlyif mysql # use DIV operator for integer division query I rowsort label-7332 SELECT 36 DIV col1 FROM tab1 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-7332 SELECT 36 / col1 FROM tab1 ---- 1 2 3 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 72 + + col2 col0 FROM tab1 AS cor0 ---- 126 129 168 query I rowsort SELECT col0 * col0 * + ( col2 ) FROM tab1 ---- 233472 486 614400 query I rowsort SELECT DISTINCT + + ( col2 ) * - col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT col0 * + cor0.col0 + ( col0 ) FROM tab1 AS cor0 ---- 12 4160 6480 onlyif mysql # use DIV operator for integer division query I rowsort label-7337 SELECT - - cor0.col2 + cor0.col0 DIV col0 FROM tab1 cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-7337 SELECT - - cor0.col2 + cor0.col0 / col0 FROM tab1 cor0 ---- 55 58 97 onlyif mysql # use DIV operator for integer division query I rowsort label-7338 SELECT ALL cor0.col2 * col1 + cor0.col2 DIV col2 + cor0.col2 FROM tab1 AS cor0 ---- 1345 1459 628 skipif mysql # not compatible query I rowsort label-7338 SELECT ALL cor0.col2 * col1 + cor0.col2 / col2 + cor0.col2 FROM tab1 AS cor0 ---- 1345 1459 628 query I rowsort SELECT DISTINCT + col2 + col2 + 78 AS col2 FROM tab0 AS cor0 ---- 144 242 80 onlyif mysql # use DIV operator for integer division query I rowsort label-7340 SELECT ALL - cor0.col1 DIV col1 - ( 22 ) DIV - cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1 0 1 skipif mysql # not compatible query I rowsort label-7340 SELECT ALL - cor0.col1 / col1 - ( 22 ) / - cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + - cor0.col1 * - ( col1 ) col1 FROM tab1 AS cor0 ---- 156 650 90 query I rowsort SELECT ALL + + cor0.col1 + cor0.col2 * + 84 FROM tab1 cor0 ---- 4562 4798 8077 query I rowsort SELECT - 51 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4 query I rowsort SELECT DISTINCT + 76 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 76 query I rowsort SELECT ALL + + cor0.col0 + + col0 FROM tab2 cor0 ---- 14 156 158 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col1 * - 37 + col2 col0 FROM tab1 AS cor0 ---- 1016 427 577 query I rowsort SELECT DISTINCT col1 * 83 FROM tab0 AS cor0 ---- 7138 7553 8051 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * tab2.col1 + col2 * col2 col1 FROM tab2 ---- -3926 101 512 query I rowsort SELECT DISTINCT - 69 AS col1 FROM tab1, tab2, tab2 AS cor0 ---- -69 onlyif mysql # use DIV operator for integer division query I rowsort label-7350 SELECT col0 DIV + 47 AS col0 FROM tab0 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-7350 SELECT col0 / + 47 AS col0 FROM tab0 AS cor0 ---- 0 0 1 query I rowsort SELECT + col1 + + ( col1 ) AS col2 FROM tab0 AS cor0 ---- 172 182 194 query I rowsort SELECT cor0.col2 * ( - cor0.col2 ) + col0 - + ( + 69 ) FROM tab2 AS cor0 ---- -1434 -667 -791 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2 ---- 972 values hashing to cee640567b2a4ba7d97109d5025bf4d9 query I rowsort SELECT - + cor0.col1 * + col1 + col0 AS col1 FROM tab1 AS cor0 ---- -36 -673 -89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7355 SELECT - col2 * + CAST( - col1 * col2 AS SIGNED ) + + ( col0 ) FROM tab0 AS cor0 ---- 132 611973 93678 skipif mysql # not compatible query I rowsort label-7355 SELECT - col2 * + CAST ( - col1 * col2 AS INTEGER ) + + ( col0 ) FROM tab0 AS cor0 ---- 132 611973 93678 query I rowsort SELECT DISTINCT - - col2 + - 71 * - ( + col1 * + 23 + ( - col2 ) * + ( cor0.col2 ) ) AS col1 FROM tab2 AS cor0 ---- -1109 -74725 48377 query I rowsort SELECT DISTINCT + col0 * cor0.col2 + ( col1 ) * ( col2 + cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- 1644 4858 9968 query I rowsort SELECT ALL cor0.col0 - - 35 * - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -2986 -3096 -3360 query I rowsort SELECT + cor0.col1 * - cor0.col0 + - col1 AS col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 query I rowsort SELECT DISTINCT + cor0.col0 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 128 160 6 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 + - col0 + + ( col2 + tab2.col2 * ( - 77 ) ) col1 FROM tab2 ---- -2028 -2032 -2929 onlyif mysql # use DIV operator for integer division query I rowsort label-7362 SELECT ALL + col0 DIV - col2 + + 18 AS col0 FROM tab1 AS cor0 ---- 17 18 18 skipif mysql # not compatible query I rowsort label-7362 SELECT ALL + col0 / - col2 + + 18 AS col0 FROM tab1 AS cor0 ---- 17 18 18 query I rowsort SELECT - col2 * col0 - col0 AS col2 FROM tab2 AS cor0 ---- -196 -2106 -3081 query I rowsort SELECT - col1 + + ( - col0 + - cor0.col1 ) * 53 FROM tab0 AS cor0 ---- -5916 -7093 -9631 onlyif mysql # use DIV operator for integer division query I rowsort label-7365 SELECT + - col0 - + 1 DIV col2 FROM tab0 AS cor0 ---- -24 -36 -89 skipif mysql # not compatible query I rowsort label-7365 SELECT + - col0 - + 1 / col2 FROM tab0 AS cor0 ---- -24 -36 -89 onlyif mysql # use DIV operator for integer division query I rowsort label-7366 SELECT + col2 + - col2 DIV tab1.col0 AS col0 FROM tab1 ---- 36 57 95 skipif mysql # not compatible query I rowsort label-7366 SELECT + col2 + - col2 / tab1.col0 AS col0 FROM tab1 ---- 36 57 95 query I rowsort SELECT ALL col1 + + col2 * col1 AS col0 FROM tab2 ---- 1593 663 868 query I rowsort SELECT + col1 AS col2 FROM tab2 WHERE NOT ( + col0 ) IN ( col2 ) ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * - col0 * col0 + - col1 * - col0 col2 FROM tab0 ---- 21072 4620 657621 onlyif mysql # use DIV operator for integer division query I rowsort label-7370 SELECT col1 DIV - tab2.col0 AS col0 FROM tab2 ---- -4 0 0 skipif mysql # not compatible query I rowsort label-7370 SELECT col1 / - tab2.col0 AS col0 FROM tab2 ---- -4 0 0 query I rowsort SELECT col1 + - tab0.col1 FROM tab0 WHERE ( - col2 + - col2 ) IN ( - col0 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col1 * col2 col1 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ALL - col0 - + col1 * - col1 AS col1 FROM tab2 ---- 210 3403 954 query I rowsort SELECT - col0 * + col1 + - col1 AS col0 FROM tab0 ---- -2150 -3492 -8190 query I rowsort SELECT ALL + col1 * col1 + col2 * col0 * col0 AS col0 FROM tab0 ---- 10634 26404 657803 onlyif mysql # use DIV operator for integer division query I rowsort label-7376 SELECT DISTINCT + col2 + col2 DIV - col1 col2 FROM tab1 ---- 52 89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7376 SELECT DISTINCT + col2 + col2 / - col1 col2 FROM tab1 ---- 52 89 query III rowsort SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( - col0 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-7378 SELECT DISTINCT - col1 * - col0 + + col1 DIV - col2 AS col1 FROM tab0 ---- 2062 3298 8098 skipif mysql # not compatible query I rowsort label-7378 SELECT DISTINCT - col1 * - col0 + + col1 / - col2 AS col1 FROM tab0 ---- 2062 3298 8098 query I rowsort SELECT ALL col2 + + tab2.col2 * - col0 FROM tab2 ---- -162 -2002 -2964 onlyif mysql # use DIV operator for integer division query I rowsort label-7380 SELECT ALL col0 + cor0.col1 * col2 DIV - 84 AS col1 FROM tab1 AS cor0 ---- -13 58 66 skipif mysql # not compatible query I rowsort label-7380 SELECT ALL col0 + cor0.col1 * col2 / - 84 AS col1 FROM tab1 AS cor0 ---- -13 58 66 query I rowsort SELECT - - 15 * + col1 * + col0 AS col2 FROM tab0 cor0 ---- 121485 30960 50925 query I rowsort SELECT ALL + - cor0.col1 * + col2 AS col1 FROM tab1 AS cor0 ---- -1248 -1404 -570 query I rowsort SELECT - + 82 + cor0.col2 FROM tab1 AS cor0 ---- -25 -28 14 query I rowsort SELECT ALL + col0 + col1 * - col1 FROM tab2 AS cor0 ---- -210 -3403 -954 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + col0 * 84 col1 FROM tab0 AS cor0 ---- 2102 3037 7567 query I rowsort SELECT ALL - col0 - - ( + col1 ) * + col2 * + 66 AS col2 FROM tab1 AS cor0 ---- 37556 82288 92661 onlyif mysql # use DIV operator for integer division query I rowsort label-7387 SELECT - - 63 + 48 DIV col0 FROM tab0 AS cor0 ---- 63 64 65 skipif mysql # not compatible query I rowsort label-7387 SELECT - - 63 + 48 / col0 FROM tab0 AS cor0 ---- 63 64 65 query I rowsort SELECT col2 + 37 + cor0.col1 * + ( + col1 ) AS col1 FROM tab0 AS cor0 ---- 7466 8400 9447 query I rowsort SELECT ALL + 84 + 46 FROM tab1 cor0 ---- 130 130 130 query I rowsort SELECT DISTINCT - col0 * 88 AS col0 FROM tab0 AS cor0 ---- -2112 -3080 -7832 query I rowsort SELECT DISTINCT + cor0.col1 + 60 FROM tab0 AS cor0 ---- 146 151 157 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7392 SELECT CAST( NULL AS SIGNED ) + col2 * + col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7392 SELECT CAST ( NULL AS INTEGER ) + col2 * + col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ( - col2 ) * - col2 FROM tab1 ---- 2916 3249 9216 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL ( 92 ) * col0 + col1 col2 FROM tab0 ---- 2294 3317 8279 query I rowsort SELECT ALL col2 + + col1 * tab0.col2 AS col1 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT ALL + col0 + + col0 * tab1.col2 FROM tab1 ---- 165 3712 7760 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7397 SELECT CAST( + col1 AS SIGNED ) * - col2 * - col2 FROM tab2 AS cor0 ---- 22599 24548 39884 skipif mysql # not compatible query I rowsort label-7397 SELECT CAST ( + col1 AS INTEGER ) * - col2 * - col2 FROM tab2 AS cor0 ---- 22599 24548 39884 query I rowsort SELECT ALL - tab2.col2 * tab2.col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to c52f276f0448e9317aa4a2c462e0bab5 query I rowsort SELECT DISTINCT - 50 AS col1 FROM tab0 cor0 ---- -50 query I rowsort SELECT + cor0.col2 + col0 * col1 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT ALL col2 + col1 * cor0.col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT - + col0 * + col1 * - col0 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT ALL - + cor0.col0 * - cor0.col2 AS col1 FROM tab2 AS cor0 ---- 189 2028 3002 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col1 * + col1 col2 FROM tab0 cor0 ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT col2 + - cor0.col2 * + col2 AS col0 FROM tab1 cor0 ---- -2862 -3192 -9120 query I rowsort SELECT - tab0.col2 * + col2 - - tab0.col1 FROM tab0 ---- -1003 -6633 96 query I rowsort SELECT DISTINCT + col1 + col0 * + col2 * - col1 AS col2 FROM tab1 AS cor0 ---- -36470 -4186 -99827 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col2 + cor0.col1 - col0 * col0 col0 FROM tab2 AS cor0 ---- -5999 -6186 9 query I rowsort SELECT - 37 * 74 - col2 * cor0.col2 FROM tab2 AS cor0 ---- -3414 -3467 -4182 query I rowsort SELECT DISTINCT + - col0 - + col2 FROM tab1 cor0 ---- -121 -176 -57 query I rowsort SELECT ALL + ( + 50 ) + col0 AS col1 FROM tab1 ---- 114 130 53 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7412 SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-7412 SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + 22 * + 54 FROM tab2 AS cor0 ---- 1188 1188 1188 query I rowsort SELECT ALL + + 75 * + 11 AS col0 FROM tab2 AS cor0 ---- 825 825 825 query I rowsort SELECT - - cor0.col0 * + col2 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT col2 + - col0 * + col0 FROM tab1 AS cor0 ---- -4039 -6304 45 query I rowsort SELECT - ( 88 ) * + col1 AS col2 FROM tab2 ---- -1496 -2728 -5192 onlyif mysql # use DIV operator for integer division query I rowsort label-7418 SELECT ALL 97 + - col0 DIV col0 FROM tab2 ---- 96 96 96 skipif mysql # not compatible query I rowsort label-7418 SELECT ALL 97 + - col0 / col0 FROM tab2 ---- 96 96 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + - col0 * + col0 col1 FROM tab0 ---- -1322 -662 -8012 query I rowsort SELECT DISTINCT + ( + col1 ) * + tab0.col1 + col1 FROM tab0 ---- 7482 8372 9506 query I rowsort SELECT ALL - - col0 * col2 + col2 AS col0 FROM tab1 AS cor0 ---- 216 3705 7776 query I rowsort SELECT ALL col1 + col0 * col2 FROM tab1 cor0 ---- 188 3658 7693 query I rowsort SELECT DISTINCT - 69 * - col1 * - col2 + col0 FROM tab0 ---- -195798 -514789 -6658 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7424 SELECT + CAST( - 19 AS SIGNED ) - - col2 FROM tab1 ---- 35 38 77 skipif mysql # not compatible query I rowsort label-7424 SELECT + CAST ( - 19 AS INTEGER ) - - col2 FROM tab1 ---- 35 38 77 query I rowsort SELECT DISTINCT - 29 * col0 + col2 AS col1 FROM tab1 ---- -1799 -2224 -33 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab1.col1 + - 52 col1 FROM tab1 ---- -26 -39 -42 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 * + col2 * + col2 col2 FROM tab1 AS cor0 ---- 119808 32490 75816 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT DISTINCT - col2 + - col2 + col0 * + tab2.col2 * col0 FROM tab2 ---- 1269 158132 237082 query I rowsort SELECT DISTINCT tab1.col2 FROM tab1 WHERE ( NULL ) NOT IN ( - col0 ) ---- query I rowsort SELECT col1 + col1 + col0 AS col0 FROM tab0 ---- 196 229 271 query I rowsort SELECT + cor0.col0 * - col0 + col1 AS col1 FROM tab0 AS cor0 ---- -1128 -490 -7830 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) <> NULL ---- query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> + col0 ---- query I rowsort SELECT ALL + col1 + + col1 * col0 AS col2 FROM tab0 ---- 2150 3492 8190 query I rowsort SELECT ALL - col1 + col1 * + tab2.col2 FROM tab2 ---- 1475 629 806 query III rowsort SELECT * FROM tab0 WHERE + col2 * col0 NOT BETWEEN col0 AND ( NULL ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * + col2 col1 FROM tab2 WHERE NOT tab2.col1 BETWEEN col0 * + col1 + col2 * + col1 AND ( NULL ) ---- -189 -2028 -3002 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - col1 + col0 * col0 ) ---- query III rowsort SELECT * FROM tab1 WHERE NOT col0 < ( NULL ) ---- query I rowsort SELECT ALL tab0.col2 * tab0.col0 FROM tab0 WHERE NOT NULL IN ( - col1 + col2 ) ---- query I rowsort SELECT - col1 * - col2 + col1 AS col1 FROM tab1 ---- 1261 1430 580 query I rowsort SELECT DISTINCT col2 + - col2 * col0 FROM tab1 ---- -108 -3591 -7584 query I rowsort SELECT ALL tab2.col0 - col0 * + col0 AS col1 FROM tab2 ---- -42 -6006 -6162 onlyif mysql # use DIV operator for integer division query I rowsort label-7445 SELECT DISTINCT tab2.col2 * - col0 DIV + col0 FROM tab2 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-7445 SELECT DISTINCT tab2.col2 * - col0 / + col0 FROM tab2 ---- -26 -27 -38 query I rowsort SELECT + + col2 * + col0 + + col2 AS col0 FROM tab0 cor0 ---- 36 7380 825 onlyif mysql # use DIV operator for integer division query I rowsort label-7447 SELECT ALL + col0 * col1 DIV col0 FROM tab2 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-7447 SELECT ALL + col0 * col1 / col0 FROM tab2 ---- 17 31 59 query I rowsort SELECT - col1 + + col2 + - col1 FROM tab0 AS cor0 ---- -100 -139 -193 query I rowsort SELECT DISTINCT - col1 + col2 + + col0 * - col2 AS col2 FROM tab2 ---- -193 -2061 -2981 query I rowsort SELECT DISTINCT + - col0 * cor0.col1 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT - - col2 + - col2 * col2 FROM tab0 AS cor0 ---- -1056 -6642 0 query I rowsort SELECT + col1 + col1 - col2 AS col2 FROM tab2 AS cor0 ---- -4 35 92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + - col2 col1 FROM tab1 cor0 ---- -109 -67 -80 query I rowsort SELECT ALL + 48 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b query I rowsort SELECT 0 * col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 47 * col0 + + col0 FROM tab0 AS cor0 ---- -1104 -1610 -4094 query I rowsort SELECT DISTINCT 11 * + col0 * + col1 FROM tab1 ---- 11440 7040 858 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( 7 ) * + col1 col0 FROM tab0 AS cor0 ---- -602 -637 -679 onlyif mysql # use DIV operator for integer division query I rowsort label-7459 SELECT 76 DIV col0 AS col1 FROM tab1 AS cor0 ---- 0 1 25 skipif mysql # not compatible query I rowsort label-7459 SELECT 76 / col0 AS col1 FROM tab1 AS cor0 ---- 0 1 25 onlyif mysql # use DIV operator for integer division query I rowsort label-7460 SELECT - col1 DIV - 72 AS col0 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7460 SELECT - col1 / - 72 AS col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to ed4644af7729c2425ea6cc3d84c6504f skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col0 - col0 col2 FROM tab2 AS cor0 ---- 0 query I rowsort SELECT + cor0.col2 * col2 + + 53 FROM tab2 cor0 ---- 1497 729 782 onlyif mysql # use DIV operator for integer division query I rowsort label-7464 SELECT + col2 + col1 DIV 73 FROM tab0 AS cor0 ---- 2 34 83 skipif mysql # not compatible query I rowsort label-7464 SELECT + col2 + col1 / 73 FROM tab0 AS cor0 ---- 2 34 83 query I rowsort SELECT DISTINCT - - col2 * + col2 * + col0 + - col2 AS col2 FROM tab0 AS cor0 ---- 26103 34 598354 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + + 42 col1 FROM tab0 AS cor0 ---- 131 66 77 query I rowsort SELECT - + col0 * col2 + col2 AS col2 FROM tab0 cor0 ---- -34 -7216 -759 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7468 SELECT + cor0.col1 * CAST( NULL AS DECIMAL ) + - col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7468 SELECT + cor0.col1 * CAST ( NULL AS REAL ) + - col2 AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + col2 * col2 * 59 + col0 * - 35 * + col2 AS col1 FROM tab1 AS cor0 ---- 166374 274944 64011 query I rowsort SELECT + - col2 + ( 38 ) FROM tab2 AS cor0 ---- 0 11 12 query I rowsort SELECT + col2 + ( 64 ) * + col0 FROM tab1 ---- 246 4153 5216 query I rowsort SELECT ALL - col0 + + col0 * 99 AS col2 FROM tab1 cor0 ---- 294 6272 7840 onlyif mysql # use DIV operator for integer division query I rowsort label-7473 SELECT DISTINCT + col1 * cor0.col1 DIV col0 FROM tab1 AS cor0 ---- 1 2 225 skipif mysql # not compatible query I rowsort label-7473 SELECT DISTINCT + col1 * cor0.col1 / col0 FROM tab1 AS cor0 ---- 1 2 225 query I rowsort SELECT - - cor0.col2 + + 84 * + col2 FROM tab0 AS cor0 ---- 2805 6970 85 onlyif mysql # use DIV operator for integer division query I rowsort label-7475 SELECT ALL col1 + 34 DIV + col2 + col0 AS col1 FROM tab1 AS cor0 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-7475 SELECT ALL col1 + 34 / + col2 + col0 AS col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT + col2 + 58 * - 43 FROM tab0 AS cor0 ---- -2412 -2461 -2493 query I rowsort SELECT col2 + + col0 * + 7 AS col0 FROM tab1 AS cor0 ---- 505 656 75 query I rowsort SELECT DISTINCT + col1 * col1 + col2 AS col0 FROM tab0 AS cor0 ---- 7429 8363 9410 onlyif mysql # use DIV operator for integer division query I rowsort label-7479 SELECT ALL + col2 * cor0.col0 DIV col2 + ( col2 ) * col1 AS col2 FROM tab0 AS cor0 ---- 132 2862 7551 skipif mysql # not compatible query I rowsort label-7479 SELECT ALL + col2 * cor0.col0 / col2 + ( col2 ) * col1 AS col2 FROM tab0 AS cor0 ---- 132 2862 7551 query I rowsort SELECT ALL ( col1 ) + col1 FROM tab2 AS cor0 ---- 118 34 62 query I rowsort SELECT DISTINCT + + ( col0 ) + + col2 AS col1 FROM tab2 AS cor0 ---- 104 117 34 query I rowsort SELECT DISTINCT + 67 - + col0 FROM tab1 AS cor0 ---- -13 3 64 query I rowsort SELECT - col1 * - 3 + + col0 AS col1 FROM tab0 AS cor0 ---- 282 326 362 onlyif mysql # use DIV operator for integer division query I rowsort label-7484 SELECT DISTINCT + - 69 DIV 63 FROM tab2 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-7484 SELECT DISTINCT + - 69 / 63 FROM tab2 AS cor0 ---- -1 query I rowsort SELECT ALL - + col1 * - ( col0 * + cor0.col0 ) + + col1 * + col0 FROM tab0 AS cor0 ---- 122220 51600 728910 query I rowsort SELECT DISTINCT - col2 + - 3 * - col1 AS col2 FROM tab1 AS cor0 ---- -27 -57 24 query I rowsort SELECT ALL - + cor0.col1 * + col1 + + col0 AS col0 FROM tab0 AS cor0 ---- -7372 -8192 -9374 query I rowsort SELECT DISTINCT + col2 + + ( - ( col1 ) + col0 ) * - 35 FROM tab0 ---- 152 2171 2203 query I rowsort SELECT ALL 13 * + ( tab1.col1 ) * tab1.col2 FROM tab1 ---- 16224 18252 7410 query I rowsort SELECT DISTINCT - col0 + + ( - tab2.col2 * + 46 ) AS col2 FROM tab2 ---- -1249 -1274 -1827 query I rowsort SELECT - ( - col2 * - col0 ) FROM tab1 ---- -162 -3648 -7680 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7492 SELECT ALL + col0 * CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7492 SELECT ALL + col0 * CAST ( NULL AS REAL ) + col0 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( - col1 * - col0 ) - col2 AS col1 FROM tab2 ---- -1381 -244 -4628 query I rowsort SELECT + ( col1 + col1 ) * col0 FROM tab1 ---- 1280 156 2080 query I rowsort SELECT DISTINCT col1 * col1 - + 73 FROM tab0 ---- 7323 8208 9336 query I rowsort SELECT DISTINCT col2 + col1 - ( + col1 + - col1 ) FROM tab1 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-7497 SELECT ( col0 ) DIV + col1 + - 74 + col0 * col1 * + tab1.col0 FROM tab1 ---- 160 40892 83132 skipif mysql # not compatible query I rowsort label-7497 SELECT ( col0 ) / + col1 + - 74 + col0 * col1 * + tab1.col0 FROM tab1 ---- 160 40892 83132 query I rowsort SELECT - 59 * - col0 * + col2 FROM tab2 ---- 11151 119652 177118 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7499 SELECT ALL - tab1.col0 / + col0 + + col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7499 SELECT ALL - tab1.col0 / + col0 + + col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + col1 * - ( - col1 ) - col1 * col0 FROM tab2 AS cor0 ---- -1054 -1121 744 query I rowsort SELECT ( - 85 ) + col0 + + col2 FROM tab2 ---- -51 19 32 query I rowsort SELECT DISTINCT + 93 * + col0 FROM tab0 AS cor0 ---- 2232 3255 8277 query I rowsort SELECT - ( - col1 ) * + ( + col2 ) AS col2 FROM tab2 ---- 1534 646 837 query I rowsort SELECT ALL col2 + - col2 * - 84 FROM tab0 AS cor0 ---- 2805 6970 85 query I rowsort SELECT + col1 * cor0.col2 + col2 AS col1 FROM tab0 AS cor0 ---- 2871 7544 98 query I rowsort SELECT DISTINCT + col1 + - col0 + 80 FROM tab0 AS cor0 ---- 142 82 onlyif mysql # use DIV operator for integer division query I rowsort label-7507 SELECT + col1 DIV + 89 AS col0 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7507 SELECT + col1 / + 89 AS col0 FROM tab1 ---- 0 0 0 query I rowsort SELECT DISTINCT col1 * + 55 * - col2 - col0 * + 9 FROM tab1 ---- -31926 -69360 -77247 onlyif mysql # use DIV operator for integer division query I rowsort label-7509 SELECT ALL + col1 * 83 - - col0 DIV col1 FROM tab2 ---- 1415 2573 4898 skipif mysql # not compatible query I rowsort label-7509 SELECT ALL + col1 * 83 - - col0 / col1 FROM tab2 ---- 1415 2573 4898 query I rowsort SELECT DISTINCT + col0 - + 92 AS col2 FROM tab0 ---- -3 -57 -68 query I rowsort SELECT + col1 * - col0 + - 64 + + col2 * col0 * + col2 FROM tab2 ---- 112669 48062 4822 query I rowsort SELECT + col0 * - cor0.col1 + ( + col1 ) * ( col1 ) AS col2 FROM tab2 AS cor0 ---- -1054 -1121 744 query I rowsort SELECT + col0 * col2 * - col1 AS col1 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT DISTINCT col1 - - col2 AS col0 FROM tab2 cor0 ---- 55 58 85 query I rowsort SELECT ALL cor0.col2 * ( col0 ) + col0 * + col0 AS col0 FROM tab1 cor0 ---- 14080 171 7744 skipif mysql # not compatible query I rowsort SELECT CAST ( col1 AS REAL ) + cor0.col2 * - col1 FROM tab1 AS cor0 ---- -1235 -1378 -560 query I rowsort SELECT ALL - ( + 92 ) * col2 + + col0 FROM tab2 cor0 ---- -2314 -2477 -3417 query I rowsort SELECT + col0 * + cor0.col0 + col2 AS col2 FROM tab1 AS cor0 ---- 4153 63 6496 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + ( col0 ) * - col1 col2 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL - + ( col2 ) * - col1 + + 6 AS col2 FROM tab0 AS cor0 ---- 103 2844 7468 query I rowsort SELECT DISTINCT + 82 * - cor0.col0 + col1 * + col1 AS col1 FROM tab2 AS cor0 ---- -2915 -6189 387 query I rowsort SELECT - col0 * 51 + col1 AS col2 FROM tab1 AS cor0 ---- -127 -3254 -4067 onlyif mysql # use DIV operator for integer division query I rowsort label-7523 SELECT + col1 * col1 + + col0 DIV col0 FROM tab2 AS cor0 ---- 290 3482 962 skipif mysql # not compatible query I rowsort label-7523 SELECT + col1 * col1 + + col0 / col0 FROM tab2 AS cor0 ---- 290 3482 962 query I rowsort SELECT ALL + 4 + + col2 * col0 AS col0 FROM tab0 AS cor0 ---- 39 7302 796 query I rowsort SELECT DISTINCT + col0 * - col0 + col2 AS col2 FROM tab0 AS cor0 ---- -1224 -543 -7839 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7526 SELECT DISTINCT + CAST( 39 AS SIGNED ) + col2 * - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1405 -637 -690 skipif mysql # not compatible query I rowsort label-7526 SELECT DISTINCT + CAST ( 39 AS INTEGER ) + col2 * - cor0.col2 AS col2 FROM tab2 AS cor0 ---- -1405 -637 -690 query I rowsort SELECT ALL - ( + col2 ) * col2 + col0 AS col0 FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT ALL - - 67 * col2 AS col0 FROM tab2 cor0 ---- 1742 1809 2546 query I rowsort SELECT ALL + col2 - - 19 AS col2 FROM tab0 ---- 101 20 52 onlyif mysql # use DIV operator for integer division query I rowsort label-7530 SELECT DISTINCT col1 * - col2 - - col0 DIV col0 FROM tab1 ---- -1247 -1403 -569 skipif mysql # not compatible query I rowsort label-7530 SELECT DISTINCT col1 * - col2 - - col0 / col0 FROM tab1 ---- -1247 -1403 -569 query I rowsort SELECT + col1 * - col2 * - col2 + + tab1.col1 FROM tab1 ---- 119821 32500 75842 query I rowsort SELECT col0 + + 74 + col2 FROM tab2 ---- 108 178 191 onlyif mysql # use DIV operator for integer division query I rowsort label-7533 SELECT DISTINCT - 71 DIV + ( col1 * col1 + cor0.col2 * - cor0.col0 ) FROM tab2 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-7533 SELECT DISTINCT - 71 / + ( col1 * col1 + cor0.col2 * - cor0.col0 ) FROM tab2 AS cor0 ---- 0 query I rowsort SELECT DISTINCT 97 * - 86 - col0 AS col2 FROM tab1 cor0 ---- -8345 -8406 -8422 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7535 SELECT DISTINCT CAST( 96 AS SIGNED ) * col2 + + ( - 54 ) FROM tab0 AS cor0 ---- 3114 42 7818 skipif mysql # not compatible query I rowsort label-7535 SELECT DISTINCT CAST ( 96 AS INTEGER ) * col2 + + ( - 54 ) FROM tab0 AS cor0 ---- 3114 42 7818 query I rowsort SELECT - col1 * col1 - cor0.col2 * + col1 * + col1 AS col2 FROM tab0 AS cor0 ---- -18818 -251464 -687323 query I rowsort SELECT DISTINCT - - 69 + - col2 + col0 FROM tab1 cor0 ---- 18 53 76 query I rowsort SELECT ALL - col0 * col1 * - cor0.col1 AS col2 FROM tab2 AS cor0 ---- 22831 271518 6727 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7539 SELECT + CAST( NULL AS SIGNED ) * + col0 + + col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7539 SELECT + CAST ( NULL AS INTEGER ) * + col0 + + col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 37 * + 52 AS col2 FROM tab1 cor0 ---- 1924 1924 1924 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 41 col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + tab2.col0 col1 FROM tab2, tab0 AS cor0 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col0 * cor0.col0 col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT ALL - cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to c82df1de3cb666224690a83f3d790d79 query I rowsort SELECT - ( col1 ) * + 39 - + col0 * + col1 FROM tab2 AS cor0 ---- -1426 -2006 -6903 query I rowsort SELECT DISTINCT - col2 * - col2 + col2 FROM tab0 ---- 1122 2 6806 query I rowsort SELECT - ( + 32 ) * - col2 FROM tab1 ---- 1728 1824 3072 onlyif mysql # use DIV operator for integer division query I rowsort label-7548 SELECT ALL + tab1.col1 DIV - col0 + col1 FROM tab1 ---- 10 13 18 skipif mysql # not compatible query I rowsort label-7548 SELECT ALL + tab1.col1 / - col0 + col1 FROM tab1 ---- 10 13 18 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * 84 col1 FROM tab0 cor0 ---- 7224 7644 8148 query I rowsort SELECT + col2 * + 66 AS col2 FROM tab0 AS cor0 ---- 2178 5412 66 query I rowsort SELECT ALL - col0 * 45 FROM tab1 AS cor0 ---- -135 -2880 -3600 query I rowsort SELECT DISTINCT col1 * - 2 FROM tab2 cor0 ---- -118 -34 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 94 col1 FROM tab0 ---- 94 94 94 query I rowsort SELECT + - col1 + - 81 AS col1 FROM tab0 AS cor0 ---- -167 -172 -178 query I rowsort SELECT 41 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to f6a440b478f0d00f8326a8c51fe094b8 query I rowsort SELECT DISTINCT 17 + tab2.col1 FROM tab2, tab0 AS cor0 ---- 34 48 76 query I rowsort SELECT + col0 * - 77 * + col0 FROM tab0 AS cor0 ---- -44352 -609917 -94325 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7558 SELECT DISTINCT - - cor0.col2 * CAST( ( col1 ) AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0 ---- 1261 1430 580 skipif mysql # not compatible query I rowsort label-7558 SELECT DISTINCT - - cor0.col2 * CAST ( ( col1 ) AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT DISTINCT cor0.col1 + col1 * ( + col2 ) FROM tab1 AS cor0 ---- 1261 1430 580 query I rowsort SELECT + + col2 * - 79 FROM tab0 AS cor0 ---- -2607 -6478 -79 query I rowsort SELECT + + col2 + + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT DISTINCT + col0 * - col2 + 14 AS col1 FROM tab1 ---- -148 -3634 -7666 query I rowsort SELECT + 22 * + col0 FROM tab2 AS cor0 ---- 154 1716 1738 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7564 SELECT + - 44 * col1 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7564 SELECT + - 44 * col1 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7565 SELECT ALL + col2 * + CAST( NULL AS SIGNED ) * + 95 + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7565 SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) * + 95 + col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 * - 40 FROM tab2 cor0 ---- -1040 -1080 -1520 query I rowsort SELECT DISTINCT + col2 * + 75 + 81 + - col1 * col0 FROM tab2 cor0 ---- -2571 1588 1889 query I rowsort SELECT ALL col2 + col1 * 72 FROM tab0 AS cor0 ---- 6225 6634 6985 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7569 SELECT ALL 39 + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7569 SELECT ALL 39 + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT + ( col1 ) + - tab1.col1 * - col0 FROM tab1 ---- 104 1053 650 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7571 SELECT ( tab2.col0 ) + + CAST( + col1 AS SIGNED ) * col2 FROM tab2 ---- 1612 725 844 skipif mysql # not compatible query I rowsort label-7571 SELECT ( tab2.col0 ) + + CAST ( + col1 AS INTEGER ) * col2 FROM tab2 ---- 1612 725 844 query I rowsort SELECT - 31 + col2 AS col2 FROM tab0 ---- -30 2 51 query I rowsort SELECT col0 + col2 * + 28 FROM tab2 ---- 1143 763 806 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 52 col2 FROM tab1 ---- 52 query I rowsort SELECT cor0.col2 * + 11 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 6e88f16da9d6b414fc5ac22184e85d62 query I rowsort SELECT DISTINCT 42 * + col2 AS col0 FROM tab2 ---- 1092 1134 1596 query I rowsort SELECT DISTINCT - 84 * + col2 AS col0 FROM tab1 AS cor0 ---- -4536 -4788 -8064 query I rowsort SELECT 48 * - col0 + - col2 - col1 FROM tab0 AS cor0 ---- -1271 -1778 -4445 query I rowsort SELECT ALL + cor0.col2 * 98 FROM tab1 AS cor0 ---- 5292 5586 9408 query I rowsort SELECT - ( + col0 ) * col0 AS col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT tab2.col1 FROM tab2, tab0 cor0, tab1 AS cor1 ---- 27 values hashing to 7599b480125de521efed71b5b2413c7d onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7582 SELECT DISTINCT + col2 * 31 + - col2 / - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 ---- NULL skipif mysql # not compatible query I rowsort label-7582 SELECT DISTINCT + col2 * 31 + - col2 / - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 ---- NULL query I rowsort SELECT + 73 * + col0 AS col1 FROM tab2 AS cor0 ---- 511 5694 5767 onlyif mysql # use DIV operator for integer division query I rowsort label-7584 SELECT ALL ( + col2 ) DIV col2 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7584 SELECT ALL ( + col2 ) / col2 FROM tab1 ---- 1 1 1 query I rowsort SELECT DISTINCT col2 * col1 - col0 * 86 AS col0 FROM tab2 ---- -5174 -6148 235 query I rowsort SELECT ALL col0 + - tab2.col2 - col1 * + ( + 78 + - col0 * + ( col2 ) ) AS col1 FROM tab2 ---- 115102 3421 49749 onlyif mysql # use DIV operator for integer division query I rowsort label-7587 SELECT + ( + col0 ) DIV col0 FROM tab0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-7587 SELECT + ( + col0 ) / col0 FROM tab0 ---- 1 1 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7588 SELECT DISTINCT - cor0.col1 * + col0 * CAST( + cor0.col2 AS SIGNED ) FROM tab0 AS cor0 ---- -3395 -664118 -68112 skipif mysql # not compatible query I rowsort label-7588 SELECT DISTINCT - cor0.col1 * + col0 * CAST ( + cor0.col2 AS INTEGER ) FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT ALL - col1 * - col2 + + 6 AS col1 FROM tab2 AS cor0 ---- 1540 652 843 query I rowsort SELECT + cor1.col0 FROM tab2, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd onlyif mysql # use DIV operator for integer division query I rowsort label-7591 SELECT tab0.col0 + col0 DIV + col0 AS col1 FROM tab0 ---- 25 36 90 skipif mysql # not compatible query I rowsort label-7591 SELECT tab0.col0 + col0 / + col0 AS col1 FROM tab0 ---- 25 36 90 query I rowsort SELECT col1 + 9 * tab1.col1 - + col2 FROM tab1 ---- 206 34 43 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7593 SELECT DISTINCT + col0 * + col1 - + tab1.col0 * + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-7593 SELECT DISTINCT + col0 * + col1 - + tab1.col0 * + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab1 ---- NULL query I rowsort SELECT + 74 * - col0 AS col0 FROM tab1 ---- -222 -4736 -5920 query I rowsort SELECT DISTINCT col2 * - col1 - col2 AS col1 FROM tab2 ---- -1560 -684 -864 query I rowsort SELECT col1 + + tab2.col1 + + col2 FROM tab2 ---- 144 72 89 query I rowsort SELECT + cor0.col0 * - col1 * col0 AS col1 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT DISTINCT + col1 + tab2.col2 * tab2.col1 + col1 AS col0 FROM tab2 ---- 1652 680 899 query I rowsort SELECT DISTINCT + 97 + col2 AS col1 FROM tab1 AS cor0 ---- 151 154 193 query I rowsort SELECT ALL - col1 * col1 * - 83 + col2 * - cor0.col2 AS col1 FROM tab1 AS cor0 ---- 4811 5051 53192 query I rowsort SELECT - + cor0.col1 * col1 + cor0.col2 * + cor0.col2 FROM tab2 AS cor0 ---- -232 -2805 1155 query I rowsort SELECT ALL 86 * + col2 AS col2 FROM tab2 AS cor0 ---- 2236 2322 3268 query I rowsort SELECT ALL + col2 + col1 * 35 FROM tab1 AS cor0 ---- 407 551 964 query I rowsort SELECT ALL + + col2 * + col1 AS col2 FROM tab2 AS cor0 ---- 1534 646 837 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 12 + - cor0.col2 * - col0 * + col1 col1 FROM tab1 AS cor0 ---- 36492 4224 99852 query I rowsort SELECT ALL + - 55 AS col2 FROM tab0 AS cor0 ---- -55 -55 -55 query I rowsort SELECT + 40 + col0 AS col0 FROM tab2 AS cor0 ---- 118 119 47 query I rowsort SELECT - - col1 + col2 * 57 AS col2 FROM tab1 AS cor0 ---- 3104 3259 5485 query I rowsort SELECT + col1 - 25 * - 84 AS col0 FROM tab0 ---- 2186 2191 2197 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7610 SELECT ALL - - col1 + ( - cor0.col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7610 SELECT ALL - - col1 + ( - cor0.col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7611 SELECT + col0 * - col1 DIV - col1 AS col1 FROM tab0 AS cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-7611 SELECT + col0 * - col1 / - col1 AS col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ALL 42 * cor0.col2 + + col0 FROM tab1 cor0 ---- 2271 2458 4112 query I rowsort SELECT cor0.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2 ---- 81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7 query I rowsort SELECT + + col2 - col1 AS col2 FROM tab1 AS cor0 ---- 28 47 83 query I rowsort SELECT DISTINCT ( - 81 ) + col1 AS col1 FROM tab2 AS cor0 ---- -22 -50 -64 query I rowsort SELECT DISTINCT - col1 * + col0 - - 30 * + col2 * col0 AS col0 FROM tab1 AS cor0 ---- 108800 229360 4782 onlyif mysql # use DIV operator for integer division query I rowsort label-7617 SELECT ALL + col0 DIV - 13 + col1 AS col1 FROM tab0 cor0 ---- 85 85 95 skipif mysql # not compatible query I rowsort label-7617 SELECT ALL + col0 / - 13 + col1 AS col1 FROM tab0 cor0 ---- 85 85 95 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7618 SELECT - col0 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 ---- -128 -160 -6 skipif mysql # not compatible query I rowsort label-7618 SELECT - col0 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 ---- -128 -160 -6 onlyif mysql # use DIV operator for integer division query I rowsort label-7619 SELECT - cor0.col2 DIV col1 - col2 * + col1 FROM tab2 AS cor0 ---- -1534 -648 -837 skipif mysql # not compatible query I rowsort label-7619 SELECT - cor0.col2 / col1 - col2 * + col1 FROM tab2 AS cor0 ---- -1534 -648 -837 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7620 SELECT + - col1 * CAST( NULL AS SIGNED ) + - col0 + - cor0.col1 AS col1 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7620 SELECT + - col1 * CAST ( NULL AS INTEGER ) + - col0 + - cor0.col1 AS col1 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT cor0.col0 * - col2 - col0 FROM tab2 AS cor0 ---- -196 -2106 -3081 query I rowsort SELECT DISTINCT - col2 - - col1 AS col2 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT ALL col1 - col2 * 53 FROM tab2 ---- -1319 -1400 -1997 query I rowsort SELECT ALL + col2 + + col0 - 20 FROM tab0 ---- 151 16 37 query I rowsort SELECT ALL + col0 * + col2 + 61 * ( col1 ) - 86 AS col2 FROM tab2 ---- 1994 3953 5541 query I rowsort SELECT + col1 + + 35 + col2 AS col1 FROM tab1 ---- 102 115 144 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab2.col0 + + col1 col1 FROM tab2 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-7628 SELECT DISTINCT + col2 DIV + 44 AS col0 FROM tab2 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-7628 SELECT DISTINCT + col2 / + 44 AS col0 FROM tab2 cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + col0 * 56 col2 FROM tab2 ---- -12152 -257712 -75208 query I rowsort SELECT ALL - col0 + + tab2.col1 * col1 FROM tab2 ---- 210 3403 954 query I rowsort SELECT ALL ( cor0.col1 ) FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT - 12 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2 ---- 81 values hashing to 60b4654b2477631ac8f4a95ec4a22fd3 query I rowsort SELECT DISTINCT - tab2.col2 * + 50 FROM tab2 ---- -1300 -1350 -1900 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( tab1.col0 ) + - tab1.col0 * ( col1 * col2 ) col1 FROM tab1 ---- -36416 -4209 -99760 onlyif mysql # use DIV operator for integer division query I rowsort label-7635 SELECT DISTINCT - - col0 * col2 + col2 DIV ( - cor0.col2 + - col1 ) FROM tab0 AS cor0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-7635 SELECT DISTINCT - - col0 * col2 + col2 / ( - cor0.col2 + - col1 ) FROM tab0 AS cor0 ---- 35 7298 792 query I rowsort SELECT DISTINCT + 54 AS col0 FROM tab2 AS cor0 ---- 54 query I rowsort SELECT + 39 * col1 FROM tab0 AS cor0 ---- 3354 3549 3783 query I rowsort SELECT 93 + cor0.col1 FROM tab2 AS cor0 ---- 110 124 152 query I rowsort SELECT 30 + col0 AS col0 FROM tab0 ---- 119 54 65 query I rowsort SELECT DISTINCT - 30 * - col1 FROM tab0 ---- 2580 2730 2910 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7641 SELECT DISTINCT ( tab2.col2 ) * - CAST( NULL AS SIGNED ) FROM tab2, tab1, tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7641 SELECT DISTINCT ( tab2.col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab1 AS cor0 ---- NULL query I rowsort SELECT 18 * col1 + + col0 AS col1 FROM tab2 ---- 1140 385 565 query I rowsort SELECT ALL - col0 * col0 + ( + col0 ) AS col2 FROM tab2 cor0 ---- -42 -6006 -6162 query I rowsort SELECT DISTINCT + - cor0.col2 * + cor0.col2 + col0 FROM tab1 AS cor0 ---- -2913 -3185 -9136 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col2 + col2 col0 FROM tab1 cor0 ---- 108 114 192 query I rowsort SELECT ALL col0 + - cor0.col2 * 20 FROM tab0 cor0 ---- -1551 -636 15 query I rowsort SELECT ALL col2 * - col2 + 3 FROM tab2 AS cor0 ---- -1441 -673 -726 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - 76 + - col0 * ( + col1 + - col1 ) col2 FROM tab0 cor0 ---- 76 76 76 query I rowsort SELECT DISTINCT - + 15 * col0 FROM tab0 AS cor0 ---- -1335 -360 -525 onlyif mysql # use DIV operator for integer division query I rowsort label-7650 SELECT + - col0 DIV col0 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7650 SELECT + - col0 / col0 AS col0 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT col0 * 37 AS col1 FROM tab1 ---- 111 2368 2960 query I rowsort SELECT col0 * + 17 AS col0 FROM tab2 ---- 119 1326 1343 query I rowsort SELECT DISTINCT ( - 54 ) AS col1 FROM tab1 ---- -54 query I rowsort SELECT DISTINCT 65 * - col0 * - col2 FROM tab0 AS cor0 ---- 2275 474370 51480 query I rowsort SELECT + 56 + - col2 FROM tab0 AS cor0 ---- -26 23 55 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * + 92 col0 FROM tab2 AS cor0 ---- -644 -7176 -7268 query I rowsort SELECT cor0.col0 * 45 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 90ed87c3a78469bb23cf152a357665d6 query I rowsort SELECT DISTINCT - + 85 * + col1 FROM tab0 AS cor0 ---- -7310 -7735 -8245 query I rowsort SELECT DISTINCT 11 + + col1 AS col1 FROM tab0 cor0 ---- 102 108 97 query I rowsort SELECT + cor0.col0 * - col2 * 90 + - col0 AS col1 FROM tab1 cor0 ---- -14583 -328384 -691280 onlyif mysql # use DIV operator for integer division query I rowsort label-7661 SELECT - 86 DIV 93 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 skipif mysql # not compatible query I rowsort label-7661 SELECT - 86 / 93 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT col1 + col2 - - col0 * - col0 AS col1 FROM tab1 ---- -4029 -6291 71 query I rowsort SELECT 5 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 6797d40099023779b89feb627d94a3e7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7664 SELECT - col2 * - CAST( - col1 AS SIGNED ) - col2 FROM tab2 AS cor0 ---- -1560 -684 -864 skipif mysql # not compatible query I rowsort label-7664 SELECT - col2 * - CAST ( - col1 AS INTEGER ) - col2 FROM tab2 AS cor0 ---- -1560 -684 -864 query I rowsort SELECT + + 99 + col1 AS col1 FROM tab2 AS cor0 ---- 116 130 158 query I rowsort SELECT ALL + + 40 AS col0 FROM tab2 cor0 ---- 40 40 40 query I rowsort SELECT + col0 * - 17 + col0 FROM tab0 AS cor0 ---- -1424 -384 -560 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + cor0.col0 + + 99 col2 FROM tab0 AS cor0 ---- 123 134 188 query I rowsort SELECT + col2 * - col1 * cor0.col1 + - cor0.col0 + 67 * - col0 * - col2 AS col0 FROM tab0 AS cor0 ---- -190165 -191028 -7099 query I rowsort SELECT + cor0.col0 + 6 AS col0 FROM tab0 AS cor0 ---- 30 41 95 query I rowsort SELECT DISTINCT col0 * 58 AS col2 FROM tab0 ---- 1392 2030 5162 query I rowsort SELECT ALL ( col1 ) + cor0.col1 * - 61 + col1 FROM tab2 AS cor0 ---- -1003 -1829 -3481 query I rowsort SELECT ALL + - col0 + - col0 * col1 AS col1 FROM tab0 AS cor0 ---- -2088 -3430 -8188 query I rowsort SELECT ALL 51 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to d8bf0a05c9c4d2a93812d106baae4752 query I rowsort SELECT - 71 * - col2 FROM tab0 AS cor0 ---- 2343 5822 71 query I rowsort SELECT + tab1.col0 + - col1 * col0 FROM tab1 ---- -576 -75 -960 query I rowsort SELECT ALL - 79 FROM tab0, tab1 cor0 ---- 9 values hashing to 1b7b0b34fe3431fb409719624d12791f onlyif mysql # use DIV operator for integer division query I rowsort label-7678 SELECT ALL + col2 DIV col1 + 43 FROM tab0 ---- 43 43 43 skipif mysql # not compatible query I rowsort label-7678 SELECT ALL + col2 / col1 + 43 FROM tab0 ---- 43 43 43 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 87 * tab2.col0 * ( - col1 ) col1 FROM tab2 ---- 116841 18879 400374 query I rowsort SELECT ALL + col1 * + 33 FROM tab2 AS cor0 ---- 1023 1947 561 query I rowsort SELECT DISTINCT + col2 * - 74 AS col0 FROM tab0 AS cor0 ---- -2442 -6068 -74 query I rowsort SELECT 38 * + col0 AS col0 FROM tab1 AS cor0 ---- 114 2432 3040 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * tab0.col0 col2 FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT col2 * + tab1.col2 AS col2 FROM tab1 ---- 2916 3249 9216 query I rowsort SELECT - 17 FROM tab1 cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4 query I rowsort SELECT DISTINCT + 15 * + col2 AS col2 FROM tab1 ---- 1440 810 855 query I rowsort SELECT DISTINCT + + col1 + - 51 * + col2 FROM tab0 AS cor0 ---- -1597 -4091 46 query I rowsort SELECT ALL - + col2 + col1 * col0 FROM tab1 AS cor0 ---- 24 583 944 query I rowsort SELECT ALL col2 * - 94 FROM tab1 AS cor0 ---- -5076 -5358 -9024 query I rowsort SELECT ALL + + col0 * + 98 FROM tab1 AS cor0 ---- 294 6272 7840 query I rowsort SELECT + - col2 * 19 FROM tab2 cor0 ---- -494 -513 -722 query I rowsort SELECT DISTINCT - + col1 * col0 + - 92 AS col0 FROM tab0 AS cor0 ---- -2156 -3487 -8191 query I rowsort SELECT + - col1 + - 97 AS col0 FROM tab1 AS cor0 ---- -107 -110 -123 onlyif mysql # use DIV operator for integer division query I rowsort label-7694 SELECT DISTINCT col0 DIV - col1 - - 15 * tab0.col0 FROM tab0 ---- 1335 360 525 skipif mysql # not compatible query I rowsort label-7694 SELECT DISTINCT col0 / - col1 - - 15 * tab0.col0 FROM tab0 ---- 1335 360 525 query I rowsort SELECT + + col0 * 44 AS col0 FROM tab1 AS cor0 ---- 132 2816 3520 query I rowsort SELECT col2 * 67 FROM tab1 cor0 ---- 3618 3819 6432 query I rowsort SELECT DISTINCT col1 * 30 + col0 * - col1 AS col0 FROM tab0 AS cor0 ---- -485 -5369 516 query I rowsort SELECT ALL + col0 * - col1 + - col1 + - col2 * + tab2.col0 * + col2 AS col1 FROM tab2 ---- -115436 -5351 -57389 query I rowsort SELECT 47 FROM tab0, tab1 cor0, tab2 AS cor1 ---- 27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d query I rowsort SELECT - - col1 + col1 * col0 * 77 AS col2 FROM tab2 cor0 ---- 103428 16740 354413 query I rowsort SELECT - - col2 + cor0.col1 * + col0 FROM tab1 AS cor0 ---- 1136 132 697 onlyif mysql # use DIV operator for integer division query I rowsort label-7702 SELECT ALL col0 + tab0.col1 DIV col0 AS col1 FROM tab0 ---- 27 37 90 skipif mysql # not compatible query I rowsort label-7702 SELECT ALL col0 + tab0.col1 / col0 AS col1 FROM tab0 ---- 27 37 90 query I rowsort SELECT ( + col0 ) - col1 FROM tab0 ---- -2 -62 -62 query I rowsort SELECT ALL + 1 AS col1 FROM tab0 ---- 1 1 1 query I rowsort SELECT + 58 * cor0.col2 FROM tab2 AS cor0 ---- 1508 1566 2204 query I rowsort SELECT ALL + ( col1 ) * + col2 + - col0 AS col2 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT DISTINCT + - col2 - - col0 AS col1 FROM tab0 cor0 ---- -9 34 7 query I rowsort SELECT + 73 * + col1 + col0 AS col1 FROM tab0 AS cor0 ---- 6302 6732 7116 query I rowsort SELECT DISTINCT col1 + col1 * + col1 AS col2 FROM tab1 AS cor0 ---- 110 182 702 query I rowsort SELECT 21 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 312c166f4dc412730c43555105b1f44b query I rowsort SELECT ALL ( 45 ) FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 14cec871edc37b5056cda01c8331fdca query I rowsort SELECT ALL cor0.col1 + - col0 * cor0.col1 * + col1 AS col0 FROM tab0 AS cor0 ---- -177418 -329218 -736918 query I rowsort SELECT DISTINCT - - col2 * + ( col2 ) + col1 FROM tab2 AS cor0 ---- 1461 735 760 onlyif mysql # use DIV operator for integer division query I rowsort label-7714 SELECT ALL col0 DIV + col0 + cor0.col1 - col1 col1 FROM tab2 AS cor0 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7714 SELECT ALL col0 / + col0 + cor0.col1 - col1 col1 FROM tab2 AS cor0 ---- 1 1 1 query I rowsort SELECT - col0 * + 47 FROM tab0 AS cor0 ---- -1128 -1645 -4183 onlyif mysql # use DIV operator for integer division query I rowsort label-7716 SELECT ALL - 30 DIV col0 + col0 AS col0 FROM tab2 AS cor0 ---- 3 78 79 skipif mysql # not compatible query I rowsort label-7716 SELECT ALL - 30 / col0 + col0 AS col0 FROM tab2 AS cor0 ---- 3 78 79 query I rowsort SELECT ALL + - ( col2 ) * - col2 + + col0 AS col0 FROM tab2 AS cor0 ---- 1523 736 754 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7718 SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-7718 SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-7719 SELECT DISTINCT + ( - cor0.col2 ) DIV - cor0.col0 FROM tab2 AS cor0 ---- 0 3 skipif mysql # not compatible query I rowsort label-7719 SELECT DISTINCT + ( - cor0.col2 ) / - cor0.col0 FROM tab2 AS cor0 ---- 0 3 query I rowsort SELECT cor0.col0 * + cor0.col0 * - col1 FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT DISTINCT col2 + 78 - - col0 AS col2 FROM tab0 cor0 ---- 114 135 249 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7722 SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 98 AS col2 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-7722 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 98 AS col2 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT 21 * col0 AS col1 FROM tab2 AS cor0 ---- 147 1638 1659 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7724 SELECT + CAST( 99 AS SIGNED ) * cor0.col2 + 8 AS col2 FROM tab2 AS cor0 ---- 2582 2681 3770 skipif mysql # not compatible query I rowsort label-7724 SELECT + CAST ( 99 AS INTEGER ) * cor0.col2 + 8 AS col2 FROM tab2 AS cor0 ---- 2582 2681 3770 query I rowsort SELECT ALL 99 + + 22 FROM tab2 AS cor0 ---- 121 121 121 query I rowsort SELECT ALL - col2 * col0 + col0 FROM tab1 cor0 ---- -159 -3584 -7600 query I rowsort SELECT - 84 * - ( + cor0.col2 ) * col1 FROM tab1 AS cor0 ---- 104832 117936 47880 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7728 SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7728 SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT + ( 45 ) AS col0 FROM tab2 AS cor0 ---- 45 45 45 query I rowsort SELECT - - ( col2 ) * 70 - col0 AS col2 FROM tab2 AS cor0 ---- 1742 1883 2581 query I rowsort SELECT ALL + cor0.col2 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 16ae0e1090cb09b93854a4788f17716b query I rowsort SELECT DISTINCT - 43 - col0 * - tab1.col1 FROM tab1 ---- 35 597 997 query I rowsort SELECT DISTINCT col0 * + ( + 28 * col0 ) FROM tab1 cor0 ---- 114688 179200 252 query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab2, tab1 cor0, tab0 AS cor1, tab0, tab1 cor2 ---- 3645 values hashing to 71d467ba3372dfdd21847af1687c92e7 query I rowsort SELECT - col0 + 39 * 34 AS col2 FROM tab2 AS cor0 ---- 1247 1248 1319 query I rowsort SELECT ALL - cor0.col0 * 19 AS col2 FROM tab1 AS cor0 ---- -1216 -1520 -57 query I rowsort SELECT DISTINCT col1 + col0 + col0 AS col2 FROM tab1 cor0 ---- 138 173 32 query I rowsort SELECT DISTINCT + col1 * - col0 * col0 + + col0 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- -1470 -352872 -99856 query I rowsort SELECT + col1 * ( + 49 ) + col0 AS col0 FROM tab1 AS cor0 ---- 1277 554 717 query I rowsort SELECT ALL + col2 + - col2 * ( col0 * + col0 ) FROM tab0 AS cor0 ---- -1224 -18975 -649440 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 76 * ( cor0.col0 ) col2 FROM tab2, tab1 AS cor0 ---- 228 4864 6080 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7742 SELECT ALL + col0 * CAST( + col1 AS SIGNED ) AS col2 FROM tab1 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-7742 SELECT ALL + col0 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 ---- 1040 640 78 query I rowsort SELECT + ( - 1 ) FROM tab0, tab1, tab1 AS cor0, tab2 AS cor1 ---- 81 values hashing to f3aaea07874d9328a91c424c0907a688 query I rowsort SELECT - + col1 + + cor0.col2 * ( col2 ) FROM tab2 AS cor0 ---- 1427 617 698 query I rowsort SELECT ALL ( + 48 ) FROM tab2, tab1 AS cor0 ---- 9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b query I rowsort SELECT DISTINCT + col0 + - 8 * 53 AS col0 FROM tab0 AS cor0 ---- -335 -389 -400 query I rowsort SELECT ALL 8 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to ffc5b4c98b57ae546521175995c49c57 onlyif mysql # use DIV operator for integer division query I rowsort label-7748 SELECT DISTINCT - tab1.col0 DIV - 12 AS col1 FROM tab1, tab0 AS cor0 ---- 0 5 6 skipif mysql # not compatible query I rowsort label-7748 SELECT DISTINCT - tab1.col0 / - 12 AS col1 FROM tab1, tab0 AS cor0 ---- 0 5 6 query I rowsort SELECT - col0 * 82 AS col1 FROM tab0 AS cor0 ---- -1968 -2870 -7298 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7750 SELECT - + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7750 SELECT - + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 28 * cor0.col0 AS col2 FROM tab1 AS cor0 ---- 1792 2240 84 query I rowsort SELECT - col0 * col0 + cor0.col2 + - 1 AS col1 FROM tab1 AS cor0 ---- -4040 -6305 44 onlyif mysql # use DIV operator for integer division query I rowsort label-7753 SELECT DISTINCT - tab2.col0 DIV 38 FROM tab2 ---- -2 0 skipif mysql # not compatible query I rowsort label-7753 SELECT DISTINCT - tab2.col0 / 38 FROM tab2 ---- -2 0 query I rowsort SELECT + 22 * - col0 FROM tab1 AS cor0 ---- -1408 -1760 -66 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 96 * - col2 col2 FROM tab0 ---- -3168 -7872 -96 skipif mysql # not compatible query I rowsort SELECT CAST ( + col1 AS REAL ) AS col0 FROM tab1 AS cor0 ---- 10 13 26 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - col2 ) + + cor0.col0 col2 FROM tab1 AS cor0 ---- -16 -51 7 query I rowsort SELECT ALL col1 + ( col2 ) AS col1 FROM tab1 cor0 ---- 109 67 80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 87 * col1 * - col2 col2 FROM tab0 ---- -246906 -649194 -8439 query I rowsort SELECT DISTINCT + col1 + col2 * col0 * ( - col0 * col0 ) FROM tab2 ---- -12338293 -18735465 -9230 query I rowsort SELECT - + col0 - + col0 AS col2 FROM tab1 cor0 ---- -128 -160 -6 query I rowsort SELECT ALL + - ( - col2 ) - col0 FROM tab2 AS cor0 ---- -41 -52 20 query I rowsort SELECT ALL - ( - cor0.col2 ) AS col1 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7764 SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-7764 SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT DISTINCT + + 51 + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0 ---- -6033 -6190 2 query I rowsort SELECT DISTINCT - 70 * col0 + - 8 FROM tab2 AS cor0 ---- -498 -5468 -5538 onlyif mysql # use DIV operator for integer division query I rowsort label-7767 SELECT + + col2 DIV col1 AS col0 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-7767 SELECT + + col2 / col1 AS col0 FROM tab1 AS cor0 ---- 2 5 7 query I rowsort SELECT - col0 + ( col0 ) + + cor0.col0 * col1 FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT DISTINCT - cor0.col0 * col0 * + col0 AS col0 FROM tab1 cor0 ---- -262144 -27 -512000 query I rowsort SELECT ALL col2 + - ( 5 + + col2 ) AS col1 FROM tab1 AS cor0 ---- -5 -5 -5 query I rowsort SELECT DISTINCT + col0 * - col1 * col0 AS col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT + - col0 + col0 + col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT + + 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d query I rowsort SELECT DISTINCT + + col2 * + col0 * - col0 + - cor0.col1 AS col1 FROM tab2 cor0 ---- -1354 -158243 -237175 query I rowsort SELECT ALL 29 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 query I rowsort SELECT ALL - ( + 73 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc query I rowsort SELECT - + ( 43 ) + - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to 98aa3c98c4a18d92f645918554309db7 query I rowsort SELECT col1 + - col0 + 46 FROM tab2 ---- -16 27 70 query I rowsort SELECT DISTINCT col1 + - col2 * + col0 AS col2 FROM tab1 ---- -136 -3638 -7667 query I rowsort SELECT - col0 + + 97 FROM tab0 ---- 62 73 8 query I rowsort SELECT - 22 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to fae46f8148b02964f7145eb6ed5819f9 query I rowsort SELECT + - col2 + 7 * col2 - col0 FROM tab0 AS cor0 ---- -29 174 403 query I rowsort SELECT + col1 * col2 * col0 AS col0 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT ALL + + cor0.col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 366ec539af0f37bd1519bc568f3d6775 onlyif mysql # use DIV operator for integer division query I rowsort label-7785 SELECT DISTINCT - + col2 * - col0 + col0 DIV + col1 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 skipif mysql # not compatible query I rowsort label-7785 SELECT DISTINCT - + col2 * - col0 + col0 / + col1 AS col0 FROM tab0 AS cor0 ---- 35 7298 792 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1, tab0 AS cor0, tab1 cor1, tab0, tab0 AS cor2 ---- 3645 values hashing to d24b34b0673c90715a7101e7e630fa94 query I rowsort SELECT + tab0.col0 AS col1 FROM tab0, tab1, tab1 cor0 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT DISTINCT - ( + tab2.col1 ) AS col1 FROM tab2 ---- -17 -31 -59 query I rowsort SELECT DISTINCT - 92 + - 57 * col0 FROM tab2 ---- -4538 -4595 -491 onlyif mysql # use DIV operator for integer division query I rowsort label-7790 SELECT + ( + 82 ) - - col2 DIV col2 FROM tab1 ---- 83 83 83 skipif mysql # not compatible query I rowsort label-7790 SELECT + ( + 82 ) - - col2 / col2 FROM tab1 ---- 83 83 83 query I rowsort SELECT - - 53 FROM tab2 AS cor0 ---- 53 53 53 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col0 ) + ( - col2 ) * cor0.col2 col2 FROM tab1 AS cor0 ---- -2913 -3185 -9136 query I rowsort SELECT ALL - col0 + col2 * col0 AS col2 FROM tab0 AS cor0 ---- 0 7209 768 onlyif mysql # use DIV operator for integer division query I rowsort label-7794 SELECT DISTINCT - 55 DIV col0 FROM tab2 AS cor0 ---- -7 0 skipif mysql # not compatible query I rowsort label-7794 SELECT DISTINCT - 55 / col0 FROM tab2 AS cor0 ---- -7 0 onlyif mysql # use DIV operator for integer division query I rowsort label-7795 SELECT ALL + + ( + cor0.col0 ) * + col0 + col2 DIV col2 AS col2 FROM tab0 AS cor0 ---- 1226 577 7922 skipif mysql # not compatible query I rowsort label-7795 SELECT ALL + + ( + cor0.col0 ) * + col0 + col2 / col2 AS col2 FROM tab0 AS cor0 ---- 1226 577 7922 query I rowsort SELECT ALL 0 + col1 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT - tab1.col2 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 44fdcd7cd603352d4d127811d164cc1e onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7798 SELECT + col2 * - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7798 SELECT + col2 * - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 41 + col2 FROM tab0 AS cor0 ---- 123 42 74 onlyif mysql # use DIV operator for integer division query I rowsort label-7800 SELECT ALL - - col2 DIV + col1 - cor0.col2 * + col2 * col0 FROM tab0 AS cor0 ---- -26136 -35 -598436 skipif mysql # not compatible query I rowsort label-7800 SELECT ALL - - col2 / + col1 - cor0.col2 * + col2 * col0 FROM tab0 AS cor0 ---- -26136 -35 -598436 query I rowsort SELECT 19 + col1 * + col2 * - 49 AS col0 FROM tab2 AS cor0 ---- -31635 -40994 -75147 onlyif mysql # use DIV operator for integer division query I rowsort label-7802 SELECT ALL + col2 + cor0.col2 DIV + col1 col2 FROM tab0 cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7802 SELECT ALL + col2 + cor0.col2 / + col1 col2 FROM tab0 cor0 ---- 1 33 82 query I rowsort SELECT - 56 + - col1 * col2 AS col1 FROM tab0 AS cor0 ---- -153 -2894 -7518 query I rowsort SELECT col2 + ( col0 ) AS col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT ALL cor0.col0 * col1 + + col0 AS col0 FROM tab1 AS cor0 ---- 1120 704 81 query I rowsort SELECT DISTINCT col2 + + 50 - ( col0 ) FROM tab0 AS cor0 ---- 16 43 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * + col1 * + col1 + col2 * col0 col1 FROM tab0 AS cor0 ---- 178296 329350 744307 query I rowsort SELECT ALL col0 + - 55 AS col2 FROM tab0 AS cor0 ---- -20 -31 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col2 * - 4 col0 FROM tab1 AS cor0 ---- 216 228 384 query I rowsort SELECT ALL - - col1 * + col1 * + 42 AS col0 FROM tab1 AS cor0 ---- 28392 4200 7098 query I rowsort SELECT ALL + cor0.col2 + - 18 FROM tab1 AS cor0 ---- 36 39 78 query I rowsort SELECT ( - ( col0 ) ) + 40 FROM tab0 AS cor0 ---- -49 16 5 onlyif mysql # use DIV operator for integer division query I rowsort label-7813 SELECT ALL + + cor0.col1 * - col2 + - col1 DIV col0 FROM tab2 AS cor0 ---- -1534 -646 -841 skipif mysql # not compatible query I rowsort label-7813 SELECT ALL + + cor0.col1 * - col2 + - col1 / col0 FROM tab2 AS cor0 ---- -1534 -646 -841 onlyif mysql # use DIV operator for integer division query I rowsort label-7814 SELECT DISTINCT + cor0.col2 + + col2 * col2 DIV col2 - 70 FROM tab0 AS cor0 ---- -4 -68 94 skipif mysql # not compatible query I rowsort label-7814 SELECT DISTINCT + cor0.col2 + + col2 * col2 / col2 - 70 FROM tab0 AS cor0 ---- -4 -68 94 onlyif mysql # use DIV operator for integer division query I rowsort label-7815 SELECT + - ( col1 ) + col0 DIV - col2 FROM tab0 AS cor0 ---- -132 -86 -92 skipif mysql # not compatible query I rowsort label-7815 SELECT + - ( col1 ) + col0 / - col2 FROM tab0 AS cor0 ---- -132 -86 -92 onlyif mysql # use DIV operator for integer division query I rowsort label-7816 SELECT - ( - col1 ) DIV - col1 + col1 FROM tab1 AS cor0 ---- 12 25 9 skipif mysql # not compatible query I rowsort label-7816 SELECT - ( - col1 ) / - col1 + col1 FROM tab1 AS cor0 ---- 12 25 9 query I rowsort SELECT cor0.col2 * - col0 + + col1 FROM tab2 AS cor0 ---- -158 -1969 -2985 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7818 SELECT + CAST( col1 AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0 ---- 29 74 93 skipif mysql # not compatible query I rowsort label-7818 SELECT + CAST ( col1 AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0 ---- 29 74 93 onlyif mysql # use DIV operator for integer division query I rowsort label-7819 SELECT - ( col2 ) + col0 + - col0 DIV col2 FROM tab1 AS cor0 ---- -16 -51 6 skipif mysql # not compatible query I rowsort label-7819 SELECT - ( col2 ) + col0 + - col0 / col2 FROM tab1 AS cor0 ---- -16 -51 6 query I rowsort SELECT DISTINCT - - col2 * 19 FROM tab0 AS cor0 ---- 1558 19 627 query I rowsort SELECT DISTINCT ( 74 ) FROM tab1, tab0 cor0 ---- 74 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 * tab2.col0 col0 FROM tab2 ---- 1343 217 4602 query I rowsort SELECT DISTINCT + 93 + + col1 AS col0 FROM tab1 AS cor0 ---- 103 106 119 onlyif mysql # use DIV operator for integer division query I rowsort label-7824 SELECT ALL + 93 DIV ( col2 + 9 ) FROM tab0 AS cor0 ---- 1 2 9 skipif mysql # not compatible query I rowsort label-7824 SELECT ALL + 93 / ( col2 + 9 ) FROM tab0 AS cor0 ---- 1 2 9 query I rowsort SELECT - col2 * col1 + col1 AS col0 FROM tab2 cor0 ---- -1475 -629 -806 query I rowsort SELECT - - 46 + - col2 * col0 * - 7 AS col2 FROM tab0 AS cor0 ---- 291 51132 5590 query I rowsort SELECT DISTINCT + cor0.col1 * tab2.col2 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 2dce99ccc9ab3f12533423eaad01995c query I rowsort SELECT DISTINCT 29 + + 14 AS col0 FROM tab1 ---- 43 query I rowsort SELECT DISTINCT + + 83 FROM tab2 cor0 ---- 83 query I rowsort SELECT ALL - cor0.col0 * - ( cor0.col0 ) FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 3fb27a91711469131edbffaad90e6035 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7831 SELECT - CAST( NULL AS SIGNED ) * 95 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7831 SELECT - CAST ( NULL AS INTEGER ) * 95 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7832 SELECT ALL + col0 DIV - col0 AS col1 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7832 SELECT ALL + col0 / - col0 AS col1 FROM tab2 ---- -1 -1 -1 query I rowsort SELECT 0 AS col2 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT tab0.col1 + 33 AS col0 FROM tab0 ---- 119 124 130 query I rowsort SELECT DISTINCT - tab1.col2 * + ( col1 ) FROM tab1 ---- -1248 -1404 -570 query I rowsort SELECT ALL + ( - col1 ) * + col1 + ( + col2 ) * col1 FROM tab2 AS cor0 ---- -124 -1947 357 onlyif mysql # use DIV operator for integer division query I rowsort label-7837 SELECT 47 DIV - col0 AS col1 FROM tab1 cor0 ---- -15 0 0 skipif mysql # not compatible query I rowsort label-7837 SELECT 47 / - col0 AS col1 FROM tab1 cor0 ---- -15 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( 39 ) + + col0 col0 FROM tab2 ---- 117 118 46 onlyif mysql # use DIV operator for integer division query I rowsort label-7839 SELECT 32 DIV cor0.col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7839 SELECT 32 / cor0.col2 FROM tab1 AS cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7840 SELECT - + CAST( NULL AS DECIMAL ) * + cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7840 SELECT - + CAST ( NULL AS REAL ) * + cor0.col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 51 col2 FROM tab1 AS cor0 ---- -51 onlyif mysql # use DIV operator for integer division query I rowsort label-7842 SELECT - ( col2 ) DIV cor0.col0 AS col0 FROM tab1 AS cor0 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-7842 SELECT - ( col2 ) / cor0.col0 AS col0 FROM tab1 AS cor0 ---- -1 -18 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7843 SELECT ALL ( col2 ) + cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7843 SELECT ALL ( col2 ) + cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 16 * - col2 AS col0 FROM tab2 cor0 ---- -416 -432 -608 query I rowsort SELECT col0 + + 45 * + col2 AS col2 FROM tab2 AS cor0 ---- 1222 1248 1789 query I rowsort SELECT ALL + cor0.col1 * col1 * - 75 + 81 FROM tab0 AS cor0 ---- -554619 -620994 -705594 query I rowsort SELECT col1 * col0 + - col1 * + cor0.col1 AS col1 FROM tab1 AS cor0 ---- -598 540 871 query I rowsort SELECT DISTINCT - col0 * col0 - 34 AS col1 FROM tab0 AS cor0 ---- -1259 -610 -7955 query I rowsort SELECT + - col0 * col2 - - col1 AS col0 FROM tab1 cor0 ---- -136 -3638 -7667 query I rowsort SELECT DISTINCT + ( + col2 ) + - col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT ALL - col2 * cor0.col2 * + col1 FROM tab2 AS cor0 ---- -22599 -24548 -39884 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 + + col0 col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT ALL - 22 + cor0.col1 FROM tab1 AS cor0 ---- -12 -9 4 query I rowsort SELECT ALL + col2 * col0 + col0 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT DISTINCT - col1 * col1 * + col2 FROM tab2 AS cor0 ---- -10982 -25947 -90506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 - col0 col0 FROM tab1 AS cor0 ---- -29 -74 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-7857 SELECT - + 29 * col0 + + col0 DIV col1 AS col2 FROM tab2 AS cor0 ---- -203 -2261 -2287 skipif mysql # not compatible query I rowsort label-7857 SELECT - + 29 * col0 + + col0 / col1 AS col2 FROM tab2 AS cor0 ---- -203 -2261 -2287 onlyif mysql # use DIV operator for integer division query I rowsort label-7858 SELECT ALL - col0 * cor0.col1 DIV + col0 FROM tab1 AS cor0 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-7858 SELECT ALL - col0 * cor0.col1 / + col0 FROM tab1 AS cor0 ---- -10 -13 -26 query I rowsort SELECT col1 * ( - col1 ) * + col1 AS col1 FROM tab1 AS cor0 ---- -1000 -17576 -2197 query I rowsort SELECT - cor0.col0 * + cor0.col1 AS col1 FROM tab2 cor0 ---- -1343 -217 -4602 onlyif mysql # use DIV operator for integer division query I rowsort label-7861 SELECT DISTINCT + col0 DIV 69 + col0 + - col0 FROM tab0 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-7861 SELECT DISTINCT + col0 / 69 + col0 + - col0 FROM tab0 AS cor0 ---- 0 1 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7862 SELECT - col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 skipif mysql # not compatible query I rowsort label-7862 SELECT - col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 162 3648 7680 query I rowsort SELECT + - col2 * + col2 + ( col0 ) FROM tab2 AS cor0 ---- -1365 -598 -722 query I rowsort SELECT + 24 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to aeeac431d22528188e8a5a2a60d2d080 query I rowsort SELECT col1 + - cor0.col2 AS col2 FROM tab0 AS cor0 ---- 53 9 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7866 SELECT + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7866 SELECT + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7867 SELECT - col1 * col0 - col0 DIV col1 FROM tab1 AS cor0 ---- -1046 -646 -78 skipif mysql # not compatible query I rowsort label-7867 SELECT - col1 * col0 - col0 / col1 FROM tab1 AS cor0 ---- -1046 -646 -78 query I rowsort SELECT DISTINCT + col1 + + col0 + - 40 AS col0 FROM tab2 ---- -2 56 97 query I rowsort SELECT - + col1 + - col2 * - 47 FROM tab0 AS cor0 ---- -50 1465 3763 query I rowsort SELECT - + col2 * cor0.col0 + col1 AS col1 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT DISTINCT col1 * 90 AS col1 FROM tab2 ---- 1530 2790 5310 query I rowsort SELECT + 11 + 13 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 ---- 27 values hashing to aeeac431d22528188e8a5a2a60d2d080 query I rowsort SELECT DISTINCT + tab0.col2 AS col2 FROM tab0, tab2 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor2.col2 + 2 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2 ---- 3 35 84 query I rowsort SELECT + 35 * col0 - col0 FROM tab1 cor0 ---- 102 2176 2720 query I rowsort SELECT DISTINCT 9 * + 2 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 18 query I rowsort SELECT DISTINCT + col0 + + col1 + ( + 35 ) AS col1 FROM tab2 ---- 131 172 73 query I rowsort SELECT + 82 AS col0 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944 query I rowsort SELECT ALL - - 17 * ( - col1 * col1 ) FROM tab2 AS cor0 ---- -16337 -4913 -59177 onlyif mysql # use DIV operator for integer division query I rowsort label-7880 SELECT ALL + - cor0.col2 DIV + col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7880 SELECT ALL + - cor0.col2 / + col2 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT + cor0.col2 + 6 AS col2 FROM tab0 AS cor0 ---- 39 7 88 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7882 SELECT - cor1.col2 + CAST( 31 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 6ba2b7bdc8f8ea331b8389819ce67083 skipif mysql # not compatible query I rowsort label-7882 SELECT - cor1.col2 + CAST ( 31 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 6ba2b7bdc8f8ea331b8389819ce67083 query I rowsort SELECT col0 * - 58 AS col1 FROM tab1 AS cor0 ---- -174 -3712 -4640 query I rowsort SELECT DISTINCT - col2 - 9 FROM tab0 cor0 ---- -10 -42 -91 onlyif mysql # use DIV operator for integer division query I rowsort label-7885 SELECT - cor0.col0 DIV - 96 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 skipif mysql # not compatible query I rowsort label-7885 SELECT - cor0.col0 / - 96 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT ALL - 88 * + col2 AS col0 FROM tab2 AS cor0 ---- -2288 -2376 -3344 query I rowsort SELECT - 91 * 34 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 24db3676316c861af8a293ec5c541979 onlyif mysql # use DIV operator for integer division query I rowsort label-7888 SELECT ALL - tab2.col1 DIV 86 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7888 SELECT ALL - tab2.col1 / 86 FROM tab2 ---- 0 0 0 query I rowsort SELECT - tab1.col2 + ( + col1 + + col1 ) * - col2 * - tab1.col0 AS col2 FROM tab1 ---- 199584 72903 8370 query I rowsort SELECT DISTINCT + col0 + - col1 * - col1 * + col0 FROM tab1 AS cor0 ---- 13600 2031 6464 query I rowsort SELECT ALL + + col0 * + ( + col1 ) + - col1 FROM tab1 AS cor0 ---- 1027 52 630 query I rowsort SELECT 27 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 1a3cef5c33b8f87ffeded378fd207753 query I rowsort SELECT DISTINCT tab2.col2 * tab2.col1 * - ( 82 ) FROM tab2 ---- -125788 -52972 -68634 query I rowsort SELECT - 3 * col0 AS col2 FROM tab0 ---- -105 -267 -72 query I rowsort SELECT - col0 * ( + cor0.col0 ) * + col1 AS col1 FROM tab1 AS cor0 ---- -234 -40960 -83200 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7896 SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1 ---- NULL skipif mysql # not compatible query I rowsort label-7896 SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1 ---- NULL query I rowsort SELECT - col1 + 75 FROM tab1 cor0 ---- 49 62 65 onlyif mysql # use DIV operator for integer division query I rowsort label-7898 SELECT col1 + CAST( col1 AS SIGNED ) DIV - col0 AS col0 FROM tab1 cor0 ---- 10 13 18 skipif mysql # not compatible query I rowsort label-7898 SELECT col1 + CAST ( col1 AS INTEGER ) / - col0 AS col0 FROM tab1 cor0 ---- 10 13 18 query I rowsort SELECT col1 + 96 AS col2 FROM tab1 cor0 ---- 106 109 122 onlyif mysql # use DIV operator for integer division query I rowsort label-7900 SELECT DISTINCT - col0 * col1 DIV + col0 + cor0.col0 FROM tab2 AS cor0 ---- -24 19 62 skipif mysql # not compatible query I rowsort label-7900 SELECT DISTINCT - col0 * col1 / + col0 + cor0.col0 FROM tab2 AS cor0 ---- -24 19 62 query I rowsort SELECT - col2 * cor0.col1 + col2 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT DISTINCT col2 + - col2 * + col0 * col2 + - 89 AS col1 FROM tab0 ---- -123 -26192 -598443 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7903 SELECT ALL - tab1.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7903 SELECT ALL - tab1.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT col0 * tab1.col1 - 88 FROM tab1 ---- -10 552 952 query I rowsort SELECT ALL col0 * col1 + + col0 * + col0 FROM tab0 ---- 16020 2640 4620 query I rowsort SELECT DISTINCT col1 + - 94 * col2 FROM tab0 ---- -3016 -7617 3 query I rowsort SELECT + col0 * 29 AS col2 FROM tab1 ---- 1856 2320 87 query I rowsort SELECT col0 + 91 FROM tab0 ---- 115 126 180 query I rowsort SELECT + col2 * col1 + - col0 FROM tab0 AS cor0 ---- 2814 62 7373 query I rowsort SELECT + + ( col2 ) * col0 FROM tab1 AS cor0 ---- 162 3648 7680 onlyif mysql # use DIV operator for integer division query I rowsort label-7911 SELECT ALL - col1 * - col0 + + col1 DIV cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1382 245 4629 skipif mysql # not compatible query I rowsort label-7911 SELECT ALL - col1 * - col0 + + col1 / cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1382 245 4629 query I rowsort SELECT ( 22 ) * col2 FROM tab1 AS cor0 ---- 1188 1254 2112 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 57 + 1 col1 FROM tab0 AS cor0 ---- -56 -56 -56 query I rowsort SELECT DISTINCT ( + 21 ) * + col1 * col0 FROM tab0 cor0 ---- 170079 43344 71295 query I rowsort SELECT DISTINCT col1 * col2 * + col0 FROM tab0 AS cor0 ---- 3395 664118 68112 query I rowsort SELECT - cor0.col0 + - cor0.col2 + col0 * + ( col2 * col1 ) AS col1 FROM tab0 AS cor0 ---- 3359 663947 68055 query I rowsort SELECT DISTINCT - + 92 AS col0 FROM tab2 AS cor0 ---- -92 query I rowsort SELECT DISTINCT 14 + - 54 AS col2 FROM tab0 AS cor0 ---- -40 query I rowsort SELECT + tab0.col1 * ( col0 ) FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT ALL - + 63 * + col0 + - col1 AS col2 FROM tab2 AS cor0 ---- -472 -4973 -4994 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7921 SELECT ALL CAST( NULL AS SIGNED ) + col0 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-7921 SELECT ALL CAST ( NULL AS INTEGER ) + col0 col2 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7922 SELECT ALL + col0 * 74 + col1 + CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0 ---- 302 4803 6029 skipif mysql # not compatible query I rowsort label-7922 SELECT ALL + col0 * 74 + col1 + CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0 ---- 302 4803 6029 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7923 SELECT ALL + CAST( cor0.col1 AS SIGNED ) * cor0.col1 * - cor0.col2 FROM tab2 AS cor0 ---- -10982 -25947 -90506 skipif mysql # not compatible query I rowsort label-7923 SELECT ALL + CAST ( cor0.col1 AS INTEGER ) * cor0.col1 * - cor0.col2 FROM tab2 AS cor0 ---- -10982 -25947 -90506 query I rowsort SELECT - - 60 - cor0.col1 FROM tab1 AS cor0 ---- 34 47 50 query I rowsort SELECT - col1 * - cor0.col1 + col2 * cor0.col2 AS col0 FROM tab2 AS cor0 ---- 1690 1733 4157 query I rowsort SELECT + 3 + + col1 AS col0 FROM tab0 AS cor0 ---- 100 89 94 query I rowsort SELECT - 5 * + col0 AS col1 FROM tab2 AS cor0 ---- -35 -390 -395 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 10 col1 FROM tab0 AS cor0 ---- -10 -10 -10 query I rowsort SELECT ALL + col0 - + col2 * 35 FROM tab2 AS cor0 ---- -1251 -832 -938 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 59 + - col1 col0 FROM tab2 AS cor0 ---- 0 28 42 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7931 SELECT - 22 * - cor0.col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7931 SELECT - 22 * - cor0.col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7932 SELECT ALL - col0 DIV col1 + - col0 col0 FROM tab0 AS cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7932 SELECT ALL - col0 / col1 + - col0 col0 FROM tab0 AS cor0 ---- -24 -35 -89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - 94 * col0 * - ( + col2 * col1 ) col0 FROM tab2 AS cor0 ---- 11247288 4797196 550746 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 - - col1 col1 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT ALL + col2 * - 38 FROM tab1 AS cor0 ---- -2052 -2166 -3648 query I rowsort SELECT DISTINCT + col0 * - col2 * + col1 FROM tab0 cor0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT - 6 AS col2 FROM tab0, tab1 cor0 ---- -6 query I rowsort SELECT - 43 * - cor0.col0 AS col0 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 9cd0982b8d016e2b7a32f10e99ba00c7 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 + col0 col0 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT 75 * + col2 FROM tab1 ---- 4050 4275 7200 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7941 SELECT - col0 + + cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7941 SELECT - col0 + + cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-7942 SELECT ALL ( + col2 ) * col0 DIV + 94 + col1 FROM tab2 cor0 ---- 33 48 80 skipif mysql # not compatible query I rowsort label-7942 SELECT ALL ( + col2 ) * col0 / + 94 + col1 FROM tab2 cor0 ---- 33 48 80 query I rowsort SELECT col1 * + col0 + - col2 FROM tab2 ---- 1305 190 4576 query I rowsort SELECT DISTINCT col1 + col0 + col2 FROM tab1 ---- 131 189 83 query I rowsort SELECT ALL col1 + 30 AS col2 FROM tab1 ---- 40 43 56 query I rowsort SELECT - col2 + 83 AS col2 FROM tab1 ---- -13 26 29 query I rowsort SELECT 81 * 46 AS col0 FROM tab2 ---- 3726 3726 3726 query I rowsort SELECT - col0 + - col1 * ( - col2 + col2 * ( - col0 ) ) FROM tab2 AS cor0 ---- 121108 51601 6689 query I rowsort SELECT 79 + - col0 FROM tab2 AS cor0 ---- 0 1 72 query I rowsort SELECT ALL ( + col2 ) * col0 * ( - col0 ) FROM tab0 AS cor0 ---- -1225 -19008 -649522 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( + col0 ) + + 99 * - 74 col1 FROM tab2 AS cor0 ---- -7247 -7248 -7319 query I rowsort SELECT - 94 * + col0 FROM tab2 AS cor0 ---- -658 -7332 -7426 onlyif mysql # use DIV operator for integer division query I rowsort label-7953 SELECT + cor0.col0 DIV cor0.col1 + ( - col0 + col0 ) * col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-7953 SELECT + cor0.col0 / cor0.col1 + ( - col0 + col0 ) * col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - cor0.col1 + + cor0.col1 * - col2 AS col1 FROM tab2 cor0 ---- -1593 -663 -868 query I rowsort SELECT ALL 58 * + cor0.col1 + col2 FROM tab0 AS cor0 ---- 5021 5360 5627 query I rowsort SELECT col1 + + col0 * - col2 * col0 AS col1 FROM tab1 ---- -233462 -460 -614387 query I rowsort SELECT ALL - cor0.col2 * cor0.col0 AS col0 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT + + col0 * col2 + col0 AS col2 FROM tab1 AS cor0 ---- 165 3712 7760 onlyif mysql # use DIV operator for integer division query I rowsort label-7959 SELECT ALL + cor0.col0 DIV cor0.col1 + col1 * - col2 + 55 col1 FROM tab1 AS cor0 ---- -1187 -1349 -509 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-7959 SELECT ALL + cor0.col0 / cor0.col1 + col1 * - col2 + 55 col1 FROM tab1 AS cor0 ---- -1187 -1349 -509 query I rowsort SELECT ALL - col1 + ( col1 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + + cor0.col2 - + 64 FROM tab0 AS cor0 ---- -31 -63 18 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 34 * - 1 col2 FROM tab1 AS cor0 ---- -34 query I rowsort SELECT DISTINCT cor0.col0 * + ( - 62 ) AS col0 FROM tab0, tab1 AS cor0, tab0 cor1 ---- -186 -3968 -4960 query I rowsort SELECT - - 5 * col0 FROM tab2 AS cor0 ---- 35 390 395 onlyif mysql # use DIV operator for integer division query I rowsort label-7965 SELECT DISTINCT - - ( - 57 ) DIV + col0 FROM tab2 AS cor0 ---- -8 0 skipif mysql # not compatible query I rowsort label-7965 SELECT DISTINCT - - ( - 57 ) / + col0 FROM tab2 AS cor0 ---- -8 0 query I rowsort SELECT + ( ( cor0.col1 ) ) * col1 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT ( col1 ) * - col2 + 26 FROM tab0 AS cor0 ---- -2812 -71 -7436 query I rowsort SELECT - col0 + - col0 - col1 * ( - 49 ) AS col0 FROM tab2 AS cor0 ---- 1505 2735 675 query I rowsort SELECT ALL + 65 * + 0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - 87 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 ---- -87 onlyif mysql # use DIV operator for integer division query I rowsort label-7971 SELECT + 54 DIV - 32 AS col2 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-7971 SELECT + 54 / - 32 AS col2 FROM tab2 ---- -1 -1 -1 query I rowsort SELECT DISTINCT 87 * col2 FROM tab2 ---- 2262 2349 3306 query I rowsort SELECT - 88 * - col1 AS col2 FROM tab0 AS cor0 ---- 7568 8008 8536 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7974 SELECT - CAST( + col2 AS SIGNED ) * + col0 - col0 * col1 AS col1 FROM tab2 AS cor0 ---- -406 -4345 -6630 skipif mysql # not compatible query I rowsort label-7974 SELECT - CAST ( + col2 AS INTEGER ) * + col0 - col0 * col1 AS col1 FROM tab2 AS cor0 ---- -406 -4345 -6630 query I rowsort SELECT - - col0 + - 43 AS col2 FROM tab1 cor0 ---- -40 21 37 query I rowsort SELECT DISTINCT + col1 + 95 * col2 FROM tab0 AS cor0 ---- 192 3221 7881 query I rowsort SELECT ALL 25 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 2c77240b60ac01c717a5ed5d0165f450 query I rowsort SELECT 66 + col1 FROM tab1 cor0 ---- 76 79 92 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7979 SELECT + col1 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- -54 -67 23 skipif mysql # not compatible query I rowsort label-7979 SELECT + col1 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- -54 -67 23 query I rowsort SELECT 40 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7981 SELECT ALL col1 * + CAST( - col2 AS SIGNED ) * col1 FROM tab2 cor0 ---- -10982 -25947 -90506 skipif mysql # not compatible query I rowsort label-7981 SELECT ALL col1 * + CAST ( - col2 AS INTEGER ) * col1 FROM tab2 cor0 ---- -10982 -25947 -90506 query I rowsort SELECT DISTINCT + - cor0.col2 + - 96 FROM tab2 AS cor0 ---- -122 -123 -134 query I rowsort SELECT ALL 21 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 312c166f4dc412730c43555105b1f44b query I rowsort SELECT ALL 2 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261 query I rowsort SELECT DISTINCT col2 * col1 * - 37 AS col1 FROM tab0 ---- -105006 -276094 -3589 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7986 SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-7986 SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT col1 + col2 * + 81 AS col1 FROM tab1 AS cor0 ---- 4400 4627 7789 query I rowsort SELECT ALL 3 + col2 FROM tab2 AS cor0 ---- 29 30 41 query I rowsort SELECT ALL - 20 + - col2 * cor0.col0 FROM tab1 AS cor0 ---- -182 -3668 -7700 query I rowsort SELECT DISTINCT + + col2 + + col2 * 29 AS col1 FROM tab1 AS cor0 ---- 1620 1710 2880 query I rowsort SELECT - - 71 + + col2 FROM tab0 cor0 ---- 104 153 72 query I rowsort SELECT ALL - - 95 * cor0.col1 + - col2 FROM tab0 AS cor0 ---- 8137 8563 9214 query I rowsort SELECT ALL - cor0.col2 * + cor0.col2 + - 90 FROM tab2 AS cor0 ---- -1534 -766 -819 query I rowsort SELECT DISTINCT + col2 + - col2 - col1 AS col0 FROM tab0 AS cor0 ---- -86 -91 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-7995 SELECT + 48 * + col0 + CAST( NULL AS SIGNED ) / + ( + col1 ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-7995 SELECT + 48 * + col0 + CAST ( NULL AS INTEGER ) / + ( + col1 ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( - col1 ) + - col0 FROM tab1 cor0 ---- -54 -67 23 query I rowsort SELECT + col1 * + col0 * - ( col2 ) AS col2 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT DISTINCT + col1 * col0 + - col1 AS col0 FROM tab2 AS cor0 ---- 1326 186 4543 query I rowsort SELECT ALL - - cor0.col2 * 7 AS col0 FROM tab2 AS cor0 ---- 182 189 266 query I rowsort SELECT DISTINCT - cor0.col1 + - 9 FROM tab1 AS cor0 ---- -19 -22 -35 query I rowsort SELECT + col1 * 63 + - col2 FROM tab2 AS cor0 ---- 1033 1926 3691 onlyif mysql # use DIV operator for integer division query I rowsort label-8002 SELECT DISTINCT cor0.col0 DIV 10 + + col1 FROM tab2 AS cor0 ---- 24 31 66 skipif mysql # not compatible query I rowsort label-8002 SELECT DISTINCT cor0.col0 / 10 + + col1 FROM tab2 AS cor0 ---- 24 31 66 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8003 SELECT ALL + col2 * - col0 + - CAST( NULL AS SIGNED ) * - col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8003 SELECT ALL + col2 * - col0 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8004 SELECT + cor0.col1 * col1 + col1 DIV 4 AS col0 FROM tab0 AS cor0 ---- 7417 8303 9433 skipif mysql # not compatible query I rowsort label-8004 SELECT + cor0.col1 * col1 + col1 / 4 AS col0 FROM tab0 AS cor0 ---- 7417 8303 9433 query I rowsort SELECT col2 * 86 FROM tab0 ---- 2838 7052 86 query I rowsort SELECT ALL + col2 * 63 * tab0.col1 FROM tab0 ---- 178794 470106 6111 query I rowsort SELECT ALL - col1 + - ( col1 ) AS col2 FROM tab0 AS cor0 ---- -172 -182 -194 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + 43 * cor0.col1 + cor0.col2 * - col1 col1 FROM tab0 AS cor0 ---- -3549 4074 860 query I rowsort SELECT + col0 * - 85 FROM tab0 ---- -2040 -2975 -7565 query I rowsort SELECT DISTINCT + col1 + - cor0.col0 AS col0 FROM tab1 cor0 ---- -54 -67 23 query I rowsort SELECT + - col1 * cor0.col0 + + col2 * 61 FROM tab2 AS cor0 ---- -3016 1430 975 query I rowsort SELECT + - cor0.col0 + - col0 FROM tab1 AS cor0 ---- -128 -160 -6 query I rowsort SELECT ALL - 24 * + col2 AS col2 FROM tab2 ---- -624 -648 -912 query I rowsort SELECT DISTINCT - col1 * col1 - col2 AS col0 FROM tab2 ---- -327 -3507 -988 onlyif mysql # use DIV operator for integer division query I rowsort label-8015 SELECT ( - col0 ) DIV col1 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8015 SELECT ( - col0 ) / col1 FROM tab0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8016 SELECT DISTINCT - col2 + - 84 DIV + col1 AS col0 FROM tab1 ---- -102 -57 -65 skipif mysql # not compatible query I rowsort label-8016 SELECT DISTINCT - col2 + - 84 / + col1 AS col0 FROM tab1 ---- -102 -57 -65 query I rowsort SELECT + ( - tab0.col1 ) * - col2 + + col1 - - 50 FROM tab0 ---- 244 2974 7603 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8018 SELECT - ( col2 ) * - col1 * CAST( col1 AS SIGNED ) + col2 FROM tab1 ---- 16320 36558 5757 skipif mysql # not compatible query I rowsort label-8018 SELECT - ( col2 ) * - col1 * CAST ( col1 AS INTEGER ) + col2 FROM tab1 ---- 16320 36558 5757 query I rowsort SELECT - ( 99 ) - - col2 AS col1 FROM tab1 ---- -3 -42 -45 query I rowsort SELECT DISTINCT - ( - 88 ) AS col0 FROM tab1, tab2, tab2 AS cor0 ---- 88 query I rowsort SELECT DISTINCT + 13 - col2 FROM tab1 ---- -41 -44 -83 query I rowsort SELECT - col1 * + col2 + ( + ( + cor0.col2 ) ) * + col2 - col0 AS col2 FROM tab2 AS cor0 ---- -115 -936 719 query I rowsort SELECT DISTINCT col1 * - col0 * - col1 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT ALL tab2.col1 * col2 * + col1 - tab2.col1 AS col0 FROM tab2 ---- 10965 25916 90447 query I rowsort SELECT DISTINCT col2 * col0 - - col2 FROM tab2 ---- 2054 216 3040 query I rowsort SELECT 75 * cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 591d58ec249ef092a80b24db3c0a3f82 query I rowsort SELECT 3 * col2 AS col1 FROM tab0 ---- 246 3 99 onlyif mysql # use DIV operator for integer division query I rowsort label-8028 SELECT - col2 DIV - tab0.col0 + - ( col0 ) * - col0 + col0 FROM tab0 ---- 1260 601 8010 skipif mysql # not compatible query I rowsort label-8028 SELECT - col2 / - tab0.col0 + - ( col0 ) * - col0 + col0 FROM tab0 ---- 1260 601 8010 query I rowsort SELECT DISTINCT + 91 + col1 * ( col0 * col2 ) AS col2 FROM tab2 ---- 119743 51125 5950 onlyif mysql # use DIV operator for integer division query I rowsort label-8030 SELECT ALL col2 + col2 DIV + col1 + tab0.col0 FROM tab0 ---- 171 36 57 skipif mysql # not compatible query I rowsort label-8030 SELECT ALL col2 + col2 / + col1 + tab0.col0 FROM tab0 ---- 171 36 57 query I rowsort SELECT ALL col0 * + col0 * + 69 FROM tab0 ---- 39744 546549 84525 onlyif mysql # use DIV operator for integer division query I rowsort label-8032 SELECT ALL + col0 * col1 DIV col0 AS col0 FROM tab0 AS cor0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-8032 SELECT ALL + col0 * col1 / col0 AS col0 FROM tab0 AS cor0 ---- 86 91 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 27 * 39 col1 FROM tab1, tab1 AS cor0 ---- -1053 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8034 SELECT + col1 + CAST( - 6 AS SIGNED ) AS col0 FROM tab0 ---- 80 85 91 skipif mysql # not compatible query I rowsort label-8034 SELECT + col1 + CAST ( - 6 AS INTEGER ) AS col0 FROM tab0 ---- 80 85 91 query I rowsort SELECT + 21 AS col0 FROM tab2, tab1 AS cor0 ---- 9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7 query I rowsort SELECT + col1 + - col1 * tab1.col2 AS col2 FROM tab1 ---- -1235 -1378 -560 query I rowsort SELECT col2 - 55 FROM tab1 ---- -1 2 41 query I rowsort SELECT ALL - - 55 * col1 * col1 FROM tab2 AS cor0 ---- 15895 191455 52855 query I rowsort SELECT ALL + 46 * + ( - cor0.col1 ) FROM tab2 cor0 ---- -1426 -2714 -782 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1, tab2 AS cor1 ---- 3645 values hashing to e3f81e329d34d83e4528a9ef7b933946 query I rowsort SELECT ALL ( - 33 ) * col2 FROM tab0 AS cor0 ---- -1089 -2706 -33 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8042 SELECT DISTINCT ( + col2 ) * + col2 + + CAST( NULL AS DECIMAL ) * - col1 col1 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8042 SELECT DISTINCT ( + col2 ) * + col2 + + CAST ( NULL AS REAL ) * - col1 col1 FROM tab1 AS cor0 ---- NULL query I rowsort SELECT ALL - 68 * - 5 * + col0 AS col1 FROM tab2 cor0 ---- 2380 26520 26860 query I rowsort SELECT - col2 + + ( cor0.col0 ) * - col1 FROM tab0 AS cor0 ---- -2097 -3396 -8181 query I rowsort SELECT DISTINCT + cor0.col2 * + cor0.col2 AS col2 FROM tab2 AS cor0 ---- 1444 676 729 query I rowsort SELECT DISTINCT - + col0 * col0 * + col2 FROM tab0 AS cor0 ---- -1225 -19008 -649522 onlyif mysql # use DIV operator for integer division query I rowsort label-8047 SELECT - + col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-8047 SELECT - + col0 / cor0.col0 AS col2 FROM tab1 AS cor0 ---- -1 -1 -1 query I rowsort SELECT ALL + col2 + - col1 * + cor0.col1 FROM tab0 AS cor0 ---- -7363 -8199 -9408 query I rowsort SELECT ( col2 ) + - col2 * col1 FROM tab2 AS cor0 ---- -1508 -608 -810 query I rowsort SELECT ALL + + 25 * col2 FROM tab1 AS cor0 ---- 1350 1425 2400 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8051 SELECT CAST( + col2 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 skipif mysql # not compatible query I rowsort label-8051 SELECT CAST ( + col2 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( col1 ) * - cor0.col0 col2 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT + col0 + + col1 * col0 AS col2 FROM tab0 AS cor0 ---- 2088 3430 8188 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8054 SELECT ALL - - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8054 SELECT ALL - - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col1 - ( cor0.col2 ) col1 FROM tab1 cor0 ---- -28 -47 -83 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * col0 * col0 - col0 * col0 * - cor0.col0 col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - + col0 * 32 + col0 + - 94 AS col2 FROM tab2 AS cor0 ---- -2512 -2543 -311 query I rowsort SELECT + col1 * + col1 * - col1 FROM tab1 AS cor0 ---- -1000 -17576 -2197 query I rowsort SELECT + col0 * - ( cor0.col1 ) * - col1 + 24 FROM tab1 AS cor0 ---- 13544 2052 6424 query I rowsort SELECT tab2.col1 * - col0 AS col1 FROM tab2 ---- -1343 -217 -4602 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * + ( - col0 ) * - col1 col2 FROM tab1 ---- 13520 2028 6400 onlyif mysql # use DIV operator for integer division query I rowsort label-8062 SELECT - col0 DIV + ( col0 ) AS col0 FROM tab2 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-8062 SELECT - col0 / + ( col0 ) AS col0 FROM tab2 ---- -1 -1 -1 query I rowsort SELECT ALL + col0 * + col2 + 32 FROM tab0 AS cor0 ---- 67 7330 824 query I rowsort SELECT ALL - - col0 * col0 * col0 AS col2 FROM tab1 AS cor0 ---- 262144 27 512000 query I rowsort SELECT 96 + + col1 FROM tab1 AS cor0 ---- 106 109 122 query I rowsort SELECT + 7 * - tab0.col0 * - 83 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 317c7c1060459cda903a9fcde76aa12f onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8067 SELECT CAST( 21 AS SIGNED ) + col2 FROM tab1 ---- 117 75 78 skipif mysql # not compatible query I rowsort label-8067 SELECT CAST ( 21 AS INTEGER ) + col2 FROM tab1 ---- 117 75 78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8068 SELECT ALL - - col2 * col0 * - CAST( NULL AS SIGNED ) + 97 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8068 SELECT ALL - - col2 * col0 * - CAST ( NULL AS INTEGER ) + 97 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 2 col2 FROM tab2 ---- 2 query I rowsort SELECT ALL ( col1 ) + - 14 * - col0 AS col0 FROM tab0 AS cor0 ---- 1337 422 587 query I rowsort SELECT DISTINCT - 97 * col2 AS col0 FROM tab2 AS cor0 ---- -2522 -2619 -3686 query I rowsort SELECT 57 AS col0 FROM tab1 ---- 57 57 57 query I rowsort SELECT - tab2.col2 - 71 FROM tab2, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 68ffd0b54a3801a8e426984658765a66 query I rowsort SELECT DISTINCT 56 * col1 FROM tab1 ---- 1456 560 728 query I rowsort SELECT - col2 + - ( col1 ) * + col2 FROM tab0 AS cor0 ---- -2871 -7544 -98 query I rowsort SELECT + - cor0.col2 * 31 * col0 FROM tab0 cor0 ---- -1085 -226238 -24552 query I rowsort SELECT - - col1 * - 99 AS col1 FROM tab2 AS cor0 ---- -1683 -3069 -5841 query I rowsort SELECT ALL 44 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to ab2bc2b9f8baa300df7755e5980a319d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 + col1 col0 FROM tab1 AS cor0 ---- 29 74 93 query I rowsort SELECT + + cor0.col0 + - 68 AS col1 FROM tab2 AS cor0 ---- -61 10 11 onlyif mysql # use DIV operator for integer division query I rowsort label-8081 SELECT DISTINCT + + col0 * 31 DIV col2 + col1 DIV col0 FROM tab1 AS cor0 ---- 25 34 9 skipif mysql # not compatible query I rowsort label-8081 SELECT DISTINCT + + col0 * 31 / col2 + col1 / col0 FROM tab1 AS cor0 ---- 25 34 9 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 + ( cor0.col1 ) col2 FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8083 SELECT - CAST( NULL AS SIGNED ) * 47 + + cor0.col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8083 SELECT - CAST ( NULL AS INTEGER ) * 47 + + cor0.col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL 3 FROM tab0, tab2, tab2 cor0 ---- 27 values hashing to 3e22859a313d85a6146c6df5f23d77cf query I rowsort SELECT 15 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0 query I rowsort SELECT + - col1 * col2 + col2 * + col2 + - cor0.col1 AS col1 FROM tab0 AS cor0 ---- -1835 -193 -829 onlyif mysql # use DIV operator for integer division query I rowsort label-8087 SELECT DISTINCT - col0 DIV + 1 AS col1 FROM tab1 ---- -3 -64 -80 skipif mysql # not compatible query I rowsort label-8087 SELECT DISTINCT - col0 / + 1 AS col1 FROM tab1 ---- -3 -64 -80 query I rowsort SELECT + 23 * cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to d2d2cceaf3af38a9e0557b59f7cd6673 query I rowsort SELECT col1 FROM tab2 WHERE NULL NOT IN ( + tab2.col1 * - col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8090 SELECT col1 * col1 DIV + col2 AS col2 FROM tab1 ---- 1 1 12 skipif mysql # not compatible query I rowsort label-8090 SELECT col1 * col1 / + col2 AS col2 FROM tab1 ---- 1 1 12 query I rowsort SELECT ALL + col1 + + col2 + + col1 AS col0 FROM tab0 ---- 195 205 264 onlyif mysql # use DIV operator for integer division query I rowsort label-8092 SELECT + col1 * col2 DIV col1 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-8092 SELECT + col1 * col2 / col1 FROM tab0 ---- 1 33 82 query I rowsort SELECT DISTINCT col2 + + col2 * col2 AS col1 FROM tab1 ---- 2970 3306 9312 query I rowsort SELECT tab2.col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND col2 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + col2 * col1 col0 FROM tab0 ---- 2871 7544 98 query I rowsort SELECT + col1 * - tab1.col2 - + col0 FROM tab1 ---- -1328 -1407 -634 query I rowsort SELECT DISTINCT + col2 + tab0.col0 - col1 * col0 FROM tab0 ---- -2007 -3359 -7928 query I rowsort SELECT DISTINCT - col0 * + col1 + col2 + - col0 * - col1 FROM tab0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-8099 SELECT col1 DIV col1 - col0 * col2 AS col2 FROM tab2 ---- -188 -2027 -3001 skipif mysql # not compatible query I rowsort label-8099 SELECT col1 / col1 - col0 * col2 AS col2 FROM tab2 ---- -188 -2027 -3001 query I rowsort SELECT + col2 * - col0 * - col2 AS col1 FROM tab0 ---- 26136 35 598436 onlyif mysql # use DIV operator for integer division query I rowsort label-8101 SELECT DISTINCT col2 * col2 + - col1 + + col0 DIV col1 AS col2 FROM tab0 ---- -96 1003 6633 skipif mysql # not compatible query I rowsort label-8101 SELECT DISTINCT col2 * col2 + - col1 + + col0 / col1 AS col2 FROM tab0 ---- -96 1003 6633 query I rowsort SELECT ALL - col0 + col2 + + tab0.col2 * col0 FROM tab0 ---- 1 7291 801 query I rowsort SELECT col2 * tab2.col1 + - col1 AS col1 FROM tab2 ---- 1475 629 806 query I rowsort SELECT ALL - col1 + col1 + col1 AS col1 FROM tab0 ---- 86 91 97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8105 SELECT + - 19 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8105 SELECT + - 19 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - col0 * col2 + 17 * ( - col1 * 72 ) FROM tab0 ---- -106056 -118682 -118763 query I rowsort SELECT - col2 * + cor0.col0 + ( + col2 ) FROM tab2 AS cor0 ---- -162 -2002 -2964 onlyif mysql # use DIV operator for integer division query I rowsort label-8108 SELECT + col2 + - cor0.col0 DIV + 57 col2 FROM tab1 cor0 ---- 54 56 95 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8108 SELECT + col2 + - cor0.col0 / + 57 col2 FROM tab1 cor0 ---- 54 56 95 query I rowsort SELECT DISTINCT + - 91 + col1 * col2 FROM tab2 cor0 ---- 1443 555 746 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 * col1 col0 FROM tab2 cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-8111 SELECT + col2 + - col2 * col2 DIV - tab1.col0 AS col2 FROM tab1 ---- 1026 107 211 skipif mysql # not compatible query I rowsort label-8111 SELECT + col2 + - col2 * col2 / - tab1.col0 AS col2 FROM tab1 ---- 1026 107 211 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col1 + - col0 * col1 col2 FROM tab2 ---- -1326 -186 -4543 query I rowsort SELECT + col1 + - col0 * col0 FROM tab2 ---- -18 -6025 -6224 query I rowsort SELECT ALL cor0.col0 - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -24 19 62 query III rowsort SELECT ALL * FROM tab2 WHERE NULL >= ( + col2 ) ---- query I rowsort SELECT tab2.col0 * col0 + - col2 FROM tab2 ---- 22 6058 6203 query I rowsort SELECT DISTINCT col2 FROM tab0 WHERE ( + col1 ) NOT IN ( + col0 ) ---- 1 33 82 query I rowsort SELECT - tab1.col1 * col0 * - col1 AS col0 FROM tab1 ---- 13520 2028 6400 query I rowsort SELECT DISTINCT + col2 FROM tab1 WHERE ( NULL ) <> ( col0 * col2 - col1 ) ---- query I rowsort SELECT + col2 * col1 + col0 * + col0 AS col0 FROM tab1 ---- 1413 4666 7648 onlyif mysql # use DIV operator for integer division query I rowsort label-8121 SELECT - col2 DIV col1 - - col1 AS col2 FROM tab2 ---- 15 31 59 skipif mysql # not compatible query I rowsort label-8121 SELECT - col2 / col1 - - col1 AS col2 FROM tab2 ---- 15 31 59 query I rowsort SELECT DISTINCT - col2 + col0 * - col2 FROM tab0 ---- -36 -7380 -825 query I rowsort SELECT DISTINCT col0 - - col2 * col0 AS col2 FROM tab0 ---- 70 7387 816 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IN ( + col1 * col2 * col2 ) ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT DISTINCT tab1.col0 * + col0 * + col0 + + col2 * - col2 AS col1 FROM tab1 ---- -2889 258895 502784 onlyif mysql # use DIV operator for integer division query I rowsort label-8126 SELECT ALL col2 * + col0 + col2 DIV - col2 + + col2 AS col1 FROM tab1 WHERE NOT ( col1 ) BETWEEN + col2 AND NULL ---- 215 3704 7775 skipif mysql # not compatible query I rowsort label-8126 SELECT ALL col2 * + col0 + col2 / - col2 + + col2 AS col1 FROM tab1 WHERE NOT ( col1 ) BETWEEN + col2 AND NULL ---- 215 3704 7775 onlyif mysql # use DIV operator for integer division query I rowsort label-8127 SELECT + col0 + col0 DIV - tab0.col1 col1 FROM tab0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8127 SELECT + col0 + col0 / - tab0.col1 col1 FROM tab0 ---- 24 35 89 query I rowsort SELECT ALL + ( + 68 ) * - col0 + - col1 * - col2 - - col2 FROM tab1 AS cor0 ---- -3725 -4096 1254 query I rowsort SELECT ALL + ( + cor0.col1 ) - col1 AS col0 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - + 14 * + 11 AS col2 FROM tab0 AS cor0 ---- -154 -154 -154 query I rowsort SELECT DISTINCT cor0.col0 + - 3 * col0 AS col0 FROM tab0 AS cor0 ---- -178 -48 -70 query I rowsort SELECT DISTINCT ( - col2 ) * - cor0.col2 AS col2 FROM tab0 AS cor0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT + 97 - col2 FROM tab2 AS cor0 ---- 59 70 71 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 62 * cor0.col2 col0 FROM tab1 AS cor0 ---- 3348 3534 5952 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8135 SELECT ALL + CAST( NULL AS SIGNED ) * col1 * + tab1.col0 - col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8135 SELECT ALL + CAST ( NULL AS INTEGER ) * col1 * + tab1.col0 - col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT ALL - ( - 65 ) - col0 * + col0 AS col1 FROM tab1 ---- -4031 -6335 56 onlyif mysql # use DIV operator for integer division query I rowsort label-8137 SELECT tab0.col1 DIV col0 AS col2 FROM tab0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-8137 SELECT tab0.col1 / col0 AS col2 FROM tab0 ---- 1 2 3 onlyif mysql # use DIV operator for integer division query I rowsort label-8138 SELECT DISTINCT - col0 + col0 DIV 68 + - col2 FROM tab0 AS cor0 ---- -170 -36 -57 skipif mysql # not compatible query I rowsort label-8138 SELECT DISTINCT - col0 + col0 / 68 + - col2 FROM tab0 AS cor0 ---- -170 -36 -57 query I rowsort SELECT col1 * col0 + ( col2 ) AS col1 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT tab1.col2 - 46 AS col2 FROM tab1 ---- 11 50 8 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8141 SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 78 + - col1 AS col1 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-8141 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 78 + - col1 AS col1 FROM tab1 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 75 + 3 * + col1 col2 FROM tab2 ---- -24 102 18 query I rowsort SELECT DISTINCT 13 + + col1 FROM tab2 ---- 30 44 72 query I rowsort SELECT tab2.col0 + - col2 + col0 FROM tab2 ---- -13 120 130 query I rowsort SELECT ( tab0.col0 * - tab0.col0 ) AS col1 FROM tab0 ---- -1225 -576 -7921 onlyif mysql # use DIV operator for integer division query I rowsort label-8146 SELECT DISTINCT - col0 * col2 DIV cor0.col1 + - col1 FROM tab2 AS cor0 ---- -193 -37 -93 skipif mysql # not compatible query I rowsort label-8146 SELECT DISTINCT - col0 * col2 / cor0.col1 + - col1 FROM tab2 AS cor0 ---- -193 -37 -93 query I rowsort SELECT DISTINCT col0 * ( 15 ) FROM tab0 AS cor0 ---- 1335 360 525 query I rowsort SELECT DISTINCT - ( col0 + col2 ) * - col2 AS col0 FROM tab0 ---- 14022 1881 36 query I rowsort SELECT DISTINCT col0 + + ( col2 ) * col0 AS col2 FROM tab0 AS cor0 ---- 70 7387 816 query I rowsort SELECT col1 * - 69 AS col1 FROM tab0 AS cor0 ---- -5934 -6279 -6693 query I rowsort SELECT col0 + 85 * col1 AS col0 FROM tab0 AS cor0 ---- 7334 7824 8280 query I rowsort SELECT ALL + col1 * col0 + 71 * - col0 + - col2 * - col1 FROM tab1 ---- -3334 -3392 1269 query I rowsort SELECT + 53 - cor0.col1 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 146da1c49d3339dc41506fd559e5eb17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 + 16 col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 28994c0e551fa62a4af9c88b1832ca3f query I rowsort SELECT col2 * col0 * ( ( + col0 ) ) FROM tab2 ---- 1323 158184 237158 query I rowsort SELECT ALL ( - col0 ) * + tab2.col0 + + col2 + + col0 AS col1 FROM tab2 ---- -15 -5980 -6124 query I rowsort SELECT DISTINCT - col0 * 93 FROM tab2 cor0 ---- -651 -7254 -7347 onlyif mysql # use DIV operator for integer division query I rowsort label-8158 SELECT DISTINCT + cor0.col0 DIV + 11 AS col0 FROM tab2 AS cor0 ---- 0 7 skipif mysql # not compatible query I rowsort label-8158 SELECT DISTINCT + cor0.col0 / + 11 AS col0 FROM tab2 AS cor0 ---- 0 7 query I rowsort SELECT + col1 * col1 * - 30 AS col2 FROM tab2 AS cor0 ---- -104430 -28830 -8670 query I rowsort SELECT ALL + + col0 * + 22 AS col0 FROM tab2 AS cor0 ---- 154 1716 1738 query I rowsort SELECT + col0 * - ( - cor0.col1 ) FROM tab0 AS cor0 ---- 2064 3395 8099 query I rowsort SELECT ALL + + col0 + + ( + col1 ) AS col2 FROM tab0 AS cor0 ---- 110 132 180 skipif mysql # not compatible query I rowsort SELECT CAST ( - col0 AS REAL ) + + tab2.col0 AS col1 FROM tab2 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8164 SELECT ALL CAST( NULL AS SIGNED ) / - 7 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8164 SELECT ALL CAST ( NULL AS INTEGER ) / - 7 AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + ( + ( - col2 ) ) FROM tab1 ---- -54 -57 -96 query I rowsort SELECT + ( - 39 + - col2 ) FROM tab2 ---- -65 -66 -77 query I rowsort SELECT DISTINCT - 30 + - col1 FROM tab1 AS cor0 ---- -40 -43 -56 onlyif mysql # use DIV operator for integer division query I rowsort label-8168 SELECT ALL col1 * + 16 + col2 DIV col0 AS col1 FROM tab2 AS cor0 ---- 272 499 944 skipif mysql # not compatible query I rowsort label-8168 SELECT ALL col1 * + 16 + col2 / col0 AS col1 FROM tab2 AS cor0 ---- 272 499 944 onlyif mysql # use DIV operator for integer division query I rowsort label-8169 SELECT ALL + - col0 * + 4 + + col0 DIV - col1 + - col1 AS col0 FROM tab1 AS cor0 ---- -272 -339 -38 skipif mysql # not compatible query I rowsort label-8169 SELECT ALL + - col0 * + 4 + + col0 / - col1 + - col1 AS col0 FROM tab1 AS cor0 ---- -272 -339 -38 query I rowsort SELECT - 58 * - col1 FROM tab2 AS cor0 ---- 1798 3422 986 query I rowsort SELECT DISTINCT - col0 + - 94 + col0 * col0 AS col1 FROM tab2 AS cor0 ---- -52 5912 6068 query I rowsort SELECT ALL + 47 * 99 + col1 FROM tab1 AS cor0 ---- 4663 4666 4679 query I rowsort SELECT - cor0.col0 + + 28 FROM tab2 AS cor0 ---- -50 -51 21 onlyif mysql # use DIV operator for integer division query I rowsort label-8174 SELECT col0 - + cor0.col0 DIV - col1 FROM tab0 cor0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-8174 SELECT col0 - + cor0.col0 / - col1 FROM tab0 cor0 ---- 24 35 89 query I rowsort SELECT 78 + cor0.col0 FROM tab1 AS cor0 ---- 142 158 81 onlyif mysql # use DIV operator for integer division query I rowsort label-8176 SELECT DISTINCT + 5 DIV + col2 + + col2 AS col0 FROM tab1 AS cor0 ---- 54 57 96 skipif mysql # not compatible query I rowsort label-8176 SELECT DISTINCT + 5 / + col2 + + col2 AS col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT 44 * col0 * + col0 AS col2 FROM tab1 cor0 ---- 180224 281600 396 query I rowsort SELECT ALL + ( - col1 ) * col0 AS col0 FROM tab0 AS cor0 ---- -2064 -3395 -8099 query I rowsort SELECT + col1 - col1 * + col0 FROM tab2 AS cor0 ---- -1326 -186 -4543 query I rowsort SELECT - + col1 - cor0.col0 * - col1 FROM tab0 AS cor0 ---- 1978 3298 8008 query I rowsort SELECT - 16 + tab1.col1 * col1 AS col0 FROM tab1 ---- 153 660 84 query I rowsort SELECT - ( 58 ) AS col2 FROM tab1 ---- -58 -58 -58 query I rowsort SELECT col0 + 27 * + col2 * + col2 FROM tab2 ---- 18330 19690 39067 onlyif mysql # use DIV operator for integer division query I rowsort label-8184 SELECT col0 + col1 DIV + col1 AS col2 FROM tab2 AS cor0 ---- 79 8 80 skipif mysql # not compatible query I rowsort label-8184 SELECT col0 + col1 / + col1 AS col2 FROM tab2 AS cor0 ---- 79 8 80 query I rowsort SELECT col2 * + 24 + - col2 * - col2 FROM tab0 AS cor0 ---- 1881 25 8692 query I rowsort SELECT ALL + col1 * col2 + ( col2 ) AS col2 FROM tab1 AS cor0 ---- 1344 1458 627 onlyif mysql # use DIV operator for integer division query I rowsort label-8187 SELECT - col0 * col1 DIV - cor0.col1 + col0 AS col1 FROM tab1 cor0 ---- 128 160 6 skipif mysql # not compatible query I rowsort label-8187 SELECT - col0 * col1 / - cor0.col1 + col0 AS col1 FROM tab1 cor0 ---- 128 160 6 query I rowsort SELECT ALL col2 + + 51 FROM tab1 AS cor0 ---- 105 108 147 query I rowsort SELECT ALL + 48 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b query I rowsort SELECT DISTINCT col1 + col1 * ( col2 ) FROM tab2 AS cor0 ---- 1593 663 868 query I rowsort SELECT + col0 * + col2 + + 77 FROM tab0 cor0 ---- 112 7375 869 query I rowsort SELECT + col0 * 55 FROM tab0 cor0 ---- 1320 1925 4895 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col1 * + col2 + - col0 col0 FROM tab2 ---- 1456 567 830 query I rowsort SELECT DISTINCT - cor0.col0 * 31 + 78 - col0 AS col0 FROM tab2 AS cor0 ---- -146 -2418 -2450 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8195 SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8195 SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL query I rowsort SELECT + + col0 + 95 * col1 FROM tab1 cor0 ---- 1014 1315 2473 query I rowsort SELECT col2 + 67 * col2 FROM tab0 AS cor0 ---- 2244 5576 68 query I rowsort SELECT 29 FROM tab2, tab0 cor0 ---- 9 values hashing to 1e7120ba8e9191084172ddced17e5eb2 onlyif mysql # use DIV operator for integer division query I rowsort label-8199 SELECT tab0.col0 DIV - col2 + + tab0.col0 FROM tab0 ---- 0 24 88 skipif mysql # not compatible query I rowsort label-8199 SELECT tab0.col0 / - col2 + + tab0.col0 FROM tab0 ---- 0 24 88 query I rowsort SELECT DISTINCT + cor0.col0 FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2 ---- 24 35 89 query I rowsort SELECT + col1 * col0 + col1 * col2 AS col2 FROM tab1 ---- 1210 1482 2288 query I rowsort SELECT + col0 * col0 * col1 AS col2 FROM tab2 AS cor0 ---- 106097 1519 358956 query I rowsort SELECT col1 AS col1 FROM tab2 WHERE col2 <> NULL ---- query I rowsort SELECT ALL col1 * + tab0.col1 AS col2 FROM tab0 ---- 7396 8281 9409 query I rowsort SELECT - col0 * + col2 * col0 + - col2 AS col0 FROM tab2 ---- -1350 -158210 -237196 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + + col1 * col2 col2 FROM tab1 ---- 1235 1378 560 onlyif mysql # use DIV operator for integer division query I rowsort label-8207 SELECT 21 * col1 DIV col1 FROM tab2 ---- 21 21 21 skipif mysql # not compatible query I rowsort label-8207 SELECT 21 * col1 / col1 FROM tab2 ---- 21 21 21 onlyif mysql # use DIV operator for integer division query I rowsort label-8208 SELECT DISTINCT col0 * col1 DIV col1 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-8208 SELECT DISTINCT col0 * col1 / col1 FROM tab0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + cor0.col2 * col2 + col2 col2 FROM tab1 AS cor0 ---- -2862 -3192 -9120 onlyif mysql # use DIV operator for integer division query I rowsort label-8210 SELECT 13 DIV col1 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8210 SELECT 13 / col1 FROM tab2 ---- 0 0 0 query I rowsort SELECT + col1 * cor0.col2 * col2 FROM tab0 AS cor0 ---- 611884 93654 97 query I rowsort SELECT col1 + - col2 FROM tab1 WHERE col0 + - col0 IN ( col1 ) AND NOT col1 * col1 * - col0 IN ( col1 + - col1 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-8213 SELECT cor0.col1 DIV + col1 FROM tab2 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8213 SELECT cor0.col1 / + col1 FROM tab2 AS cor0 ---- 1 1 1 onlyif mysql # use DIV operator for integer division query I rowsort label-8214 SELECT col1 DIV - ( 43 ) FROM tab2 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-8214 SELECT col1 / - ( 43 ) FROM tab2 AS cor0 ---- -1 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * col2 * + col1 col0 FROM tab1 cor0 ---- 119808 32490 75816 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8216 SELECT - col0 * CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8216 SELECT - col0 * CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT col1 + - ( col2 ) * - col2 FROM tab1 AS cor0 ---- 2942 3259 9229 query I rowsort SELECT DISTINCT - col0 * - col0 + 93 * - cor0.col1 AS col0 FROM tab0 AS cor0 ---- -542 -7422 -7796 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 * - col1 - col2 col2 FROM tab1 AS cor0 ---- -157 -265 -730 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + cor0.col0 * + ( + 46 ) + - col1 col0 FROM tab1 AS cor0 ---- 112 2934 3667 query I rowsort SELECT DISTINCT 90 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3 ---- 90 query I rowsort SELECT DISTINCT - ( - 39 ) AS col0 FROM tab0, tab2 cor0 ---- 39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 - ( - 85 + + col0 ) col2 FROM tab2 cor0 ---- 105 33 44 onlyif mysql # use DIV operator for integer division query I rowsort label-8224 SELECT DISTINCT col1 - col2 DIV - col0 FROM tab1 AS cor0 ---- 10 14 44 skipif mysql # not compatible query I rowsort label-8224 SELECT DISTINCT col1 - col2 / - col0 FROM tab1 AS cor0 ---- 10 14 44 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8225 SELECT + col1 + - CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8225 SELECT + col1 + - CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL + col1 * + col0 * - col0 AS col0 FROM tab2 AS cor0 ---- -106097 -1519 -358956 query I rowsort SELECT ALL col2 + - 14 AS col1 FROM tab1 ---- 40 43 82 onlyif mysql # use DIV operator for integer division query I rowsort label-8228 SELECT - col1 * ( - col0 ) - + col1 DIV - cor0.col0 AS col2 FROM tab2 cor0 ---- 1343 221 4602 skipif mysql # not compatible query I rowsort label-8228 SELECT - col1 * ( - col0 ) - + col1 / - cor0.col0 AS col2 FROM tab2 cor0 ---- 1343 221 4602 query I rowsort SELECT ( 69 ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2 ---- 27 values hashing to 2810c3097fe4771e273cfff903357b40 query I rowsort SELECT ALL 39 AS col1 FROM tab2, tab2 cor0 ---- 9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf query I rowsort SELECT col1 + + 30 FROM tab2 ---- 47 61 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 81 col1 FROM tab0 ---- 81 81 81 query I rowsort SELECT ( tab1.col2 ) * + 88 + + 67 FROM tab1 ---- 4819 5083 8515 query I rowsort SELECT DISTINCT col2 + col1 * - col2 * + 8 FROM tab0 AS cor0 ---- -22671 -59614 -775 query I rowsort SELECT 34 FROM tab0, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa query I rowsort SELECT - - 55 + + cor0.col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to b416ff30f643e03237700697c1c457a1 query I rowsort SELECT ALL 35 + + cor0.col1 FROM tab2 AS cor0 ---- 52 66 94 query I rowsort SELECT DISTINCT - col1 + col2 + col2 * + 60 AS col1 FROM tab0 AS cor0 ---- -36 1927 4911 query I rowsort SELECT - - 94 * - cor0.col1 + col1 FROM tab2 AS cor0 ---- -1581 -2883 -5487 query I rowsort SELECT 19 * + cor0.col1 AS col2 FROM tab2 AS cor0 ---- 1121 323 589 query I rowsort SELECT ALL + + col1 + col0 * col2 AS col0 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT ALL + col1 * cor0.col2 + ( col2 ) * + col1 * + col2 AS col1 FROM tab0 AS cor0 ---- 194 619346 96492 query I rowsort SELECT + - col0 * 69 AS col1 FROM tab1 AS cor0 ---- -207 -4416 -5520 query I rowsort SELECT DISTINCT 15 AS col0 FROM tab0, tab1 AS cor0 ---- 15 onlyif mysql # use DIV operator for integer division query I rowsort label-8245 SELECT - cor0.col1 DIV + 95 col0 FROM tab1, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8245 SELECT - cor0.col1 / + 95 col0 FROM tab1, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT ALL - 34 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1 ---- 27 values hashing to 5b88331e40da4796cc4826c442aa45f7 query I rowsort SELECT DISTINCT + 14 * cor0.col1 * + col2 FROM tab1 AS cor0 ---- 17472 19656 7980 query I rowsort SELECT ALL - 26 - 21 AS col0 FROM tab1 AS cor0 ---- -47 -47 -47 query I rowsort SELECT 74 + col2 AS col1 FROM tab0 cor0 ---- 107 156 75 query I rowsort SELECT ALL + col2 * + ( - col1 ) + 98 + col2 AS col1 FROM tab1 AS cor0 ---- -1054 -1252 -415 query I rowsort SELECT ALL - ( + col1 ) * col0 * + 48 + col0 AS col0 FROM tab0 AS cor0 ---- -162925 -388663 -99048 query I rowsort SELECT DISTINCT tab0.col1 - + col0 * 14 FROM tab0 ---- -1155 -250 -393 query I rowsort SELECT - col1 * cor0.col1 + cor0.col2 * cor0.col2 * col0 AS col0 FROM tab2 AS cor0 ---- 113787 4142 49247 query I rowsort SELECT DISTINCT + 28 * - col0 + col0 + - col2 AS col2 FROM tab1 ---- -135 -1785 -2256 query I rowsort SELECT + col0 * - col1 + cor0.col2 + + col1 * col2 FROM tab1 cor0 ---- -13 1380 304 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab2.col1 + col2 col1 FROM tab2 ---- 55 58 85 query I rowsort SELECT ALL + - col1 * col0 * 14 FROM tab1 cor0 ---- -1092 -14560 -8960 onlyif mysql # use DIV operator for integer division query I rowsort label-8258 SELECT 80 * + cor0.col2 + + 78 DIV - col0 FROM tab2 AS cor0 ---- 2079 2149 3040 skipif mysql # not compatible query I rowsort label-8258 SELECT 80 * + cor0.col2 + + 78 / - col0 FROM tab2 AS cor0 ---- 2079 2149 3040 query I rowsort SELECT DISTINCT 37 * col2 AS col0 FROM tab1 AS cor0 ---- 1998 2109 3552 query I rowsort SELECT DISTINCT + - col2 + - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -119 -173 -98 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8261 SELECT ALL - - cor0.col0 - col2 * CAST( col0 AS SIGNED ) FROM tab1 cor0 ---- -159 -3584 -7600 skipif mysql # not compatible query I rowsort label-8261 SELECT ALL - - cor0.col0 - col2 * CAST ( col0 AS INTEGER ) FROM tab1 cor0 ---- -159 -3584 -7600 onlyif mysql # use DIV operator for integer division query I rowsort label-8262 SELECT + 53 + tab0.col2 DIV - col0 AS col0 FROM tab0 ---- 52 53 53 skipif mysql # not compatible query I rowsort label-8262 SELECT + 53 + tab0.col2 / - col0 AS col0 FROM tab0 ---- 52 53 53 onlyif mysql # use DIV operator for integer division query I rowsort label-8263 SELECT DISTINCT - col1 + col2 + col0 DIV col0 col0 FROM tab0 ---- -52 -8 -95 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8263 SELECT DISTINCT - col1 + col2 + col0 / col0 col0 FROM tab0 ---- -52 -8 -95 query I rowsort SELECT col1 * ( col1 * col1 + + col1 * col2 ) AS col1 FROM tab0 ---- 1432613 880124 922082 onlyif mysql # use DIV operator for integer division query I rowsort label-8265 SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV col2 + + ( col1 ) FROM tab0 ---- 132 86 92 skipif mysql # not compatible query I rowsort label-8265 SELECT DISTINCT CAST ( + col0 AS INTEGER ) / col2 + + ( col1 ) FROM tab0 ---- 132 86 92 query I rowsort SELECT - col1 * + col2 * col0 AS col1 FROM tab2 ---- -119652 -51034 -5859 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8267 SELECT - + CAST( NULL AS SIGNED ) / col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8267 SELECT - + CAST ( NULL AS INTEGER ) / col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + 64 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 60ab040e931c5c85db7ba19364eacc8e query I rowsort SELECT ALL + ( + col1 * col0 ) FROM tab1 ---- 1040 640 78 query I rowsort SELECT cor0.col0 * tab0.col1 AS col2 FROM tab0, tab2 cor0 ---- 9 values hashing to 7bf5e0e3ec1be8bea20f7ba84b6c99c3 query I rowsort SELECT ALL - + ( col1 ) * col0 + + 91 AS col2 FROM tab0 AS cor0 ---- -1973 -3304 -8008 query I rowsort SELECT - ( + 71 ) FROM tab2 AS cor0 ---- -71 -71 -71 query I rowsort SELECT DISTINCT col0 + col2 * + 9 AS col2 FROM tab2 ---- 250 312 421 query I rowsort SELECT DISTINCT 11 + + col0 + + col0 AS col2 FROM tab1 ---- 139 17 171 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( - col1 ) + - col0 + - col0 * col0 col1 FROM tab2 ---- -6221 -6337 -87 query I rowsort SELECT DISTINCT 48 + - tab2.col2 AS col2 FROM tab2 ---- 10 21 22 query I rowsort SELECT ALL - 81 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8278 SELECT 21 + + col0 * 70 * - col1 + col1 * CAST( NULL AS SIGNED ) col2 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8278 SELECT 21 + + col0 * 70 * - col1 + col1 * CAST ( NULL AS INTEGER ) col2 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT ALL col0 * col1 + + col2 + + col0 * - col0 AS col0 FROM tab0 AS cor0 ---- 1521 2171 260 query I rowsort SELECT DISTINCT 21 FROM tab1, tab2 AS cor0, tab0 AS cor1 ---- 21 query I rowsort SELECT ALL 36 * col0 AS col2 FROM tab1 AS cor0 ---- 108 2304 2880 onlyif mysql # use DIV operator for integer division query I rowsort label-8282 SELECT - - col0 + - ( - col1 ) DIV col2 AS col2 FROM tab0 AS cor0 ---- 132 26 90 skipif mysql # not compatible query I rowsort label-8282 SELECT - - col0 + - ( - col1 ) / col2 AS col2 FROM tab0 AS cor0 ---- 132 26 90 onlyif mysql # use DIV operator for integer division query I rowsort label-8283 SELECT + col1 DIV + 96 + - col0 * col2 AS col2 FROM tab0 AS cor0 ---- -34 -7298 -792 skipif mysql # not compatible query I rowsort label-8283 SELECT + col1 / + 96 + - col0 * col2 AS col2 FROM tab0 AS cor0 ---- -34 -7298 -792 query I rowsort SELECT - + col2 + + 44 FROM tab0 cor0 ---- -38 11 43 onlyif mysql # use DIV operator for integer division query I rowsort label-8285 SELECT + cor0.col2 DIV - col1 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8285 SELECT + cor0.col2 / - col1 FROM tab0 cor0 ---- 0 0 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8286 SELECT tab0.col2 * col2 * CAST( + col2 AS SIGNED ) + col0 * tab0.col1 + 20 col1 FROM tab0 ---- 3416 38021 559487 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8286 SELECT tab0.col2 * col2 * CAST ( + col2 AS INTEGER ) + col0 * tab0.col1 + 20 col1 FROM tab0 ---- 3416 38021 559487 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 0 * - col1 col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT tab1.col2 + - tab1.col1 FROM tab1 ---- 28 47 83 onlyif mysql # use DIV operator for integer division query I rowsort label-8289 SELECT + col0 - + ( - col2 + col1 ) DIV 5 FROM tab1 ---- 73 8 96 skipif mysql # not compatible query I rowsort label-8289 SELECT + col0 - + ( - col2 + col1 ) / 5 FROM tab1 ---- 73 8 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8290 SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + - col1 * + tab1.col2 * - col1 AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-8290 SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + - col1 * + tab1.col2 * - col1 AS col2 FROM tab1 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8291 SELECT col1 + CAST( NULL AS SIGNED ) + ( col2 ) FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8291 SELECT col1 + CAST ( NULL AS INTEGER ) + ( col2 ) FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 * col2 + 59 FROM tab1 ---- 221 3707 7739 query I rowsort SELECT - col0 - + cor0.col2 * col2 AS col2 FROM tab2 AS cor0 ---- -1523 -736 -754 onlyif mysql # use DIV operator for integer division query I rowsort label-8294 SELECT + col0 * + col2 + col2 DIV + col2 AS col1 FROM tab1 AS cor0 ---- 163 3649 7681 skipif mysql # not compatible query I rowsort label-8294 SELECT + col0 * + col2 + col2 / + col2 AS col1 FROM tab1 AS cor0 ---- 163 3649 7681 query I rowsort SELECT + col2 + 73 * + col0 AS col1 FROM tab2 AS cor0 ---- 538 5720 5805 query I rowsort SELECT + col0 - - 89 AS col1 FROM tab1 AS cor0 ---- 153 169 92 query I rowsort SELECT DISTINCT + col0 + col2 * cor0.col1 * col1 FROM tab2 AS cor0 ---- 11061 25954 90584 query I rowsort SELECT ALL + col2 + cor0.col1 + + col1 FROM tab2 AS cor0 ---- 144 72 89 query I rowsort SELECT + + col1 * - cor0.col0 FROM tab0 cor0 ---- -2064 -3395 -8099 query I rowsort SELECT ALL + ( cor0.col0 ) * - col1 AS col1 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT DISTINCT + col0 * 44 * + cor0.col2 AS col2 FROM tab0 AS cor0 ---- 1540 321112 34848 query I rowsort SELECT ALL + + ( col2 ) AS col2 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT - 43 * - 63 FROM tab2 AS cor0 ---- 2709 2709 2709 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8304 SELECT - - CAST( col0 AS SIGNED ) col1 FROM tab0 AS cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8304 SELECT - - CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT ( + 53 ) FROM tab2 AS cor0 ---- 53 53 53 query I rowsort SELECT tab1.col1 * + ( - 97 ) FROM tab1 ---- -1261 -2522 -970 query I rowsort SELECT DISTINCT col0 + + col2 * + cor0.col2 FROM tab0 AS cor0 ---- 1113 36 6813 query I rowsort SELECT - 70 * + col2 AS col0 FROM tab0 cor0 ---- -2310 -5740 -70 query I rowsort SELECT + 35 * - col2 * ( col2 ) FROM tab2 AS cor0 ---- -23660 -25515 -50540 query I rowsort SELECT 79 * col1 AS col2 FROM tab2 cor0 ---- 1343 2449 4661 query I rowsort SELECT 50 + col2 * - col1 * - col2 AS col2 FROM tab1 ---- 119858 32540 75866 query I rowsort SELECT ( + col2 ) + - ( cor0.col1 ) AS col2 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT DISTINCT col2 * + ( + col2 + col1 ) FROM tab0 cor0 ---- 14186 3927 98 query I rowsort SELECT ALL - 19 + - cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 1ad99c42dc6d0b2fadc383fe165f7fe5 query I rowsort SELECT ALL + + col0 * col0 + col2 AS col2 FROM tab2 cor0 ---- 6110 6279 76 query I rowsort SELECT ALL - + 40 AS col0 FROM tab2 AS cor0 ---- -40 -40 -40 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8317 SELECT ALL CAST( NULL AS SIGNED ) + - col1 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-8317 SELECT ALL CAST ( NULL AS INTEGER ) + - col1 col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - cor0.col2 * 36 FROM tab1 AS cor0 ---- -1944 -2052 -3456 query I rowsort SELECT ALL - + col1 * col2 * - col1 AS col1 FROM tab2 AS cor0 ---- 10982 25947 90506 query I rowsort SELECT DISTINCT + - col1 * - col1 + col1 * 30 * col1 + - col1 FROM tab2 AS cor0 ---- 107852 29760 8942 query I rowsort SELECT ALL + + ( 66 ) * - cor0.col1 + - ( + 65 ) * col0 FROM tab1 AS cor0 ---- -1911 -4820 -6058 query I rowsort SELECT ALL - 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 ALL cor0.col1 - + col1 col2 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT + 15 * 22 FROM tab0 ---- 330 query I rowsort SELECT DISTINCT + col0 + cor0.col2 * cor0.col1 - - col0 * + col2 FROM tab0 AS cor0 ---- 14849 167 3654 query I rowsort SELECT DISTINCT 89 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2 ---- 89 query I rowsort SELECT 20 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4 query I rowsort SELECT DISTINCT - col0 + - col2 - col0 AS col1 FROM tab0 AS cor0 ---- -260 -71 -81 query I rowsort SELECT - 41 * + col2 FROM tab2 AS cor0 ---- -1066 -1107 -1558 query I rowsort SELECT DISTINCT + 27 AS col0 FROM tab1, tab1 AS cor0 ---- 27 query I rowsort SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2 ---- 7 78 79 onlyif mysql # use DIV operator for integer division query I rowsort label-8332 SELECT 6 - + 47 DIV + tab1.col1 AS col1 FROM tab1 ---- 2 3 5 skipif mysql # not compatible query I rowsort label-8332 SELECT 6 - + 47 / + tab1.col1 AS col1 FROM tab1 ---- 2 3 5 query I rowsort SELECT ALL - col1 + + 24 AS col1 FROM tab2 cor0 ---- -35 -7 7 query I rowsort SELECT ALL 58 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 ---- 27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * + col2 * - cor0.col0 col2 FROM tab0 AS cor0 ---- -1225 -19008 -649522 query I rowsort SELECT ALL + col2 + - 75 * col0 FROM tab0 AS cor0 ---- -1767 -2624 -6593 query I rowsort SELECT + 86 * + col0 AS col2 FROM tab0 ---- 2064 3010 7654 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col2 - + col1 * col1 col0 FROM tab0 ---- -7363 -8199 -9408 onlyif mysql # use DIV operator for integer division query I rowsort label-8339 SELECT col1 - col0 * - col2 DIV - col2 AS col2 FROM tab0 ---- 2 62 62 skipif mysql # not compatible query I rowsort label-8339 SELECT col1 - col0 * - col2 / - col2 AS col2 FROM tab0 ---- 2 62 62 query I rowsort SELECT DISTINCT col2 + + tab0.col2 AS col2 FROM tab0 ---- 164 2 66 query I rowsort SELECT DISTINCT col0 * col0 + - col0 FROM tab2 ---- 42 6006 6162 query I rowsort SELECT ALL + col2 + + ( col1 ) AS col1 FROM tab2 ---- 55 58 85 query I rowsort SELECT ALL + col1 + col0 + - col0 * col1 AS col2 FROM tab2 ---- -1247 -179 -4465 query I rowsort SELECT DISTINCT col0 + col0 * + col0 AS col0 FROM tab0 AS cor0 ---- 1260 600 8010 query I rowsort SELECT DISTINCT - col0 + ( cor0.col1 ) AS col0 FROM tab1 AS cor0 ---- -54 -67 23 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 47 + 17 * - col0 col2 FROM tab2 AS cor0 ---- -1373 -1390 -166 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 16 * col1 * - col0 col2 FROM tab2 ---- -21488 -3472 -73632 onlyif mysql # use DIV operator for integer division query I rowsort label-8348 SELECT - 84 + 90 DIV - col1 FROM tab0 ---- -84 -84 -85 skipif mysql # not compatible query I rowsort label-8348 SELECT - 84 + 90 / - col1 FROM tab0 ---- -84 -84 -85 query I rowsort SELECT ALL - ( col2 ) * col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 query I rowsort SELECT + - 15 * + 93 AS col0 FROM tab0 cor0 ---- -1395 -1395 -1395 query I rowsort SELECT DISTINCT + - 68 AS col0 FROM tab2 AS cor0 ---- -68 onlyif mysql # use DIV operator for integer division query I rowsort label-8352 SELECT - 54 DIV col0 AS col2 FROM tab2 AS cor0 ---- -7 0 0 skipif mysql # not compatible query I rowsort label-8352 SELECT - 54 / col0 AS col2 FROM tab2 AS cor0 ---- -7 0 0 query I rowsort SELECT ALL - col0 * + 86 FROM tab2 AS cor0 ---- -602 -6708 -6794 query I rowsort SELECT ALL col0 + col2 * - col0 AS col0 FROM tab0 AS cor0 ---- -7209 -768 0 query I rowsort SELECT DISTINCT - - 79 * cor0.col0 AS col0 FROM tab2 cor0 ---- 553 6162 6241 query I rowsort SELECT DISTINCT col0 * - col0 + + ( col1 ) * + col2 * col1 AS col0 FROM tab0 ---- 243492 671121 8184 query I rowsort SELECT DISTINCT tab2.col0 * col0 - + col0 FROM tab2 ---- 42 6006 6162 query I rowsort SELECT ALL + 52 + + tab1.col2 FROM tab1, tab2, tab2 AS cor0 ---- 27 values hashing to 8271568f17bc1939e419fb65a4f1c44f query I rowsort SELECT DISTINCT + 29 * col1 + 96 AS col1 FROM tab0 ---- 2590 2735 2909 query I rowsort SELECT 4 - + cor0.col1 * - col1 AS col1 FROM tab0 cor0 ---- 7400 8285 9413 query I rowsort SELECT ALL 84 + col2 FROM tab0 AS cor0 ---- 117 166 85 query I rowsort SELECT DISTINCT - cor0.col2 + col1 + col1 AS col1 FROM tab2 cor0 ---- -4 35 92 query I rowsort SELECT + col1 + + col0 - + 56 * + 53 AS col2 FROM tab0 cor0 ---- -2788 -2836 -2858 onlyif mysql # use DIV operator for integer division query I rowsort label-8364 SELECT DISTINCT - - col2 + + col1 DIV col0 AS col2 FROM tab1 AS cor0 ---- 57 62 96 skipif mysql # not compatible query I rowsort label-8364 SELECT DISTINCT - - col2 + + col1 / col0 AS col2 FROM tab1 AS cor0 ---- 57 62 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + col2 + - cor0.col0 col1 FROM tab1 cor0 ---- -7 16 51 onlyif mysql # use DIV operator for integer division query I rowsort label-8366 SELECT ALL + col0 DIV 37 AS col1 FROM tab1 AS cor0 ---- 0 1 2 skipif mysql # not compatible query I rowsort label-8366 SELECT ALL + col0 / 37 AS col1 FROM tab1 AS cor0 ---- 0 1 2 query I rowsort SELECT ALL + col0 * - col0 + + 3 * - col1 FROM tab0 cor0 ---- -1516 -8194 -834 onlyif mysql # use DIV operator for integer division query I rowsort label-8368 SELECT - col2 DIV - col0 col2 FROM tab1 cor0 ---- 0 1 18 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8368 SELECT - col2 / - col0 col2 FROM tab1 cor0 ---- 0 1 18 onlyif mysql # use DIV operator for integer division query I rowsort label-8369 SELECT DISTINCT cor0.col0 * 42 DIV - col1 col1 FROM tab2 AS cor0 ---- -195 -55 -9 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8369 SELECT DISTINCT cor0.col0 * 42 / - col1 col1 FROM tab2 AS cor0 ---- -195 -55 -9 query I rowsort SELECT + - col2 * - cor0.col0 - - cor0.col2 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT ALL - - col2 + - col0 AS col0 FROM tab1 AS cor0 ---- -7 16 51 query I rowsort SELECT - + col2 * 60 FROM tab0 AS cor0 ---- -1980 -4920 -60 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * - col1 + col0 * - col2 col1 FROM tab2 AS cor0 ---- -406 -4345 -6630 query I rowsort SELECT - col1 * + ( 29 ) - - col0 FROM tab1 AS cor0 ---- -226 -297 -751 query I rowsort SELECT ALL col1 + col1 * col1 * + 62 - col2 * 76 AS col0 FROM tab0 ---- 456130 507281 583379 query I rowsort SELECT + tab2.col2 AS col2 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT ALL + col1 + 93 FROM tab0 AS cor0 ---- 179 184 190 query I rowsort SELECT cor0.col2 * 91 FROM tab2 AS cor0 ---- 2366 2457 3458 query I rowsort SELECT DISTINCT + col1 * 55 AS col1 FROM tab2 cor0 ---- 1705 3245 935 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * ( cor0.col1 ) col0 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL + col0 * + col2 + - col2 - + col1 AS col1 FROM tab2 ---- 131 1943 2947 query I rowsort SELECT cor0.col0 + col2 * col0 AS col1 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT cor1.col0 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1, tab2 AS cor2 ---- 81 values hashing to e28bf7f922650ca423ade3642ce0285b query I rowsort SELECT + 53 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2 ---- 81 values hashing to 63949b5362442f48bd29195397a57dad query I rowsort SELECT 22 * + col2 + col2 AS col1 FROM tab1 AS cor0 ---- 1242 1311 2208 query I rowsort SELECT ALL - col2 * + tab1.col0 FROM tab1 ---- -162 -3648 -7680 query I rowsort SELECT - 80 AS col1 FROM tab2, tab0, tab1 AS cor0 ---- 27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd query I rowsort SELECT - tab2.col2 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 query I rowsort SELECT - col1 * - col2 + 58 FROM tab2 AS cor0 ---- 1592 704 895 query I rowsort SELECT 22 * col1 FROM tab0 ---- 1892 2002 2134 query I rowsort SELECT ALL + col2 + col1 - + col1 FROM tab1 ---- 54 57 96 query I rowsort SELECT ALL col2 + - 90 FROM tab1 ---- -33 -36 6 query I rowsort SELECT + col2 - col0 * - col0 AS col2 FROM tab1 AS cor0 ---- 4153 63 6496 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8394 SELECT DISTINCT + CAST( + cor0.col2 AS SIGNED ) FROM tab0, tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-8394 SELECT DISTINCT + CAST ( + cor0.col2 AS INTEGER ) FROM tab0, tab0 AS cor0 ---- 1 33 82 query IIIIIIIII rowsort SELECT ALL * FROM tab2, tab0, tab0 AS cor0 WHERE NULL IN ( tab2.col0 ) ---- onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8396 SELECT - tab0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8396 SELECT - tab0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8397 SELECT - ( col1 ) DIV + col0 col1 FROM tab0 ---- -1 -2 -3 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8397 SELECT - ( col1 ) / + col0 col1 FROM tab0 ---- -1 -2 -3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8398 SELECT - CAST( + 25 AS SIGNED ) AS col1 FROM tab1 AS cor0 ---- -25 -25 -25 skipif mysql # not compatible query I rowsort label-8398 SELECT - CAST ( + 25 AS INTEGER ) AS col1 FROM tab1 AS cor0 ---- -25 -25 -25 onlyif mysql # use DIV operator for integer division query I rowsort label-8399 SELECT ALL + ( + col1 ) + + col1 DIV + col0 FROM tab0 AS cor0 ---- 89 92 99 skipif mysql # not compatible query I rowsort label-8399 SELECT ALL + ( + col1 ) + + col1 / + col0 FROM tab0 AS cor0 ---- 89 92 99 query I rowsort SELECT ( - col0 ) * col0 + - 42 * - col1 * col0 AS col2 FROM tab1 AS cor0 ---- 22784 3267 37280 query I rowsort SELECT DISTINCT - ( 64 ) * - col2 FROM tab0 AS cor0 ---- 2112 5248 64 query I rowsort SELECT 66 - ( cor0.col2 ) AS col2 FROM tab1 AS cor0 ---- -30 12 9 query I rowsort SELECT - - col0 + 89 AS col0 FROM tab0 cor0 ---- 113 124 178 query I rowsort SELECT ALL - + cor0.col2 * - 77 AS col0 FROM tab1 AS cor0 ---- 4158 4389 7392 query I rowsort SELECT DISTINCT 74 * col0 + col1 FROM tab1 AS cor0 ---- 248 4746 5933 onlyif mysql # use DIV operator for integer division query I rowsort label-8406 SELECT DISTINCT - ( + col2 ) * + cor0.col0 + col2 - - col0 DIV + cor0.col1 FROM tab1 cor0 ---- -108 -3585 -7578 skipif mysql # not compatible query I rowsort label-8406 SELECT DISTINCT - ( + col2 ) * + cor0.col0 + col2 - - col0 / + cor0.col1 FROM tab1 cor0 ---- -108 -3585 -7578 query I rowsort SELECT DISTINCT + 90 * + 80 + col1 AS col2 FROM tab0 AS cor0 ---- 7286 7291 7297 query I rowsort SELECT ALL + col0 - - 40 AS col2 FROM tab0 AS cor0 ---- 129 64 75 query I rowsort SELECT + col2 * - 41 + col2 FROM tab1 AS cor0 ---- -2160 -2280 -3840 query I rowsort SELECT ALL ( - 69 * col1 ) AS col1 FROM tab2 ---- -1173 -2139 -4071 onlyif mysql # use DIV operator for integer division query I rowsort label-8411 SELECT ALL - tab1.col1 - - tab1.col1 DIV + 13 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 14b0ff779d5ee50d19eae8f63a3c1329 skipif mysql # not compatible query I rowsort label-8411 SELECT ALL - tab1.col1 - - tab1.col1 / + 13 AS col1 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 14b0ff779d5ee50d19eae8f63a3c1329 query I rowsort SELECT - ( + tab0.col1 + + tab0.col2 ) AS col2 FROM tab0 ---- -119 -173 -98 query I rowsort SELECT + ( col1 ) * col1 * + col1 FROM tab2 ---- 205379 29791 4913 query I rowsort SELECT - col2 + - col0 + col1 * ( col0 ) FROM tab0 AS cor0 ---- 2007 3359 7928 query I rowsort SELECT + - ( + col2 ) * col2 + - col2 FROM tab2 AS cor0 ---- -1482 -702 -756 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + ( col0 ) + 89 col2 FROM tab0 cor0 ---- 113 124 178 query I rowsort SELECT ALL + col0 + + col1 * col1 FROM tab0 AS cor0 ---- 7420 8370 9444 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 18 + col2 col1 FROM tab0 AS cor0 ---- 100 19 51 query I rowsort SELECT - - 88 - col0 FROM tab0 cor0 ---- -1 53 64 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + col0 * - 23 col1 FROM tab1 AS cor0 ---- -123 -1529 -1936 query I rowsort SELECT col1 + 41 FROM tab2 cor0 ---- 100 58 72 query I rowsort SELECT + col1 + 6 * - col0 AS col2 FROM tab0 AS cor0 ---- -113 -443 -58 query I rowsort SELECT - + ( - col1 ) AS col0 FROM tab2 cor0 ---- 17 31 59 query I rowsort SELECT 15 AS col2 FROM tab2 cor0 ---- 15 15 15 query I rowsort SELECT ALL - 64 FROM tab0, tab1 cor0, tab0 AS cor1, tab2 AS cor2 ---- 81 values hashing to 11a0bc70e08dac4e49bd0140a49d04fb query I rowsort SELECT + cor0.col0 + + 34 AS col0 FROM tab2 AS cor0 ---- 112 113 41 query I rowsort SELECT + col2 - col2 * col0 FROM tab2 ---- -162 -2002 -2964 query I rowsort SELECT ALL - tab2.col1 FROM tab2 WHERE NOT NULL > ( NULL ) ---- query I rowsort SELECT DISTINCT col0 + tab0.col2 / col0 AS col0 FROM tab0 WHERE NULL = ( - col2 ) ---- query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col1 / - col2 ) AND NULL ---- query I rowsort SELECT col1 * - col1 * + col2 FROM tab1 cor0 ---- -16224 -36504 -5700 query I rowsort SELECT ALL col0 FROM tab0 WHERE NOT - col0 + - col1 NOT IN ( + col0 ) ---- query I rowsort SELECT ALL + col1 * + col0 * - col2 - col2 AS col0 FROM tab1 ---- -36537 -4266 -99936 query I rowsort SELECT DISTINCT col2 + col1 * col2 AS col1 FROM tab2 ---- 1560 684 864 query I rowsort SELECT DISTINCT col1 + - col1 * + col1 AS col1 FROM tab1 ---- -156 -650 -90 query III rowsort SELECT ALL * FROM tab1 WHERE - col1 * + col0 = NULL ---- query I rowsort SELECT ALL + col2 + col0 * col1 FROM tab0 ---- 2097 3396 8181 query I rowsort SELECT ALL - tab0.col2 * + tab0.col0 AS col1 FROM tab0 ---- -35 -7298 -792 onlyif mysql # use DIV operator for integer division query I rowsort label-8439 SELECT + col1 DIV tab1.col0 AS col1 FROM tab1 ---- 0 0 8 skipif mysql # not compatible query I rowsort label-8439 SELECT + col1 / tab1.col0 AS col1 FROM tab1 ---- 0 0 8 query I rowsort SELECT ALL + col0 * col2 * + tab0.col0 + tab0.col1 * - col0 FROM tab0 WHERE NOT col0 IN ( - col0 ) ---- -2170 16944 641423 query III rowsort SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND ( NULL ) ---- query I rowsort SELECT + + cor0.col2 - - col0 * col1 AS col0 FROM tab2 AS cor0 ---- 1381 244 4628 query I rowsort SELECT + + col0 * - col2 + - col2 AS col2 FROM tab2 AS cor0 ---- -2054 -216 -3040 query I rowsort SELECT + cor0.col2 * col0 - col0 FROM tab0 AS cor0 ---- 0 7209 768 query I rowsort SELECT DISTINCT + col1 + - cor0.col2 FROM tab0 cor0 ---- 53 9 96 query I rowsort SELECT ALL - col1 * + col2 + col2 + - col2 FROM tab2 AS cor0 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-8447 SELECT + + col1 + col1 DIV - col0 AS col1 FROM tab0 AS cor0 ---- 83 90 95 skipif mysql # not compatible query I rowsort label-8447 SELECT + + col1 + col1 / - col0 AS col1 FROM tab0 AS cor0 ---- 83 90 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + cor0.col0 col0 FROM tab2 AS cor0 ---- -7 -78 -79 onlyif mysql # use DIV operator for integer division query I rowsort label-8449 SELECT ALL - + col2 + - col2 DIV - col0 FROM tab1 AS cor0 ---- -36 -57 -95 skipif mysql # not compatible query I rowsort label-8449 SELECT ALL - + col2 + - col2 / - col0 FROM tab1 AS cor0 ---- -36 -57 -95 query I rowsort SELECT - + col1 + + col1 * - cor0.col1 - col1 * + col1 AS col2 FROM tab0 AS cor0 ---- -14878 -16653 -18915 onlyif mysql # use DIV operator for integer division query I rowsort label-8451 SELECT ALL + + col2 DIV - col1 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8451 SELECT ALL + + col2 / - col1 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + - col1 - - col1 AS col1 FROM tab2 cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT col2 * - col0 + + col0 * col1 AS col0 FROM tab1 AS cor0 ---- -3008 -6640 -84 query I rowsort SELECT col0 * col0 * col1 + col0 AS col2 FROM tab2 AS cor0 ---- 106176 1526 359034 query I rowsort SELECT ALL + col1 * col0 * - col0 FROM tab0 AS cor0 ---- -118825 -49536 -720811 query I rowsort SELECT ALL + cor0.col2 + - col0 FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT col1 * - col2 * col0 AS col2 FROM tab0 ---- -3395 -664118 -68112 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NULL <= NULL ---- query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL = col2 ---- query I rowsort SELECT ALL - col1 * col1 + + tab2.col2 - - tab2.col1 FROM tab2 ---- -234 -3396 -903 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 + - col1 + col0 col1 FROM tab0 ---- -63 -84 -95 query I rowsort SELECT DISTINCT tab2.col1 + col2 - col0 * + col1 FROM tab2 ---- -1288 -159 -4517 query I rowsort SELECT + col2 * col0 * + tab0.col1 + - tab0.col2 - col0 * col1 FROM tab0 ---- -1 655937 66015 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col0 + col1 col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT - col1 * 91 - + 1 AS col0 FROM tab2 AS cor0 ---- -1548 -2822 -5370 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8466 SELECT ALL + + col1 * CAST( cor0.col0 AS SIGNED ) FROM tab0 cor0 ---- 2064 3395 8099 skipif mysql # not compatible query I rowsort label-8466 SELECT ALL + + col1 * CAST ( cor0.col0 AS INTEGER ) FROM tab0 cor0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-8467 SELECT DISTINCT col2 DIV col0 + col0 * col1 FROM tab1 AS cor0 ---- 1041 640 96 skipif mysql # not compatible query I rowsort label-8467 SELECT DISTINCT col2 / col0 + col0 * col1 FROM tab1 AS cor0 ---- 1041 640 96 query I rowsort SELECT DISTINCT + col1 + - 0 * - col0 + - col2 AS col2 FROM tab2 AS cor0 ---- -21 33 4 query I rowsort SELECT + col1 + - ( - col1 + cor0.col1 ) FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT ALL - cor0.col2 * 46 AS col2 FROM tab2 AS cor0 ---- -1196 -1242 -1748 query I rowsort SELECT ALL - cor0.col1 - 32 FROM tab0 cor0 ---- -118 -123 -129 query I rowsort SELECT + - col0 * + col0 + - col0 * + col2 FROM tab2 AS cor0 ---- -238 -8112 -9243 query I rowsort SELECT DISTINCT tab0.col2 * + tab0.col1 + + col0 FROM tab0 ---- 132 2862 7551 skipif mysql # not compatible query I rowsort SELECT DISTINCT col0 + CAST ( + col1 + - col0 AS REAL ) * col0 FROM tab1 ---- -3392 -5280 72 query I rowsort SELECT 62 + ( + col2 ) * col1 AS col1 FROM tab2 AS cor0 ---- 1596 708 899 query I rowsort SELECT - cor0.col1 * col2 + + 53 FROM tab0 AS cor0 ---- -2785 -44 -7409 query I rowsort SELECT DISTINCT + cor0.col2 + + 97 AS col0 FROM tab2 AS cor0 ---- 123 124 135 query I rowsort SELECT tab1.col2 + + col2 - col1 AS col2 FROM tab1 ---- 104 179 82 query I rowsort SELECT col0 + - col0 * col1 + - col2 AS col0 FROM tab2 ---- -1302 -237 -4550 query III rowsort SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col0 * - col2 * col2 + + tab0.col1 / tab0.col1 ) ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col0 col1 FROM tab1 WHERE NULL IN ( col0 / + col1 ) ---- query I rowsort SELECT DISTINCT - col2 * - col1 + col2 * + col1 AS col0 FROM tab1 ---- 1140 2496 2808 query I rowsort SELECT 25 * col0 AS col1 FROM tab2 AS cor0 ---- 175 1950 1975 query I rowsort SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT NULL IN ( + tab1.col0 ) ---- query I rowsort SELECT DISTINCT col0 - col0 * col0 * tab2.col0 AS col0 FROM tab2 ---- -336 -474474 -492960 query I rowsort SELECT - col1 * col1 AS col2 FROM tab0 WHERE NOT col1 IN ( + col2 ) ---- -7396 -8281 -9409 query I rowsort SELECT DISTINCT - tab0.col2 + + tab0.col2 AS col1 FROM tab0 ---- 0 query III rowsort SELECT * FROM tab2 WHERE ( col0 ) BETWEEN NULL AND col1 + + col0 + + col1 * col2 / - col1 ---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 * col2 + + col0 ) ---- query III rowsort SELECT * FROM tab0 WHERE NOT col2 BETWEEN ( col1 ) AND - col1 * + col2 ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT + col2 + - col2 * - col1 AS col0 FROM tab0 ---- 2871 7544 98 onlyif mysql # use DIV operator for integer division query I rowsort label-8492 SELECT DISTINCT + tab1.col2 DIV tab1.col1 FROM tab0, tab2, tab0 AS cor0, tab1 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-8492 SELECT DISTINCT + tab1.col2 / tab1.col1 FROM tab0, tab2, tab0 AS cor0, tab1 ---- 2 5 7 query I rowsort SELECT ( tab1.col1 * 55 ) FROM tab1 ---- 1430 550 715 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8494 SELECT col0 * - col0 + tab1.col1 * - col0 + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8494 SELECT col0 * - col0 + tab1.col1 * - col0 + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 * - col2 + + ( - col2 * col2 ) AS col0 FROM tab2 ---- -1352 -1458 -2888 query I rowsort SELECT DISTINCT - 42 FROM tab0, tab2 AS cor0, tab1 AS cor1 ---- -42 query I rowsort SELECT ALL + - ( + col1 ) * + 13 + - col1 FROM tab2 AS cor0 ---- -238 -434 -826 query I rowsort SELECT ALL + + 49 - col2 FROM tab1 AS cor0 ---- -47 -5 -8 onlyif mysql # use DIV operator for integer division query I rowsort label-8499 SELECT ALL col0 DIV + col1 + + col0 FROM tab2 AS cor0 ---- 7 79 83 skipif mysql # not compatible query I rowsort label-8499 SELECT ALL col0 / + col1 + + col0 FROM tab2 AS cor0 ---- 7 79 83 query I rowsort SELECT tab0.col2 * - 99 FROM tab0 ---- -3267 -8118 -99 onlyif mysql # use DIV operator for integer division query I rowsort label-8501 SELECT - col1 DIV 70 AS col1 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8501 SELECT - col1 / 70 AS col1 FROM tab2 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8502 SELECT col2 DIV + 69 col2 FROM tab0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8502 SELECT col2 / + 69 col2 FROM tab0 ---- 0 0 1 query I rowsort SELECT ALL - 97 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to e4a6bd848a69226cbb7ad3d154be321b query I rowsort SELECT - - col0 * cor0.col0 + + 7 FROM tab2 cor0 ---- 56 6091 6248 query I rowsort SELECT cor0.col2 * + 40 AS col1 FROM tab2 cor0 ---- 1040 1080 1520 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8506 SELECT + col1 - CAST( - col1 AS SIGNED ) FROM tab2 cor0 ---- 118 34 62 skipif mysql # not compatible query I rowsort label-8506 SELECT + col1 - CAST ( - col1 AS INTEGER ) FROM tab2 cor0 ---- 118 34 62 query I rowsort SELECT + cor0.col0 * 2 + + col0 * col1 - col2 AS col2 FROM tab0 AS cor0 ---- 2079 3464 8195 query I rowsort SELECT DISTINCT + cor0.col0 FROM tab0, tab0 cor0, tab0 AS cor1 ---- 24 35 89 query I rowsort SELECT + ( + cor0.col2 ) * + col2 FROM tab1 AS cor0 ---- 2916 3249 9216 onlyif mysql # use DIV operator for integer division query I rowsort label-8510 SELECT - ( - col2 ) * + col1 DIV col1 AS col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-8510 SELECT - ( - col2 ) * + col1 / col1 AS col2 FROM tab0 AS cor0 ---- 1 33 82 onlyif mysql # use DIV operator for integer division query I rowsort label-8511 SELECT - 25 - col1 * col2 DIV col0 FROM tab0 AS cor0 ---- -108 -143 -27 skipif mysql # not compatible query I rowsort label-8511 SELECT - 25 - col1 * col2 / col0 FROM tab0 AS cor0 ---- -108 -143 -27 query I rowsort SELECT - - 0 + cor0.col0 * - col0 FROM tab2 AS cor0 ---- -49 -6084 -6241 query I rowsort SELECT + cor0.col2 * col1 + + col0 * col1 * - col2 FROM tab1 AS cor0 ---- -2808 -35910 -98592 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + - col2 * + col2 col1 FROM tab2 AS cor0 ---- -1444 -676 -729 query I rowsort SELECT 6 * col0 FROM tab1 cor0 ---- 18 384 480 onlyif mysql # use DIV operator for integer division query I rowsort label-8516 SELECT ALL - + 61 * + col2 + col1 DIV + col2 AS col0 FROM tab1 AS cor0 ---- -3294 -3477 -5856 skipif mysql # not compatible query I rowsort label-8516 SELECT ALL - + 61 * + col2 + col1 / + col2 AS col0 FROM tab1 AS cor0 ---- -3294 -3477 -5856 query I rowsort SELECT DISTINCT + 98 + + cor0.col0 * 91 FROM tab0 cor0 ---- 2282 3283 8197 query I rowsort SELECT + + col2 + cor0.col0 AS col2 FROM tab1 cor0 ---- 121 176 57 onlyif mysql # use DIV operator for integer division query I rowsort label-8519 SELECT DISTINCT col0 + col2 DIV col1 + - col2 * cor0.col2 FROM tab2 AS cor0 ---- -1363 -598 -722 skipif mysql # not compatible query I rowsort label-8519 SELECT DISTINCT col0 + col2 / col1 + - col2 * cor0.col2 FROM tab2 AS cor0 ---- -1363 -598 -722 onlyif mysql # use DIV operator for integer division query I rowsort label-8520 SELECT DISTINCT + + col0 + cor0.col1 * col2 DIV col0 AS col1 FROM tab2 AS cor0 ---- 126 87 97 skipif mysql # not compatible query I rowsort label-8520 SELECT DISTINCT + + col0 + cor0.col1 * col2 / col0 AS col1 FROM tab2 AS cor0 ---- 126 87 97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 37 col2 FROM tab0, tab1 cor0 ---- 9 values hashing to a10b03e72860b949bdff53827700a9a8 query I rowsort SELECT + + 98 * col2 FROM tab1 cor0 ---- 5292 5586 9408 query I rowsort SELECT DISTINCT - 47 * col1 FROM tab2 AS cor0 ---- -1457 -2773 -799 query I rowsort SELECT DISTINCT + 48 AS col1 FROM tab1 AS cor0 ---- 48 query I rowsort SELECT + - col2 * + col0 + col2 * col2 AS col2 FROM tab2 AS cor0 ---- -1352 -1558 540 query I rowsort SELECT ( - col2 ) * col2 FROM tab2 ---- -1444 -676 -729 query I rowsort SELECT col1 * + col1 - - col1 AS col0 FROM tab1 ---- 110 182 702 onlyif mysql # use DIV operator for integer division query I rowsort label-8528 SELECT - col1 * + 13 + col2 DIV - col1 FROM tab1 ---- -135 -176 -340 skipif mysql # not compatible query I rowsort label-8528 SELECT - col1 * + 13 + col2 / - col1 FROM tab1 ---- -135 -176 -340 query I rowsort SELECT - ( + col2 ) + col0 FROM tab1 ---- -16 -51 7 query I rowsort SELECT ALL + 14 + 57 + col0 * - col0 * col0 AS col1 FROM tab2 ---- -272 -474481 -492968 query I rowsort SELECT ALL + ( + col2 ) * tab1.col0 FROM tab1 ---- 162 3648 7680 query I rowsort SELECT + - col2 * col2 FROM tab1 cor0 ---- -2916 -3249 -9216 query I rowsort SELECT + - 89 * - cor0.col2 FROM tab0 AS cor0 ---- 2937 7298 89 query I rowsort SELECT - - 96 * col2 + + col0 AS col2 FROM tab2 AS cor0 ---- 2574 2599 3727 query I rowsort SELECT DISTINCT - 94 + - col2 - col2 * + tab1.col1 AS col2 FROM tab1 ---- -1438 -1552 -721 onlyif mysql # use DIV operator for integer division query I rowsort label-8536 SELECT DISTINCT + + 8 DIV col0 FROM tab0 AS cor0 ---- 0 skipif mysql # not compatible query I rowsort label-8536 SELECT DISTINCT + + 8 / col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT + col0 + 30 + - col1 FROM tab0 ---- -32 -32 28 skipif mysql # not compatible query I rowsort SELECT - CAST ( - 61 * + col2 AS REAL ) + + col1 AS col2 FROM tab0 ---- 158 2099 5093 onlyif mysql # use DIV operator for integer division query I rowsort label-8539 SELECT DISTINCT + col2 + 7 * col0 DIV + col1 + - col2 FROM tab1 ---- 0 43 44 skipif mysql # not compatible query I rowsort label-8539 SELECT DISTINCT + col2 + 7 * col0 / + col1 + - col2 FROM tab1 ---- 0 43 44 query I rowsort SELECT - + 41 * col0 + cor0.col1 AS col1 FROM tab0 AS cor0 ---- -1338 -3558 -898 query I rowsort SELECT DISTINCT - 39 - - col0 * col2 * col0 AS col2 FROM tab1 cor0 ---- 233433 447 614361 query I rowsort SELECT ALL 54 + + col2 * col0 AS col0 FROM tab1 ---- 216 3702 7734 query I rowsort SELECT - 75 + col0 + 69 AS col2 FROM tab1 ---- -3 58 74 onlyif mysql # use DIV operator for integer division query I rowsort label-8544 SELECT ALL - - 71 DIV col1 AS col0 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-8544 SELECT ALL - - 71 / col1 AS col0 FROM tab1 AS cor0 ---- 2 5 7 query I rowsort SELECT DISTINCT - + col1 + + col0 * + 14 FROM tab1 AS cor0 ---- 1107 16 886 query I rowsort SELECT cor0.col0 * cor0.col2 + - 1 * cor0.col1 FROM tab1 AS cor0 ---- 136 3638 7667 query I rowsort SELECT DISTINCT col1 * - cor0.col0 + - cor0.col1 * - col2 FROM tab0 AS cor0 ---- -3298 -637 774 query I rowsort SELECT DISTINCT 33 * col1 * col2 + + ( col0 ) * + 59 FROM tab1 AS cor0 ---- 22586 45904 46509 onlyif mysql # use DIV operator for integer division query I rowsort label-8549 SELECT DISTINCT - col0 - col2 * ( + col2 + - col1 ) DIV + ( col2 + + col2 ) AS col1 FROM tab1 AS cor0 ---- -121 -17 -87 skipif mysql # not compatible query I rowsort label-8549 SELECT DISTINCT - col0 - col2 * ( + col2 + - col1 ) / + ( col2 + + col2 ) AS col1 FROM tab1 AS cor0 ---- -121 -17 -87 query I rowsort SELECT - + 32 * col0 + + cor0.col0 AS col0 FROM tab1 AS cor0 ---- -1984 -2480 -93 query I rowsort SELECT ALL - 94 + + col2 * 70 FROM tab0 AS cor0 ---- -24 2216 5646 query I rowsort SELECT - col1 * + col0 - + 41 FROM tab2 ---- -1384 -258 -4643 query I rowsort SELECT DISTINCT + 24 AS col2 FROM tab0, tab0 AS cor0 ---- 24 query I rowsort SELECT DISTINCT 17 + - 86 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2 ---- -69 query I rowsort SELECT ALL + 33 + 74 FROM tab2, tab1 AS cor0 ---- 9 values hashing to 6f26a03989006af44e1b70d584e50047 query I rowsort SELECT - col0 * - 60 FROM tab2 AS cor0 ---- 420 4680 4740 onlyif mysql # use DIV operator for integer division query I rowsort label-8557 SELECT ALL - + col0 DIV - col1 FROM tab2 AS cor0 ---- 0 1 4 skipif mysql # not compatible query I rowsort label-8557 SELECT ALL - + col0 / - col1 FROM tab2 AS cor0 ---- 0 1 4 query IIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 cor2 ---- 972 values hashing to 09b120a8ff13ebafea7af10c2152241b onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8559 SELECT col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8559 SELECT col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8560 SELECT - + ( 64 ) * - col0 + - CAST( NULL AS SIGNED ) * 27 - + col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8560 SELECT - + ( 64 ) * - col0 + - CAST ( NULL AS INTEGER ) * 27 - + col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + + 25 * col1 + + col0 + - col1 FROM tab1 cor0 ---- 304 392 627 query I rowsort SELECT + cor0.col0 + + cor0.col2 - cor0.col1 * + col2 AS col2 FROM tab0 AS cor0 ---- -2781 -61 -7291 onlyif mysql # use DIV operator for integer division query I rowsort label-8563 SELECT DISTINCT - 80 * col0 + col2 + + col0 DIV cor0.col0 FROM tab0 AS cor0 ---- -1886 -2798 -7037 skipif mysql # not compatible query I rowsort label-8563 SELECT DISTINCT - 80 * col0 + col2 + + col0 / cor0.col0 FROM tab0 AS cor0 ---- -1886 -2798 -7037 query I rowsort SELECT ALL col1 * col1 + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 7420 8370 9444 onlyif mysql # use DIV operator for integer division query I rowsort label-8565 SELECT DISTINCT ( + col1 ) DIV col0 + - 30 + col1 AS col1 FROM tab1 AS cor0 ---- -17 -20 4 skipif mysql # not compatible query I rowsort label-8565 SELECT DISTINCT ( + col1 ) / col0 + - 30 + col1 AS col1 FROM tab1 AS cor0 ---- -17 -20 4 query I rowsort SELECT ALL + col1 + 84 AS col1 FROM tab2 AS cor0 ---- 101 115 143 query I rowsort SELECT - + 33 + 42 FROM tab0 cor0 ---- 9 9 9 query I rowsort SELECT ALL - - cor0.col0 * + col2 AS col2 FROM tab1 cor0 ---- 162 3648 7680 query I rowsort SELECT DISTINCT - - ( - col0 ) + + col2 FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT + - 54 * col1 + + cor0.col1 FROM tab2 AS cor0 ---- -1643 -3127 -901 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8571 SELECT + - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8571 SELECT + - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - 83 + col2 FROM tab2 AS cor0 ---- -45 -56 -57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8573 SELECT - CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8573 SELECT - CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8574 SELECT DISTINCT - CAST( NULL AS SIGNED ) / col0 + col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8574 SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col0 + col1 FROM tab1 AS cor0 ---- NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( - col2 ) col1 FROM tab1 cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT + + 26 + 42 + - col2 AS col0 FROM tab2 AS cor0 ---- 30 41 42 onlyif mysql # use DIV operator for integer division query I rowsort label-8577 SELECT DISTINCT + + 83 DIV + cor0.col0 FROM tab2, tab1 AS cor0 ---- 1 27 skipif mysql # not compatible query I rowsort label-8577 SELECT DISTINCT + + 83 / + cor0.col0 FROM tab2, tab1 AS cor0 ---- 1 27 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * - col2 col1 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT - ( + col1 ) * ( 59 ) - cor0.col0 FROM tab0 AS cor0 ---- -5098 -5458 -5758 query I rowsort SELECT - - 9 * 93 FROM tab0, tab0 AS cor0 ---- 9 values hashing to eb7891264b9ecfff1a5a64808ff7b100 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2 ---- 3645 values hashing to 97b43fbe79eecd0bc6921392403b666d skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 58 col2 FROM tab0, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a query I rowsort SELECT ALL + col2 + + 66 * 46 * + col0 FROM tab1 AS cor0 ---- 194361 242976 9162 query I rowsort SELECT - + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to b5a4102107e5ebd26e341538f4fede1e query I rowsort SELECT ALL - cor0.col1 * 15 + - col1 + - col2 FROM tab1 AS cor0 ---- -217 -304 -470 query I rowsort SELECT + col1 + 93 FROM tab0 AS cor0 ---- 179 184 190 query I rowsort SELECT DISTINCT col1 * - 30 AS col2 FROM tab0 ---- -2580 -2730 -2910 query I rowsort SELECT DISTINCT + col1 + cor0.col0 + + col2 FROM tab0 cor0 ---- 133 143 262 query I rowsort SELECT + col0 + col1 * 42 AS col2 FROM tab1 AS cor0 ---- 1095 484 626 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( + col1 + - 43 ) col1 FROM tab2 ---- -12 -26 16 query I rowsort SELECT ALL 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 * col2 col1 FROM tab0 ---- -1 -1089 -6724 query I rowsort SELECT 0 FROM tab2, tab0 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT - + col0 + 10 * 80 AS col2 FROM tab1 AS cor0 ---- 720 736 797 query I rowsort SELECT + 75 * + 17 FROM tab2 ---- 1275 1275 1275 query I rowsort SELECT ALL - + 85 + - 46 * - col0 FROM tab2 AS cor0 ---- 237 3503 3549 query I rowsort SELECT DISTINCT + ( + tab0.col2 ) AS col1 FROM tab0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8598 SELECT CAST( NULL AS SIGNED ) + col0 / + col0 AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8598 SELECT CAST ( NULL AS INTEGER ) + col0 / + col0 AS col0 FROM tab2 ---- NULL NULL NULL query IIIIIIIIIIIIIII rowsort SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab2 cor2 ---- 3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703 onlyif mysql # use DIV operator for integer division query I rowsort label-8600 SELECT - 81 * col0 + + col0 DIV - 44 FROM tab0 AS cor0 ---- -1944 -2835 -7211 skipif mysql # not compatible query I rowsort label-8600 SELECT - 81 * col0 + + col0 / - 44 FROM tab0 AS cor0 ---- -1944 -2835 -7211 query I rowsort SELECT - col1 + - ( - col1 ) * - tab1.col2 * + 54 AS col0 FROM tab1 ---- -30790 -67405 -75842 query I rowsort SELECT DISTINCT - tab2.col2 + - tab2.col2 AS col0 FROM tab2, tab0 cor0 ---- -52 -54 -76 query I rowsort SELECT + 11 * - col2 FROM tab1 AS cor0 ---- -1056 -594 -627 query I rowsort SELECT DISTINCT + cor1.col2 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1 ---- 26 27 38 onlyif mysql # use DIV operator for integer division query I rowsort label-8605 SELECT DISTINCT tab1.col1 + - tab1.col1 DIV + col2 FROM tab1 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-8605 SELECT DISTINCT tab1.col1 + - tab1.col1 / + col2 FROM tab1 ---- 10 13 26 query I rowsort SELECT ALL - 69 * + col2 + 10 AS col0 FROM tab2 AS cor0 ---- -1784 -1853 -2612 query I rowsort SELECT ALL 63 * + col1 + + 4 AS col2 FROM tab0 AS cor0 ---- 5422 5737 6115 query I rowsort SELECT DISTINCT cor1.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 ---- 24 35 89 query I rowsort SELECT col1 * col0 * 25 + - col0 FROM tab2 AS cor0 ---- 114972 33496 5418 query I rowsort SELECT + - 25 * cor0.col0 AS col1 FROM tab1 AS cor0 ---- -1600 -2000 -75 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - ( - cor0.col0 ) * - 2 + + 16 col0 FROM tab0 AS cor0 ---- -162 -32 -54 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + - col1 col0 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT cor0.col1 + + ( - 39 ) FROM tab0, tab0 AS cor0 ---- 9 values hashing to f4eb5a1036e5bd9f1cbd8ed824f35cab onlyif mysql # use DIV operator for integer division query I rowsort label-8614 SELECT ALL + ( + col2 ) DIV 62 FROM tab0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-8614 SELECT ALL + ( + col2 ) / 62 FROM tab0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + col2 + - ( + cor0.col0 ) col1 FROM tab1 AS cor0 ---- -121 -176 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-8616 SELECT ALL + col2 DIV ( + col2 ) FROM tab0 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8616 SELECT ALL + col2 / ( + col2 ) FROM tab0 AS cor0 ---- 1 1 1 query I rowsort SELECT ALL - col1 * 35 AS col2 FROM tab0 cor0 ---- -3010 -3185 -3395 onlyif mysql # use DIV operator for integer division query I rowsort label-8618 SELECT DISTINCT col0 * + col0 + 87 * col1 DIV ( + col0 ) AS col1 FROM tab1 AS cor0 ---- 4109 6414 763 skipif mysql # not compatible query I rowsort label-8618 SELECT DISTINCT col0 * + col0 + 87 * col1 / ( + col0 ) AS col1 FROM tab1 AS cor0 ---- 4109 6414 763 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 63 * - tab0.col1 + + col2 col1 FROM tab0 ---- 5451 5815 6112 query I rowsort SELECT DISTINCT + 14 + - col0 AS col0 FROM tab1 ---- -50 -66 11 query I rowsort SELECT ALL 88 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to c46e7cf9bf516fdfde88534336a28177 query I rowsort SELECT col0 * col2 + - col0 * col2 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT - + col1 + + 46 AS col2 FROM tab2 AS cor0 ---- -13 15 29 query I rowsort SELECT ALL + ( col2 ) + col0 * + 54 FROM tab1 AS cor0 ---- 216 3513 4416 query I rowsort SELECT DISTINCT - 74 AS col0 FROM tab2, tab0 AS cor0 ---- -74 onlyif mysql # use DIV operator for integer division query I rowsort label-8626 SELECT DISTINCT + 33 * + col2 + + col0 DIV col1 FROM tab1 AS cor0 ---- 1782 1887 3174 skipif mysql # not compatible query I rowsort label-8626 SELECT DISTINCT + 33 * + col2 + + col0 / col1 FROM tab1 AS cor0 ---- 1782 1887 3174 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 24 * - ( - cor0.col0 ) + - cor0.col1 * col0 col0 FROM tab2 AS cor0 ---- -2730 -49 553 query I rowsort SELECT + - 29 + col2 FROM tab1 cor0 ---- 25 28 67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab2.col1 col1 FROM tab2, tab0 AS cor0 ---- -17 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + ( 60 ) col2 FROM tab2 ---- 60 60 60 query I rowsort SELECT + ( + col0 ) + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 128 160 6 query I rowsort SELECT 54 - - 89 FROM tab1 AS cor0 ---- 143 143 143 query I rowsort SELECT + col1 + - ( - col1 ) AS col2 FROM tab0 cor0 ---- 172 182 194 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8634 SELECT DISTINCT + col0 - CAST( NULL AS DECIMAL ) * col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-8634 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-8635 SELECT DISTINCT - col1 DIV + col2 + + col1 - col0 * + cor0.col2 FROM tab0 AS cor0 ---- -35 -708 -7208 skipif mysql # not compatible query I rowsort label-8635 SELECT DISTINCT - col1 / + col2 + + col1 - col0 * + cor0.col2 FROM tab0 AS cor0 ---- -35 -708 -7208 onlyif mysql # use DIV operator for integer division query I rowsort label-8636 SELECT DISTINCT + col2 + col0 DIV - col0 FROM tab1 AS cor0 ---- 53 56 95 skipif mysql # not compatible query I rowsort label-8636 SELECT DISTINCT + col2 + col0 / - col0 FROM tab1 AS cor0 ---- 53 56 95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col0 + ( + col1 ) col0 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT DISTINCT - - col0 * + ( col1 ) * - col0 + 80 + - col0 FROM tab1 AS cor0 ---- -157 -40944 -83200 query I rowsort SELECT ALL cor0.col1 - ( col0 ) FROM tab0 AS cor0 ---- 2 62 62 onlyif mysql # use DIV operator for integer division query I rowsort label-8640 SELECT ALL - - col1 DIV + 52 FROM tab2 AS cor0 ---- 0 0 1 skipif mysql # not compatible query I rowsort label-8640 SELECT ALL - - col1 / + 52 FROM tab2 AS cor0 ---- 0 0 1 query I rowsort SELECT DISTINCT col1 * + ( - col2 ) - col1 FROM tab2 ---- -1593 -663 -868 query I rowsort SELECT ALL col0 - + ( col2 * col2 + col2 ) AS col0 FROM tab1 ---- -2967 -3242 -9232 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 44 col2 FROM tab0, tab2 AS cor0 ---- 44 query I rowsort SELECT col0 * + 91 + + col2 FROM tab1 AS cor0 ---- 327 5881 7376 onlyif mysql # use DIV operator for integer division query I rowsort label-8645 SELECT + col0 * + tab0.col2 DIV col2 AS col0 FROM tab0 ---- 24 35 89 skipif mysql # not compatible query I rowsort label-8645 SELECT + col0 * + tab0.col2 / col2 AS col0 FROM tab0 ---- 24 35 89 query I rowsort SELECT col2 + col1 * col1 + - col2 FROM tab0 ---- 7396 8281 9409 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8647 SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 ---- NULL skipif mysql # not compatible query I rowsort label-8647 SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 ---- NULL query I rowsort SELECT DISTINCT + col1 + + 97 AS col2 FROM tab1 ---- 107 110 123 onlyif mysql # use DIV operator for integer division query I rowsort label-8649 SELECT col1 * col0 DIV col2 + col2 FROM tab1 ---- 106 55 68 skipif mysql # not compatible query I rowsort label-8649 SELECT col1 * col0 / col2 + col2 FROM tab1 ---- 106 55 68 query I rowsort SELECT ALL - - cor0.col0 + cor0.col1 FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8651 SELECT ALL - + col2 + + col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8651 SELECT ALL - + col2 + + col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8652 SELECT DISTINCT cor0.col2 * col1 DIV + col1 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-8652 SELECT DISTINCT cor0.col2 * col1 / + col1 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT DISTINCT col2 * col1 * col2 + + 1 * col1 FROM tab0 ---- 194 611975 93740 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( + ( + col1 ) ) + - ( 97 ) * + col2 col1 FROM tab0 ---- -3115 -7863 0 query I rowsort SELECT DISTINCT + 25 + col1 * + col1 AS col0 FROM tab1 ---- 125 194 701 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8656 SELECT + CAST( NULL AS SIGNED ) + - ( col0 + col2 ) AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8656 SELECT + CAST ( NULL AS INTEGER ) + - ( col0 + col2 ) AS col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT 62 + + col0 * - ( ( - col1 ) ) * + col0 AS col1 FROM tab1 ---- 296 41022 83262 query I rowsort SELECT - cor0.col2 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1 ---- 81 values hashing to 87af467938ef355540b8de24db1bf3b8 query I rowsort SELECT ALL 74 * - col0 * - col1 - 22 AS col0 FROM tab0 AS cor0 ---- 152714 251208 599304 query I rowsort SELECT DISTINCT + col0 * - col0 + 12 AS col0 FROM tab2 AS cor0 ---- -37 -6072 -6229 query I rowsort SELECT ALL - - cor0.col1 + col1 - ( 40 + + cor0.col0 ) AS col0 FROM tab0 AS cor0 ---- 108 119 53 query I rowsort SELECT - ( - cor0.col1 ) * cor0.col0 + 52 FROM tab0 AS cor0 ---- 2116 3447 8151 query I rowsort SELECT DISTINCT - - 64 + + col0 + col1 * - col1 AS col2 FROM tab2 AS cor0 ---- -146 -3339 -890 query I rowsort SELECT + ( col0 + 53 ) FROM tab2 ---- 131 132 60 query I rowsort SELECT DISTINCT + 19 * col1 AS col0 FROM tab0 AS cor0 ---- 1634 1729 1843 query I rowsort SELECT - 74 * - col0 AS col0 FROM tab1 AS cor0 ---- 222 4736 5920 skipif mysql # not compatible query I rowsort SELECT + col1 * + CAST ( + 30 AS REAL ) FROM tab0 cor0 ---- 2580 2730 2910 query I rowsort SELECT + + cor0.col0 + - ( + cor0.col0 ) * col0 FROM tab2 AS cor0 ---- -42 -6006 -6162 query I rowsort SELECT + col0 * + col1 * col0 AS col1 FROM tab2 AS cor0 ---- 106097 1519 358956 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8670 SELECT - CAST( NULL AS SIGNED ) + - col0 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8670 SELECT - CAST ( NULL AS INTEGER ) + - col0 * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8671 SELECT ALL 33 * col2 DIV col2 FROM tab0 AS cor0 ---- 33 33 33 skipif mysql # not compatible query I rowsort label-8671 SELECT ALL 33 * col2 / col2 FROM tab0 AS cor0 ---- 33 33 33 query I rowsort SELECT - 27 + col0 * - col1 * + col2 FROM tab1 ---- -36507 -4239 -99867 query I rowsort SELECT ALL + + ( - 17 ) * col0 FROM tab1 AS cor0 ---- -1088 -1360 -51 query I rowsort SELECT + - col0 + + 87 AS col2 FROM tab0 AS cor0 ---- -2 52 63 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8675 SELECT ALL + CAST( col1 AS SIGNED ) * col1 + - col1 FROM tab2 AS cor0 ---- 272 3422 930 skipif mysql # not compatible query I rowsort label-8675 SELECT ALL + CAST ( col1 AS INTEGER ) * col1 + - col1 FROM tab2 AS cor0 ---- 272 3422 930 query I rowsort SELECT + 71 + 21 FROM tab1 cor0 ---- 92 92 92 query I rowsort SELECT DISTINCT + 65 AS col1 FROM tab0 AS cor0 ---- 65 query I rowsort SELECT DISTINCT - col1 * - 4 AS col1 FROM tab1 AS cor0 ---- 104 40 52 query I rowsort SELECT + ( - 70 ) + col0 FROM tab0 AS cor0 ---- -35 -46 19 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 + - 74 col2 FROM tab0 AS cor0 ---- -41 -73 8 query I rowsort SELECT DISTINCT + + col1 + - ( col1 ) FROM tab1 cor0 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8682 SELECT DISTINCT CAST( col0 AS SIGNED ) * col0 FROM tab1 AS cor0 ---- 4096 6400 9 skipif mysql # not compatible query I rowsort label-8682 SELECT DISTINCT CAST ( col0 AS INTEGER ) * col0 FROM tab1 AS cor0 ---- 4096 6400 9 query I rowsort SELECT ALL - cor0.col0 + - col2 * col2 FROM tab1 AS cor0 ---- -2919 -3313 -9296 query I rowsort SELECT 84 - 14 AS col1 FROM tab0 AS cor0 ---- 70 70 70 query I rowsort SELECT + 66 * + col1 * + col2 + - 89 FROM tab1 cor0 ---- 37531 82279 92575 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8686 SELECT - + CAST( NULL AS SIGNED ) * + 19 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8686 SELECT - + CAST ( NULL AS INTEGER ) * + 19 AS col2 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - 72 * + cor0.col1 AS col1 FROM tab2 AS cor0 ---- 1224 2232 4248 query I rowsort SELECT DISTINCT ( cor1.col1 ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 ---- 86 91 97 query I rowsort SELECT 4 * col0 AS col0 FROM tab1 AS cor0 ---- 12 256 320 query I rowsort SELECT DISTINCT + - cor0.col0 + col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT ALL + ( col1 ) * col0 * + col2 + + 20 * col0 AS col2 FROM tab1 ---- 101440 37760 4272 query I rowsort SELECT col0 * 55 * cor0.col1 FROM tab1 AS cor0 ---- 35200 4290 57200 query I rowsort SELECT + - 28 FROM tab0 AS cor0 ---- -28 -28 -28 query I rowsort SELECT ALL + + 95 * 24 FROM tab1 AS cor0 ---- 2280 2280 2280 query I rowsort SELECT col2 + + 48 * - col1 FROM tab0 cor0 ---- -4095 -4286 -4655 query I rowsort SELECT DISTINCT 89 * 96 FROM tab0, tab2 AS cor0 ---- 8544 query I rowsort SELECT DISTINCT + 8 * col0 + cor0.col0 FROM tab0 AS cor0 ---- 216 315 801 query I rowsort SELECT + + 48 AS col1 FROM tab2 cor0 ---- 48 48 48 query I rowsort SELECT - + ( 17 ) FROM tab1 AS cor0 ---- -17 -17 -17 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT tab0.col0 col2 FROM tab0, tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT ( - 7 ) * col0 * ( - col0 ) FROM tab0 ---- 4032 55447 8575 query I rowsort SELECT ALL col1 * - col0 * - ( col2 ) FROM tab0 ---- 3395 664118 68112 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col0 col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT DISTINCT col0 * + ( col1 ) FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT + col0 * + col2 * cor0.col1 FROM tab2 AS cor0 ---- 119652 51034 5859 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + 48 + - tab1.col1 ) col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 98a939348e6ba5ea6c22e9d6ac2fde9f query I rowsort SELECT DISTINCT col0 * 9 * col2 AS col0 FROM tab1 ---- 1458 32832 69120 query I rowsort SELECT ALL col2 * + ( - col0 * col2 ) AS col0 FROM tab0 ---- -26136 -35 -598436 query I rowsort SELECT DISTINCT + col1 * + ( + col0 ) + col1 - col1 AS col2 FROM tab0 ---- 2064 3395 8099 onlyif mysql # use DIV operator for integer division query I rowsort label-8710 SELECT - col1 DIV - 28 col0 FROM tab1 cor0 ---- 0 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8710 SELECT - col1 / - 28 col0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT ALL + 50 * ( - col0 ) FROM tab0 AS cor0 ---- -1200 -1750 -4450 query I rowsort SELECT ALL tab1.col2 + - ( + tab1.col2 ) FROM tab1 ---- 0 0 0 query I rowsort SELECT col0 + + ( - tab0.col1 + tab0.col1 ) AS col0 FROM tab0 ---- 24 35 89 onlyif mysql # use DIV operator for integer division query I rowsort label-8714 SELECT - CAST( - col1 AS SIGNED ) + + cor0.col0 DIV col2 FROM tab1 cor0 ---- 11 13 26 skipif mysql # not compatible query I rowsort label-8714 SELECT - CAST ( - col1 AS INTEGER ) + + cor0.col0 / col2 FROM tab1 cor0 ---- 11 13 26 query I rowsort SELECT DISTINCT + 95 AS col1 FROM tab0 AS cor0 ---- 95 query I rowsort SELECT + - col2 * ( col0 ) AS col2 FROM tab2 AS cor0 ---- -189 -2028 -3002 query I rowsort SELECT + col2 * 1 FROM tab1 ---- 54 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 + + 68 * col0 col1 FROM tab2 AS cor0 ---- 449 5278 5334 query I rowsort SELECT ALL - + 91 * + col1 + + 20 FROM tab1 AS cor0 ---- -1163 -2346 -890 query I rowsort SELECT cor0.col1 * cor1.col2 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1 ---- 27 values hashing to ae9e2bb55fd656eb6c7fb22bc2bb0f90 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * cor0.col1 + + col2 + + cor0.col2 * + 41 col2 FROM tab0 AS cor0 ---- 11725 8782 9451 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8722 SELECT - col2 * + CAST( NULL AS SIGNED ) + + ( col1 ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8722 SELECT - col2 * + CAST ( NULL AS INTEGER ) + + ( col1 ) FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col1 + + ( col1 ) * col1 + + 26 AS col0 FROM tab1 AS cor0 ---- 136 208 728 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - - col2 * + 60 col2 FROM tab1 AS cor0 ---- 3240 3420 5760 query I rowsort SELECT col2 + - 19 AS col2 FROM tab0 AS cor0 ---- -18 14 63 query I rowsort SELECT + - col2 * col0 + - cor0.col1 * col2 AS col0 FROM tab1 AS cor0 ---- -1566 -4218 -8928 query I rowsort SELECT ALL col0 * + 1 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT - + col1 * - 97 AS col1 FROM tab0 AS cor0 ---- 8342 8827 9409 onlyif mysql # use DIV operator for integer division query I rowsort label-8729 SELECT + - col1 DIV CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-8729 SELECT + - col1 / CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- 1 1 1 query I rowsort SELECT - col2 + col2 - col2 AS col2 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT - - 67 * 65 AS col0 FROM tab0 AS cor0 ---- 4355 4355 4355 query I rowsort SELECT DISTINCT - - 48 FROM tab1 AS cor0 ---- 48 query I rowsort SELECT ALL + 18 + + col0 AS col1 FROM tab2 AS cor0 ---- 25 96 97 query I rowsort SELECT 43 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 cor2 ---- 81 values hashing to 53b2f139a07f856ac44a1158efd4e63d query I rowsort SELECT - + ( - col0 ) FROM tab0 cor0 ---- 24 35 89 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 59 + col0 col0 FROM tab0 AS cor0 ---- 148 83 94 query I rowsort SELECT ALL - + ( + 82 ) + col0 FROM tab1 AS cor0 ---- -18 -2 -79 query I rowsort SELECT + col1 * - 61 + cor0.col2 AS col1 FROM tab1 AS cor0 ---- -1532 -553 -697 query I rowsort SELECT DISTINCT - 87 + + col0 AS col2 FROM tab0 AS cor0 ---- -52 -63 2 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8740 SELECT ALL CAST( col2 AS SIGNED ) * col1 + col0 AS col2 FROM tab1 AS cor0 ---- 1328 1407 634 skipif mysql # not compatible query I rowsort label-8740 SELECT ALL CAST ( col2 AS INTEGER ) * col1 + col0 AS col2 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT + + 40 + col2 FROM tab0 AS cor0 ---- 122 41 73 query I rowsort SELECT - - col1 * col1 + - col2 * - col0 FROM tab0 AS cor0 ---- 15579 8188 9444 query I rowsort SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 10 13 26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8744 SELECT ALL + + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8744 SELECT ALL + + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab0 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8745 SELECT ALL col1 * + col0 + ( col1 ) DIV col0 AS col2 FROM tab0 AS cor0 ---- 2067 3397 8100 skipif mysql # not compatible query I rowsort label-8745 SELECT ALL col1 * + col0 + ( col1 ) / col0 AS col2 FROM tab0 AS cor0 ---- 2067 3397 8100 query I rowsort SELECT ALL col0 + - col0 * + 89 AS col1 FROM tab1 AS cor0 ---- -264 -5632 -7040 query I rowsort SELECT DISTINCT + + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0 ---- -3 -64 -80 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + ( col0 ) + ( 30 ) * col2 col1 FROM tab0 AS cor0 ---- 1014 2549 65 query I rowsort SELECT tab0.col0 + tab0.col1 * col0 * col0 FROM tab0 ---- 118860 49560 720900 query I rowsort SELECT DISTINCT + 65 * + tab0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0 ---- 1560 2275 5785 query I rowsort SELECT - 94 - col1 * col2 FROM tab1 ---- -1342 -1498 -664 query I rowsort SELECT DISTINCT ( + col2 ) * tab0.col1 FROM tab0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-8753 SELECT ALL col0 DIV ( col1 ) - - col2 FROM tab2 cor0 ---- 27 27 42 skipif mysql # not compatible query I rowsort label-8753 SELECT ALL col0 / ( col1 ) - - col2 FROM tab2 cor0 ---- 27 27 42 onlyif mysql # use DIV operator for integer division query I rowsort label-8754 SELECT DISTINCT - cor0.col0 + 46 DIV - ( - col1 ) FROM tab2 AS cor0 ---- -6 -77 -78 skipif mysql # not compatible query I rowsort label-8754 SELECT DISTINCT - cor0.col0 + 46 / - ( - col1 ) FROM tab2 AS cor0 ---- -6 -77 -78 query I rowsort SELECT ALL + col0 + + 12 AS col0 FROM tab0 AS cor0 ---- 101 36 47 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + col2 + - 70 - col0 col1 FROM tab0 AS cor0 ---- -106 -127 -241 query I rowsort SELECT - - col2 * ( - 1 ) AS col0 FROM tab0 AS cor0 ---- -1 -33 -82 query I rowsort SELECT col2 * - cor0.col0 + 86 FROM tab1 AS cor0 ---- -3562 -7594 -76 query I rowsort SELECT + + col0 * col0 + - col0 AS col2 FROM tab0 AS cor0 ---- 1190 552 7832 skipif mysql # not compatible query I rowsort SELECT DISTINCT - cor0.col0 + - CAST ( col1 + + col0 AS REAL ) * + ( + 96 ) * col2 AS col2 FROM tab2 AS cor0 ---- -342030 -350287 -98503 query I rowsort SELECT ALL - col0 + - col2 - - col2 * col2 * - col2 AS col2 FROM tab2 AS cor0 ---- -17680 -19717 -54989 query I rowsort SELECT DISTINCT + - col0 + + col2 * - col1 FROM tab0 AS cor0 ---- -132 -2862 -7551 query I rowsort SELECT ALL - + col0 * - 66 AS col1 FROM tab1 AS cor0 ---- 198 4224 5280 query I rowsort SELECT ALL col0 * col1 - 70 FROM tab2 ---- 1273 147 4532 query I rowsort SELECT DISTINCT 19 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 19 query I rowsort SELECT DISTINCT + col1 * ( col1 + col1 ) AS col0 FROM tab2 AS cor0 ---- 1922 578 6962 query I rowsort SELECT - col0 * - col2 + 96 * col2 AS col0 FROM tab2 cor0 ---- 2781 4524 6650 query I rowsort SELECT DISTINCT - col0 * - col0 + col1 AS col0 FROM tab0 cor0 ---- 1322 662 8012 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 82 col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to f800b0aad28b82b2deb67f7045c9a45c query I rowsort SELECT DISTINCT - 93 + + 92 AS col2 FROM tab0 AS cor0 ---- -1 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 + - ( - col0 ) col2 FROM tab2 ---- 137 38 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8772 SELECT - col2 * + CAST( 57 AS SIGNED ) FROM tab0 AS cor0 ---- -1881 -4674 -57 skipif mysql # not compatible query I rowsort label-8772 SELECT - col2 * + CAST ( 57 AS INTEGER ) FROM tab0 AS cor0 ---- -1881 -4674 -57 onlyif mysql # use DIV operator for integer division query I rowsort label-8773 SELECT - col1 * + CAST( + col0 AS SIGNED ) * + col0 + - cor0.col0 DIV - col1 FROM tab1 AS cor0 ---- -234 -40954 -83194 skipif mysql # not compatible query I rowsort label-8773 SELECT - col1 * + CAST ( + col0 AS INTEGER ) * + col0 + - cor0.col0 / - col1 FROM tab1 AS cor0 ---- -234 -40954 -83194 query I rowsort SELECT - + ( col0 ) + + col0 AS col0 FROM tab2 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8775 SELECT - col2 * 27 + 53 DIV + col0 FROM tab1 ---- -1441 -1539 -2592 skipif mysql # not compatible query I rowsort label-8775 SELECT - col2 * 27 + 53 / + col0 FROM tab1 ---- -1441 -1539 -2592 query I rowsort SELECT col0 + - 30 AS col0 FROM tab2 AS cor0 ---- -23 48 49 query I rowsort SELECT + col1 * + col1 * + col1 AS col2 FROM tab1 AS cor0 ---- 1000 17576 2197 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + + col0 * + 45 col2 FROM tab2 ---- 288 3484 3517 query I rowsort SELECT - col2 * 32 * tab0.col1 AS col1 FROM tab0 ---- -238784 -3104 -90816 query I rowsort SELECT col0 * + ( tab2.col2 ) AS col2 FROM tab2 ---- 189 2028 3002 query I rowsort SELECT col1 + col1 * + ( col2 ) FROM tab2 ---- 1593 663 868 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + 46 col0 FROM tab1 ---- -18 -34 43 query I rowsort SELECT ALL 74 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31 query I rowsort SELECT ALL - col1 + - 42 FROM tab0 AS cor0 ---- -128 -133 -139 query I rowsort SELECT ALL + col0 + cor0.col2 * col1 AS col0 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT ALL - + col0 * col0 - cor0.col1 AS col0 FROM tab2 AS cor0 ---- -6143 -6258 -80 query I rowsort SELECT DISTINCT + ( + cor0.col1 ) * - col1 - + col0 AS col1 FROM tab0 AS cor0 ---- -7420 -8370 -9444 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8788 SELECT CAST( col2 + + col2 AS SIGNED ) AS col0 FROM tab0 ---- 164 2 66 skipif mysql # not compatible query I rowsort label-8788 SELECT CAST ( col2 + + col2 AS INTEGER ) AS col0 FROM tab0 ---- 164 2 66 query I rowsort SELECT DISTINCT - col0 + + col2 * + col2 AS col2 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT DISTINCT + 52 + 13 * + col2 AS col1 FROM tab2 AS cor0 ---- 390 403 546 query I rowsort SELECT ALL col0 * 28 - cor0.col0 FROM tab2 AS cor0 ---- 189 2106 2133 query I rowsort SELECT - tab1.col2 * - tab1.col0 * ( col0 ) FROM tab1 ---- 233472 486 614400 query I rowsort SELECT ALL + tab0.col2 - 95 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 910371dfa834f9e0e9bb4d6136cfe0f8 query I rowsort SELECT ALL + 78 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to d8e5ef4db3419fc251e82c50ba04e048 query I rowsort SELECT ALL + ( cor1.col2 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8796 SELECT ALL - col1 * CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8796 SELECT ALL - col1 * CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab1 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8797 SELECT ALL col1 + CAST( NULL AS SIGNED ) * 69 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8797 SELECT ALL col1 + CAST ( NULL AS INTEGER ) * 69 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - col0 + col0 * 52 AS col1 FROM tab2 AS cor0 ---- 357 3978 4029 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 78 col1 FROM tab0 AS cor0 ---- 78 78 78 query I rowsort SELECT + + 25 + col2 AS col0 FROM tab0 AS cor0 ---- 107 26 58 query I rowsort SELECT ALL + - col2 * 33 + col2 AS col2 FROM tab2 cor0 ---- -1216 -832 -864 query I rowsort SELECT ALL 88 * cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1 ---- 27 values hashing to d49f2ec4cff37f52a8fd0c3ee9c42d05 query I rowsort SELECT DISTINCT - col1 + cor0.col0 * + col0 + - col2 AS col1 FROM tab1 AS cor0 ---- -71 4029 6291 query I rowsort SELECT ALL + + col0 * - 74 + - cor0.col0 + col1 AS col0 FROM tab2 cor0 ---- -494 -5791 -5908 query I rowsort SELECT DISTINCT + cor1.col1 * + cor0.col0 + + 24 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1, tab1 cor2 ---- 9 values hashing to a68a3dc4b5b5aaa959408ffd21d6193f query I rowsort SELECT + col1 * - 61 FROM tab1 AS cor0 ---- -1586 -610 -793 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8807 SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab2 cor0, tab0 AS cor1 ---- NULL skipif mysql # not compatible query I rowsort label-8807 SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab2 cor0, tab0 AS cor1 ---- NULL query I rowsort SELECT - col2 * + 49 FROM tab0 cor0 ---- -1617 -4018 -49 query I rowsort SELECT col0 * - 30 AS col2 FROM tab0 AS cor0 ---- -1050 -2670 -720 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor0.col1 + cor0.col2 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to f2e58df61204c8a189e87d6816ea9159 query I rowsort SELECT col0 * + col2 * col0 AS col2 FROM tab2 ---- 1323 158184 237158 query I rowsort SELECT + col1 * 37 AS col0 FROM tab1 ---- 370 481 962 onlyif mysql # use DIV operator for integer division query I rowsort label-8814 SELECT col0 DIV 56 col1 FROM tab0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8814 SELECT col0 / 56 col1 FROM tab0 ---- 0 0 1 query I rowsort SELECT ALL col2 * - col0 * - col1 + - 65 AS col2 FROM tab2 ---- 119587 50969 5794 query I rowsort SELECT 31 * 67 + + col0 * 87 * ( tab0.col1 ) AS col1 FROM tab0 ---- 181645 297442 706690 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8817 SELECT + CAST( NULL AS SIGNED ) * tab1.col2 + col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8817 SELECT + CAST ( NULL AS INTEGER ) * tab1.col2 + col1 FROM tab1 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8818 SELECT + 62 DIV 83 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8818 SELECT + 62 / 83 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT - + col0 + col2 * cor0.col2 FROM tab0 AS cor0 ---- -34 1065 6635 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8820 SELECT - CAST( NULL AS SIGNED ) - + col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8820 SELECT - CAST ( NULL AS INTEGER ) - + col2 FROM tab0 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-8821 SELECT ( + tab1.col0 ) DIV - col2 AS col0 FROM tab1 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-8821 SELECT ( + tab1.col0 ) / - col2 AS col0 FROM tab1 ---- -1 0 0 query I rowsort SELECT DISTINCT 3 * + col1 FROM tab2 cor0 ---- 177 51 93 query I rowsort SELECT + - col0 + + cor0.col2 FROM tab1 cor0 ---- -7 16 51 query I rowsort SELECT DISTINCT - 33 * 3 AS col2 FROM tab2 ---- -99 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8825 SELECT CAST( col1 * col1 AS SIGNED ) AS col0 FROM tab1 ---- 100 169 676 skipif mysql # not compatible query I rowsort label-8825 SELECT CAST ( col1 * col1 AS INTEGER ) AS col0 FROM tab1 ---- 100 169 676 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8826 SELECT CAST( NULL AS SIGNED ) * + col2 / + col0 + col1 * tab2.col1 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8826 SELECT CAST ( NULL AS INTEGER ) * + col2 / + col0 + col1 * tab2.col1 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT - 59 - col2 FROM tab2 ---- -85 -86 -97 query I rowsort SELECT DISTINCT + 44 + - tab0.col1 * 15 FROM tab0 ---- -1246 -1321 -1411 query I rowsort SELECT col0 * col2 + 65 * - 40 AS col1 FROM tab1 ---- -2438 1048 5080 onlyif mysql # use DIV operator for integer division query I rowsort label-8830 SELECT DISTINCT 52 - + col0 DIV col1 AS col2 FROM tab0 ---- 52 skipif mysql # not compatible query I rowsort label-8830 SELECT DISTINCT 52 - + col0 / col1 AS col2 FROM tab0 ---- 52 query I rowsort SELECT col0 + - tab0.col1 * - ( col0 ) * col0 + - tab0.col2 * - 2 FROM tab0 ---- 118862 49626 721064 query I rowsort SELECT DISTINCT - 43 - - col0 FROM tab2 AS cor0 ---- -36 35 36 onlyif mysql # use DIV operator for integer division query I rowsort label-8833 SELECT 94 DIV col0 - col2 FROM tab1 cor0 ---- -23 -56 -95 skipif mysql # not compatible query I rowsort label-8833 SELECT 94 / col0 - col2 FROM tab1 cor0 ---- -23 -56 -95 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 37 + col2 col0 FROM tab1 AS cor0 ---- 133 91 94 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 72 col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49 query I rowsort SELECT + tab1.col1 - + 71 FROM tab1 ---- -45 -58 -61 query I rowsort SELECT - col0 + ( tab1.col2 + - col1 ) FROM tab1 ---- -17 25 3 query I rowsort SELECT ALL - col2 * - 71 FROM tab2 ---- 1846 1917 2698 query I rowsort SELECT - col1 * + col2 * - cor0.col2 FROM tab2 AS cor0 ---- 22599 24548 39884 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 54 col2 FROM tab2, tab0 AS cor0 ---- 54 query I rowsort SELECT DISTINCT - col0 * ( 55 ) AS col2 FROM tab2 ---- -385 -4290 -4345 query I rowsort SELECT + col2 + + ( tab2.col0 ) FROM tab2 ---- 104 117 34 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8843 SELECT + CAST( NULL AS SIGNED ) / + 79 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8843 SELECT + CAST ( NULL AS INTEGER ) / + 79 AS col1 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + - 8 FROM tab0 cor0 ---- -8 -8 -8 query I rowsort SELECT DISTINCT - - col1 * - col0 * col1 FROM tab2 AS cor0 ---- -22831 -271518 -6727 query I rowsort SELECT DISTINCT - 52 + col1 FROM tab2 cor0 ---- -21 -35 7 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort SELECT + + CAST ( - 2 AS REAL ) * cor0.col1 col1 FROM tab0 AS cor0 ---- -172 -182 -194 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8848 SELECT DISTINCT + col0 * + CAST( col1 * col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 ---- 177504 329315 737009 skipif mysql # not compatible query I rowsort label-8848 SELECT DISTINCT + col0 * + CAST ( col1 * col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 ---- 177504 329315 737009 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8849 SELECT + col1 + - CAST( - col0 AS SIGNED ) * col1 + + tab2.col2 AS col1 FROM tab2 ---- 1398 275 4687 skipif mysql # not compatible query I rowsort label-8849 SELECT + col1 + - CAST ( - col0 AS INTEGER ) * col1 + + tab2.col2 AS col1 FROM tab2 ---- 1398 275 4687 query I rowsort SELECT - 21 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1 query I rowsort SELECT - 10 * col0 AS col2 FROM tab2 AS cor0 ---- -70 -780 -790 query I rowsort SELECT 50 AS col2 FROM tab2, tab0 AS cor0 ---- 9 values hashing to dea2d1b74e0cdf67806af8c417324f52 query I rowsort SELECT - col2 * 47 * col2 AS col2 FROM tab0 AS cor0 ---- -316028 -47 -51183 query I rowsort SELECT DISTINCT - ( col2 ) * col1 FROM tab1 cor0 ---- -1248 -1404 -570 onlyif mysql # use DIV operator for integer division query I rowsort label-8855 SELECT DISTINCT - - cor0.col2 DIV - col0 FROM tab2 AS cor0 ---- -3 0 skipif mysql # not compatible query I rowsort label-8855 SELECT DISTINCT - - cor0.col2 / - col0 FROM tab2 AS cor0 ---- -3 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8856 SELECT ALL - CAST( NULL AS SIGNED ) + col2 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8856 SELECT ALL - CAST ( NULL AS INTEGER ) + col2 FROM tab0 cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT ( - col1 ) * - col2 + + cor0.col2 AS col1 FROM tab2 AS cor0 ---- 1560 684 864 query I rowsort SELECT + + col2 * 32 * - cor0.col1 FROM tab0 AS cor0 ---- -238784 -3104 -90816 query I rowsort SELECT DISTINCT 46 * - col2 AS col2 FROM tab0 AS cor0 ---- -1518 -3772 -46 query I rowsort SELECT ALL tab2.col2 + col0 * + ( 49 ) AS col2 FROM tab2 ---- 370 3848 3909 query I rowsort SELECT DISTINCT + col1 + - col0 + col0 AS col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT ALL - ( tab2.col2 ) AS col0 FROM tab2, tab0, tab2 AS cor0 ---- 27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6 onlyif mysql # use DIV operator for integer division query I rowsort label-8863 SELECT - col1 * col1 DIV ( col0 ) col2 FROM tab1 ---- -1 -2 -225 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-8863 SELECT - col1 * col1 / ( col0 ) col2 FROM tab1 ---- -1 -2 -225 query I rowsort SELECT DISTINCT + 72 * + col0 AS col1 FROM tab1 AS cor0 ---- 216 4608 5760 query I rowsort SELECT ALL - col2 + - cor0.col0 AS col2 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT ALL - cor0.col0 * 47 AS col1 FROM tab2, tab1 AS cor0 ---- 9 values hashing to c82f431296c5019a6e5e717f7af69f65 query I rowsort SELECT cor0.col1 + - cor0.col1 AS col0 FROM tab0, tab2 cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query I rowsort SELECT DISTINCT + col0 + cor0.col1 + + 22 * 58 FROM tab1 AS cor0 ---- 1305 1350 1369 query I rowsort SELECT 70 - + cor0.col2 FROM tab2 AS cor0 ---- 32 43 44 onlyif mysql # use DIV operator for integer division query I rowsort label-8870 SELECT DISTINCT + col1 DIV + col1 FROM tab2 cor0 ---- 1 skipif mysql # not compatible query I rowsort label-8870 SELECT DISTINCT + col1 / + col1 FROM tab2 cor0 ---- 1 query I rowsort SELECT col2 * - 84 + + col1 AS col1 FROM tab1 AS cor0 ---- -4510 -4778 -8051 query I rowsort SELECT ALL + col0 * + ( col0 ) FROM tab2 AS cor0 ---- 49 6084 6241 query I rowsort SELECT - - col1 + - cor0.col2 * + 86 AS col2 FROM tab1 AS cor0 ---- -4618 -4892 -8243 query I rowsort SELECT - cor0.col1 * - 3 * - 19 FROM tab0 AS cor0 ---- -4902 -5187 -5529 onlyif mysql # use DIV operator for integer division query I rowsort label-8875 SELECT + cor0.col2 + col2 DIV 77 FROM tab2 AS cor0 ---- 26 27 38 skipif mysql # not compatible query I rowsort label-8875 SELECT + cor0.col2 + col2 / 77 FROM tab2 AS cor0 ---- 26 27 38 query I rowsort SELECT - + col2 * - 41 - - col1 AS col2 FROM tab0 cor0 ---- 138 1439 3453 query I rowsort SELECT + 28 FROM tab0, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 8a39580587f2831072e93c319ff94bbf query I rowsort SELECT ALL 90 + - col2 - - 12 * + col2 FROM tab2 ---- 376 387 508 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8879 SELECT DISTINCT + col0 * - CAST( 34 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -1190 -3026 -816 skipif mysql # not compatible query I rowsort label-8879 SELECT DISTINCT + col0 * - CAST ( 34 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -1190 -3026 -816 query I rowsort SELECT - col1 * + 53 FROM tab2 AS cor0 ---- -1643 -3127 -901 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8881 SELECT ALL col2 * CAST( - 85 AS SIGNED ) + col1 * 86 + 90 FROM tab1 cor0 ---- -2264 -3895 -6952 skipif mysql # not compatible query I rowsort label-8881 SELECT ALL col2 * CAST ( - 85 AS INTEGER ) + col1 * 86 + 90 FROM tab1 cor0 ---- -2264 -3895 -6952 query I rowsort SELECT + - col1 * 69 + - col0 FROM tab1 AS cor0 ---- -1797 -754 -977 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 * - col1 + 95 col1 FROM tab0 AS cor0 ---- 7491 8376 9504 query I rowsort SELECT ALL - + col0 * + col1 AS col0 FROM tab1 cor0 ---- -1040 -640 -78 query I rowsort SELECT DISTINCT + col0 * + col0 + - 36 AS col1 FROM tab1 AS cor0 ---- -27 4060 6364 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 * + col2 + 41 col2 FROM tab1 AS cor0 ---- -1207 -1363 -529 query I rowsort SELECT + ( col1 ) * - col1 + col0 * + col2 FROM tab2 AS cor0 ---- -1453 -772 2713 query I rowsort SELECT + col2 * cor0.col2 + + col2 * + col2 AS col0 FROM tab1 AS cor0 ---- 18432 5832 6498 query I rowsort SELECT - + cor0.col0 - + col0 * + col0 FROM tab1 AS cor0 ---- -12 -4160 -6480 query I rowsort SELECT + - 24 * col2 + col2 FROM tab2 AS cor0 ---- -598 -621 -874 query I rowsort SELECT 8 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to 33069adc3c1142d31511ec88fcfa40af onlyif mysql # use DIV operator for integer division query I rowsort label-8892 SELECT tab2.col0 DIV ( tab2.col0 * + col0 ) AS col2 FROM tab2 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8892 SELECT tab2.col0 / ( tab2.col0 * + col0 ) AS col2 FROM tab2 ---- 0 0 0 query I rowsort SELECT DISTINCT col0 + ( - 61 ) FROM tab0 ---- -26 -37 28 query I rowsort SELECT col1 + + ( + ( col0 ) ) + col0 FROM tab1 ---- 138 173 32 onlyif mysql # use DIV operator for integer division query I rowsort label-8895 SELECT tab1.col0 DIV - ( col1 * - col2 ) AS col1 FROM tab1 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8895 SELECT tab1.col0 / - ( col1 * - col2 ) AS col1 FROM tab1 ---- 0 0 0 query I rowsort SELECT - cor0.col1 * col2 + ( - ( cor0.col1 ) ) * cor0.col1 FROM tab0 cor0 ---- -10234 -15743 -9506 query I rowsort SELECT ALL + col1 + - cor0.col1 AS col0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT ALL + 66 * - col1 + + cor0.col1 + + 53 FROM tab0 AS cor0 ---- -5537 -5862 -6252 query I rowsort SELECT ALL + cor0.col0 * col2 + ( 28 + col1 ) FROM tab1 AS cor0 ---- 216 3686 7721 query I rowsort SELECT col2 * tab1.col2 * + col1 + + col2 FROM tab1 ---- 119904 32547 75870 query I rowsort SELECT + col0 * + col2 + - col1 AS col1 FROM tab1 ---- 136 3638 7667 query I rowsort SELECT tab1.col2 AS col0 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8903 SELECT ALL cor0.col1 * - cor0.col0 + - CAST( + ( - col0 ) AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-8903 SELECT ALL cor0.col1 * - cor0.col0 + - CAST ( + ( - col0 ) AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0 ---- 0 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-8904 SELECT 52 DIV 8 FROM tab0 ---- 6 6 6 skipif mysql # not compatible query I rowsort label-8904 SELECT 52 / 8 FROM tab0 ---- 6 6 6 query I rowsort SELECT + ( col0 ) - cor0.col0 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL col0 + col1 - col0 FROM tab2 ---- 17 31 59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col2 - 64 col2 FROM tab2 ---- -102 -90 -91 query I rowsort SELECT 84 * col2 AS col1 FROM tab2 AS cor0 ---- 2184 2268 3192 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 40 + tab2.col2 col0 FROM tab2 ---- 66 67 78 query I rowsort SELECT 14 * + cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to fddda4b4f98b244da05f6b415e6ae11b query I rowsort SELECT ALL + col2 + cor0.col2 - + 18 FROM tab0 AS cor0 ---- -16 146 48 query I rowsort SELECT DISTINCT + col2 - + col1 * - 48 AS col0 FROM tab2 cor0 ---- 1515 2858 854 query I rowsort SELECT DISTINCT col2 - col0 * - col1 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 onlyif mysql # use DIV operator for integer division query I rowsort label-8914 SELECT ALL - col2 * col2 + - 60 DIV + col0 FROM tab0 AS cor0 ---- -1091 -2 -6724 skipif mysql # not compatible query I rowsort label-8914 SELECT ALL - col2 * col2 + - 60 / + col0 FROM tab0 AS cor0 ---- -1091 -2 -6724 query I rowsort SELECT + 90 - + col1 * - col0 FROM tab0 AS cor0 ---- 2154 3485 8189 query I rowsort SELECT + col1 * + 24 AS col0 FROM tab1 AS cor0 ---- 240 312 624 query I rowsort SELECT col1 * 36 AS col2 FROM tab2 AS cor0 ---- 1116 2124 612 query I rowsort SELECT DISTINCT - col1 * 70 * - col1 AS col0 FROM tab1 cor0 ---- 11830 47320 7000 query I rowsort SELECT + - cor0.col2 * - 83 AS col2 FROM tab2 cor0 ---- 2158 2241 3154 query I rowsort SELECT DISTINCT cor0.col2 + cor0.col0 FROM tab0, tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT - 87 * - col2 FROM tab0 AS cor0 ---- 2871 7134 87 query I rowsort SELECT DISTINCT + - col0 + col0 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -56 -6162 -6320 query I rowsort SELECT DISTINCT - + 35 * + ( col2 ) + col2 FROM tab2 AS cor0 ---- -1292 -884 -918 query I rowsort SELECT 54 * col0 FROM tab1 AS cor0 ---- 162 3456 4320 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8925 SELECT ALL + CAST( + col0 AS SIGNED ) * + col1 FROM tab2 AS cor0 ---- 1343 217 4602 skipif mysql # not compatible query I rowsort label-8925 SELECT ALL + CAST ( + col0 AS INTEGER ) * + col1 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT - cor0.col1 + col0 + cor0.col1 FROM tab0 AS cor0 ---- 24 35 89 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8927 SELECT - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 ---- -26 -27 -38 skipif mysql # not compatible query I rowsort label-8927 SELECT - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 ---- -26 -27 -38 query I rowsort SELECT + 54 * 45 FROM tab1 AS cor0 ---- 2430 2430 2430 onlyif mysql # use DIV operator for integer division query I rowsort label-8929 SELECT ALL + + col2 DIV 39 + + col0 AS col0 FROM tab2 AS cor0 ---- 7 78 79 skipif mysql # not compatible query I rowsort label-8929 SELECT ALL + + col2 / 39 + + col0 AS col0 FROM tab2 AS cor0 ---- 7 78 79 query I rowsort SELECT + + col0 + - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -16 -51 7 onlyif mysql # use DIV operator for integer division query I rowsort label-8931 SELECT col2 DIV 24 FROM tab1 AS cor0 ---- 2 2 4 skipif mysql # not compatible query I rowsort label-8931 SELECT col2 / 24 FROM tab1 AS cor0 ---- 2 2 4 query I rowsort SELECT ALL + - 85 * 20 + col0 AS col2 FROM tab1 cor0 ---- -1620 -1636 -1697 query I rowsort SELECT DISTINCT + 47 * - col0 AS col2 FROM tab1 AS cor0 ---- -141 -3008 -3760 query I rowsort SELECT + 10 * - ( + col1 * + col2 ) AS col1 FROM tab0 AS cor0 ---- -28380 -74620 -970 query I rowsort SELECT DISTINCT - 88 * + 94 FROM tab1 cor0 ---- -8272 query I rowsort SELECT ALL + - ( cor0.col2 ) AS col1 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT DISTINCT - ( - col1 ) * - col0 AS col0 FROM tab1 AS cor0 ---- -1040 -640 -78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8938 SELECT + CAST( NULL AS SIGNED ) / + col0 + - col1 AS col0 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8938 SELECT + CAST ( NULL AS INTEGER ) / + col0 + - col1 AS col0 FROM tab2 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col2 * 14 * tab0.col0 AS col0 FROM tab0 ---- 102172 11088 490 query I rowsort SELECT - col0 * col1 * + col2 - - col1 AS col2 FROM tab1 ---- -36470 -4186 -99827 query I rowsort SELECT - + col1 * ( + col0 ) + - col0 AS col1 FROM tab2 AS cor0 ---- -1422 -224 -4680 query I rowsort SELECT DISTINCT + + col0 * col1 + col2 AS col0 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT ALL + col1 * 99 - + 24 FROM tab2 cor0 ---- 1659 3045 5817 query I rowsort SELECT DISTINCT col2 + - ( col2 ) AS col0 FROM tab0 AS cor0 ---- 0 query I rowsort SELECT DISTINCT - col0 * + ( 96 ) + - col2 AS col0 FROM tab1 AS cor0 ---- -342 -6201 -7776 query I rowsort SELECT - - col2 * + 50 + + cor0.col0 * col1 AS col1 FROM tab1 AS cor0 ---- 2778 3490 5840 onlyif mysql # use DIV operator for integer division query I rowsort label-8947 SELECT DISTINCT + + col0 + col0 DIV col2 FROM tab0 AS cor0 ---- 24 70 90 skipif mysql # not compatible query I rowsort label-8947 SELECT DISTINCT + + col0 + col0 / col2 FROM tab0 AS cor0 ---- 24 70 90 query I rowsort SELECT col2 * - col0 + - col2 + - 58 FROM tab0 ---- -7438 -883 -94 onlyif mysql # use DIV operator for integer division query I rowsort label-8949 SELECT - tab1.col0 DIV ( 22 * col2 ) - + col1 FROM tab1 ---- -10 -13 -26 skipif mysql # not compatible query I rowsort label-8949 SELECT - tab1.col0 / ( 22 * col2 ) - + col1 FROM tab1 ---- -10 -13 -26 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8950 SELECT col1 - + CAST( NULL AS SIGNED ) * - col2 / col2 AS col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8950 SELECT col1 - + CAST ( NULL AS INTEGER ) * - col2 / col2 AS col1 FROM tab0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 * col1 + tab2.col2 col2 FROM tab2 ---- -1305 -190 -4576 query I rowsort SELECT DISTINCT - tab0.col2 + + 65 * 53 AS col0 FROM tab0 ---- 3363 3412 3444 query I rowsort SELECT + - col1 * + col0 + - col1 FROM tab2 AS cor0 ---- -1360 -248 -4661 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 52 + + col1 * - col0 col0 FROM tab2 cor0 ---- -1395 -269 -4654 query I rowsort SELECT DISTINCT + 78 * col1 + col2 * + 70 + + cor0.col0 FROM tab2 AS cor0 ---- 4065 4315 6500 query I rowsort SELECT DISTINCT - ( - 30 ) + col0 FROM tab1 ---- 110 33 94 query I rowsort SELECT DISTINCT + col0 + col0 * col2 AS col2 FROM tab0 ---- 70 7387 816 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8958 SELECT ALL + col2 * col2 + + CAST( ( col0 ) AS SIGNED ) FROM tab2 ---- 1523 736 754 skipif mysql # not compatible query I rowsort label-8958 SELECT ALL + col2 * col2 + + CAST ( ( col0 ) AS INTEGER ) FROM tab2 ---- 1523 736 754 query I rowsort SELECT col1 * tab0.col0 + + col1 FROM tab0 ---- 2150 3492 8190 onlyif mysql # use DIV operator for integer division query I rowsort label-8960 SELECT cor0.col2 * col0 + col2 * col0 DIV - col1 FROM tab2 AS cor0 ---- 183 1994 2826 skipif mysql # not compatible query I rowsort label-8960 SELECT cor0.col2 * col0 + col2 * col0 / - col1 FROM tab2 AS cor0 ---- 183 1994 2826 query I rowsort SELECT - 8 * - cor0.col2 FROM tab0 AS cor0 ---- 264 656 8 query I rowsort SELECT DISTINCT col2 * + 46 AS col2 FROM tab2 ---- 1196 1242 1748 query I rowsort SELECT DISTINCT 64 * col2 AS col2 FROM tab2 AS cor0 ---- 1664 1728 2432 query I rowsort SELECT 13 + - 9 FROM tab1 AS cor0 ---- 4 4 4 query I rowsort SELECT ( col2 ) * - col2 - cor0.col1 * + col1 AS col2 FROM tab2 AS cor0 ---- -1690 -1733 -4157 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + 34 col2 FROM tab1 cor0 ---- -34 -34 -34 query I rowsort SELECT ALL + + 8 + col1 FROM tab1 AS cor0 ---- 18 21 34 query I rowsort SELECT ALL col2 + + col2 * col1 * + 11 AS col1 FROM tab2 ---- 16900 7144 9234 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8969 SELECT ALL + CAST( NULL AS SIGNED ) + 97 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-8969 SELECT ALL + CAST ( NULL AS INTEGER ) + 97 AS col1 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * - col0 - col1 * ( + col1 ) col2 FROM tab1 AS cor0 ---- -1209 -740 -754 query I rowsort SELECT ALL + - ( cor0.col2 ) * col0 + - col0 * - col0 FROM tab2 AS cor0 ---- -140 3239 4056 onlyif mysql # use DIV operator for integer division query I rowsort label-8972 SELECT - col1 * - col2 DIV col2 - - col1 DIV + col2 AS col0 FROM tab1 AS cor0 ---- 10 13 26 skipif mysql # not compatible query I rowsort label-8972 SELECT - col1 * - col2 / col2 - - col1 / + col2 AS col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT ALL ( col2 ) + - col2 * + ( ( - col0 ) ) AS col0 FROM tab1 cor0 ---- 216 3705 7776 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-8974 SELECT DISTINCT - CAST( - ( - col1 ) AS SIGNED ) AS col1 FROM tab0 cor0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-8974 SELECT DISTINCT - CAST ( - ( - col1 ) AS INTEGER ) AS col1 FROM tab0 cor0 ---- -86 -91 -97 query I rowsort SELECT ALL - - col0 + ( col1 ) AS col1 FROM tab0 AS cor0 ---- 110 132 180 query I rowsort SELECT - - cor0.col0 + 63 AS col1 FROM tab2 AS cor0 ---- 141 142 70 query I rowsort SELECT - 79 AS col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 1b7b0b34fe3431fb409719624d12791f query I rowsort SELECT ALL + 26 AS col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 2d1c3129ed17fd721d4876b21c035584 query I rowsort SELECT col0 + col2 * - col0 AS col0 FROM tab1 ---- -159 -3584 -7600 onlyif mysql # use DIV operator for integer division query I rowsort label-8980 SELECT DISTINCT - ( + 40 ) DIV col0 AS col0 FROM tab0 ---- -1 0 skipif mysql # not compatible query I rowsort label-8980 SELECT DISTINCT - ( + 40 ) / col0 AS col0 FROM tab0 ---- -1 0 query I rowsort SELECT ALL + cor0.col1 * 59 FROM tab1 AS cor0 ---- 1534 590 767 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( + col2 AS REAL ) FROM tab0 ---- 1 33 82 query I rowsort SELECT + - ( - 31 ) FROM tab0 AS cor0 ---- 31 31 31 query I rowsort SELECT + 72 * 77 AS col2 FROM tab1 cor0 ---- 5544 5544 5544 query I rowsort SELECT col2 * col2 + ( + 3 ) + - col0 AS col1 FROM tab2 AS cor0 ---- 1368 601 725 query I rowsort SELECT ( col1 ) + + cor0.col2 * 56 AS col0 FROM tab2 AS cor0 ---- 1515 1543 2145 query I rowsort SELECT - - 17 * cor0.col1 + - 1 + + 98 FROM tab1 AS cor0 ---- 267 318 539 query I rowsort SELECT DISTINCT - 22 * col2 FROM tab0 AS cor0 ---- -1804 -22 -726 query I rowsort SELECT - + col1 * - col0 + ( + col1 ) * col1 - ( + 47 + - col2 ) FROM tab2 AS cor0 ---- 1158 1623 8062 query I rowsort SELECT + col2 + + cor0.col1 FROM tab0 cor0 ---- 119 173 98 onlyif mysql # use DIV operator for integer division query I rowsort label-8991 SELECT - - col0 * col2 DIV - col1 - - col2 AS col2 FROM tab1 AS cor0 ---- -307 -494 48 skipif mysql # not compatible query I rowsort label-8991 SELECT - - col0 * col2 / - col1 - - col2 AS col2 FROM tab1 AS cor0 ---- -307 -494 48 query I rowsort SELECT DISTINCT + - col1 * - cor0.col2 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT DISTINCT 31 + + col2 FROM tab2 AS cor0 ---- 57 58 69 query I rowsort SELECT + col1 + col2 * + 39 FROM tab2 AS cor0 ---- 1073 1084 1499 query I rowsort SELECT - ( + col1 ) + + ( - ( + col1 ) ) + - col2 FROM tab2 AS cor0 ---- -144 -72 -89 query I rowsort SELECT - - tab2.col2 FROM tab2, tab1, tab1 AS cor0 ---- 27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5 query I rowsort SELECT + col1 * col0 + col1 * col2 * col1 AS col1 FROM tab1 ---- 17264 36582 6340 query I rowsort SELECT - 46 * col0 + + col2 * + col0 FROM tab1 AS cor0 ---- 24 4000 704 onlyif mysql # use DIV operator for integer division query I rowsort label-8999 SELECT DISTINCT + + col2 DIV + col1 + col2 * col2 * ( 9 ) FROM tab1 AS cor0 ---- 26246 29246 82951 skipif mysql # not compatible query I rowsort label-8999 SELECT DISTINCT + + col2 / + col1 + col2 * col2 * ( 9 ) FROM tab1 AS cor0 ---- 26246 29246 82951 query I rowsort SELECT ALL - cor0.col0 + col2 * + col2 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT ALL + + col2 * col2 + col1 * + col0 FROM tab0 AS cor0 ---- 14823 3153 3396 query I rowsort SELECT DISTINCT + + col0 + 41 * col0 FROM tab2 AS cor0 ---- 294 3276 3318 skipif mysql # not compatible query I rowsort SELECT DISTINCT col2 + - CAST ( col1 AS REAL ) AS col2 FROM tab1 cor0 ---- 28 47 83 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9004 SELECT DISTINCT - - col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9004 SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9005 SELECT DISTINCT + - cor0.col0 + + CAST( - col1 + + col0 AS SIGNED ) * + cor0.col2 * col1 AS col0 FROM tab0 AS cor0 ---- -15013 -175980 -6049 skipif mysql # not compatible query I rowsort label-9005 SELECT DISTINCT + - cor0.col0 + + CAST ( - col1 + + col0 AS INTEGER ) * + cor0.col2 * col1 AS col0 FROM tab0 AS cor0 ---- -15013 -175980 -6049 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9006 SELECT + col2 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-9006 SELECT + col2 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - col2 + col1 - 62 * - col0 AS col2 FROM tab0 AS cor0 ---- 1541 2266 5527 query I rowsort SELECT ALL + col1 * ( 63 ) AS col1 FROM tab1 cor0 ---- 1638 630 819 query I rowsort SELECT col1 + ( col2 ) FROM tab0 cor0 ---- 119 173 98 query I rowsort SELECT - ( + 32 ) + col2 * ( col0 ) FROM tab2 AS cor0 ---- 157 1996 2970 query I rowsort SELECT + col2 + col1 * 31 * col2 AS col1 FROM tab1 ---- 17727 38784 43578 query I rowsort SELECT ALL - 15 + 21 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 5d1cb90ed58fa7573895d2f95b211821 query I rowsort SELECT ALL - col0 * - ( - col0 ) FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT ALL + col0 + - ( ( col2 ) ) AS col1 FROM tab0 AS cor0 ---- -9 34 7 query I rowsort SELECT - + cor0.col2 + + ( 26 ) * + col0 FROM tab0 cor0 ---- 2232 591 909 query I rowsort SELECT col2 * + ( col1 ) FROM tab0 cor0 ---- 2838 7462 97 query I rowsort SELECT - cor0.col0 * + 81 FROM tab1 AS cor0 ---- -243 -5184 -6480 onlyif mysql # use DIV operator for integer division query I rowsort label-9018 SELECT DISTINCT - - col0 + - ( col2 ) DIV - col2 col1 FROM tab0 AS cor0 ---- 25 36 90 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9018 SELECT DISTINCT - - col0 + - ( col2 ) / - col2 col1 FROM tab0 AS cor0 ---- 25 36 90 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9019 SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-9019 SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT DISTINCT - col0 - - col0 AS col1 FROM tab2 ---- 0 query I rowsort SELECT col2 + col2 * + col2 AS col0 FROM tab2 AS cor0 ---- 1482 702 756 query I rowsort SELECT + 23 * 62 AS col2 FROM tab2 AS cor0 ---- 1426 1426 1426 query I rowsort SELECT ( - col0 ) + + col2 AS col2 FROM tab0 AS cor0 ---- -34 -7 9 query I rowsort SELECT + - ( 0 ) * - col0 AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT - + col0 + + col0 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL 15 + - col1 * col0 FROM tab2 AS cor0 ---- -1328 -202 -4587 query I rowsort SELECT ALL - cor0.col0 * cor0.col0 AS col1 FROM tab0, tab2 AS cor0 ---- 9 values hashing to f921d4cdc13dc0e8c0388ccf3f81ffc1 query I rowsort SELECT + cor0.col2 * - col1 AS col2 FROM tab2 AS cor0 ---- -1534 -646 -837 query I rowsort SELECT ALL tab2.col1 * col1 * - ( ( + col2 ) * - 35 ) AS col2 FROM tab2 ---- 3167710 384370 908145 query I rowsort SELECT ALL - 70 FROM tab1, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to c2a2994a4e94583683ccda2cc098c58f query I rowsort SELECT + + 61 + - col2 FROM tab2 AS cor0 ---- 23 34 35 query I rowsort SELECT DISTINCT + col2 * col1 + 78 AS col0 FROM tab1 AS cor0 ---- 1326 1482 648 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9033 SELECT ( col0 ) * col0 * ( - col1 ) + - ( - col1 ) * col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9033 SELECT ( col0 ) * col0 * ( - col1 ) + - ( - col1 ) * col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT 55 * - col1 AS col1 FROM tab1 AS cor0 ---- -1430 -550 -715 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col0 + - ( + 38 ) * cor0.col0 col0 FROM tab2 AS cor0 ---- -259 -2886 -2923 query I rowsort SELECT cor0.col2 * - cor0.col1 * ( + col0 ) AS col1 FROM tab1 AS cor0 ---- -36480 -4212 -99840 query I rowsort SELECT DISTINCT col2 + + 54 AS col0 FROM tab2 AS cor0 ---- 80 81 92 query I rowsort SELECT - + cor0.col0 + col2 * + 43 * + col0 FROM tab0 AS cor0 ---- 1470 313725 34032 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9039 SELECT DISTINCT + col2 + CAST( - col2 AS SIGNED ) FROM tab2 cor0 ---- 0 skipif mysql # not compatible query I rowsort label-9039 SELECT DISTINCT + col2 + CAST ( - col2 AS INTEGER ) FROM tab2 cor0 ---- 0 query I rowsort SELECT ALL + - col2 * - 6 AS col1 FROM tab1 AS cor0 ---- 324 342 576 query I rowsort SELECT 14 * + col1 * + col1 FROM tab2 ---- 13454 4046 48734 skipif mysql # not compatible query I rowsort SELECT ALL ( col1 ) + + ( + ( tab2.col1 ) ) * + CAST ( col1 + col1 AS REAL ) * - col1 FROM tab2 ---- -410699 -59551 -9809 query I rowsort SELECT DISTINCT col0 * col2 + - col2 * + col2 + ( 51 ) AS col0 FROM tab0 AS cor0 ---- -246 625 85 query I rowsort SELECT col2 * - 28 AS col1 FROM tab2 cor0 ---- -1064 -728 -756 query I rowsort SELECT + - col1 * + 3 AS col1 FROM tab1 AS cor0 ---- -30 -39 -78 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9046 SELECT - CAST( NULL AS SIGNED ) col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9046 SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT ALL - ( + 79 ) * - col1 + + cor0.col0 + col1 AS col0 FROM tab1 AS cor0 ---- 1120 2083 864 query I rowsort SELECT DISTINCT - col0 + - 51 * col2 AS col1 FROM tab1 AS cor0 ---- -2757 -2971 -4976 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9049 SELECT ALL + 13 * col1 + + CAST( col1 + col2 AS SIGNED ) AS col0 FROM tab0 cor0 ---- 1237 1356 1359 skipif mysql # not compatible query I rowsort label-9049 SELECT ALL + 13 * col1 + + CAST ( col1 + col2 AS INTEGER ) AS col0 FROM tab0 cor0 ---- 1237 1356 1359 query I rowsort SELECT ALL + ( col2 ) + cor0.col0 + - col0 AS col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT - + col2 + - cor0.col1 + - 13 FROM tab2 AS cor0 ---- -68 -71 -98 query I rowsort SELECT ALL - col2 + col0 * col1 AS col2 FROM tab1 ---- 24 583 944 onlyif mysql # use DIV operator for integer division query I rowsort label-9053 SELECT - tab0.col1 * + col0 + + col2 + - col1 DIV - col0 FROM tab0 ---- -2028 -3392 -8016 skipif mysql # not compatible query I rowsort label-9053 SELECT - tab0.col1 * + col0 + + col2 + - col1 / - col0 FROM tab0 ---- -2028 -3392 -8016 query I rowsort SELECT DISTINCT 52 AS col2 FROM tab1, tab2 AS cor0 ---- 52 query I rowsort SELECT 99 + - col1 AS col1 FROM tab0 ---- 13 2 8 query I rowsort SELECT 98 * + col1 * - col1 + + col0 * col2 + col2 FROM tab0 ---- -723983 -804158 -922046 query I rowsort SELECT 55 + + tab1.col1 * - col1 FROM tab1 ---- -114 -45 -621 onlyif mysql # use DIV operator for integer division query I rowsort label-9058 SELECT ALL - tab0.col1 DIV - 24 AS col2 FROM tab0 ---- 3 3 4 skipif mysql # not compatible query I rowsort label-9058 SELECT ALL - tab0.col1 / - 24 AS col2 FROM tab0 ---- 3 3 4 query I rowsort SELECT ALL - - col2 * 58 FROM tab1 cor0 ---- 3132 3306 5568 query I rowsort SELECT + + col2 * + 29 FROM tab1 AS cor0 ---- 1566 1653 2784 query I rowsort SELECT + - col2 * - 70 FROM tab2 AS cor0 ---- 1820 1890 2660 query I rowsort SELECT ALL - + cor0.col0 + 42 FROM tab0 cor0 ---- -47 18 7 query I rowsort SELECT ALL cor0.col1 + col2 * + col0 FROM tab1 cor0 ---- 188 3658 7693 query I rowsort SELECT col1 + - ( - 98 ) AS col1 FROM tab2 AS cor0 ---- 115 129 157 query I rowsort SELECT ALL col2 + - col2 * col1 FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT cor0.col0 + 91 AS col1 FROM tab0 AS cor0 ---- 115 126 180 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + cor0.col2 col2 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab2 cor2 ---- 3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38 onlyif mysql # use DIV operator for integer division query I rowsort label-9069 SELECT - col0 DIV - 93 + col1 - - col2 col2 FROM tab0 AS cor0 ---- 119 173 98 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9069 SELECT - col0 / - 93 + col1 - - col2 col2 FROM tab0 AS cor0 ---- 119 173 98 query I rowsort SELECT + col1 + 3 AS col1 FROM tab2 ---- 20 34 62 query I rowsort SELECT + col2 + col0 + + 1 FROM tab0 ---- 172 37 58 onlyif mysql # use DIV operator for integer division query I rowsort label-9072 SELECT DISTINCT - ( col2 ) + - col0 DIV col0 AS col0 FROM tab1 cor0 ---- -55 -58 -97 skipif mysql # not compatible query I rowsort label-9072 SELECT DISTINCT - ( col2 ) + - col0 / col0 AS col0 FROM tab1 cor0 ---- -55 -58 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9073 SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 skipif mysql # not compatible query I rowsort label-9073 SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0, tab0 cor1 ---- 27 values hashing to 16be8868a1e6f4e8850509f9327afe90 query I rowsort SELECT ALL + + col0 * - cor0.col2 + - col1 AS col0 FROM tab2 AS cor0 ---- -2087 -220 -3019 query I rowsort SELECT 75 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1 ---- 27 values hashing to e61b59795204c348103a58c0a8e4ce16 query I rowsort SELECT ALL + + 93 + col1 AS col1 FROM tab1 AS cor0 ---- 103 106 119 query I rowsort SELECT - cor0.col2 + col0 * + ( - col2 ) FROM tab2 cor0 ---- -2054 -216 -3040 query I rowsort SELECT DISTINCT - col2 + - col2 AS col2 FROM tab1 cor0 ---- -108 -114 -192 query I rowsort SELECT ALL - col0 * tab2.col2 + - col0 AS col0 FROM tab2 ---- -196 -2106 -3081 onlyif mysql # use DIV operator for integer division query I rowsort label-9080 SELECT DISTINCT - 45 DIV col0 FROM tab1 ---- -15 0 skipif mysql # not compatible query I rowsort label-9080 SELECT DISTINCT - 45 / col0 FROM tab1 ---- -15 0 query I rowsort SELECT DISTINCT + col0 * + col0 * - col0 AS col1 FROM tab0 ---- -13824 -42875 -704969 onlyif mysql # use DIV operator for integer division query I rowsort label-9082 SELECT ( col1 ) DIV + 50 FROM tab1 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9082 SELECT ( col1 ) / + 50 FROM tab1 AS cor0 ---- 0 0 0 query I rowsort SELECT - col0 * + col0 + + 87 AS col0 FROM tab2 cor0 ---- -5997 -6154 38 query I rowsort SELECT - 50 + + 48 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to ec11209ab257030053484fc13a1f6d17 query I rowsort SELECT + ( col1 + - 12 * + col0 ) FROM tab1 ---- -10 -758 -947 query I rowsort SELECT + 29 + - col0 AS col1 FROM tab1 ---- -35 -51 26 query I rowsort SELECT - 76 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0 query I rowsort SELECT + ( col1 ) * + col2 FROM tab0 ---- 2838 7462 97 query I rowsort SELECT - cor0.col2 + + cor0.col2 AS col0 FROM tab0, tab1, tab2 AS cor0 ---- 27 values hashing to e2568b01dd411b5a206068697d0ed0d2 query I rowsort SELECT DISTINCT ( + 48 ) AS col1 FROM tab1 ---- 48 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9091 SELECT + CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab1 ---- 4096 6400 9 skipif mysql # not compatible query I rowsort label-9091 SELECT + CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT + col0 * ( col1 ) + - tab1.col1 + col1 FROM tab1 ---- 1040 640 78 query I rowsort SELECT DISTINCT - ( - col2 ) + col0 AS col2 FROM tab2 ---- 104 117 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + 28 col2 FROM tab0 ---- 2492 672 980 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - + ( - col2 ) - cor0.col0 col0 FROM tab0 AS cor0 ---- -34 -7 9 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9096 SELECT - CAST( NULL AS SIGNED ) * col2 col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9096 SELECT - CAST ( NULL AS INTEGER ) * col2 col0 FROM tab2 AS cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9097 SELECT DISTINCT + 82 * col1 DIV col2 AS col2 FROM tab1 AS cor0 ---- 11 14 39 skipif mysql # not compatible query I rowsort label-9097 SELECT DISTINCT + 82 * col1 / col2 AS col2 FROM tab1 AS cor0 ---- 11 14 39 query I rowsort SELECT - 2 * + col0 FROM tab1 ---- -128 -160 -6 skipif mysql # not compatible query I rowsort SELECT + col2 / - col0 + + col2 + - CAST ( - col2 AS REAL ) AS col0 FROM tab0 AS cor0 ---- 164 2 65 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9100 SELECT DISTINCT + - cor0.col1 - + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9100 SELECT DISTINCT + - cor0.col1 - + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 ---- NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9101 SELECT - cor0.col1 * - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9101 SELECT - cor0.col1 * - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - - 77 + + cor0.col1 FROM tab0 AS cor0 ---- 163 168 174 query I rowsort SELECT + 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5 query I rowsort SELECT DISTINCT col1 * - col2 - cor0.col1 * + cor0.col0 FROM tab1 cor0 ---- -1210 -1482 -2288 query I rowsort SELECT - 0 * col2 + col1 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT - + col2 * + col2 AS col0 FROM tab1 cor0 ---- -2916 -3249 -9216 query I rowsort SELECT DISTINCT - cor0.col0 - - cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2 ---- 9 values hashing to ff86239bf7304ce9bfc9287b48a62ffa query I rowsort SELECT ALL ( - 84 ) FROM tab1 ---- -84 -84 -84 query I rowsort SELECT col0 * 92 FROM tab2 cor0 ---- 644 7176 7268 query I rowsort SELECT DISTINCT - col0 + + 39 * col1 FROM tab2 AS cor0 ---- 1202 2223 584 query I rowsort SELECT DISTINCT - ( + cor0.col1 ) * - col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT ALL - 79 * cor0.col2 AS col2 FROM tab2 AS cor0 ---- -2054 -2133 -3002 query I rowsort SELECT DISTINCT + cor0.col2 + - col2 * + cor0.col2 AS col1 FROM tab2 AS cor0 ---- -1406 -650 -702 onlyif mysql # use DIV operator for integer division query I rowsort label-9114 SELECT + + col0 DIV col1 AS col0 FROM tab0 cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9114 SELECT + + col0 / col1 AS col0 FROM tab0 cor0 ---- 0 0 0 query I rowsort SELECT ALL + ( + col0 + col1 * 64 ) AS col1 FROM tab0 ---- 5528 5913 6243 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 68 col0 FROM tab1 cor0 ---- -68 query I rowsort SELECT DISTINCT col1 * - cor0.col0 * col1 FROM tab0 AS cor0 ---- -177504 -329315 -737009 query I rowsort SELECT DISTINCT + 74 * + col0 AS col1 FROM tab1 AS cor0 ---- 222 4736 5920 query I rowsort SELECT DISTINCT col2 * - col1 + col1 FROM tab2 AS cor0 ---- -1475 -629 -806 query I rowsort SELECT ALL - - 40 AS col1 FROM tab0 AS cor0 ---- 40 40 40 query I rowsort SELECT ALL + cor0.col1 * cor0.col1 AS col1 FROM tab0 AS cor0 ---- 7396 8281 9409 query I rowsort SELECT DISTINCT 62 * 22 FROM tab1 ---- 1364 query I rowsort SELECT DISTINCT - 72 AS col0 FROM tab0, tab1 cor0 ---- -72 query I rowsort SELECT DISTINCT 37 AS col2 FROM tab2, tab0 AS cor0 ---- 37 query I rowsort SELECT - col0 + - ( 42 ) * col2 AS col2 FROM tab1 AS cor0 ---- -2271 -2458 -4112 query I rowsort SELECT ALL - col1 + ( - col1 ) * col0 AS col1 FROM tab0 AS cor0 ---- -2150 -3492 -8190 query I rowsort SELECT + cor0.col1 + + 47 AS col0 FROM tab0 AS cor0 ---- 133 138 144 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + 75 col0 FROM tab2 AS cor0 ---- 37 48 49 query I rowsort SELECT DISTINCT - + col1 * - 26 FROM tab1 AS cor0 ---- 260 338 676 query I rowsort SELECT col2 - - 87 FROM tab2 AS cor0 ---- 113 114 125 onlyif mysql # use DIV operator for integer division query I rowsort label-9131 SELECT ALL + col1 * col2 + - cor0.col0 DIV col0 + + col0 col1 FROM tab1 AS cor0 ---- 1327 1406 633 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9131 SELECT ALL + col1 * col2 + - cor0.col0 / col0 + + col0 col1 FROM tab1 AS cor0 ---- 1327 1406 633 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT tab0.col0 * - cor0.col2 col1 FROM tab0, tab2 cor0 ---- 9 values hashing to f44e9f422bf83873be9594c18a0b2fe0 query I rowsort SELECT col1 * - 16 AS col1 FROM tab1 ---- -160 -208 -416 query I rowsort SELECT - cor0.col0 + + 33 FROM tab1 AS cor0 ---- -31 -47 30 query I rowsort SELECT ALL col0 + ( + col1 ) FROM tab2 ---- 137 38 96 query I rowsort SELECT - 78 - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2 ---- 81 values hashing to ea4aff8eccc89c477fb89ea6341537ba query I rowsort SELECT col0 + + ( ( + col2 ) ) * + col1 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT ALL - col2 * 60 - + col0 * - col0 AS col1 FROM tab1 ---- -3231 640 676 onlyif mysql # use DIV operator for integer division query I rowsort label-9139 SELECT ALL col2 DIV ( - col0 ) - col2 FROM tab2 ---- -26 -30 -38 skipif mysql # not compatible query I rowsort label-9139 SELECT ALL col2 / ( - col0 ) - col2 FROM tab2 ---- -26 -30 -38 onlyif mysql # use DIV operator for integer division query I rowsort label-9140 SELECT - ( - 5 ) * + col1 + col2 DIV - ( - col0 ) FROM tab2 AS cor0 ---- 158 295 85 skipif mysql # not compatible query I rowsort label-9140 SELECT - ( - 5 ) * + col1 + col2 / - ( - col0 ) FROM tab2 AS cor0 ---- 158 295 85 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 * - 98 * cor0.col1 + col2 * 22 col2 FROM tab1 cor0 ---- -120192 -136404 -54606 query I rowsort SELECT ( + col0 ) + - cor0.col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT DISTINCT - + col1 + + col1 * cor0.col2 FROM tab0 AS cor0 ---- 0 2752 7371 query I rowsort SELECT ALL + 19 * - col0 AS col2 FROM tab0 AS cor0 ---- -1691 -456 -665 query I rowsort SELECT col1 * tab0.col1 + + col2 AS col2 FROM tab0 ---- 7429 8363 9410 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9146 SELECT - tab1.col0 + - CAST( col2 AS SIGNED ) AS col0 FROM tab1 ---- -121 -176 -57 skipif mysql # not compatible query I rowsort label-9146 SELECT - tab1.col0 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 ---- -121 -176 -57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col1 + + col0 + col2 col0 FROM tab0 ---- 133 143 262 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - tab2.col0 * ( - col1 ) + col0 col0 FROM tab2 ---- 1422 224 4680 query I rowsort SELECT DISTINCT tab2.col0 + 34 * col1 AS col1 FROM tab2 ---- 1061 2084 657 query I rowsort SELECT + tab0.col1 - tab0.col2 AS col2 FROM tab0 ---- 53 9 96 query I rowsort SELECT ALL col2 + 49 * - 6 AS col1 FROM tab0 ---- -212 -261 -293 query I rowsort SELECT col0 + 66 - col1 AS col2 FROM tab1 ---- 120 133 43 onlyif mysql # use DIV operator for integer division query I rowsort label-9153 SELECT DISTINCT col0 + + ( - col0 ) DIV col0 FROM tab2 ---- 6 77 78 skipif mysql # not compatible query I rowsort label-9153 SELECT DISTINCT col0 + + ( - col0 ) / col0 FROM tab2 ---- 6 77 78 query I rowsort SELECT ALL + 66 * col1 + col1 AS col1 FROM tab1 AS cor0 ---- 1742 670 871 query I rowsort SELECT ALL - - 44 - - col1 * col2 FROM tab1 AS cor0 ---- 1292 1448 614 query I rowsort SELECT ALL - - 88 AS col1 FROM tab1 AS cor0 ---- 88 88 88 onlyif mysql # use DIV operator for integer division query I rowsort label-9157 SELECT + + col1 + - col2 * + col0 + ( - 78 ) DIV col1 FROM tab0 AS cor0 ---- -706 -7207 62 skipif mysql # not compatible query I rowsort label-9157 SELECT + + col1 + - col2 * + col0 + ( - 78 ) / col1 FROM tab0 AS cor0 ---- -706 -7207 62 query I rowsort SELECT + - col1 + - col0 AS col2 FROM tab2 cor0 ---- -137 -38 -96 query I rowsort SELECT ALL - col2 + - cor0.col2 * - col1 AS col2 FROM tab1 cor0 ---- 1152 1350 513 query I rowsort SELECT DISTINCT + col0 + - col2 * - col1 AS col0 FROM tab1 AS cor0 ---- 1328 1407 634 query I rowsort SELECT ALL col2 + 99 FROM tab1 cor0 ---- 153 156 195 query I rowsort SELECT - ( 53 ) * - col2 + 26 AS col1 FROM tab1 AS cor0 ---- 2888 3047 5114 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9163 SELECT ALL - + CAST( col1 AS SIGNED ) col0 FROM tab2 AS cor0 ---- -17 -31 -59 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9163 SELECT ALL - + CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0 ---- -17 -31 -59 query I rowsort SELECT DISTINCT col1 + - col0 + + col2 FROM tab0 AS cor0 ---- 63 84 95 query I rowsort SELECT ALL 7 + cor0.col2 AS col0 FROM tab0 AS cor0 ---- 40 8 89 query I rowsort SELECT DISTINCT col2 + 1 * col2 AS col0 FROM tab0 cor0 ---- 164 2 66 query I rowsort SELECT - ( - ( + col1 ) ) * - 82 + 45 AS col1 FROM tab1 AS cor0 ---- -1021 -2087 -775 onlyif mysql # use DIV operator for integer division query I rowsort label-9168 SELECT DISTINCT + + col0 DIV cor0.col2 FROM tab1 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-9168 SELECT DISTINCT + + col0 / cor0.col2 FROM tab1 AS cor0 ---- 0 1 query I rowsort SELECT ALL - - col0 * + col2 + col0 * col1 * col1 AS col2 FROM tab1 AS cor0 ---- 10048 21200 2190 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9170 SELECT DISTINCT + CAST( col1 AS SIGNED ) + col1 * cor0.col1 AS col1 FROM tab1 AS cor0 ---- 110 182 702 skipif mysql # not compatible query I rowsort label-9170 SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col1 * cor0.col1 AS col1 FROM tab1 AS cor0 ---- 110 182 702 onlyif mysql # use DIV operator for integer division query I rowsort label-9171 SELECT + col1 * + col0 + + cor0.col2 DIV cor0.col2 FROM tab1 cor0 ---- 1041 641 79 skipif mysql # not compatible query I rowsort label-9171 SELECT + col1 * + col0 + + cor0.col2 / cor0.col2 FROM tab1 cor0 ---- 1041 641 79 query I rowsort SELECT + 74 * col0 AS col2 FROM tab2 AS cor0 ---- 518 5772 5846 query I rowsort SELECT - - col2 + cor0.col0 * col0 AS col2 FROM tab0 AS cor0 ---- 1226 609 8003 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + 19 * - col1 col1 FROM tab0 AS cor0 ---- -1634 -1729 -1843 query I rowsort SELECT ALL + col0 - - col1 AS col2 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT ALL col0 + - cor0.col2 * col0 AS col2 FROM tab2 AS cor0 ---- -182 -1950 -2923 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9177 SELECT - + col2 - + CAST( - 17 AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0 ---- 1312 16 528 skipif mysql # not compatible query I rowsort label-9177 SELECT - + col2 - + CAST ( - 17 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0 ---- 1312 16 528 query I rowsort SELECT ALL + - col2 + - 73 * col2 AS col2 FROM tab1 AS cor0 ---- -3996 -4218 -7104 query I rowsort SELECT col1 + + col2 * col1 AS col1 FROM tab1 ---- 1261 1430 580 query I rowsort SELECT + col2 + col1 * col2 + col1 FROM tab2 AS cor0 ---- 1619 701 895 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * col0 + + col1 col0 FROM tab2 AS cor0 ---- 1360 248 4661 query I rowsort SELECT ALL + cor0.col0 - col2 FROM tab2 AS cor0 ---- -20 41 52 query I rowsort SELECT DISTINCT - + cor0.col1 + + col1 FROM tab1 cor0 ---- 0 query I rowsort SELECT ALL col1 + - col0 * col1 AS col0 FROM tab2 AS cor0 ---- -1326 -186 -4543 onlyif mysql # use DIV operator for integer division query I rowsort label-9185 SELECT DISTINCT + col1 DIV + col0 AS col2 FROM tab0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-9185 SELECT DISTINCT + col1 / + col0 AS col2 FROM tab0 ---- 1 2 3 query I rowsort SELECT ALL - col0 * + col0 * col2 AS col0 FROM tab1 ---- -233472 -486 -614400 query I rowsort SELECT - col1 * col2 + col2 + cor0.col2 FROM tab1 AS cor0 ---- -1056 -1296 -456 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 * + col2 col1 FROM tab2 cor0 ---- 189 2028 3002 query I rowsort SELECT DISTINCT - cor0.col0 + + col0 * col2 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT ALL - tab2.col0 + col1 + - col0 * + col0 FROM tab2 ---- -25 -6103 -6303 query I rowsort SELECT DISTINCT col1 * col1 + col1 * - tab0.col0 FROM tab0 ---- 182 5332 6014 query I rowsort SELECT ALL cor0.col0 + - col1 AS col1 FROM tab2 AS cor0 ---- -24 19 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col2 * - tab1.col0 + col1 + col2 col2 FROM tab1 ---- -3581 -7571 -82 query I rowsort SELECT col2 * col2 + tab2.col0 * col0 AS col0 FROM tab2 ---- 6760 7685 778 query I rowsort SELECT DISTINCT tab1.col2 + col1 * - col1 AS col1 FROM tab1 ---- -43 -622 -73 query I rowsort SELECT tab1.col0 * + col1 + tab1.col0 FROM tab1 ---- 1120 704 81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 + tab2.col1 col2 FROM tab2 ---- 137 38 96 query I rowsort SELECT + col1 * col0 + - col2 AS col2 FROM tab2 ---- 1305 190 4576 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - col0 + - col1 * + col2 IN ( col2 * - tab0.col0 + + col2 ) ---- 9 values hashing to 38a1673e2e09d694c8cec45c797034a7 query I rowsort SELECT DISTINCT tab1.col1 * col2 * tab1.col2 + + col1 AS col1 FROM tab1 ---- 119821 32500 75842 query I rowsort SELECT tab1.col0 * + col0 AS col2 FROM tab1 ---- 4096 6400 9 query I rowsort SELECT ALL col0 + - tab0.col2 * tab0.col0 FROM tab0 ---- -7209 -768 0 query I rowsort SELECT DISTINCT col1 * + col2 * col0 AS col0 FROM tab2 ---- 119652 51034 5859 query I rowsort SELECT + col1 + - col0 + col0 AS col2 FROM tab0 AS cor0 ---- 86 91 97 query I rowsort SELECT + col0 * col2 * tab1.col0 FROM tab1 ---- 233472 486 614400 query I rowsort SELECT DISTINCT + col0 + + col2 + + tab2.col2 * - col0 FROM tab2 ---- -155 -1924 -2885 query I rowsort SELECT - col1 * + col0 + + col2 FROM tab1 ---- -24 -583 -944 query I rowsort SELECT DISTINCT col0 + col2 * col0 FROM tab2 WHERE NULL BETWEEN ( col2 ) AND col0 ---- query I rowsort SELECT ALL + col0 + col2 - col0 AS col2 FROM tab2 ---- 26 27 38 query I rowsort SELECT - col0 + col2 * + col0 AS col2 FROM tab0 ---- 0 7209 768 query I rowsort SELECT ALL col1 * - col2 + col1 + tab2.col0 FROM tab2 ---- -1397 -550 -799 query I rowsort SELECT ALL col0 * + col2 + col2 * col1 AS col1 FROM tab2 ---- 1026 3562 3648 query I rowsort SELECT - col2 * col1 + + col0 * col0 AS col1 FROM tab1 ---- -1395 3526 5152 query III rowsort SELECT * FROM tab2 WHERE ( - col2 ) NOT IN ( col0 + + col0 ) ---- 9 values hashing to ad05b5942400d5e7a21b323b3da65a45 query I rowsort SELECT DISTINCT tab1.col2 * + col2 * - col2 + + col0 FROM tab1 ---- -157461 -185129 -884656 query I rowsort SELECT tab2.col1 * col2 + col1 AS col1 FROM tab2 WHERE ( NULL ) = + col1 + col2 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col1 + tab0.col0 * + tab0.col1 col1 FROM tab0 ---- 1978 3298 8008 query I rowsort SELECT - col2 + - col2 * col2 * - col0 FROM tab2 ---- 114038 5076 52702 query I rowsort SELECT ALL - col1 * col0 * - col1 + - col2 AS col0 FROM tab0 ---- 177471 329314 736927 query I rowsort SELECT DISTINCT + col2 * col0 + - col1 AS col1 FROM tab1 ---- 136 3638 7667 query I rowsort SELECT ALL - col1 * col0 + col2 AS col1 FROM tab0 ---- -2031 -3394 -8017 query I rowsort SELECT DISTINCT + tab1.col1 - + col2 FROM tab1 WHERE NOT ( col2 ) IN ( - col1 * col2 / - col1 ) ---- query I rowsort SELECT - col2 * - col2 + col1 FROM tab0 ---- 1175 6815 98 query I rowsort SELECT ALL col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) ---- query I rowsort SELECT - col1 * - col2 * col2 + + col0 FROM tab1 ---- 119888 32554 75819 onlyif mysql # use DIV operator for integer division query I rowsort label-9226 SELECT 74 DIV col1 - ( 63 ) FROM tab2 ---- -59 -61 -62 skipif mysql # not compatible query I rowsort label-9226 SELECT 74 / col1 - ( 63 ) FROM tab2 ---- -59 -61 -62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col2 * + col0 + - col2 col1 FROM tab0 AS cor0 ---- -36 -7380 -825 query I rowsort SELECT col1 + ( col0 ) FROM tab2 cor0 ---- 137 38 96 onlyif mysql # use DIV operator for integer division query I rowsort label-9229 SELECT - col2 + col0 DIV col2 FROM tab0 AS cor0 ---- -33 -81 34 skipif mysql # not compatible query I rowsort label-9229 SELECT - col2 + col0 / col2 FROM tab0 AS cor0 ---- -33 -81 34 query I rowsort SELECT ALL - ( + col1 * 58 ) AS col2 FROM tab0 ---- -4988 -5278 -5626 query I rowsort SELECT tab2.col0 + - 23 AS col1 FROM tab2, tab2 AS cor0 ---- 9 values hashing to f015fab8f6aee2908f6c9ab22220a03c onlyif mysql # use DIV operator for integer division query I rowsort label-9232 SELECT + cor0.col0 DIV col2 AS col0 FROM tab0 cor0 ---- 0 1 35 skipif mysql # not compatible query I rowsort label-9232 SELECT + cor0.col0 / col2 AS col0 FROM tab0 cor0 ---- 0 1 35 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col2 * 69 col2 FROM tab2 AS cor0 ---- 1794 1863 2622 query I rowsort SELECT - + col1 * - 41 AS col2 FROM tab1 AS cor0 ---- 1066 410 533 onlyif mysql # use DIV operator for integer division query I rowsort label-9235 SELECT ALL + 71 DIV + col2 AS col1 FROM tab0 ---- 0 2 71 skipif mysql # not compatible query I rowsort label-9235 SELECT ALL + 71 / + col2 AS col1 FROM tab0 ---- 0 2 71 query I rowsort SELECT ALL - 92 AS col2 FROM tab1 ---- -92 -92 -92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + ( + col2 ) col1 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT - + col0 + - col0 * cor0.col2 - 13 FROM tab2 AS cor0 ---- -209 -2119 -3094 onlyif mysql # use DIV operator for integer division query I rowsort label-9239 SELECT col2 * col0 DIV col1 + col0 AS col2 FROM tab1 ---- 428 670 9 skipif mysql # not compatible query I rowsort label-9239 SELECT col2 * col0 / col1 + col0 AS col2 FROM tab1 ---- 428 670 9 query I rowsort SELECT DISTINCT - + 59 AS col1 FROM tab2 AS cor0 ---- -59 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 70 col1 FROM tab0, tab1 AS cor0 ---- 70 onlyif mysql # use DIV operator for integer division query I rowsort label-9242 SELECT 28 DIV ( + col0 ) FROM tab1 ---- 0 0 9 skipif mysql # not compatible query I rowsort label-9242 SELECT 28 / ( + col0 ) FROM tab1 ---- 0 0 9 query I rowsort SELECT ALL 36 AS col0 FROM tab2, tab0 AS cor0 ---- 9 values hashing to eee96a85519f92856a7500dc8b6cf752 query I rowsort SELECT ALL col0 + - col0 - - col2 FROM tab0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor1.col2 * 15 col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 ---- 9 values hashing to 928aaf725c32823660515d7f1332f381 query I rowsort SELECT DISTINCT col0 - - col1 AS col1 FROM tab1 cor0 ---- 29 74 93 query I rowsort SELECT DISTINCT 97 * + col1 FROM tab1 AS cor0 ---- 1261 2522 970 query I rowsort SELECT DISTINCT col0 + col0 - + col0 FROM tab0 AS cor0 ---- 24 35 89 query I rowsort SELECT DISTINCT - + col1 * col1 + - col2 FROM tab1 AS cor0 ---- -157 -265 -730 query I rowsort SELECT DISTINCT - - col1 + col0 * - col1 FROM tab0 AS cor0 ---- -1978 -3298 -8008 query I rowsort SELECT DISTINCT - 99 * col2 + cor0.col2 AS col2 FROM tab0 AS cor0 ---- -3234 -8036 -98 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + - col0 * + cor0.col2 + col0 col0 FROM tab2 AS cor0 ---- -182 -1950 -2923 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 91 col2 FROM tab1, tab1 AS cor0 ---- 9 values hashing to 5748627ef5fd86a21cd559fd278d7277 query I rowsort SELECT DISTINCT ( ( col2 ) + col0 ) FROM tab0 ---- 171 36 57 onlyif mysql # use DIV operator for integer division query I rowsort label-9255 SELECT ALL - 64 * col1 DIV cor0.col2 + col2 AS col2 FROM tab1 AS cor0 ---- 24 46 88 skipif mysql # not compatible query I rowsort label-9255 SELECT ALL - 64 * col1 / cor0.col2 + col2 AS col2 FROM tab1 AS cor0 ---- 24 46 88 query I rowsort SELECT 47 + tab0.col2 FROM tab0 ---- 129 48 80 query I rowsort SELECT ALL 84 + col0 AS col1 FROM tab0 ---- 108 119 173 query I rowsort SELECT DISTINCT col2 + - col0 - col1 AS col0 FROM tab0 ---- -131 -77 -98 query I rowsort SELECT + + cor0.col2 + col0 * - col1 FROM tab2 AS cor0 ---- -1305 -190 -4576 onlyif mysql # use DIV operator for integer division query I rowsort label-9260 SELECT ALL 55 DIV col0 col0 FROM tab0 AS cor0 ---- 0 1 2 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9260 SELECT ALL 55 / col0 col0 FROM tab0 AS cor0 ---- 0 1 2 query I rowsort SELECT DISTINCT - col2 * col0 + + col0 AS col0 FROM tab1 AS cor0 ---- -159 -3584 -7600 query I rowsort SELECT DISTINCT col1 * - col1 * + col2 + col1 AS col1 FROM tab1 AS cor0 ---- -16211 -36478 -5690 query I rowsort SELECT 66 * + col2 * - col1 + + col1 AS col1 FROM tab2 AS cor0 ---- -101185 -42619 -55211 query I rowsort SELECT ALL - col0 + 27 - - col2 FROM tab1 cor0 ---- 20 43 78 query I rowsort SELECT - col2 + col2 * + ( - col2 ) AS col1 FROM tab2 ---- -1482 -702 -756 query I rowsort SELECT + ( - 4 ) FROM tab1 ---- -4 -4 -4 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9267 SELECT + + CAST( 34 AS SIGNED ) FROM tab1 AS cor0 ---- 34 34 34 skipif mysql # not compatible query I rowsort label-9267 SELECT + + CAST ( 34 AS INTEGER ) FROM tab1 AS cor0 ---- 34 34 34 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 52 + 80 col1 FROM tab0 AS cor0 ---- 132 query I rowsort SELECT ALL + - col0 * - col0 - cor0.col2 AS col2 FROM tab1 cor0 ---- -45 4039 6304 query I rowsort SELECT DISTINCT - + col2 + col0 * + col2 FROM tab2 cor0 ---- 162 2002 2964 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 + - cor0.col0 - col2 * - col0 col2 FROM tab0 AS cor0 ---- -35 7120 744 query I rowsort SELECT cor0.col2 * col0 + col1 FROM tab1 AS cor0 ---- 188 3658 7693 query I rowsort SELECT - tab2.col1 * col2 * + col0 AS col0 FROM tab2 ---- -119652 -51034 -5859 query I rowsort SELECT col2 + - 99 AS col1 FROM tab1 AS cor0 ---- -3 -42 -45 onlyif mysql # use DIV operator for integer division query I rowsort label-9275 SELECT ALL + col1 DIV 11 + + ( + col2 ) * col1 * + 46 FROM tab2 ---- 29717 38504 70569 skipif mysql # not compatible query I rowsort label-9275 SELECT ALL + col1 / 11 + + ( + col2 ) * col1 * + 46 FROM tab2 ---- 29717 38504 70569 query I rowsort SELECT col0 * - ( - tab1.col1 ) FROM tab1 ---- 1040 640 78 query I rowsort SELECT + col1 + 92 FROM tab2 ---- 109 123 151 onlyif mysql # use DIV operator for integer division query I rowsort label-9278 SELECT DISTINCT col0 * + ( col2 ) * col2 + col1 DIV + col1 FROM tab1 ---- 207937 737281 8749 skipif mysql # not compatible query I rowsort label-9278 SELECT DISTINCT col0 * + ( col2 ) * col2 + col1 / + col1 FROM tab1 ---- 207937 737281 8749 query I rowsort SELECT DISTINCT + 2 - tab0.col2 * ( + 8 ) AS col0 FROM tab0, tab2 AS cor0 ---- -262 -6 -654 query I rowsort SELECT DISTINCT col0 + - 7 * col1 FROM tab1 AS cor0 ---- -11 -179 -6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9281 SELECT ALL + CAST( col0 AS SIGNED ) + + cor0.col1 FROM tab2 AS cor0 ---- 137 38 96 skipif mysql # not compatible query I rowsort label-9281 SELECT ALL + CAST ( col0 AS INTEGER ) + + cor0.col1 FROM tab2 AS cor0 ---- 137 38 96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 58 * - col0 + - col1 + - col0 col2 FROM tab1 AS cor0 ---- -203 -3786 -4733 onlyif mysql # use DIV operator for integer division query I rowsort label-9283 SELECT - + ( + ( col0 ) ) DIV 6 FROM tab0 AS cor0 ---- -14 -4 -5 skipif mysql # not compatible query I rowsort label-9283 SELECT - + ( + ( col0 ) ) / 6 FROM tab0 AS cor0 ---- -14 -4 -5 query I rowsort SELECT ALL 40 * + 50 FROM tab2 AS cor0 ---- 2000 2000 2000 query I rowsort SELECT ( - 6 ) + - col1 AS col2 FROM tab0 AS cor0 ---- -103 -92 -97 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + - cor0.col2 + - col1 * col1 col2 FROM tab0 AS cor0 ---- -7515 -8454 -9507 query I rowsort SELECT DISTINCT - - 21 - - cor0.col0 FROM tab1 AS cor0 ---- 101 24 85 query I rowsort SELECT DISTINCT + cor0.col2 * + col1 + + col0 * + cor0.col0 AS col0 FROM tab1 AS cor0 ---- 1413 4666 7648 onlyif mysql # use DIV operator for integer division query I rowsort label-9289 SELECT ALL - col1 + - col2 DIV ( col1 * col2 ) FROM tab0 ---- -86 -91 -97 skipif mysql # not compatible query I rowsort label-9289 SELECT ALL - col1 + - col2 / ( col1 * col2 ) FROM tab0 ---- -86 -91 -97 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9290 SELECT - + col0 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 ---- 2 62 62 skipif mysql # not compatible query I rowsort label-9290 SELECT - + col0 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 ---- 2 62 62 query I rowsort SELECT ALL - cor0.col2 * + cor0.col2 * 78 AS col0 FROM tab2 AS cor0 ---- -112632 -52728 -56862 query I rowsort SELECT - col1 * ( 23 ) * col1 + - ( + 54 ) + col2 AS col0 FROM tab0 AS cor0 ---- -170129 -190435 -216460 query I rowsort SELECT - + cor0.col1 + - col1 - ( - col0 ) * col1 * 97 AS col0 FROM tab1 AS cor0 ---- 100854 62060 7514 onlyif mysql # use DIV operator for integer division query I rowsort label-9294 SELECT - - 28 DIV cor0.col2 + + col0 FROM tab1 AS cor0 ---- 3 64 80 skipif mysql # not compatible query I rowsort label-9294 SELECT - - 28 / cor0.col2 + + col0 FROM tab1 AS cor0 ---- 3 64 80 query I rowsort SELECT DISTINCT 65 * col2 FROM tab2 AS cor0 ---- 1690 1755 2470 query I rowsort SELECT ALL 69 * col2 FROM tab0 cor0 ---- 2277 5658 69 query I rowsort SELECT DISTINCT - col0 * + col0 * - 24 AS col0 FROM tab1 ---- 153600 216 98304 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 - + 85 * col2 col0 FROM tab0 AS cor0 ---- -2781 -50 -6881 query I rowsort SELECT - - cor0.col2 + - ( cor0.col2 ) * - col0 AS col1 FROM tab1 AS cor0 ---- 216 3705 7776 onlyif mysql # use DIV operator for integer division query I rowsort label-9300 SELECT + col1 DIV ( + col0 ) FROM tab0 AS cor0 ---- 1 2 3 skipif mysql # not compatible query I rowsort label-9300 SELECT + col1 / ( + col0 ) FROM tab0 AS cor0 ---- 1 2 3 query I rowsort SELECT ALL 19 FROM tab2, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to 86c53e8567a17c8d91fc5aff119e0498 query I rowsort SELECT + 19 FROM tab0, tab2, tab1 AS cor0 ---- 27 values hashing to 86c53e8567a17c8d91fc5aff119e0498 query I rowsort SELECT - col0 * + cor0.col2 + col0 FROM tab0 AS cor0 ---- -7209 -768 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * - col2 + cor0.col0 col0 FROM tab1 AS cor0 ---- 165 3712 7760 query I rowsort SELECT 26 * tab1.col2 FROM tab1 ---- 1404 1482 2496 query I rowsort SELECT ALL + + 25 FROM tab1 cor0 ---- 25 25 25 query I rowsort SELECT DISTINCT + col1 + col2 * - cor0.col0 AS col0 FROM tab2 AS cor0 ---- -158 -1969 -2985 query I rowsort SELECT cor0.col2 + 5 FROM tab1, tab1 AS cor0 ---- 9 values hashing to f19a4153eeb2f1a7fd60bf4d49f10d12 query I rowsort SELECT + col1 * - ( col0 ) + - col1 * + col0 * + col0 FROM tab1 ---- -312 -41600 -84240 onlyif mysql # use DIV operator for integer division query I rowsort label-9310 SELECT DISTINCT + 79 DIV cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 0 1 26 skipif mysql # not compatible query I rowsort label-9310 SELECT DISTINCT + 79 / cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 0 1 26 onlyif mysql # use DIV operator for integer division query I rowsort label-9311 SELECT ALL + tab0.col1 DIV 14 AS col0 FROM tab0, tab2, tab2 AS cor0, tab1 ---- 81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8 skipif mysql # not compatible query I rowsort label-9311 SELECT ALL + tab0.col1 / 14 AS col0 FROM tab0, tab2, tab2 AS cor0, tab1 ---- 81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8 onlyif mysql # use DIV operator for integer division query I rowsort label-9312 SELECT - 65 DIV col1 AS col2 FROM tab1 ---- -2 -5 -6 skipif mysql # not compatible query I rowsort label-9312 SELECT - 65 / col1 AS col2 FROM tab1 ---- -2 -5 -6 onlyif mysql # use DIV operator for integer division query I rowsort label-9313 SELECT ALL col0 + + tab2.col0 DIV - col1 col0 FROM tab2 ---- 7 75 77 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9313 SELECT ALL col0 + + tab2.col0 / - col1 col0 FROM tab2 ---- 7 75 77 onlyif mysql # use DIV operator for integer division query I rowsort label-9314 SELECT ALL 29 DIV col0 - 94 * + col2 * - col2 FROM tab1 AS cor0 ---- 274113 305406 866304 skipif mysql # not compatible query I rowsort label-9314 SELECT ALL 29 / col0 - 94 * + col2 * - col2 FROM tab1 AS cor0 ---- 274113 305406 866304 query I rowsort SELECT ALL 69 * cor0.col2 * ( col2 ) FROM tab2 AS cor0 ---- 46644 50301 99636 query I rowsort SELECT + col2 - - col1 * 44 AS col0 FROM tab2 AS cor0 ---- 1391 2622 786 query I rowsort SELECT DISTINCT + col2 * 39 FROM tab1 ---- 2106 2223 3744 query I rowsort SELECT DISTINCT - col1 * - col2 * + col1 FROM tab0 ---- 244068 679042 9409 query I rowsort SELECT ALL ( + cor0.col0 ) FROM tab1, tab0 AS cor0 ---- 9 values hashing to 8b49799942a9e353a3d279cf64ef3f63 query I rowsort SELECT ALL 9 FROM tab2, tab0 cor0 ---- 9 values hashing to 03b93b53107e36cf7d524e48c509b17b query I rowsort SELECT - col1 - tab2.col2 FROM tab2 ---- -55 -58 -85 query I rowsort SELECT + col2 * - ( col0 ) * + col0 FROM tab1 AS cor0 ---- -233472 -486 -614400 query I rowsort SELECT - + col1 * - col1 AS col0 FROM tab1 AS cor0 ---- 100 169 676 query I rowsort SELECT col0 + - 89 FROM tab2 ---- -10 -11 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * - cor0.col2 + - col2 col0 FROM tab0 AS cor0 ---- 2805 7380 96 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9326 SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9326 SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - + col1 + - col1 * col1 AS col1 FROM tab1 AS cor0 ---- -110 -182 -702 query I rowsort SELECT DISTINCT + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0 ---- -54 -57 -96 query I rowsort SELECT ( - col2 ) + + col1 * col0 * + cor0.col0 FROM tab1 AS cor0 ---- 180 40903 83104 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 + 46 * col0 col0 FROM tab1 AS cor0 ---- 112 2934 3667 onlyif mysql # use DIV operator for integer division query I rowsort label-9331 SELECT ALL - - col0 + - col0 DIV - col1 AS col2 FROM tab1 AS cor0 ---- 3 70 86 skipif mysql # not compatible query I rowsort label-9331 SELECT ALL - - col0 + - col0 / - col1 AS col2 FROM tab1 AS cor0 ---- 3 70 86 onlyif mysql # use DIV operator for integer division query I rowsort label-9332 SELECT 62 DIV - tab0.col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c skipif mysql # not compatible query I rowsort label-9332 SELECT 62 / - tab0.col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to 8b75136b2b51c77345c03804ec1cda5c query IIIIIIIIIIIIIII rowsort SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab1, tab0 AS cor2 ---- 3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc query I rowsort SELECT ALL + + 51 * + col1 FROM tab0 cor0 ---- 4386 4641 4947 query I rowsort SELECT DISTINCT + ( 81 ) FROM tab0 AS cor0 ---- 81 onlyif mysql # use DIV operator for integer division query I rowsort label-9336 SELECT ALL - col0 + col1 DIV col2 FROM tab0 AS cor0 ---- -22 -88 62 skipif mysql # not compatible query I rowsort label-9336 SELECT ALL - col0 + col1 / col2 FROM tab0 AS cor0 ---- -22 -88 62 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 34 col0 FROM tab0 cor0 ---- -34 -34 -34 query I rowsort SELECT ALL - - 73 AS col0 FROM tab2 AS cor0 ---- 73 73 73 query I rowsort SELECT - 58 * col0 FROM tab1 AS cor0 ---- -174 -3712 -4640 query I rowsort SELECT DISTINCT + + cor0.col2 + - col0 AS col2 FROM tab0 cor0 ---- -34 -7 9 query I rowsort SELECT ALL - - 51 * + cor0.col1 FROM tab0 AS cor0 ---- 4386 4641 4947 query I rowsort SELECT DISTINCT col0 - + col0 * 12 * - col0 FROM tab0 AS cor0 ---- 14735 6936 95141 query I rowsort SELECT ALL - 74 + + col2 AS col0 FROM tab0 AS cor0 ---- -41 -73 8 query I rowsort SELECT DISTINCT + cor0.col0 * col2 + col1 * col2 AS col2 FROM tab1 AS cor0 ---- 1566 4218 8928 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9345 SELECT 27 + cor0.col0 * - CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0 ---- -1316 -190 -4575 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9345 SELECT 27 + cor0.col0 * - CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0 ---- -1316 -190 -4575 query I rowsort SELECT DISTINCT + 77 + col1 * - col1 * col1 FROM tab0 cor0 ---- -635979 -753494 -912596 query I rowsort SELECT DISTINCT - 13 * - col0 + + col1 AS col1 FROM tab0 AS cor0 ---- 1248 398 552 query I rowsort SELECT ALL - - col1 + col0 * col2 + - col2 * + 17 * + ( col0 ) AS col2 FROM tab0 AS cor0 ---- -116677 -12586 -463 query I rowsort SELECT DISTINCT col2 + - ( 99 + cor0.col2 ) * - 75 AS col2 FROM tab2 AS cor0 ---- 10313 9401 9477 query I rowsort SELECT ALL + col1 * + 6 AS col1 FROM tab2 AS cor0 ---- 102 186 354 query I rowsort SELECT - col1 * - col2 + col1 * col0 FROM tab2 cor0 ---- 1054 1989 6136 query I rowsort SELECT + col2 * + ( col1 + - col1 ) FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT + col2 + col0 * - col1 + - col1 FROM tab2 AS cor0 ---- -1322 -221 -4635 query I rowsort SELECT DISTINCT - col1 * 68 AS col0 FROM tab0 cor0 ---- -5848 -6188 -6596 onlyif mysql # use DIV operator for integer division query I rowsort label-9355 SELECT ALL - col0 + - cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0 ---- -25 -36 -90 skipif mysql # not compatible query I rowsort label-9355 SELECT ALL - col0 + - cor0.col0 / col0 AS col0 FROM tab0 AS cor0 ---- -25 -36 -90 query I rowsort SELECT DISTINCT - 42 AS col1 FROM tab2 ---- -42 query I rowsort SELECT + col1 * 92 + col0 AS col1 FROM tab2 AS cor0 ---- 1643 2859 5506 query I rowsort SELECT DISTINCT - col0 * 56 + - col1 + col1 FROM tab0 AS cor0 ---- -1344 -1960 -4984 onlyif mysql # use DIV operator for integer division query I rowsort label-9359 SELECT DISTINCT + col2 + - 47 DIV cor0.col0 col1 FROM tab1 AS cor0 ---- 39 57 96 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9359 SELECT DISTINCT + col2 + - 47 / cor0.col0 col1 FROM tab1 AS cor0 ---- 39 57 96 query I rowsort SELECT ALL - col2 - - col0 * col0 FROM tab1 AS cor0 ---- -45 4039 6304 query I rowsort SELECT + col1 * col0 + col1 AS col0 FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT DISTINCT + col1 * ( col0 ) + cor0.col2 AS col2 FROM tab2 cor0 ---- 1381 244 4628 query I rowsort SELECT DISTINCT - ( - 90 ) + col2 AS col2 FROM tab2 AS cor0 ---- 116 117 128 query I rowsort SELECT + 1 + - 39 * + col0 * cor0.col1 FROM tab0 cor0 ---- -132404 -315860 -80495 query I rowsort SELECT ALL + col0 * 71 FROM tab0 cor0 ---- 1704 2485 6319 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9366 SELECT + col1 * - CAST( NULL AS SIGNED ) * - 19 + + col2 * col2 + col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9366 SELECT + col1 * - CAST ( NULL AS INTEGER ) * - 19 + + col2 * col2 + col1 AS col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - ( col0 ) + - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -110 -132 -180 query I rowsort SELECT ALL - col2 + col1 * - col0 FROM tab1 cor0 ---- -1136 -132 -697 query I rowsort SELECT - col1 - + col2 * + 69 FROM tab2 AS cor0 ---- -1853 -1894 -2639 query I rowsort SELECT + col0 * + col1 + col1 * - col2 FROM tab1 AS cor0 ---- -1326 -208 70 query I rowsort SELECT + - 94 + col0 FROM tab0 AS cor0 ---- -5 -59 -70 query I rowsort SELECT ALL - - col1 * + col1 + col2 * 84 FROM tab2 AS cor0 ---- 3229 3481 5665 query I rowsort SELECT - + cor0.col1 * cor0.col0 FROM tab2 AS cor0 ---- -1343 -217 -4602 query I rowsort SELECT ALL + + col0 + col0 * col0 FROM tab2 AS cor0 ---- 56 6162 6320 query I rowsort SELECT ALL - col0 + 45 * - col2 AS col0 FROM tab2 ---- -1222 -1248 -1789 query I rowsort SELECT + col0 + - col1 + - col0 AS col0 FROM tab1 ---- -10 -13 -26 onlyif mysql # use DIV operator for integer division query I rowsort label-9377 SELECT col1 DIV col1 + ( + col0 + col1 ) DIV col1 FROM tab1 AS cor0 ---- 2 8 8 skipif mysql # not compatible query I rowsort label-9377 SELECT col1 / col1 + ( + col0 + col1 ) / col1 FROM tab1 AS cor0 ---- 2 8 8 query I rowsort SELECT 91 * 46 AS col1 FROM tab1 AS cor0 ---- 4186 4186 4186 onlyif mysql # use DIV operator for integer division query I rowsort label-9379 SELECT - col0 DIV + 43 col1 FROM tab1 ---- -1 -1 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9379 SELECT - col0 / + 43 col1 FROM tab1 ---- -1 -1 0 query I rowsort SELECT - col0 + + ( - col2 * 10 + col2 ) FROM tab1 ---- -489 -577 -944 onlyif mysql # use DIV operator for integer division query I rowsort label-9381 SELECT ALL + col0 DIV + 61 + col0 FROM tab2 ---- 7 79 80 skipif mysql # not compatible query I rowsort label-9381 SELECT ALL + col0 / + 61 + col0 FROM tab2 ---- 7 79 80 onlyif mysql # use DIV operator for integer division query I rowsort label-9382 SELECT 83 DIV 72 FROM tab1 ---- 1 1 1 skipif mysql # not compatible query I rowsort label-9382 SELECT 83 / 72 FROM tab1 ---- 1 1 1 query I rowsort SELECT ALL - col1 + + col0 * col1 AS col1 FROM tab2 ---- 1326 186 4543 query I rowsort SELECT ALL - ( cor0.col2 ) + + col1 - - 55 AS col2 FROM tab1 AS cor0 ---- -28 27 8 query I rowsort SELECT ALL - + col1 * - col0 + col2 AS col2 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT ALL - col1 * cor0.col0 * col2 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT + ( cor0.col0 ) * col1 AS col0 FROM tab2 AS cor0 ---- 1343 217 4602 query I rowsort SELECT DISTINCT - + cor0.col0 + col2 * + col0 AS col1 FROM tab1 AS cor0 ---- 159 3584 7600 query I rowsort SELECT ALL + - 85 FROM tab2 AS cor0 ---- -85 -85 -85 query I rowsort SELECT ALL + ( 20 ) FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 cor2 ---- 81 values hashing to 8550664862df5be7a3d3f6037537d2d8 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 39 - 13 col1 FROM tab2 AS cor0 ---- 26 26 26 query I rowsort SELECT ( 69 ) AS col2 FROM tab1 ---- 69 69 69 query I rowsort SELECT + 80 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1 ---- 81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c onlyif mysql # use DIV operator for integer division query I rowsort label-9394 SELECT ALL - 65 DIV col1 + + col2 FROM tab0 AS cor0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-9394 SELECT ALL - 65 / col1 + + col2 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT cor0.col0 + cor0.col0 col2 FROM tab0 AS cor0 ---- 178 48 70 query I rowsort SELECT ( col0 ) * + col0 AS col1 FROM tab0 AS cor0 ---- 1225 576 7921 onlyif mysql # use DIV operator for integer division query I rowsort label-9397 SELECT ALL ( + tab0.col1 ) DIV - 82 - - 52 FROM tab0 ---- 51 51 51 skipif mysql # not compatible query I rowsort label-9397 SELECT ALL ( + tab0.col1 ) / - 82 - - 52 FROM tab0 ---- 51 51 51 onlyif mysql # use DIV operator for integer division query I rowsort label-9398 SELECT + + col0 - cor0.col0 DIV col0 AS col1 FROM tab0 AS cor0 ---- 23 34 88 skipif mysql # not compatible query I rowsort label-9398 SELECT + + col0 - cor0.col0 / col0 AS col1 FROM tab0 AS cor0 ---- 23 34 88 onlyif mysql # use DIV operator for integer division query I rowsort label-9399 SELECT DISTINCT + cor0.col1 DIV - 14 AS col2 FROM tab0, tab0 AS cor0 ---- -6 skipif mysql # not compatible query I rowsort label-9399 SELECT DISTINCT + cor0.col1 / - 14 AS col2 FROM tab0, tab0 AS cor0 ---- -6 query I rowsort SELECT ALL - + col2 * 53 * - col1 FROM tab1 AS cor0 ---- 30210 66144 74412 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 31 col2 FROM tab1, tab0 cor0 ---- 9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa query I rowsort SELECT + cor0.col2 * - col0 + + col1 + col1 AS col2 FROM tab0 AS cor0 ---- -620 -7116 159 query I rowsort SELECT - col2 * 24 * + 73 FROM tab2 AS cor0 ---- -45552 -47304 -66576 query I rowsort SELECT col2 + - ( col0 ) * - col1 AS col1 FROM tab1 cor0 ---- 1136 132 697 query I rowsort SELECT + ( - 5 ) FROM tab2 AS cor0 ---- -5 -5 -5 query I rowsort SELECT ( - 23 ) FROM tab2 AS cor0 ---- -23 -23 -23 query I rowsort SELECT col0 + 15 FROM tab1 ---- 18 79 95 query I rowsort SELECT - col0 + - 78 AS col2 FROM tab1 ---- -142 -158 -81 query I rowsort SELECT - ( + cor0.col0 ) * col0 AS col1 FROM tab2 cor0 ---- -49 -6084 -6241 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 36 + - col2 * col0 col0 FROM tab1 cor0 ---- -198 -3684 -7716 query I rowsort SELECT DISTINCT col1 + col2 * + col0 * col2 AS col0 FROM tab2 AS cor0 ---- 114093 5134 52787 onlyif mysql # use DIV operator for integer division query I rowsort label-9412 SELECT ALL + - col0 * CAST( - col0 AS SIGNED ) + cor0.col1 DIV + col1 AS col0 FROM tab1 AS cor0 ---- 10 4097 6401 skipif mysql # not compatible query I rowsort label-9412 SELECT ALL + - col0 * CAST ( - col0 AS INTEGER ) + cor0.col1 / + col1 AS col0 FROM tab1 AS cor0 ---- 10 4097 6401 query IIIIIIIIIIIIIII rowsort SELECT * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab2 cor2 ---- 3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7 query I rowsort SELECT DISTINCT col1 * 96 + col1 AS col0 FROM tab0 cor0 ---- 8342 8827 9409 query I rowsort SELECT + col2 + - col1 * ( col2 ) FROM tab1 AS cor0 ---- -1152 -1350 -513 query I rowsort SELECT 26 * + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to fa4ce89af12241fe10e570241b3fc031 query I rowsort SELECT ALL + + 6 * + col0 FROM tab2 AS cor0 ---- 42 468 474 query I rowsort SELECT ALL - ( 87 ) FROM tab1, tab1 AS cor0 ---- 9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23 query I rowsort SELECT ALL col2 * 95 FROM tab0 ---- 3135 7790 95 query I rowsort SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab0, tab1 cor0, tab2 ---- 3 64 80 onlyif mysql # use DIV operator for integer division query I rowsort label-9421 SELECT ALL + ( + col2 ) DIV - 79 FROM tab1 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-9421 SELECT ALL + ( + col2 ) / - 79 FROM tab1 cor0 ---- -1 0 0 query I rowsort SELECT DISTINCT col2 - - cor0.col2 FROM tab1 AS cor0 ---- 108 114 192 query I rowsort SELECT DISTINCT col2 + 26 + + col2 * col2 FROM tab1 ---- 2996 3332 9338 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9424 SELECT CAST( NULL AS SIGNED ) + + col0 * + col1 AS col1 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9424 SELECT CAST ( NULL AS INTEGER ) + + col0 * + col1 AS col1 FROM tab1 ---- NULL NULL NULL query I rowsort SELECT + tab0.col0 * ( + col2 ) AS col1 FROM tab0 ---- 35 7298 792 query I rowsort SELECT + + 36 + 14 FROM tab0 AS cor0 ---- 50 50 50 query I rowsort SELECT 71 AS col0 FROM tab1, tab1 AS cor0 ---- 9 values hashing to c1aace5d5fe27721cc925552513c85c0 query I rowsort SELECT ALL + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 ---- 9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef query I rowsort SELECT ( - 52 ) * cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 3842ea716f23ab292cd03a9210c338fd query I rowsort SELECT ALL 81 * - cor0.col2 + + cor0.col1 FROM tab0 AS cor0 ---- -2587 -6551 16 query I rowsort SELECT ALL cor0.col0 + + col1 * col1 * 87 FROM tab2 AS cor0 ---- 25222 302925 83614 query I rowsort SELECT 88 * col0 + col1 FROM tab0 AS cor0 ---- 2198 3177 7923 query I rowsort SELECT DISTINCT + col0 + col0 * - ( + 31 ) + - col2 * + ( - tab0.col2 ) * + col1 AS col1 FROM tab0 ---- -953 609214 92934 query I rowsort SELECT tab0.col1 + col0 * + ( + col2 + col2 ) AS col1 FROM tab0 ---- 14687 167 1670 query I rowsort SELECT ( - col0 ) + + 51 AS col1 FROM tab1 ---- -13 -29 48 query I rowsort SELECT tab0.col0 - + tab0.col2 FROM tab0 ---- -9 34 7 query I rowsort SELECT DISTINCT ( cor0.col2 ) * col1 AS col0 FROM tab0 AS cor0 ---- 2838 7462 97 query I rowsort SELECT - 23 + col0 * col1 AS col0 FROM tab2 AS cor0 ---- 1320 194 4579 query I rowsort SELECT - 87 * - cor0.col1 AS col2 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 94d3f50bda14108158af1067c622f947 query I rowsort SELECT DISTINCT - col2 + col1 * col2 FROM tab1 AS cor0 ---- 1152 1350 513 query I rowsort SELECT - - col1 * col0 * - col2 FROM tab0 AS cor0 ---- -3395 -664118 -68112 query I rowsort SELECT DISTINCT col0 * col1 + - col1 FROM tab0 cor0 ---- 1978 3298 8008 query I rowsort SELECT - col0 + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0 ---- 42 6006 6162 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9444 SELECT + col0 * CAST( - col0 * - col0 AS SIGNED ) FROM tab1 AS cor0 ---- 262144 27 512000 skipif mysql # not compatible query I rowsort label-9444 SELECT + col0 * CAST ( - col0 * - col0 AS INTEGER ) FROM tab1 AS cor0 ---- 262144 27 512000 query I rowsort SELECT DISTINCT + - col2 + 81 * + col1 - + col0 AS col2 FROM tab1 AS cor0 ---- 2049 689 877 query I rowsort SELECT ALL + + col0 * 19 AS col1 FROM tab2 AS cor0 ---- 133 1482 1501 query I rowsort SELECT ALL col1 + + ( col1 ) FROM tab1 cor0 ---- 20 26 52 query I rowsort SELECT - col2 + + ( - col2 + col1 ) * - col1 AS col0 FROM tab1 cor0 ---- 413 674 983 query I rowsort SELECT ALL - - col1 * 16 AS col0 FROM tab0 AS cor0 ---- 1376 1456 1552 query I rowsort SELECT - - col1 * col2 * - col0 AS col2 FROM tab2 AS cor0 ---- -119652 -51034 -5859 query I rowsort SELECT - cor0.col2 + + col0 * - col2 FROM tab1 cor0 ---- -216 -3705 -7776 query I rowsort SELECT + col0 + - 17 * col2 AS col0 FROM tab2 AS cor0 ---- -364 -452 -567 query I rowsort SELECT DISTINCT - - cor0.col0 * - col0 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT cor0.col2 * - 4 + col0 * col2 - + col2 AS col2 FROM tab1 cor0 ---- -108 3363 7200 query I rowsort SELECT - 76 + - col0 AS col2 FROM tab1 AS cor0 ---- -140 -156 -79 query I rowsort SELECT + ( col2 ) + - col0 + ( + 27 * col2 ) FROM tab0 ---- -7 2207 900 onlyif mysql # use DIV operator for integer division query I rowsort label-9457 SELECT ALL 30 + + col0 + col0 DIV 35 AS col2 FROM tab2 ---- 110 111 37 skipif mysql # not compatible query I rowsort label-9457 SELECT ALL 30 + + col0 + col0 / 35 AS col2 FROM tab2 ---- 110 111 37 onlyif mysql # use DIV operator for integer division query I rowsort label-9458 SELECT DISTINCT + + col1 DIV 31 FROM tab2 AS cor0 ---- 0 1 skipif mysql # not compatible query I rowsort label-9458 SELECT DISTINCT + + col1 / 31 FROM tab2 AS cor0 ---- 0 1 query I rowsort SELECT ALL + - cor0.col1 * cor0.col2 + col1 + col2 FROM tab2 AS cor0 ---- -1449 -591 -779 query I rowsort SELECT - 35 * + 94 - - cor0.col2 FROM tab2 AS cor0 ---- -3252 -3263 -3264 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9461 SELECT ALL CAST( 51 AS SIGNED ) FROM tab2 AS cor0 ---- 51 51 51 skipif mysql # not compatible query I rowsort label-9461 SELECT ALL CAST ( 51 AS INTEGER ) FROM tab2 AS cor0 ---- 51 51 51 skipif mysql # not compatible query I rowsort SELECT DISTINCT + CAST ( col0 AS REAL ) * col0 FROM tab0 cor0 ---- 1225 576 7921 query I rowsort SELECT DISTINCT 18 * col1 FROM tab2 AS cor0 ---- 1062 306 558 query I rowsort SELECT ALL + col2 + + col1 + - col0 * - cor0.col1 FROM tab0 cor0 ---- 2183 3493 8272 onlyif mysql # use DIV operator for integer division query I rowsort label-9465 SELECT ALL + 77 DIV - col2 AS col1 FROM tab1 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort label-9465 SELECT ALL + 77 / - col2 AS col1 FROM tab1 AS cor0 ---- -1 -1 0 skipif mysql # not compatible query I rowsort SELECT ALL + CAST ( col1 AS REAL ) * col1 + - 83 * + col2 AS col2 FROM tab2 AS cor0 ---- -1280 -2865 1323 skipif mysql # not compatible query I rowsort SELECT DISTINCT - ( + 68 ) + col1 + - CAST ( 61 AS REAL ) AS col2 FROM tab0 AS cor0 ---- -32 -38 -43 onlyif mysql # use DIV operator for integer division query I rowsort label-9468 SELECT ALL - 30 + - col0 DIV ( + cor0.col0 ) FROM tab1 AS cor0 ---- -31 -31 -31 skipif mysql # not compatible query I rowsort label-9468 SELECT ALL - 30 + - col0 / ( + cor0.col0 ) FROM tab1 AS cor0 ---- -31 -31 -31 query I rowsort SELECT DISTINCT - col2 + - col1 * - col1 * - cor0.col1 FROM tab0 AS cor0 ---- -636089 -753653 -912674 onlyif mysql # use DIV operator for integer division query I rowsort label-9470 SELECT 90 DIV 98 AS col0 FROM tab0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9470 SELECT 90 / 98 AS col0 FROM tab0 ---- 0 0 0 query I rowsort SELECT cor0.col1 * + 53 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1 ---- 27 values hashing to 1a2bd3a9c9439d3824ec9c9fdb9da7ca onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9472 SELECT DISTINCT - CAST( col1 AS SIGNED ) + col1 - - CAST( - col2 AS SIGNED ) FROM tab1 ---- -54 -57 -96 skipif mysql # not compatible query I rowsort label-9472 SELECT DISTINCT - CAST ( col1 AS INTEGER ) + col1 - - CAST ( - col2 AS INTEGER ) FROM tab1 ---- -54 -57 -96 query I rowsort SELECT DISTINCT cor0.col0 + - col2 * col1 FROM tab1 AS cor0 ---- -1168 -1401 -506 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col2 + - col0 * col0 * - col1 col1 FROM tab2 cor0 ---- 106059 1492 358930 query I rowsort SELECT DISTINCT + col2 + + col0 + - col1 AS col1 FROM tab1 AS cor0 ---- 111 163 31 onlyif mysql # use DIV operator for integer division query I rowsort label-9476 SELECT DISTINCT - col1 * + col0 DIV cor0.col0 + - col1 DIV col0 AS col2 FROM tab0 AS cor0 ---- -89 -92 -99 skipif mysql # not compatible query I rowsort label-9476 SELECT DISTINCT - col1 * + col0 / cor0.col0 + - col1 / col0 AS col2 FROM tab0 AS cor0 ---- -89 -92 -99 query I rowsort SELECT - col0 + col2 * + col2 * col2 AS col1 FROM tab0 AS cor0 ---- -34 35913 551279 query I rowsort SELECT col2 * - col1 + col1 * - col2 AS col0 FROM tab2 AS cor0 ---- -1292 -1674 -3068 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT cor0.col1 - + col2 * - col2 col1 FROM tab2 AS cor0 ---- 1461 735 760 query I rowsort SELECT + - col1 * col1 AS col0 FROM tab1 cor0 ---- -100 -169 -676 query I rowsort SELECT 95 + + col0 + col1 * col1 * col0 FROM tab0 AS cor0 ---- 177623 329445 737193 query I rowsort SELECT - ( col2 ) * + col2 FROM tab1 AS cor0 ---- -2916 -3249 -9216 query I rowsort SELECT ALL - 48 + + col2 FROM tab0 AS cor0 ---- -15 -47 34 query I rowsort SELECT col0 + - cor0.col1 * col1 + col0 AS col2 FROM tab0 AS cor0 ---- -7348 -8103 -9339 query I rowsort SELECT DISTINCT - - 52 + col0 * - col0 AS col2 FROM tab0 AS cor0 ---- -1173 -524 -7869 onlyif mysql # use DIV operator for integer division query I rowsort label-9486 SELECT ALL + ( col2 ) DIV - col0 FROM tab0 cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-9486 SELECT ALL + ( col2 ) / - col0 FROM tab0 cor0 ---- -1 0 0 onlyif mysql # use DIV operator for integer division query I rowsort label-9487 SELECT DISTINCT + ( + col0 ) + + col2 * col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0 ---- 121 176 57 skipif mysql # not compatible query I rowsort label-9487 SELECT DISTINCT + ( + col0 ) + + col2 * col2 / cor0.col2 AS col2 FROM tab1 AS cor0 ---- 121 176 57 query I rowsort SELECT + 57 * col2 FROM tab1 cor0 ---- 3078 3249 5472 query I rowsort SELECT - col2 * - col0 + - cor0.col0 * + col1 + - cor0.col1 AS col1 FROM tab1 AS cor0 ---- 2998 58 6627 query I rowsort SELECT + - col0 + col0 * + col1 AS col0 FROM tab0 AS cor0 ---- 2040 3360 8010 query I rowsort SELECT + + col0 * + col0 AS col1 FROM tab0 cor0 ---- 1225 576 7921 query I rowsort SELECT col1 + + cor0.col0 * cor0.col1 FROM tab1 cor0 ---- 104 1053 650 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 0 + col0 * col2 col2 FROM tab0 ---- 35 7298 792 query I rowsort SELECT DISTINCT col1 + col2 * - tab0.col2 FROM tab0 ---- -1003 -6633 96 query I rowsort SELECT DISTINCT col2 - col2 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( + col1 / col1 ) ---- query I rowsort SELECT col0 + + tab1.col1 * col0 FROM tab1 ---- 1120 704 81 query I rowsort SELECT ALL col2 * col1 + col1 * tab2.col0 FROM tab2 ---- 1054 1989 6136 query I rowsort SELECT DISTINCT - col2 * + col2 - + col2 FROM tab0 ---- -1122 -2 -6806 query III rowsort SELECT DISTINCT * FROM tab1 WHERE col0 * col1 NOT BETWEEN ( col1 ) AND ( NULL ) ---- query I rowsort SELECT DISTINCT + col2 + col0 * tab0.col2 AS col0 FROM tab0 ---- 36 7380 825 query I rowsort SELECT - col1 + - col0 * col0 * + col2 FROM tab0 ---- -1322 -19094 -649613 query I rowsort SELECT DISTINCT col1 * col1 + + col2 FROM tab2 ---- 327 3507 988 query I rowsort SELECT col0 + + col1 * col1 * col0 AS col1 FROM tab1 ---- 13600 2031 6464 query I rowsort SELECT - col2 FROM tab0 WHERE + col0 * col2 <= ( NULL ) ---- query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 * col2 AND col1 * col0 ---- query I rowsort SELECT - tab0.col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0 ---- query I rowsort SELECT col0 + + tab1.col0 - + col0 * col2 FROM tab1 ---- -156 -3520 -7520 query I rowsort SELECT + col2 - tab2.col0 * col1 FROM tab2 ---- -1305 -190 -4576 query I rowsort SELECT - col2 * col1 * + col0 FROM tab2 WHERE NOT col0 * + col0 >= ( col0 - col1 * + col1 ) ---- query I rowsort SELECT DISTINCT + col1 + tab2.col0 * + tab2.col2 AS col0 FROM tab2 ---- 2087 220 3019 onlyif mysql # use DIV operator for integer division query I rowsort label-9511 SELECT - tab1.col1 DIV tab1.col1 AS col1 FROM tab1 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-9511 SELECT - tab1.col1 / tab1.col1 AS col1 FROM tab1 ---- -1 -1 -1 query I rowsort SELECT DISTINCT + col0 * + col0 + col2 AS col2 FROM tab1 ---- 4153 63 6496 query I rowsort SELECT DISTINCT col1 * col1 + - col1 / - col1 - - col1 * + col1 FROM tab2 WHERE NULL NOT IN ( col0 / col2 + col0 ) ---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND NULL ---- query III rowsort SELECT * FROM tab1 WHERE col2 * + col0 * col2 NOT BETWEEN NULL AND - col0 + - col1 * tab1.col2 / col0 ---- 9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d query I rowsort SELECT tab2.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 query I rowsort SELECT col2 * - col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col2 * + col0 + + col0 ---- query I rowsort SELECT + col2 / col0 FROM tab2 WHERE NOT NULL <= NULL ---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT col1 / col1 <> NULL ---- query I rowsort SELECT ALL cor0.col2 + - col1 FROM tab1 cor0 WHERE ( NULL ) >= NULL ---- query I rowsort SELECT - cor0.col2 * + col1 + col0 FROM tab2 AS cor0 ---- -1456 -567 -830 query I rowsort SELECT ALL - col2 * col2 * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( NULL ) ---- query I rowsort SELECT - + 67 + col1 * + col0 AS col0 FROM tab2 AS cor0 ---- 1276 150 4535 query I rowsort SELECT ALL col0 + + 24 AS col0 FROM tab1 AS cor0 ---- 104 27 88 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 81 * 39 col0 FROM tab1 AS cor0 ---- -3159 -3159 -3159 query I rowsort SELECT ALL - + 29 + + col1 FROM tab0 AS cor0 ---- 57 62 68 query I rowsort SELECT + col1 + 62 * col2 AS col2 FROM tab1 AS cor0 ---- 3374 3544 5965 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9528 SELECT ALL + - CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab2 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9528 SELECT ALL + - CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab2 cor0 ---- NULL NULL NULL query I rowsort SELECT + 51 * col1 FROM tab1 AS cor0 ---- 1326 510 663 query I rowsort SELECT DISTINCT - - cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0 ---- 137 38 96 query I rowsort SELECT + - col0 + + col0 * - cor0.col1 + ( - col1 ) FROM tab2 AS cor0 ---- -1439 -255 -4739 query I rowsort SELECT - ( + 58 ) * - col0 AS col1 FROM tab1 AS cor0 ---- 174 3712 4640 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9533 SELECT DISTINCT - CAST( col2 AS SIGNED ) * col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 skipif mysql # not compatible query I rowsort label-9533 SELECT DISTINCT - CAST ( col2 AS INTEGER ) * col2 FROM tab0 AS cor0 ---- -1 -1089 -6724 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9534 SELECT + - CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9534 SELECT + - CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT - cor0.col1 * - ( col2 ) AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT DISTINCT col2 - - col1 * 57 AS col1 FROM tab0 AS cor0 ---- 4935 5269 5530 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - + 13 * col2 + col1 col1 FROM tab2 AS cor0 ---- -279 -320 -477 query I rowsort SELECT ALL + + col1 + - col1 - 15 FROM tab0 AS cor0 ---- -15 -15 -15 query I rowsort SELECT ALL 76 * - col1 FROM tab1 AS cor0 ---- -1976 -760 -988 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 * + ( - 81 + - col2 ) col2 FROM tab0 AS cor0 ---- -14507 -2736 -2870 query I rowsort SELECT + cor0.col0 * - cor0.col0 FROM tab0 AS cor0 ---- -1225 -576 -7921 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9542 SELECT + col1 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 ---- 1248 1404 570 skipif mysql # not compatible query I rowsort label-9542 SELECT + col1 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 ---- 1248 1404 570 query I rowsort SELECT ALL + + col2 * - 67 AS col1 FROM tab2 AS cor0 ---- -1742 -1809 -2546 query I rowsort SELECT - - col1 * col1 * + 97 + + col1 * col1 AS col1 FROM tab2 AS cor0 ---- 28322 341138 94178 query I rowsort SELECT DISTINCT - col2 * ( - 70 ) AS col2 FROM tab1 cor0 ---- 3780 3990 6720 query I rowsort SELECT ALL + col1 * col0 + 52 AS col0 FROM tab0 AS cor0 ---- 2116 3447 8151 query I rowsort SELECT DISTINCT ( + col1 ) * col2 AS col1 FROM tab2 AS cor0 ---- 1534 646 837 query I rowsort SELECT ALL + 45 AS col2 FROM tab0 cor0 ---- 45 45 45 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9549 SELECT + CAST( NULL AS DECIMAL ) * 96 AS col0 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9549 SELECT + CAST ( NULL AS REAL ) * 96 AS col0 FROM tab1 cor0 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9550 SELECT DISTINCT tab2.col2 + ( col1 ) DIV + col1 AS col1 FROM tab2 ---- 27 28 39 skipif mysql # not compatible query I rowsort label-9550 SELECT DISTINCT tab2.col2 + ( col1 ) / + col1 AS col1 FROM tab2 ---- 27 28 39 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col1 * col1 + 39 + + col2 col0 FROM tab1 ---- 196 304 769 onlyif mysql # use DIV operator for integer division query I rowsort label-9552 SELECT tab0.col2 * + col2 + - 12 * col2 DIV 82 FROM tab0 ---- 1 1085 6712 skipif mysql # not compatible query I rowsort label-9552 SELECT tab0.col2 * + col2 + - 12 * col2 / 82 FROM tab0 ---- 1 1085 6712 query I rowsort SELECT DISTINCT col2 + - col0 * + ( + col2 ) AS col1 FROM tab0 ---- -34 -7216 -759 onlyif mysql # use DIV operator for integer division query I rowsort label-9554 SELECT ALL col0 DIV col2 + - col2 AS col2 FROM tab1 ---- -54 -56 -96 skipif mysql # not compatible query I rowsort label-9554 SELECT ALL col0 / col2 + - col2 AS col2 FROM tab1 ---- -54 -56 -96 query I rowsort SELECT + ( 26 ) + col1 FROM tab2 cor0 ---- 43 57 85 query I rowsort SELECT - 23 * - col0 FROM tab2 AS cor0 ---- 161 1794 1817 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor1.col1 col1 FROM tab0, tab1 AS cor0, tab0 cor1 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + col0 * - col0 * + cor0.col1 col1 FROM tab0 AS cor0 ---- 118825 49536 720811 query I rowsort SELECT DISTINCT + col0 + ( + col1 ) AS col0 FROM tab1 ---- 29 74 93 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - 8 col0 FROM tab0 ---- -192 -280 -712 query I rowsort SELECT col0 + 56 + tab0.col0 FROM tab0 ---- 104 126 234 query I rowsort SELECT 23 + col1 * - tab2.col2 FROM tab2 ---- -1511 -623 -814 onlyif mysql # use DIV operator for integer division query I rowsort label-9563 SELECT DISTINCT ( ( col2 ) ) * + col2 DIV col2 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-9563 SELECT DISTINCT ( ( col2 ) ) * + col2 / col2 FROM tab0 ---- 1 33 82 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9564 SELECT ALL + CAST( NULL AS SIGNED ) * + tab2.col0 AS col2 FROM tab2 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9564 SELECT ALL + CAST ( NULL AS INTEGER ) * + tab2.col0 AS col2 FROM tab2 ---- NULL NULL NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9565 SELECT DISTINCT ( + ( - tab1.col2 ) ) DIV col0 FROM tab1 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-9565 SELECT DISTINCT ( + ( - tab1.col2 ) ) / col0 FROM tab1 ---- -1 -18 0 query I rowsort SELECT col0 + ( col1 ) + - col2 * - col2 AS col0 FROM tab1 ---- 2945 3323 9309 query I rowsort SELECT DISTINCT + 48 + - col2 AS col2 FROM tab1 AS cor0 ---- -48 -6 -9 query I rowsort SELECT - - 99 * col1 FROM tab0 AS cor0 ---- 8514 9009 9603 query I rowsort SELECT DISTINCT + col0 + 99 AS col1 FROM tab0 AS cor0 ---- 123 134 188 query I rowsort SELECT DISTINCT + 54 * - 34 FROM tab1 AS cor0 ---- -1836 query I rowsort SELECT - col1 * tab1.col1 * + col0 + - col2 * col1 FROM tab1 ---- -14768 -3432 -6970 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9572 SELECT DISTINCT + col1 + - CAST( col0 AS SIGNED ) * + col2 FROM tab2 cor0 ---- -158 -1969 -2985 skipif mysql # not compatible query I rowsort label-9572 SELECT DISTINCT + col1 + - CAST ( col0 AS INTEGER ) * + col2 FROM tab2 cor0 ---- -158 -1969 -2985 query I rowsort SELECT 79 - col0 FROM tab0 ---- -10 44 55 query I rowsort SELECT col0 * col1 - + 28 * + col1 FROM tab0 ---- -344 5551 679 onlyif mysql # use DIV operator for integer division query I rowsort label-9575 SELECT ALL col2 * 44 DIV - 71 FROM tab1 AS cor0 ---- -33 -35 -59 skipif mysql # not compatible query I rowsort label-9575 SELECT ALL col2 * 44 / - 71 FROM tab1 AS cor0 ---- -33 -35 -59 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9576 SELECT DISTINCT col2 + CAST( col0 * - cor0.col2 AS SIGNED ) FROM tab2 AS cor0 ---- -162 -2002 -2964 skipif mysql # not compatible query I rowsort label-9576 SELECT DISTINCT col2 + CAST ( col0 * - cor0.col2 AS INTEGER ) FROM tab2 AS cor0 ---- -162 -2002 -2964 query I rowsort SELECT - col2 * col2 - + col2 AS col1 FROM tab1 AS cor0 ---- -2970 -3306 -9312 query I rowsort SELECT DISTINCT - - col1 - 38 FROM tab0 AS cor0 ---- 48 53 59 query I rowsort SELECT ALL + col2 * + ( - 65 ) AS col0 FROM tab1 AS cor0 ---- -3510 -3705 -6240 query I rowsort SELECT ALL + - col0 * - col2 * - col0 + col2 FROM tab0 AS cor0 ---- -1224 -18975 -649440 query I rowsort SELECT DISTINCT - col2 * 10 AS col2 FROM tab0 AS cor0 ---- -10 -330 -820 query I rowsort SELECT DISTINCT - - col0 + col1 * + col2 FROM tab2 AS cor0 ---- 1612 725 844 query I rowsort SELECT col2 * ( 62 ) FROM tab2 AS cor0 ---- 1612 1674 2356 query I rowsort SELECT ALL - col2 * - col2 * - 36 FROM tab1 AS cor0 ---- -104976 -116964 -331776 query I rowsort SELECT ALL - col1 + - 90 AS col0 FROM tab2 AS cor0 ---- -107 -121 -149 query I rowsort SELECT + - col1 * 12 * - 83 AS col0 FROM tab2 AS cor0 ---- 16932 30876 58764 query I rowsort SELECT ALL + col2 * ( col2 ) * - col1 FROM tab2 cor0 ---- -22599 -24548 -39884 query I rowsort SELECT col2 * + col0 - - col0 AS col1 FROM tab1 cor0 ---- 165 3712 7760 query I rowsort SELECT + col2 * ( ( - col2 ) ) - + col0 FROM tab2 AS cor0 ---- -1523 -736 -754 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9590 SELECT - - cor0.col2 * CAST( - col1 * cor0.col1 AS SIGNED ) + - col0 * - col2 FROM tab2 AS cor0 ---- -25758 -7980 -88478 skipif mysql # not compatible query I rowsort label-9590 SELECT - - cor0.col2 * CAST ( - col1 * cor0.col1 AS INTEGER ) + - col0 * - col2 FROM tab2 AS cor0 ---- -25758 -7980 -88478 query I rowsort SELECT DISTINCT - - col1 + - ( + 54 ) * - col0 FROM tab2 cor0 ---- 409 4271 4283 query I rowsort SELECT ALL + + cor0.col0 - - col1 * - col0 AS col2 FROM tab2 AS cor0 ---- -1264 -210 -4524 onlyif mysql # use DIV operator for integer division query I rowsort label-9593 SELECT + col2 DIV + col2 + + col2 AS col0 FROM tab1 cor0 ---- 55 58 97 skipif mysql # not compatible query I rowsort label-9593 SELECT + col2 / + col2 + + col2 AS col0 FROM tab1 cor0 ---- 55 58 97 query I rowsort SELECT ALL 91 AS col2 FROM tab0, tab1, tab1 AS cor0 ---- 27 values hashing to deebbcfb9c7803a34dca6bd860849afe skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * col1 * + ( - col0 * col2 ) col2 FROM tab2 ---- 181629 7059468 867578 query I rowsort SELECT ALL + - col2 + ( 47 ) + col2 AS col0 FROM tab1 AS cor0 ---- 47 47 47 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col1 * + col1 - col1 * - col1 col2 FROM tab1 AS cor0 ---- 1352 200 338 query I rowsort SELECT + - col1 * - 80 AS col2 FROM tab0 AS cor0 ---- 6880 7280 7760 query I rowsort SELECT + col1 * cor0.col1 + + 70 AS col1 FROM tab1 AS cor0 ---- 170 239 746 query I rowsort SELECT - col0 * - 93 FROM tab2 AS cor0 ---- 651 7254 7347 query I rowsort SELECT DISTINCT cor0.col0 - cor0.col0 AS col2 FROM tab0, tab0 AS cor0 ---- 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 15 col0 FROM tab2 cor0 ---- 15 onlyif mysql # use DIV operator for integer division query I rowsort label-9603 SELECT + ( - 67 ) DIV col2 col1 FROM tab0 AS cor0 ---- -2 -67 0 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9603 SELECT + ( - 67 ) / col2 col1 FROM tab0 AS cor0 ---- -2 -67 0 query I rowsort SELECT DISTINCT + + col2 * + col2 + - col2 * - col2 * 9 FROM tab0 AS cor0 ---- 10 10890 67240 query I rowsort SELECT DISTINCT - 72 + 30 * + col1 FROM tab2 AS cor0 ---- 1698 438 858 query I rowsort SELECT - 40 + 32 * col1 * col0 FROM tab2 AS cor0 ---- 147224 42936 6904 query I rowsort SELECT - 11 * + 78 + - col1 * + ( + col0 ) - cor0.col1 AS col2 FROM tab0 AS cor0 ---- -3008 -4350 -9048 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9608 SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + + col0 * 91 AS col2 FROM tab1 cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9608 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + + col0 * 91 AS col2 FROM tab1 cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9609 SELECT ( - 6 ) DIV col1 + 44 FROM tab1 AS cor0 ---- 44 44 44 skipif mysql # not compatible query I rowsort label-9609 SELECT ( - 6 ) / col1 + 44 FROM tab1 AS cor0 ---- 44 44 44 query I rowsort SELECT ALL + 5 * col1 * - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -2850 -6240 -7020 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9611 SELECT ALL + CAST( + ( col2 ) AS SIGNED ) col1 FROM tab0 AS cor0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9611 SELECT ALL + CAST ( + ( col2 ) AS INTEGER ) col1 FROM tab0 AS cor0 ---- 1 33 82 query I rowsort SELECT DISTINCT + + ( col1 ) * col1 * col0 FROM tab0 AS cor0 ---- 177504 329315 737009 onlyif mysql # use DIV operator for integer division query I rowsort label-9613 SELECT DISTINCT cor0.col0 DIV - col0 FROM tab2 AS cor0 ---- -1 skipif mysql # not compatible query I rowsort label-9613 SELECT DISTINCT cor0.col0 / - col0 FROM tab2 AS cor0 ---- -1 query I rowsort SELECT ALL - 84 + + col0 AS col0 FROM tab1 AS cor0 ---- -20 -4 -81 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( - cor0.col2 ) * 76 col1 FROM tab1 cor0 ---- 4104 4332 7296 query I rowsort SELECT ALL - col0 * + col0 + 39 + cor0.col0 FROM tab2 AS cor0 ---- -3 -5967 -6123 query I rowsort SELECT - + col2 * + cor0.col0 AS col2 FROM tab1 cor0 ---- -162 -3648 -7680 query I rowsort SELECT - ( col0 ) + col0 AS col0 FROM tab1 cor0 ---- 0 0 0 query I rowsort SELECT + 38 + col2 FROM tab0 AS cor0 ---- 120 39 71 query I rowsort SELECT - 7 + col0 AS col1 FROM tab0 AS cor0 ---- 17 28 82 onlyif mysql # use DIV operator for integer division query I rowsort label-9621 SELECT - 57 DIV col0 FROM tab1 cor0 ---- -19 0 0 skipif mysql # not compatible query I rowsort label-9621 SELECT - 57 / col0 FROM tab1 cor0 ---- -19 0 0 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col0 + + 2 col2 FROM tab2 cor0 ---- 80 81 9 query I rowsort SELECT - col2 * 87 * cor0.col2 FROM tab0 AS cor0 ---- -584988 -87 -94743 onlyif mysql # use DIV operator for integer division query I rowsort label-9624 SELECT DISTINCT 9 DIV + col1 FROM tab2 ---- 0 skipif mysql # not compatible query I rowsort label-9624 SELECT DISTINCT 9 / + col1 FROM tab2 ---- 0 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9625 SELECT + CAST( NULL AS SIGNED ) / + 90 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-9625 SELECT + CAST ( NULL AS INTEGER ) / + 90 col1 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + col2 * + col2 + col0 - - 20 FROM tab2 AS cor0 ---- 1543 756 774 query I rowsort SELECT DISTINCT - cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- -1 -33 -82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 62 col1 FROM tab2 ---- 62 62 62 query I rowsort SELECT DISTINCT 74 AS col1 FROM tab0, tab0 AS cor0 ---- 74 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9630 SELECT CAST( - col2 AS SIGNED ) * + col1 AS col0 FROM tab2 ---- -1534 -646 -837 skipif mysql # not compatible query I rowsort label-9630 SELECT CAST ( - col2 AS INTEGER ) * + col1 AS col0 FROM tab2 ---- -1534 -646 -837 onlyif mysql # use DIV operator for integer division query I rowsort label-9631 SELECT + tab0.col1 DIV 1 col0 FROM tab0, tab1, tab1 cor0 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9631 SELECT + tab0.col1 / 1 col0 FROM tab0, tab1, tab1 cor0 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT DISTINCT tab1.col2 * + tab1.col2 FROM tab1 ---- 2916 3249 9216 onlyif mysql # use DIV operator for integer division query I rowsort label-9633 SELECT - + col1 DIV + col1 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-9633 SELECT - + col1 / + col1 AS col1 FROM tab0 AS cor0 ---- -1 -1 -1 query I rowsort SELECT cor0.col1 * - 13 + 57 + col2 * + 33 AS col0 FROM tab1 AS cor0 ---- 1501 1808 3056 onlyif mysql # use DIV operator for integer division query I rowsort label-9635 SELECT + col2 DIV + 57 + col1 FROM tab2 AS cor0 ---- 17 31 59 skipif mysql # not compatible query I rowsort label-9635 SELECT + col2 / + 57 + col1 FROM tab2 AS cor0 ---- 17 31 59 query I rowsort SELECT ALL ( cor0.col0 ) FROM tab0, tab2 cor0 ---- 9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a query I rowsort SELECT col2 * - 27 * col2 FROM tab2 AS cor0 ---- -18252 -19683 -38988 query I rowsort SELECT - col2 * ( - col0 ) * 56 + 94 FROM tab0 ---- 2054 408782 44446 query I rowsort SELECT ALL + + col2 + - col1 AS col2 FROM tab2 AS cor0 ---- -33 -4 21 query I rowsort SELECT DISTINCT - 20 * + col1 FROM tab1 AS cor0 ---- -200 -260 -520 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9641 SELECT - CAST( NULL AS SIGNED ) + - 77 * col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9641 SELECT - CAST ( NULL AS INTEGER ) + - 77 * col0 AS col0 FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 23 + col1 AS col2 FROM tab1 AS cor0 ---- 33 36 49 query I rowsort SELECT DISTINCT - ( cor0.col1 ) * + cor0.col1 AS col1 FROM tab2 AS cor0 ---- -289 -3481 -961 onlyif mysql # use DIV operator for integer division query I rowsort label-9644 SELECT ALL col2 * col2 + col2 DIV ( col0 ) AS col2 FROM tab2 AS cor0 ---- 1444 676 732 skipif mysql # not compatible query I rowsort label-9644 SELECT ALL col2 * col2 + col2 / ( col0 ) AS col2 FROM tab2 AS cor0 ---- 1444 676 732 query I rowsort SELECT - - 18 AS col0 FROM tab1, tab2, tab1 AS cor0 ---- 27 values hashing to 903ac227935c1532300db45a8537c595 query I rowsort SELECT - - col0 + - col1 * ( + 73 ) FROM tab0 AS cor0 ---- -6254 -6554 -7046 onlyif mysql # use DIV operator for integer division query I rowsort label-9647 SELECT ALL col0 * col2 DIV - tab0.col2 - + 78 FROM tab0 ---- -102 -113 -167 skipif mysql # not compatible query I rowsort label-9647 SELECT ALL col0 * col2 / - tab0.col2 - + 78 FROM tab0 ---- -102 -113 -167 query I rowsort SELECT - tab0.col0 FROM tab0, tab2, tab2 cor0 ---- 27 values hashing to c3ebf1695ca74567bdc173dbe15186a8 query I rowsort SELECT - - 28 * - col1 AS col2 FROM tab0 AS cor0 ---- -2408 -2548 -2716 query I rowsort SELECT - cor0.col2 * - cor0.col0 + col1 AS col0 FROM tab0 AS cor0 ---- 132 7389 878 query I rowsort SELECT DISTINCT - cor0.col2 + - cor0.col1 FROM tab2 AS cor0 ---- -55 -58 -85 query I rowsort SELECT DISTINCT + col1 * ( + col1 ) AS col1 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT - + col0 + - ( + col2 ) AS col0 FROM tab1 AS cor0 ---- -121 -176 -57 query I rowsort SELECT - col1 + - 97 AS col0 FROM tab0 AS cor0 ---- -183 -188 -194 query I rowsort SELECT ALL - cor0.col0 + + col1 * col0 FROM tab0 cor0 ---- 2040 3360 8010 query I rowsort SELECT ALL - cor0.col0 * 26 + + cor0.col1 AS col0 FROM tab2 AS cor0 ---- -151 -1969 -2037 query I rowsort SELECT DISTINCT - col1 * 60 - + col0 FROM tab2 AS cor0 ---- -1099 -1867 -3618 query I rowsort SELECT DISTINCT - col0 + - col0 - 66 AS col2 FROM tab1 AS cor0 ---- -194 -226 -72 query I rowsort SELECT - col2 - - 9 * col2 FROM tab2 cor0 ---- 208 216 304 onlyif mysql # use DIV operator for integer division query I rowsort label-9660 SELECT - 44 DIV - tab1.col1 FROM tab1 ---- 1 3 4 skipif mysql # not compatible query I rowsort label-9660 SELECT - 44 / - tab1.col1 FROM tab1 ---- 1 3 4 query I rowsort SELECT 19 - - col2 AS col2 FROM tab1 ---- 115 73 76 query I rowsort SELECT ALL col0 - col1 * col1 AS col2 FROM tab0 ---- -7372 -8192 -9374 query I rowsort SELECT + 83 * col1 * col0 FROM tab1 ---- 53120 6474 86320 query I rowsort SELECT DISTINCT + col1 * + col1 * 22 FROM tab0 ---- 162712 182182 206998 query I rowsort SELECT + - cor0.col2 * - 6 + + col2 - col0 * + col2 FROM tab2 AS cor0 ---- -1846 -2736 0 query I rowsort SELECT DISTINCT + col1 * - 68 + + col0 * col1 FROM tab1 AS cor0 ---- -1690 -40 156 query I rowsort SELECT ALL - col1 + + col1 + col1 AS col0 FROM tab1 AS cor0 ---- 10 13 26 query I rowsort SELECT + col2 + + ( col1 * + col1 ) - cor0.col1 FROM tab2 AS cor0 ---- 310 3448 957 onlyif mysql # use DIV operator for integer division query I rowsort label-9669 SELECT - + cor0.col0 DIV 64 + col0 * col0 - ( ( - col2 ) ) AS col1 FROM tab0 AS cor0 ---- 1226 609 8002 skipif mysql # not compatible query I rowsort label-9669 SELECT - + cor0.col0 / 64 + col0 * col0 - ( ( - col2 ) ) AS col1 FROM tab0 AS cor0 ---- 1226 609 8002 query I rowsort SELECT DISTINCT - + col1 + 30 AS col1 FROM tab1 AS cor0 ---- 17 20 4 query I rowsort SELECT - 85 * + col1 AS col1 FROM tab0 AS cor0 ---- -7310 -7735 -8245 query I rowsort SELECT - col1 * col0 - cor0.col2 AS col2 FROM tab1 AS cor0 ---- -1136 -132 -697 query I rowsort SELECT - + col2 + - col0 * col2 - - cor0.col2 AS col2 FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT ALL - col1 + 23 AS col2 FROM tab1 ---- -3 10 13 onlyif mysql # use DIV operator for integer division query I rowsort label-9675 SELECT + col2 * tab0.col1 DIV + col2 AS col1 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-9675 SELECT + col2 * tab0.col1 / + col2 AS col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT DISTINCT - col2 * - col0 * - col2 + - col0 + col1 FROM tab1 ---- -207990 -737347 -8725 onlyif mysql # use DIV operator for integer division query I rowsort label-9677 SELECT col1 + 44 DIV col1 FROM tab0 ---- 86 91 97 skipif mysql # not compatible query I rowsort label-9677 SELECT col1 + 44 / col1 FROM tab0 ---- 86 91 97 query I rowsort SELECT ALL - 15 + - col2 AS col1 FROM tab0 AS cor0 ---- -16 -48 -97 query I rowsort SELECT ALL + - 14 * - col1 * + ( - 40 ) FROM tab0 AS cor0 ---- -48160 -50960 -54320 query I rowsort SELECT - 68 - - tab0.col1 AS col1 FROM tab0, tab1 AS cor0 ---- 9 values hashing to 7f0d58aa79d5c5e5e85166923d3285ba onlyif mysql # use DIV operator for integer division query I rowsort label-9681 SELECT DISTINCT - col2 + + tab1.col1 DIV col0 AS col1 FROM tab1 ---- -46 -57 -96 skipif mysql # not compatible query I rowsort label-9681 SELECT DISTINCT - col2 + + tab1.col1 / col0 AS col1 FROM tab1 ---- -46 -57 -96 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 23 * tab1.col1 col2 FROM tab1, tab0 AS cor0 ---- 9 values hashing to 8c46ef9a46905a7cf8f63ea206c7693b query I rowsort SELECT DISTINCT + col0 + + col1 * 92 FROM tab1 AS cor0 ---- 1276 2395 984 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9684 SELECT - + col0 + + col1 * + CAST( - 0 AS SIGNED ) FROM tab2 AS cor0 ---- -7 -78 -79 skipif mysql # not compatible query I rowsort label-9684 SELECT - + col0 + + col1 * + CAST ( - 0 AS INTEGER ) FROM tab2 AS cor0 ---- -7 -78 -79 query I rowsort SELECT DISTINCT col0 * + col2 + - col2 AS col2 FROM tab1 cor0 ---- 108 3591 7584 query I rowsort SELECT ALL + - col0 * col2 * col0 FROM tab2 AS cor0 ---- -1323 -158184 -237158 query I rowsort SELECT ( + tab1.col1 + col2 ) AS col1 FROM tab1 ---- 109 67 80 onlyif mysql # use DIV operator for integer division query I rowsort label-9688 SELECT 29 + - col1 DIV col1 FROM tab2 ---- 28 28 28 skipif mysql # not compatible query I rowsort label-9688 SELECT 29 + - col1 / col1 FROM tab2 ---- 28 28 28 query I rowsort SELECT 39 - col1 AS col0 FROM tab0 ---- -47 -52 -58 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9690 SELECT ALL - cor0.col0 * CAST( - 74 AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to d3831550edf612ee63a444f598473667 skipif mysql # not compatible query I rowsort label-9690 SELECT ALL - cor0.col0 * CAST ( - 74 AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to d3831550edf612ee63a444f598473667 query I rowsort SELECT ALL - - col2 + + cor0.col0 FROM tab1 AS cor0 ---- 121 176 57 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col1 * - col0 + + col2 col0 FROM tab1 AS cor0 ---- 1136 132 697 query I rowsort SELECT DISTINCT + ( + col0 ) + - 77 * 87 AS col2 FROM tab0 cor0 ---- -6610 -6664 -6675 query I rowsort SELECT - + 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342 query I rowsort SELECT ALL + 40 + - cor0.col1 AS col2 FROM tab1 AS cor0 ---- 14 27 30 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + - col2 + - col0 col0 FROM tab2 AS cor0 ---- -104 -117 -34 query I rowsort SELECT DISTINCT col1 + cor0.col0 * col1 * cor0.col1 AS col2 FROM tab0 AS cor0 ---- 177590 329412 737100 query I rowsort SELECT DISTINCT + 44 * col1 AS col0 FROM tab0 AS cor0 ---- 3784 4004 4268 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9699 SELECT + CAST( - 95 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0 ---- -285 -6080 -7600 skipif mysql # not compatible query I rowsort label-9699 SELECT + CAST ( - 95 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0 ---- -285 -6080 -7600 query I rowsort SELECT + + 63 * + col1 AS col1 FROM tab1 AS cor0 ---- 1638 630 819 query I rowsort SELECT DISTINCT ( + 29 ) FROM tab1, tab2 AS cor0 ---- 29 query I rowsort SELECT + 18 + - col2 + + col2 * ( - col0 + + col1 ) FROM tab0 cor0 ---- 100 2031 79 query I rowsort SELECT 75 AS col1 FROM tab1, tab2 AS cor0 ---- 9 values hashing to 22042bfd4d787415457a42bb93d48eea query I rowsort SELECT DISTINCT + 83 * ( + col1 ) FROM tab0 ---- 7138 7553 8051 onlyif mysql # use DIV operator for integer division query I rowsort label-9705 SELECT ALL + col2 DIV col2 col1 FROM tab1 ---- 1 1 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9705 SELECT ALL + col2 / col2 col1 FROM tab1 ---- 1 1 1 query I rowsort SELECT + - 30 AS col1 FROM tab0 cor0 ---- -30 -30 -30 query I rowsort SELECT - col2 * col0 + 68 FROM tab0 AS cor0 ---- -7230 -724 33 query I rowsort SELECT + - col2 + 46 * col2 FROM tab0 AS cor0 ---- 1485 3690 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - 39 col0 FROM tab1 ---- -39 -39 -39 query I rowsort SELECT + 65 AS col0 FROM tab1, tab0, tab0 AS cor0 ---- 27 values hashing to 1c9d0bf96cd3361942fadad668138b9c onlyif mysql # use DIV operator for integer division query I rowsort label-9711 SELECT DISTINCT - col0 + + col0 DIV col0 AS col2 FROM tab1 ---- -2 -63 -79 skipif mysql # not compatible query I rowsort label-9711 SELECT DISTINCT - col0 + + col0 / col0 AS col2 FROM tab1 ---- -2 -63 -79 query I rowsort SELECT + col1 * - 42 - + col2 AS col1 FROM tab1 AS cor0 ---- -1146 -477 -642 query I rowsort SELECT DISTINCT + col0 * 64 + - col2 * + col1 AS col2 FROM tab1 cor0 ---- -1212 3526 3872 query I rowsort SELECT + col2 + 44 AS col2 FROM tab0 AS cor0 ---- 126 45 77 query I rowsort SELECT ALL - col2 * 16 + col1 * - cor0.col1 FROM tab0 AS cor0 ---- -7924 -9425 -9593 query I rowsort SELECT - + col1 * + col0 + - col0 AS col2 FROM tab1 AS cor0 ---- -1120 -704 -81 query I rowsort SELECT ALL - + col2 + ( col2 + col2 ) AS col0 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT + + cor0.col2 * 30 + + cor0.col0 AS col2 FROM tab0 AS cor0 ---- 1014 2549 65 query I rowsort SELECT tab0.col1 * - ( - col0 ) FROM tab0 ---- 2064 3395 8099 query I rowsort SELECT + 71 FROM tab1, tab2 AS cor0, tab0 cor1 ---- 27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2 query I rowsort SELECT - col0 * + 10 * - 93 FROM tab0 ---- 22320 32550 82770 query I rowsort SELECT + col1 + col2 + + col1 * - col0 FROM tab2 ---- -1288 -159 -4517 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - col0 * + col2 - - col2 * col2 col0 FROM tab1 ---- -399 1536 2754 query I rowsort SELECT ALL - col0 - + 5 FROM tab2 ---- -12 -83 -84 query I rowsort SELECT 49 * - cor0.col0 * - 26 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 07a01df140f0a92c4b8135c2e7f15288 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - tab0.col1 + col1 col1 FROM tab0 ---- 0 0 0 query I rowsort SELECT DISTINCT col0 * col1 + col0 AS col0 FROM tab0 AS cor0 ---- 2088 3430 8188 query I rowsort SELECT DISTINCT + col2 - cor0.col1 * + cor0.col2 FROM tab0 AS cor0 ---- -2805 -7380 -96 query I rowsort SELECT + col1 + 37 * col0 AS col2 FROM tab1 AS cor0 ---- 137 2378 2973 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + col2 * + col0 + col1 col0 FROM tab2 AS cor0 ---- 2087 220 3019 query I rowsort SELECT DISTINCT + col2 + cor0.col2 * - col0 AS col1 FROM tab2 AS cor0 ---- -162 -2002 -2964 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - ( 25 ) col2 FROM tab1 AS cor0 ---- -25 -25 -25 query I rowsort SELECT DISTINCT + + col0 * - col2 + - col0 + + col1 AS col1 FROM tab2 AS cor0 ---- -165 -2047 -3064 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT col0 * col1 col1 FROM tab0 cor0 ---- 2064 3395 8099 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9735 SELECT CAST( NULL AS SIGNED ) + + 52 * col2 * + col2 AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9735 SELECT CAST ( NULL AS INTEGER ) + + 52 * col2 * + col2 AS col0 FROM tab0 cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL col0 + - 76 * col1 col0 FROM tab1 AS cor0 ---- -1973 -696 -908 onlyif mysql # use DIV operator for integer division query I rowsort label-9737 SELECT + col2 * 55 + col1 DIV 9 AS col1 FROM tab0 cor0 ---- 1824 4520 65 skipif mysql # not compatible query I rowsort label-9737 SELECT + col2 * 55 + col1 / 9 AS col1 FROM tab0 cor0 ---- 1824 4520 65 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9738 SELECT ALL - - CAST( + 54 AS SIGNED ) * cor0.col1 + col0 AS col2 FROM tab2 AS cor0 ---- 1681 3264 997 skipif mysql # not compatible query I rowsort label-9738 SELECT ALL - - CAST ( + 54 AS INTEGER ) * cor0.col1 + col0 AS col2 FROM tab2 AS cor0 ---- 1681 3264 997 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - cor0.col0 * - col0 * col2 col2 FROM tab1 cor0 ---- 233472 486 614400 query I rowsort SELECT + col1 * 34 * col0 AS col1 FROM tab2 AS cor0 ---- 156468 45662 7378 query I rowsort SELECT DISTINCT cor1.col0 * - ( cor1.col2 ) FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2 ---- -162 -3648 -7680 query I rowsort SELECT + 39 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf onlyif mysql # use DIV operator for integer division query I rowsort label-9743 SELECT col1 DIV + col0 col2 FROM tab1 cor0 ---- 0 0 8 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9743 SELECT col1 / + col0 col2 FROM tab1 cor0 ---- 0 0 8 query I rowsort SELECT DISTINCT + + col1 * + cor0.col2 AS col1 FROM tab0 AS cor0 ---- 2838 7462 97 onlyif mysql # use DIV operator for integer division query I rowsort label-9745 SELECT + cor0.col2 + cor0.col1 DIV + ( + col1 ) - - col1 * + 30 FROM tab2 AS cor0 ---- 1797 549 958 skipif mysql # not compatible query I rowsort label-9745 SELECT + cor0.col2 + cor0.col1 / + ( + col1 ) - - col1 * + 30 FROM tab2 AS cor0 ---- 1797 549 958 onlyif mysql # use DIV operator for integer division query I rowsort label-9746 SELECT DISTINCT - col1 DIV col0 + + col2 * col1 FROM tab1 cor0 ---- 1248 1396 570 skipif mysql # not compatible query I rowsort label-9746 SELECT DISTINCT - col1 / col0 + + col2 * col1 FROM tab1 cor0 ---- 1248 1396 570 query I rowsort SELECT - 93 * col2 + + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -3045 -58 -7537 query I rowsort SELECT - 59 + col1 * cor0.col2 - - 81 FROM tab1 AS cor0 ---- 1270 1426 592 query I rowsort SELECT DISTINCT + cor0.col2 * col1 + col0 * + col2 * + col0 AS col2 FROM tab0 AS cor0 ---- 1322 21846 656984 query I rowsort SELECT + col1 - col1 * col2 * + 92 FROM tab1 AS cor0 ---- -114803 -129142 -52430 query I rowsort SELECT DISTINCT + col2 * col2 + col0 AS col2 FROM tab1 AS cor0 ---- 2919 3313 9296 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 21 * cor0.col1 + - 0 col1 FROM tab2 AS cor0 ---- -1239 -357 -651 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9753 SELECT - CAST( NULL AS SIGNED ) + - col0 / tab1.col1 AS col2 FROM tab1 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9753 SELECT - CAST ( NULL AS INTEGER ) + - col0 / tab1.col1 AS col2 FROM tab1 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9754 SELECT CAST( + 38 AS SIGNED ) AS col2 FROM tab1 ---- 38 38 38 skipif mysql # not compatible query I rowsort label-9754 SELECT CAST ( + 38 AS INTEGER ) AS col2 FROM tab1 ---- 38 38 38 query I rowsort SELECT ALL - + cor0.col0 * col0 AS col1 FROM tab1 AS cor0 ---- -4096 -6400 -9 query I rowsort SELECT - 42 + - col0 - - ( - col2 ) FROM tab2 AS cor0 ---- -146 -159 -76 query I rowsort SELECT DISTINCT ( 63 ) * col2 - - col1 * col2 FROM tab2 ---- 2538 3040 3172 query I rowsort SELECT DISTINCT + ( + cor0.col1 ) * + cor0.col2 AS col1 FROM tab1 AS cor0 ---- 1248 1404 570 onlyif mysql # use DIV operator for integer division query I rowsort label-9759 SELECT DISTINCT col1 DIV col0 + + ( - col0 + + col0 * + ( ( + col0 ) ) ) AS col1 FROM tab1 AS cor0 ---- 14 4032 6320 skipif mysql # not compatible query I rowsort label-9759 SELECT DISTINCT col1 / col0 + + ( - col0 + + col0 * + ( ( + col0 ) ) ) AS col1 FROM tab1 AS cor0 ---- 14 4032 6320 onlyif mysql # use DIV operator for integer division query I rowsort label-9760 SELECT DISTINCT + 0 + - col2 DIV + col1 + col1 * col1 col1 FROM tab1 ---- 162 674 95 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9760 SELECT DISTINCT + 0 + - col2 / + col1 + col1 * col1 col1 FROM tab1 ---- 162 674 95 query I rowsort SELECT ALL 78 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to d8e5ef4db3419fc251e82c50ba04e048 query I rowsort SELECT DISTINCT - ( - 99 ) - cor0.col2 FROM tab2 AS cor0 ---- 61 72 73 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + col0 * 35 * cor0.col1 col2 FROM tab0 AS cor0 ---- 118825 283465 72240 query I rowsort SELECT - 62 * col2 AS col2 FROM tab0 cor0 ---- -2046 -5084 -62 query I rowsort SELECT + 24 + 23 AS col0 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7 query I rowsort SELECT ALL - 14 FROM tab1, tab0 AS cor0 ---- 9 values hashing to d321461994ba49c3a70fa6373032fc94 query I rowsort SELECT - ( ( col2 ) ) * col0 FROM tab2 AS cor0 ---- -189 -2028 -3002 onlyif mysql # use DIV operator for integer division query I rowsort label-9768 SELECT ALL - - 92 * col0 + + col1 DIV ( - col2 ) AS col2 FROM tab1 AS cor0 ---- 276 5888 7360 skipif mysql # not compatible query I rowsort label-9768 SELECT ALL - - 92 * col0 + + col1 / ( - col2 ) AS col2 FROM tab1 AS cor0 ---- 276 5888 7360 query I rowsort SELECT + 8 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0 AS cor1 ---- 27 values hashing to 33069adc3c1142d31511ec88fcfa40af query I rowsort SELECT 53 + cor0.col2 AS col2 FROM tab1 AS cor0 ---- 107 110 149 query I rowsort SELECT ALL + + col2 * - 33 * + col2 AS col0 FROM tab2 AS cor0 ---- -22308 -24057 -47652 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + + ( 40 ) * cor0.col2 col0 FROM tab0 AS cor0 ---- 1320 3280 40 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT 98 * - 64 col1 FROM tab0 cor0 ---- -6272 query I rowsort SELECT ALL + ( - col1 ) + - col0 AS col2 FROM tab2 AS cor0 ---- -137 -38 -96 query I rowsort SELECT + col0 * + col2 + col0 AS col1 FROM tab2 AS cor0 ---- 196 2106 3081 query I rowsort SELECT ALL - 23 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9777 SELECT DISTINCT 14 + col2 / CAST( NULL AS SIGNED ) + - ( col0 ) * col2 AS col1 FROM tab0 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9777 SELECT DISTINCT 14 + col2 / CAST ( NULL AS INTEGER ) + - ( col0 ) * col2 AS col1 FROM tab0 AS cor0 ---- NULL query I rowsort SELECT 44 + col1 FROM tab2 AS cor0 ---- 103 61 75 query I rowsort SELECT DISTINCT + cor0.col0 - - col0 * ( col0 + - col1 ) AS col2 FROM tab1 cor0 ---- -66 3520 5440 query I rowsort SELECT ALL - - 65 + + col0 FROM tab0 AS cor0 ---- 100 154 89 query I rowsort SELECT ALL col2 * ( + 5 ) FROM tab1 AS cor0 ---- 270 285 480 query I rowsort SELECT + 90 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 96f7a90428db93f472e0d219bab64853 query I rowsort SELECT DISTINCT - 42 FROM tab1, tab0 AS cor0 ---- -42 query I rowsort SELECT - 17 AS col0 FROM tab1, tab0 cor0 ---- 9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4 query I rowsort SELECT + ( 8 ) * col1 AS col2 FROM tab2 AS cor0 ---- 136 248 472 onlyif mysql # use DIV operator for integer division query I rowsort label-9786 SELECT DISTINCT tab1.col2 DIV 25 + 50 AS col2 FROM tab1, tab2, tab2 AS cor0 ---- 52 53 skipif mysql # not compatible query I rowsort label-9786 SELECT DISTINCT tab1.col2 / 25 + 50 AS col2 FROM tab1, tab2, tab2 AS cor0 ---- 52 53 query I rowsort SELECT col1 - + col2 * + col2 AS col2 FROM tab2 ---- -1427 -617 -698 query I rowsort SELECT DISTINCT - 88 * col0 AS col1 FROM tab0 AS cor0 ---- -2112 -3080 -7832 query I rowsort SELECT ALL 43 + 64 FROM tab0 AS cor0 ---- 107 107 107 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9790 SELECT ALL - - ( + 3 ) * + cor0.col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9790 SELECT ALL - - ( + 3 ) * + cor0.col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + - 95 + - col0 AS col2 FROM tab0 cor0 ---- -119 -130 -184 query I rowsort SELECT + cor0.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd query I rowsort SELECT - col0 + + ( - ( col1 ) ) * + col2 FROM tab0 ---- -132 -2862 -7551 query I rowsort SELECT col2 + + ( - col0 + - col0 * + col0 ) FROM tab1 ---- -4103 -6384 42 query I rowsort SELECT - col2 * + col2 - - 10 FROM tab0 ---- -1079 -6714 9 query I rowsort SELECT cor0.col0 + + cor0.col0 * ( 88 * + col0 ) FROM tab1 AS cor0 ---- 360512 563280 795 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL 27 * + col0 col1 FROM tab1 ---- 1728 2160 81 query I rowsort SELECT ALL + 27 AS col0 FROM tab0, tab2 AS cor0 ---- 9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8 query I rowsort SELECT + + col1 + col2 * - 29 AS col0 FROM tab1 cor0 ---- -1540 -1643 -2771 query I rowsort SELECT ALL + 38 FROM tab1, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to a7827a79248ee7bf2cee915a631d02cb onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9801 SELECT + col1 + - CAST( col0 AS SIGNED ) * col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 skipif mysql # not compatible query I rowsort label-9801 SELECT + col1 + - CAST ( col0 AS INTEGER ) * col2 FROM tab1 AS cor0 ---- -136 -3638 -7667 query I rowsort SELECT - col1 + + 14 * col0 FROM tab2 AS cor0 ---- 1033 1089 67 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL cor0.col2 col2 FROM tab0, tab2 cor0 ---- 9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3 onlyif mysql # use DIV operator for integer division query I rowsort label-9804 SELECT + col0 * col2 DIV tab1.col1 FROM tab1 ---- 364 590 6 skipif mysql # not compatible query I rowsort label-9804 SELECT + col0 * col2 / tab1.col1 FROM tab1 ---- 364 590 6 query I rowsort SELECT ALL + 3 + - col0 * 89 FROM tab2 ---- -620 -6939 -7028 onlyif mysql # use DIV operator for integer division query I rowsort label-9806 SELECT 78 DIV + tab2.col1 FROM tab2 ---- 1 2 4 skipif mysql # not compatible query I rowsort label-9806 SELECT 78 / + tab2.col1 FROM tab2 ---- 1 2 4 query I rowsort SELECT ALL + + tab0.col1 FROM tab0, tab1, tab0 cor0 ---- 27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd query I rowsort SELECT + 45 * col1 FROM tab1 ---- 1170 450 585 query I rowsort SELECT + 75 + col0 * - col1 + - 7 AS col2 FROM tab1 ---- -10 -572 -972 query I rowsort SELECT + + cor0.col1 * 96 FROM tab2 AS cor0 ---- 1632 2976 5664 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9811 SELECT + CAST( NULL AS SIGNED ) * - 49 + col0 * + col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9811 SELECT + CAST ( NULL AS INTEGER ) * - 49 + col0 * + col1 AS col0 FROM tab1 AS cor0 ---- NULL NULL NULL query I rowsort SELECT ALL + col1 + + 43 * col0 AS col2 FROM tab1 AS cor0 ---- 155 2762 3453 onlyif mysql # use DIV operator for integer division query I rowsort label-9813 SELECT ALL - 9 DIV col0 FROM tab1 AS cor0 ---- -3 0 0 skipif mysql # not compatible query I rowsort label-9813 SELECT ALL - 9 / col0 FROM tab1 AS cor0 ---- -3 0 0 query I rowsort SELECT + cor0.col0 + + col1 * - col2 * col1 FROM tab2 AS cor0 ---- -10903 -25940 -90428 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9815 SELECT - tab0.col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9815 SELECT - tab0.col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 ---- NULL NULL NULL onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9816 SELECT + CAST( NULL AS SIGNED ) + ( col2 ) FROM tab2 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9816 SELECT + CAST ( NULL AS INTEGER ) + ( col2 ) FROM tab2 AS cor0 ---- NULL NULL NULL query I rowsort SELECT + 21 FROM tab0 cor0 ---- 21 21 21 query I rowsort SELECT - col2 * - col0 + - 80 * 20 AS col1 FROM tab0 AS cor0 ---- -1565 -808 5698 query I rowsort SELECT 56 * 88 FROM tab0 ---- 4928 4928 4928 query I rowsort SELECT DISTINCT + + col2 + + col1 * cor0.col1 + 46 FROM tab0 AS cor0 ---- 7475 8409 9456 query I rowsort SELECT ALL + + col0 * + col0 + + col2 AS col0 FROM tab1 AS cor0 ---- 4153 63 6496 query I rowsort SELECT ( col0 + col2 ) FROM tab2 ---- 104 117 34 query I rowsort SELECT + col1 * cor0.col2 * + 63 AS col2 FROM tab0 AS cor0 ---- 178794 470106 6111 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9824 SELECT ALL + + col2 + col2 + CAST( NULL AS SIGNED ) * - ( - col2 ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9824 SELECT ALL + + col2 + col2 + CAST ( NULL AS INTEGER ) * - ( - col2 ) col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT - 72 * col1 FROM tab0 AS cor0 ---- -6192 -6552 -6984 query I rowsort SELECT DISTINCT tab1.col1 * + 69 FROM tab1 ---- 1794 690 897 query I rowsort SELECT DISTINCT col1 * + 15 AS col0 FROM tab1 ---- 150 195 390 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9828 SELECT DISTINCT + ( col1 ) * - col2 + col0 * + col1 - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 ---- -128 -1323 134 skipif mysql # not compatible query I rowsort label-9828 SELECT DISTINCT + ( col1 ) * - col2 + col0 * + col1 - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 ---- -128 -1323 134 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9829 SELECT - col1 + col0 + CAST( 91 AS SIGNED ) FROM tab0 ---- 29 29 89 skipif mysql # not compatible query I rowsort label-9829 SELECT - col1 + col0 + CAST ( 91 AS INTEGER ) FROM tab0 ---- 29 29 89 query I rowsort SELECT + 18 + - col0 - - 31 FROM tab0 ---- -40 14 25 query I rowsort SELECT + + ( cor0.col1 ) * col1 AS col2 FROM tab2 AS cor0 ---- 289 3481 961 query I rowsort SELECT DISTINCT 19 + 92 AS col1 FROM tab1, tab1 AS cor0 ---- 111 query I rowsort SELECT - col0 + - 48 FROM tab0 AS cor0 ---- -137 -72 -83 onlyif mysql # use DIV operator for integer division query I rowsort label-9834 SELECT - col2 * cor0.col2 DIV - col1 + + col2 DIV - col1 FROM tab0 AS cor0 ---- 0 12 73 skipif mysql # not compatible query I rowsort label-9834 SELECT - col2 * cor0.col2 / - col1 + + col2 / - col1 FROM tab0 AS cor0 ---- 0 12 73 query I rowsort SELECT + col0 * cor0.col1 * 77 FROM tab2 AS cor0 ---- 103411 16709 354354 query I rowsort SELECT - col0 - 49 * col2 * ( - 60 ) FROM tab0 ---- 240991 2905 96996 query I rowsort SELECT ( - col2 ) + - col0 AS col2 FROM tab0 AS cor0 ---- -171 -36 -57 query I rowsort SELECT - 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 ---- 9 values hashing to f800b0aad28b82b2deb67f7045c9a45c skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + col0 * cor0.col1 col1 FROM tab1 AS cor0 ---- 1040 640 78 query I rowsort SELECT col2 + 18 * + ( col2 * 80 ) AS col2 FROM tab1 AS cor0 ---- 138336 77814 82137 query I rowsort SELECT - - cor0.col2 + col0 * col2 AS col0 FROM tab1 AS cor0 ---- 216 3705 7776 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9842 SELECT DISTINCT + - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9842 SELECT DISTINCT + - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9843 SELECT col2 DIV - 21 AS col2 FROM tab2 AS cor0 ---- -1 -1 -1 skipif mysql # not compatible query I rowsort label-9843 SELECT col2 / - 21 AS col2 FROM tab2 AS cor0 ---- -1 -1 -1 query I rowsort SELECT DISTINCT - col2 * - ( 44 + col2 ) FROM tab1 AS cor0 ---- 13440 5292 5757 onlyif mysql # use DIV operator for integer division query I rowsort label-9845 SELECT ALL - - cor0.col0 DIV col2 col2 FROM tab1 cor0 ---- 0 0 1 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9845 SELECT ALL - - cor0.col0 / col2 col2 FROM tab1 cor0 ---- 0 0 1 query I rowsort SELECT + 7 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 ---- 27 values hashing to 4e72e9e33dacac757f48d0ce46094607 query I rowsort SELECT + - cor0.col2 * - 29 FROM tab1 AS cor0 ---- 1566 1653 2784 onlyif mysql # use DIV operator for integer division query I rowsort label-9848 SELECT + cor0.col2 DIV + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 0 0 3 skipif mysql # not compatible query I rowsort label-9848 SELECT + cor0.col2 / + cor0.col0 AS col2 FROM tab2 AS cor0 ---- 0 0 3 query I rowsort SELECT ALL - - col0 * + 68 FROM tab1 AS cor0 ---- 204 4352 5440 onlyif mysql # use DIV operator for integer division query I rowsort label-9850 SELECT ALL - col0 DIV 87 FROM tab0 AS cor0 ---- -1 0 0 skipif mysql # not compatible query I rowsort label-9850 SELECT ALL - col0 / 87 FROM tab0 AS cor0 ---- -1 0 0 query I rowsort SELECT - col0 + - ( + ( tab1.col0 ) ) FROM tab1 ---- -128 -160 -6 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9852 SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b skipif mysql # not compatible query I rowsort label-9852 SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 cor0 ---- 9 values hashing to cd7a7901e47c15155404aff0d216fe0b query I rowsort SELECT DISTINCT + 79 * 35 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 2765 query I rowsort SELECT ALL 29 * cor0.col0 AS col2 FROM tab2 AS cor0 ---- 203 2262 2291 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 56 * col1 + - col2 col1 FROM tab2 AS cor0 ---- -1763 -3330 -990 query I rowsort SELECT DISTINCT + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2 ---- 7 78 79 query I rowsort SELECT cor0.col2 + + 34 FROM tab2, tab2 AS cor0 ---- 9 values hashing to 779050ff6cf067319a445afdffccbb0b onlyif mysql # use DIV operator for integer division query I rowsort label-9858 SELECT col2 * col1 + col2 DIV - col1 + col1 AS col0 FROM tab0 AS cor0 ---- 194 2924 7553 skipif mysql # not compatible query I rowsort label-9858 SELECT col2 * col1 + col2 / - col1 + col1 AS col0 FROM tab0 AS cor0 ---- 194 2924 7553 query I rowsort SELECT DISTINCT + 0 + + col2 AS col1 FROM tab1 AS cor0 ---- 54 57 96 query I rowsort SELECT DISTINCT - cor0.col1 FROM tab1, tab2 cor0, tab2, tab2 AS cor1 ---- -17 -31 -59 query I rowsort SELECT ALL + 95 AS col1 FROM tab0, tab0 AS cor0 ---- 9 values hashing to e57d8ed879dfd04d04aae87725c970d3 query I rowsort SELECT + 42 * tab1.col1 * col1 AS col0 FROM tab1 ---- 28392 4200 7098 query I rowsort SELECT DISTINCT + 98 * col1 AS col1 FROM tab2 ---- 1666 3038 5782 query I rowsort SELECT + col0 * + col0 - ( - 97 ) * col0 AS col2 FROM tab0 ---- 16554 2904 4620 query I rowsort SELECT - 56 - col0 AS col2 FROM tab0 ---- -145 -80 -91 query I rowsort SELECT - 53 FROM tab0, tab2, tab1 cor0 ---- 27 values hashing to 2876418587c77a182d88db2907b0a51a skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT 18 + col1 col0 FROM tab1 ---- 28 31 44 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9868 SELECT ALL ( tab0.col1 ) * - CAST( NULL AS SIGNED ) + col1 FROM tab0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9868 SELECT ALL ( tab0.col1 ) * - CAST ( NULL AS INTEGER ) + col1 FROM tab0 ---- NULL NULL NULL query I rowsort SELECT + col0 + 20 * 99 FROM tab0 AS cor0 ---- 2004 2015 2069 query I rowsort SELECT DISTINCT - tab1.col0 + - col2 AS col1 FROM tab1 ---- -121 -176 -57 query I rowsort SELECT col1 * + col0 + ( + col2 ) FROM tab2 ---- 1381 244 4628 query I rowsort SELECT DISTINCT - col0 * - 52 AS col2 FROM tab1 ---- 156 3328 4160 query I rowsort SELECT ALL + cor0.col0 AS col1 FROM tab0, tab2, tab0 AS cor0 ---- 27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9874 SELECT ALL + - cor0.col1 * - CAST( NULL AS DECIMAL ) * - ( + col2 ) + 27 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9874 SELECT ALL + - cor0.col1 * - CAST ( NULL AS REAL ) * - ( + col2 ) + 27 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT col0 * - ( + col0 * col2 ) FROM tab2 ---- -1323 -158184 -237158 query I rowsort SELECT cor0.col1 * - col0 + + col0 * - col2 AS col0 FROM tab1 AS cor0 ---- -240 -4288 -8720 query I rowsort SELECT DISTINCT col2 + - ( col1 ) AS col1 FROM tab0 AS cor0 ---- -53 -9 -96 query I rowsort SELECT + col2 * - ( - 74 ) + + col0 AS col0 FROM tab0 AS cor0 ---- 109 2466 6157 onlyif mysql # use DIV operator for integer division query I rowsort label-9879 SELECT DISTINCT + col2 DIV + col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 skipif mysql # not compatible query I rowsort label-9879 SELECT DISTINCT + col2 / + col1 AS col2 FROM tab1 AS cor0 ---- 2 5 7 query I rowsort SELECT ALL + col2 + ( - col1 ) * col0 AS col0 FROM tab2 cor0 ---- -1305 -190 -4576 query I rowsort SELECT - 30 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 ---- 27 values hashing to a96370a8187089b6b83ce9bfbade5142 query I rowsort SELECT ALL col1 * col0 + + col0 * + col0 * + cor0.col2 FROM tab0 AS cor0 ---- 21072 4620 657621 query I rowsort SELECT ALL + - col0 * cor0.col0 + - cor0.col1 FROM tab2 AS cor0 ---- -6143 -6258 -80 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9884 SELECT CAST( + col1 AS SIGNED ) * + tab1.col0 AS col2 FROM tab1 ---- 1040 640 78 skipif mysql # not compatible query I rowsort label-9884 SELECT CAST ( + col1 AS INTEGER ) * + tab1.col0 AS col2 FROM tab1 ---- 1040 640 78 query I rowsort SELECT DISTINCT + 43 + + col2 * tab1.col1 AS col0 FROM tab1 ---- 1291 1447 613 query I rowsort SELECT ALL - col1 + - 67 FROM tab1 ---- -77 -80 -93 onlyif mysql # use DIV operator for integer division query I rowsort label-9887 SELECT - col0 * col1 * + cor0.col0 + + col1 * col2 - col0 DIV - 41 AS col2 FROM tab0 AS cor0 ---- -118728 -46698 -713347 skipif mysql # not compatible query I rowsort label-9887 SELECT - col0 * col1 * + cor0.col0 + + col1 * col2 - col0 / - 41 AS col2 FROM tab0 AS cor0 ---- -118728 -46698 -713347 query I rowsort SELECT ALL ( 33 ) * - col2 FROM tab1 AS cor0 ---- -1782 -1881 -3168 onlyif mysql # use DIV operator for integer division query I rowsort label-9889 SELECT + 63 DIV - col0 AS col1 FROM tab1 ---- -21 0 0 skipif mysql # not compatible query I rowsort label-9889 SELECT + 63 / - col0 AS col1 FROM tab1 ---- -21 0 0 query I rowsort SELECT - 90 - cor0.col0 AS col0 FROM tab0 cor0 ---- -114 -125 -179 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + + col0 * col1 + + 20 col0 FROM tab2 cor0 ---- 1363 237 4622 query I rowsort SELECT DISTINCT - - 26 + + col0 AS col0 FROM tab0 AS cor0 ---- 115 50 61 query I rowsort SELECT ALL + col2 * - col2 + 86 - 77 FROM tab0 AS cor0 ---- -1080 -6715 8 query I rowsort SELECT - - 71 AS col1 FROM tab0 cor0 ---- 71 71 71 query I rowsort SELECT ALL - + 27 * + cor0.col2 - - ( col0 ) * col0 FROM tab2 AS cor0 ---- -680 5215 5382 query I rowsort SELECT DISTINCT 70 AS col0 FROM tab2 AS cor0 ---- 70 onlyif mysql # use DIV operator for integer division query I rowsort label-9897 SELECT ALL col2 + + col2 DIV 16 AS col2 FROM tab2 AS cor0 ---- 27 28 40 skipif mysql # not compatible query I rowsort label-9897 SELECT ALL col2 + + col2 / 16 AS col2 FROM tab2 AS cor0 ---- 27 28 40 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL + 13 * + col2 + + 34 col0 FROM tab2 AS cor0 ---- 372 385 528 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9899 SELECT DISTINCT + + col2 + - col1 + CAST( cor0.col0 + + col1 AS SIGNED ) FROM tab2 cor0 ---- 104 117 34 skipif mysql # not compatible query I rowsort label-9899 SELECT DISTINCT + + col2 + - col1 + CAST ( cor0.col0 + + col1 AS INTEGER ) FROM tab2 cor0 ---- 104 117 34 query I rowsort SELECT col1 * col0 + ( - ( + col0 ) ) FROM tab2 AS cor0 ---- 1264 210 4524 query I rowsort SELECT - + cor0.col2 * col1 + - 17 * col1 FROM tab2 AS cor0 ---- -1364 -2537 -935 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9902 SELECT DISTINCT col1 + - col0 * + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- -1978 -3298 -8008 skipif mysql # not compatible query I rowsort label-9902 SELECT DISTINCT col1 + - col0 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- -1978 -3298 -8008 onlyif mysql # use DIV operator for integer division query I rowsort label-9903 SELECT ALL - 60 DIV col1 + col2 FROM tab0 ---- 1 33 82 skipif mysql # not compatible query I rowsort label-9903 SELECT ALL - 60 / col1 + col2 FROM tab0 ---- 1 33 82 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - + 57 col0 FROM tab2, tab1, tab2 AS cor0 ---- 27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505 query I rowsort SELECT DISTINCT + + 97 + + col1 AS col1 FROM tab0 AS cor0 ---- 183 188 194 query I rowsort SELECT ALL - - col0 - col0 AS col0 FROM tab0 AS cor0 ---- 0 0 0 query I rowsort SELECT 51 - - col0 AS col0 FROM tab2 AS cor0 ---- 129 130 58 query I rowsort SELECT ALL ( 46 ) FROM tab0 ---- 46 46 46 onlyif mysql # use DIV operator for integer division query I rowsort label-9909 SELECT DISTINCT + - col1 DIV col2 AS col2 FROM tab0 cor0 ---- -1 -2 -97 skipif mysql # not compatible query I rowsort label-9909 SELECT DISTINCT + - col1 / col2 AS col2 FROM tab0 cor0 ---- -1 -2 -97 query I rowsort SELECT ALL + - ( - col2 ) + col0 FROM tab0 AS cor0 ---- 171 36 57 query I rowsort SELECT - col0 + cor0.col1 * ( col2 ) - - col2 AS col1 FROM tab1 AS cor0 ---- 1264 1455 563 query I rowsort SELECT - 38 FROM tab1, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to e8c064543bf0f2e57329db1bb0a411e3 query I rowsort SELECT + ( col2 ) * - 72 AS col2 FROM tab2 ---- -1872 -1944 -2736 query I rowsort SELECT - col2 * 88 AS col2 FROM tab0 AS cor0 ---- -2904 -7216 -88 query I rowsort SELECT cor0.col0 + + cor0.col1 * + col0 FROM tab2 AS cor0 ---- 1422 224 4680 query I rowsort SELECT col0 + col1 * col1 * col1 AS col1 FROM tab0 AS cor0 ---- 636080 753660 912708 query I rowsort SELECT 9 * - col2 AS col0 FROM tab1 AS cor0 ---- -486 -513 -864 query I rowsort SELECT + + cor0.col1 * + col0 * col1 FROM tab0 AS cor0 ---- 177504 329315 737009 query I rowsort SELECT + + 97 + 83 * col1 FROM tab0 AS cor0 ---- 7235 7650 8148 query I rowsort SELECT DISTINCT + tab1.col1 * - 26 * tab1.col0 AS col1 FROM tab1 ---- -16640 -2028 -27040 query I rowsort SELECT + col1 * + ( col1 + + col1 ) FROM tab0 ---- 14792 16562 18818 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9922 SELECT - + CAST( col0 AS SIGNED ) + col2 * col2 AS col1 FROM tab1 AS cor0 ---- 2913 3185 9136 skipif mysql # not compatible query I rowsort label-9922 SELECT - + CAST ( col0 AS INTEGER ) + col2 * col2 AS col1 FROM tab1 AS cor0 ---- 2913 3185 9136 query I rowsort SELECT DISTINCT 19 * 41 AS col0 FROM tab0 ---- 779 onlyif mysql # use DIV operator for integer division query I rowsort label-9924 SELECT ( - col1 ) * + col0 + 96 DIV col2 col0 FROM tab0 ---- -2062 -3299 -8098 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9924 SELECT ( - col1 ) * + col0 + 96 / col2 col0 FROM tab0 ---- -2062 -3299 -8098 query I rowsort SELECT DISTINCT 11 * - col2 FROM tab2 ---- -286 -297 -418 query I rowsort SELECT - + 88 * 53 FROM tab2 AS cor0 ---- -4664 -4664 -4664 query I rowsort SELECT ALL + - 1 + col2 FROM tab2 AS cor0 ---- 25 26 37 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9928 SELECT cor1.col0 * CAST( 95 AS SIGNED ) col0 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 25264c761887da0ddfea5da88ca3d538 skipif postgresql # PostgreSQL requires AS when renaming output columns skipif mysql # not compatible query I rowsort label-9928 SELECT cor1.col0 * CAST ( 95 AS INTEGER ) col0 FROM tab1, tab1 AS cor0, tab1 AS cor1 ---- 27 values hashing to 25264c761887da0ddfea5da88ca3d538 query I rowsort SELECT col2 * - 17 AS col1 FROM tab1 AS cor0 ---- -1632 -918 -969 query I rowsort SELECT ALL - col2 + col1 - 97 FROM tab0 AS cor0 ---- -1 -44 -88 query I rowsort SELECT ALL cor0.col2 * - col0 + col1 * + ( - col0 + - col1 ) FROM tab2 AS cor0 ---- -10111 -1367 -4634 query I rowsort SELECT - - 87 + - col2 FROM tab0 AS cor0 ---- 5 54 86 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT + 8 col0 FROM tab0 cor0 ---- 8 query I rowsort SELECT ALL 74 + + cor0.col0 AS col1 FROM tab0 AS cor0 ---- 109 163 98 query I rowsort SELECT - tab0.col0 - col2 * - tab0.col1 * - col2 FROM tab0 ---- -132 -611973 -93678 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9936 SELECT CAST( + col0 AS SIGNED ) + col2 AS col0 FROM tab0 ---- 171 36 57 skipif mysql # not compatible query I rowsort label-9936 SELECT CAST ( + col0 AS INTEGER ) + col2 AS col0 FROM tab0 ---- 171 36 57 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9937 SELECT DISTINCT col2 * CAST( - col0 AS SIGNED ) AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 skipif mysql # not compatible query I rowsort label-9937 SELECT DISTINCT col2 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 cor0 ---- -162 -3648 -7680 onlyif mysql # use DIV operator for integer division query I rowsort label-9938 SELECT ALL + col2 + - col1 * col1 DIV - col2 AS col0 FROM tab1 AS cor0 ---- 58 66 97 skipif mysql # not compatible query I rowsort label-9938 SELECT ALL + col2 + - col1 * col1 / - col2 AS col0 FROM tab1 AS cor0 ---- 58 66 97 query I rowsort SELECT - col1 * col2 * - 22 + - col0 * col0 FROM tab1 AS cor0 ---- 21056 30879 8444 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ALL - cor0.col2 * - col2 + + col2 col2 FROM tab2 AS cor0 ---- 1482 702 756 onlyif mysql # use DIV operator for integer division query I rowsort label-9941 SELECT + cor0.col2 DIV - col0 + 12 * col2 AS col1 FROM tab2 AS cor0 ---- 312 321 456 skipif mysql # not compatible query I rowsort label-9941 SELECT + cor0.col2 / - col0 + 12 * col2 AS col1 FROM tab2 AS cor0 ---- 312 321 456 query I rowsort SELECT col2 + - ( - cor0.col0 ) * col2 AS col2 FROM tab0 AS cor0 ---- 36 7380 825 query I rowsort SELECT - cor0.col1 * 0 + - col0 AS col1 FROM tab0 AS cor0 ---- -24 -35 -89 query I rowsort SELECT ALL 26 FROM tab0, tab1 cor0, tab0 AS cor1 ---- 27 values hashing to ede8226bb7e602e221f9d98345b4da37 query I rowsort SELECT + + col0 - + col1 FROM tab0 cor0 ---- -2 -62 -62 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9946 SELECT DISTINCT - col1 * CAST( + 16 AS SIGNED ) FROM tab1 AS cor0 ---- -160 -208 -416 skipif mysql # not compatible query I rowsort label-9946 SELECT DISTINCT - col1 * CAST ( + 16 AS INTEGER ) FROM tab1 AS cor0 ---- -160 -208 -416 query I rowsort SELECT 52 + 48 FROM tab2, tab0 AS cor0 ---- 9 values hashing to fdbc64d082fd12518b9c868f375d2675 onlyif mysql # use DIV operator for integer division query I rowsort label-9948 SELECT + col2 + ( col0 ) DIV + col1 AS col2 FROM tab1 AS cor0 ---- 102 54 63 skipif mysql # not compatible query I rowsort label-9948 SELECT + col2 + ( col0 ) / + col1 AS col2 FROM tab1 AS cor0 ---- 102 54 63 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + cor1.col2 + 91 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1 ---- 27 values hashing to fe26d3256f74c78ce5159e67cb3aad95 query I rowsort SELECT DISTINCT - 54 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1 ---- -54 query I rowsort SELECT ALL + col0 * col1 + ( + cor0.col1 ) FROM tab0 AS cor0 ---- 2150 3492 8190 query I rowsort SELECT - 44 + cor0.col0 AS col1 FROM tab0 AS cor0 ---- -20 -9 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT ( + 21 ) col1 FROM tab1, tab0 AS cor0 ---- 9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9954 SELECT ALL ( + col0 ) * - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9954 SELECT ALL ( + col0 ) * - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0 ---- NULL NULL NULL query I rowsort SELECT DISTINCT 18 AS col0 FROM tab1 ---- 18 onlyif mysql # use DIV operator for integer division query I rowsort label-9956 SELECT ALL + 38 DIV col1 + + col0 + 25 AS col1 FROM tab1 AS cor0 ---- 107 29 92 skipif mysql # not compatible query I rowsort label-9956 SELECT ALL + 38 / col1 + + col0 + 25 AS col1 FROM tab1 AS cor0 ---- 107 29 92 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - 44 * col1 col1 FROM tab0 AS cor0 ---- -3784 -4004 -4268 query I rowsort SELECT DISTINCT + 66 * col1 FROM tab1 AS cor0 ---- 1716 660 858 query I rowsort SELECT DISTINCT cor0.col2 * - ( + col2 * - cor0.col0 ) FROM tab1 AS cor0 ---- 207936 737280 8748 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9960 SELECT ALL - col0 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0 ---- -35 -7298 -792 skipif mysql # not compatible query I rowsort label-9960 SELECT ALL - col0 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 ---- -35 -7298 -792 query I rowsort SELECT DISTINCT - + col0 * + ( col0 ) + col2 FROM tab1 cor0 ---- -4039 -6304 45 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT + + col2 + + 44 col2 FROM tab1 AS cor0 ---- 101 140 98 query I rowsort SELECT DISTINCT - - col2 + + cor0.col1 * col2 AS col2 FROM tab1 AS cor0 ---- 1344 1458 627 query I rowsort SELECT ALL col1 * col2 - col0 FROM tab1 AS cor0 ---- 1168 1401 506 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9965 SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) + - col1 * col2 AS col1 FROM tab1 AS cor0 ---- NULL skipif mysql # not compatible query I rowsort label-9965 SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) + - col1 * col2 AS col1 FROM tab1 AS cor0 ---- NULL onlyif mysql # use DIV operator for integer division query I rowsort label-9966 SELECT - + col2 DIV 51 AS col1 FROM tab2 AS cor0 ---- 0 0 0 skipif mysql # not compatible query I rowsort label-9966 SELECT - + col2 / 51 AS col1 FROM tab2 AS cor0 ---- 0 0 0 query I rowsort SELECT ALL - - col1 * 7 AS col1 FROM tab1 cor0 ---- 182 70 91 query I rowsort SELECT DISTINCT + - col0 * ( col2 ) FROM tab2 cor0 ---- -189 -2028 -3002 query I rowsort SELECT DISTINCT - cor0.col1 - + 42 * + 58 AS col0 FROM tab1 AS cor0 ---- -2446 -2449 -2462 query I rowsort SELECT DISTINCT + + col2 + + cor0.col2 * 33 AS col0 FROM tab1 AS cor0 ---- 1836 1938 3264 query I rowsort SELECT DISTINCT - + col0 + col1 * col0 FROM tab0 AS cor0 ---- 2040 3360 8010 onlyif mysql # use DIV operator for integer division query I rowsort label-9972 SELECT DISTINCT + + col0 + CAST( col1 AS SIGNED ) + col0 DIV + ( col1 ) AS col1 FROM tab0 AS cor0 ---- 110 132 180 skipif mysql # not compatible query I rowsort label-9972 SELECT DISTINCT + + col0 + CAST ( col1 AS INTEGER ) + col0 / + ( col1 ) AS col1 FROM tab0 AS cor0 ---- 110 132 180 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9973 SELECT ALL + + col2 / CAST( NULL AS SIGNED ) + col0 * - col1 AS col1 FROM tab1 cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9973 SELECT ALL + + col2 / CAST ( NULL AS INTEGER ) + col0 * - col1 AS col1 FROM tab1 cor0 ---- NULL NULL NULL query I rowsort SELECT ALL - + col2 * - 38 + 96 AS col2 FROM tab2 AS cor0 ---- 1084 1122 1540 query I rowsort SELECT ALL col0 + - col0 * ( - col0 + + 23 ) FROM tab0 cor0 ---- 455 48 5963 query I rowsort SELECT DISTINCT + tab0.col0 FROM tab0 WHERE NOT col0 + col0 * col1 BETWEEN NULL AND col1 / - col2 ---- 24 35 89 query I rowsort SELECT col0 * - col2 * - col0 + tab1.col0 * + tab1.col0 FROM tab1 ---- 237568 495 620800 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col0 * - tab2.col0 * - col1 col2 FROM tab2 ---- 106097 1519 358956 query I rowsort SELECT ALL tab0.col2 * + col2 AS col1 FROM tab0 ---- 1 1089 6724 query I rowsort SELECT DISTINCT - col1 * col0 + + col0 + col0 * - col0 AS col2 FROM tab1 ---- -4672 -7360 -84 query I rowsort SELECT col0 * - col0 FROM tab2 WHERE NULL IN ( - col0 * tab2.col2 * + col1 + - col1 * tab2.col2 ) ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9982 SELECT DISTINCT col0 * - tab1.col1 + col1 DIV col1 + + col0 FROM tab1 ---- -575 -74 -959 skipif mysql # not compatible query I rowsort label-9982 SELECT DISTINCT col0 * - tab1.col1 + col1 / col1 + + col0 FROM tab1 ---- -575 -74 -959 query I rowsort SELECT ALL col0 * col2 * - col0 + + col1 AS col0 FROM tab2 ---- -1292 -158125 -237141 onlyif mysql # use DIV operator for integer division query I rowsort label-9984 SELECT col0 + + col1 DIV + col0 AS col2 FROM tab1 ---- 11 64 80 skipif mysql # not compatible query I rowsort label-9984 SELECT col0 + + col1 / + col0 AS col2 FROM tab1 ---- 11 64 80 query I rowsort SELECT - col0 * + col1 + - col2 AS col2 FROM tab0 ---- -2097 -3396 -8181 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9986 SELECT col2 + col0 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 ---- 2097 3396 8181 skipif mysql # not compatible query I rowsort label-9986 SELECT col2 + col0 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 ---- 2097 3396 8181 query I rowsort SELECT DISTINCT ( col1 ) * + ( col0 ) * + col0 + 32 FROM tab0 AS cor0 ---- 118857 49568 720843 query I rowsort SELECT ALL - col2 + col2 * col0 * col0 + + tab1.col2 AS col0 FROM tab1 ---- 233472 486 614400 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT col2 - col2 * + col1 col0 FROM tab1 ---- -1152 -1350 -513 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL >= col0 * col0 ---- onlyif mysql # use DIV operator for integer division query I rowsort label-9991 SELECT tab1.col2 DIV - col0 AS col0 FROM tab1 ---- -1 -18 0 skipif mysql # not compatible query I rowsort label-9991 SELECT tab1.col2 / - col0 AS col0 FROM tab1 ---- -1 -18 0 query I rowsort SELECT DISTINCT - col1 * + col0 * + col1 + - col2 + col2 * + tab1.col0 * + col2 FROM tab1 ---- 201479 6666 723664 query I rowsort SELECT + col2 * col2 * col0 FROM tab2 ---- 114076 5103 52728 query I rowsort SELECT tab1.col1 * - col2 * + col2 AS col0 FROM tab1 ---- -119808 -32490 -75816 query III rowsort SELECT * FROM tab1 WHERE NOT ( + col0 + col1 ) NOT BETWEEN NULL AND + col0 ---- skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - 7 * col0 col2 FROM tab2 AS cor0 ---- -49 -546 -553 skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT - col1 + col1 * + ( - col1 ) col2 FROM tab1 AS cor0 ---- -110 -182 -702 onlyif mysql # support for MySQL specific system types and syntax query I rowsort label-9998 SELECT cor0.col2 * - col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif mysql # not compatible query I rowsort label-9998 SELECT cor0.col2 * - col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0 ---- NULL NULL NULL skipif postgresql # PostgreSQL requires AS when renaming output columns query I rowsort SELECT DISTINCT - col0 + + cor0.col2 col2 FROM tab2 AS cor0 ---- -41 -52 20