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 - col2 * - cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT col0 * ( col1 ) + - col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT DISTINCT col2 * 26 + col0 + col0 * col0 AS col1 FROM tab1
----
1416
5642
8976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 * col0 - - 30 col1 FROM tab0 cor0
----
-2058
-3015
-7713
onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT DISTINCT - 59 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT - 59 / col2 AS col0 FROM tab1 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * + col2 col2 FROM tab1
----
-2700
-2850
-4800
query I rowsort
SELECT + - col0 + - 60 FROM tab0 AS cor0
----
-149
-84
-95
skipif mysql # not compatible
query I rowsort
SELECT ALL - - cor0.col1 * CAST ( - col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8
SELECT DISTINCT - + col1 + + CAST( 41 AS SIGNED ) FROM tab2 AS cor0
----
-18
10
24
skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT - + col1 + + CAST ( 41 AS INTEGER ) FROM tab2 AS cor0
----
-18
10
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9
SELECT ALL - col0 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + - ( col1 ) FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-11
SELECT DISTINCT + col0 * col2 DIV col0 AS col0 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT + col0 * col2 / col0 AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - col2 * col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT col2 * col0 + 53 * col2 * 14 FROM tab0 AS cor0
----
25278
68142
777
onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT - col1 DIV ( col1 ) AS col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-14
SELECT - col1 / ( col1 ) AS col1 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-15
SELECT col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-15
SELECT col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-16
SELECT DISTINCT + 8 - ( + cor0.col1 ) DIV 36 FROM tab1 AS cor0
----
8
skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT + 8 - ( + cor0.col1 ) / 36 FROM tab1 AS cor0
----
8
query I rowsort
SELECT 88 - + col1 FROM tab0 AS cor0
----
-3
-9
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col1 ) col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + - col0 + col1 - col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + - ( 56 ) FROM tab0 AS cor0
----
-56
-56
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-21
SELECT DISTINCT CAST( cor0.col2 AS SIGNED ) + + col0 col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT CAST ( cor0.col2 AS INTEGER ) + + col0 col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + 28 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-10
1
2
query I rowsort
SELECT ALL ( + 81 ) AS col2 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT - 57 * cor0.col1 - col2 FROM tab0 AS cor0
----
-4935
-5269
-5530
query I rowsort
SELECT DISTINCT - - 34 + 94 - col1 AS col2 FROM tab1 AS cor0
----
102
115
118
query I rowsort
SELECT DISTINCT ( col0 ) * col0 * - col1 + - ( col1 + - 57 ) * - col1 * - cor0.col1 FROM tab0 AS cor0
----
-1002365
-264020
-495185
query I rowsort
SELECT ALL - - col1 - - cor0.col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - col1 + - 5 AS col2 FROM tab1 AS cor0
----
-15
-18
-31
query I rowsort
SELECT ALL + col1 * 69 + col2 FROM tab1 AS cor0
----
1848
747
993
query I rowsort
SELECT - - 11 * col2 AS col0 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT DISTINCT + + col0 - - col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - 14 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
query I rowsort
SELECT - 18 + col0 AS col2 FROM tab2 AS cor0
----
-11
60
61
query I rowsort
SELECT DISTINCT - 2 * col2 - + 25 * col2 AS col1 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT DISTINCT + ( - col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + - 33 FROM tab0, tab2 AS cor0 CROSS JOIN tab2 cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
query I rowsort
SELECT + + cor0.col1 + col0 * 32 FROM tab2 AS cor0
----
2545
255
2555
query I rowsort
SELECT - col2 * cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - 25 - col2 * 91 FROM tab2 AS cor0
----
-2391
-2482
-3483
query I rowsort
SELECT + + col0 * cor0.col1 - - col2 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-41
SELECT col2 DIV + col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-41
SELECT col2 / + col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-36
query I rowsort
SELECT tab1.col1 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT + - 61 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT cor0.col2 + 65 FROM tab0, tab1 AS cor0
----
9 values hashing to a30edc5076a8d465f52d7dbc30da9a32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + - col1 col2 FROM tab0
----
-43
-48
-54
query I rowsort
SELECT - ( col2 ) * - cor0.col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL 32 * + col2 FROM tab1
----
1728
1824
3072
query I rowsort
SELECT 82 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT DISTINCT 55 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
55
query I rowsort
SELECT - + col0 + col1 * col1 * col2 FROM tab2 AS cor0
----
10903
25940
90428
query I rowsort
SELECT DISTINCT 62 FROM tab0, tab1 AS cor0
----
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-53
SELECT - CAST( col2 AS SIGNED ) + col0 + 99 AS col0 FROM tab1
----
106
48
83
skipif mysql # not compatible
query I rowsort label-53
SELECT - CAST ( col2 AS INTEGER ) + col0 + 99 AS col0 FROM tab1
----
106
48
83
query I rowsort
SELECT 13 + col2 + + 54 * col0 FROM tab0 AS cor0
----
1342
1904
4901
query I rowsort
SELECT + col0 * - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT - ( + 6 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT - col0 + col0 + col0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + 81 + cor0.col0 AS col0 FROM tab1 AS cor0
----
145
161
84
query I rowsort
SELECT ALL cor0.col1 * - col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT col1 * cor0.col2 AS col2 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT DISTINCT - + col0 * + cor0.col1 + + col2 DIV - col0 - - col0 FROM tab2 cor0
----
-1264
-213
-4524
skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT - + col0 * + cor0.col1 + + col2 / - col0 - - col0 FROM tab2 cor0
----
-1264
-213
-4524
query I rowsort
SELECT ALL 13 + - col2 AS col0 FROM tab2
----
-13
-14
-25
onlyif mysql # use DIV operator for integer division
query I rowsort label-63
SELECT DISTINCT + col1 * - col1 + + tab2.col1 DIV 27 FROM tab2
----
-289
-3479
-960
skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT + col1 * - col1 + + tab2.col1 / 27 FROM tab2
----
-289
-3479
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 - + 52 col2 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to 8a1640c57b1733d008709876c20acac6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 + - cor0.col2 * + ( - col1 ) col0 FROM tab2 AS cor0
----
1630
742
933
query I rowsort
SELECT - ( col0 ) * col1 + + 48 AS col1 FROM tab1 AS cor0
----
-30
-592
-992
query I rowsort
SELECT ALL 5 * col2 + + col2 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
103
284
583
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - col0 * col2 + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL col1 * - 32 FROM tab1 AS cor0
----
-320
-416
-832
query I rowsort
SELECT DISTINCT + col1 * - col0 - + 3 AS col1 FROM tab2 AS cor0
----
-1346
-220
-4605
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 57 col1 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT ALL + col1 + - 93 AS col2 FROM tab1 AS cor0
----
-67
-80
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-74
SELECT + + cor0.col1 DIV - cor0.col2 col0 FROM tab0 cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-74
SELECT + + cor0.col1 / - cor0.col2 col0 FROM tab0 cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-75
SELECT col2 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-75
SELECT col2 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT - ( - col2 ) + - col0 + 83 AS col1 FROM tab1
----
134
76
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-77
SELECT col2 DIV + col2 + col0 * 66 AS col0 FROM tab0
----
1585
2311
5875
skipif mysql # not compatible
query I rowsort label-77
SELECT col2 / + col2 + col0 * 66 AS col0 FROM tab0
----
1585
2311
5875
query I rowsort
SELECT DISTINCT - 25 + + cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
-1
10
64
query I rowsort
SELECT tab0.col1 * + col1 - 8 AS col1 FROM tab0
----
7388
8273
9401
query I rowsort
SELECT col2 * + 80 + col1 AS col0 FROM tab0 AS cor0
----
177
2726
6651
query I rowsort
SELECT DISTINCT + col1 + - ( 56 ) FROM tab0 AS cor0
----
30
35
41
query I rowsort
SELECT ALL - col1 * + ( 71 * col0 ) AS col2 FROM tab0 cor0
----
-146544
-241045
-575029
query I rowsort
SELECT + col2 + - 15 FROM tab0 AS cor0
----
-14
18
67
query I rowsort
SELECT - col1 + col2 * col2 AS col1 FROM tab0 cor0
----
-96
1003
6633
query I rowsort
SELECT 95 * 85 FROM tab2 cor0
----
8075
8075
8075
query I rowsort
SELECT + 50 * + col0 AS col2 FROM tab2 AS cor0
----
350
3900
3950
query I rowsort
SELECT ALL - + 6 FROM tab1 cor0
----
-6
-6
-6
query I rowsort
SELECT + 54 * - cor0.col1 * - col1 FROM tab2 AS cor0
----
15606
187974
51894
query I rowsort
SELECT ALL 82 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT + + ( - col0 ) * - col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL - 21 * - 27 FROM tab0 AS cor0
----
567
567
567
query I rowsort
SELECT - cor0.col1 * - 42 * col1 FROM tab2 AS cor0
----
12138
146202
40362
query I rowsort
SELECT ALL - col2 * - 75 AS col0 FROM tab1
----
4050
4275
7200
query I rowsort
SELECT DISTINCT col0 + + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - + 75 AS col2 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT - col0 * 9 FROM tab1 AS cor0
----
-27
-576
-720
onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT ALL + col1 DIV 20 FROM tab0 AS cor0
----
4
4
4
skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + col1 / 20 FROM tab0 AS cor0
----
4
4
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-98
SELECT + CAST( ( + cor0.col0 ) AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-98
SELECT + CAST ( ( + cor0.col0 ) AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col2 * + 32 AS col1 FROM tab1 cor0
----
1728
1824
3072
query I rowsort
SELECT DISTINCT col0 * 87 FROM tab2 AS cor0
----
609
6786
6873
onlyif mysql # use DIV operator for integer division
query I rowsort label-101
SELECT - 27 DIV col0 - ( cor0.col2 ) * cor0.col0 DIV col0 FROM tab1 AS cor0
----
-57
-63
-96
skipif mysql # not compatible
query I rowsort label-101
SELECT - 27 / col0 - ( cor0.col2 ) * cor0.col0 / col0 FROM tab1 AS cor0
----
-57
-63
-96
query I rowsort
SELECT - 36 * cor0.col1 FROM tab2 cor0
----
-1116
-2124
-612
onlyif mysql # use DIV operator for integer division
query I rowsort label-103
SELECT ALL col2 + cor0.col0 DIV cor0.col0 col1 FROM tab0 AS cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-103
SELECT ALL col2 + cor0.col0 / cor0.col0 col1 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-104
SELECT DISTINCT - col0 DIV cor0.col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - col0 / cor0.col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - - col2 * - col1 - - col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ( - col0 ) + + col1 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT col0 + 33 * col2 + col0 AS col0 FROM tab1
----
1788
2009
3328
onlyif mysql # use DIV operator for integer division
query I rowsort label-108
SELECT - col0 DIV + col0 + - col2 + ( - col1 ) FROM tab2 AS cor0
----
-56
-59
-86
skipif mysql # not compatible
query I rowsort label-108
SELECT - col0 / + col0 + - col2 + ( - col1 ) FROM tab2 AS cor0
----
-56
-59
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-109
SELECT + col0 + col0 + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-109
SELECT + col0 + col0 + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * col1 + ( col2 ) * col2 FROM tab1
----
10256
2994
3889
onlyif mysql # use DIV operator for integer division
query I rowsort label-111
SELECT ALL - tab1.col0 + 1 DIV col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-111
SELECT ALL - tab1.col0 + 1 / col2 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-112
SELECT DISTINCT - col2 + col0 + 49 DIV + tab0.col1 col2 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT - col2 + col0 + 49 / + tab0.col1 col2 FROM tab0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-113
SELECT ALL - col2 * 53 + col0 * col1 + CAST( NULL AS SIGNED ) * + tab1.col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - col2 * 53 + col0 * col1 + CAST ( NULL AS INTEGER ) * + tab1.col1 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - 12 + col1 FROM tab1 AS cor0
----
-10
-758
-947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col1 FROM tab2, tab0 AS cor0
----
63
query I rowsort
SELECT tab0.col0 + 80 * + col2 AS col2 FROM tab0
----
115
2664
6649
query I rowsort
SELECT ALL cor0.col0 * - 92 FROM tab2 AS cor0
----
-644
-7176
-7268
onlyif mysql # use DIV operator for integer division
query I rowsort label-118
SELECT col1 * + col2 + + col0 + + col2 * col0 DIV + col1 FROM tab1 cor0
----
1413
1918
998
skipif mysql # not compatible
query I rowsort label-118
SELECT col1 * + col2 + + col0 + + col2 * col0 / + col1 FROM tab1 cor0
----
1413
1918
998
query I rowsort
SELECT DISTINCT + + col1 + - 47 * - col1 + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
1302
537
720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-120
SELECT ALL + CAST( NULL AS DECIMAL ) * 75 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + CAST ( NULL AS REAL ) * 75 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 54 * + 7 FROM tab2 AS cor0
----
378
378
378
query I rowsort
SELECT + + col0 + - col1 + - cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
-102
-46
-699
onlyif mysql # use DIV operator for integer division
query I rowsort label-123
SELECT ALL - ( col2 ) DIV col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-123
SELECT ALL - ( col2 ) / col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT + + ( + cor0.col0 ) + - col2 AS col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL - 92 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1156
1312
478
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
24
35
89
query I rowsort
SELECT - col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * cor0.col2 + 39 FROM tab2 AS cor0
----
-1495
-607
-798
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 - col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT ALL - 54 * col2 AS col0 FROM tab0 cor0
----
-1782
-4428
-54
query I rowsort
SELECT ALL - col2 * col1 + col0 * - 16 * + col2 - - cor0.col1 * ( cor0.col2 ) FROM tab1 AS cor0
----
-122880
-2592
-58368
query I rowsort
SELECT ALL - - col2 * - cor0.col2 + 75 * 28 * col2 AS col2 FROM tab2 AS cor0
----
53924
55971
78356
query I rowsort
SELECT DISTINCT - + col0 * - col1 * + col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-134
SELECT ALL - col2 + + col1 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-134
SELECT ALL - col2 + + col1 / - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col2 + ( + col2 + col0 * - col0 ) FROM tab1 AS cor0
----
-3982
-6208
99
query I rowsort
SELECT - col1 + ( + col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL col2 + + 85 AS col2 FROM tab2
----
111
112
123
query I rowsort
SELECT DISTINCT + + col1 + - ( col2 ) + col1 * + col1 AS col2 FROM tab2 cor0
----
268
3514
965
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * - cor0.col2 + col0 col2 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT DISTINCT - col2 * + 48 FROM tab0 AS cor0
----
-1584
-3936
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-141
SELECT + + col2 * - CAST( NULL AS SIGNED ) + - col0 * + col1 + + 42 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-141
SELECT + + col2 * - CAST ( NULL AS INTEGER ) + - col0 * + col1 + + 42 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + + 30 * + cor0.col2 col1 FROM tab2 AS cor0
----
1178
806
837
query I rowsort
SELECT DISTINCT - + col2 * col1 + ( col1 ) FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - col0 + - ( 71 ) AS col1 FROM tab1 AS cor0
----
-135
-151
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-145
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-146
SELECT DISTINCT col0 + col0 DIV 27 col0 FROM tab1 AS cor0
----
3
66
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT col0 + col0 / 27 col0 FROM tab1 AS cor0
----
3
66
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-147
SELECT cor0.col0 * + CAST( NULL AS SIGNED ) + + 70 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-147
SELECT cor0.col0 * + CAST ( NULL AS INTEGER ) + + 70 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 - + 11 * + col1 AS col1 FROM tab0 AS cor0
----
-1066
-913
-919
query I rowsort
SELECT - cor0.col1 - - cor0.col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - 87 - + col0 FROM tab0 AS cor0
----
-111
-122
-176
query I rowsort
SELECT - col0 + + ( + cor0.col0 ) * + 95 * col0 AS col1 FROM tab1 cor0
----
389056
607920
852
query I rowsort
SELECT - 4 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
31
7294
788
query I rowsort
SELECT ALL + + 1 * col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT 49 + - tab2.col0 * 6 AS col2 FROM tab2
----
-419
-425
7
query I rowsort
SELECT - - 38 * cor0.col2 + + col2 * - col1 * col1 FROM tab2 AS cor0
----
-24921
-89518
-9538
query I rowsort
SELECT 39 * col0 FROM tab0
----
1365
3471
936
query I rowsort
SELECT + 24 * + col1 + col2 FROM tab1 cor0
----
297
408
678
onlyif mysql # use DIV operator for integer division
query I rowsort label-159
SELECT ALL - col2 DIV - col1 - col0 * 90 col1 FROM tab1 cor0
----
-268
-5755
-7193
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - col2 / - col1 - col0 * 90 col1 FROM tab1 cor0
----
-268
-5755
-7193
query I rowsort
SELECT + col0 * col2 * + 42 AS col0 FROM tab1 AS cor0
----
153216
322560
6804
query I rowsort
SELECT col2 * - col2 + 20 AS col1 FROM tab1 AS cor0
----
-2896
-3229
-9196
query I rowsort
SELECT col1 + - cor0.col1 * + col1 FROM tab1 cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT - 7 + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
2
4089
6393
query I rowsort
SELECT ALL - - 7 * - cor0.col0 - 40 FROM tab1 AS cor0
----
-488
-600
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-165
SELECT + 61 * + cor0.col2 - - ( col2 ) DIV col0 AS col1 FROM tab0 AS cor0
----
2014
5002
61
skipif mysql # not compatible
query I rowsort label-165
SELECT + 61 * + cor0.col2 - - ( col2 ) / col0 AS col1 FROM tab0 AS cor0
----
2014
5002
61
query I rowsort
SELECT ALL - - col2 * + col0 - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT col1 + - col0 AS col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col1 * 95 AS col1 FROM tab1 AS cor0
----
-1235
-2470
-950
query I rowsort
SELECT DISTINCT - - col1 + 44 AS col2 FROM tab2 AS cor0
----
103
61
75
query I rowsort
SELECT ALL col1 * 9 + - 98 FROM tab1 AS cor0
----
-8
136
19
query I rowsort
SELECT ALL + + col1 + + ( - 10 ) * + col2 FROM tab2 AS cor0
----
-201
-239
-363
query I rowsort
SELECT DISTINCT - col0 + - col0 + + col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-173
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-173
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + tab1.col2 + + col0 AS col0 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT DISTINCT col1 + + cor0.col1 DIV col0 - - col1 FROM tab2 AS cor0
----
118
34
66
skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT col1 + + cor0.col1 / col0 - - col1 FROM tab2 AS cor0
----
118
34
66
query I rowsort
SELECT + 20 * col1 FROM tab0 AS cor0
----
1720
1820
1940
query I rowsort
SELECT DISTINCT + + ( 42 ) * + col2 AS col0 FROM tab0 AS cor0
----
1386
3444
42
query I rowsort
SELECT - ( cor0.col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d
query I rowsort
SELECT - - ( col0 ) * + col1 * 58 AS col2 FROM tab0 cor0
----
119712
196910
469742
query I rowsort
SELECT + 91 + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-3557
-71
-7589
query I rowsort
SELECT DISTINCT ( 81 ) FROM tab1, tab1 AS cor0
----
81
query I rowsort
SELECT DISTINCT 10 * cor0.col0 FROM tab1 cor0
----
30
640
800
query I rowsort
SELECT DISTINCT - 85 - + 46 AS col2 FROM tab2
----
-131
query I rowsort
SELECT - 28 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 70e92c218433163922867899a16e1269
query I rowsort
SELECT DISTINCT - ( tab1.col0 ) - + col2 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT tab1.col2 DIV - col0 col1 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-187
SELECT tab1.col2 / - col0 col1 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT DISTINCT 90 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-190
SELECT ALL - + cor0.col0 DIV col1 + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-190
SELECT ALL - + cor0.col0 / col1 + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - 95 * - col2 AS col2 FROM tab2 AS cor0
----
2470
2565
3610
query I rowsort
SELECT DISTINCT - ( col1 ) * col1 + 23 * + cor0.col0 FROM tab0 AS cor0
----
-6234
-6844
-8604
query I rowsort
SELECT DISTINCT - + 39 + col0 AS col2 FROM tab1 AS cor0
----
-36
25
41
query I rowsort
SELECT 45 + col2 * - col0 AS col0 FROM tab0
----
-7253
-747
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-195
SELECT DISTINCT ( + col1 ) + 7 + ( + col2 + - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT ( + col1 ) + 7 + ( + col2 + - CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
query I rowsort
SELECT + col2 + col2 * 58 * 48 FROM tab1
----
150390
158745
267360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + - col1 * col1 col0 FROM tab0 AS cor0
----
-7359
-8244
-9372
query I rowsort
SELECT 51 - + col0 AS col0 FROM tab2 AS cor0
----
-27
-28
44
query I rowsort
SELECT ALL - 55 FROM tab2 cor0
----
-55
-55
-55
query I rowsort
SELECT ALL + + 18 * col1 + col1 FROM tab0 AS cor0
----
1634
1729
1843
query I rowsort
SELECT + col0 * col0 - ( - col1 + col1 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + cor0.col0 * cor0.col0 - col2 * col1 FROM tab2 AS cor0
----
-788
4550
5595
onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT ALL col2 DIV ( 20 ) AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-203
SELECT ALL col2 / ( 20 ) AS col2 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT - ( col0 ) - - col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-205
SELECT + 77 DIV + col2 AS col0 FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-205
SELECT + 77 / + col2 AS col0 FROM tab1 cor0
----
0
1
1
query I rowsort
SELECT ALL - 13 * - cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
-105287
-26832
-44135
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + 6 col0 FROM tab1 AS cor0
----
18
384
480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col1 col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-209
SELECT ALL + CAST( NULL AS SIGNED ) / - col2 + col2 + - cor0.col0 / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-209
SELECT ALL + CAST ( NULL AS INTEGER ) / - col2 + col2 + - cor0.col0 / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + + 59 FROM tab1 AS cor0
----
113
116
155
query I rowsort
SELECT + 89 FROM tab0 cor0
----
89
89
89
query I rowsort
SELECT DISTINCT + ( + col2 ) * - col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + 44 * ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
308
3432
3476
query I rowsort
SELECT + 58 * - ( col0 + - 33 ) FROM tab2 AS cor0
----
-2610
-2668
1508
onlyif mysql # use DIV operator for integer division
query I rowsort label-215
SELECT DISTINCT - col1 DIV + col1 + col1 AS col0 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT - col1 / + col1 + col1 AS col0 FROM tab2 AS cor0
----
16
30
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-216
SELECT - + col0 DIV 34 AS col1 FROM tab1 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-216
SELECT - + col0 / 34 AS col1 FROM tab1 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT - + col2 + + 84 * + col0 + + col1 * col0 FROM tab0 AS cor0
----
15493
4047
6334
query I rowsort
SELECT ( col2 ) - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + ( 75 ) * col2 + col0 FROM tab1 AS cor0
----
4053
4339
7280
onlyif mysql # use DIV operator for integer division
query I rowsort label-220
SELECT - col1 - - col1 DIV col1 AS col2 FROM tab0 cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-220
SELECT - col1 - - col1 / col1 AS col2 FROM tab0 cor0
----
-85
-90
-96
query I rowsort
SELECT 62 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT ALL col2 + ( col0 ) AS col0 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-223
SELECT col1 * col0 DIV 17 AS col2 FROM tab1
----
37
4
61
skipif mysql # not compatible
query I rowsort label-223
SELECT col1 * col0 / 17 AS col2 FROM tab1
----
37
4
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-224
SELECT - col1 + cor0.col0 DIV + 46 FROM tab0 AS cor0
----
-86
-90
-97
skipif mysql # not compatible
query I rowsort label-224
SELECT - col1 + cor0.col0 / + 46 FROM tab0 AS cor0
----
-86
-90
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 + + col0 col2 FROM tab0 AS cor0
----
-10
1
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 * + col0 col2 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT - col0 + + col2 * 8 FROM tab2 AS cor0
----
130
209
225
onlyif mysql # use DIV operator for integer division
query I rowsort label-228
SELECT ALL - 95 DIV + col1 FROM tab2 AS cor0
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-228
SELECT ALL - 95 / + col1 FROM tab2 AS cor0
----
-1
-3
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT + 72 DIV 17 + - tab0.col0 AS col0 FROM tab0
----
-20
-31
-85
skipif mysql # not compatible
query I rowsort label-229
SELECT + 72 / 17 + - tab0.col0 AS col0 FROM tab0
----
-20
-31
-85
query I rowsort
SELECT ALL - tab1.col0 + + 57 + + col0 AS col1 FROM tab1
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-231
SELECT ALL - col0 DIV ( tab0.col1 ) + 51 + col1 * col1 FROM tab0
----
7447
8332
9460
skipif mysql # not compatible
query I rowsort label-231
SELECT ALL - col0 / ( tab0.col1 ) + 51 + col1 * col1 FROM tab0
----
7447
8332
9460
query I rowsort
SELECT + col2 + col2 * - 16 AS col2 FROM tab0 AS cor0
----
-1230
-15
-495
query I rowsort
SELECT ALL - + col1 * + cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col2 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT DISTINCT + cor1.col0 * - 40 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1400
-3560
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-236
SELECT DISTINCT - + col0 + - col2 * CAST( 31 AS SIGNED ) * cor0.col1 FROM tab0 cor0
----
-231411
-3042
-88002
skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT - + col0 + - col2 * CAST ( 31 AS INTEGER ) * cor0.col1 FROM tab0 cor0
----
-231411
-3042
-88002
query I rowsort
SELECT - col1 * - col2 * 65 FROM tab2 AS cor0
----
41990
54405
99710
query I rowsort
SELECT + - col0 + + cor0.col1 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT ALL - col0 * col2 + col1 * col0 FROM tab2 cor0
----
-1659
2574
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * - col1 col0 FROM tab1
----
-1248
-480
-624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-241
SELECT ALL cor0.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-241
SELECT ALL cor0.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * + col1 * col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + 71 + cor1.col0 * - 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dfb13f210d8fc90fd91ac97d5dd28bef
query I rowsort
SELECT + col1 * - 24 * + col2 FROM tab0 AS cor0
----
-179088
-2328
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-245
SELECT cor0.col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-245
SELECT cor0.col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 82 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT - ( + 1 ) FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col2 FROM tab1 cor0
----
18
18
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-249
SELECT CAST( NULL AS SIGNED ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-249
SELECT CAST ( NULL AS INTEGER ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 * - 15 + + cor0.col0 FROM tab1 AS cor0
----
-1120
-42
-896
query I rowsort
SELECT ALL - col1 * 11 AS col1 FROM tab2 AS cor0
----
-187
-341
-649
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + - col2 * ( col2 ) col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT - - 85 FROM tab1, tab1 cor0
----
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + col2 col2 FROM tab0 AS cor0
----
103
152
71
query I rowsort
SELECT ( col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-256
SELECT + 50 + 39 DIV col1 AS col2 FROM tab1
----
51
53
53
skipif mysql # not compatible
query I rowsort label-256
SELECT + 50 + 39 / col1 AS col2 FROM tab1
----
51
53
53
query I rowsort
SELECT col2 * 25 FROM tab2
----
650
675
950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-259
SELECT - col2 * - CAST( + 7 AS SIGNED ) FROM tab1 cor0
----
378
399
672
skipif mysql # not compatible
query I rowsort label-259
SELECT - col2 * - CAST ( + 7 AS INTEGER ) FROM tab1 cor0
----
378
399
672
query I rowsort
SELECT + cor0.col0 * 79 FROM tab0 AS cor0
----
1896
2765
7031
query I rowsort
SELECT ALL - col1 + - 78 FROM tab0 cor0
----
-164
-169
-175
query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col1 + cor0.col1 * col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 34 + col0 col1 FROM tab1 AS cor0
----
1839
2002
3344
query I rowsort
SELECT + + col0 * - col0 + + col1 - + col0 AS col0 FROM tab2 AS cor0
----
-25
-6103
-6303
query I rowsort
SELECT ALL - col2 + + col0 + col1 AS col2 FROM tab0 cor0
----
131
77
98
query I rowsort
SELECT - + col0 * ( cor0.col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - 74 * col0 + - cor0.col1 * - col1 FROM tab1 AS cor0
----
-4636
-5751
454
query I rowsort
SELECT 73 * col2 AS col1 FROM tab0 cor0
----
2409
5986
73
query I rowsort
SELECT DISTINCT col2 + 84 AS col1 FROM tab0 cor0
----
117
166
85
query I rowsort
SELECT + col0 * 99 FROM tab1 cor0
----
297
6336
7920
query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL col1 * col0 * cor0.col2 - + cor0.col0 * col1 FROM tab0 AS cor0
----
0
656019
66048
query I rowsort
SELECT DISTINCT + col0 - - 77 FROM tab1 AS cor0
----
141
157
80
query I rowsort
SELECT - + cor0.col0 * - ( + cor0.col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
13824
42875
704969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-275
SELECT - - cor0.col0 * - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-275
SELECT - - cor0.col0 * - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 + ( - 60 ) AS col0 FROM tab1 AS cor0
----
-3
-6
36
query I rowsort
SELECT ALL col2 + - 22 FROM tab2 AS cor0
----
16
4
5
query I rowsort
SELECT DISTINCT - + col2 + 7 * + col2 FROM tab0 AS cor0
----
198
492
6
query I rowsort
SELECT ALL - col0 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-280
SELECT DISTINCT + tab0.col1 DIV - 15 FROM tab0, tab1 AS cor0
----
-5
-6
skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT + tab0.col1 / - 15 FROM tab0, tab1 AS cor0
----
-5
-6
query I rowsort
SELECT + 53 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT DISTINCT + col2 + + 27 + + col2 FROM tab0 cor0
----
191
29
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-283
SELECT ALL - col1 * CAST( - 17 * - col0 AS SIGNED ) FROM tab2 cor0
----
-22831
-3689
-78234
skipif mysql # not compatible
query I rowsort label-283
SELECT ALL - col1 * CAST ( - 17 * - col0 AS INTEGER ) FROM tab2 cor0
----
-22831
-3689
-78234
query I rowsort
SELECT ALL - - col0 + ( col0 ) * - col2 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-285
SELECT + cor0.col1 * - CAST( NULL AS SIGNED ) * 41 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-285
SELECT + cor0.col1 * - CAST ( NULL AS INTEGER ) * 41 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * col1 * 52 AS col0 FROM tab2
----
33592
43524
79768
query I rowsort
SELECT DISTINCT col2 * - 23 AS col1 FROM tab2
----
-598
-621
-874
query I rowsort
SELECT ALL col0 + + col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL 22 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT - - cor0.col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT 19 * 57 FROM tab0
----
1083
query I rowsort
SELECT DISTINCT ( + tab1.col1 * col2 ) + ( ( col1 ) ) + - 22 * col1 FROM tab1
----
360
858
975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-293
SELECT CAST( col2 AS SIGNED ) + tab2.col1 AS col0 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-293
SELECT CAST ( col2 AS INTEGER ) + tab2.col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT - + col1 + cor0.col2 * 25 FROM tab2 AS cor0
----
591
644
933
onlyif mysql # use DIV operator for integer division
query I rowsort label-295
SELECT ALL + + 24 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-295
SELECT ALL + + 24 / col0 AS col1 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT DISTINCT 67 + col2 DIV ( + col0 ) FROM tab2 AS cor0
----
67
70
skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT 67 + col2 / ( + col0 ) FROM tab2 AS cor0
----
67
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-297
SELECT ALL + + col2 + - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + + col2 + - col0 / - col0 AS col0 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT - - cor0.col0 DIV + 17 - + cor0.col2 FROM tab2 AS cor0
----
-22
-27
-34
skipif mysql # not compatible
query I rowsort label-298
SELECT - - cor0.col0 / + 17 - + cor0.col2 FROM tab2 AS cor0
----
-22
-27
-34
query I rowsort
SELECT col2 + 51 * + col2 - col2 FROM tab0
----
1683
4182
51
query I rowsort
SELECT DISTINCT col2 + col1 + + tab1.col0 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT + 9 + tab0.col2 + col1 AS col0 FROM tab0
----
107
128
182
onlyif mysql # use DIV operator for integer division
query I rowsort label-302
SELECT - col0 * + col1 - + col1 DIV + col2 FROM tab0
----
-2066
-3492
-8100
skipif mysql # not compatible
query I rowsort label-302
SELECT - col0 * + col1 - + col1 / + col2 FROM tab0
----
-2066
-3492
-8100
query I rowsort
SELECT + + 53 AS col2 FROM tab2 AS cor0
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-304
SELECT col0 + - cor0.col0 DIV + col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-304
SELECT col0 + - cor0.col0 / + col0 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT DISTINCT - col2 * - col1 * 87 + col1 FROM tab0 AS cor0
----
246992
649285
8536
onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT DISTINCT - 86 DIV - col1 AS col0 FROM tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT - 86 / - col1 AS col0 FROM tab2 AS cor0
----
1
2
5
query I rowsort
SELECT ALL 90 * - col2 * col2 FROM tab2 AS cor0
----
-129960
-60840
-65610
query I rowsort
SELECT DISTINCT - 99 + + col2 * 35 AS col1 FROM tab2 AS cor0
----
1231
811
846
query I rowsort
SELECT - 0 + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col1 + 90 AS col0 FROM tab0 AS cor0
----
176
181
187
query I rowsort
SELECT + ( 60 ) FROM tab2 AS cor0
----
60
60
60
query I rowsort
SELECT ALL - 87 * - cor0.col2 + + col2 * col2 * col0 AS col1 FROM tab2 AS cor0
----
117382
54990
7452
query I rowsort
SELECT - 69 * col0 AS col1 FROM tab1 cor0
----
-207
-4416
-5520
query I rowsort
SELECT - col2 + col2 * col2 FROM tab1 cor0
----
2862
3192
9120
query I rowsort
SELECT col0 + 67 * col2 FROM tab1
----
3621
3883
6512
query I rowsort
SELECT ( - col1 ) + col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - - col0 * - col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + + col2 - 72 * - 30 AS col0 FROM tab1 AS cor0
----
2214
2217
2256
query I rowsort
SELECT col1 * col0 * + cor0.col2 + + col0 * + 49 AS col2 FROM tab0 AS cor0
----
5110
668479
69288
query I rowsort
SELECT ALL + cor0.col0 + - col2 + + col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + col2 + - 42 * + cor0.col0 AS col0 FROM tab0 cor0
----
-1469
-3656
-975
query I rowsort
SELECT 55 - col1 AS col0 FROM tab1
----
29
42
45
query I rowsort
SELECT + 2 + col2 + + col0 FROM tab2
----
106
119
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT ALL + col2 DIV tab0.col1 + - col0 * - ( - tab0.col2 ) + - col0 col0 FROM tab0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + col2 / tab0.col1 + - col0 * - ( - tab0.col2 ) + - col0 col0 FROM tab0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-325
SELECT DISTINCT col1 + col0 DIV - col0 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT col1 + col0 / - col0 FROM tab1
----
12
25
9
query I rowsort
SELECT - col1 + + col1 - - 78 FROM tab1
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * + col1 + - col2 * + col1 col0 FROM tab2
----
-395
1921
97
query I rowsort
SELECT + ( + cor1.col0 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL - col2 * 1 * col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT + - col0 + - ( - ( col2 ) ) AS col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT - col1 - 12 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1118
-1183
-1261
query I rowsort
SELECT - cor0.col0 * 52 + + cor0.col2 FROM tab2 AS cor0
----
-337
-4030
-4070
query I rowsort
SELECT + col2 * - col1 + col2 * cor0.col0 FROM tab2 AS cor0
----
-648
2356
494
skipif mysql # not compatible
query I rowsort
SELECT - col2 * tab1.col0 + col0 + + col0 * CAST ( col0 + - col2 AS REAL ) FROM tab1
----
-312
-3136
-8880
query I rowsort
SELECT DISTINCT - 42 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-42
query I rowsort
SELECT DISTINCT col2 * - ( tab0.col0 + - col0 ) FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-337
SELECT - + col2 DIV cor0.col1 + col2 * - ( + cor0.col0 ) AS col0 FROM tab2 cor0
----
-189
-2028
-3004
skipif mysql # not compatible
query I rowsort label-337
SELECT - + col2 / cor0.col1 + col2 * - ( + cor0.col0 ) AS col0 FROM tab2 cor0
----
-189
-2028
-3004
query I rowsort
SELECT cor0.col1 * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - 12 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
onlyif mysql # use DIV operator for integer division
query I rowsort label-340
SELECT DISTINCT col0 DIV 86 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT col0 / 86 AS col2 FROM tab1
----
0
query I rowsort
SELECT ALL col0 * - 75 * 68 AS col2 FROM tab0
----
-122400
-178500
-453900
query I rowsort
SELECT - tab2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - ( 30 ) * col2 + col0 * col2 + + cor0.col0 AS col1 FROM tab0 cor0
----
-174
40
4927
query I rowsort
SELECT 50 * - col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-319
-3841
-3933
query I rowsort
SELECT - 27 + 68 + cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1184
-535
-7880
query I rowsort
SELECT ALL - + 33 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT DISTINCT - col2 * col1 + 45 FROM tab0 cor0
----
-2793
-52
-7417
query I rowsort
SELECT + cor0.col0 * + ( + ( - col1 ) ) - ( col1 ) AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT + cor0.col2 + ( + col2 ) * - col1 + + 56 * - 60 AS col1 FROM tab0 AS cor0
----
-10740
-3456
-6165
query I rowsort
SELECT + col0 - + 68 * + col2 AS col2 FROM tab1 cor0
----
-3669
-3812
-6448
query I rowsort
SELECT + col2 - - 2 FROM tab2 AS cor0
----
28
29
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col0 ) * - 79 col0 FROM tab0 AS cor0
----
1896
2765
7031
query I rowsort
SELECT ALL + cor0.col0 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT - + ( col2 ) * + 77 AS col0 FROM tab2 AS cor0
----
-2002
-2079
-2926
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-356
SELECT DISTINCT cor0.col2 DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT cor0.col2 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + - 61 * col0 FROM tab0 AS cor0
----
-1464
-2135
-5429
onlyif mysql # use DIV operator for integer division
query I rowsort label-358
SELECT + col2 * col0 DIV col0 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-358
SELECT + col2 * col0 / col0 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + ( - ( tab0.col1 ) ) + + ( - ( - tab0.col2 ) ) * cor0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3f79ec1568e0f7b4a1a8f6e32308cbba
onlyif mysql # use DIV operator for integer division
query I rowsort label-360
SELECT ALL + ( col0 + - col0 ) DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-360
SELECT ALL + ( col0 + - col0 ) / - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + + 41 + 20 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col0 * + cor0.col2 col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + 9 * + col1 + 37 FROM tab1 AS cor0
----
127
154
271
query I rowsort
SELECT + 22 * col2 AS col1 FROM tab1 AS cor0
----
1188
1254
2112
query I rowsort
SELECT + - 19 + col1 * col1 AS col0 FROM tab0 cor0
----
7377
8262
9390
query I rowsort
SELECT + 92 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT cor0.col1 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-367
SELECT cor0.col1 + col1 / col0 AS col0 FROM tab0 AS cor0
----
89
92
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 * + tab1.col0 col1 FROM tab1
----
-144
-3072
-3840
onlyif mysql # use DIV operator for integer division
query I rowsort label-369
SELECT + cor1.col0 DIV cor0.col2 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to c6bd164d9eb4e9036d803e82a07d3075
skipif mysql # not compatible
query I rowsort label-369
SELECT + cor1.col0 / cor0.col2 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to c6bd164d9eb4e9036d803e82a07d3075
query I rowsort
SELECT DISTINCT - 59 * - col2 * + col0 FROM tab0 AS cor0
----
2065
430582
46728
onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT ALL - col0 DIV 61 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-371
SELECT ALL - col0 / 61 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT + ( + cor0.col0 ) DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-372
SELECT + ( + cor0.col0 ) / col0 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col2 + - 80 AS col0 FROM tab0 AS cor0
----
-113
-162
-81
query I rowsort
SELECT DISTINCT + col0 * col1 * + col2 FROM tab2 cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-375
SELECT + col0 + - col0 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-375
SELECT + col0 + - col0 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
3
70
86
query I rowsort
SELECT ALL + tab1.col1 * tab1.col2 AS col1 FROM tab1
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-377
SELECT - - CAST( col1 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-377
SELECT - - CAST ( col1 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 * ( col2 * - 17 ) col0 FROM tab2 AS cor0
----
-11628
-7956
-8262
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-380
SELECT ALL - CAST( NULL AS SIGNED ) + + 63 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - CAST ( NULL AS INTEGER ) + + 63 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + col1 * + col2 * - col2 FROM tab0 AS cor0
----
-132
-611973
-93678
query I rowsort
SELECT ALL + col1 * - cor0.col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + cor0.col0 + 38 FROM tab2 AS cor0
----
116
117
45
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT + - 93 * col1 + - col2 * col0 * cor0.col1 FROM tab1 AS cor0
----
-101049
-37410
-6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 + + col2 col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - - 30 * + col1 AS col1 FROM tab1 cor0
----
300
390
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-388
SELECT col2 DIV - col2 col1 FROM tab0 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-388
SELECT col2 / - col2 col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - - col1 * 15 AS col1 FROM tab0 AS cor0
----
1290
1365
1455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-390
SELECT DISTINCT + col1 - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 * + ( + 65 + + col1 ) * - cor0.col2 FROM tab0 AS cor0
----
1164072
15714
428538
query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 * - col0 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col0 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + + cor0.col0 * ( 20 ) FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT - col2 - + col0 AS col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - col2 - - col0 * col2 * col0 FROM tab0
----
1224
18975
649440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - ( + cor0.col1 ) - col1 * + col2 col0 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT DISTINCT - tab1.col1 + + col2 * col2 * col1 AS col2 FROM tab1
----
119795
32480
75790
query I rowsort
SELECT + tab2.col1 * - ( 66 ) FROM tab2
----
-1122
-2046
-3894
query I rowsort
SELECT DISTINCT - col0 - 91 FROM tab2 AS cor0
----
-169
-170
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + + col0 col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL 6 * cor0.col0 * col2 + - col2 FROM tab2 AS cor0
----
1107
12142
17974
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-403
SELECT - - CAST( - col1 AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-403
SELECT - - CAST ( - col1 AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 + + 66 * + col0 AS col1 FROM tab2 cor0
----
489
5174
5252
query I rowsort
SELECT DISTINCT col2 - col1 * col0 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col1 + - 99 FROM tab0
----
-13
-2
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-407
SELECT col0 * col0 DIV col2 + + col1 * 72 AS col0 FROM tab0
----
6209
6648
8209
skipif mysql # not compatible
query I rowsort label-407
SELECT col0 * col0 / col2 + + col1 * 72 AS col0 FROM tab0
----
6209
6648
8209
query I rowsort
SELECT ALL col0 + ( - ( - col1 ) ) AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT col1 * col0 + 16 * + col2 FROM tab1
----
1552
2576
942
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 20 + - col1 col1 FROM tab1
----
-3
74
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col0 ) col2 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT + 0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
0
query I rowsort
SELECT + - col2 + col0 * - 73 FROM tab0 AS cor0
----
-1785
-2556
-6579
query I rowsort
SELECT DISTINCT 9 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( col2 * col1 + 56 * - col1 ) col2 FROM tab1 AS cor0
----
-1352
100
6760
query I rowsort
SELECT col0 * + cor0.col1 * ( + col2 * + col0 ) FROM tab1 AS cor0
----
12636
2334720
7987200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * + tab0.col0 * + ( 2 ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to bfa34bea1b8efa20269b4a97bb718e7c
query I rowsort
SELECT - ( - 78 ) * col0 FROM tab0
----
1872
2730
6942
query I rowsort
SELECT ( + 67 ) * + cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 183022388a0ad2cfb43e6a48021f73a2
query I rowsort
SELECT - ( col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL - ( cor0.col0 ) * cor0.col1 - 46 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f8c8fb6ba7d4b1442d6036a763ae9ec9
query I rowsort
SELECT ALL col2 * 39 + col1 FROM tab2 AS cor0
----
1073
1084
1499
query I rowsort
SELECT + col0 - - col1 * - ( - ( cor0.col2 ) ) AS col1 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT - col0 + - col2 + ( col1 + col1 * ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-109
-1203
-751
query I rowsort
SELECT ALL + + col1 + - col2 + - col2 FROM tab0 AS cor0
----
-73
20
95
query I rowsort
SELECT - - col0 + cor0.col1 * - col1 + + col2 FROM tab2 AS cor0
----
-172
-3377
-927
query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT 27 + cor0.col1 AS col1 FROM tab1 AS cor0
----
37
40
53
query I rowsort
SELECT + col2 * + col2 * + col0 + + col0 AS col1 FROM tab2
----
114155
5110
52806
query I rowsort
SELECT - cor0.col0 + col0 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 57 * + col2 - + col1 FROM tab2 AS cor0
----
1423
1508
2149
onlyif mysql # use DIV operator for integer division
query I rowsort label-433
SELECT - - 38 - col0 DIV + 24 AS col2 FROM tab2 AS cor0
----
35
35
38
skipif mysql # not compatible
query I rowsort label-433
SELECT - - 38 - col0 / + 24 AS col2 FROM tab2 AS cor0
----
35
35
38
query I rowsort
SELECT + + cor0.col1 * col1 + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT 24 * + tab1.col2 - + 68 * 14 * col0 FROM tab1
----
-1560
-59560
-73856
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - col2 - - 79 AS col1 FROM tab2 AS cor0
----
41
52
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-438
SELECT - + cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-438
SELECT - + cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + ( - 76 + col1 ) AS col2 FROM tab2 AS cor0
----
-18
-21
9
query I rowsort
SELECT ALL - cor0.col0 * 41 + - cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
-11748
-3048
-4830
query I rowsort
SELECT col0 * + 42 AS col1 FROM tab2 AS cor0
----
294
3276
3318
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * ( col2 ) col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + - col0 + 66 FROM tab1 AS cor0
----
-14
2
63
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 * - col0 + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
101088
37050
5616
query I rowsort
SELECT ALL col2 * + ( 40 ) AS col1 FROM tab0 AS cor0
----
1320
3280
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT + + col1 + col2 + - col1 * col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-61
47
66
skipif mysql # not compatible
query I rowsort label-446
SELECT + + col1 + col2 + - col1 * col2 / col0 AS col0 FROM tab2 AS cor0
----
-61
47
66
query I rowsort
SELECT - col2 * ( col0 ) - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT - col2 * 51 + + col2 FROM tab2 cor0
----
-1300
-1350
-1900
query I rowsort
SELECT - cor0.col1 + 7 * + cor0.col0 * col0 FROM tab0 AS cor0
----
3946
55356
8478
query I rowsort
SELECT 9 * - 23 + + col2 FROM tab1 AS cor0
----
-111
-150
-153
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT - 36 * col2 FROM tab2 cor0
----
-1368
-936
-972
query I rowsort
SELECT - - 13 * ( + cor0.col0 ) AS col2 FROM tab0 cor0
----
1157
312
455
query I rowsort
SELECT - ( - col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + ( - tab0.col0 ) AS col2 FROM tab0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-456
SELECT 41 + col2 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2957
3290
9257
skipif mysql # not compatible
query I rowsort label-456
SELECT 41 + col2 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2957
3290
9257
query I rowsort
SELECT + col0 + 58 AS col2 FROM tab1 AS cor0
----
122
138
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-458
SELECT ALL col2 * col2 + tab1.col2 DIV + col1 FROM tab1
----
2918
3254
9223
skipif mysql # not compatible
query I rowsort label-458
SELECT ALL col2 * col2 + tab1.col2 / + col1 FROM tab1
----
2918
3254
9223
query I rowsort
SELECT col0 * + col2 * - col1 + + col1 FROM tab2
----
-119593
-51017
-5828
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND ( - col0 )
----
query I rowsort
SELECT DISTINCT tab1.col0 * - col1 + col1 * - tab1.col0 FROM tab1
----
-1280
-156
-2080
query I rowsort
SELECT DISTINCT col1 * col1 + + tab1.col0 AS col1 FROM tab1
----
164
249
679
query I rowsort
SELECT tab1.col2 + + tab1.col0 FROM tab1
----
121
176
57
query I rowsort
SELECT - col0 * col1 * + tab2.col2 FROM tab2 WHERE NOT ( col2 ) IN ( col1 )
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT tab1.col1 * + col1 + col1 AS col1 FROM tab1
----
110
182
702
query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE col0 = ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-467
SELECT DISTINCT tab0.col1 + - col1 DIV col0 FROM tab0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT tab0.col1 + - col1 / col0 FROM tab0
----
83
90
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col2 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL col2 * - col0 + - col1 AS col1 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT + tab0.col1 + tab0.col2 * - col0 - col1 * tab0.col1 FROM tab0
----
-15488
-8102
-9347
query I rowsort
SELECT ALL - tab2.col0 * col1 + col0 AS col2 FROM tab2 WHERE NOT ( + col1 ) <= ( NULL )
----
query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE + col0 <> ( col0 * col0 )
----
10
13
26
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IN ( cor0.col1 * + cor0.col0 )
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + col0 - col2 col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + col2 * col2 + + tab0.col1 - col1 * + col0 FROM tab0
----
-1284
-3297
-889
onlyif mysql # use DIV operator for integer division
query I rowsort label-476
SELECT - col1 * col2 DIV col2 + col0 * col2 AS col2 FROM tab1
----
136
3638
7667
skipif mysql # not compatible
query I rowsort label-476
SELECT - col1 * col2 / col2 + col0 * col2 AS col2 FROM tab1
----
136
3638
7667
query I rowsort
SELECT col1 * + col0 * - col0 AS col0 FROM tab0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 + col1 * col1 * - col1 col2 FROM tab2
----
-205483
-29825
-5030
query I rowsort
SELECT DISTINCT + col2 + col2 + - col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - tab2.col0 * - tab2.col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL - col2 * + col0 * col2 + col2 + + col2 FROM tab2
----
-114000
-5049
-52676
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col1 )
----
query I rowsort
SELECT - col2 * + col1 - + col0 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE ( - col2 ) IN ( + col2 + col2 )
----
query I rowsort
SELECT - col1 - ( - col1 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + col1 + col2 AS col1 FROM tab2 cor0
----
-24
51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( cor0.col0 ) col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col0 + + col2 * + 25 AS col1 FROM tab1 AS cor0
----
1347
1361
2320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + ( - col2 ) * + col2 * col1 + col2 col1 FROM tab0 AS cor0
----
-61
-611713
-93597
query I rowsort
SELECT DISTINCT + - col1 * col1 + col1 * col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + cor0.col1 + ( - col1 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col2 + + col1 + + col2 AS col0 FROM tab1
----
124
134
205
query I rowsort
SELECT tab0.col2 * + 53 FROM tab0
----
1749
4346
53
query I rowsort
SELECT DISTINCT + ( - 8 ) - tab2.col2 FROM tab2, tab1 AS cor0
----
-34
-35
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-495
SELECT DISTINCT - cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT - cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT 13 + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
20
91
92
query I rowsort
SELECT ALL cor0.col0 * + ( + cor0.col1 ) * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL ( col1 ) + + col2 * + col0 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL ( + cor0.col1 ) * - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-500
SELECT + - col1 DIV col0 AS col1 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-500
SELECT + - col1 / col0 AS col1 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT ALL - 46 * + col2 AS col0 FROM tab2 AS cor0
----
-1196
-1242
-1748
query I rowsort
SELECT DISTINCT + + 17 * col1 FROM tab1 AS cor0
----
170
221
442
query I rowsort
SELECT 82 AS col0 FROM tab0 cor0
----
82
82
82
query I rowsort
SELECT DISTINCT - + col2 + + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT DISTINCT col2 + - col1 DIV + 15 FROM tab1 AS cor0
----
53
57
96
skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT col2 + - col1 / + 15 FROM tab1 AS cor0
----
53
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-506
SELECT col1 DIV col2 + - col0 * col2 AS col0 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-506
SELECT col1 / col2 + - col0 * col2 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + col1 * - col1 + 60 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
7489
8423
9470
query I rowsort
SELECT DISTINCT - - 83 * cor0.col2 + + 31 AS col0 FROM tab1 AS cor0
----
4513
4762
7999
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + ( + 19 ) FROM tab1 AS cor0
----
-1021
-59
-621
query I rowsort
SELECT ALL - cor0.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-511
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 57 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 57 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-512
SELECT ALL + + col2 * + CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-512
SELECT ALL + + col2 * + CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + ( + 18 ) + + col2 FROM tab1 AS cor0
----
101
46
65
query I rowsort
SELECT DISTINCT + col0 + + col1 + - col2 * + col1 * 40 FROM tab1 AS cor0
----
-22726
-49827
-56131
onlyif mysql # use DIV operator for integer division
query I rowsort label-515
SELECT DISTINCT + + col0 DIV col0 + - 56 + - col0 FROM tab2 AS cor0
----
-133
-134
-62
skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT + + col0 / col0 + - 56 + - col0 FROM tab2 AS cor0
----
-133
-134
-62
query I rowsort
SELECT ALL - col0 - col0 * + 85 * cor0.col2 FROM tab2 AS cor0
----
-16072
-172458
-255249
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-517
SELECT ALL col0 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-517
SELECT ALL col0 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + - col1 + ( col1 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col1 + + col1 * + col2 * - col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT + col1 * col0 + ( + col2 ) FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT 51 * col0 FROM tab2 cor0
----
357
3978
4029
onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT + + col2 DIV 46 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-78
skipif mysql # not compatible
query I rowsort label-522
SELECT + + col2 / 46 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-78
query I rowsort
SELECT + ( 57 ) * + col1 * col2 AS col0 FROM tab1 AS cor0
----
32490
71136
80028
query I rowsort
SELECT ALL ( + 97 ) + tab1.col0 * cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to bc921fdf9cc54aaf05507cd0bc3650b4
query I rowsort
SELECT + tab0.col0 * - 78 AS col0 FROM tab0
----
-1872
-2730
-6942
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 * + col2 col0 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT + col1 + - 20 AS col2 FROM tab2
----
-3
11
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-528
SELECT 25 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-528
SELECT 25 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT 81 * - col2 AS col1 FROM tab1
----
-4374
-4617
-7776
query I rowsort
SELECT DISTINCT ( + col1 ) * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT - 38 * col2 + cor0.col2 FROM tab0 AS cor0
----
-1221
-3034
-37
query I rowsort
SELECT DISTINCT + + 59 AS col1 FROM tab0 AS cor0
----
59
query I rowsort
SELECT ALL col0 * ( col2 ) AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - 6 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252
onlyif mysql # use DIV operator for integer division
query I rowsort label-535
SELECT - + col1 + + cor0.col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-535
SELECT - + col1 + + cor0.col2 / + col0 AS col1 FROM tab0 AS cor0
----
-85
-91
-97
query I rowsort
SELECT DISTINCT - 89 * - tab1.col0 AS col0 FROM tab1, tab2, tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT - + col1 + col1 * col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT col0 + + col1 * + col0 AS col2 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT + cor0.col1 * 11 FROM tab2 AS cor0
----
187
341
649
onlyif mysql # use DIV operator for integer division
query I rowsort label-542
SELECT DISTINCT + + cor0.col0 DIV - col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT + + cor0.col0 / - col1 FROM tab0 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-543
SELECT DISTINCT col1 * CAST( + col1 AS SIGNED ) FROM tab1
----
100
169
676
skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT col1 * CAST ( + col1 AS INTEGER ) FROM tab1
----
100
169
676
query I rowsort
SELECT 9 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT + col0 * col0 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-546
SELECT - + col0 DIV - 7 FROM tab1 AS cor0
----
0
11
9
skipif mysql # not compatible
query I rowsort label-546
SELECT - + col0 / - 7 FROM tab1 AS cor0
----
0
11
9
query I rowsort
SELECT col2 + + 41 * - col0 * - col0 AS col0 FROM tab0 AS cor0
----
23649
324843
50226
query I rowsort
SELECT DISTINCT + + col2 * - ( - cor0.col0 + - col0 ) AS col1 FROM tab0 AS cor0
----
14596
1584
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-549
SELECT ALL col0 DIV - col1 AS col2 FROM tab1 cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-549
SELECT ALL col0 / - col1 AS col2 FROM tab1 cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT - + col0 * - 58 AS col0 FROM tab2 AS cor0
----
406
4524
4582
query I rowsort
SELECT DISTINCT + col1 * + 22 AS col0 FROM tab1 AS cor0
----
220
286
572
query I rowsort
SELECT DISTINCT - - col1 * + col2 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-4550
-5595
788
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN cor0.col1 * cor0.col1 + + col1 AND + col2 OR NOT col0 = ( NULL )
----
query I rowsort
SELECT - col1 + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-555
SELECT DISTINCT + col1 * col1 DIV + col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-12
-14
-9
skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT + col1 * col1 / + col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-12
-14
-9
query I rowsort
SELECT + - 80 + col0 FROM tab1 AS cor0
----
-16
-77
0
query I rowsort
SELECT 83 + - col2 * col1 * + cor0.col0 FROM tab0 cor0
----
-3312
-664035
-68029
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + cor0.col1 col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - + col1 * col0 + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
3008
6640
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * col2 + + cor0.col1 col1 FROM tab0 AS cor0
----
36023
551459
98
query I rowsort
SELECT + cor0.col1 * - cor0.col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL + cor0.col1 * col1 * col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT + 76 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
onlyif mysql # use DIV operator for integer division
query I rowsort label-564
SELECT ALL + col2 DIV col1 + + tab0.col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + col2 / col1 + + tab0.col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL 26 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
onlyif mysql # use DIV operator for integer division
query I rowsort label-566
SELECT ALL - tab2.col2 DIV col1 + 76 AS col1 FROM tab2
----
74
76
76
skipif mysql # not compatible
query I rowsort label-566
SELECT ALL - tab2.col2 / col1 + 76 AS col1 FROM tab2
----
74
76
76
query I rowsort
SELECT - ( col1 ) + 82 * - ( col2 ) FROM tab2 AS cor0
----
-2191
-2245
-3133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col2 col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col1 - col0 * - 53 FROM tab2 cor0
----
402
4193
4204
query I rowsort
SELECT ALL - col0 + col0 * - col1 * - 55 + col1 FROM tab2 AS cor0
----
11959
253091
73803
query I rowsort
SELECT DISTINCT col0 + col1 * 19 FROM tab1 AS cor0
----
254
327
497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col1 + col2 col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - + col2 + - 35 AS col2 FROM tab1 AS cor0
----
-131
-89
-92
query I rowsort
SELECT col2 + + 44 * col0 AS col0 FROM tab1 AS cor0
----
186
2873
3616
query I rowsort
SELECT col0 * - col0 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-1260
-1368
-15219
query I rowsort
SELECT DISTINCT - col0 + ( col0 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT 46 * col2 + + col0 FROM tab2
----
1249
1274
1827
onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT - col2 DIV cor0.col2 AS col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-579
SELECT - col2 / cor0.col2 AS col1 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT - col1 + + ( cor0.col1 ) DIV cor0.col0 AS col1 FROM tab0 cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-580
SELECT - col1 + + ( cor0.col1 ) / cor0.col0 AS col1 FROM tab0 cor0
----
-83
-90
-95
query I rowsort
SELECT DISTINCT + + col2 + 20 * 63 FROM tab0 AS cor0
----
1261
1293
1342
query I rowsort
SELECT ALL + col0 + + 46 AS col1 FROM tab0 AS cor0
----
135
70
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-583
SELECT cor0.col1 DIV col2 AS col0 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-583
SELECT cor0.col1 / col2 AS col0 FROM tab0 cor0
----
1
2
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-584
SELECT ALL + col2 * CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-584
SELECT ALL + col2 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT col1 * 98 AS col2 FROM tab1 cor0
----
1274
2548
980
onlyif mysql # use DIV operator for integer division
query I rowsort label-586
SELECT ALL - col0 DIV - 65 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - col0 / - 65 AS col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - 89 * + col1 FROM tab2 AS cor0
----
-1513
-2759
-5251
query I rowsort
SELECT 55 * col0 FROM tab0 AS cor0
----
1320
1925
4895
query I rowsort
SELECT DISTINCT ( - 10 ) * col2 AS col2 FROM tab2 AS cor0
----
-260
-270
-380
query I rowsort
SELECT 21 + col1 FROM tab0 AS cor0
----
107
112
118
query I rowsort
SELECT ALL 21 + col1 * col1 * - 98 AS col0 FROM tab2 AS cor0
----
-28301
-341117
-94157
query I rowsort
SELECT DISTINCT col2 + cor0.col1 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
-7330
-8117
-9407
query I rowsort
SELECT - 75 + 4 FROM tab2 AS cor0
----
-71
-71
-71
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) * + col0 + col0 / col1 AS col1 FROM tab2 AS cor0
----
189
2029
3006
onlyif mysql # use DIV operator for integer division
query I rowsort label-595
SELECT DISTINCT + + col2 + - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + + col2 + - col1 / col1 AS col2 FROM tab2 AS cor0
----
25
26
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-596
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 + - col0 * col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 + - col0 * col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - cor0.col1 ) * + col1 * col0 - + col2 AS col2 FROM tab1 AS cor0
----
13424
1974
6343
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + cor0.col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - + col2 * - col2 col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT ALL - 85 - - 34 AS col2 FROM tab0
----
-51
-51
-51
query I rowsort
SELECT ALL - col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT col1 * + cor0.col1 AS col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + + 16 AS col0 FROM tab2 AS cor0
----
16
16
16
query I rowsort
SELECT - - col1 * - col2 - - cor0.col2 AS col0 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + + col1 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - 62 * cor0.col1 + 37 * col1 FROM tab2 AS cor0
----
-1475
-425
-775
query I rowsort
SELECT DISTINCT + + 1 * - cor0.col0 * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 + col1 ) col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT + col0 + + ( - col1 + col0 ) * + tab1.col1 AS col1 FROM tab1
----
-595
604
951
query I rowsort
SELECT ALL + 77 - + col0 AS col2 FROM tab1 AS cor0
----
-3
13
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT - col2 + col2 DIV + col0 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-613
SELECT - col2 + col2 / + col0 FROM tab2 AS cor0
----
-24
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 * + cor0.col0 col0 FROM tab1 cor0
----
262144
27
512000
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 + + 3 * - col2 * + col1 FROM tab0 AS cor0
----
-1118
-14105
9118
query I rowsort
SELECT ALL col2 * col2 + ( col1 * col0 ) FROM tab2 AS cor0
----
2787
5278
946
query I rowsort
SELECT DISTINCT + + cor0.col0 + + col0 - - 37 * - col2 FROM tab2 AS cor0
----
-1248
-806
-985
query I rowsort
SELECT DISTINCT + + ( col1 ) * - 1 + col1 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col0 + col2 + + 62 FROM tab1
----
113
55
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-620
SELECT - CAST( + col1 AS SIGNED ) col0 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-620
SELECT - CAST ( + col1 AS INTEGER ) col0 FROM tab2
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-621
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 66 * + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 66 * + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL tab2.col0 * + 24 FROM tab2
----
168
1872
1896
query I rowsort
SELECT ALL + 58 - tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cac0f34161158318726ea53f3972dfc2
onlyif mysql # use DIV operator for integer division
query I rowsort label-625
SELECT ALL + ( 28 ) DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-625
SELECT ALL + ( 28 ) / col0 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT 13 * + 22 AS col2 FROM tab2 AS cor0
----
286
286
286
onlyif mysql # use DIV operator for integer division
query I rowsort label-627
SELECT DISTINCT - - 53 DIV + ( col2 ) AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT - - 53 / + ( col2 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - - col2 + col2 * col1 * col2 AS col2 FROM tab2 AS cor0
----
22626
24586
39910
query I rowsort
SELECT - + cor0.col2 - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT cor0.col0 + - col2 * + col0 + col2 FROM tab0 AS cor0
----
-7127
-735
1
query I rowsort
SELECT cor1.col0 + + 15 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to b73dff91b6a8fdf79983b90d35b48428
query I rowsort
SELECT ALL + col1 - + col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - - ( col2 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col2 * col0 * - ( 9 ) + col0 FROM tab2 AS cor0
----
-1694
-18174
-26939
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-26
-27
-38
query I rowsort
SELECT col0 * tab2.col0 + tab2.col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT - 42 * - col0 * + col0 + - col0 AS col1 FROM tab2
----
2051
255450
262043
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 22 col0 FROM tab0 AS cor0
----
1804
22
726
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-640
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT tab0.col2 - 43 FROM tab0
----
-10
-42
39
query I rowsort
SELECT + col0 - + tab0.col2 * 94 FROM tab0
----
-3078
-59
-7619
query I rowsort
SELECT + col0 * - 24 + col2 + col2 FROM tab0 AS cor0
----
-1972
-510
-838
query I rowsort
SELECT - ( col2 ) * + col2 - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT + 61 * + col2 FROM tab2
----
1586
1647
2318
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * tab2.col2 * col2 col0 FROM tab2
----
129960
60840
65610
query I rowsort
SELECT ALL ( 63 ) FROM tab2
----
63
63
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-648
SELECT DISTINCT + 2 DIV col2 - col1 AS col1 FROM tab0
----
-86
-91
-95
skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT + 2 / col2 - col1 AS col1 FROM tab0
----
-86
-91
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-649
SELECT + - col2 * col0 DIV 14 FROM tab1 AS cor0
----
-11
-260
-548
skipif mysql # not compatible
query I rowsort label-649
SELECT + - col2 * col0 / 14 FROM tab1 AS cor0
----
-11
-260
-548
query I rowsort
SELECT - + col1 + - col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - cor0.col1 + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-652
SELECT + 65 + col1 * - col2 DIV - cor0.col2 + col1 FROM tab1 AS cor0
----
117
85
91
skipif mysql # not compatible
query I rowsort label-652
SELECT + 65 + col1 * - col2 / - cor0.col2 + col1 FROM tab1 AS cor0
----
117
85
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-653
SELECT DISTINCT - + col2 DIV - cor0.col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT - + col2 / - cor0.col2 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - cor0.col1 ) + + ( + col2 + + col0 ) col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT DISTINCT + - col1 * col1 * - col0 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT - 1 + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1535
-647
-838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 - col2 col2 FROM tab0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 17 + col1 col2 FROM tab1 AS cor0
----
110
46
91
query I rowsort
SELECT DISTINCT + 54 * + col2 AS col1 FROM tab0 AS cor0
----
1782
4428
54
query I rowsort
SELECT ALL - tab1.col0 * - col1 - + col0 FROM tab1
----
576
75
960
query I rowsort
SELECT DISTINCT - 49 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-49
query I rowsort
SELECT DISTINCT + 80 FROM tab1, tab2, tab2 AS cor0, tab0
----
80
query I rowsort
SELECT - col1 - - tab0.col0 * + tab0.col2 AS col2 FROM tab0
----
-62
706
7207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-664
SELECT col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-664
SELECT col2 + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-665
SELECT col1 + CAST( + col1 + col1 AS SIGNED ) * col1 AS col1 FROM tab0
----
14878
16653
18915
skipif mysql # not compatible
query I rowsort label-665
SELECT col1 + CAST ( + col1 + col1 AS INTEGER ) * col1 AS col1 FROM tab0
----
14878
16653
18915
onlyif mysql # use DIV operator for integer division
query I rowsort label-666
SELECT DISTINCT + col2 DIV ( + 50 ) AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT + col2 / ( + 50 ) AS col2 FROM tab2
----
0
query I rowsort
SELECT + 74 + - col2 FROM tab1 AS cor0
----
-22
17
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-668
SELECT + cor0.col2 DIV + col0 + + col2 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-668
SELECT + cor0.col2 / + col0 + + col2 FROM tab0 AS cor0
----
1
34
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-669
SELECT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-669
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * tab2.col2 + + col0 + - 7 AS col2 FROM tab2
----
189
2099
3074
onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT - col0 DIV col0 - cor0.col0 * cor0.col1 * col1 AS col2 FROM tab0 cor0
----
-177505
-329316
-737010
skipif mysql # not compatible
query I rowsort label-671
SELECT - col0 / col0 - cor0.col0 * cor0.col1 * col1 AS col2 FROM tab0 cor0
----
-177505
-329316
-737010
query I rowsort
SELECT DISTINCT - + 75 * - cor0.col0 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT DISTINCT + ( col2 ) + + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + ( + 34 ) * col2 + 39 * col0 FROM tab1 AS cor0
----
-144
-1719
558
query I rowsort
SELECT 2 + - col2 + - col2 FROM tab0 cor0
----
-162
-64
0
query I rowsort
SELECT ALL + 51 + ( - col0 ) FROM tab1 AS cor0
----
-13
-29
48
query I rowsort
SELECT - - ( + col2 ) * + col1 * - ( + ( + col1 ) ) FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-678
SELECT DISTINCT - CAST( - cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT - CAST ( - cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + - 28 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7368
8253
9381
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-680
SELECT - CAST( col1 AS SIGNED ) * + col2 + 89 AS col1 FROM tab0 cor0
----
-2749
-7373
-8
skipif mysql # not compatible
query I rowsort label-680
SELECT - CAST ( col1 AS INTEGER ) * + col2 + 89 AS col1 FROM tab0 cor0
----
-2749
-7373
-8
query I rowsort
SELECT + col2 - + 72 FROM tab1 AS cor0
----
-15
-18
24
query I rowsort
SELECT ALL + + 9 + col1 FROM tab0 AS cor0
----
100
106
95
query I rowsort
SELECT + + ( + col1 ) * + 20 * + 84 AS col1 FROM tab0 AS cor0
----
144480
152880
162960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col2 * ( col1 ) * - col1 FROM tab2 AS cor0
----
-25758
-7980
-88478
query I rowsort
SELECT ALL + col2 + + col2 + + col1 FROM tab0 cor0
----
152
255
99
query I rowsort
SELECT ALL col2 + + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - 53 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-689
SELECT ALL + col1 * - ( 68 ) + col0 DIV col1 FROM tab0 AS cor0
----
-5848
-6188
-6596
skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + col1 * - ( 68 ) + col0 / col1 FROM tab0 AS cor0
----
-5848
-6188
-6596
query I rowsort
SELECT col2 * + col0 - tab0.col1 AS col1 FROM tab0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( - col0 + - col0 ) col1 FROM tab2 AS cor0
----
-12168
-12482
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-692
SELECT + cor0.col0 + + 65 DIV col2 AS col1 FROM tab1 AS cor0
----
4
65
80
skipif mysql # not compatible
query I rowsort label-692
SELECT + cor0.col0 + + 65 / col2 AS col1 FROM tab1 AS cor0
----
4
65
80
query I rowsort
SELECT - col0 + 6 * - col0 AS col1 FROM tab2 cor0
----
-49
-546
-553
query I rowsort
SELECT DISTINCT col1 * ( col0 ) * - cor0.col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 4 col2 FROM tab2 AS cor0
----
104
108
152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + + col2 * 98 * cor0.col1 + + col0 FROM tab2 AS cor0
----
150410
63387
82033
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + ( - col2 ) col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col0 * 11 + + col0 * + col1 * + col2 FROM tab1 cor0
----
35776
4179
98960
query I rowsort
SELECT ALL - + col0 - + 0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + tab1.col0 col2 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-702
SELECT DISTINCT + col1 DIV 8 FROM tab1 AS cor0
----
1
3
skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT + col1 / 8 FROM tab1 AS cor0
----
1
3
query I rowsort
SELECT ALL + - cor0.col1 + 13 * 77 FROM tab1 AS cor0
----
975
988
991
query I rowsort
SELECT ALL - col0 + - 7 AS col0 FROM tab2 AS cor0
----
-14
-85
-86
query I rowsort
SELECT DISTINCT + col2 - ( + 78 + - col2 ) AS col2 FROM tab2 AS cor0
----
-2
-24
-26
query I rowsort
SELECT + col1 * - col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - col1 + - ( 85 ) * - col0 FROM tab1 AS cor0
----
229
5430
6787
query I rowsort
SELECT col1 * + col2 + - col2 AS col0 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT 7 * tab0.col2 + + col0 * - 91 FROM tab0
----
-1953
-3178
-7525
onlyif mysql # use DIV operator for integer division
query I rowsort label-710
SELECT DISTINCT + 77 DIV cor0.col2 AS col2 FROM tab0, tab2, tab0 AS cor0
----
0
2
77
skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT + 77 / cor0.col2 AS col2 FROM tab0, tab2, tab0 AS cor0
----
0
2
77
query I rowsort
SELECT DISTINCT 46 + + col0 * col0 - col0 * + cor0.col2 FROM tab2 AS cor0
----
-94
3285
4102
query I rowsort
SELECT ALL + + 7 * col0 AS col0 FROM tab2 AS cor0
----
49
546
553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-713
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0, tab0 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0, tab0 cor1
----
NULL
query I rowsort
SELECT DISTINCT 63 + cor0.col0 - + col1 * - col2 AS col0 FROM tab1 AS cor0
----
1391
1470
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + cor0.col2 col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-716
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 78 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 78 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col0 + - 88 * col2 FROM tab2 AS cor0
----
-2366
-2383
-3423
query I rowsort
SELECT ALL + ( col0 ) + + cor0.col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT 71 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT - + ( + col2 ) * col0 DIV - 50 FROM tab0 AS cor0
----
0
145
15
skipif mysql # not compatible
query I rowsort label-720
SELECT - + ( + col2 ) * col0 / - 50 FROM tab0 AS cor0
----
0
145
15
query I rowsort
SELECT + - ( - cor0.col2 ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ( col1 ) * - 1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-724
SELECT ALL + - col2 - CAST( ( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-724
SELECT ALL + - col2 - CAST ( ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( - 83 ) col0 FROM tab0 AS cor0
----
-169
-174
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col1 * + col0 col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL + col0 * + ( cor0.col2 + col0 ) AS col0 FROM tab2 AS cor0
----
238
8112
9243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-728
SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-728
SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + - 6 AS col1 FROM tab0 AS cor0
----
-5
27
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-730
SELECT + col1 DIV - 80 - - 31 FROM tab2 AS cor0
----
31
31
31
skipif mysql # not compatible
query I rowsort label-730
SELECT + col1 / - 80 - - 31 FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT - col1 + - 31 FROM tab0 AS cor0
----
-117
-122
-128
query I rowsort
SELECT DISTINCT - - col2 * + ( + col1 ) * - col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT col0 - - col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-734
SELECT + - CAST( + col0 AS SIGNED ) * col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-734
SELECT + - CAST ( + col0 AS INTEGER ) * col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + 93 AS col0 FROM tab2
----
34
62
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-736
SELECT + CAST( NULL AS SIGNED ) * 36 + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-736
SELECT + CAST ( NULL AS INTEGER ) * 36 + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 + - 39 FROM tab2 AS cor0
----
-1
-12
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-738
SELECT - col0 * + CAST( + 85 AS SIGNED ) FROM tab2
----
-595
-6630
-6715
skipif mysql # not compatible
query I rowsort label-738
SELECT - col0 * + CAST ( + 85 AS INTEGER ) FROM tab2
----
-595
-6630
-6715
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT - col0 * 5 AS col0 FROM tab1 AS cor0
----
-15
-320
-400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-741
SELECT + - CAST( - cor0.col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-741
SELECT + - CAST ( - cor0.col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - + ( 31 ) + - col0 + + ( - col1 ) * + col1 FROM tab2 AS cor0
----
-3590
-399
-999
query I rowsort
SELECT ALL - col0 * col1 + col1 * + col1 FROM tab0 cor0
----
182
5332
6014
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT ( - 67 ) DIV col0 + col2 FROM tab0
----
0
31
82
skipif mysql # not compatible
query I rowsort label-745
SELECT ( - 67 ) / col0 + col2 FROM tab0
----
0
31
82
query I rowsort
SELECT ALL + 26 * tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to a84859fb4b95c35066fee6e99fcf3ea6
query I rowsort
SELECT DISTINCT + 43 * col2 + + col1 AS col2 FROM tab1
----
2348
2461
4141
onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT + ( ( col0 ) ) DIV col0 - col0 * col2 AS col0 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-748
SELECT + ( ( col0 ) ) / col0 - col0 * col2 AS col0 FROM tab0
----
-34
-7297
-791
query I rowsort
SELECT DISTINCT + - col0 * 65 AS col2 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT DISTINCT 96 * col2 FROM tab0
----
3168
7872
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-751
SELECT ALL ( col0 ) * tab1.col0 DIV - 66 FROM tab1
----
-62
-96
0
skipif mysql # not compatible
query I rowsort label-751
SELECT ALL ( col0 ) * tab1.col0 / - 66 FROM tab1
----
-62
-96
0
query I rowsort
SELECT - cor0.col1 * col0 - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - col1 + + col1 - 5 FROM tab0 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL ( col2 ) * col0 AS col2 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-755
SELECT col0 * - CAST( col0 AS SIGNED ) FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-755
SELECT col0 * - CAST ( col0 AS INTEGER ) FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - col0 * col1 * + col2 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + col0 + col2 - - tab2.col0 AS col1 FROM tab2
----
182
196
41
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + cor0.col2 * col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-759
SELECT DISTINCT col2 * col0 + - col1 DIV col0 FROM tab1 AS cor0
----
154
3648
7680
skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT col2 * col0 + - col1 / col0 FROM tab1 AS cor0
----
154
3648
7680
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( + col2 )
----
query I rowsort
SELECT DISTINCT col0 * - col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT col1 + col0 * - col1 * + col1 FROM tab0 AS cor0
----
-177418
-329218
-736918
query I rowsort
SELECT DISTINCT + col1 + col0 * - col2 + col2 FROM tab1 AS cor0
----
-3581
-7571
-82
query I rowsort
SELECT ALL col2 * + col0 - - col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT col1 * col0 + + tab0.col0 AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT - cor0.col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + - col1 col1 FROM tab1
----
-104
-1053
-650
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 NOT IN ( col2 )
----
query I rowsort
SELECT - tab0.col2 * + tab0.col2 + col1 + col0 * col0 FROM tab0
----
-427
1288
1321
onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT DISTINCT - col1 * tab1.col1 * col1 + col0 DIV col0 FROM tab1
----
-17575
-2196
-999
skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT - col1 * tab1.col1 * col1 + col0 / col0 FROM tab1
----
-17575
-2196
-999
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN + col0 AND NULL
----
query I rowsort
SELECT ALL + cor0.col2 + col2 + + col2 FROM tab0 cor0
----
246
3
99
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * tab2.col1 col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT col2 * - tab1.col1 + - tab1.col2 + col0 AS col2 FROM tab1
----
-1264
-1455
-563
onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT col2 + col0 DIV col0 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-777
SELECT col2 + col0 / col0 FROM tab1
----
55
58
97
query I rowsort
SELECT + - cor0.col2 * col0 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + col1 + col2 * col0 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT + tab2.col1 + + tab2.col1 FROM tab2
----
118
34
62
query I rowsort
SELECT col0 + col2 + col0 FROM tab0
----
260
71
81
query I rowsort
SELECT + col1 + + col0 * - col1 FROM tab2
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * tab0.col1 + + col1 * + col2 col0 FROM tab0
----
14924
194
5676
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT col1 - - col1 * col1 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-786
SELECT DISTINCT col0 DIV col1 + col0 AS col2 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT col0 / col1 + col0 AS col2 FROM tab1
----
3
70
86
query I rowsort
SELECT + col0 + col0 * cor0.col0 * + col2 FROM tab2 AS cor0
----
1330
158262
237237
query I rowsort
SELECT col2 + col2 * col0 AS col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT col0 * + col1 + - col1 - col0 FROM tab2 AS cor0
----
1247
179
4465
query I rowsort
SELECT ALL col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + col1 + + col1 * col1 + + col2 AS col2 FROM tab0 cor0
----
7515
8454
9507
query I rowsort
SELECT ALL + col0 * + col1 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 + + col2 * + col2 * col1 FROM tab2 AS cor0
----
22572
24510
39858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + col2 col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL - - col0 * - col2 * - cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
233536
489
614480
query I rowsort
SELECT col0 * - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT 25 * + cor1.col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to dd1796aad86558c35f88186a8fe4c63c
query I rowsort
SELECT ALL 50 * + col0 AS col0 FROM tab1
----
150
3200
4000
query I rowsort
SELECT + + col2 * col2 + col2 + - col0 AS col0 FROM tab2 AS cor0
----
1403
624
749
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-800
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-800
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - 20 * - col2 * + col1 AS col1 FROM tab1 AS cor0
----
11400
24960
28080
query I rowsort
SELECT 97 * - col2 FROM tab1
----
-5238
-5529
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT DISTINCT + + cor0.col2 DIV ( col2 * - col2 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT + + cor0.col2 / ( col2 * - col2 ) FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT - - col1 + + 0 DIV col0 AS col0 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-804
SELECT - - col1 + + 0 / col0 AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL + + col2 + ( col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-806
SELECT DISTINCT - - col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT - - col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col0 * col1 * + col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col1 * col2 * + col2 + - col0 FROM tab1
----
119728
32426
75813
query I rowsort
SELECT - col1 + col1 * + col0 FROM tab1
----
1027
52
630
query I rowsort
SELECT - col1 * + col2 + col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + col1 * col1 + + col0 AS col0 FROM tab1
----
164
249
679
query I rowsort
SELECT DISTINCT tab2.col0 * + col1 * + col2 + tab2.col1 AS col1 FROM tab2
----
119711
51051
5890
query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-814
SELECT tab1.col0 DIV col2 + tab1.col1 FROM tab1
----
11
13
26
skipif mysql # not compatible
query I rowsort label-814
SELECT tab1.col0 / col2 + tab1.col1 FROM tab1
----
11
13
26
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT - col2 BETWEEN ( NULL ) AND col1
----
query I rowsort
SELECT ALL + ( 33 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT DISTINCT - + 64 DIV - col2 + - ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
0
1
64
skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - + 64 / - col2 + - ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
0
1
64
query I rowsort
SELECT + - 57 * + col0 * - col1 + cor0.col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
36500
4498
59306
query I rowsort
SELECT ALL + 20 + col1 AS col1 FROM tab1 AS cor0
----
30
33
46
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NULL <> ( NULL )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + col0 * + col0 + + tab0.col0 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 * - col2 * tab0.col0 AS col1 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT - tab0.col0 + - tab0.col2 + col1 AS col1 FROM tab0
----
-80
29
61
query I rowsort
SELECT - - col2 + + cor0.col1 + + col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL - + col1 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - + col1 + 76 * col1 AS col0 FROM tab0 AS cor0
----
6450
6825
7275
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-827
SELECT + - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-827
SELECT + - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + 25 * - col1 FROM tab0 AS cor0
----
-2183
-2357
-2426
query I rowsort
SELECT DISTINCT tab1.col2 * + 14 FROM tab1, tab2 AS cor0
----
1344
756
798
query I rowsort
SELECT - 14 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
query I rowsort
SELECT + col2 * col2 * - 40 AS col0 FROM tab0
----
-268960
-40
-43560
query I rowsort
SELECT 33 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT - + cor0.col2 * 24 + - col0 * cor0.col0 FROM tab2 cor0
----
-6708
-697
-7153
query I rowsort
SELECT cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 160649b428b8d254517cd2096e054d21
query I rowsort
SELECT 69 * 86 FROM tab2
----
5934
5934
5934
query I rowsort
SELECT 81 + col2 + ( col2 ) * col0 * col2 AS col2 FROM tab2 AS cor0
----
114195
5211
52835
query I rowsort
SELECT ALL col0 * tab2.col0 + col2 AS col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL + 12 * col0 AS col1 FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT ALL - + col0 + - 59 AS col0 FROM tab1 AS cor0
----
-123
-139
-62
query I rowsort
SELECT + col0 + col1 * 96 + col0 AS col2 FROM tab1 AS cor0
----
1088
1408
2502
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 5 ) col1 FROM tab2, tab1 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 + + col0 * ( - 19 ) col1 FROM tab0 AS cor0
----
-1691
-456
-665
query I rowsort
SELECT col0 * col2 * col1 AS col1 FROM tab2
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * col1 - col2 * col0 col2 FROM tab2
----
-1580
2652
35
query I rowsort
SELECT - col2 * + col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) - col0 * col1 col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col1 * + col0 * + col2 + + col2 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT - col2 - - col2 * col2 * - col0 FROM tab1 AS cor0
----
-207993
-737376
-8802
query I rowsort
SELECT - + col1 + cor0.col2 + - col1 * cor0.col2 FROM tab2 cor0
----
-1567
-625
-841
query I rowsort
SELECT DISTINCT col2 * cor0.col1 * cor0.col1 + col2 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT DISTINCT - - 98 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
122
133
187
query I rowsort
SELECT + + col1 * 25 FROM tab0 AS cor0
----
2150
2275
2425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * + col1 col1 FROM tab1 AS cor0
----
-210
-273
-546
query I rowsort
SELECT DISTINCT - col1 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL 7 + - col0 FROM tab1 AS cor0
----
-57
-73
4
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT + 51 * - col1 FROM tab2 AS cor0
----
-1581
-3009
-867
query I rowsort
SELECT DISTINCT col2 * - col0 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-132
-14760
-3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-860
SELECT DISTINCT col2 + + col0 DIV cor0.col1 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT col2 + + col0 / cor0.col1 FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT ALL + + col2 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + ( - col2 ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-863
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - CAST ( NULL AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 2 * - ( + col0 ) AS col0 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT + 89 * cor0.col0 * + col0 + + 11 AS col0 FROM tab0 AS cor0
----
109036
51275
704980
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-866
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - + 67 + + col2 FROM tab0 AS cor0
----
-34
-66
15
query I rowsort
SELECT + + 73 + + col0 FROM tab2 AS cor0
----
151
152
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col1 ) col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT DISTINCT + - col0 * col0 + 19 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + - col0 * col0 + 19 / - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 + col1 col0 FROM tab1 AS cor0
----
-3
0
13
query I rowsort
SELECT DISTINCT + + 66 FROM tab0 cor0
----
66
query I rowsort
SELECT DISTINCT - col1 + col0 + col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT + tab2.col2 + + 37 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7b3b81f262fe2057ef6599175f145de0
query I rowsort
SELECT - col1 - - 55 AS col1 FROM tab1
----
29
42
45
query I rowsort
SELECT - cor0.col0 * + 96 + col1 * - col1 FROM tab1 AS cor0
----
-6244
-7849
-964
query I rowsort
SELECT + col1 * 83 - - 41 FROM tab2 AS cor0
----
1452
2614
4938
skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( col0 * + col1 AS REAL ) + - col1 * - col1 FROM tab2 AS cor0
----
106386
2480
362437
query I rowsort
SELECT ALL - - col1 + - 32 FROM tab1 cor0
----
-19
-22
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-881
SELECT DISTINCT - col0 * CAST( 66 AS SIGNED ) * + cor0.col0 FROM tab2 cor0
----
-3234
-401544
-411906
skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT - col0 * CAST ( 66 AS INTEGER ) * + cor0.col0 FROM tab2 cor0
----
-3234
-401544
-411906
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-882
SELECT DISTINCT - - col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT - - col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col1 * 43 - ( + col2 + cor0.col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-17455
-4196
-7327
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-884
SELECT ALL + col2 + + CAST( col2 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + col2 + + CAST ( col2 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL - + col0 * col2 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT + cor0.col0 * - 44 FROM tab0 AS cor0
----
-1056
-1540
-3916
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 cor0, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT DISTINCT 8 - + col2 AS col2 FROM tab2
----
-18
-19
-30
query I rowsort
SELECT ALL + 80 - + col1 * - col1 FROM tab2
----
1041
3561
369
onlyif mysql # use DIV operator for integer division
query I rowsort label-891
SELECT - 49 DIV col1 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-891
SELECT - 49 / col1 FROM tab2
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-892
SELECT + col0 DIV ( - col0 ) + col2 + + 82 FROM tab2 AS cor0
----
107
108
119
skipif mysql # not compatible
query I rowsort label-892
SELECT + col0 / ( - col0 ) + col2 + + 82 FROM tab2 AS cor0
----
107
108
119
query I rowsort
SELECT 40 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
onlyif mysql # use DIV operator for integer division
query I rowsort label-894
SELECT ALL + col0 * 95 + col1 DIV - col1 + 78 AS col0 FROM tab1 AS cor0
----
362
6157
7677
skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + col0 * 95 + col1 / - col1 + 78 AS col0 FROM tab1 AS cor0
----
362
6157
7677
query I rowsort
SELECT ALL - col2 - - 19 * col0 * col1 AS col0 FROM tab0 cor0
----
153799
39183
64504
query I rowsort
SELECT ALL col0 + - 12 * col0 FROM tab0
----
-264
-385
-979
query I rowsort
SELECT + col2 * ( col1 ) AS col0 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-898
SELECT - col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-898
SELECT - col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-899
SELECT col0 * - col1 + 0 * col0 DIV tab1.col1 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-899
SELECT col0 * - col1 + 0 * col0 / tab1.col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-900
SELECT - tab0.col2 + + CAST( NULL AS SIGNED ) + - 21 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-900
SELECT - tab0.col2 + + CAST ( NULL AS INTEGER ) + - 21 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - col0 + 19 * col1 FROM tab1
----
-450
-793
416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-902
SELECT tab0.col1 * 68 * - 2 + + col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-3783
-4095
-4300
skipif mysql # not compatible
query I rowsort label-902
SELECT tab0.col1 * 68 * - 2 + + col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-3783
-4095
-4300
skipif mysql # not compatible
query I rowsort
SELECT col1 + 16 + col1 * CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
7498
8388
9522
query I rowsort
SELECT - + col2 + 23 + col2 FROM tab0 AS cor0
----
23
23
23
query I rowsort
SELECT + - col0 * col1 * - col1 AS col1 FROM tab1 cor0
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-906
SELECT - col0 DIV + tab1.col0 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-906
SELECT - col0 / + tab1.col0 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col2 + + col2 + + tab1.col2 AS col1 FROM tab1
----
162
171
288
query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab2, tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT - tab0.col1 * + col0 + 45 AS col2 FROM tab0
----
-2019
-3350
-8054
query I rowsort
SELECT + col0 + col1 * ( col2 ) FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL + col2 + + tab2.col2 * tab2.col2 AS col1 FROM tab2
----
1482
702
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-912
SELECT ALL - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-912
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-913
SELECT DISTINCT 25 * cor0.col2 DIV col2 + cor0.col0 - + 30 FROM tab1 AS cor0
----
-2
59
75
skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT 25 * cor0.col2 / col2 + cor0.col0 - + 30 FROM tab1 AS cor0
----
-2
59
75
query I rowsort
SELECT ( col1 ) + cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
134
167
269
onlyif mysql # use DIV operator for integer division
query I rowsort label-915
SELECT col0 * + 82 + col0 DIV 60 FROM tab1 AS cor0
----
246
5249
6561
skipif mysql # not compatible
query I rowsort label-915
SELECT col0 * + 82 + col0 / 60 FROM tab1 AS cor0
----
246
5249
6561
onlyif mysql # use DIV operator for integer division
query I rowsort label-916
SELECT - col2 DIV + col0 + + col1 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-916
SELECT - col2 / + col0 + + col1 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT ALL - + 44 + - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-133
-68
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-918
SELECT + CAST( NULL AS DECIMAL ) * - 41 + col0 + + 82 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-918
SELECT + CAST ( NULL AS REAL ) * - 41 + col0 + + 82 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 38 + col2 FROM tab0 AS cor0
----
120
39
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-920
SELECT - ( ( col0 ) ) * col2 + + 70 DIV col2 FROM tab0 AS cor0
----
-7298
-790
35
skipif mysql # not compatible
query I rowsort label-920
SELECT - ( ( col0 ) ) * col2 + + 70 / col2 FROM tab0 AS cor0
----
-7298
-790
35
query I rowsort
SELECT DISTINCT 48 - + col2 FROM tab2 AS cor0
----
10
21
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + + col0 col0 FROM tab2
----
128
129
57
query I rowsort
SELECT col2 * col2 * - col2 FROM tab1 cor0
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT - - ( - cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - ( cor0.col0 ) * 40 AS col0 FROM tab0 cor0
----
-1400
-3560
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * - 26 + + 38 col0 FROM tab0 AS cor0
----
-2367
-672
-969
query I rowsort
SELECT DISTINCT col0 * + 21 + col1 FROM tab0 AS cor0
----
1960
590
832
query I rowsort
SELECT col1 * + col1 - - col1 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT - col0 + 12 * 92 FROM tab2 AS cor0
----
1025
1026
1097
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * 54 + + col0 col2 FROM tab1 AS cor0
----
1407
604
782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 col0 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + col2 + + ( + 36 ) AS col1 FROM tab1 AS cor0
----
132
90
93
query I rowsort
SELECT + - col2 * col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 39 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-136
-2877
-7501
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 - ( col1 * col1 ) col1 FROM tab2
----
-912
2603
5952
query I rowsort
SELECT 26 - - col1 * 7 AS col1 FROM tab1 AS cor0
----
117
208
96
query I rowsort
SELECT + 36 * col1 AS col1 FROM tab1 AS cor0
----
360
468
936
query I rowsort
SELECT DISTINCT + 66 + col1 * - col2 AS col0 FROM tab1
----
-1182
-1338
-504
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-939
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 67 * - col2 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 67 * - col2 AS col0 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-940
SELECT + 12 * - col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-940
SELECT + 12 * - col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 17 - col0 FROM tab2 cor0
----
-61
-62
10
query I rowsort
SELECT + + col2 * col0 + 30 FROM tab0 AS cor0
----
65
7328
822
query I rowsort
SELECT DISTINCT + col1 + col0 * 75 FROM tab0 cor0
----
1886
2722
6766
query I rowsort
SELECT - col2 * col0 + 91 * col0 AS col0 FROM tab2 AS cor0
----
4187
448
5070
query I rowsort
SELECT + + ( col1 ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 68 + col1 * + col0 * col2 AS col2 FROM tab2 AS cor0
----
119720
51102
5927
query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab0, tab2 AS cor0
----
96
query I rowsort
SELECT col0 + cor0.col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + - cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT col1 * col2 DIV col0 col1 FROM tab2
----
119
19
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-951
SELECT col1 * col2 / col0 col1 FROM tab2
----
119
19
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-952
SELECT ALL 56 * + cor0.col2 + - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-952
SELECT ALL 56 * + cor0.col2 + - col1 * + 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-953
SELECT ALL 66 DIV 38 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-953
SELECT ALL 66 / 38 FROM tab1
----
1
1
1
query I rowsort
SELECT + ( col1 ) + + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT col2 + - col2 + 8 AS col1 FROM tab2
----
8
8
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT DISTINCT 49 - + col0 DIV col1 FROM tab0
----
49
skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT 49 - + col0 / col1 FROM tab0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
query I rowsort
SELECT 26 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT 8 * 55 FROM tab1, tab2 AS cor0
----
9 values hashing to 574050448bf6a14b7436d7e456945832
query I rowsort
SELECT 79 * - col1 + col2 FROM tab0 AS cor0
----
-6761
-7107
-7662
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-962
SELECT col2 * + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-962
SELECT col2 * + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - + 73 AS col2 FROM tab1
----
-47
-60
-63
query I rowsort
SELECT - cor1.col2 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ALL - + 13 + - col1 AS col2 FROM tab1 AS cor0
----
-23
-26
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-966
SELECT col2 DIV - cor0.col0 col0 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-966
SELECT col2 / - cor0.col0 col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + + ( 41 ) FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT + 33 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT + 77 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT - col0 * + 36 FROM tab0
----
-1260
-3204
-864
query I rowsort
SELECT ALL - + 62 + - col2 FROM tab1 AS cor0
----
-116
-119
-158
query I rowsort
SELECT DISTINCT + cor0.col0 + - 34 AS col2 FROM tab2 AS cor0
----
-27
44
45
query I rowsort
SELECT ALL - ( - col1 ) + col2 * - 6 AS col0 FROM tab0 AS cor0
----
-112
-401
91
query I rowsort
SELECT ALL 25 * col1 AS col1 FROM tab1 AS cor0
----
250
325
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT - 90 DIV + cor0.col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-975
SELECT - 90 / + cor0.col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL tab0.col1 * + col2 * col1 + 22 AS col0 FROM tab0
----
244090
679064
9431
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 - 96 col0 FROM tab0 AS cor0
----
1968
3299
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab2 AS cor0
----
40
query I rowsort
SELECT + col2 * - col0 + ( - col2 ) + col2 * - 10 AS col1 FROM tab2 AS cor0
----
-2314
-3420
-486
query I rowsort
SELECT - ( - tab2.col0 ) * col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT - cor0.col1 + - 84 FROM tab2, tab0 AS cor0
----
-170
-175
-181
onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT DISTINCT + col2 + + col1 DIV ( tab1.col2 * tab1.col1 ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT + col2 + + col1 / ( tab1.col2 * tab1.col1 ) FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT + + col1 + 32 FROM tab0 AS cor0
----
118
123
129
query I rowsort
SELECT cor0.col1 + 76 * - 55 + + cor0.col2 FROM tab2 AS cor0
----
-4095
-4122
-4125
query I rowsort
SELECT + col2 * + col2 + - ( - cor0.col2 ) * col1 + ( col0 ) AS col2 FROM tab1 AS cor0
----
10544
3883
4323
onlyif mysql # use DIV operator for integer division
query I rowsort label-986
SELECT DISTINCT col1 DIV col0 FROM tab2 cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT col1 / col0 FROM tab2 cor0
----
0
4
query I rowsort
SELECT DISTINCT + 61 FROM tab2, tab0 cor0
----
61
query I rowsort
SELECT + col2 * 90 * + col0 FROM tab2
----
17010
182520
270180
query I rowsort
SELECT ALL - col0 * + 70 + col2 AS col1 FROM tab0 AS cor0
----
-1647
-2449
-6148
query I rowsort
SELECT + col1 + 85 * col1 AS col1 FROM tab1
----
1118
2236
860
query I rowsort
SELECT - - 39 AS col2 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT ALL - - col0 + - cor0.col2 * + cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
119888
32554
75819
query I rowsort
SELECT DISTINCT - col2 * 40 * + col0 + col0 * col0 FROM tab1 AS cor0
----
-141824
-300800
-6471
query I rowsort
SELECT DISTINCT + 51 * ( - col1 ) + - col0 * 53 FROM tab1 AS cor0
----
-1485
-3902
-4903
query I rowsort
SELECT DISTINCT - col0 * - col0 + col1 * col2 FROM tab1 AS cor0
----
1413
4666
7648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-996
SELECT ALL - CAST( NULL AS SIGNED ) * 97 * cor0.col2 + 11 / + 63 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-996
SELECT ALL - CAST ( NULL AS INTEGER ) * 97 * cor0.col2 + 11 / + 63 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 24 * + col0 AS col0 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT - 53 + col1 * cor0.col2 FROM tab1 AS cor0
----
1195
1351
517
query I rowsort
SELECT DISTINCT + + col1 + - 57 * - col2 AS col0 FROM tab1 AS cor0
----
3104
3259
5485
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1000
SELECT col2 - - col1 * + CAST( col1 + - col1 AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1000
SELECT col2 - - col1 * + CAST ( col1 + - col1 AS INTEGER ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + - col0 * col1 * - col1 AS col1 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT + col2 * - cor0.col0 * + 94 + cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
-17955
-192660
-285190
query I rowsort
SELECT col1 + col0 * col0 + ( col2 ) FROM tab2 AS cor0
----
107
6169
6296
query I rowsort
SELECT ALL - - col1 + - col2 * + cor0.col0 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT - - 49 * col2 * col1 FROM tab1 AS cor0
----
27930
61152
68796
query I rowsort
SELECT + cor0.col0 - + col0 * 26 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT - - 73 + - col2 AS col0 FROM tab1 AS cor0
----
-23
16
19
query I rowsort
SELECT ALL + + cor0.col1 + cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1010
SELECT CAST( + 74 AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
skipif mysql # not compatible
query I rowsort label-1010
SELECT CAST ( + 74 AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT DISTINCT + + 57 DIV 65 FROM tab2, tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + + 57 / 65 FROM tab2, tab1 AS cor0
----
0
query I rowsort
SELECT - + col1 + 68 FROM tab0 AS cor0
----
-18
-23
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-1013
SELECT + col0 DIV + tab1.col1 + - 15 + col0 * col0 * - col0 FROM tab1
----
-262153
-42
-512009
skipif mysql # not compatible
query I rowsort label-1013
SELECT + col0 / + tab1.col1 + - 15 + col0 * col0 * - col0 FROM tab1
----
-262153
-42
-512009
query I rowsort
SELECT - col0 + - col0 + + col0 AS col2 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 1 + + col1 col2 FROM tab0 AS cor0
----
3
63
63
query I rowsort
SELECT DISTINCT 20 FROM tab2, tab0, tab2 AS cor0
----
20
query I rowsort
SELECT + - cor0.col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT - 39 FROM tab1, tab0, tab2 AS cor0
----
-39
query I rowsort
SELECT + 63 * - col1 * col2 AS col0 FROM tab1
----
-35910
-78624
-88452
query I rowsort
SELECT cor0.col2 + - col2 * - col0 * - col0 FROM tab1 AS cor0
----
-233415
-432
-614304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 - + ( - col0 + - 25 ) * - tab0.col1 * col0 col1 FROM tab0
----
-100047
-203699
-916562
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * - col1 AS col0 FROM tab0 cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col0 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1024
SELECT - CAST( col1 AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-1024
SELECT - CAST ( col1 AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + col0 + ( col0 + - col2 ) * tab0.col1 FROM tab0
----
-750
3333
726
query I rowsort
SELECT ( - cor0.col2 ) FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col1 FROM tab2 cor0
----
5
5
5
query I rowsort
SELECT ALL + 43 + - col0 * col1 FROM tab0 AS cor0
----
-2021
-3352
-8056
onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT ALL - - 80 DIV + cor0.col0 col1 FROM tab1 AS cor0
----
1
1
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL - - 80 / + cor0.col0 col1 FROM tab1 AS cor0
----
1
1
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1030
SELECT DISTINCT - 31 * cor0.col1 DIV col0 - - col0 * 25 AS col2 FROM tab1 AS cor0
----
-193
1596
1995
skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT - 31 * cor0.col1 / col0 - - col0 * 25 AS col2 FROM tab1 AS cor0
----
-193
1596
1995
query I rowsort
SELECT ALL - + 4 + + 98 FROM tab0 AS cor0
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1032
SELECT DISTINCT + 30 DIV - 28 + + col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + 30 / - 28 + + col1 FROM tab0 AS cor0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1033
SELECT DISTINCT + - 83 * + col1 DIV + col1 FROM tab0 AS cor0
----
-83
skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT + - 83 * + col1 / + col1 FROM tab0 AS cor0
----
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1034
SELECT ALL - CAST( - 2 AS SIGNED ) FROM tab2, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - CAST ( - 2 AS INTEGER ) FROM tab2, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT col1 * 57 * tab1.col1 FROM tab1
----
38532
5700
9633
query I rowsort
SELECT + col1 * + 79 AS col0 FROM tab0 cor0
----
6794
7189
7663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1037
SELECT + CAST( NULL AS DECIMAL ) * col0 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1037
SELECT + CAST ( NULL AS REAL ) * col0 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 - + 0 * + col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1039
SELECT + CAST( NULL AS SIGNED ) * + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1039
SELECT + CAST ( NULL AS INTEGER ) * + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * ( - col0 + col0 ) * - ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * + 46 AS col1 FROM tab2 AS cor0
----
1426
2714
782
query I rowsort
SELECT DISTINCT - tab0.col0 * + ( - col1 * + col2 ) AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL + + col2 + - 6 * col1 AS col0 FROM tab2 AS cor0
----
-159
-328
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1044
SELECT + CAST( 96 AS SIGNED ) * col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1044
SELECT + CAST ( 96 AS INTEGER ) * col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 52 FROM tab2 AS cor0
----
-52
query I rowsort
SELECT DISTINCT + col2 * - 32 FROM tab0 cor0
----
-1056
-2624
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + + 4 col2 FROM tab2 AS cor0
----
1347
221
4606
onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT col1 DIV cor0.col1 + col1 * - cor0.col2 * - col0 FROM tab2 AS cor0
----
119653
51035
5860
skipif mysql # not compatible
query I rowsort label-1048
SELECT col1 / cor0.col1 + col1 * - cor0.col2 * - col0 FROM tab2 AS cor0
----
119653
51035
5860
query I rowsort
SELECT + - col1 + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT DISTINCT + 47 DIV cor0.col0 FROM tab1, tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT + 47 / cor0.col0 FROM tab1, tab0 AS cor0
----
0
1
query I rowsort
SELECT + - 15 + + 43 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( 82 ) col1 FROM tab2 AS cor0
----
-3
-4
-75
query I rowsort
SELECT ALL + col1 + 27 * + col1 FROM tab1 AS cor0
----
280
364
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 10 - - col2 col1 FROM tab1 cor0
----
104
182
98
query I rowsort
SELECT - col2 * ( - ( col0 ) ) + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + col2 + ( + ( - cor0.col2 ) ) + 2 AS col2 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT - ( col2 + 7 * - col0 ) FROM tab1
----
-33
391
464
query I rowsort
SELECT 59 * + col0 FROM tab0
----
1416
2065
5251
query I rowsort
SELECT DISTINCT + + col1 * col2 - - col0 AS col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT + + col2 + - ( col2 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * + col1 + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL cor0.col2 * - 75 FROM tab0 AS cor0
----
-2475
-6150
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col2 + - col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT ALL - 77 + col1 AS col2 FROM tab1 AS cor0
----
-51
-64
-67
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + - col1 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + cor2.col1 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT DISTINCT 34 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + 57 col0 FROM tab1
----
-3
0
39
query I rowsort
SELECT + 56 * - tab2.col2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to a25528cb2adafb9953cec876765cb142
query I rowsort
SELECT + 71 * - col0 * + col2 AS col1 FROM tab0
----
-2485
-518158
-56232
query I rowsort
SELECT 27 + - tab0.col1 FROM tab0
----
-59
-64
-70
query I rowsort
SELECT col0 - - tab1.col0 * + 22 FROM tab1
----
1472
1840
69
query I rowsort
SELECT DISTINCT - 41 * - col0 + - 43 FROM tab2
----
244
3155
3196
query I rowsort
SELECT 49 - + col2 AS col0 FROM tab2
----
11
22
23
query I rowsort
SELECT DISTINCT + + col1 + col2 * - ( - 3 + - cor0.col0 ) FROM tab2 AS cor0
----
2165
301
3133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1078
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1078
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + ( col2 ) * col2 - - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1566
2090
2210
query I rowsort
SELECT - col2 * - col2 * col0 AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT - col1 - col2 * col1 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT col0 DIV col1 + 48 FROM tab1
----
48
54
54
skipif mysql # not compatible
query I rowsort label-1082
SELECT col0 / col1 + 48 FROM tab1
----
48
54
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT - 72 * cor0.col0 + + 52 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 37958414562a97943de5689f8b968c32
onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT DISTINCT ( - col0 ) DIV col0 + 80 * ( - col0 ) col1 FROM tab2
----
-561
-6241
-6321
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT ( - col0 ) / col0 + 80 * ( - col0 ) col1 FROM tab2
----
-561
-6241
-6321
query I rowsort
SELECT + 86 * - col2 AS col2 FROM tab2
----
-2236
-2322
-3268
onlyif mysql # use DIV operator for integer division
query I rowsort label-1087
SELECT ALL 86 DIV - 68 + + col0 AS col0 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL 86 / - 68 + + col0 AS col0 FROM tab0
----
23
34
88
query I rowsort
SELECT DISTINCT + col0 + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - ( ( col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1090
SELECT - cor0.col0 * + cor0.col0 * CAST( NULL AS SIGNED ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1090
SELECT - cor0.col0 * + cor0.col0 * CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 19 ) col1 FROM tab2 AS cor0
----
-19
-19
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1092
SELECT ALL + CAST( 63 AS SIGNED ) + + col1 * - col1 col0 FROM tab0 AS cor0
----
-7333
-8218
-9346
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + CAST ( 63 AS INTEGER ) + + col1 * - col1 col0 FROM tab0 AS cor0
----
-7333
-8218
-9346
query I rowsort
SELECT 12 + + ( col0 ) AS col2 FROM tab2 AS cor0
----
19
90
91
query I rowsort
SELECT DISTINCT - 74 * + ( + col2 ) + + 39 FROM tab0 AS cor0
----
-2403
-35
-6029
query I rowsort
SELECT ALL 69 * col1 AS col1 FROM tab2
----
1173
2139
4071
query I rowsort
SELECT DISTINCT + 98 * col1 AS col0 FROM tab2 AS cor0
----
1666
3038
5782
query I rowsort
SELECT 82 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT - + col2 * + col0 * - col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + - col2 + - col2 * 9 AS col2 FROM tab0 cor0
----
-10
-330
-820
query I rowsort
SELECT ALL + - col1 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT cor0.col1 * 62 * - col1 FROM tab2 AS cor0
----
-17918
-215822
-59582
query I rowsort
SELECT DISTINCT col0 + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-1103
SELECT ALL + col0 + + col1 * + 93 + + col1 DIV 36 AS col2 FROM tab2 AS cor0
----
1660
2890
5566
skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL + col0 + + col1 * + 93 + + col1 / 36 AS col2 FROM tab2 AS cor0
----
1660
2890
5566
query I rowsort
SELECT - cor0.col2 * 98 AS col2 FROM tab0 AS cor0
----
-3234
-8036
-98
query I rowsort
SELECT DISTINCT - - col0 * + ( cor0.col2 + + col0 ) FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT + cor0.col2 * 86 AS col1 FROM tab2 AS cor0
----
2236
2322
3268
query I rowsort
SELECT ALL + + col0 * + col0 AS col1 FROM tab0 cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - ( 50 ) col0 FROM tab1 AS cor0
----
-104
-107
-146
onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT ALL + col2 DIV 50 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL + col2 / 50 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + cor0.col2 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 43 col2 FROM tab2 AS cor0
----
-1333
-2537
-731
query I rowsort
SELECT DISTINCT + + col1 + 44 AS col1 FROM tab1 AS cor0
----
54
57
70
query I rowsort
SELECT col0 * ( 97 ) FROM tab1 AS cor0
----
291
6208
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1114
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1 FROM tab0, tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT - CAST ( NULL AS REAL ) col1 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 * 50 AS col1 FROM tab2 AS cor0
----
-1550
-2950
-850
query I rowsort
SELECT - cor0.col1 * - 41 FROM tab1 AS cor0
----
1066
410
533
query I rowsort
SELECT DISTINCT - col1 * 45 FROM tab1 AS cor0
----
-1170
-450
-585
query I rowsort
SELECT + + col0 + - 0 * col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1119
SELECT + 3 DIV + col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1119
SELECT + 3 / + col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1120
SELECT + 50 + + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
42
50
50
skipif mysql # not compatible
query I rowsort label-1120
SELECT + 50 + + col1 / - col0 AS col2 FROM tab1 AS cor0
----
42
50
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT ALL col2 DIV - ( + col0 ) AS col2 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL col2 / - ( + col0 ) AS col2 FROM tab1
----
-1
-18
0
query I rowsort
SELECT + tab0.col0 + 80 FROM tab0
----
104
115
169
query I rowsort
SELECT + col2 * col1 * - col2 + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-118560
-31920
-74412
query I rowsort
SELECT ( col0 ) * + 9 AS col2 FROM tab0 AS cor0
----
216
315
801
query I rowsort
SELECT DISTINCT + + col0 - + col0 * 85 * - ( col2 * + ( col0 ) ) FROM tab1 AS cor0
----
19845184
41313
52224080
query I rowsort
SELECT ALL 90 * cor0.col2 + col2 FROM tab2 AS cor0
----
2366
2457
3458
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1127
SELECT DISTINCT + + col0 * cor0.col0 * - CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
-118825
-49536
-720811
skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + + col0 * cor0.col0 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT 32 + col1 FROM tab0 AS cor0
----
118
123
129
query I rowsort
SELECT ALL - cor0.col1 + col1 * - col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT 39 * col2 - col2 AS col0 FROM tab1 AS cor0
----
2052
2166
3648
query I rowsort
SELECT DISTINCT col2 + - tab2.col1 * - col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - + col2 * col2 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT + ( - col1 ) * cor0.col0 + - 26 FROM tab0 AS cor0
----
-2090
-3421
-8125
query I rowsort
SELECT - ( tab1.col0 * + col1 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - + 52 AS col0 FROM tab2 cor0
----
-52
-52
-52
query I rowsort
SELECT ALL + 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT col1 * col0 + 33 AS col1 FROM tab1
----
1073
111
673
onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT DISTINCT - tab2.col2 DIV col0 AS col0 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - tab2.col2 / col0 AS col0 FROM tab2
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * + tab2.col0 col2 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1140
SELECT DISTINCT - tab0.col1 DIV tab0.col2 col0 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - tab0.col1 / tab0.col2 col0 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 * col2 col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - + col0 * + col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT cor0.col0 * col2 + 68 AS col1 FROM tab0 cor0
----
103
7366
860
query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab2 cor0
----
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1145
SELECT CAST( NULL AS SIGNED ) + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1145
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 + 18 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c20540cd8118f7f814eb949c69a86f8d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
1
query I rowsort
SELECT + col2 + col0 * 15 AS col1 FROM tab1 AS cor0
----
1017
1296
99
query I rowsort
SELECT DISTINCT - + 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-28
query I rowsort
SELECT col2 * + 27 AS col0 FROM tab2
----
1026
702
729
query I rowsort
SELECT - tab2.col1 * ( 4 ) * - tab2.col1 FROM tab2
----
1156
13924
3844
query I rowsort
SELECT + col2 + col2 * - ( col0 ) - - ( col1 * - col0 ) FROM tab0 AS cor0
----
-15315
-2823
-3429
query I rowsort
SELECT - col0 * + col1 + + col2 - col1 * + cor0.col2 * + 25 AS col2 FROM tab0 AS cor0
----
-194567
-5819
-72981
onlyif mysql # use DIV operator for integer division
query I rowsort label-1154
SELECT + col1 DIV + 74 + ( + cor0.col2 ) + col2 AS col0 FROM tab0 AS cor0
----
165
3
67
skipif mysql # not compatible
query I rowsort label-1154
SELECT + col1 / + 74 + ( + cor0.col2 ) + col2 AS col0 FROM tab0 AS cor0
----
165
3
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col0 + col1 - col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1156
SELECT col0 * + CAST( NULL AS SIGNED ) / col1 + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1156
SELECT col0 * + CAST ( NULL AS INTEGER ) / col1 + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT + ( - ( - col2 ) ) DIV cor0.col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1157
SELECT + ( - ( - col2 ) ) / cor0.col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - cor0.col0 * + 53 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e0a39d35203463b8c42df1a3a6ebd578
onlyif mysql # use DIV operator for integer division
query I rowsort label-1159
SELECT + + cor0.col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1159
SELECT + + cor0.col2 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT - ( 28 ) + col0 AS col2 FROM tab0 AS cor0
----
-4
61
7
query I rowsort
SELECT 89 * 74 * - col2 + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-355670
-375412
-632269
query I rowsort
SELECT - 72 * - col1 FROM tab0 AS cor0
----
6192
6552
6984
query I rowsort
SELECT - + ( col2 ) + cor0.col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - + ( - ( col1 ) ) + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + - col0 * 40 AS col2 FROM tab1 AS cor0
----
-120
-2560
-3200
skipif mysql # not compatible
query I rowsort
SELECT ALL - ( - cor0.col1 ) * + col1 + + CAST ( - col1 AS REAL ) * col2 AS col2 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT DISTINCT - 72 + col1 AS col2 FROM tab2 cor0
----
-13
-41
-55
query I rowsort
SELECT ALL + col1 * col1 + col0 * + cor0.col2 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT DISTINCT + - col2 + col1 * col2 - - col0 AS col0 FROM tab1 AS cor0
----
1232
1353
577
query I rowsort
SELECT DISTINCT + + ( 63 ) * + col0 AS col2 FROM tab1 AS cor0
----
189
4032
5040
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1172
SELECT ALL col1 DIV col0 col0 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL col1 / col0 col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL 86 * col1 AS col2 FROM tab1
----
1118
2236
860
query I rowsort
SELECT ALL - col1 - ( col2 ) FROM tab1 AS cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( + col0 ) * col1 col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + col0 - 17 * col0 FROM tab0 AS cor0
----
-1424
-384
-560
query I rowsort
SELECT DISTINCT cor0.col1 * + 65 FROM tab1 cor0
----
1690
650
845
query I rowsort
SELECT 30 + + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 46813c6d930c7ba318789e5b0c307e41
query I rowsort
SELECT DISTINCT - ( col1 ) * + cor0.col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-1180
SELECT DISTINCT col2 DIV col1 - col1 FROM tab2
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT col2 / col1 - col1 FROM tab2
----
-15
-31
-59
query I rowsort
SELECT tab1.col0 * + col0 * col0 + col1 + 11 * col1 AS col2 FROM tab1
----
262264
339
512156
query I rowsort
SELECT DISTINCT + + 64 + cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
150
155
161
query I rowsort
SELECT DISTINCT + col2 - 4 * - col1 AS col1 FROM tab2
----
106
151
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-1184
SELECT ALL - col1 * + col0 - 96 DIV - col1 AS col2 FROM tab2
----
-1338
-214
-4601
skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL - col1 * + col0 - 96 / - col1 AS col2 FROM tab2
----
-1338
-214
-4601
query I rowsort
SELECT - col1 + - 71 * col0 + - col1 AS col1 FROM tab2
----
-559
-5643
-5656
query I rowsort
SELECT col0 - - col2 * col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - 98 * 21 FROM tab0, tab1 AS cor0
----
9 values hashing to af5486228a7cd8cae8889d47b553a10e
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - col2 * - 9 FROM tab2 AS cor0
----
234
243
342
onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT DISTINCT + cor0.col1 * - 6 + + 10 + cor0.col1 DIV + 94 FROM tab1 AS cor0
----
-146
-50
-68
skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT + cor0.col1 * - 6 + + 10 + cor0.col1 / + 94 FROM tab1 AS cor0
----
-146
-50
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + 92 * col0 col1 FROM tab0 cor0
----
112701
53025
728814
query I rowsort
SELECT DISTINCT - col0 * 45 + - cor0.col2 * + col0 * col1 FROM tab2 AS cor0
----
-123162
-54589
-6174
query I rowsort
SELECT cor0.col2 * 89 FROM tab1 AS cor0
----
4806
5073
8544
query I rowsort
SELECT DISTINCT col2 * - col0 + - col2 AS col0 FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + + col2 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 * + 96 FROM tab2 AS cor0
----
1594
2949
5638
query I rowsort
SELECT ALL - col2 + - 22 - - col2 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT + - 38 * col2 AS col2 FROM tab0 AS cor0
----
-1254
-3116
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 + col2 * + cor0.col1 col1 FROM tab2 AS cor0
----
1485
597
788
query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab1 cor0
----
-90
query I rowsort
SELECT ALL - + col0 * col0 + col2 + col0 AS col2 FROM tab0 AS cor0
----
-1189
-519
-7750
query I rowsort
SELECT 41 * 17 AS col0 FROM tab0
----
697
697
697
query I rowsort
SELECT DISTINCT 53 FROM tab2, tab2 cor0
----
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT DISTINCT - ( 71 ) DIV - cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
0
1
23
skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - ( 71 ) / - cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
0
1
23
query I rowsort
SELECT 39 + col2 FROM tab0
----
121
40
72
query I rowsort
SELECT ALL - - 89 * - tab1.col2 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 40b116dcc09e64a228a1f6f10a249323
query I rowsort
SELECT - 47 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT ALL + tab2.col1 * - tab2.col0 * col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT - cor0.col1 + - 84 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to a341c0a47d91a172ce66c2ffd711056e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to dba0629212dd6bf03c2834a27d0b07fb
query I rowsort
SELECT DISTINCT + 35 * col0 AS col1 FROM tab1
----
105
2240
2800
query I rowsort
SELECT - ( + col0 ) * - col0 * 73 FROM tab0
----
42048
578233
89425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1215
SELECT - CAST( NULL AS SIGNED ) / tab2.col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1215
SELECT - 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-1216
SELECT + 50 DIV - 4 AS col2 FROM tab2
----
-12
-12
-12
skipif mysql # not compatible
query I rowsort label-1216
SELECT + 50 / - 4 AS col2 FROM tab2
----
-12
-12
-12
query I rowsort
SELECT + ( + col1 ) * col1 + + col2 FROM tab1 cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1218
SELECT CAST( NULL AS SIGNED ) * col2 - cor0.col2 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1218
SELECT CAST ( NULL AS INTEGER ) * col2 - cor0.col2 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1219
SELECT ALL + 62 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + 62 / - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col0 + - 83 FROM tab2 AS cor0
----
-4
-5
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1221
SELECT - 13 DIV col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-110
-86
-91
skipif mysql # not compatible
query I rowsort label-1221
SELECT - 13 / col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-110
-86
-91
query I rowsort
SELECT + - col2 + col1 + + ( - col1 + + col1 ) * - 63 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * cor0.col0 col1 FROM tab0 AS cor0
----
1920
2800
7120
query I rowsort
SELECT DISTINCT - 13 * col1 FROM tab1 cor0
----
-130
-169
-338
query I rowsort
SELECT ALL col0 + col0 * 83 FROM tab2 AS cor0
----
588
6552
6636
query I rowsort
SELECT ( ( - col1 ) ) AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 0 * 64 + col1 + col0 AS col2 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT col2 + + col2 DIV col2 + col1 FROM tab0 cor0
----
120
174
99
skipif mysql # not compatible
query I rowsort label-1228
SELECT col2 + + col2 / col2 + col1 FROM tab0 cor0
----
120
174
99
query I rowsort
SELECT ALL - ( - col0 ) - + col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - col2 * cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - ( cor0.col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + - col0 * 54 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266
query I rowsort
SELECT DISTINCT + 5 * + col2 + - col2 FROM tab1 AS cor0
----
216
228
384
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # use DIV operator for integer division
query I rowsort label-1235
SELECT ALL col0 DIV + ( + col2 ) AS col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL col0 / + ( + col2 ) AS col2 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT + tab1.col0 * col0 + - tab1.col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT + col0 * + 55 FROM tab2
----
385
4290
4345
query I rowsort
SELECT DISTINCT - + col1 + + ( cor0.col1 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + - col1 - 6 AS col2 FROM tab2 AS cor0
----
-23
-37
-65
query I rowsort
SELECT col0 * - col0 + + 47 * col1 FROM tab1 AS cor0
----
-3626
-5789
1213
query I rowsort
SELECT - col2 * + 24 - + ( col0 + col1 * - col2 ) FROM tab1 AS cor0
----
-1136
-862
105
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1242
SELECT + + col2 + + CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-1242
SELECT + + col2 + + CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col2 * - col1 - - 38 FROM tab0 AS cor0
----
-2800
-59
-7424
query I rowsort
SELECT cor0.col1 * cor0.col2 * 22 - col2 AS col0 FROM tab1 AS cor0
----
12483
27360
30834
query I rowsort
SELECT ALL + - col0 + - col0 - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1200
-768
-84
query I rowsort
SELECT col2 + + ( col2 ) * col2 * 38 FROM tab0 AS cor0
----
255594
39
41415
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 56 * + col0 col0 FROM tab1 cor0
----
165
3520
4400
query I rowsort
SELECT DISTINCT + tab2.col2 * col0 * 38 FROM tab2
----
114076
7182
77064
query I rowsort
SELECT + tab1.col2 * - ( + tab1.col2 + + col0 ) AS col1 FROM tab1
----
-16896
-3078
-6897
query I rowsort
SELECT ALL - col1 - - ( - tab1.col1 ) FROM tab1
----
-20
-26
-52
query I rowsort
SELECT ALL - 37 AS col1 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to a283a98d14c34636d74b0e0b57633585
query I rowsort
SELECT - col1 * + 29 AS col1 FROM tab0
----
-2494
-2639
-2813
query I rowsort
SELECT col0 - 0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT col2 + - col2 + - 24 AS col2 FROM tab1
----
-24
-24
-24
query I rowsort
SELECT - + col0 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - col2 + + col1 - - col0 FROM tab1
----
-25
-3
17
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - 63 AS REAL ) + col1 AS col0 FROM tab0 AS cor0
----
23
28
34
query I rowsort
SELECT DISTINCT - col0 * + 73 AS col2 FROM tab1 cor0
----
-219
-4672
-5840
query I rowsort
SELECT ALL - ( - ( - col1 ) ) + ( 40 ) AS col0 FROM tab1 AS cor0
----
14
27
30
query I rowsort
SELECT DISTINCT - 11 * cor0.col1 * tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
-103499
-81356
-86086
-91091
-91762
-97097
query I rowsort
SELECT col2 + - 2 - col2 AS col1 FROM tab0
----
-2
-2
-2
query I rowsort
SELECT ALL + col1 - 83 FROM tab1
----
-57
-70
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT DISTINCT - col0 DIV - ( - 2 * - col0 ) AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - col0 / - ( - 2 * - col0 ) AS col0 FROM tab2
----
0
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ALL + + 82 * + 47 AS col2 FROM tab0 AS cor0
----
3854
3854
3854
onlyif mysql # use DIV operator for integer division
query I rowsort label-1266
SELECT DISTINCT - + col2 DIV ( cor0.col0 + + col2 * 11 ) AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT - + col2 / ( cor0.col0 + + col2 * 11 ) AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + ( + col1 ) + + col2 + col0 AS col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL + + 91 + col0 FROM tab0 AS cor0
----
115
126
180
query I rowsort
SELECT ALL + ( ( col2 ) ) + + ( col1 ) FROM tab0
----
119
173
98
query I rowsort
SELECT cor0.col2 * cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT - col0 DIV ( - tab0.col0 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1271
SELECT - col0 / ( - tab0.col0 ) FROM tab0
----
1
1
1
query I rowsort
SELECT ALL + ( - 87 ) FROM tab1 AS cor0
----
-87
-87
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1273
SELECT + CAST( NULL AS SIGNED ) / col1 - col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1273
SELECT + CAST ( NULL AS INTEGER ) / col1 - col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1274
SELECT DISTINCT + col1 + + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT + col1 + + col2 / - col0 AS col0 FROM tab1 AS cor0
----
10
12
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1275
SELECT + - CAST( 45 AS SIGNED ) FROM tab0 cor0
----
-45
-45
-45
skipif mysql # not compatible
query I rowsort label-1275
SELECT + - CAST ( 45 AS INTEGER ) FROM tab0 cor0
----
-45
-45
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1276
SELECT ALL - - col1 / + ( - cor0.col2 ) - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL - - col1 / + ( - 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-1277
SELECT DISTINCT - col1 * 83 DIV cor0.col0 AS col2 FROM tab1 cor0
----
-12
-13
-719
skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT - col1 * 83 / cor0.col0 AS col2 FROM tab1 cor0
----
-12
-13
-719
query I rowsort
SELECT + + 1 * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + - col2 * - col0 AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT DISTINCT + - 18 * 27 FROM tab1 cor0
----
-486
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1281
SELECT - CAST( + 72 AS SIGNED ) + - col2 + col1 AS col2 FROM tab1 AS cor0
----
-100
-119
-155
skipif mysql # not compatible
query I rowsort label-1281
SELECT - CAST ( + 72 AS INTEGER ) + - col2 + col1 AS col2 FROM tab1 AS cor0
----
-100
-119
-155
query I rowsort
SELECT ALL + - 67 + col0 FROM tab1 AS cor0
----
-3
-64
13
query I rowsort
SELECT cor0.col1 + col0 * - col0 AS col2 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT - 1 + col2 * - col1 FROM tab2
----
-1535
-647
-838
onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT + ( + col2 ) DIV - 84 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1285
SELECT + ( + col2 ) / - 84 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 41 * cor0.col0 AS col1 FROM tab2 AS cor0
----
287
3198
3239
query I rowsort
SELECT DISTINCT - 65 + - col1 * - col0 AS col1 FROM tab2 cor0
----
1278
152
4537
query I rowsort
SELECT + - 52 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
26
588
988
query I rowsort
SELECT - + col0 + + col1 * 39 AS col1 FROM tab2 AS cor0
----
1202
2223
584
query I rowsort
SELECT DISTINCT + col1 * ( - col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col2 + ( col0 ) * - col2 * + col0 FROM tab2 AS cor0
----
-1296
-158158
-237120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col1 col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + ( cor0.col2 ) AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL - + cor0.col0 + - 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6239521d8e68e1fbab4294ba2c78391e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1295
SELECT ALL col2 + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL col2 + col2 / + col0 AS col2 FROM tab2 AS cor0
----
26
30
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1296
SELECT ALL - CAST( + 92 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-92
-92
-92
skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - CAST ( + 92 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT - + ( - ( - col1 ) ) + + col2 + col0 AS col1 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT ALL - col1 * + cor0.col1 + col0 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT ( + col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - + col2 * 75 * - col1 + - col2 * - col1 FROM tab1 cor0
----
106704
43320
94848
query I rowsort
SELECT ALL col0 * 61 + col0 AS col2 FROM tab0 AS cor0
----
1488
2170
5518
query I rowsort
SELECT DISTINCT - + col1 * 18 AS col1 FROM tab2 AS cor0
----
-1062
-306
-558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1303
SELECT + 25 * + col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1303
SELECT + 25 * + col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - 8 * + col0 FROM tab0 AS cor0
----
-192
-280
-712
onlyif mysql # use DIV operator for integer division
query I rowsort label-1306
SELECT + 86 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-1306
SELECT + 86 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT + col0 - + 30 * col1 * - col0 AS col2 FROM tab1 AS cor0
----
19264
2343
31280
query I rowsort
SELECT DISTINCT + + col1 * + ( 10 ) + col1 AS col1 FROM tab0 AS cor0
----
1001
1067
946
query I rowsort
SELECT DISTINCT col1 + - col1 * col1 + col0 * - col2 FROM tab2 cor0
----
-1119
-3274
-5450
query I rowsort
SELECT + + col1 + ( col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - cor0.col0 * cor0.col0 col1 FROM tab2 AS cor0
----
-56
-6162
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1312
SELECT ALL + col1 + - CAST( + col0 AS SIGNED ) * - cor0.col0 AS col0 FROM tab1 cor0
----
35
4106
6413
skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL + col1 + - CAST ( + col0 AS INTEGER ) * - cor0.col0 AS col0 FROM tab1 cor0
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 29 col2 FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT + col2 - 83 AS col2 FROM tab1 AS cor0
----
-26
-29
13
query I rowsort
SELECT DISTINCT - 77 + col0 * col2 AS col2 FROM tab0 AS cor0
----
-42
715
7221
query I rowsort
SELECT + col2 + + 67 AS col2 FROM tab1 AS cor0
----
121
124
163
query I rowsort
SELECT col0 * - col0 + col2 + col1 AS col1 FROM tab1 AS cor0
----
-4029
-6291
71
query I rowsort
SELECT DISTINCT col0 + - col0 + col1 FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1319
SELECT ALL + tab1.col0 * CAST( NULL AS SIGNED ) * col0 + tab1.col0 / 96 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + tab1.col0 * CAST ( NULL AS INTEGER ) * col0 + tab1.col0 / 96 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - 19 - + col0 FROM tab1 AS cor0
----
-22
-83
-99
query I rowsort
SELECT ( - 72 ) + col0 * ( + col1 + - col0 ) AS col1 FROM tab0 AS cor0
----
106
1416
2098
query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT ALL - 0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + - cor0.col0 + 99 * - cor0.col1 FROM tab1 AS cor0
----
-1054
-1367
-2577
query I rowsort
SELECT ALL + ( - col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + + 50 AS col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1329
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT ALL - col0 + + 35 DIV col2 col2 FROM tab0 AS cor0
----
-23
-89
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - col0 + + 35 / col2 col2 FROM tab0 AS cor0
----
-23
-89
0
query I rowsort
SELECT + col1 * 76 + col0 AS col1 FROM tab0 cor0
----
6560
7005
7407
query I rowsort
SELECT + cor0.col2 * - 92 FROM tab0 AS cor0
----
-3036
-7544
-92
query I rowsort
SELECT + tab0.col0 * cor0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to caa3e6469432624a16bd3084f5c6de58
query I rowsort
SELECT + - 65 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT ALL + cor0.col0 * col0 * + col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL - col2 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( col2 + + col1 * - col2 ) col0 FROM tab2 AS cor0
----
-1430
-529
-803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 62 col2 FROM tab2 AS cor0
----
434
4836
4898
onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT - - col1 DIV 69 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1339
SELECT - - col1 / 69 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 + - 76 ) * col0 col0 FROM tab2
----
-483
156
237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - cor0.col0 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + col1 - col0 * + col0 AS col2 FROM tab1
----
-4076
-6374
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT - - col2 + + col1 - 65 DIV - 64 AS col2 FROM tab2 AS cor0
----
56
59
86
skipif mysql # not compatible
query I rowsort label-1343
SELECT - - col2 + + col1 - 65 / - 64 AS col2 FROM tab2 AS cor0
----
56
59
86
query I rowsort
SELECT - + col2 - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT DISTINCT - + col2 DIV cor0.col0 + - col2 FROM tab0 AS cor0
----
-1
-34
-82
skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT - + col2 / cor0.col0 + - col2 FROM tab0 AS cor0
----
-1
-34
-82
query I rowsort
SELECT ALL 56 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT 15 * col1 FROM tab2 cor0
----
255
465
885
query I rowsort
SELECT + - 48 - + col2 FROM tab2 AS cor0
----
-74
-75
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1349
SELECT + - col2 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1349
SELECT + - col2 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + + 7 * - col0 AS col1 FROM tab2 AS cor0
----
-22
-515
-520
query I rowsort
SELECT - + col0 + 9 FROM tab2 AS cor0
----
-69
-70
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1352
SELECT - + col0 * - CAST( + 72 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
1761
2521
6490
skipif mysql # not compatible
query I rowsort label-1352
SELECT - + col0 * - CAST ( + 72 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
1761
2521
6490
query I rowsort
SELECT - col0 * + ( col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT - col0 * 19 + - col2 FROM tab0 AS cor0
----
-1773
-489
-666
query I rowsort
SELECT + tab0.col2 + 34 * col2 FROM tab0
----
1155
2870
35
query I rowsort
SELECT + 91 * col2 FROM tab2 cor0
----
2366
2457
3458
query I rowsort
SELECT DISTINCT col2 * 98 FROM tab1
----
5292
5586
9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1358
SELECT ALL + + 64 * col2 + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL + + 64 * col2 + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1360
SELECT - CAST( NULL AS DECIMAL ) + 36 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-1360
SELECT - CAST ( NULL AS REAL ) + 36 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col0 + col2 ) FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-1362
SELECT ALL 77 DIV col0 - ( col2 ) FROM tab2 AS cor0
----
-16
-26
-38
skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL 77 / col0 - ( col2 ) FROM tab2 AS cor0
----
-16
-26
-38
query I rowsort
SELECT ALL - col0 + - col1 * 32 FROM tab1 AS cor0
----
-384
-496
-835
query I rowsort
SELECT DISTINCT - - col1 + col1 + cor0.col0 AS col2 FROM tab1 cor0
----
106
55
84
query I rowsort
SELECT ALL - 64 * col2 + col2 FROM tab0 AS cor0
----
-2079
-5166
-63
query I rowsort
SELECT ALL - - col0 + - col1 + + 99 AS col1 FROM tab0 AS cor0
----
37
37
97
query I rowsort
SELECT DISTINCT + 35 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-54
0
11
query I rowsort
SELECT - + 87 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-5
-54
-86
query I rowsort
SELECT DISTINCT + 41 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2105
3436
8140
onlyif mysql # use DIV operator for integer division
query I rowsort label-1370
SELECT DISTINCT + 10 * col0 + - 72 + col0 DIV col2 col1 FROM tab0 AS cor0
----
168
313
819
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + 10 * col0 + - 72 + col0 / col2 col1 FROM tab0 AS cor0
----
168
313
819
query I rowsort
SELECT ( + col1 ) + + ( + 99 ) FROM tab2 AS cor0
----
116
130
158
query I rowsort
SELECT DISTINCT 60 FROM tab0, tab1, tab2 AS cor0
----
60
query I rowsort
SELECT DISTINCT col2 - + col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT 29 * col1 + 55 + 68 AS col0 FROM tab1 AS cor0
----
413
500
877
query I rowsort
SELECT - - col1 * - 22 FROM tab0 AS cor0
----
-1892
-2002
-2134
query I rowsort
SELECT - - col1 * 68 + - ( + col0 + - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
1156
2108
4012
onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT ALL col0 DIV + CAST( col1 AS SIGNED ) + + col0 AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL col0 / + CAST ( col1 AS INTEGER ) + + col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + cor1.col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT cor0.col2 + + 95 * col2 AS col2 FROM tab2 AS cor0
----
2496
2592
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1380
SELECT - CAST( + 30 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-2580
-2730
-2910
skipif mysql # not compatible
query I rowsort label-1380
SELECT - CAST ( + 30 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-2580
-2730
-2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-1381
SELECT DISTINCT - + col1 DIV - 7 AS col2 FROM tab0 AS cor0
----
12
13
skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT - + col1 / - 7 AS col2 FROM tab0 AS cor0
----
12
13
query I rowsort
SELECT - col2 * 28 FROM tab0 cor0
----
-2296
-28
-924
query I rowsort
SELECT - cor0.col2 + + 78 * - cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a787f4beb72142a65574a4ab3fb2b91b
query I rowsort
SELECT ALL + col1 + + col1 * col1 * - ( - 56 ) AS col1 FROM tab1 cor0
----
37882
5610
9477
query I rowsort
SELECT ALL + col2 + + 32 AS col0 FROM tab0 AS cor0
----
114
33
65
query I rowsort
SELECT - 72 * - col1 + - col0 * col0 FROM tab2 AS cor0
----
-1836
-5017
2183
query I rowsort
SELECT ALL - + 3 + ( cor0.col2 ) * - ( + 20 ) AS col0 FROM tab0 AS cor0
----
-1643
-23
-663
query I rowsort
SELECT - - 88 * 46 AS col2 FROM tab2 AS cor0
----
4048
4048
4048
query I rowsort
SELECT ALL - 54 + - col1 * col1 FROM tab0 AS cor0
----
-7450
-8335
-9463
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - col1 - + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1392
SELECT ALL col2 * + col2 + ( col0 ) DIV col0 col0 FROM tab2
----
1445
677
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL col2 * + col2 + ( col0 ) / col0 col0 FROM tab2
----
1445
677
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-1393
SELECT col0 DIV col1 + - tab2.col1 AS col1 FROM tab2
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-1393
SELECT col0 / col1 + - tab2.col1 AS col1 FROM tab2
----
-13
-31
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1394
SELECT col0 + col0 + 6 DIV + 11 FROM tab2
----
14
156
158
skipif mysql # not compatible
query I rowsort label-1394
SELECT col0 + col0 + 6 / + 11 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT - tab1.col0 * 18 * tab1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-11520
-1404
-18720
query I rowsort
SELECT + 44 + - col1 AS col1 FROM tab1
----
18
31
34
query I rowsort
SELECT + ( + col1 ) + ( col1 * - col1 ) + col0 * - col0 FROM tab2
----
-6513
-9506
-979
query I rowsort
SELECT - cor0.col2 - tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0f6ec6b87929e67cae93b9c64afb5c9c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1399
SELECT DISTINCT + + cor0.col2 * - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT + + cor0.col2 * - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - col0 * + ( + 11 ) - - cor0.col1 FROM tab2 AS cor0
----
-46
-799
-852
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1401
SELECT ALL col0 + + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL col0 + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT 24 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT 43 + col1 AS col1 FROM tab1 AS cor0
----
53
56
69
query I rowsort
SELECT ALL + ( + 80 ) * + col1 AS col2 FROM tab1 AS cor0
----
1040
2080
800
query I rowsort
SELECT DISTINCT 51 * - col0 + col1 + col1 FROM tab2 AS cor0
----
-295
-3860
-3995
query I rowsort
SELECT ALL + ( + 7 ) FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT + 14 * ( + col0 ) FROM tab0 AS cor0
----
1246
336
490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 94 ) col1 FROM tab2 AS cor0
----
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1409
SELECT DISTINCT + ( + col2 ) DIV col1 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT + ( + col2 ) / col1 FROM tab2 AS cor0
----
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1410
SELECT + 95 * - col1 - CAST( 7 AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
-2168
-2994
-6151
skipif mysql # not compatible
query I rowsort label-1410
SELECT + 95 * - col1 - CAST ( 7 AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
-2168
-2994
-6151
onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT + tab1.col2 DIV col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1411
SELECT + tab1.col2 / col1 AS col1 FROM tab1
----
2
5
7
query I rowsort
SELECT - + col0 - + col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + + col1 - col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 * cor0.col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - 64 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2852
3185
9152
query I rowsort
SELECT - + col0 * ( 71 ) - col0 AS col2 FROM tab2 AS cor0
----
-504
-5616
-5688
query I rowsort
SELECT - col1 * + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * ( + col0 ) - col2 * - col0 col1 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT - + col2 * 35 FROM tab2 AS cor0
----
-1330
-910
-945
query I rowsort
SELECT - col1 + + 85 FROM tab0
----
-1
-12
-6
query I rowsort
SELECT ALL + 41 AS col0 FROM tab1
----
41
41
41
query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT + - col2 DIV + col0 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1423
SELECT + - col2 / + col0 FROM tab0 cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1424
SELECT - + col0 + + col0 DIV - col0 FROM tab2 cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-1424
SELECT - + col0 + + col0 / - col0 FROM tab2 cor0
----
-79
-8
-80
query I rowsort
SELECT + 32 AS col2 FROM tab2
----
32
32
32
query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab0
----
20
query I rowsort
SELECT + ( ( col2 ) ) FROM tab2
----
26
27
38
query I rowsort
SELECT cor0.col0 * - 34 FROM tab1 cor0
----
-102
-2176
-2720
query I rowsort
SELECT DISTINCT + col1 * 0 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT cor0.col2 * 7 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
231
574
7
query I rowsort
SELECT col2 + 44 FROM tab1
----
101
140
98
query I rowsort
SELECT + - 29 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT - ( ( - col2 ) ) * - 76 + - 3 * - col2 FROM tab1 AS cor0
----
-3942
-4161
-7008
query I rowsort
SELECT ALL + 19 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 76 * - col2 col1 FROM tab2 AS cor0
----
1976
2052
2888
query I rowsort
SELECT DISTINCT - 92 + + 39 * col1 FROM tab1 AS cor0
----
298
415
922
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1437
SELECT CAST( - 34 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
1054
2006
578
skipif mysql # not compatible
query I rowsort label-1437
SELECT CAST ( - 34 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
1054
2006
578
query I rowsort
SELECT 70 * - col2 AS col0 FROM tab2 AS cor0
----
-1820
-1890
-2660
query I rowsort
SELECT DISTINCT 39 + cor0.col0 + - col1 AS col2 FROM tab1 cor0
----
106
16
93
query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 AS col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT cor0.col1 + + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 882fef197e3b41358c58e24f2db2f2e1
query I rowsort
SELECT 56 * col1 AS col0 FROM tab2 AS cor0
----
1736
3304
952
query I rowsort
SELECT - col2 * - col0 + - tab0.col1 FROM tab0
----
-62
706
7207
query I rowsort
SELECT - col0 - - col0 * ( - col1 ) AS col1 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT + 35 * - col0 AS col0 FROM tab0
----
-1225
-3115
-840
query I rowsort
SELECT col1 - col2 * 69 FROM tab1
----
-3700
-3923
-6611
query I rowsort
SELECT col2 * + col0 * + 71 + col1 FROM tab0 AS cor0
----
2582
518249
56318
query I rowsort
SELECT col0 * + cor0.col0 + + 13 AS col2 FROM tab1 AS cor0
----
22
4109
6413
query I rowsort
SELECT + col0 * + col0 * 15 FROM tab0 AS cor0
----
118815
18375
8640
query I rowsort
SELECT + - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT col2 + 95 * - 22 * col2 FROM tab1 AS cor0
----
-112806
-119073
-200544
query I rowsort
SELECT - - col1 + - col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT ALL + cor0.col2 + + 4 FROM tab0 AS cor0
----
37
5
86
query I rowsort
SELECT DISTINCT - col2 * - 12 FROM tab1 AS cor0
----
1152
648
684
query I rowsort
SELECT - col1 + col0 * col0 * + col0 FROM tab2 AS cor0
----
312
474493
493022
query I rowsort
SELECT - cor0.col2 + - 71 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to b979a279bdd99c60ad6413bdb77ab6d1
query I rowsort
SELECT DISTINCT col0 * ( ( + col2 ) * - col0 ) AS col1 FROM tab0 cor0
----
-1225
-19008
-649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1458
SELECT ALL + + col1 + - CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + + col1 + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - + col0 * - 57 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT + 39 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT ALL col1 * col2 * 76 FROM tab0 cor0
----
215688
567112
7372
query I rowsort
SELECT ALL - cor0.col1 + - 25 AS col1 FROM tab0 cor0
----
-111
-116
-122
query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + col2 AS col2 FROM tab0 cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + col0 * + col0 * col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL + col1 + + 14 * cor0.col2 + - cor0.col1 * 42 AS col0 FROM tab0 AS cor0
----
-2583
-3064
-3963
query I rowsort
SELECT DISTINCT - - col0 + ( col1 * col1 ) FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ( - 7 ) + + col0 * col1 AS col0 FROM tab2 cor0
----
1336
210
4595
query I rowsort
SELECT - + ( + 82 ) * col2 FROM tab0 AS cor0
----
-2706
-6724
-82
query I rowsort
SELECT 42 + col2 AS col0 FROM tab0 AS cor0
----
124
43
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-1470
SELECT ALL + + cor0.col2 DIV + cor0.col0 AS col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL + + cor0.col2 / + cor0.col0 AS col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT DISTINCT 49 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
75
76
87
query I rowsort
SELECT - + col1 * + 39 AS col1 FROM tab1 AS cor0
----
-1014
-390
-507
query I rowsort
SELECT DISTINCT + - 28 * + col1 FROM tab1 AS cor0
----
-280
-364
-728
onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT - col2 DIV + col2 - + 82 FROM tab0
----
-83
-83
-83
skipif mysql # not compatible
query I rowsort label-1474
SELECT - col2 / + col2 - + 82 FROM tab0
----
-83
-83
-83
query I rowsort
SELECT col1 + 76 FROM tab0
----
162
167
173
query I rowsort
SELECT DISTINCT + - 63 * cor0.col0 + col1 FROM tab2 AS cor0
----
-410
-4855
-4960
query I rowsort
SELECT - 82 * + col1 + ( col1 ) * - col2 FROM tab0 AS cor0
----
-14924
-8051
-9890
query I rowsort
SELECT + ( col1 ) * - col0 + - 78 FROM tab2 AS cor0
----
-1421
-295
-4680
query I rowsort
SELECT ALL + col1 - col0 * 61 FROM tab0 AS cor0
----
-1378
-2038
-5338
query I rowsort
SELECT + - 97 * - col1 + ( + col1 ) * col0 AS col2 FROM tab2 cor0
----
10325
2992
3224
query I rowsort
SELECT 76 * col1 + - col1 FROM tab2 AS cor0
----
1275
2325
4425
query I rowsort
SELECT DISTINCT col2 * cor0.col1 * col0 + col2 FROM tab0 AS cor0
----
3396
664200
68145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * + cor0.col1 * col0 col2 FROM tab2 AS cor0
----
106018
1512
358878
query I rowsort
SELECT + + col2 + - col2 * - col0 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-1485
SELECT ALL + - col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL + - col2 / col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1486
SELECT DISTINCT - - 53 DIV col0 + + col1 FROM tab0 AS cor0
----
88
91
98
skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT - - 53 / col0 + + col1 FROM tab0 AS cor0
----
88
91
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 - tab2.col1 col2 FROM tab2
----
-113
-71
-85
query I rowsort
SELECT DISTINCT + col2 * + col1 + - col1 AS col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT ALL col2 * - col0 * ( col2 ) - col2 AS col1 FROM tab0 AS cor0
----
-26169
-36
-598518
query I rowsort
SELECT tab2.col2 * + cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1fcf8ce9be0db19b3883c362d1041dbe
query I rowsort
SELECT DISTINCT 45 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
45
query I rowsort
SELECT - col1 * + col2 - - cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - 4 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-4
query I rowsort
SELECT ALL - ( cor0.col1 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT + + cor0.col1 + + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT col0 * - col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT - + cor0.col1 * - col0 * cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT DISTINCT - - col0 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + - cor0.col0 - col0 * col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL - col2 * col0 * - col0 + col0 + col1 * + col2 FROM tab2 AS cor0
----
159796
2167
237883
query I rowsort
SELECT ALL + col1 * + tab0.col2 + col2 * + col2 FROM tab0
----
14186
3927
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 + - col2 col0 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + col1 + tab1.col1 * - tab1.col1 AS col0 FROM tab1 WHERE NULL <= col1 + tab1.col1 + col0
----
query I rowsort
SELECT DISTINCT + col1 + + col0 * col2 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN + col1 * - col0 AND col0 * + col1
----
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * col2 + col1 * col0 FROM tab1 AS cor0
----
1153
1428
2192
query I rowsort
SELECT col2 * col0 + + col2 - + col2 * + col2 * col2 FROM tab2 AS cor0
----
-15522
-19467
-51832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL >= ( NULL )
----
query I rowsort
SELECT 42 - - col0 AS col0 FROM tab1
----
106
122
45
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( NOT ( NULL ) IN ( + col2 * + col2 ) ) AND NOT + col0 IN ( + col1 )
----
query I rowsort
SELECT ALL - - ( col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - col1 + + col0 col2 FROM tab0
----
-177480
-329280
-736920
query I rowsort
SELECT ALL col1 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT - col0 * + col0 + + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT + + cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + tab2.col2 AS col2 FROM tab2 WHERE col0 * - col0 NOT IN ( col1 )
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab1.col2 col0 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT col2 + col0 * + col2 AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL tab1.col0 FROM tab1 WHERE ( NULL ) < ( NULL )
----
query I rowsort
SELECT ALL - col2 + col2 * - col2 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT + col0 + tab0.col2 * + col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT - col1 + col1 * col1 * tab0.col2 AS col1 FROM tab0
----
243982
678951
9312
query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL < - col2
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT + 79 DIV + cor0.col0 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-1525
SELECT + 79 / + cor0.col0 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT ALL - cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT - col2 + + col1 * col1 AS col2 FROM tab1
----
43
622
73
query I rowsort
SELECT + col0 * - tab1.col0 FROM tab1 WHERE NOT + col1 < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1529
SELECT + col2 + + cor0.col1 DIV - col2 - + col1 FROM tab0 AS cor0
----
-10
-193
-55
skipif mysql # not compatible
query I rowsort label-1529
SELECT + col2 + + cor0.col1 / - col2 - + col1 FROM tab0 AS cor0
----
-10
-193
-55
query I rowsort
SELECT col1 * col1 FROM tab2 AS cor0 WHERE NOT col2 / col1 < ( NULL )
----
query I rowsort
SELECT ALL - col1 * col1 * col1 AS col2 FROM tab0
----
-636056
-753571
-912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col1 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col1 FROM tab0 WHERE NOT col2 + col2 * + col0 * + col2 NOT IN ( + col2 )
----
query I rowsort
SELECT DISTINCT tab1.col0 + - tab1.col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col0 FROM tab2 WHERE + col1 / col0 + + col0 + + col0 NOT IN ( col2 * col1 / col0 )
----
-52
-54
-76
query I rowsort
SELECT tab1.col2 * col2 - + col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT + col1 <> NULL
----
query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL < ( - col0 + col2 / col0 )
----
query I rowsort
SELECT DISTINCT + col1 * + col1 * + tab0.col2 AS col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT + col0 + - col0 + col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL + col1 * + col2 AS col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col2
----
query I rowsort
SELECT col2 + + col2 * - col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT + col0 * - col2 * col1 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT DISTINCT - tab0.col0 + col0 DIV col2 col2 FROM tab0
----
-24
-88
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - tab0.col0 + col0 / col2 col2 FROM tab0
----
-24
-88
0
query I rowsort
SELECT col2 + + col1 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT - col1 + + col0 * - col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + col2 * - col0 NOT IN ( tab0.col2 / tab0.col0 )
----
24
35
89
query I rowsort
SELECT col1 + tab2.col1 * tab2.col1 + - col0 * + col2 FROM tab2
----
-2696
1512
803
query I rowsort
SELECT col0 * col2 - - col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL - col0 + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - cor0.col0 + col0 * col1 * col2 FROM tab2 cor0
----
119574
50955
5852
query I rowsort
SELECT ALL col2 * col0 + - ( ( - cor0.col1 ) ) * col0 FROM tab1 AS cor0
----
240
4288
8720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1553
SELECT ALL + col0 * + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL + col0 * + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col0 FROM tab1
----
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1555
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 88 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 88 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1556
SELECT + cor0.col1 + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1556
SELECT + cor0.col1 + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1557
SELECT DISTINCT col2 * CAST( 49 AS SIGNED ) + tab2.col1 - + col1 FROM tab2
----
1274
1323
1862
skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT col2 * CAST ( 49 AS INTEGER ) + tab2.col1 - + col1 FROM tab2
----
1274
1323
1862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1558
SELECT ALL col2 / - CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL col2 / - CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - - 69 + col2 FROM tab1 AS cor0
----
123
126
165
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1560
SELECT - + 72 + + 64 * - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1560
SELECT - + 72 + + 64 * - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 39 + - col1 * + col0 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
36519
4251
99879
query I rowsort
SELECT - ( - col0 ) * col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - + 60 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-3237
-3356
-5680
query I rowsort
SELECT - - 44 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-45
20
9
query I rowsort
SELECT DISTINCT - + 68 + - col1 * col0 AS col1 FROM tab1 cor0
----
-1108
-146
-708
query I rowsort
SELECT DISTINCT - + ( col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - - col1 + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - 30 + col1 FROM tab1 cor0
----
-17
-20
-4
query I rowsort
SELECT DISTINCT + ( col2 ) + + col1 * - col1 * tab2.col2 + col1 * - col0 FROM tab2
----
-12287
-26137
-95082
query I rowsort
SELECT DISTINCT - tab2.col2 * - col1 + col1 * - col2 AS col0 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 + tab2.col1 + + col1 col1 FROM tab2
----
109
137
193
query I rowsort
SELECT col1 * + 35 + - tab0.col1 FROM tab0
----
2924
3094
3298
query I rowsort
SELECT + col2 + col2 + col0 AS col2 FROM tab2
----
130
155
61
query I rowsort
SELECT ALL + + col2 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-1575
SELECT DISTINCT ( cor0.col1 ) DIV + col0 col0 FROM tab1 AS cor0
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT ( cor0.col1 ) / + col0 col0 FROM tab1 AS cor0
----
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1576
SELECT ALL CAST( - 41 AS SIGNED ) FROM tab0 AS cor0
----
-41
-41
-41
skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL CAST ( - 41 AS INTEGER ) FROM tab0 AS cor0
----
-41
-41
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT - ( - col1 ) + col2 DIV - col1 AS col1 FROM tab1
----
24
5
6
skipif mysql # not compatible
query I rowsort label-1577
SELECT - ( - col1 ) + col2 / - col1 AS col1 FROM tab1
----
24
5
6
query I rowsort
SELECT + col1 + + col1 + col0 AS col2 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - col0 * - col1 * col0 AS col1 FROM tab0 cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - - col1 * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - - col2 * col1 + - cor0.col0 + - col1 * col1 FROM tab2 cor0
----
-131
-2025
278
onlyif mysql # use DIV operator for integer division
query I rowsort label-1583
SELECT DISTINCT - 64 DIV col0 - - col2 FROM tab0 AS cor0
----
0
31
82
skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT - 64 / col0 - - col2 FROM tab0 AS cor0
----
0
31
82
query I rowsort
SELECT ALL - + ( col1 ) + - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT col2 * cor0.col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT col2 + ( col2 + - tab2.col1 ) * col0 FROM tab2
----
-1
-2548
1697
query I rowsort
SELECT ( + col0 ) + - tab1.col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT - col1 + - 86 AS col0 FROM tab1
----
-112
-96
-99
query I rowsort
SELECT 65 * + 43 FROM tab0
----
2795
2795
2795
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 * cor0.col2 col2 FROM tab1 AS cor0
----
1152
648
684
query I rowsort
SELECT DISTINCT + col1 * - 93 + cor0.col2 FROM tab2 AS cor0
----
-1543
-2856
-5461
onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT ALL - col0 * - 18 + 44 DIV - col1 AS col2 FROM tab2 AS cor0
----
125
1404
1420
skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL - col0 * - 18 + 44 / - col1 AS col2 FROM tab2 AS cor0
----
125
1404
1420
onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT ALL - col0 + + 65 DIV col2 AS col0 FROM tab0 cor0
----
-23
-89
30
skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL - col0 + + 65 / col2 AS col0 FROM tab0 cor0
----
-23
-89
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-1594
SELECT + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-1594
SELECT + col2 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1595
SELECT + + cor0.col0 * CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1595
SELECT + + cor0.col0 * CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * 54 AS col1 FROM tab0 AS cor0
----
1782
4428
54
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - tab2.col1 * + tab2.col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL + - cor0.col2 * - ( col1 ) + - col1 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
1397
550
799
query I rowsort
SELECT DISTINCT col1 * 14 FROM tab2
----
238
434
826
query I rowsort
SELECT - + 54 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT - tab1.col2 - + 36 AS col0 FROM tab1
----
-132
-90
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT ALL 88 + 88 FROM tab1 cor0
----
176
176
176
query I rowsort
SELECT DISTINCT + - ( - col2 ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - ( + 99 ) * cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
-271
-6326
-7907
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1607
SELECT ALL tab0.col0 * CAST( NULL AS SIGNED ) * - col1 - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL tab0.col0 * CAST ( NULL AS INTEGER ) * - col1 - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 - - col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT tab0.col1 + 84 AS col0 FROM tab0
----
170
175
181
query I rowsort
SELECT + ( - cor0.col0 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * tab0.col2 col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 83b2624604683cf924e958833c2f9d9c
query I rowsort
SELECT DISTINCT col1 * col0 * - col2 AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - 0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - - col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL cor0.col0 + - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 318a6997409c5decbbc3333c9d493ad3
query I rowsort
SELECT col2 * 68 * - col0 FROM tab1 AS cor0
----
-11016
-248064
-522240
query I rowsort
SELECT 10 * - col2 FROM tab0 AS cor0
----
-10
-330
-820
query I rowsort
SELECT + 32 * - col0 + + col1 FROM tab1 AS cor0
----
-2038
-2547
-70
query I rowsort
SELECT + 90 * col2 + + col2 FROM tab1 AS cor0
----
4914
5187
8736
onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT ALL col1 DIV 5 AS col2 FROM tab1
----
2
2
5
skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL col1 / 5 AS col2 FROM tab1
----
2
2
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1621
SELECT CAST( - 87 AS SIGNED ) + - tab1.col0 FROM tab1, tab0 cor0
----
9 values hashing to ca7a9ef18ec0475b9e04bf32d6ecc2a2
skipif mysql # not compatible
query I rowsort label-1621
SELECT CAST ( - 87 AS INTEGER ) + - tab1.col0 FROM tab1, tab0 cor0
----
9 values hashing to ca7a9ef18ec0475b9e04bf32d6ecc2a2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1622
SELECT - 58 DIV cor0.col1 FROM tab1 cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-1622
SELECT - 58 / cor0.col1 FROM tab1 cor0
----
-2
-4
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col2 col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL - col2 * col1 * - 37 FROM tab1 AS cor0
----
21090
46176
51948
onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT + col0 DIV cor0.col1 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1625
SELECT + col0 / cor0.col1 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT ALL - - 77 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
174
2915
7539
query I rowsort
SELECT - 85 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-229
-5430
-6787
query I rowsort
SELECT ALL + col2 + cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - cor0.col2 + col0 * col1 AS col1 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + 28 * - col2 FROM tab0 cor0
----
-2296
-28
-924
query I rowsort
SELECT DISTINCT - 31 * col0 FROM tab1 AS cor0
----
-1984
-2480
-93
query I rowsort
SELECT + + 81 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
48
80
query I rowsort
SELECT DISTINCT - + ( - col1 ) AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ( + col0 ) + - col0 AS col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1635
SELECT 4 * + col0 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1635
SELECT 4 * + col0 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 * + 76 + + col0 FROM tab2 cor0
----
2054
2059
2967
query I rowsort
SELECT ALL + col2 * + 32 FROM tab2 AS cor0
----
1216
832
864
query I rowsort
SELECT DISTINCT col0 * col0 + - 78 + + cor0.col2 FROM tab2 AS cor0
----
-2
6032
6201
query I rowsort
SELECT ALL - - col1 * ( col0 ) - + col0 * 67 AS col0 FROM tab0 AS cor0
----
1050
2136
456
query I rowsort
SELECT - cor0.col0 + col2 * col2 FROM tab2 cor0
----
1365
598
722
query I rowsort
SELECT - col2 * 87 + + col0 AS col0 FROM tab0 AS cor0
----
-2847
-52
-7045
query I rowsort
SELECT + col1 + col0 * col0 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT 95 + col2 AS col0 FROM tab2
----
121
122
133
query I rowsort
SELECT + 41 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT + + 30 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT col0 + 71 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
504
5616
5688
query I rowsort
SELECT ALL col1 + - 1 * + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - - cor0.col1 + 3 * - col2 FROM tab2 cor0
----
-19
-50
-97
query I rowsort
SELECT - + cor0.col1 + + col2 * - col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - 74 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
query I rowsort
SELECT + 22 - + col2 * + col0 FROM tab1 cor0
----
-140
-3626
-7658
query I rowsort
SELECT + + col1 * + col0 AS col1 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + col2 col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL ( 74 ) * tab1.col2 + - 62 AS col2 FROM tab1
----
3934
4156
7042
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1655
SELECT ALL CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - cor0.col1 * + col0 + col0 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT DISTINCT - + 5 + cor0.col1 AS col1 FROM tab1 AS cor0
----
21
5
8
query I rowsort
SELECT DISTINCT - ( 39 ) * - col0 + - col2 FROM tab0 AS cor0
----
1364
3389
903
query I rowsort
SELECT ALL + - 32 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-129
-2870
-7494
query I rowsort
SELECT - col1 * col0 + col1 + 87 FROM tab1 cor0
----
-543
-940
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-1661
SELECT - col1 * col0 DIV - col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1661
SELECT - col1 * col0 / - col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col0 + col0 * + cor0.col1 * col0 FROM tab0 AS cor0
----
118860
49560
720900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col1 + col2 + col1 col1 FROM tab2 AS cor0
----
1019
344
3566
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1664
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 95 + col2 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 95 + col2 col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col1 * - col1 * 44 AS col1 FROM tab2 AS cor0
----
-12716
-153164
-42284
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL - col2 * ( + col1 ) * col1 + - tab0.col0 FROM tab0
----
-244092
-679131
-9444
query I rowsort
SELECT ALL - 77 * + 41 + col1 FROM tab1
----
-3131
-3144
-3147
query I rowsort
SELECT DISTINCT 76 * col0 FROM tab1
----
228
4864
6080
query I rowsort
SELECT ALL - col0 + 18 FROM tab0 AS cor0
----
-17
-6
-71
query I rowsort
SELECT + col0 * 67 - - col0 AS col2 FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT + cor0.col1 + cor0.col0 + 28 * - col1 AS col0 FROM tab1 AS cor0
----
-206
-271
-699
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - 21 col2 FROM tab0 AS cor0
----
1869
504
735
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1674
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1675
SELECT col2 * ( tab2.col2 ) DIV + col0 FROM tab2
----
104
18
8
skipif mysql # not compatible
query I rowsort label-1675
SELECT col2 * ( tab2.col2 ) / + col0 FROM tab2
----
104
18
8
query I rowsort
SELECT - col0 + + ( - col0 * tab2.col2 ) FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-1677
SELECT ALL cor0.col2 + + col2 DIV + col0 col1 FROM tab1 AS cor0
----
57
72
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL cor0.col2 + + col2 / + col0 col1 FROM tab1 AS cor0
----
57
72
97
query I rowsort
SELECT DISTINCT - col0 * col1 - + col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT ALL tab1.col1 * + 25 * + col0 - + col1 FROM tab1
----
15990
1924
25987
query I rowsort
SELECT col2 * - ( - col1 * col1 ) AS col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1683
SELECT DISTINCT + col1 - + CAST( + col2 + + col1 AS SIGNED ) FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT + col1 - + CAST ( + col2 + + col1 AS INTEGER ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ( - col0 + + tab2.col1 ) * + tab2.col2 AS col2 FROM tab2
----
-2356
-494
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT ( 60 ) DIV - col1 + col0 col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1685
SELECT ( 60 ) / - col1 + col0 col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - 24 * + col2 AS col2 FROM tab1
----
-1296
-1368
-2304
query I rowsort
SELECT + + col2 - 66 * - col2 FROM tab1 AS cor0
----
3618
3819
6432
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + + col0 + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
1163
514
7919
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1689
SELECT - - CAST( col0 AS SIGNED ) + col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif mysql # not compatible
query I rowsort label-1689
SELECT - - CAST ( col0 AS INTEGER ) + col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59
query I rowsort
SELECT ALL + + col1 * 36 * col1 - + 55 * col0 FROM tab2 AS cor0
----
121026
34211
6059
query I rowsort
SELECT ALL + - col0 + 93 + + col0 FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT DISTINCT col0 * cor0.col1 - col1 * - col1 AS col2 FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT + 74 * col2 + - col1 FROM tab0
----
-23
2356
5977
query I rowsort
SELECT 60 - - col1 * - col1 AS col0 FROM tab2
----
-229
-3421
-901
onlyif mysql # use DIV operator for integer division
query I rowsort label-1696
SELECT DISTINCT 35 DIV col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT 35 / col2 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1697
SELECT + - 38 * + col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1697
SELECT + - 38 * + col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1698
SELECT ALL col2 + CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL col2 + CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * 39 FROM tab0 AS cor0
----
1287
3198
39
query I rowsort
SELECT ALL + col0 * ( col0 ) + - col0 + - ( - ( col0 ) ) * col0 FROM tab1 AS cor0
----
12720
15
8128
onlyif mysql # use DIV operator for integer division
query I rowsort label-1701
SELECT DISTINCT col1 + + 79 DIV col0 + - col0 FROM tab2 AS cor0
----
-18
-61
35
skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT col1 + + 79 / col0 + - col0 FROM tab2 AS cor0
----
-18
-61
35
query I rowsort
SELECT ALL - + col0 * - cor0.col0 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 16 col1 FROM tab1 AS cor0
----
-1536
-864
-912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col2 * + 53 * col2 col1 FROM tab2 AS cor0
----
35887
38668
76549
query I rowsort
SELECT ALL + + cor0.col2 * 26 FROM tab2 cor0
----
676
702
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT + col0 DIV 74 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1706
SELECT + col0 / 74 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col2 - 59 FROM tab2 AS cor0
----
-21
-32
-33
query I rowsort
SELECT ALL + - col2 * col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL - col1 * - col2 * + col0 AS col2 FROM tab2 cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT ALL - - col2 DIV + ( - cor0.col0 * col1 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - - col2 / + ( - cor0.col0 * col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor1.col1 * 78 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
1014
2028
780
query I rowsort
SELECT 23 * - tab2.col2 * tab2.col1 FROM tab2
----
-14858
-19251
-35282
query I rowsort
SELECT ALL cor0.col0 * + col0 + col0 + 88 FROM tab0 AS cor0
----
1348
688
8098
query I rowsort
SELECT ALL col2 * 64 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT - 0 * col1 * + col1 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1716
SELECT DISTINCT + col2 * col1 DIV 46 AS col2 FROM tab2 AS cor0
----
14
18
33
skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + col2 * col1 / 46 AS col2 FROM tab2 AS cor0
----
14
18
33
query I rowsort
SELECT ALL - col0 * + cor0.col0 + + col1 * - cor0.col0 FROM tab2 AS cor0
----
-10686
-266
-7584
query I rowsort
SELECT DISTINCT + col2 * col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT + ( + col0 ) + - col2 DIV col1 AS col0 FROM tab1 cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-1719
SELECT + ( + col0 ) + - col2 / col1 AS col0 FROM tab1 cor0
----
1
59
73
query I rowsort
SELECT - ( + col1 ) + 35 AS col0 FROM tab2 AS cor0
----
-24
18
4
query I rowsort
SELECT ALL + col2 * 83 AS col1 FROM tab2 AS cor0
----
2158
2241
3154
query I rowsort
SELECT ALL + - col2 + + col2 * 65 * + col0 AS col2 FROM tab0 AS cor0
----
2274
474288
51447
query I rowsort
SELECT ALL - col2 * col2 + tab2.col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT col0 * + 10 FROM tab0
----
240
350
890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1725
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col2 * col0 + 5 FROM tab1 AS cor0
----
-157
-3643
-7675
onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT + - cor0.col2 DIV + col1 + 9 + col2 * ( - col1 + + cor0.col1 ) * col1 AS col2 FROM tab0 AS cor0
----
9
9
9
skipif mysql # not compatible
query I rowsort label-1727
SELECT + - cor0.col2 / + col1 + 9 + col2 * ( - col1 + + cor0.col1 ) * col1 AS col2 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT + + col2 - + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 * + 21 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT - - col0 * 17 - col0 FROM tab0 AS cor0
----
1424
384
560
query I rowsort
SELECT DISTINCT + col0 + 29 FROM tab1 AS cor0
----
109
32
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + 80 col1 FROM tab0 AS cor0
----
166
171
177
query I rowsort
SELECT + col0 + + 80 * col1 + - col0 FROM tab1 cor0
----
1040
2080
800
query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col2 * 81 * col2 FROM tab0 cor0
----
-544553
-88123
16
query I rowsort
SELECT + col2 - ( col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col0 * col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - col0 + 32 AS col2 FROM tab1 AS cor0
----
-32
-48
29
query I rowsort
SELECT - col0 * col1 + col1 AS col2 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT 13 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67
query I rowsort
SELECT ( + col1 ) + + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT col0 + + 95 FROM tab1
----
159
175
98
query I rowsort
SELECT ALL - tab0.col2 + 63 - - col2 FROM tab0
----
63
63
63
query I rowsort
SELECT col2 + 63 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1109
1980
3743
query I rowsort
SELECT ALL + + col1 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - 54 * 53 AS col1 FROM tab2 cor0
----
-2862
-2862
-2862
query I rowsort
SELECT + ( 55 ) + col1 AS col0 FROM tab1 AS cor0
----
65
68
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1747
SELECT CAST( + col0 AS SIGNED ) * tab0.col2 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-1747
SELECT CAST ( + col0 AS INTEGER ) * tab0.col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + - 1 + + 3 AS col1 FROM tab0, tab0 AS cor0
----
2
query I rowsort
SELECT + 11 * - col2 FROM tab1
----
-1056
-594
-627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1750
SELECT + + col2 * CAST( - cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-1750
SELECT + + col2 * CAST ( - cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT tab2.col0 * + ( - 85 ) * + col0 AS col2 FROM tab2
----
-4165
-517140
-530485
query I rowsort
SELECT DISTINCT tab2.col2 + + 54 * + col1 + tab2.col0 FROM tab2
----
1035
1708
3290
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT DISTINCT - - col1 DIV col1 + - col0 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT - - col1 / col1 + - col0 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT - ( + tab1.col2 * tab1.col1 ) + tab1.col2 - col2 * + col2 AS col1 FROM tab1
----
-10368
-3762
-4266
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1757
SELECT ALL - cor0.col0 * + CAST( NULL AS SIGNED ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - cor0.col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 80 + + col1 * + 89 + 96 * col2 FROM tab2
----
5081
5271
7667
query I rowsort
SELECT + 19 * col2 * + ( + col0 ) AS col2 FROM tab1 cor0
----
145920
3078
69312
query I rowsort
SELECT + col2 + - col0 * + 91 AS col0 FROM tab2 AS cor0
----
-610
-7072
-7151
query I rowsort
SELECT ALL ( col1 * col2 ) + - col1 - col1 FROM tab1
----
1222
1352
550
query I rowsort
SELECT ALL - col0 + col2 * + col0 + - col2 FROM tab0
----
-1
7127
735
query I rowsort
SELECT - + 43 * cor0.col0 AS col1 FROM tab1 cor0
----
-129
-2752
-3440
query I rowsort
SELECT DISTINCT cor0.col2 - + col1 * 82 AS col2 FROM tab1 cor0
----
-2078
-763
-970
query I rowsort
SELECT + col0 * - 18 AS col2 FROM tab1 AS cor0
----
-1152
-1440
-54
query I rowsort
SELECT - col1 * + cor0.col0 + + col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - col2 * + col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 11 col1 FROM tab2 cor0
----
286
297
418
query I rowsort
SELECT + col2 + 68 + ( + col0 ) AS col0 FROM tab1 cor0
----
125
189
244
query I rowsort
SELECT + cor0.col0 + col0 * col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL 48 * col2 FROM tab0
----
1584
3936
48
query I rowsort
SELECT ALL - ( col1 ) + + col2 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
1331
1432
617
query I rowsort
SELECT ALL 61 * cor0.col2 + - col1 FROM tab0 cor0
----
-36
1927
4911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1774
SELECT DISTINCT - CAST( 53 AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
-139
-144
-150
skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - CAST ( 53 AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
-139
-144
-150
query I rowsort
SELECT ALL + cor0.col1 + + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL + 65 * - cor0.col0 FROM tab0 AS cor0
----
-1560
-2275
-5785
query I rowsort
SELECT 91 * col2 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 10 AS REAL ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
query I rowsort
SELECT ALL + 56 + col1 FROM tab1 AS cor0
----
66
69
82
query I rowsort
SELECT + 95 * col2 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT + col2 + col1 * cor0.col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ( - col1 * col2 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL col2 * + col0 + - 6 AS col1 FROM tab2 AS cor0
----
183
2022
2996
onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT 81 + - col2 DIV + 58 AS col0 FROM tab0 AS cor0
----
80
81
81
skipif mysql # not compatible
query I rowsort label-1785
SELECT 81 + - col2 / + 58 AS col0 FROM tab0 AS cor0
----
80
81
81
query I rowsort
SELECT ALL - col1 + col2 * 95 AS col2 FROM tab0 cor0
----
-2
3049
7699
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col1 AS REAL ) AS col0 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col0 FROM tab2
----
-92
-92
-92
query I rowsort
SELECT DISTINCT - - col2 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - col0 * col0 * + col2 AS col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + ( cor1.col1 ) * cor1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 11afcae511dc5af9fcc80b9c18958911
query I rowsort
SELECT 66 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT col0 * ( ( - col2 ) ) * - col0 FROM tab1
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1794
SELECT ALL - col1 DIV ( - 78 ) + col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL - col1 / ( - 78 ) + col0 FROM tab0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( 64 ) col2 FROM tab2
----
142
143
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-1796
SELECT DISTINCT col0 + + CAST( col1 AS SIGNED ) DIV - col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT col0 + + CAST ( col1 AS INTEGER ) / - col2 FROM tab1
----
3
64
80
query I rowsort
SELECT - col0 * + col1 + - col0 * - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col1 * col2 + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1799
SELECT DISTINCT - CAST( col1 AS SIGNED ) + col2 + 26 FROM tab2 AS cor0
----
-7
22
47
skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + col2 + 26 FROM tab2 AS cor0
----
-7
22
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-1800
SELECT ALL + col2 DIV - col0 + col1 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + col2 / - col0 + col1 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT DISTINCT + 6 + + cor0.col2 * + col1 FROM tab2 AS cor0
----
1540
652
843
query I rowsort
SELECT ALL 29 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT - tab2.col1 * - 63 + col0 AS col1 FROM tab2
----
1150
1960
3795
query I rowsort
SELECT + col1 + - 81 FROM tab1
----
-55
-68
-71
query I rowsort
SELECT DISTINCT col2 + + tab1.col2 + + col0 FROM tab1
----
111
178
272
query I rowsort
SELECT ALL - 47 FROM tab0, tab0 cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT DISTINCT - tab2.col2 * + col0 + col1 AS col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT 24 * - cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
-240
-312
-624
query I rowsort
SELECT - - cor0.col2 + ( col0 ) AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + 28 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT ALL + col0 * - col0 * col1 + + 98 AS col2 FROM tab2 AS cor0
----
-105999
-1421
-358858
onlyif mysql # use DIV operator for integer division
query I rowsort label-1812
SELECT DISTINCT col2 DIV 78 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT col2 / 78 AS col2 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + col1 ) + 72 col0 FROM tab2 AS cor0
----
1415
289
4674
onlyif mysql # use DIV operator for integer division
query I rowsort label-1814
SELECT ALL + col0 DIV + col2 + + col1 * - col0 - - col1 * col2 col0 FROM tab1 AS cor0
----
-69
1326
208
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL + col0 / + col2 + + col1 * - col0 - - col1 * col2 col0 FROM tab1 AS cor0
----
-69
1326
208
query I rowsort
SELECT 57 + col2 * - col1 FROM tab2 AS cor0
----
-1477
-589
-780
query I rowsort
SELECT DISTINCT - 36 * col2 + col1 FROM tab0 AS cor0
----
-1102
-2861
61
query I rowsort
SELECT DISTINCT + col1 + 41 AS col1 FROM tab2 AS cor0
----
100
58
72
query I rowsort
SELECT DISTINCT + col0 + col0 + + cor0.col0 * - cor0.col0 * 81 AS col2 FROM tab2 AS cor0
----
-3955
-492648
-505363
onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT DISTINCT + 5 DIV col2 + cor0.col1 FROM tab0 AS cor0
----
102
86
91
skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT + 5 / col2 + cor0.col1 FROM tab0 AS cor0
----
102
86
91
query I rowsort
SELECT ALL 20 * col1 - + col0 * + col2 * + col0 AS col2 FROM tab1 AS cor0
----
-233272
-614140
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1821
SELECT + col2 * col2 DIV col2 + cor0.col2 * - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-673
-7125
63
skipif mysql # not compatible
query I rowsort label-1821
SELECT + col2 * col2 / col2 + cor0.col2 * - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-673
-7125
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1822
SELECT ALL tab1.col2 DIV + col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL tab1.col2 / + col2 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1823
SELECT + - col2 DIV + col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1047
-645
-80
skipif mysql # not compatible
query I rowsort label-1823
SELECT + - col2 / + col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1047
-645
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1824
SELECT DISTINCT - col2 * cor0.col0 + + col1 DIV + col1 FROM tab2 AS cor0
----
-188
-2027
-3001
skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - col2 * cor0.col0 + + col1 / + col1 FROM tab2 AS cor0
----
-188
-2027
-3001
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT + ( 30 ) FROM tab0
----
30
query I rowsort
SELECT + - 74 + + cor0.col1 FROM tab0 AS cor0
----
12
17
23
query I rowsort
SELECT DISTINCT col2 * - 62 AS col1 FROM tab2
----
-1612
-1674
-2356
query I rowsort
SELECT DISTINCT + ( - 60 + - tab1.col0 ) AS col1 FROM tab1
----
-124
-140
-63
query I rowsort
SELECT - 42 AS col0 FROM tab2 AS cor0
----
-42
-42
-42
query I rowsort
SELECT + 54 + + col0 * col0 AS col2 FROM tab0 cor0
----
1279
630
7975
query I rowsort
SELECT DISTINCT - + 27 FROM tab1 cor0
----
-27
query I rowsort
SELECT ALL + - col2 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT - col2 + col1 - - col1 AS col0 FROM tab0 AS cor0
----
100
139
193
query I rowsort
SELECT - col0 - col2 * - col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL - col2 * + col1 + - col1 FROM tab0
----
-194
-2924
-7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT ALL - col2 DIV col1 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - col2 / col1 + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT cor0.col2 * - col1 * - col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT - col0 * col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT tab2.col0 - col2 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - col0 + + col1 * + col2 + col2 AS col2 FROM tab1
----
1264
1455
563
query I rowsort
SELECT + col1 * col2 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - col2 + + tab1.col2 + + col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col2 * col1 + col0 + col2 FROM tab1
----
1424
1461
691
query I rowsort
SELECT - tab2.col2 * tab2.col1 + col1 FROM tab2
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1846
SELECT col0 DIV col0 + col2 AS col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-1846
SELECT col0 / col0 + col2 AS col2 FROM tab1
----
55
58
97
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) = ( - col1 + + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT DISTINCT col1 + col1 DIV col1 col1 FROM tab0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT col1 + col1 / col1 col1 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT col1 / + tab2.col0 AS col0 FROM tab2 WHERE NULL NOT BETWEEN col1 AND ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT + col2 * col0 DIV + col0 + + col1 FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-1850
SELECT + col2 * col0 / + col0 + + col1 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT DISTINCT tab2.col0 + col1 DIV - col0 AS col1 FROM tab2
----
3
78
79
skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT tab2.col0 + col1 / - col0 AS col1 FROM tab2
----
3
78
79
query I rowsort
SELECT col2 + + col0 * col2 * col0 FROM tab0
----
1226
19041
649604
query I rowsort
SELECT cor0.col2 * col2 * + col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT col1 * + col0 * col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - col2 = NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1856
SELECT ALL + + CAST( NULL AS SIGNED ) + cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL + + CAST ( NULL AS INTEGER ) + cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab1 AS cor0
----
58
query I rowsort
SELECT ALL - - 77 * + col2 * + col2 FROM tab0 AS cor0
----
517748
77
83853
query I rowsort
SELECT DISTINCT - + col1 + + col0 * - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT 90 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT ALL - col1 + col1 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1862
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col2 + - ( + 94 ) AS col1 FROM tab1
----
-148
-151
-190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1864
SELECT - tab2.col1 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1864
SELECT - tab2.col1 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * + ( col1 + + col2 ) FROM tab2
----
406
4345
6630
query I rowsort
SELECT col1 - 78 FROM tab0
----
13
19
8
query I rowsort
SELECT DISTINCT col2 - - tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT ( + tab1.col0 ) FROM tab1, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col0 * + 16 + col2 + - ( 49 ) * col1 * cor0.col0 FROM tab2 AS cor0
----
-10494
-224224
-64505
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1870
SELECT ALL CAST( NULL AS SIGNED ) - - cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL CAST ( NULL AS INTEGER ) - - cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 37 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
126
61
72
query I rowsort
SELECT DISTINCT col2 * cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL + ( - col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - ( col2 ) + col2 AS col2 FROM tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1875
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - 51 * + 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2550
query I rowsort
SELECT - 54 * col0 + col1 + cor0.col2 * cor0.col2 * + col1 FROM tab0 AS cor0
----
-1696
607169
92444
query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-51
query I rowsort
SELECT ALL cor0.col1 + col1 AS col2 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT cor0.col1 + 97 + - cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to a146d169b05db85d03554325681b7ff4
query I rowsort
SELECT + - col2 + + col1 * + 51 AS col2 FROM tab1 AS cor0
----
1272
453
567
query I rowsort
SELECT ALL + cor0.col0 * 13 AS col0 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT col0 * 41 AS col1 FROM tab1 AS cor0
----
123
2624
3280
query I rowsort
SELECT ALL + + col1 * + 63 + + col1 + + col1 FROM tab2 AS cor0
----
1105
2015
3835
query I rowsort
SELECT + col0 + - ( 5 ) * col2 * + col0 AS col2 FROM tab0 AS cor0
----
-140
-36401
-3936
query I rowsort
SELECT DISTINCT + col1 * - 19 AS col2 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT DISTINCT - + col2 * 96 AS col2 FROM tab1 AS cor0
----
-5184
-5472
-9216
query I rowsort
SELECT + col1 + - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - col1 + + ( col2 ) * - col2 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT col0 * ( - col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL - ( - col1 ) + col2 * col2 FROM tab2 AS cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 94 + col0 col0 FROM tab0 AS cor0
----
129
3126
7797
query I rowsort
SELECT + 93 * - col1 FROM tab2 cor0
----
-1581
-2883
-5487
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1894
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 23 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 23 AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1895
SELECT ALL - - col0 DIV + 5 FROM tab0 AS cor0
----
17
4
7
skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - - col0 / + 5 FROM tab0 AS cor0
----
17
4
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT DISTINCT - 69 + + 56 + col2 DIV - col0 FROM tab0 AS cor0
----
-13
-14
skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - 69 + + 56 + col2 / - col0 FROM tab0 AS cor0
----
-13
-14
onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT DISTINCT + ( + col0 ) DIV + col1 AS col2 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + ( + col0 ) / + col1 AS col2 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL - col0 * + ( - col2 ) AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT ALL + + col0 DIV + col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + + col0 / + col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + + 0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ( - cor0.col0 ) * 48 FROM tab1 cor0
----
-144
-3072
-3840
query I rowsort
SELECT - 96 * col0 + col1 AS col2 FROM tab1 AS cor0
----
-262
-6134
-7667
query I rowsort
SELECT DISTINCT - 89 - 63 * + col1 FROM tab2
----
-1160
-2042
-3806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1904
SELECT 41 DIV col2 + cor0.col2 - col0 AS col0 FROM tab0 cor0
----
-7
10
7
skipif mysql # not compatible
query I rowsort label-1904
SELECT 41 / col2 + cor0.col2 - col0 AS col0 FROM tab0 cor0
----
-7
10
7
query I rowsort
SELECT ALL col0 * col2 + + 1 AS col2 FROM tab2 AS cor0
----
190
2029
3003
query I rowsort
SELECT DISTINCT + ( - 47 ) FROM tab2, tab0 AS cor0
----
-47
query I rowsort
SELECT DISTINCT + tab0.col2 - ( cor1.col1 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to 058c984b3f4456ee2c7744387482643c
query I rowsort
SELECT DISTINCT - col0 * col1 + - ( - ( + col2 ) + - col0 ) * - col2 FROM tab0
----
-22121
-3431
-3945
onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT cor0.col1 + col1 * ( - col2 + col1 ) DIV col2 AS col2 FROM tab1 cor0
----
13
2
2
skipif mysql # not compatible
query I rowsort label-1909
SELECT cor0.col1 + col1 * ( - col2 + col1 ) / col2 AS col2 FROM tab1 cor0
----
13
2
2
query I rowsort
SELECT DISTINCT col2 * - col0 + col2 + + col2 * col1 AS col0 FROM tab2
----
-2318
-468
675
query I rowsort
SELECT DISTINCT 53 + - col1 FROM tab1
----
27
40
43
query I rowsort
SELECT ALL + 74 + col2 + - ( - 18 ) * col1 AS col1 FROM tab0
----
1655
1794
1821
query I rowsort
SELECT DISTINCT + col1 + col0 * + col0 AS col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT ALL + col2 + col2 * - ( + col0 ) AS col0 FROM tab2 cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-1915
SELECT ALL - 91 DIV - cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ece29cd20d575fabb9157b319c085715
skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - 91 / - cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ece29cd20d575fabb9157b319c085715
query I rowsort
SELECT + + 46 AS col0 FROM tab1 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 * 53 AS col2 FROM tab0, tab2 cor0
----
11501
243906
71179
query I rowsort
SELECT ALL + col2 * col1 + col0 AS col2 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1919
SELECT DISTINCT col1 + col0 DIV + 28 AS col0 FROM tab2
----
19
31
61
skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT col1 + col0 / + 28 AS col0 FROM tab2
----
19
31
61
query I rowsort
SELECT ALL 17 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT + - col0 * + 27 + - col1 AS col0 FROM tab1 AS cor0
----
-107
-1738
-2173
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col2 FROM tab1
----
69
69
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1923
SELECT DISTINCT - col0 + col2 * CAST( col2 * col2 AS SIGNED ) + + col1 * - 2 * col2 AS col0 FROM tab0
----
-228
30237
536355
skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - col0 + col2 * CAST ( col2 * col2 AS INTEGER ) + + col1 * - 2 * col2 AS col0 FROM tab0
----
-228
30237
536355
onlyif mysql # use DIV operator for integer division
query I rowsort label-1924
SELECT DISTINCT cor0.col1 DIV + tab0.col2 FROM tab0, tab1, tab1 cor0
----
0
10
13
26
skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT cor0.col1 / + tab0.col2 FROM tab0, tab1, tab1 cor0
----
0
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT + 19 DIV - col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1925
SELECT + 19 / - col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT 18 * + col0 * - ( col1 * + col2 ) FROM tab2
----
-105462
-2153736
-918612
query I rowsort
SELECT ALL 13 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT 26 + 37 FROM tab0 cor0
----
63
63
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 23 col2 FROM tab1
----
230
299
598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1930
SELECT col0 * - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1930
SELECT col0 * - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col0 FROM tab0
----
3
3
3
query I rowsort
SELECT ALL ( + ( - col2 ) ) + col0 * 95 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-60857
-7464
-98896
query I rowsort
SELECT ALL 9 + - cor0.col0 FROM tab0 AS cor0
----
-15
-26
-80
query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + + ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - col2 * - col0 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT + col2 * 66 + col1 * - 17 AS col1 FROM tab0
----
-1583
3865
716
query I rowsort
SELECT tab2.col1 + + col2 * col1 * 78 AS col2 FROM tab2
----
119711
50405
65317
query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col1 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT ( col2 ) + - col1 * col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + col0 * - col2 + + col1 * ( + col0 ) + - col2 AS col1 FROM tab2
----
-1697
1
2548
query I rowsort
SELECT 48 - col1 AS col1 FROM tab2
----
-11
17
31
query I rowsort
SELECT - 65 * - col1 * col0 AS col2 FROM tab2 AS cor0
----
14105
299130
87295
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * - ( cor0.col1 ) * cor0.col0 col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - - col0 * - cor0.col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col0 * col1 * tab1.col0 AS col2 FROM tab1
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1947
SELECT col2 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1947
SELECT col2 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 9 + - tab2.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a772bd63cdf1de224ae65f92e6faa06e
query I rowsort
SELECT + col0 + - ( - col2 ) + col1 * + col0 FROM tab1 AS cor0
----
1216
135
761
query I rowsort
SELECT col0 + - ( + col1 ) * col2 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1, tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1, tab0 cor0
----
NULL
query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab1, tab1 cor0
----
89
query I rowsort
SELECT - - 45 + col2 AS col2 FROM tab1 cor0
----
102
141
99
query I rowsort
SELECT DISTINCT + 97 * + 1 FROM tab0 AS cor0
----
97
query I rowsort
SELECT + col1 * ( col2 ) + + cor0.col1 * 40 * - cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
-1662
-24973
-40256
query I rowsort
SELECT DISTINCT - col2 * - col2 * col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT - col0 DIV CAST( col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1958
SELECT - col0 / CAST ( col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + - col0 * cor0.col2 + - 99 FROM tab2 AS cor0
----
-2127
-288
-3101
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) * + col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
onlyif mysql # use DIV operator for integer division
query I rowsort label-1961
SELECT ALL CAST( - col1 AS SIGNED ) DIV - cor0.col0 AS col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL CAST ( - col1 AS INTEGER ) / - cor0.col0 AS col0 FROM tab1 cor0
----
0
0
8
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) = NULL
----
query I rowsort
SELECT DISTINCT + + col2 * - col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT ALL + ( col0 ) + col2 DIV 24 FROM tab0 AS cor0
----
25
35
92
skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + ( col0 ) + col2 / 24 FROM tab0 AS cor0
----
25
35
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT DISTINCT col2 DIV + tab0.col0 + - tab0.col2 + col1 FROM tab0
----
54
9
96
skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT col2 / + tab0.col0 + - tab0.col2 + col1 FROM tab0
----
54
9
96
query I rowsort
SELECT + col2 * col2 + - col1 + col1 AS col1 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1967
SELECT DISTINCT col0 * col1 DIV - col0 + - col2 + tab1.col2 col0 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT col0 * col1 / - col0 + - col2 + tab1.col2 col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col1 * tab2.col2 + + col1 + col0 * col0 FROM tab2
----
6904
7677
917
query I rowsort
SELECT + col2 + - col0 * - tab1.col1 + + tab1.col1 AS col0 FROM tab1
----
1149
158
707
query I rowsort
SELECT col0 + + col0 + col1 * col0 AS col2 FROM tab1 WHERE ( - col2 - - col0 ) <> col1
----
1200
768
84
query I rowsort
SELECT DISTINCT + 46 + - col1 * 57 AS col0 FROM tab2
----
-1721
-3317
-923
query I rowsort
SELECT + 17 - col2 FROM tab1
----
-37
-40
-79
query I rowsort
SELECT - 12 - + col0 FROM tab1
----
-15
-76
-92
query I rowsort
SELECT + 76 * tab0.col2 AS col0 FROM tab0
----
2508
6232
76
query I rowsort
SELECT col2 + tab0.col1 * - ( + col1 ) FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT col1 * col2 * - ( col2 * col1 ) - col2 FROM tab1 AS cor0
----
-1557600
-1971270
-324957
query I rowsort
SELECT DISTINCT + 9 - 82 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-73
query I rowsort
SELECT DISTINCT - col0 + + col2 * cor0.col1 * - col0 FROM tab2 AS cor0
----
-119730
-51113
-5866
onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT - col1 - + col0 DIV ( col1 ) AS col1 FROM tab2 AS cor0
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-1979
SELECT - col1 - + col0 / ( col1 ) AS col1 FROM tab2 AS cor0
----
-21
-31
-60
query I rowsort
SELECT - tab1.col1 FROM tab1, tab0 AS cor0, tab2, tab1 cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL col1 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - col0 * + 28 AS col1 FROM tab2 AS cor0
----
-196
-2184
-2212
query I rowsort
SELECT 5 + cor0.col1 AS col1 FROM tab1 cor0
----
15
18
31
query I rowsort
SELECT + 28 * col1 AS col2 FROM tab0 AS cor0
----
2408
2548
2716
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 * col2 * col2 + col1 * cor0.col1 col2 FROM tab1 AS cor0
----
101545
32752
35839
query I rowsort
SELECT DISTINCT + ( - col2 ) * - cor0.col1 + 50 AS col2 FROM tab2 AS cor0
----
1584
696
887
skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( - col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - cor0.col1 + - 92 FROM tab1 AS cor0
----
-102
-105
-118
query I rowsort
SELECT ALL + + 43 * cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
129086
8127
87204
query I rowsort
SELECT DISTINCT + + col2 + + col1 * - 63 AS col1 FROM tab2 AS cor0
----
-1033
-1926
-3691
query I rowsort
SELECT ALL - + col2 + - col1 + 28 FROM tab2 cor0
----
-27
-30
-57
query I rowsort
SELECT + ( col0 ) * 13 FROM tab1 cor0
----
1040
39
832
query I rowsort
SELECT ALL 0 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT - col0 DIV - col0 - - col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1995
SELECT - col0 / - col0 - - col2 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 * + col0 col0 FROM tab1 cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT col2 DIV col2 + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-1997
SELECT col2 / col2 + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT ALL - + 29 * - col1 + - col2 AS col1 FROM tab2 cor0
----
1685
455
872
query I rowsort
SELECT + - col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( + col1 ) + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2001
SELECT DISTINCT + + ( col1 ) * CAST( NULL AS SIGNED ) - - col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT + + ( col1 ) * CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 77 - - col0 FROM tab2 AS cor0
----
-70
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2003
SELECT ALL - tab1.col0 + - 18 - + col1 DIV + 74 FROM tab1
----
-21
-82
-98
skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL - tab1.col0 + - 18 - + col1 / + 74 FROM tab1
----
-21
-82
-98
query I rowsort
SELECT ALL col0 - col2 * col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT - - col0 * - col2 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col0 + 66 col0 FROM tab0 AS cor0
----
176
198
246
query I rowsort
SELECT + - 79 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT + col2 * + ( - 56 + col0 ) FROM tab0 AS cor0
----
-1056
-21
2706
query I rowsort
SELECT ALL + col1 + - 14 FROM tab2 AS cor0
----
17
3
45
query I rowsort
SELECT + col1 * + col1 * - col1 - 99 AS col2 FROM tab1
----
-1099
-17675
-2296
query I rowsort
SELECT DISTINCT - ( col1 ) AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - 65 * - col1 * - col1 FROM tab1 AS cor0
----
-10985
-43940
-6500
query I rowsort
SELECT + ( col0 ) * + 65 + cor0.col2 FROM tab1 AS cor0
----
249
4217
5296
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col2 FROM tab2
----
57
57
57
query I rowsort
SELECT 90 + cor0.col2 + 83 FROM tab2 AS cor0
----
199
200
211
query I rowsort
SELECT + cor0.col0 * cor0.col0 * - col1 AS col1 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + col2 * - col0 * - col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - col1 * 42 AS col0 FROM tab0 AS cor0
----
-3612
-3822
-4074
query I rowsort
SELECT - - col0 * + col0 AS col1 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT cor0.col2 * + col2 + - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( 57 + + cor1.col2 ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-139
-58
-90
query I rowsort
SELECT ALL + cor1.col0 + - cor1.col2 + + tab2.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b7ecbf33a96733da85aaab264bbdb61e
query I rowsort
SELECT + ( - col1 ) * - 22 + - ( + col1 ) FROM tab1
----
210
273
546
onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT - cor0.col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2025
SELECT - cor0.col0 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT - - cor0.col1 + - col2 DIV + col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-2026
SELECT - - cor0.col1 + - col2 / + col0 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT ALL - - col1 + + ( - col1 ) * col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL cor0.col1 * col2 + 94 AS col2 FROM tab1 cor0
----
1342
1498
664
query I rowsort
SELECT ALL + col0 * col0 * tab0.col2 AS col2 FROM tab0
----
1225
19008
649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2030
SELECT + CAST( NULL AS SIGNED ) * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2030
SELECT + CAST ( NULL AS INTEGER ) * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2031
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - cor0.col2 * ( col2 * 49 ) AS col2 FROM tab2 AS cor0
----
33124
35721
70756
onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT 77 DIV col1 + + col1 FROM tab2 AS cor0
----
21
33
60
skipif mysql # not compatible
query I rowsort label-2033
SELECT 77 / col1 + + col1 FROM tab2 AS cor0
----
21
33
60
query I rowsort
SELECT DISTINCT col0 + col1 + - col1 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT - col1 - col2 * tab2.col1 AS col0 FROM tab2
----
-1593
-663
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2036
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) / - 45 + + col2 col2 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) / - 45 + + col2 col2 FROM tab1
----
NULL
query I rowsort
SELECT - col2 * - 19 - + col1 * - col0 AS col1 FROM tab1
----
1104
1723
2864
query I rowsort
SELECT + - tab1.col1 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 col0 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2040
SELECT col0 - + col2 DIV + 43 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-2040
SELECT col0 - + col2 / + 43 FROM tab2
----
7
78
79
query I rowsort
SELECT + col0 * + 58 AS col1 FROM tab2
----
406
4524
4582
query I rowsort
SELECT ALL + 87 * - col2 FROM tab1 cor0
----
-4698
-4959
-8352
query I rowsort
SELECT ALL ( - col0 ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 47 + col0 + col0 FROM tab0 AS cor0
----
1
131
23
query I rowsort
SELECT - + cor0.col0 + col2 * + col0 AS col1 FROM tab1 cor0
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2046
SELECT 83 * + col0 - + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2046
SELECT 83 * + col0 - + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + + col1 + 28 FROM tab1 AS cor0
----
108
137
95
query I rowsort
SELECT + 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT + 30 * + col2 + - col2 DIV 22 AS col0 FROM tab2 cor0
----
1139
779
809
skipif mysql # not compatible
query I rowsort label-2049
SELECT + 30 * + col2 + - col2 / 22 AS col0 FROM tab2 cor0
----
1139
779
809
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * cor0.col2 * 55 - + col1 col2 FROM tab2 AS cor0
----
10364
111481
165093
query I rowsort
SELECT DISTINCT + - cor0.col1 * 12 FROM tab2, tab1, tab0 AS cor0
----
-1032
-1092
-1164
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2052
SELECT CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2052
SELECT CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * + col1 col1 FROM tab0
----
7482
7917
8439
query I rowsort
SELECT ALL - ( col1 ) * col1 + col1 AS col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT ALL tab0.col2 * tab0.col0 + + tab0.col1 * + col1 FROM tab0
----
15579
8188
9444
query I rowsort
SELECT DISTINCT ( 5 ) FROM tab1 AS cor0
----
5
query I rowsort
SELECT ALL + - ( + col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort
SELECT ALL - 29 * - col1 + + CAST ( + 49 AS REAL ) * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1720
-1820
-1940
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2059
SELECT DISTINCT - cor0.col2 - - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT - cor0.col2 - - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 31 + + col2 FROM tab2 AS cor0
----
57
58
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 6 col1 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ALL + 50 * - col0 * + col0 + - col1 FROM tab0 AS cor0
----
-28886
-396141
-61347
query I rowsort
SELECT ALL + 0 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2064
SELECT - 74 + col0 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-39
718
7224
skipif mysql # not compatible
query I rowsort label-2064
SELECT - 74 + col0 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-39
718
7224
onlyif mysql # use DIV operator for integer division
query I rowsort label-2065
SELECT + cor0.col0 DIV col0 + - col1 + col2 col2 FROM tab1 cor0
----
29
48
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2065
SELECT + cor0.col0 / col0 + - col1 + col2 col2 FROM tab1 cor0
----
29
48
84
query I rowsort
SELECT ALL col2 + - 76 + col1 FROM tab1
----
-9
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT DISTINCT 16 + col2 DIV + col2 FROM tab1 AS cor0
----
17
skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT 16 + col2 / + col2 FROM tab1 AS cor0
----
17
query I rowsort
SELECT col1 * col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + 1 + cor0.col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT + col0 - col1 * ( col2 ) * + 73 FROM tab0 AS cor0
----
-207150
-544637
-7046
query I rowsort
SELECT + + col0 * cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT + + col2 * - 65 AS col1 FROM tab2 AS cor0
----
-1690
-1755
-2470
query I rowsort
SELECT ALL + cor0.col1 * 45 + col2 AS col0 FROM tab0 AS cor0
----
3903
4177
4366
query I rowsort
SELECT + cor0.col2 - + cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 48730a4f3ae72ef34da4083404b84d99
query I rowsort
SELECT ALL + - cor0.col2 * - 44 AS col0 FROM tab2 AS cor0
----
1144
1188
1672
query I rowsort
SELECT DISTINCT + - 29 * - col1 AS col0 FROM tab2 AS cor0
----
1711
493
899
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 + - col0 + col1 col1 FROM tab2 AS cor0
----
-15
-58
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2078
SELECT - col0 * + CAST( NULL AS SIGNED ) + col0 * col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2078
SELECT - col0 * + CAST ( NULL AS INTEGER ) + col0 * col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor1.col0 * cor0.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a8042fcd365197f4ce80520ccb46287c
query I rowsort
SELECT DISTINCT col1 * - col2 - - col0 * + col0 FROM tab2
----
-788
4550
5595
query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2082
SELECT - - CAST( + cor0.col1 AS SIGNED ) - col2 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-2082
SELECT - - CAST ( + cor0.col1 AS INTEGER ) - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col1 * 75 FROM tab2 cor0
----
-1275
-2325
-4425
query I rowsort
SELECT col1 * - col0 - cor0.col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + 49 * + 39 + - col1 * 85 * - col2 AS col2 FROM tab0 cor0
----
10156
243141
636181
query I rowsort
SELECT 96 * col0 + col1 FROM tab0 AS cor0
----
2390
3457
8635
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 + col2 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - 46 * col1 AS col2 FROM tab2 AS cor0
----
-1426
-2714
-782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2089
SELECT - CAST( NULL AS SIGNED ) - col0 * + col2 / + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2089
SELECT - CAST ( NULL AS INTEGER ) - col0 * + col2 / + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 44 * + 74 AS col1 FROM tab1 AS cor0
----
-3256
-3256
-3256
query I rowsort
SELECT ALL + - col2 + + col0 + col1 AS col1 FROM tab0 cor0
----
131
77
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT - 75 DIV - 83 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2092
SELECT - 75 / - 83 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 20 + 46 AS col1 FROM tab0
----
26
26
26
query I rowsort
SELECT ALL - col2 * col1 + col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ALL + 17 * - col0 * - tab0.col0 + col0 AS col2 FROM tab0
----
134746
20860
9816
query I rowsort
SELECT ALL + - col1 + ( col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL - - col1 + + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL 85 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT col0 + col1 * + 84 FROM tab1
----
1172
2187
904
query I rowsort
SELECT 73 FROM tab2, tab0, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2
query I rowsort
SELECT ALL col0 + + 6 * + col0 AS col2 FROM tab1 cor0
----
21
448
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - tab0.col2 col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2103
SELECT DISTINCT + col1 * - col0 + col0 * col1 * + CAST( - col0 + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-118825
-64792
16512
skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT + col1 * - col0 + col0 * col1 * + CAST ( - col0 + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-118825
-64792
16512
query I rowsort
SELECT ALL + col1 * 67 - ( cor0.col0 ) * col1 FROM tab1 AS cor0
----
-169
1664
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT ALL - - col0 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - - col0 / - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT - + col0 * - ( + col1 ) + col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT DISTINCT + col0 * col0 + + col1 DIV col0 FROM tab0 AS cor0
----
1227
579
7922
skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + col0 * col0 + + col1 / col0 FROM tab0 AS cor0
----
1227
579
7922
query I rowsort
SELECT DISTINCT ( - col1 ) * col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + ( 62 ) FROM tab2
----
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2110
SELECT DISTINCT ( col2 ) DIV 79 col1 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT ( col2 ) / 79 col1 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col2 FROM tab1
----
17
17
17
query I rowsort
SELECT ALL 75 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2113
SELECT ALL tab2.col2 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL tab2.col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + 81 + col2 AS col2 FROM tab1
----
-2052
-753
-957
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 * ( - col2 ) + + col2 col2 FROM tab0
----
1
2785
7453
query I rowsort
SELECT - col2 * 53 AS col0 FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT - - 26 + 28 FROM tab0 cor0
----
54
54
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT + col2 + 11 DIV col1 AS col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-2118
SELECT + col2 + 11 / col1 AS col2 FROM tab1 AS cor0
----
54
58
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT DISTINCT + - ( - col2 ) + - col2 DIV ( col2 * - col1 ) AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT + - ( - col2 ) + - col2 / ( col2 * - col1 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + 24 AS col2 FROM tab0 cor0
----
24
24
24
query I rowsort
SELECT ALL + 74 + col0 * - col0 + + col2 FROM tab0 AS cor0
----
-1150
-469
-7765
query I rowsort
SELECT - + col1 * cor0.col2 + col2 * + col0 FROM tab0 cor0
----
-164
-2046
-62
query I rowsort
SELECT + 11 + + ( - col2 ) FROM tab0 AS cor0
----
-22
-71
10
query I rowsort
SELECT - 68 * col1 + col0 * - 25 FROM tab2 AS cor0
----
-2283
-3131
-5962
onlyif mysql # use DIV operator for integer division
query I rowsort label-2125
SELECT ( + 25 ) - - cor0.col2 DIV + 16 FROM tab2 AS cor0
----
26
26
27
skipif mysql # not compatible
query I rowsort label-2125
SELECT ( + 25 ) - - cor0.col2 / + 16 FROM tab2 AS cor0
----
26
26
27
query I rowsort
SELECT ALL - 39 - col1 * - col2 AS col2 FROM tab0
----
2799
58
7423
query I rowsort
SELECT DISTINCT col2 - 87 FROM tab0
----
-5
-54
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2128
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 22 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 22 FROM tab1
----
NULL
query I rowsort
SELECT ALL - + ( cor0.col0 ) + + col2 * + col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - + ( - col0 ) - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - - cor0.col0 * 29 FROM tab1, tab1 AS cor0
----
9 values hashing to 5319314427cff452ca112595a8b96825
query I rowsort
SELECT ALL 24 * + col1 + cor0.col2 FROM tab0 AS cor0
----
2097
2266
2329
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col2 col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + - ( col1 ) + + ( col1 ) AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col2 - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - 60 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
-34560
-475260
-73500
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2137
SELECT + col1 + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2137
SELECT + col1 + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 + col0 + + 96 FROM tab0 AS cor0
----
206
228
276
query I rowsort
SELECT ALL - 31 * col2 + - col1 * - col2 - col2 AS col2 FROM tab2 AS cor0
----
-27
-570
702
query I rowsort
SELECT ALL - - 58 + col0 FROM tab2 cor0
----
136
137
65
query I rowsort
SELECT - 46 AS col0 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to ae4d442ff589a18fe7c7777464d5970c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 15 + col0 col2 FROM tab0 AS cor0
----
104
39
50
query I rowsort
SELECT ALL + 66 * col2 AS col1 FROM tab2 AS cor0
----
1716
1782
2508
query I rowsort
SELECT - + col1 + - ( - 55 ) * col1 AS col2 FROM tab1 AS cor0
----
1404
540
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-2145
SELECT - - col1 + 88 DIV + 81 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-2145
SELECT - - col1 + 88 / + 81 FROM tab2 AS cor0
----
18
32
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2146
SELECT + - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2146
SELECT + - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT col2 + 70 DIV 53 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-2147
SELECT col2 + 70 / 53 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col0 FROM tab2
----
73
73
73
query I rowsort
SELECT ALL + 69 + + col2 FROM tab2 AS cor0
----
107
95
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 54 col2 FROM tab1 AS cor0
----
-64
-67
-80
query I rowsort
SELECT DISTINCT + cor2.col0 * - cor0.col2 + cor1.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
27 values hashing to 7870f1dcfdfcd07c76658e71abf2c4e8
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2153
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2153
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - + col0 * 38 AS col1 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT + cor0.col0 * 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col0 + 52 * cor0.col0 AS col1 FROM tab2 cor0
----
371
4134
4187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - tab0.col0 col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT - 4 + + col1 * - 15 FROM tab0
----
-1294
-1369
-1459
query I rowsort
SELECT DISTINCT - tab0.col0 + + 65 + + tab0.col1 FROM tab0, tab0 AS cor0
----
127
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-2160
SELECT DISTINCT - + cor0.col1 * - ( + cor0.col0 ) + col0 DIV - ( + col0 ) AS col0 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT - + cor0.col1 * - ( + cor0.col0 ) + col0 / - ( + col0 ) AS col0 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT DISTINCT - + col0 * + col1 FROM tab1 cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( + col0 AS REAL ) FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 + ( col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - cor0.col2 * + col1 * - cor0.col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT + col2 - 52 AS col2 FROM tab2 AS cor0
----
-14
-25
-26
query I rowsort
SELECT ALL - col0 + + col2 AS col0 FROM tab1 cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2167
SELECT + col0 + - CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2167
SELECT + col0 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - - col0 * 94 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
631
7306
7388
query I rowsort
SELECT DISTINCT col2 - + ( + col0 ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - - col0 * col0 - col1 * col1 FROM tab1 AS cor0
----
-667
3996
6231
query I rowsort
SELECT - + col0 * cor0.col2 * col2 - + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-120317
-5152
-58812
query I rowsort
SELECT ALL - - col2 * col0 * col2 + col0 FROM tab0 AS cor0
----
26160
598525
70
query I rowsort
SELECT ALL - + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 68 - col0 * col1 col0 FROM tab0 AS cor0
----
-1911
3201
3784
query I rowsort
SELECT + + col1 * col1 - + col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL col0 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT - 21 + 93 * - col1 DIV - ( tab0.col1 ) FROM tab0
----
72
72
72
skipif mysql # not compatible
query I rowsort label-2177
SELECT - 21 + 93 * - col1 / - ( tab0.col1 ) FROM tab0
----
72
72
72
query I rowsort
SELECT DISTINCT + 50 + - 87 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT DISTINCT - ( col1 ) DIV - col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT - ( col1 ) / - col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT + col0 * 56 AS col2 FROM tab2 AS cor0
----
392
4368
4424
query I rowsort
SELECT ALL - + col0 * col1 * cor0.col0 FROM tab1 AS cor0
----
-234
-40960
-83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT ALL - + col1 DIV + col0 - ( - col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2061
3393
8098
skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - + col1 / + col0 - ( - col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2061
3393
8098
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * - cor0.col1 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - 17 + + col1 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-17
-17
-17
query I rowsort
SELECT DISTINCT + + 76 * col2 + ( - col1 ) FROM tab2 AS cor0
----
1917
2021
2871
onlyif mysql # use DIV operator for integer division
query I rowsort label-2186
SELECT DISTINCT 46 + + col1 + 37 DIV + col1 FROM tab1 AS cor0
----
59
61
73
skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT 46 + + col1 + 37 / + col1 FROM tab1 AS cor0
----
59
61
73
query I rowsort
SELECT ALL - 67 - - col1 AS col1 FROM tab1 AS cor0
----
-41
-54
-57
query I rowsort
SELECT 95 * + col1 AS col0 FROM tab0 cor0
----
8170
8645
9215
query I rowsort
SELECT + + ( - col2 ) + + ( - col1 ) * col1 * 5 FROM tab2 AS cor0
----
-1483
-17431
-4832
query I rowsort
SELECT DISTINCT + 35 * + col0 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT + ( cor0.col1 ) * - ( col2 * + col2 ) FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL + 41 + cor0.col2 AS col1 FROM tab2 AS cor0
----
67
68
79
query I rowsort
SELECT - 40 + col2 FROM tab2
----
-13
-14
-2
query I rowsort
SELECT + col2 * + ( - col0 ) - + col1 AS col2 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor1.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2197
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 72 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 72 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT + + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-2198
SELECT + + col1 / - col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT + col2 + ( col1 * col1 ) AS col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT + 48 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT + col0 * - col2 * col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT - 88 - + col1 FROM tab2
----
-105
-119
-147
query I rowsort
SELECT ALL + col2 * ( col1 ) FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) + - col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + ( - col1 ) * + col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL - col2 + + col2 * tab2.col1 - 12 AS col2 FROM tab2
----
1496
596
798
query I rowsort
SELECT + 3 * + cor0.col0 * - col1 - col2 FROM tab2 AS cor0
----
-13832
-4067
-678
query I rowsort
SELECT + col2 + 68 + col0 FROM tab2 AS cor0
----
102
172
185
query I rowsort
SELECT DISTINCT - - ( + 49 ) * col2 * cor0.col0 FROM tab0 cor0
----
1715
357602
38808
query I rowsort
SELECT ALL + cor0.col0 + - tab1.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f8c8144a1e750f938e34a2795af6b4c2
query I rowsort
SELECT + col2 + col2 + + col0 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT col1 * + 46 * - col2 AS col1 FROM tab1
----
-26220
-57408
-64584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 66 ) * + tab0.col1 * - ( - tab0.col0 * - col1 ) col1 FROM tab0
----
-11715264
-21734790
-48642594
query I rowsort
SELECT DISTINCT - 14 FROM tab1, tab2 AS cor0
----
-14
query I rowsort
SELECT - + col2 * ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - 93 * 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-7998
query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
90
query I rowsort
SELECT DISTINCT + tab2.col2 * + 44 AS col0 FROM tab2, tab0 AS cor0, tab1, tab1 cor1
----
1144
1188
1672
query I rowsort
SELECT DISTINCT - tab2.col1 * 67 + + 33 FROM tab2, tab1, tab2 cor0
----
-1106
-2044
-3920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT - col1 DIV 9 AS col2 FROM tab2
----
-1
-3
-6
skipif mysql # not compatible
query I rowsort label-2222
SELECT - col1 / 9 AS col2 FROM tab2
----
-1
-3
-6
query I rowsort
SELECT col2 * - col0 * - tab0.col2 AS col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - 39 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
query I rowsort
SELECT ALL tab1.col1 * 58 * col0 AS col1 FROM tab1
----
37120
4524
60320
query I rowsort
SELECT + 0 AS col1 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
query I rowsort
SELECT ALL + - 67 * col0 - col1 * cor0.col0 FROM tab2 AS cor0
----
-6636
-686
-9828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 + + 24 col0 FROM tab2, tab2 AS cor0
----
54
query I rowsort
SELECT DISTINCT - col1 + - tab2.col1 * col1 AS col0 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT ALL + tab2.col0 - + col2 * col2 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT ALL 71 * - col2 + col2 FROM tab1
----
-3780
-3990
-6720
query I rowsort
SELECT DISTINCT + + col0 * - col2 + - col0 * - col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - ( + col0 ) - col2 * - 97 AS col1 FROM tab2 AS cor0
----
2444
2612
3607
query I rowsort
SELECT DISTINCT + 9 FROM tab1, tab0 AS cor0
----
9
query I rowsort
SELECT - col2 - 58 AS col1 FROM tab2 cor0
----
-84
-85
-96
query I rowsort
SELECT - - 39 - + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1209
-1365
-531
query I rowsort
SELECT - 85 - col1 FROM tab2 AS cor0
----
-102
-116
-144
query I rowsort
SELECT col0 + col1 * + 73 FROM tab0
----
6302
6732
7116
query I rowsort
SELECT ALL 78 * - col0 FROM tab1
----
-234
-4992
-6240
query I rowsort
SELECT DISTINCT 70 + col0 FROM tab0
----
105
159
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + 41 col2 FROM tab1 AS cor0
----
1081
119
681
query I rowsort
SELECT + ( col1 ) + + ( - col0 ) * - cor0.col2 FROM tab2 cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2243
SELECT + col0 + + CAST( - ( - col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-2243
SELECT + col0 + + CAST ( - ( - col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + col1 + col1 * 47 FROM tab2 AS cor0
----
1426
2714
782
onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT ALL + - col0 DIV col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL + - col0 / col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * - col1 * 32 + - col1 AS col0 FROM tab2 AS cor0
----
-111451
-30783
-9265
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 3 col2 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 + col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2249
SELECT col1 * + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-2249
SELECT col1 * + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - cor0.col0 * col2 + 52 * col0 FROM tab1 cor0
----
-320
-3520
-6
query I rowsort
SELECT ALL + col0 * 77 + + col1 FROM tab1 AS cor0
----
257
4938
6173
onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT ALL + + col2 + + cor0.col1 DIV col0 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + + col2 + + cor0.col1 / col0 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT DISTINCT - cor0.col2 - 71 FROM tab2 AS cor0
----
-109
-97
-98
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col1 * - col2 * col1 FROM tab1 AS cor0
----
-22624
-36513
-9796
query I rowsort
SELECT ALL - col0 * ( col1 ) + - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-50
-593
-957
query I rowsort
SELECT - col0 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + 93 * + col2 AS col1 FROM tab2 AS cor0
----
2418
2511
3534
onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT DISTINCT + + col0 + - col1 DIV + 34 AS col1 FROM tab0 AS cor0
----
22
33
87
skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT + + col0 + - col1 / + 34 AS col1 FROM tab0 AS cor0
----
22
33
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2259
SELECT - 14 + + col2 * + ( + ( col1 ) * + CAST( NULL AS SIGNED ) + 23 ) 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-2259
SELECT - 14 + + col2 * + ( + ( col1 ) * + CAST ( NULL AS INTEGER ) + 23 ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * col1 + - 79 FROM tab0 AS cor0
----
-7475
-8360
-9488
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - col2 > NULL
----
query I rowsort
SELECT col0 * col2 + + tab2.col0 + col2 AS col1 FROM tab2
----
2132
223
3119
query I rowsort
SELECT + col1 * col1 + + col2 * + col1 + - tab2.col0 * - col1 FROM tab2
----
2015
2278
9617
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 = ( col2 + col1 * + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col1 * col1 * + col2 AS col2 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col0 col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - ( + col0 + col0 ) FROM tab1
----
-128
-160
-6
query I rowsort
SELECT - 69 + + col0 AS col0 FROM tab0
----
-34
-45
20
query I rowsort
SELECT - col0 * + tab1.col0 AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col0 + - tab2.col0 * + col2 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT + col1 * + col1 * - col1 + col2 * col1 AS col0 FROM tab2
----
-203845
-28954
-4267
query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE + col1 + col2 NOT BETWEEN + col2 + col2 AND NULL
----
-54
-57
-96
query I rowsort
SELECT col1 * - col2 * + col2 + col1 * + col2 * + col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT tab0.col1 * + tab0.col2 * + col2 + col0 FROM tab0
----
132
611973
93678
query I rowsort
SELECT DISTINCT + col0 + + col0 * - col1 AS col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( col0 ) <> NULL
----
query I rowsort
SELECT tab1.col1 + tab1.col0 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT - col2 - + col0 FROM tab0 WHERE NULL IN ( col2 )
----
query I rowsort
SELECT - col1 FROM tab1 WHERE NOT col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col2 * - col2 + - col1 + + tab0.col1 * col0 * + tab0.col1 AS col2 FROM tab0 WHERE NULL > NULL
----
query I rowsort
SELECT ALL col1 - - col1 * col0 AS col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT + tab1.col0 * + col0 AS col1 FROM tab1 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + + col1
----
query I rowsort
SELECT DISTINCT - col2 + - col1 * tab2.col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT tab0.col2 + + tab0.col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT + ( - col2 ) * col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + cor0.col0 - - ( + cor0.col0 ) * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + - col1 * + 33 AS col2 FROM tab0 AS cor0
----
-2838
-3003
-3201
onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT - 52 DIV cor0.col0 AS col2 FROM tab2 cor0
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-2289
SELECT - 52 / cor0.col0 AS col2 FROM tab2 cor0
----
-7
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2290
SELECT DISTINCT - 13 + col0 * CAST( NULL AS DECIMAL ) + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT - 13 + col0 * CAST ( NULL AS REAL ) + col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 * col2 col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL col2 * ( - col2 + + col0 ) AS col0 FROM tab1 AS cor0
----
-1536
-2754
399
query I rowsort
SELECT - col0 + - ( + col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL + - col1 + col2 * + col1 * - col1 + - col2 * 77 FROM tab2 AS cor0
----
-13925
-28057
-92567
onlyif mysql # use DIV operator for integer division
query I rowsort label-2295
SELECT DISTINCT - - cor0.col0 - col0 DIV - col0 col2 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - - cor0.col0 - col0 / - col0 col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT - 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4
query I rowsort
SELECT DISTINCT 84 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2298
SELECT ALL tab1.col1 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL tab1.col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - col1 + + 35 * + cor0.col2 FROM tab0 AS cor0
----
-62
1069
2779
query I rowsort
SELECT - + cor0.col0 * - col0 + 66 + col0 FROM tab0 AS cor0
----
1326
666
8076
query I rowsort
SELECT - + col0 + cor0.col2 * col1 * + col2 FROM tab1 AS cor0
----
119728
32426
75813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 - + col1 col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT - + col2 * 29 + + 87 * col1 AS col2 FROM tab1 AS cor0
----
-1653
-783
696
query I rowsort
SELECT + + col0 * - ( - col1 ) * + col0 - - col0 FROM tab1 AS cor0
----
237
41024
83280
query I rowsort
SELECT DISTINCT - + col2 + col2 * col2 AS col0 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT col2 + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 84 col0 FROM tab1 AS cor0
----
252
5376
6720
query I rowsort
SELECT + cor0.col0 + - col1 * col1 FROM tab1 cor0
----
-36
-673
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2310
SELECT DISTINCT cor0.col0 + 43 DIV + col0 FROM tab0 AS cor0
----
25
36
89
skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT cor0.col0 + 43 / + col0 FROM tab0 AS cor0
----
25
36
89
query I rowsort
SELECT DISTINCT col0 * tab2.col2 + - col1 AS col0 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL + col0 + 4 AS col0 FROM tab1
----
68
7
84
query I rowsort
SELECT col0 * col1 * 2 FROM tab0 AS cor0
----
16198
4128
6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-2314
SELECT 83 DIV col0 FROM tab2 cor0
----
1
1
11
skipif mysql # not compatible
query I rowsort label-2314
SELECT 83 / col0 FROM tab2 cor0
----
1
1
11
query I rowsort
SELECT + col1 + col1 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2316
SELECT - col2 * CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2316
SELECT - col2 * CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT ALL - + col1 + + col2 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
16211
36478
5690
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col1 FROM tab2, tab0 cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52
query I rowsort
SELECT DISTINCT + - col2 + - 0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - - cor1.col1 - 60 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-34
-47
-50
query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab0 cor0
----
-43
query I rowsort
SELECT - cor0.col0 + - cor0.col1 * col2 AS col1 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT - cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL 70 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c07fb58c935d7dd3a559c80465f90463
query I rowsort
SELECT ALL ( - col1 + tab0.col2 ) AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL + col0 * ( col1 ) * - col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab0, tab1 cor0
----
-86
query I rowsort
SELECT DISTINCT 37 + tab0.col1 FROM tab0, tab2 cor0
----
123
128
134
query I rowsort
SELECT - 17 * cor0.col0 * + col0 FROM tab2 cor0
----
-103428
-106097
-833
query I rowsort
SELECT ALL - 88 * col2 FROM tab1 AS cor0
----
-4752
-5016
-8448
onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT col1 + - col2 DIV ( + col1 + col1 ) AS col0 FROM tab1 AS cor0
----
10
25
8
skipif mysql # not compatible
query I rowsort label-2332
SELECT col1 + - col2 / ( + col1 + col1 ) AS col0 FROM tab1 AS cor0
----
10
25
8
query I rowsort
SELECT ALL + + 14 * col2 FROM tab2 AS cor0
----
364
378
532
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2334
SELECT DISTINCT - + col1 + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - + col1 + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 44 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT DISTINCT - 96 * + col1 AS col2 FROM tab0
----
-8256
-8736
-9312
query I rowsort
SELECT - 24 * col0 FROM tab2 cor0
----
-168
-1872
-1896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2338
SELECT DISTINCT col2 * col2 + CAST( + col0 AS SIGNED ) * col1 FROM tab1 cor0
----
10256
2994
3889
skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT col2 * col2 + CAST ( + col0 AS INTEGER ) * col1 FROM tab1 cor0
----
10256
2994
3889
query I rowsort
SELECT DISTINCT ( col2 ) * ( tab1.col1 ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + - 87 - col1 AS col1 FROM tab2 AS cor0
----
-104
-118
-146
skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( + ( col0 ) AS REAL ) AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT - + col1 * ( col0 ) DIV col2 + - col2 FROM tab1 AS cor0
----
-106
-55
-68
skipif mysql # not compatible
query I rowsort label-2342
SELECT - + col1 * ( col0 ) / col2 + - col2 FROM tab1 AS cor0
----
-106
-55
-68
query I rowsort
SELECT DISTINCT ( - 47 ) FROM tab1, tab2 cor0
----
-47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2344
SELECT - col2 * + ( - 77 * - col1 + - CAST( - col1 AS SIGNED ) ) FROM tab0
----
-221364
-582036
-7566
skipif mysql # not compatible
query I rowsort label-2344
SELECT - col2 * + ( - 77 * - col1 + - CAST ( - col1 AS INTEGER ) ) FROM tab0
----
-221364
-582036
-7566
query I rowsort
SELECT + col2 * + 43 + col2 AS col2 FROM tab0 AS cor0
----
1452
3608
44
query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab1, tab0 AS cor0
----
96
query I rowsort
SELECT DISTINCT col2 * ( col1 ) - col0 AS col2 FROM tab2
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2348
SELECT ALL + tab2.col0 * col2 DIV - col0 - col2 * col1 FROM tab2
----
-1560
-684
-864
skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL + tab2.col0 * col2 / - col0 - col2 * col1 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT - col1 + - 55 FROM tab1 AS cor0
----
-65
-68
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2350
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * + col2 * col1 FROM tab0 AS cor0
----
-611884
-93654
-97
skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * + col2 * col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + 94 + 99 FROM tab1 AS cor0
----
193
193
193
onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT ALL - col0 * 14 + col2 * - 65 * - col0 + - cor0.col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
1784
473123
51143
skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL - col0 * 14 + col2 * - 65 * - col0 + - cor0.col0 / + col0 AS col0 FROM tab0 AS cor0
----
1784
473123
51143
query I rowsort
SELECT DISTINCT + col2 * + ( - col0 ) - + 18 FROM tab2 AS cor0
----
-2046
-207
-3020
query I rowsort
SELECT ALL + col2 + + cor0.col1 AS col2 FROM tab1 cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2355
SELECT DISTINCT - CAST( col2 AS SIGNED ) - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT - CAST ( col2 AS INTEGER ) - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 13 * + col1 + - col0 FROM tab0 AS cor0
----
-1142
-1272
-1296
query I rowsort
SELECT cor0.col2 + + cor0.col1 * ( col0 + + 88 ) * 55 AS col1 FROM tab2 AS cor0
----
156183
162002
538696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2358
SELECT - col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2358
SELECT - col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * + 32 FROM tab0
----
1056
2624
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2360
SELECT DISTINCT - cor0.col2 + + CAST( NULL AS SIGNED ) * col0 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT - cor0.col2 + + CAST ( NULL AS INTEGER ) * col0 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 + - 63 FROM tab2 AS cor0
----
-141
-142
-70
query I rowsort
SELECT DISTINCT - ( - col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT col0 + + ( + cor0.col0 ) FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT ALL - ( cor0.col2 ) + col1 * + 60 AS col0 FROM tab0 AS cor0
----
5127
5378
5819
query I rowsort
SELECT + + col0 + + 4 * col2 AS col2 FROM tab1 AS cor0
----
219
292
464
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + tab1.col1 - 34 FROM tab1, tab1 AS cor0
----
9 values hashing to b77f157af4622d4eca0f4944876ba72c
query I rowsort
SELECT DISTINCT - 60 * + col2 * + 15 AS col2 FROM tab2 AS cor0
----
-23400
-24300
-34200
query I rowsort
SELECT col1 + col2 * ( cor0.col0 ) - col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col1 * col2 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + 36 + col2 * ( - 73 ) AS col0 FROM tab1 AS cor0
----
-3906
-4125
-6972
query I rowsort
SELECT ALL col2 * + col0 - col1 * + 55 FROM tab2
----
-1217
-1516
2067
query I rowsort
SELECT ALL - col0 + col2 * + ( - cor0.col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-2374
SELECT col2 * + col1 DIV col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2374
SELECT col2 * + col1 / col1 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2375
SELECT - col1 + + col0 DIV + col0 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-2375
SELECT - col1 + + col0 / + col0 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT - tab2.col2 * tab2.col0 + ( + col0 ) * + col1 + col1 FROM tab2
----
-1642
2633
59
query I rowsort
SELECT + col2 * col1 * 48 + col1 FROM tab0
----
136310
358267
4753
query I rowsort
SELECT ALL - - col2 * + col0 + + 10 * cor0.col1 FROM tab2 AS cor0
----
2618
3172
499
query I rowsort
SELECT - cor0.col2 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT col2 * + col2 + 15 AS col0 FROM tab1 AS cor0
----
2931
3264
9231
query I rowsort
SELECT DISTINCT + - 83 FROM tab0 AS cor0
----
-83
query I rowsort
SELECT ALL col1 + - col2 * 85 + - 83 FROM tab0
----
-2802
-6962
-71
query I rowsort
SELECT DISTINCT 29 * - col2 + col2 + - 60 AS col2 FROM tab2
----
-1124
-788
-816
query I rowsort
SELECT - + col0 * - col0 + col0 * + cor0.col1 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT DISTINCT col2 + - col2 * - col1 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT + col0 * 56 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT - col2 + col2 * + 69 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT - ( + col1 ) * col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ( + col1 ) * col2 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2390
SELECT col1 + - col0 DIV - col1 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-2390
SELECT col1 + - col0 / - col1 FROM tab2
----
21
31
60
query I rowsort
SELECT - 41 + - tab1.col2 + - col0 FROM tab1
----
-162
-217
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2392
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2392
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT ALL - - col2 DIV 12 FROM tab0 cor0
----
0
2
6
skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL - - col2 / 12 FROM tab0 cor0
----
0
2
6
query I rowsort
SELECT - cor0.col2 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL col0 * + ( col1 ) FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT ALL + col0 DIV 2 + col0 FROM tab1 AS cor0
----
120
4
96
skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL + col0 / 2 + col0 FROM tab1 AS cor0
----
120
4
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT 31 + tab1.col1 DIV col0 FROM tab1
----
31
31
39
skipif mysql # not compatible
query I rowsort label-2397
SELECT 31 + tab1.col1 / col0 FROM tab1
----
31
31
39
query I rowsort
SELECT ALL - + col0 + 43 * + cor0.col1 FROM tab1 AS cor0
----
1115
366
479
query I rowsort
SELECT DISTINCT - col0 + - 71 * + col1 AS col0 FROM tab2 AS cor0
----
-1286
-2208
-4267
query I rowsort
SELECT ALL - + 12 * - col1 + col0 FROM tab1 AS cor0
----
184
236
315
query I rowsort
SELECT + 71 - cor0.col1 FROM tab1 AS cor0
----
45
58
61
query I rowsort
SELECT ALL + 7 * col0 + ( col2 ) FROM tab1 AS cor0
----
505
656
75
query I rowsort
SELECT ALL - col0 * - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL + - col2 * col1 + cor0.col0 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT col2 * cor0.col0 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2406
SELECT ALL + ( col0 ) + CAST( - col0 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + ( col0 ) + CAST ( - col0 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT col0 * - col2 - - cor0.col2 * - col1 * col1 FROM tab1 AS cor0
----
-23904
-36666
-9348
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2408
SELECT ALL - CAST( + 20 AS SIGNED ) FROM tab0 AS cor0
----
-20
-20
-20
skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - CAST ( + 20 AS INTEGER ) FROM tab0 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL + - 22 AS col2 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL - 95 + col1 * + col1 * - cor0.col1 FROM tab2 AS cor0
----
-205474
-29886
-5008
query I rowsort
SELECT + 93 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2412
SELECT - col0 + + 2 DIV 94 AS col1 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-2412
SELECT - col0 + + 2 / 94 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT tab1.col0 + tab1.col0 AS col1 FROM tab1
----
128
160
6
query I rowsort
SELECT - col1 * - 24 FROM tab0 cor0
----
2064
2184
2328
onlyif mysql # use DIV operator for integer division
query I rowsort label-2415
SELECT + col2 DIV + 67 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2415
SELECT + col2 / + 67 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - + ( ( + col1 ) ) + + 10 FROM tab0 AS cor0
----
-76
-81
-87
query I rowsort
SELECT ALL + cor0.col2 + - 26 AS col0 FROM tab2 AS cor0
----
0
1
12
query I rowsort
SELECT DISTINCT - - 49 + + 32 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81
query I rowsort
SELECT - ( col1 ) * - 10 AS col1 FROM tab1
----
100
130
260
query I rowsort
SELECT - 96 * - col0 AS col1 FROM tab1
----
288
6144
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2421
SELECT + - col0 * col0 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
skipif mysql # not compatible
query I rowsort label-2421
SELECT + - col0 * col0 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - 29 * + col0 + col1 * 38 * - col1 FROM tab2 AS cor0
----
-13273
-134540
-36721
query I rowsort
SELECT col2 * + 98 AS col0 FROM tab2 AS cor0
----
2548
2646
3724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + ( + col0 ) * col1 * - ( + col1 ) + + cor0.col2 * col1 col1 FROM tab2 AS cor0
----
-22106
-269906
-5883
query I rowsort
SELECT ALL col1 + - ( - 98 ) * + col1 FROM tab2
----
1683
3069
5841
query I rowsort
SELECT ALL + + col2 * 33 AS col0 FROM tab2 cor0
----
1254
858
891
query I rowsort
SELECT - col2 * 62 AS col0 FROM tab0 AS cor0
----
-2046
-5084
-62
query I rowsort
SELECT + cor0.col0 * - col1 + + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 - ( - ( col1 ) + - col0 ) FROM tab1 AS cor0
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2430
SELECT ALL + col0 DIV 26 FROM tab0 cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL + col0 / 26 FROM tab0 cor0
----
0
1
3
query I rowsort
SELECT - col2 * - ( + 61 ) + col1 FROM tab2 AS cor0
----
1645
1678
2335
query I rowsort
SELECT ALL + col1 * + col1 + col2 * col0 FROM tab1 AS cor0
----
3748
7849
838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2433
SELECT + cor0.col2 + CAST( 36 AS SIGNED ) FROM tab1 AS cor0
----
132
90
93
skipif mysql # not compatible
query I rowsort label-2433
SELECT + cor0.col2 + CAST ( 36 AS INTEGER ) FROM tab1 AS cor0
----
132
90
93
query I rowsort
SELECT DISTINCT + col0 + + col0 * + col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT col0 * 58 AS col1 FROM tab0 AS cor0
----
1392
2030
5162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2436
SELECT ALL - + CAST( - 1 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - + CAST ( - 1 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
4
65
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2437
SELECT ALL CAST( + col0 AS SIGNED ) + col2 * CAST( - 74 AS SIGNED ) FROM tab1 AS cor0
----
-3993
-4154
-7024
skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL CAST ( + col0 AS INTEGER ) + col2 * CAST ( - 74 AS INTEGER ) FROM tab1 AS cor0
----
-3993
-4154
-7024
query I rowsort
SELECT + col0 * + col1 + - 81 FROM tab1
----
-3
559
959
onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT + 44 * col1 DIV ( col1 ) - + col0 FROM tab1 AS cor0
----
-20
-36
41
skipif mysql # not compatible
query I rowsort label-2439
SELECT + 44 * col1 / ( col1 ) - + col0 FROM tab1 AS cor0
----
-20
-36
41
query I rowsort
SELECT ALL + col0 + col2 * + 63 * - col0 FROM tab1 cor0
----
-10203
-229760
-483760
query I rowsort
SELECT + - 69 - cor0.col0 FROM tab0 AS cor0
----
-104
-158
-93
query I rowsort
SELECT - 40 - - col0 FROM tab1 AS cor0
----
-37
24
40
query I rowsort
SELECT 4 * 60 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to ad1a1a599551c2d313a0043fd7a51055
query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 * col0 * ( col2 ) - - col1 FROM tab1
----
233482
512
614413
query I rowsort
SELECT DISTINCT + + col2 * 73 AS col2 FROM tab1 AS cor0
----
3942
4161
7008
query I rowsort
SELECT ALL col1 + col0 + col2 AS col1 FROM tab1
----
131
189
83
query I rowsort
SELECT ALL col2 * + col0 - col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT + col0 * + col0 * - col1 + - 89 FROM tab0
----
-118914
-49625
-720900
query I rowsort
SELECT + 47 * col1 FROM tab0
----
4042
4277
4559
query I rowsort
SELECT ALL + ( + 20 ) * + cor0.col1 FROM tab2 cor0
----
1180
340
620
query I rowsort
SELECT + 54 - col0 AS col2 FROM tab0 AS cor0
----
-35
19
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + - col1 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 36 - - ( + col2 ) FROM tab2 AS cor0
----
62
63
74
query I rowsort
SELECT col2 * - 46 + - col2 FROM tab1 AS cor0
----
-2538
-2679
-4512
onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT DISTINCT + 31 DIV - 33 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT + 31 / - 33 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2457
SELECT + cor0.col2 DIV col0 + + col1 AS col1 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-2457
SELECT + cor0.col2 / col0 + + col1 AS col1 FROM tab1 AS cor0
----
10
14
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2458
SELECT DISTINCT - ( - cor0.col1 ) + - CAST( + cor0.col1 AS SIGNED ) * col2 * col2 AS col2 FROM tab1 AS cor0
----
-119795
-32480
-75790
skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT - ( - cor0.col1 ) + - CAST ( + cor0.col1 AS INTEGER ) * col2 * col2 AS col2 FROM tab1 AS cor0
----
-119795
-32480
-75790
query I rowsort
SELECT ALL - 62 * col2 AS col2 FROM tab2 AS cor0
----
-1612
-1674
-2356
query I rowsort
SELECT ( tab2.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT + - cor0.col0 * 96 AS col1 FROM tab0, tab2, tab0 AS cor0
----
-2304
-3360
-8544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2462
SELECT ALL + - CAST( tab0.col0 AS SIGNED ) FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + - CAST ( tab0.col0 AS INTEGER ) FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
query I rowsort
SELECT ALL ( 22 ) FROM tab1, tab1 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - col2 - 55 AS col1 FROM tab2 cor0
----
-81
-82
-93
query I rowsort
SELECT - cor0.col0 * ( col2 + col2 ) * - ( cor0.col1 ) AS col2 FROM tab1 cor0
----
199680
72960
8424
query I rowsort
SELECT DISTINCT - - col0 * - 6 AS col2 FROM tab1 AS cor0
----
-18
-384
-480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2468
SELECT DISTINCT - - col1 * + CAST( + col0 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT - - col1 * + CAST ( + col0 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL col1 + + ( - col0 ) * col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - - col2 * + col2 + - col1 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL - cor0.col0 * col2 + - col1 - col1 FROM tab2 cor0
----
-2146
-251
-3036
query I rowsort
SELECT ALL col2 * col0 + 7 AS col1 FROM tab1 AS cor0
----
169
3655
7687
query I rowsort
SELECT DISTINCT + - 22 * col0 FROM tab0 AS cor0
----
-1958
-528
-770
query I rowsort
SELECT - + col2 * + 17 AS col2 FROM tab1 AS cor0
----
-1632
-918
-969
query I rowsort
SELECT + 19 * + col2 - + col2 * + 2 FROM tab0 AS cor0
----
1394
17
561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) + col2 col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + col2 * col1 + + col1 AS col0 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + + 46 + + 60 AS col2 FROM tab2 AS cor0
----
106
query I rowsort
SELECT DISTINCT + + cor0.col0 * + 40 - col2 FROM tab2 cor0
----
253
3094
3122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2480
SELECT - CAST( NULL AS SIGNED ) + - 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2480
SELECT - CAST ( NULL AS INTEGER ) + - 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2481
SELECT DISTINCT CAST( NULL AS SIGNED ) + - cor0.col2 * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - cor0.col2 * col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 64 + + col0 * + col2 * - col1 FROM tab2 AS cor0
----
-119716
-51098
-5923
query I rowsort
SELECT ALL + + col2 * - col1 - col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT ALL + ( + col1 ) * - cor0.col1 + col0 AS col1 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT - col0 * 49 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT ALL col1 * + 96 AS col2 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT DISTINCT + + col0 + - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 52 col2 FROM tab2
----
-45
26
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 - + ( col1 * + col1 ) col2 FROM tab1
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + + 24 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 31b2383e66654ef34f9b8e4b30a4ae4b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2491
SELECT + + cor0.col2 * + ( col0 ) + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2054
216
3040
skipif mysql # not compatible
query I rowsort label-2491
SELECT + + cor0.col2 * + ( col0 ) + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + + 46 AS col1 FROM tab2, tab1, tab2 AS cor0
----
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2493
SELECT - CAST( NULL AS SIGNED ) * 11 - + col2 * - 80 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2493
SELECT - CAST ( NULL AS INTEGER ) * 11 - + col2 * - 80 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 56 * col0 + col0 * + 20 AS col0 FROM tab1 AS cor0
----
-108
-2304
-2880
query I rowsort
SELECT DISTINCT ( + 27 ) AS col0 FROM tab1 AS cor0
----
27
query I rowsort
SELECT 46 + col1 AS col1 FROM tab0 AS cor0
----
132
137
143
query I rowsort
SELECT + 31 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2807
-66
-7431
onlyif mysql # use DIV operator for integer division
query I rowsort label-2498
SELECT col0 * - col0 + 78 * col0 + - col1 DIV + 60 FROM tab2 AS cor0
----
-79
0
497
skipif mysql # not compatible
query I rowsort label-2498
SELECT col0 * - col0 + 78 * col0 + - col1 / + 60 FROM tab2 AS cor0
----
-79
0
497
onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT ALL - col1 DIV 50 + col2 * - col1 FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - col1 / 50 + col2 * - col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2500
SELECT + + col0 + col1 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2500
SELECT + + col0 + col1 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 90 * col1 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT ALL - ( + col0 + col0 ) * - 84 AS col0 FROM tab0
----
14952
4032
5880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT DISTINCT - CAST( tab0.col0 AS SIGNED ) AS col0 FROM tab2, tab0, tab2 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - CAST ( tab0.col0 AS INTEGER ) AS col0 FROM tab2, tab0, tab2 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT + 3 DIV col0 + + 89 AS col2 FROM tab1
----
89
89
90
skipif mysql # not compatible
query I rowsort label-2504
SELECT + 3 / col0 + + 89 AS col2 FROM tab1
----
89
89
90
query I rowsort
SELECT DISTINCT col2 * col0 + 31 + col0 FROM tab1 AS cor0
----
196
3743
7791
query I rowsort
SELECT + + cor0.col1 * - ( 16 ) AS col2 FROM tab0 AS cor0
----
-1376
-1456
-1552
onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT - col2 + 24 DIV cor0.col2 FROM tab0 AS cor0
----
-33
-82
23
skipif mysql # not compatible
query I rowsort label-2507
SELECT - col2 + 24 / cor0.col2 FROM tab0 AS cor0
----
-33
-82
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2508
SELECT - + col2 DIV - ( col2 * + col2 ) FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2508
SELECT - + col2 / - ( col2 * + col2 ) FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT + col2 DIV - col0 col2 FROM tab2 cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2509
SELECT + col2 / - col0 col2 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT - - col0 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - - 72 AS col2 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT - ( col2 ) + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab2, tab2 AS cor0
----
-37
query I rowsort
SELECT ALL - ( col0 + col2 ) * + col1 FROM tab2
----
-1054
-1989
-6136
query I rowsort
SELECT + - 40 + col2 * - cor0.col2 FROM tab1 cor0
----
-2956
-3289
-9256
query I rowsort
SELECT - + col0 + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT DISTINCT + col2 + col0 DIV 2 FROM tab1
----
136
55
89
skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT + col2 + col0 / 2 FROM tab1
----
136
55
89
query I rowsort
SELECT ALL + cor0.col0 + col2 * - col0 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT + + col1 - ( - col1 ) AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - col0 * - ( - col2 ) + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT + col2 - + col1 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT - ( col0 ) * + col0 + col2 AS col0 FROM tab0 cor0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT 0 FROM tab1, tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT + - 22 DIV col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2525
SELECT + - 22 / col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
0
query I rowsort
SELECT - - ( + 8 ) FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT - tab1.col1 - - col0 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL col0 - - col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT - col0 - col1 AS col1 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT - col1 * + cor0.col0 * + col0 + col1 FROM tab2 AS cor0
----
-106080
-1488
-358897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col0 + + col0 + - col2 * - col2 col2 FROM tab2
----
2866
5356
953
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + cor0.col2 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609
query I rowsort
SELECT DISTINCT + col0 * + col1 * + col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + col1 + - col1 * + col0 - + cor0.col1 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 - col0 )
----
query I rowsort
SELECT col0 * - col2 - + col0 * + col2 FROM tab1
----
-15360
-324
-7296
query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 * - col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL + col2 * tab2.col2 AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT col1 * - col2 - - col0 AS col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT + col2 + 38 * + col2 + col2 AS col2 FROM tab0
----
1320
3280
40
query I rowsort
SELECT ALL tab2.col2 + - ( col1 ) AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT col2 * - 44 AS col2 FROM tab0
----
-1452
-3608
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2544
SELECT DISTINCT + col0 + - ( + 42 + + tab0.col2 ) DIV col1 FROM tab0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + col0 + - ( + 42 + + tab0.col2 ) / col1 FROM tab0
----
24
35
88
query I rowsort
SELECT ALL col1 * + col1 * 36 + col1 * + 16 FROM tab0
----
267632
299572
340276
query I rowsort
SELECT col1 + - col1 + 98 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT - col1 * - col0 + - col0 - col2 * 19 AS col2 FROM tab0 AS cor0
----
1413
3341
6452
query I rowsort
SELECT DISTINCT - col2 + col1 + 70 AS col2 FROM tab0 AS cor0
----
123
166
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT + col0 + ( + cor0.col0 ) DIV + col0 - - 12 AS col2 FROM tab1 AS cor0
----
16
77
93
skipif mysql # not compatible
query I rowsort label-2549
SELECT + col0 + ( + cor0.col0 ) / + col0 - - 12 AS col2 FROM tab1 AS cor0
----
16
77
93
query I rowsort
SELECT + col2 - col0 * + col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT col1 + + 85 AS col2 FROM tab2
----
102
116
144
query I rowsort
SELECT ALL 64 * - 67 AS col2 FROM tab2
----
-4288
-4288
-4288
query I rowsort
SELECT - 11 * - col0 + col1 FROM tab0
----
1070
350
482
query I rowsort
SELECT DISTINCT ( tab1.col2 + - col0 ) AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT - 99 * + ( - col2 ) + col1 AS col0 FROM tab2
----
2633
2704
3779
query I rowsort
SELECT ALL col2 * - 96 FROM tab2
----
-2496
-2592
-3648
query I rowsort
SELECT ALL - col0 + - col0 * - col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - 52 * - col0 + col1 AS col0 FROM tab0 AS cor0
----
1334
1917
4719
query I rowsort
SELECT DISTINCT cor0.col2 * + 80 FROM tab1 AS cor0
----
4320
4560
7680
query I rowsort
SELECT + ( + 24 ) + - col0 FROM tab2
----
-54
-55
17
query I rowsort
SELECT DISTINCT - + col0 * col0 + 59 * 73 FROM tab2 AS cor0
----
-1777
-1934
4258
onlyif mysql # use DIV operator for integer division
query I rowsort label-2562
SELECT DISTINCT - 68 DIV - col2 + col1 * 20 FROM tab0 cor0
----
1722
1820
2008
skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - 68 / - col2 + col1 * 20 FROM tab0 cor0
----
1722
1820
2008
query I rowsort
SELECT + ( col1 ) * col1 AS col1 FROM tab2 cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT ALL - 15 + - col1 DIV col1 + col2 * col1 FROM tab0 AS cor0
----
2822
7446
81
skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL - 15 + - col1 / col1 + col2 * col1 FROM tab0 AS cor0
----
2822
7446
81
query I rowsort
SELECT DISTINCT - col2 * col2 * col1 + + col1 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT DISTINCT + 3 FROM tab1, tab2, tab1 AS cor0
----
3
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL 59 * + col0 AS col1 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT - + col0 * col0 + - ( + col1 ) FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT ALL - + col0 * + col0 + + cor0.col0 * + cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
113568
44793
5810
query I rowsort
SELECT DISTINCT - 74 * col1 FROM tab0
----
-6364
-6734
-7178
query I rowsort
SELECT - - 15 + col2 * - 28 FROM tab1 cor0
----
-1497
-1581
-2673
onlyif mysql # use DIV operator for integer division
query I rowsort label-2573
SELECT ALL col2 + col1 DIV 75 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL col2 + col1 / 75 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - - col0 + + col1 * + col2 + - col0 AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 18 col0 FROM tab1 AS cor0
----
180
234
468
query I rowsort
SELECT ALL - tab2.col1 * col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + cor0.col0 * 18 AS col1 FROM tab2 cor0
----
119
1326
1343
query I rowsort
SELECT DISTINCT - 84 * col0 + + col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-14938
-3037
-4854
query I rowsort
SELECT DISTINCT - ( - 33 ) + col2 FROM tab0 AS cor0
----
115
34
66
query I rowsort
SELECT - ( 27 ) * cor0.col2 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT DISTINCT - ( 4 ) * col0 FROM tab2 AS cor0
----
-28
-312
-316
query I rowsort
SELECT ALL - - ( - 29 ) FROM tab0 AS cor0
----
-29
-29
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT DISTINCT - - cor0.col0 DIV ( col0 + 78 ) FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT - - cor0.col0 / ( col0 + 78 ) FROM tab0 cor0
----
0
query I rowsort
SELECT + 18 + col0 FROM tab1 AS cor0
----
21
82
98
query I rowsort
SELECT - 50 * - col1 * col1 AS col2 FROM tab0 AS cor0
----
369800
414050
470450
query I rowsort
SELECT - 24 * + col0 * + col1 AS col1 FROM tab1 cor0
----
-15360
-1872
-24960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 33 ) * + col0 col2 FROM tab1
----
2112
2640
99
query I rowsort
SELECT tab1.col1 * col2 + - col2 * col1 + - tab1.col1 * col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL 86 - col2 AS col2 FROM tab2
----
48
59
60
query I rowsort
SELECT ALL + col0 * - col0 - col1 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT DISTINCT + 78 - + 44 * + col1 FROM tab1
----
-1066
-362
-494
onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT + - col1 DIV 93 - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2592
SELECT + - col1 / 93 - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col0 + col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - 73 * col2 - cor0.col0 FROM tab1 AS cor0
----
-3945
-4225
-7088
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 91 * col0 - col2 col1 FROM tab0 AS cor0
----
-2217
-3186
-8181
query I rowsort
SELECT 83 + col1 FROM tab2 AS cor0
----
100
114
142
query I rowsort
SELECT + 92 FROM tab0 cor0
----
92
92
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - cor0.col2 col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - ( col2 ) + 54 * col2 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT DISTINCT + col1 * - col2 - + col1 * 88 * col1 FROM tab2 cor0
----
-26078
-307862
-85405
query I rowsort
SELECT col0 * col0 + 22 FROM tab1 AS cor0
----
31
4118
6422
query I rowsort
SELECT ( 89 ) FROM tab2
----
89
89
89
query I rowsort
SELECT + 10 * col2 FROM tab2
----
260
270
380
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2604
SELECT DISTINCT + - col0 + col0 * - CAST( 4 + + col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-210
-7743
-912
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + - col0 + col0 * - CAST ( 4 + + col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-210
-7743
-912
query I rowsort
SELECT - 53 * + cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266
query I rowsort
SELECT ALL - + 37 FROM tab0 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab2
----
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2608
SELECT col2 + + CAST( 50 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
76
77
88
skipif mysql # not compatible
query I rowsort label-2608
SELECT col2 + + CAST ( 50 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
76
77
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT col2 DIV + 47 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2609
SELECT col2 / + 47 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT col0 * - col2 * + 24 FROM tab1 AS cor0
----
-184320
-3888
-87552
query I rowsort
SELECT ALL + 70 * col1 FROM tab2
----
1190
2170
4130
query I rowsort
SELECT ALL - + col0 + - 95 FROM tab1 AS cor0
----
-159
-175
-98
query I rowsort
SELECT col2 * - col0 - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT col1 * - ( cor0.col2 + col0 ) AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2616
SELECT - + CAST( + ( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2616
SELECT - + CAST ( + ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2617
SELECT DISTINCT - - CAST( - 51 AS SIGNED ) + col0 * + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-2
6033
6190
skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT - - CAST ( - 51 AS INTEGER ) + col0 * + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-2
6033
6190
query I rowsort
SELECT ALL 26 + cor0.col1 FROM tab0 AS cor0
----
112
117
123
query I rowsort
SELECT DISTINCT - - 82 + - col2 AS col1 FROM tab0 AS cor0
----
0
49
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2620
SELECT + 52 * cor0.col1 DIV col2 AS col2 FROM tab1 AS cor0
----
25
7
9
skipif mysql # not compatible
query I rowsort label-2620
SELECT + 52 * cor0.col1 / col2 AS col2 FROM tab1 AS cor0
----
25
7
9
query I rowsort
SELECT ALL + 84 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1164
-1320
-486
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 21 col2 FROM tab2 AS cor0
----
-1239
-357
-651
onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT DISTINCT 10 * + col0 * - col0 + - 13 DIV ( - col0 ) AS col0 FROM tab0 AS cor0
----
-12250
-5760
-79210
skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT 10 * + col0 * - col0 + - 13 / ( - col0 ) AS col0 FROM tab0 AS cor0
----
-12250
-5760
-79210
query I rowsort
SELECT - tab2.col1 - - tab2.col1 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2625
SELECT col1 * - CAST( NULL AS SIGNED ) - + 24 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2625
SELECT col1 * - CAST ( NULL AS INTEGER ) - + 24 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + tab1.col0 + 65 FROM tab1
----
129
145
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2627
SELECT + CAST( NULL AS SIGNED ) + + 23 * col1 * 9 + - col1 * + col2 * - 48 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2627
SELECT + CAST ( NULL AS INTEGER ) + + 23 * col1 * 9 + - col1 * + col2 * - 48 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col1 ) + col0 + tab0.col0 FROM tab0
----
-27
-38
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col2 FROM tab1 AS cor0
----
92
query I rowsort
SELECT ALL - + ( + 72 ) FROM tab1 AS cor0
----
-72
-72
-72
query I rowsort
SELECT + 89 + col0 AS col0 FROM tab0 AS cor0
----
113
124
178
onlyif mysql # use DIV operator for integer division
query I rowsort label-2632
SELECT ALL - - 55 DIV 43 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - - 55 / 43 AS col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2633
SELECT DISTINCT + CAST( + cor0.col2 AS SIGNED ) + + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT + CAST ( + cor0.col2 AS INTEGER ) + + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + + col1 + + 45 col1 FROM tab1
----
-2
-38
17
query I rowsort
SELECT - - cor0.col0 + cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
185
256
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT col0 DIV tab0.col0 + 90 * col1 FROM tab0
----
7741
8191
8731
skipif mysql # not compatible
query I rowsort label-2636
SELECT col0 / tab0.col0 + 90 * col1 FROM tab0
----
7741
8191
8731
query I rowsort
SELECT col1 * col0 + 98 * + col0 FROM tab0
----
16821
4416
6825
query I rowsort
SELECT ( + col2 ) * 0 * 90 FROM tab1
----
0
0
0
query I rowsort
SELECT - + 4 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
131
147
314
query I rowsort
SELECT DISTINCT + col2 * + col1 + + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL + 60 + 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 241ddcc97f622e1fcc14bd3c6a5bb6f4
query I rowsort
SELECT + col2 + + ( cor0.col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col1 * + col1 * + 75 + - col1 + - 56 FROM tab1 AS cor0
----
12606
50618
7434
query I rowsort
SELECT DISTINCT - col1 + + 66 * 14 FROM tab2 AS cor0
----
865
893
907
query I rowsort
SELECT - - col1 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT col0 * ( + ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT 59 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT ALL + col1 + col0 * + ( + col1 + col2 ) AS col1 FROM tab2 AS cor0
----
4362
437
6689
onlyif mysql # use DIV operator for integer division
query I rowsort label-2649
SELECT DISTINCT 69 DIV col0 AS col1 FROM tab2 AS cor0
----
0
9
skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT 69 / col0 AS col1 FROM tab2 AS cor0
----
0
9
query I rowsort
SELECT + 54 + - col2 FROM tab2 AS cor0
----
16
27
28
query I rowsort
SELECT ALL - 36 AS col1 FROM tab2 AS cor0
----
-36
-36
-36
query I rowsort
SELECT - 41 * - col2 AS col0 FROM tab1 AS cor0
----
2214
2337
3936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * col1 col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - cor0.col0 * col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col1 col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - col1 + - col1 * - 38 FROM tab2 AS cor0
----
1147
2183
629
query I rowsort
SELECT - + cor0.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
243 values hashing to b98cc07e6d63e3c0583ed19f9e9ad2be
query I rowsort
SELECT 36 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT + col0 + ( - col2 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2660
SELECT + col0 + + CAST( + 6 AS SIGNED ) FROM tab2 AS cor0
----
13
84
85
skipif mysql # not compatible
query I rowsort label-2660
SELECT + col0 + + CAST ( + 6 AS INTEGER ) FROM tab2 AS cor0
----
13
84
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2661
SELECT cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2661
SELECT cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + - col2 + - 9 AS col2 FROM tab0 cor0
----
-10
-42
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 * + cor0.col0 col0 FROM tab1 cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT + - col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2664
SELECT + - col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT ALL - 2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL - 2 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2666
SELECT - CAST( - 75 AS SIGNED ) * tab0.col0 + ( + col1 + - col0 ) FROM tab0
----
1862
2687
6677
skipif mysql # not compatible
query I rowsort label-2666
SELECT - CAST ( - 75 AS INTEGER ) * tab0.col0 + ( + col1 + - col0 ) FROM tab0
----
1862
2687
6677
query I rowsort
SELECT + 74 + + col2 * col1 FROM tab2 AS cor0
----
1608
720
911
onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT DISTINCT cor0.col0 DIV col1 AS col2 FROM tab1 cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT cor0.col0 / col1 AS col2 FROM tab1 cor0
----
0
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2669
SELECT ALL CAST( - col1 AS SIGNED ) col2 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL CAST ( - col1 AS INTEGER ) col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - 19 + - cor0.col1 AS col1 FROM tab2 cor0
----
-36
-50
-78
query I rowsort
SELECT - 79 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT 91 * 46 FROM tab2
----
4186
4186
4186
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT 56 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT col2 * col1 * + 20 FROM tab0 AS cor0
----
149240
1940
56760
query I rowsort
SELECT - 88 * col0 AS col0 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT ( + tab0.col1 ) * tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea
onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT - col1 DIV ( + col0 ) AS col1 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-2678
SELECT - col1 / ( + col0 ) AS col1 FROM tab1
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT col0 DIV 72 + - col2 AS col1 FROM tab2
----
-25
-27
-37
skipif mysql # not compatible
query I rowsort label-2679
SELECT col0 / 72 + - col2 AS col1 FROM tab2
----
-25
-27
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 + + col2 col0 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + col2 + 58 col2 FROM tab0 AS cor0
----
7356
850
93
query I rowsort
SELECT + cor0.col2 * - ( - col0 ) - + col0 AS col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2683
SELECT ALL + - cor0.col1 * - CAST( NULL AS SIGNED ) + 1 / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + - cor0.col1 * - CAST ( NULL AS INTEGER ) + 1 / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - 69 * - cor0.col1 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT DISTINCT - 69 + + 38 FROM tab0 AS cor0
----
-31
query I rowsort
SELECT ALL + 70 - - ( col0 ) FROM tab0 AS cor0
----
105
159
94
query I rowsort
SELECT + + col2 * col1 + col0 * + 98 FROM tab2 AS cor0
----
1523
8388
9178
query I rowsort
SELECT - ( 24 ) FROM tab0 AS cor0
----
-24
-24
-24
query I rowsort
SELECT + - 95 + + cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
1130
481
7826
query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + + col1 * - 17 + col2 + 95 FROM tab1 AS cor0
----
-18
-293
-30
query I rowsort
SELECT cor0.col0 * col1 - cor0.col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT ALL ( col2 * 24 ) FROM tab0
----
1968
24
792
query I rowsort
SELECT cor0.col0 * - 55 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4945d570778da02ac40f08af3f2decd6
query I rowsort
SELECT + 45 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab0 AS cor2
----
243 values hashing to 048a82ffa04b0ada9eac019eb4aef6b3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT 44 + col1 DIV 43 col0 FROM tab2
----
44
44
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2697
SELECT 44 + col1 / 43 col0 FROM tab2
----
44
44
45
query I rowsort
SELECT col2 + + ( col2 ) * col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT + col0 - - 50 FROM tab0 AS cor0
----
139
74
85
query I rowsort
SELECT + - col1 * cor0.col1 - + cor0.col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 + col0 FROM tab2 cor0
----
130
155
61
query I rowsort
SELECT - 76 * + cor1.col0 + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 04fc1f50cf9f7624e98f92c701feaca7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2703
SELECT DISTINCT - + col0 + + CAST( - col0 AS SIGNED ) DIV - col1 FROM tab1 AS cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT - + col0 + + CAST ( - col0 AS INTEGER ) / - col1 FROM tab1 AS cor0
----
-3
-58
-74
query I rowsort
SELECT - col2 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 20 * 61 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to e9c84a3f294e03b1ad673fe122caf0ee
query I rowsort
SELECT 72 - col2 FROM tab2
----
34
45
46
query I rowsort
SELECT - 11 * - col2 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT - ( + 82 ) + col2 * + col0 FROM tab2 AS cor0
----
107
1946
2920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2709
SELECT + CAST( + 77 AS SIGNED ) DIV + col0 + 47 AS col0 FROM tab0 AS cor0
----
47
49
50
skipif mysql # not compatible
query I rowsort label-2709
SELECT + CAST ( + 77 AS INTEGER ) / + col0 + 47 AS col0 FROM tab0 AS cor0
----
47
49
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + col1 ) ) + col1 col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + 59 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-177
-3776
-4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col1 col2 FROM tab2 cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ( cor0.col2 ) AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
query I rowsort
SELECT ALL + col0 * col0 * + cor0.col1 + - 72 AS col0 FROM tab0 AS cor0
----
118753
49464
720739
query I rowsort
SELECT cor0.col1 * + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT 60 * + col0 FROM tab0 AS cor0
----
1440
2100
5340
onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT + cor0.col1 DIV + cor0.col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2719
SELECT + cor0.col1 / + cor0.col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + 27 * col2 AS col0 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT - cor0.col0 + col2 * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT DISTINCT + 98 + - col2 + col0 DIV col0 FROM tab2
----
61
72
73
skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT + 98 + - col2 + col0 / col0 FROM tab2
----
61
72
73
query I rowsort
SELECT + - col2 + + col2 * 38 FROM tab1 AS cor0
----
1998
2109
3552
query I rowsort
SELECT DISTINCT + ( col2 ) * - ( + col2 * + col2 ) FROM tab0 AS cor0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-2725
SELECT DISTINCT + cor0.col2 DIV - col2 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + cor0.col2 / - col2 FROM tab0 cor0
----
-1
query I rowsort
SELECT - 78 + col2 FROM tab1 AS cor0
----
-21
-24
18
query I rowsort
SELECT ALL + + col0 * + 69 AS col0 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT ( col0 * col2 ) + + 7 FROM tab1
----
169
3655
7687
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
86
91
97
query I rowsort
SELECT ALL col0 * col0 + - col1 FROM tab2 cor0
----
18
6025
6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-2731
SELECT ALL col2 + 80 DIV - col2 AS col1 FROM tab0 AS cor0
----
-79
31
82
skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL col2 + 80 / - col2 AS col1 FROM tab0 AS cor0
----
-79
31
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 84 col0 FROM tab2 AS cor0
----
84
query I rowsort
SELECT - - 79 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab1 cor1, tab2, tab1 AS cor2, tab0
----
13122 values hashing to cc45aaa9b5f9d153712ef9d71229b95d
query I rowsort
SELECT DISTINCT col0 + + 6 FROM tab2
----
13
84
85
query I rowsort
SELECT DISTINCT - ( col0 ) + + col0 FROM tab0
----
0
query I rowsort
SELECT ALL + 76 * + 23 FROM tab2, tab0, tab1 cor0
----
27 values hashing to fd833e3105827724d3ffc879dbde76ac
query I rowsort
SELECT + - tab0.col2 * + cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to f63103b940e61ec890521f17eeb1cdb0
query I rowsort
SELECT - 74 + - col2 * col0 FROM tab1
----
-236
-3722
-7754
query I rowsort
SELECT col2 * col2 + tab0.col1 AS col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ( col1 * col1 ) + + col2 * + 4 AS col0 FROM tab1
----
328
553
892
query I rowsort
SELECT 3 * + 18 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT DISTINCT tab1.col0 + - col1 + - col1 FROM tab1
----
-49
44
54
query I rowsort
SELECT DISTINCT - 97 + 88 FROM tab0, tab2, tab1 cor0
----
-9
query I rowsort
SELECT col0 - + ( col0 ) AS col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 + + col2 col2 FROM tab0
----
-33
-65
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-2747
SELECT ( - col2 ) DIV col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2747
SELECT ( - col2 ) / col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2748
SELECT ALL - CAST( col0 AS SIGNED ) + + col2 * col2 FROM tab1 AS cor0
----
2913
3185
9136
skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - CAST ( col0 AS INTEGER ) + + col2 * col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT - + 27 * + col2 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT DISTINCT col0 * cor0.col2 + - 44 FROM tab0 AS cor0
----
-9
7254
748
query I rowsort
SELECT ALL + col2 * cor0.col1 + 59 FROM tab1 AS cor0
----
1307
1463
629
query I rowsort
SELECT + - cor0.col0 + col2 * + ( col1 + - 75 ) * col1 AS col1 FROM tab1 AS cor0
----
-37114
-68799
-77456
onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT DISTINCT col0 DIV 24 + col2 AS col0 FROM tab1 AS cor0
----
54
59
99
skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT col0 / 24 + col2 AS col0 FROM tab1 AS cor0
----
54
59
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col0 + - 47 * + col1 col0 FROM tab0 AS cor0
----
-12376
-6106
-7954
query I rowsort
SELECT ALL + col0 * cor0.col0 - + col1 AS col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT + - col1 + + col1 * 21 FROM tab2 AS cor0
----
1180
340
620
query I rowsort
SELECT DISTINCT - + col0 + + col2 * - ( - col2 ) AS col1 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-2758
SELECT DISTINCT - + col0 DIV 14 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-87
-97
-99
skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - + col0 / 14 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-87
-97
-99
query I rowsort
SELECT ALL + + ( 88 ) * col2 FROM tab0 AS cor0
----
2904
7216
88
query I rowsort
SELECT ALL + 27 + + col2 + + col0 FROM tab2 cor0
----
131
144
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col0 FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT ALL - col2 * col1 + ( col1 ) FROM tab2 AS cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * col1 col2 FROM tab2
----
170
310
590
query I rowsort
SELECT + col1 + + cor0.col0 * + col1 * 33 + col1 AS col2 FROM tab2 AS cor0
----
151984
44353
7223
query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col2 FROM tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 75 col2 FROM tab0 cor0
----
75
75
75
query I rowsort
SELECT - cor0.col0 + + 26 FROM tab2 AS cor0
----
-52
-53
19
query I rowsort
SELECT - cor0.col0 * col1 + - ( - col1 ) FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2769
SELECT + tab2.col1 * col0 + + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-2769
SELECT + tab2.col1 * col0 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
1360
248
4661
query I rowsort
SELECT + 61 + + col1 * ( - col2 ) AS col0 FROM tab2
----
-1473
-585
-776
query I rowsort
SELECT - col1 + + col2 + ( + col1 ) * col0 FROM tab1
----
106
1123
687
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2772
SELECT col2 + - CAST( 88 AS SIGNED ) FROM tab1 AS cor0
----
-31
-34
8
skipif mysql # not compatible
query I rowsort label-2772
SELECT col2 + - CAST ( 88 AS INTEGER ) FROM tab1 AS cor0
----
-31
-34
8
query I rowsort
SELECT col1 + + 16 FROM tab0 cor0
----
102
107
113
query I rowsort
SELECT + col2 * + ( cor0.col2 ) + - col2 - ( col1 ) FROM tab1 AS cor0
----
2836
3182
9107
query I rowsort
SELECT DISTINCT - cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
-86
-91
-97
query I rowsort
SELECT ALL + tab1.col2 * + 88 FROM tab1
----
4752
5016
8448
query I rowsort
SELECT 37 - cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 437c9b4772f00496bd4affccd191cad2
query I rowsort
SELECT ALL 16 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT - ( 70 ) * + col0 AS col0 FROM tab2 AS cor0
----
-490
-5460
-5530
query I rowsort
SELECT - col2 * + 82 + + col2 FROM tab0 AS cor0
----
-2673
-6642
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab1, tab2 AS cor0
----
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2782
SELECT ALL CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 85 + 49 * + col1 * - ( col1 ) FROM tab0
----
-362319
-405684
-460956
onlyif mysql # use DIV operator for integer division
query I rowsort label-2784
SELECT col0 * col2 + col1 DIV 34 AS col2 FROM tab2 AS cor0
----
189
2029
3002
skipif mysql # not compatible
query I rowsort label-2784
SELECT col0 * col2 + col1 / 34 AS col2 FROM tab2 AS cor0
----
189
2029
3002
query I rowsort
SELECT ALL - col0 * cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT ALL + - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL + - col1 / col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 col1 FROM tab1 cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT - col0 + - cor0.col1 * - ( + 2 ) + col2 * - 41 AS col0 FROM tab1 AS cor0
----
-2165
-2381
-3990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2790
SELECT - col0 + + col1 * - CAST( NULL AS SIGNED ) / col1 - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2790
SELECT - col0 + + col1 * - CAST ( NULL AS INTEGER ) / col1 - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col2 + - cor0.col2 + + 74 * col0 AS col0 FROM tab1 AS cor0
----
-1856
1031
6
query I rowsort
SELECT + 6 - - col1 AS col0 FROM tab2 AS cor0
----
23
37
65
query I rowsort
SELECT ALL - cor0.col1 + + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT + 61 * - 45 + + col2 FROM tab1 AS cor0
----
-2649
-2688
-2691
query I rowsort
SELECT ALL 49 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT ( - col1 ) * - col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 * col0 FROM tab2 AS cor0
----
-106080
-1488
-358897
onlyif mysql # use DIV operator for integer division
query I rowsort label-2799
SELECT DISTINCT + col2 DIV - col2 col1 FROM tab0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT + col2 / - col2 col1 FROM tab0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2800
SELECT + CAST( - 50 AS SIGNED ) FROM tab2
----
-50
-50
-50
skipif mysql # not compatible
query I rowsort label-2800
SELECT + CAST ( - 50 AS INTEGER ) FROM tab2
----
-50
-50
-50
query I rowsort
SELECT DISTINCT 89 * col1 FROM tab0
----
7654
8099
8633
query I rowsort
SELECT - + ( col1 ) * col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * 9 col1 FROM tab0 AS cor0
----
-639
-639
-639
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2804
SELECT CAST( NULL AS SIGNED ) * - col0 + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2804
SELECT CAST ( NULL AS INTEGER ) * - col0 + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col2 + col0 ) FROM tab2
----
104
117
34
query I rowsort
SELECT + 89 + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8c151964edc1e225624b5ba969b32169
query I rowsort
SELECT ( 25 ) + + col1 * + col0 FROM tab0
----
2089
3420
8124
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + col2 * 38 + col0 col0 FROM tab2 AS cor0
----
-113997
-7175
-76986
query I rowsort
SELECT - 26 + - col2 * ( 6 ) FROM tab1 AS cor0
----
-350
-368
-602
query I rowsort
SELECT + - col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 16 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT ALL 71 + tab1.col0 + ( + col2 ) * col2 AS col2 FROM tab1
----
2990
3384
9367
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2813
SELECT - col2 + CAST( - col2 + - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-162
-171
-288
skipif mysql # not compatible
query I rowsort label-2813
SELECT - col2 + CAST ( - col2 + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-162
-171
-288
query I rowsort
SELECT ALL + col0 + + ( 36 ) * col2 FROM tab1 cor0
----
1947
2116
3536
query I rowsort
SELECT + cor0.col2 + - 68 FROM tab0 AS cor0
----
-35
-67
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2816
SELECT + - col0 * CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2816
SELECT + - col0 * CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2817
SELECT DISTINCT - cor0.col2 DIV col1 + - col0 AS col0 FROM tab1 AS cor0
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT - cor0.col2 / col1 + - col0 AS col0 FROM tab1 AS cor0
----
-5
-69
-87
query I rowsort
SELECT - col0 * - col1 + col0 + - col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + col2 * - tab1.col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2820
SELECT DISTINCT col1 * - col2 + col1 DIV - col2 FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT col1 * - col2 + col1 / - col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col0 - + col1 * + col0 FROM tab1
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col1 + col1 col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + + cor0.col1 + col1 * col1 - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col2 * - col2 * col2 + col2 FROM tab2 AS cor0
----
17602
19710
54910
query I rowsort
SELECT ALL col2 + col1 + col2 * - col2 FROM tab1 AS cor0
----
-2836
-3182
-9107
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 + col1 * - col2 FROM tab1 AS cor0
----
-1056
-1296
-456
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 + + col1 + + col1 AS col2 FROM tab2 AS cor0
----
1478
791
794
query I rowsort
SELECT ALL col1 + + tab1.col2 * + tab1.col0 FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 FROM tab2
----
-1612
-725
-844
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 >= - col1 * + cor0.col2 OR NOT NULL <> - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + - ( - col1 ) + col0 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2832
SELECT ( - col1 ) DIV col0 - col0 AS col0 FROM tab0 AS cor0
----
-27
-37
-90
skipif mysql # not compatible
query I rowsort label-2832
SELECT ( - col1 ) / col0 - col0 AS col0 FROM tab0 AS cor0
----
-27
-37
-90
query I rowsort
SELECT - + col0 + - col2 * - col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab1 cor0
----
24
query I rowsort
SELECT DISTINCT + + col0 + col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - ( - col2 ) * - col2 + - col2 * col2 FROM tab2 AS cor0
----
-1352
-1458
-2888
query I rowsort
SELECT DISTINCT - 33 * col0 - + col0 * col2 AS col0 FROM tab2 AS cor0
----
-420
-4602
-5609
query I rowsort
SELECT col2 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT 17 * - col2 FROM tab1 cor0
----
-1632
-918
-969
query I rowsort
SELECT ALL - + col2 + - cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT 22 * 4 FROM tab0
----
88
query I rowsort
SELECT col0 * - col1 - - col2 * col1 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT ALL + 84 + + col0 AS col1 FROM tab2 AS cor0
----
162
163
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2844
SELECT DISTINCT - - col2 DIV + cor0.col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - - col2 / + cor0.col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT col0 + + col0 * - cor0.col1 * col2 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT tab0.col0 * tab0.col2 + tab0.col1 + col1 * + col1 FROM tab0
----
15670
8274
9541
query I rowsort
SELECT col0 * - col1 + col0 * col0 + col1 AS col0 FROM tab2
----
-137
1541
4915
query I rowsort
SELECT + 96 * col0 * col0 + - 72 + col1 FROM tab1 AS cor0
----
393154
614341
818
query I rowsort
SELECT + 77 * + col0 + col1 * - tab0.col2 + + col0 * - col1 AS col0 FROM tab0
----
-3054
-797
-8708
query I rowsort
SELECT - - col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT + col2 + col0 DIV 61 FROM tab1 AS cor0
----
54
58
97
skipif mysql # not compatible
query I rowsort label-2852
SELECT + col2 + col0 / 61 FROM tab1 AS cor0
----
54
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2853
SELECT - CAST( col2 AS SIGNED ) DIV - col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2853
SELECT - CAST ( col2 AS INTEGER ) / - col0 AS col1 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * col1 col2 FROM tab0
----
6966
7371
7857
query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col0 * col1 * + col2 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - 57 + col1 AS col2 FROM tab0
----
29
34
40
query I rowsort
SELECT ( - col2 * col1 ) AS col0 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT col0 * cor0.col0 DIV ( col0 ) + col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-2859
SELECT col0 * cor0.col0 / ( col0 ) + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col1 * cor0.col0 + col1 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT + col2 * - col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL - 56 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2008
3339
8043
query I rowsort
SELECT DISTINCT + 39 FROM tab2, tab0 AS cor0
----
39
query I rowsort
SELECT col0 * 84 AS col2 FROM tab0
----
2016
2940
7476
query I rowsort
SELECT col0 * ( col2 ) AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + col1 * - col0 + 38 * col2 AS col1 FROM tab0 AS cor0
----
-3357
-4983
-810
query I rowsort
SELECT ALL col1 * - ( col0 ) + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + - col1 + - 38 + col0 AS col2 FROM tab1 AS cor0
----
-61
16
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2869
SELECT DISTINCT - - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col1 + - ( col2 * col0 ) FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT DISTINCT col1 * col2 DIV col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT col1 * col2 / col2 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - 75 + ( cor0.col1 ) + - 41 * - col2 FROM tab1 cor0
----
2165
2272
3874
query I rowsort
SELECT ALL col2 * + 31 AS col2 FROM tab1 AS cor0
----
1674
1767
2976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2874
SELECT - - CAST( NULL AS SIGNED ) + - col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2874
SELECT - - CAST ( NULL AS INTEGER ) + - col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 - + 45 AS col1 FROM tab0
----
-134
-69
-80
query I rowsort
SELECT 74 - ( col2 + 88 ) AS col2 FROM tab2 AS cor0
----
-40
-41
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + col2 - + cor0.col1 col1 FROM tab1 AS cor0
----
115
60
79
query I rowsort
SELECT DISTINCT + ( + ( col1 ) ) * tab1.col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT 91 + + 11 * col1 AS col0 FROM tab0 AS cor0
----
1037
1092
1158
query I rowsort
SELECT 44 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1144
1188
1672
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2881
SELECT + CAST( col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-2881
SELECT + CAST ( col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + 54 * - 46 FROM tab2 AS cor0
----
-2484
-2484
-2484
query I rowsort
SELECT - + 94 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1598
-2914
-5546
query I rowsort
SELECT 98 + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
133
7396
890
query I rowsort
SELECT - col1 * + col0 * col2 - col2 AS col0 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT - cor0.col1 + cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - col0 * ( - col0 + col0 * col0 ) FROM tab1
----
-18
-258048
-505600
query I rowsort
SELECT DISTINCT + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + ( ( - cor0.col1 ) ) * 1 AS col0 FROM tab0, tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col2 * - col2 * + 10 AS col0 FROM tab1 AS cor0
----
-29160
-32490
-92160
query I rowsort
SELECT - + col0 * + col0 * col0 FROM tab1 AS cor0
----
-262144
-27
-512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT - - col0 + 70 DIV + col0 AS col2 FROM tab0 AS cor0
----
26
37
89
skipif mysql # not compatible
query I rowsort label-2892
SELECT - - col0 + 70 / + col0 AS col2 FROM tab0 AS cor0
----
26
37
89
query I rowsort
SELECT cor0.col2 * - ( + 49 ) FROM tab2 AS cor0
----
-1274
-1323
-1862
query I rowsort
SELECT ALL col2 * 69 * + 73 AS col2 FROM tab0
----
166221
413034
5037
query I rowsort
SELECT ALL - 18 + - col2 AS col0 FROM tab1 AS cor0
----
-114
-72
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2896
SELECT - col2 * ( + col0 + - cor0.col1 * - CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-3430
-671416
-68904
skipif mysql # not compatible
query I rowsort label-2896
SELECT - col2 * ( + col0 + - cor0.col1 * - CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-3430
-671416
-68904
query I rowsort
SELECT + - col0 * col0 + - col2 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2898
SELECT + - col2 * + CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2898
SELECT + - col2 * + CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col1 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT col0 DIV col2 + col0 * - col2 FROM tab0 AS cor0
----
-7297
-792
0
skipif mysql # not compatible
query I rowsort label-2900
SELECT col0 / col2 + col0 * - col2 FROM tab0 AS cor0
----
-7297
-792
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * CAST ( - col0 AS REAL ) FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col0 * 30 * - col0 FROM tab2 AS cor0
----
-1470
-182520
-187230
query I rowsort
SELECT ALL 89 - + col0 AS col1 FROM tab0 AS cor0
----
0
54
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2904
SELECT ALL - col2 * ( + col0 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL - col2 * ( + col0 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( + cor0.col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + 32 + ( col1 ) FROM tab1 AS cor0
----
42
45
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 91 col0 FROM tab2
----
12
13
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 13 col0 FROM tab1
----
130
169
338
query I rowsort
SELECT ALL + col0 + - col1 * cor0.col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT - col1 - col2 * - col1 FROM tab1 AS cor0
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - cor0.col1 col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + col2 * col2 * + 83 + + col2 FROM tab2 AS cor0
----
119890
56134
60534
query I rowsort
SELECT 50 * col1 + + 31 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
4978
5409
7183
query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1, tab1 AS cor0
----
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT col2 * - col0 DIV tab1.col0 AS col1 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2915
SELECT col2 * - col0 / tab1.col0 AS col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - ( - 25 ) * - col1 FROM tab2
----
-1475
-425
-775
query I rowsort
SELECT DISTINCT - col0 * + col2 * + tab0.col0 FROM tab0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT - col0 DIV col2 + - 36 AS col0 FROM tab1 AS cor0
----
-36
-36
-37
skipif mysql # not compatible
query I rowsort label-2918
SELECT - col0 / col2 + - 36 AS col0 FROM tab1 AS cor0
----
-36
-36
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-2919
SELECT col2 * + col2 + + col1 DIV + col1 + col1 FROM tab2 AS cor0
----
1462
736
761
skipif mysql # not compatible
query I rowsort label-2919
SELECT col2 * + col2 + + col1 / + col1 + col1 FROM tab2 AS cor0
----
1462
736
761
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 * col2 col0 FROM tab1 AS cor0
----
-3780
-3990
-6720
query I rowsort
SELECT col0 - col1 AS col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - col0 * + col2 + col0 + + 57 AS col1 FROM tab2 AS cor0
----
-125
-1893
-2866
query I rowsort
SELECT ALL + col2 * col2 - ( - col1 * - col0 ) AS col2 FROM tab0
----
-1375
-3394
-975
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 * + col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL + col1 * ( - col1 ) + + cor0.col2 + + ( col2 ) * - cor0.col2 * + cor0.col1 FROM tab2 cor0
----
-23533
-24799
-43339
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2926
SELECT col0 + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-2926
SELECT col0 + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + col1 * col0 + + 97 FROM tab1 cor0
----
1137
175
737
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + 11 * col0 + - cor0.col1 + cor0.col1 AS col1 FROM tab1 cor0
----
33
704
880
query I rowsort
SELECT - 43 + tab0.col2 + + 30 FROM tab0
----
-12
20
69
query I rowsort
SELECT ALL - 23 + col0 AS col1 FROM tab1
----
-20
41
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT ALL + col2 DIV ( + cor0.col2 * col0 ) col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + col2 / ( + cor0.col2 * col0 ) col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2933
SELECT + col1 * CAST( NULL AS DECIMAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2933
SELECT + col1 * CAST ( NULL AS REAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * 68 + + cor0.col0 * - col0 AS col0 FROM tab1 cor0
----
-11840
-213
-8448
query I rowsort
SELECT DISTINCT - col1 + ( + col2 * cor0.col0 ) + + col1 AS col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2936
SELECT DISTINCT col2 + + CAST( col0 AS SIGNED ) + + cor0.col1 * col1 FROM tab0 AS cor0
----
7453
8452
9445
skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT col2 + + CAST ( col0 AS INTEGER ) + + cor0.col1 * col1 FROM tab0 AS cor0
----
7453
8452
9445
query I rowsort
SELECT col0 + cor0.col0 - 97 * col2 AS col2 FROM tab1 AS cor0
----
-5232
-5401
-9152
query I rowsort
SELECT - col1 * - col2 + cor0.col2 + + col1 FROM tab1 AS cor0
----
1357
1484
637
onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT - + col0 + col0 DIV - ( col0 ) FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-2939
SELECT - + col0 + col0 / - ( col0 ) FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 * + col0 FROM tab0 cor0
----
-513
1197
1224
query I rowsort
SELECT DISTINCT + - col2 + - 35 FROM tab0 AS cor0
----
-117
-36
-68
query I rowsort
SELECT DISTINCT col0 + cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab2, tab0 AS cor0
----
-2
query I rowsort
SELECT + col1 * - ( + col0 + ( col1 ) ) FROM tab0 AS cor0
----
-12804
-16380
-9460
query I rowsort
SELECT DISTINCT ( - tab2.col2 ) AS col1 FROM tab2, tab1 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT cor0.col2 + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL col2 * 45 AS col1 FROM tab2 AS cor0
----
1170
1215
1710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * + col0 + col0 col0 FROM tab0 AS cor0
----
26160
598525
70
query I rowsort
SELECT ALL 58 * col2 AS col0 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT ALL - col1 - + col1 * - col1 * col1 FROM tab2 AS cor0
----
205320
29760
4896
query I rowsort
SELECT DISTINCT - col0 * + col1 + - col0 + - col1 AS col2 FROM tab2 cor0
----
-1439
-255
-4739
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2952
SELECT ALL + - CAST( NULL AS SIGNED ) / - col2 + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + - CAST ( NULL AS INTEGER ) / - col2 + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 62 + + col2 FROM tab2 AS cor0
----
100
88
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 35 + - col2 col0 FROM tab2 cor0
----
-272
-2756
-2803
query I rowsort
SELECT ALL col0 + col2 + col0 * col2 * - col1 FROM tab0 AS cor0
----
-3359
-663947
-68055
query I rowsort
SELECT DISTINCT - + col0 * col0 - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL - + 55 + - col0 AS col1 FROM tab0 AS cor0
----
-144
-79
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT DISTINCT - + col1 + col1 * cor0.col2 * 13 - col2 DIV 66 FROM tab2 AS cor0
----
10850
19883
8381
skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - + col1 + col1 * cor0.col2 * 13 - col2 / 66 FROM tab2 AS cor0
----
10850
19883
8381
query I rowsort
SELECT col2 * - col0 + + cor0.col2 * - col0 FROM tab0 cor0
----
-14596
-1584
-70
query I rowsort
SELECT DISTINCT col0 + + col0 + + col0 * col1 AS col0 FROM tab2
----
1501
231
4758
query I rowsort
SELECT col1 * col2 + col2 - col2 AS col1 FROM tab0
----
2838
7462
97
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col1 * - col0 + col2 + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab2.col2 + tab2.col1 col2 FROM tab2 WHERE NOT + col1 * - col0 BETWEEN ( + col2 ) AND + col2
----
1593
663
868
query I rowsort
SELECT + tab1.col0 * + col2 - col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL tab2.col1 + tab2.col1 * - col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE - col0 NOT IN ( col2 )
----
1
33
82
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col0 / col0 AND NULL
----
query I rowsort
SELECT DISTINCT col1 + - col0 + + tab2.col0 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + col1 + col2 + - col1 FROM tab0
----
1
33
82
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col2 * - col0 - col2 * + col1 )
----
query I rowsort
SELECT DISTINCT + col0 + col0 + + tab2.col0 FROM tab2
----
21
234
237
onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT col2 DIV - tab1.col2 + col1 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-2972
SELECT col2 / - tab1.col2 + col1 FROM tab1
----
12
25
9
query I rowsort
SELECT DISTINCT col0 * col0 + col2 + - col2 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * - col2 col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col2 * tab0.col0 + col1 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT + col2 * col0 + - cor0.col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - col2 * - col1 * col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT col0 * - col0 FROM tab0 WHERE - col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT tab1.col0 * tab1.col0 + + col2 FROM tab1
----
4153
63
6496
query III rowsort
SELECT * FROM tab2 WHERE + col0 IN ( - col0 )
----
query I rowsort
SELECT col2 * col2 * - col2 + col1 * col1 FROM tab1
----
-156788
-185093
-884567
query I rowsort
SELECT col1 + + col2 FROM tab2 WHERE col0 <= + col1 + col2
----
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 + col2 col2 FROM tab2
----
1381
244
4628
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <> col2 / - tab1.col1
----
query I rowsort
SELECT DISTINCT col1 * col2 + - col0 AS col2 FROM tab1
----
1168
1401
506
query I rowsort
SELECT ALL + col1 * + col1 + - cor0.col1 * col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2987
SELECT DISTINCT col2 + + col1 * col0 DIV tab0.col2 AS col1 FROM tab0
----
180
3396
95
skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT col2 + + col1 * col0 / tab0.col2 AS col1 FROM tab0
----
180
3396
95
query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL cor0.col1 * cor0.col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-2990
SELECT ALL col2 DIV 67 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL col2 / 67 AS col1 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2991
SELECT col1 - col1 DIV - col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-2991
SELECT col1 - col1 / - col1 FROM tab1
----
11
14
27
query I rowsort
SELECT - ( + 37 ) - col1 * + col2 FROM tab2
----
-1571
-683
-874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2993
SELECT - - CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2993
SELECT - - CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col1 FROM tab2 AS cor0
----
-37
-37
-37
query I rowsort
SELECT - + col1 + - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2996
SELECT DISTINCT - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT ALL - 1 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + 92 + + col2 FROM tab2 AS cor0
----
118
119
130
query I rowsort
SELECT + col1 * ( + col0 ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - - cor0.col2 + - cor0.col0 + + col2 * ( col2 ) FROM tab1 AS cor0
----
2967
3242
9232
onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT + 55 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-3001
SELECT + 55 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
2
4
5
query I rowsort
SELECT - 97 * + col2 + col2 FROM tab1 AS cor0
----
-5184
-5472
-9216
query I rowsort
SELECT DISTINCT col2 + ( - cor0.col1 ) * + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3004
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0 CROSS JOIN tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0 CROSS JOIN tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3005
SELECT DISTINCT - col1 DIV - col1 + - ( + col0 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT - col1 / - col1 + - ( + col0 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1039
-639
-77
query I rowsort
SELECT 90 * col1 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT DISTINCT - col1 + + col1 * col1 AS col1 FROM tab2 cor0
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-3008
SELECT + + 99 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-3008
SELECT + + 99 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3009
SELECT ALL + 49 + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
45
49
49
skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + 49 + col1 / - col0 AS col2 FROM tab2 AS cor0
----
45
49
49
query I rowsort
SELECT DISTINCT col0 * col1 + 30 FROM tab2 cor0
----
1373
247
4632
query I rowsort
SELECT DISTINCT - + col0 * + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT col1 * col0 + + 33 * + col2 FROM tab0 cor0
----
10805
3153
3428
query I rowsort
SELECT ALL - col2 - 39 AS col1 FROM tab2 AS cor0
----
-65
-66
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 79 * col0 col1 FROM tab1 AS cor0
----
323584
505600
711
query I rowsort
SELECT - col0 * + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + ( col2 ) * - col2 - - 84 * col0 * col1 FROM tab1 AS cor0
----
3636
50511
78144
onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT ALL col0 DIV ( col2 ) + - ( 4 ) * cor0.col0 + 43 FROM tab0 AS cor0
----
-312
-53
-62
skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL col0 / ( col2 ) + - ( 4 ) * cor0.col0 + 43 FROM tab0 AS cor0
----
-312
-53
-62
query I rowsort
SELECT DISTINCT - - 77 + col1 - col1 AS col2 FROM tab2 AS cor0
----
77
query I rowsort
SELECT + 66 * + col1 - col0 AS col1 FROM tab0 AS cor0
----
5652
5917
6367
query I rowsort
SELECT ALL + - 6 * - col0 + + col1 AS col1 FROM tab1 AS cor0
----
394
44
493
query I rowsort
SELECT ALL - 80 * - col1 + - col2 + ( - col2 ) FROM tab1 AS cor0
----
1972
686
848
query I rowsort
SELECT - - ( + cor0.col1 ) + col1 * col1 AS col0 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT ALL - col0 + col2 DIV - col0 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - col0 + col2 / - col0 FROM tab1 AS cor0
----
-21
-64
-81
query I rowsort
SELECT ALL col0 * ( col2 * + cor0.col1 ) + - col1 FROM tab0 cor0
----
3298
664027
68026
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + cor0.col0 col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - 22 + col1 AS col2 FROM tab1 AS cor0
----
-12
-9
4
query I rowsort
SELECT ALL - + col1 * col1 * - col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - + col1 * - col0 * col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-3029
SELECT + CAST( ( col1 ) AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3029
SELECT + CAST ( ( col1 ) AS INTEGER ) / col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - - 20 FROM tab2 AS cor0
----
20
query I rowsort
SELECT DISTINCT + 86 + col0 FROM tab0 AS cor0
----
110
121
175
query I rowsort
SELECT DISTINCT - 90 + col2 AS col1 FROM tab2 AS cor0
----
-52
-63
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col2 FROM tab0 AS cor0
----
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT - 5 DIV + 13 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-3034
SELECT - 5 / + 13 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * tab1.col1 - - tab1.col0 * - col0 FROM tab1
----
-3456
-5360
69
query I rowsort
SELECT - 85 - + col0 FROM tab1 AS cor0
----
-149
-165
-88
query I rowsort
SELECT DISTINCT + col1 - - 25 * col0 FROM tab0
----
2316
686
972
query I rowsort
SELECT col1 * 31 * col0 + - col0 FROM tab2
----
142584
41554
6720
query I rowsort
SELECT ALL + 68 + tab0.col0 FROM tab0
----
103
157
92
query I rowsort
SELECT DISTINCT - - 11 FROM tab2, tab1, tab0 AS cor0
----
11
query I rowsort
SELECT ALL col2 * col2 + 46 + - col1 * col1 FROM tab2
----
-186
-2759
1201
query I rowsort
SELECT ALL col1 + - col2 * col2 AS col1 FROM tab0
----
-1003
-6633
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 47 col1 FROM tab2 AS cor0
----
125
126
54
query I rowsort
SELECT - col0 * ( col1 ) FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT col2 + - ( - col1 ) * - col0 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL 97 * 38 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1ca58cb5fb9064303fb52d94b59a1eac
onlyif mysql # use DIV operator for integer division
query I rowsort label-3047
SELECT - col1 DIV col2 + col1 AS col1 FROM tab0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-3047
SELECT - col1 / col2 + col1 AS col1 FROM tab0
----
0
84
90
query I rowsort
SELECT ALL 50 + + tab2.col0 FROM tab2
----
128
129
57
query I rowsort
SELECT ALL tab0.col1 * col0 + col0 AS col2 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ( + col2 ) + - col0 AS col2 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT - col0 DIV 45 + - col1 AS col2 FROM tab2 AS cor0
----
-18
-31
-60
skipif mysql # not compatible
query I rowsort label-3051
SELECT - col0 / 45 + - col1 AS col2 FROM tab2 AS cor0
----
-18
-31
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3052
SELECT - - col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3052
SELECT - - col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * col2 col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL - col1 * ( 78 ) FROM tab0 AS cor0
----
-6708
-7098
-7566
onlyif mysql # use DIV operator for integer division
query I rowsort label-3055
SELECT DISTINCT col0 DIV - cor0.col2 AS col2 FROM tab1 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT col0 / - cor0.col2 AS col2 FROM tab1 cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 30 col2 FROM tab0 cor0
----
119
54
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3057
SELECT col0 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3057
SELECT col0 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * 47 AS col1 FROM tab2 cor0
----
1457
2773
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3059
SELECT DISTINCT - cor0.col2 + CAST( 86 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1424
2639
5048
skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT - cor0.col2 + CAST ( 86 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1424
2639
5048
query I rowsort
SELECT ALL - ( + col2 * col1 ) AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - - col0 * col1 + 23 AS col0 FROM tab2 AS cor0
----
1366
240
4625
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + cor0.col0 * + col1 col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - - col0 + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - - ( + col1 ) + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + cor0.col1 * + col0 - 26 AS col1 FROM tab2 AS cor0
----
1317
191
4576
query I rowsort
SELECT col2 - - col0 * + 66 FROM tab2 AS cor0
----
489
5174
5252
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3068
SELECT DISTINCT CAST( - cor1.col0 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT CAST ( - cor1.col0 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT - - col2 + col2 * - 56 FROM tab2 AS cor0
----
-1430
-1485
-2090
query I rowsort
SELECT + col2 + 34 AS col0 FROM tab2 AS cor0
----
60
61
72
query I rowsort
SELECT DISTINCT + 45 * col0 FROM tab1
----
135
2880
3600
query I rowsort
SELECT DISTINCT 60 * - col0 AS col2 FROM tab1 AS cor0
----
-180
-3840
-4800
query I rowsort
SELECT - + 47 + - col2 AS col0 FROM tab0 AS cor0
----
-129
-48
-80
query I rowsort
SELECT DISTINCT - ( - col2 ) + + col1 * ( - col0 ) FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT col2 * + cor0.col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + + 60 + col0 FROM tab1 AS cor0
----
124
140
63
query I rowsort
SELECT ALL + 40 * + col1 + col2 AS col2 FROM tab1 AS cor0
----
1094
457
616
query I rowsort
SELECT DISTINCT cor0.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-3079
SELECT ALL - 94 + col1 DIV col0 AS col0 FROM tab0 cor0
----
-91
-92
-93
skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - 94 + col1 / col0 AS col0 FROM tab0 cor0
----
-91
-92
-93
query I rowsort
SELECT DISTINCT - 93 - 59 FROM tab2 cor0
----
-152
query I rowsort
SELECT - col1 + + 88 FROM tab1 AS cor0
----
62
75
78
query I rowsort
SELECT col1 * tab0.col0 * - 97 AS col1 FROM tab0
----
-200208
-329315
-785603
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3083
SELECT ALL + col0 + CAST( col0 + - col0 AS SIGNED ) * tab1.col1 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL + col0 + CAST ( col0 + - col0 AS INTEGER ) * tab1.col1 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT col1 * 91 + - col1 AS col1 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT + ( - 33 ) AS col1 FROM tab0 AS cor0
----
-33
-33
-33
query I rowsort
SELECT col0 + cor0.col1 * + col2 * 33 AS col1 FROM tab0 AS cor0
----
246335
3236
93678
onlyif mysql # use DIV operator for integer division
query I rowsort label-3087
SELECT ALL - cor0.col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - cor0.col2 / + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + cor0.col1 * col2 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col2 * - col1 * col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - 73 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT ALL col2 * 89 FROM tab2
----
2314
2403
3382
query I rowsort
SELECT DISTINCT 4 * col1 AS col0 FROM tab2
----
124
236
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 99 col2 FROM tab0 AS cor0
----
-99
query I rowsort
SELECT ALL - - 25 + - col0 * + ( 4 ) FROM tab0 AS cor0
----
-115
-331
-71
query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3097
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - cor0.col2 * col1 * - col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL - - 77 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 + col0 col2 FROM tab0
----
104
158
93
query I rowsort
SELECT - 64 * - 45 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0d1ccfb52c0d769cb7224ff3b9ad3f66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col0 FROM tab0
----
39
39
39
query I rowsort
SELECT ALL col2 * - 1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + + 24 * cor0.col0 AS col1 FROM tab0 cor0
----
2136
576
840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3105
SELECT + - col0 * CAST( + col1 AS SIGNED ) + col2 + col1 FROM tab1 AS cor0
----
-573
-931
2
skipif mysql # not compatible
query I rowsort label-3105
SELECT + - col0 * CAST ( + col1 AS INTEGER ) + col2 + col1 FROM tab1 AS cor0
----
-573
-931
2
query I rowsort
SELECT col2 * 80 AS col1 FROM tab1
----
4320
4560
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT ALL + ( - col2 ) * - col0 DIV + col0 + col0 DIV col1 col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL + ( - col2 ) * - col0 / + col0 + col0 / col1 col2 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3108
SELECT ALL col2 + - col2 DIV - col1 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL col2 + - col2 / - col1 FROM tab1
----
103
56
62
query I rowsort
SELECT DISTINCT col1 * - col2 * + col1 AS col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT 47 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT ALL - col2 DIV ( 25 ) + + col2 * col0 + + ( + col1 ) * + col2 AS col0 FROM tab0
----
132
14757
3629
skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL - col2 / ( 25 ) + + col2 * col0 + + ( + col1 ) * + col2 AS col0 FROM tab0
----
132
14757
3629
query I rowsort
SELECT ALL + col1 - - tab2.col2 AS col1 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col1 FROM tab0, tab0 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL + - col2 * - 84 + 42 + - col1 AS col1 FROM tab2 AS cor0
----
2167
2279
3217
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 34 col0 FROM tab1 cor0
----
21
24
8
query I rowsort
SELECT - - cor0.col2 - col0 * + col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - 77 * col1 * col0 + + col1 FROM tab1
----
-49270
-5980
-80067
query I rowsort
SELECT + 1 * col2 + - col0 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL - ( - tab0.col0 + - col2 ) FROM tab0
----
171
36
57
query I rowsort
SELECT - 59 * + col0 AS col0 FROM tab0 AS cor0
----
-1416
-2065
-5251
query I rowsort
SELECT ALL + + 58 * cor0.col2 - ( col2 ) * col0 FROM tab1 AS cor0
----
-2112
-342
2970
query I rowsort
SELECT ALL + col1 * - col2 - ( col1 ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3123
SELECT ALL - ( tab1.col1 + col0 * CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - ( tab1.col1 + col0 * CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * col0 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * cor0.col2 - + 90 * col0 col2 FROM tab2 cor0
----
-5590
-5980
450
query I rowsort
SELECT DISTINCT - + 16 + col1 FROM tab1 AS cor0
----
-3
-6
10
query I rowsort
SELECT + 76 + cor0.col1 * ( 81 ) AS col0 FROM tab0 cor0
----
7042
7447
7933
query I rowsort
SELECT ALL ( col2 ) * ( + ( col1 ) ) AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL 33 AS col2 FROM tab2
----
33
33
33
query I rowsort
SELECT DISTINCT + - 92 + col0 FROM tab2 AS cor0
----
-13
-14
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3131
SELECT + ( col0 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3131
SELECT + ( col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 + col2 col0 FROM tab2 AS cor0
----
-48
-59
-60
query I rowsort
SELECT - cor0.col0 + ( - col2 ) * col0 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3134
SELECT DISTINCT + col0 + - CAST( - col1 AS SIGNED ) + col2 * + 73 FROM tab1 AS cor0
----
3971
4235
7101
skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + col0 + - CAST ( - col1 AS INTEGER ) + col2 * + 73 FROM tab1 AS cor0
----
3971
4235
7101
query I rowsort
SELECT DISTINCT + - col2 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - - col1 - - 70 AS col2 FROM tab0 AS cor0
----
156
161
167
query I rowsort
SELECT DISTINCT + col0 + 42 AS col2 FROM tab0 AS cor0
----
131
66
77
query I rowsort
SELECT ALL + - col1 + + ( col2 + col2 ) * col0 FROM tab0 AS cor0
----
-27
14505
1498
query I rowsort
SELECT + col1 + - col1 + col0 * - 9 * 80 AS col0 FROM tab1 AS cor0
----
-2160
-46080
-57600
query I rowsort
SELECT ALL + ( - col2 ) * - col2 + col2 + col0 AS col0 FROM tab0 AS cor0
----
1146
37
6895
query I rowsort
SELECT - + ( 56 ) + col0 + + col2 * - col1 AS col2 FROM tab2 cor0
----
-1512
-623
-886
query I rowsort
SELECT 26 * 78 FROM tab0 AS cor0
----
2028
2028
2028
query I rowsort
SELECT ALL + ( 93 ) * col1 * - col0 FROM tab0 AS cor0
----
-191952
-315735
-753207
query I rowsort
SELECT + col1 + + col0 * + col2 + + col1 FROM tab2 AS cor0
----
2146
251
3036
query I rowsort
SELECT ALL 77 * + 57 AS col1 FROM tab1 AS cor0
----
4389
4389
4389
query I rowsort
SELECT ALL ( col1 ) * - col0 * - col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL 27 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1507
-619
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-3148
SELECT - 15 + + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-14
-14
-14
skipif mysql # not compatible
query I rowsort label-3148
SELECT - 15 + + col0 / col0 AS col2 FROM tab1 AS cor0
----
-14
-14
-14
query I rowsort
SELECT - col1 + 30 + col0 AS col2 FROM tab2 cor0
----
49
6
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col1 * + ( 35 ) FROM tab2
----
1085
2065
595
query I rowsort
SELECT - + ( - cor0.col2 ) + + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + 4 + col2 FROM tab0 AS cor0
----
37
5
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3154
SELECT 24 DIV + col0 + col1 * 73 + - 51 FROM tab2 AS cor0
----
1190
2215
4256
skipif mysql # not compatible
query I rowsort label-3154
SELECT 24 / + col0 + col1 * 73 + - 51 FROM tab2 AS cor0
----
1190
2215
4256
query I rowsort
SELECT DISTINCT - - 69 FROM tab1 AS cor0
----
69
query I rowsort
SELECT DISTINCT - col1 * col2 * col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL col2 + col1 + col2 AS col2 FROM tab0
----
152
255
99
query I rowsort
SELECT ALL col1 * col2 * + col1 + col0 + 6 AS col0 FROM tab2
----
11067
25960
90590
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 * col1 + + tab1.col0 col1 FROM tab1
----
234
301
445
query I rowsort
SELECT + ( + col0 ) - + col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL col0 + col0 * + col0 * ( + tab0.col0 * - col0 ) + 11 FROM tab0
----
-1500579
-331741
-62742141
query I rowsort
SELECT ALL - col1 * + col1 * - col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + - col1 * 23 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT ALL 3 * 52 FROM tab0, tab2 AS cor0
----
9 values hashing to 4de85b31fd319b557570fc53828d1dd3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 + - 19 * col0 col2 FROM tab1
----
-1280
-1600
-60
query I rowsort
SELECT DISTINCT - col2 * col1 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3167
SELECT ALL col2 * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * cor0.col2 + + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - + 68 AS col0 FROM tab1 AS cor0
----
-68
-68
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - - col2 * col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
157464
185193
884736
onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT 62 DIV ( - col1 ) FROM tab2 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3172
SELECT 62 / ( - col1 ) FROM tab2 cor0
----
-1
-2
-3
query I rowsort
SELECT ALL + - col2 * - col0 - 47 AS col2 FROM tab1 AS cor0
----
115
3601
7633
query I rowsort
SELECT DISTINCT 72 * col2 AS col2 FROM tab0 cor0
----
2376
5904
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3175
SELECT - ( col2 + CAST( - col2 AS SIGNED ) ) * col0 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3175
SELECT - ( col2 + CAST ( - col2 AS INTEGER ) ) * col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 39 + col2 AS col1 FROM tab1 AS cor0
----
135
93
96
query I rowsort
SELECT col2 * cor0.col0 + col2 * col0 AS col1 FROM tab2 AS cor0
----
378
4056
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT - + col0 - - col2 DIV col1 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-3178
SELECT - + col0 - - col2 / col1 FROM tab1 AS cor0
----
-1
-59
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 + col2 * + col1 col1 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT ALL + 33 + - cor0.col2 FROM tab1 AS cor0
----
-21
-24
-63
query I rowsort
SELECT + col2 * col2 + + col1 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT ( col0 ) + ( 74 ) FROM tab0
----
109
163
98
query I rowsort
SELECT col0 + col2 * - col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT col1 + + col2 + - cor0.col0 FROM tab2 AS cor0
----
-24
51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3185
SELECT + col0 * - CAST( + col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif mysql # not compatible
query I rowsort label-3185
SELECT + col0 * - CAST ( + col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 16 * - 9 col1 FROM tab2 cor0
----
1008
11232
11376
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + col1 * ( + col1 ) + - col2 * - col2 AS col0 FROM tab2 cor0
----
1690
1733
4157
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3189
SELECT + + col1 * + CAST( NULL AS SIGNED ) + 48 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3189
SELECT + + col1 * + CAST ( NULL AS INTEGER ) + 48 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + cor0.col0 * - 18 AS col0 FROM tab0 AS cor0
----
-1511
-346
-533
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3191
SELECT + col0 * + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3191
SELECT + col0 * + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT ALL + - 73 * 76 + - col1 DIV col2 FROM tab1 AS cor0
----
-5548
-5548
-5548
skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + - 73 * 76 + - col1 / col2 FROM tab1 AS cor0
----
-5548
-5548
-5548
query I rowsort
SELECT ALL - col1 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL + col1 * 95 + + cor0.col2 FROM tab1 AS cor0
----
1007
1331
2524
query I rowsort
SELECT DISTINCT cor1.col0 * + cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3196
SELECT col0 * + 92 * ( - col1 + CAST( - col2 AS SIGNED ) ) AS col1 FROM tab1
----
-22080
-394496
-802240
skipif mysql # not compatible
query I rowsort label-3196
SELECT col0 * + 92 * ( - col1 + CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab1
----
-22080
-394496
-802240
query I rowsort
SELECT DISTINCT - + 15 AS col1 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
-15
query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT cor0.col1 + + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3200
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - + ( + cor0.col1 ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3202
SELECT + 56 DIV + col2 AS col1 FROM tab0
----
0
1
56
skipif mysql # not compatible
query I rowsort label-3202
SELECT + 56 / + col2 AS col1 FROM tab0
----
0
1
56
query I rowsort
SELECT DISTINCT 72 * - cor0.col2 AS col1 FROM tab2, tab0, tab0 cor0
----
-2376
-5904
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT + 5 DIV col2 AS col0 FROM tab0
----
0
0
5
skipif mysql # not compatible
query I rowsort label-3204
SELECT + 5 / col2 AS col0 FROM tab0
----
0
0
5
query I rowsort
SELECT DISTINCT col2 - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - col1 * - col1 * 25 FROM tab2 cor0
----
24025
7225
87025
onlyif mysql # use DIV operator for integer division
query I rowsort label-3207
SELECT ALL + 86 DIV - col1 FROM tab2 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + 86 / - col1 FROM tab2 AS cor0
----
-1
-2
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col2 FROM tab1 AS cor0
----
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + col2 col2 FROM tab1 AS cor0
----
132
90
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 + + col0 + + cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort
SELECT ALL + ( + col1 ) - - CAST ( + 69 + cor0.col0 AS REAL ) AS col0 FROM tab1 AS cor0
----
143
162
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT ALL + 59 * col2 * + col1 + cor0.col1 DIV col1 AS col2 FROM tab0 cor0
----
167443
440259
5724
skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + 59 * col2 * + col1 + cor0.col1 / col1 AS col2 FROM tab0 cor0
----
167443
440259
5724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * + col0 + col1 col1 FROM tab0 AS cor0
----
2030
2932
7300
query I rowsort
SELECT DISTINCT + - 10 AS col1 FROM tab2 AS cor0
----
-10
query I rowsort
SELECT ALL - ( + col0 ) * col1 + cor0.col0 + col1 FROM tab1 AS cor0
----
-49
-566
-947
query I rowsort
SELECT DISTINCT 69 FROM tab2, tab0 cor0
----
69
query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab1, tab2, tab1 AS cor0
----
96
query I rowsort
SELECT ALL tab1.col1 + tab1.col0 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + col2 * col0 + + col1 + cor0.col0 FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT ALL - + col1 + + col1 + 75 FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT ALL ( - ( - col2 ) ) FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( - col1 ) * tab0.col0 + - 63 col1 FROM tab0
----
-2094
-3457
-8080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 + col1 col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + 38 + + col0 * - col2 AS col2 FROM tab0
----
-7260
-754
3
query I rowsort
SELECT - ( + col0 ) + + col2 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - 48 + + 10 FROM tab2
----
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT CAST( 65 AS SIGNED ) + col2 FROM tab0
----
147
66
98
skipif mysql # not compatible
query I rowsort label-3227
SELECT CAST ( 65 AS INTEGER ) + col2 FROM tab0
----
147
66
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3228
SELECT DISTINCT - 89 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-89
skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT - 89 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + 8 * col0 * col2 AS col0 FROM tab0 AS cor0
----
280
58384
6336
query I rowsort
SELECT + - cor0.col0 + 99 AS col0 FROM tab0 AS cor0
----
10
64
75
query I rowsort
SELECT ALL + 64 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3233
SELECT 36 + ( + col2 ) DIV + 38 AS col1 FROM tab0 AS cor0
----
36
36
38
skipif mysql # not compatible
query I rowsort label-3233
SELECT 36 + ( + col2 ) / + 38 AS col1 FROM tab0 AS cor0
----
36
36
38
query I rowsort
SELECT ALL + col2 + 18 AS col1 FROM tab0
----
100
19
51
query I rowsort
SELECT 49 + + col0 * - ( - col0 * - col0 ) FROM tab2 cor0
----
-294
-474503
-492990
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT ALL 53 * - col0 FROM tab2
----
-371
-4134
-4187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col0 col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3239
SELECT - ( - col2 ) * CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-3239
SELECT - ( - col2 ) * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 12 * - col0 AS col1 FROM tab0
----
-1068
-288
-420
query I rowsort
SELECT ALL + 7 + + col0 * col2 FROM tab2 cor0
----
196
2035
3009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3242
SELECT col2 + + CAST( + 44 AS SIGNED ) FROM tab2
----
70
71
82
skipif mysql # not compatible
query I rowsort label-3242
SELECT col2 + + CAST ( + 44 AS INTEGER ) FROM tab2
----
70
71
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3243
SELECT DISTINCT - col2 + + CAST( - col2 AS SIGNED ) FROM tab0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT - col2 + + CAST ( - col2 AS INTEGER ) FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL col1 + ( - col2 ) * - col1 FROM tab1
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + tab2.col2 col2 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 27 col0 FROM tab0
----
109
28
60
query I rowsort
SELECT DISTINCT + col1 * col2 + - col0 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
-3009
-680
651
query I rowsort
SELECT ALL - - col2 * + col2 * + col0 + - col1 AS col0 FROM tab1 AS cor0
----
207926
737267
8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT ALL + + col1 + + col1 DIV cor0.col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + + col1 + + col1 / cor0.col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT DISTINCT + - col2 * + col0 - ( + col1 ) FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL - + col0 - + cor0.col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL - col0 + + col2 + col1 * + col2 FROM tab1 AS cor0
----
1264
1455
563
query I rowsort
SELECT ALL ( + col1 ) + - cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 34 col2 FROM tab2 AS cor0
----
-4
7
8
query I rowsort
SELECT DISTINCT - - 92 * 33 * + col1 FROM tab0 AS cor0
----
261096
276276
294492
query I rowsort
SELECT - + col1 * + ( cor0.col1 ) + + col1 FROM tab2 AS cor0
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 20 col0 FROM tab2 AS cor0
----
-20
-20
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 * + col0 col2 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT - col0 * + col2 + + col2 * + col1 FROM tab2 AS cor0
----
-2356
-494
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-3260
SELECT + ( + col1 ) + col0 DIV col1 FROM tab1 cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-3260
SELECT + ( + col1 ) + col0 / col1 FROM tab1 cor0
----
16
19
26
query I rowsort
SELECT 37 + 44 FROM tab0 AS cor0
----
81
81
81
query I rowsort
SELECT DISTINCT - - col2 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT ALL + col1 + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL - ( - 47 ) + col2 * col0 FROM tab1 AS cor0
----
209
3695
7727
query I rowsort
SELECT - col2 * - ( - col0 ) * + col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + col2 * col2 + 96 - col1 * ( 64 ) AS col0 FROM tab2
----
-1159
-3004
452
query I rowsort
SELECT - 79 * + col1 + col0 * + 14 FROM tab0 AS cor0
----
-5943
-6458
-7173
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3268
SELECT - CAST( NULL AS SIGNED ) * - col1 - + col1 * 31 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3268
SELECT - CAST ( NULL AS INTEGER ) * - col1 - + col1 * 31 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3269
SELECT DISTINCT - col2 - + CAST( + col2 AS SIGNED ) FROM tab2
----
-52
-54
-76
skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT - col2 - + CAST ( + col2 AS INTEGER ) FROM tab2
----
-52
-54
-76
query I rowsort
SELECT col2 + 91 AS col2 FROM tab2
----
117
118
129
query I rowsort
SELECT col1 * col1 + - col1 AS col1 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT - col1 * cor0.col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT col1 * col2 + col0 * tab0.col0 AS col1 FROM tab0
----
1322
15383
3414
query I rowsort
SELECT col1 * - col2 * - tab2.col1 + + col2 * col2 * tab2.col0 AS col0 FROM tab2
----
125058
143234
31050
query I rowsort
SELECT DISTINCT - tab2.col1 + + tab2.col2 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT col2 - col2 DIV tab1.col1 AS col2 FROM tab1
----
52
52
89
skipif mysql # not compatible
query I rowsort label-3276
SELECT col2 - col2 / tab1.col1 AS col2 FROM tab1
----
52
52
89
query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3278
SELECT ALL - col1 DIV + col1 + - tab0.col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - col1 / + col1 + - tab0.col2 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT + tab0.col1 + - col0 AS col2 FROM tab0 WHERE NULL BETWEEN col1 AND col1 * + col0 / col2 - col0
----
query I rowsort
SELECT col0 * col2 - - col2 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL + tab0.col0 * col0 + - col1 FROM tab0
----
1128
490
7830
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col0
----
query I rowsort
SELECT DISTINCT - col2 * col2 + tab0.col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT ALL - col1 * + col0 * col0 AS col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT col1 * col2 + - col0 AS col0 FROM tab1
----
1168
1401
506
query I rowsort
SELECT col1 FROM tab0 WHERE ( col0 ) NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + col1 * - col2 * - cor0.col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT col0 + col2 + - col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT col0 + + col2 * cor0.col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-61
1027
6722
query I rowsort
SELECT + - col2 - - col0 FROM tab0 cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col1 FROM tab0, tab2, tab0 AS cor0, tab1
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT DISTINCT + col2 DIV tab1.col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT + col2 / tab1.col1 AS col2 FROM tab1
----
2
5
7
query I rowsort
SELECT DISTINCT + col2 * + col1 * - col0 AS col1 FROM tab2
----
-119652
-51034
-5859
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT + 87 DIV cor0.col0 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-3296
SELECT + 87 / cor0.col0 FROM tab0 AS cor0
----
0
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT + + col1 + + col2 DIV 73 AS col1 FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3297
SELECT + + col1 + + col2 / 73 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT 25 * + col1 + + col0 AS col0 FROM tab0
----
2174
2364
2460
query I rowsort
SELECT + - col0 + - cor0.col0 * + cor0.col2 + - col1 AS col2 FROM tab0 cor0
----
-167
-7478
-902
query I rowsort
SELECT + cor0.col0 * + cor0.col0 + + col0 * - col1 * + col1 + - col1 FROM tab2 AS cor0
----
-16607
-265493
-6709
query I rowsort
SELECT - col2 + ( col2 ) * cor0.col0 * + col1 - col1 FROM tab2 AS cor0
----
119567
50979
5801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + 86 col0 FROM tab0 AS cor0
----
-3
51
62
query I rowsort
SELECT - col2 + + 72 * + col0 FROM tab0 AS cor0
----
1695
2519
6326
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3304
SELECT DISTINCT - col1 + - CAST( + 68 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-154
-159
-165
skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - col1 + - CAST ( + 68 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-154
-159
-165
query I rowsort
SELECT + col0 * + 90 FROM tab2 AS cor0
----
630
7020
7110
query I rowsort
SELECT ALL col1 + - ( + 86 ) * + col1 FROM tab0 AS cor0
----
-7310
-7735
-8245
query I rowsort
SELECT ALL + col0 + + col1 * ( - col1 + - 10 ) AS col0 FROM tab0 AS cor0
----
-10344
-8232
-9102
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-3309
SELECT DISTINCT - tab0.col1 DIV col0 + col2 FROM tab0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - tab0.col1 / col0 + col2 FROM tab0
----
-1
30
81
query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE col1 IN ( col1 * col1 - col0 * col2 )
----
query I rowsort
SELECT DISTINCT - col1 / col1 + col0 FROM tab1 WHERE NOT tab1.col2 NOT BETWEEN ( NULL ) AND col2 / col1 - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col1 * - col0 FROM tab2 WHERE ( NULL ) NOT IN ( + col2 + - col1 * + col1 * col1 )
----
query I rowsort
SELECT DISTINCT - tab1.col1 + - col0 AS col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT ALL tab1.col2 + - tab1.col1 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT col2 + - col1 FROM tab2 WHERE NOT ( NULL ) < col2 - - col0 * col0 * col1
----
query I rowsort
SELECT DISTINCT - ( col2 ) + + ( ( col2 ) ) * col1 AS col1 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT DISTINCT + col0 DIV ( col0 + col1 ) col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT + col0 / ( col0 + col1 ) col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col0 + - 27 + col1 * col0 FROM tab0 cor0
----
2061
3403
8161
query I rowsort
SELECT ALL - col1 + + 71 + - col2 * col2 * - ( col0 + col0 ) FROM tab2 AS cor0
----
10246
105468
228206
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - - col0 col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + + col1 * - col2 + col0 * - col1 FROM tab0 AS cor0
----
-15561
-3492
-4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-3323
SELECT ALL - col0 * 65 DIV - 37 + + col0 AS col1 FROM tab1 AS cor0
----
176
220
8
skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - col0 * 65 / - 37 + + col0 AS col1 FROM tab1 AS cor0
----
176
220
8
query I rowsort
SELECT ALL - col2 + col2 - 85 * + col1 FROM tab1 AS cor0
----
-1105
-2210
-850
query I rowsort
SELECT DISTINCT col2 + 34 FROM tab1 AS cor0
----
130
88
91
query I rowsort
SELECT DISTINCT col2 * - col1 + + cor0.col2 * + col0 FROM tab2 AS cor0
----
-648
2356
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-3327
SELECT ALL - - 84 + + col2 DIV + cor0.col1 FROM tab1 AS cor0
----
86
89
91
skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL - - 84 + + col2 / + cor0.col1 FROM tab1 AS cor0
----
86
89
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3328
SELECT DISTINCT - 5 DIV + 21 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT - 5 / + 21 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - cor0.col2 * col1 * col0 col0 FROM tab1 AS cor0
----
-36544
-4215
-99920
query I rowsort
SELECT + cor1.col0 * 82 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ba7fd9220d18585c4689c4dd07c2f6fe
query I rowsort
SELECT ALL + 82 * col1 FROM tab1 AS cor0
----
1066
2132
820
query I rowsort
SELECT + 54 - col0 FROM tab0 AS cor0
----
-35
19
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3333
SELECT DISTINCT + + col1 + - cor0.col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + + col1 + - cor0.col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL - + 40 AS col2 FROM tab0 AS cor0
----
-40
-40
-40
query I rowsort
SELECT 38 * - col2 * 94 FROM tab0 AS cor0
----
-117876
-292904
-3572
query I rowsort
SELECT + 24 - col0 FROM tab0 AS cor0
----
-11
-65
0
query I rowsort
SELECT DISTINCT - + col2 + col0 * 43 FROM tab2 cor0
----
274
3328
3359
query I rowsort
SELECT 53 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT + 49 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-7249
-743
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 59 col1 FROM tab0 AS cor0
----
-1947
-4838
-59
query I rowsort
SELECT ALL - cor0.col0 + + col0 * - 44 FROM tab2 AS cor0
----
-315
-3510
-3555
query I rowsort
SELECT - tab0.col0 + - 31 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to da0a1a0e605d7e81f3dccc670655938a
query I rowsort
SELECT ALL col1 * tab1.col1 + - ( - tab1.col0 ) * - tab1.col0 * ( col1 + col2 ) AS col0 FROM tab1
----
-274332
-44
-697431
onlyif mysql # use DIV operator for integer division
query I rowsort label-3344
SELECT ALL col2 - col1 DIV ( col2 ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL col2 - col1 / ( col2 ) FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT + col2 - - 62 DIV + col2 AS col1 FROM tab0 AS cor0
----
34
63
82
skipif mysql # not compatible
query I rowsort label-3345
SELECT + col2 - - 62 / + col2 AS col1 FROM tab0 AS cor0
----
34
63
82
query I rowsort
SELECT col0 * col0 + + col1 AS col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT ALL + 69 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT col0 * 63 AS col2 FROM tab0
----
1512
2205
5607
query I rowsort
SELECT DISTINCT - col2 * + col2 * col0 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT tab2.col2 + + col0 + col1 FROM tab2
----
134
163
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3351
SELECT col0 * - CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3351
SELECT col0 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT ALL col0 * col1 DIV + ( + cor0.col1 ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL col0 * col1 / + ( + cor0.col1 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + cor0.col2 * 26 AS col0 FROM tab0 AS cor0
----
2132
26
858
query I rowsort
SELECT + col1 * col1 * - 54 AS col0 FROM tab0
----
-399384
-447174
-508086
query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) * col1 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1945
-3297
-7926
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 95 AS REAL ) AS col0 FROM tab2
----
-95
-95
-95
query I rowsort
SELECT - col2 + + ( - col2 + col1 ) AS col0 FROM tab0
----
-73
20
95
query I rowsort
SELECT 21 + col1 FROM tab2
----
38
52
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT ALL + ( ( col2 ) ) DIV - ( col2 ) FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + ( ( col2 ) ) / - ( col2 ) FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 + + col1 col2 FROM tab1
----
21
5
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT col2 DIV + col2 + col1 * col0 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-3361
SELECT col2 / + col2 + col1 * col0 FROM tab0
----
2065
3396
8100
query I rowsort
SELECT + + 62 AS col0 FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT col0 + col1 * col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 * - col1 + col2 * 30 col1 FROM tab2 cor0
----
2109
2577
4143
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - col1 col2 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT - 58 * - col1 AS col0 FROM tab0 AS cor0
----
4988
5278
5626
onlyif mysql # use DIV operator for integer division
query I rowsort label-3367
SELECT DISTINCT col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3368
SELECT 76 + + cor0.col0 DIV + col1 FROM tab2 AS cor0
----
76
77
80
skipif mysql # not compatible
query I rowsort label-3368
SELECT 76 + + cor0.col0 / + col1 FROM tab2 AS cor0
----
76
77
80
query I rowsort
SELECT DISTINCT + + 92 * col1 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT ALL col0 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT - 19 * + col0 + col0 FROM tab2 AS cor0
----
-126
-1404
-1422
query I rowsort
SELECT ALL + col2 + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT + - col1 + 26 AS col0 FROM tab2 cor0
----
-33
-5
9
query I rowsort
SELECT ALL - + 75 - - 50 FROM tab0 AS cor0
----
-25
-25
-25
query I rowsort
SELECT + - col0 + col2 * + col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ( - cor0.col0 ) * - cor0.col2 - - ( col1 * cor0.col2 ) FROM tab2 AS cor0
----
1026
3562
3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 + + ( - cor0.col2 ) * - cor0.col0 col0 FROM tab1 AS cor0
----
3561
75
7593
onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT ALL + ( - col1 ) * - col1 * col1 + - 78 DIV + tab1.col0 col2 FROM tab1
----
17550
2197
999
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + ( - col1 ) * - col1 * col1 + - 78 / + tab1.col0 col2 FROM tab1
----
17550
2197
999
query I rowsort
SELECT DISTINCT ( ( - col0 ) ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 87 * col0 AS col2 FROM tab0
----
2088
3045
7743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 59 col0 FROM tab1 AS cor0
----
-69
-72
-85
query I rowsort
SELECT - - col0 * 39 AS col2 FROM tab0 AS cor0
----
1365
3471
936
onlyif mysql # use DIV operator for integer division
query I rowsort label-3383
SELECT ALL col0 DIV tab0.col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL col0 / tab0.col2 FROM tab0
----
0
1
35
query I rowsort
SELECT col2 * col0 * col0 + col0 FROM tab0
----
1260
19032
649611
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e
query I rowsort
SELECT + 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
243 values hashing to 6437ca8040a6463bd67a07092ce5ffb6
query I rowsort
SELECT - 21 + + cor1.col1 * 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cc0dd8fc63a8c22d7a72d975f2ddbb6e
query I rowsort
SELECT ALL - col2 * ( - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3389
SELECT DISTINCT + - col2 + CAST( NULL AS SIGNED ) * + 80 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT + - col2 + CAST ( NULL AS INTEGER ) * + 80 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - col1 * 83 + + ( + col0 ) - + 95 FROM tab1 AS cor0
----
-1094
-2250
-861
query I rowsort
SELECT DISTINCT col0 * - 62 FROM tab2
----
-434
-4836
-4898
query I rowsort
SELECT ALL + col2 * 41 AS col0 FROM tab2 AS cor0
----
1066
1107
1558
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( 32 AS REAL ) * col0 AS col0 FROM tab2 AS cor0
----
-224
-2496
-2528
query I rowsort
SELECT ALL - + 78 * col1 FROM tab1 AS cor0
----
-1014
-2028
-780
query I rowsort
SELECT ALL 76 AS col1 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT - tab2.col0 - + col0 * tab2.col2 * - col1 AS col0 FROM tab2
----
119574
50955
5852
query I rowsort
SELECT - col2 * + ( - 66 ) - + col2 AS col2 FROM tab2
----
1690
1755
2470
query I rowsort
SELECT ( col1 ) + + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT - + 88 * - col0 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT - - 89 + + 94 * col0 FROM tab2 AS cor0
----
7421
747
7515
query I rowsort
SELECT ALL ( col0 ) * + col2 FROM tab0 cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT DISTINCT - col1 DIV 84 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT - col1 / 84 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3403
SELECT - ( - col0 ) + - col1 * CAST( NULL AS SIGNED ) / 9 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3403
SELECT - ( - col0 ) + - col1 * CAST ( NULL AS INTEGER ) / 9 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * - col0 + 73 FROM tab1 AS cor0
----
-3575
-7607
-89
query I rowsort
SELECT + + ( col1 ) * - ( col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT - col0 * - col2 + - col0 DIV - 44 AS col2 FROM tab2 AS cor0
----
189
2029
3003
skipif mysql # not compatible
query I rowsort label-3406
SELECT - col0 * - col2 + - col0 / - 44 AS col2 FROM tab2 AS cor0
----
189
2029
3003
query I rowsort
SELECT + cor0.col2 * - 74 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT ALL - cor0.col1 * 30 FROM tab2, tab2 AS cor0
----
9 values hashing to 444e87c0ff22be40825ef4f7f48b9eb8
query I rowsort
SELECT col1 * + ( - col2 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - cor0.col2 * - 54 + - col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
1437
1462
2031
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3411
SELECT ALL CAST( - col0 AS SIGNED ) + col2 + 61 FROM tab0
----
27
54
70
skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL CAST ( - col0 AS INTEGER ) + col2 + 61 FROM tab0
----
27
54
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT + + col1 DIV - cor0.col2 + col0 - 26 AS col0 FROM tab0 AS cor0
----
-4
-88
62
skipif mysql # not compatible
query I rowsort label-3412
SELECT + + col1 / - cor0.col2 + col0 - 26 AS col0 FROM tab0 AS cor0
----
-4
-88
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT + 53 - + col2 DIV - col2 FROM tab0
----
54
54
54
skipif mysql # not compatible
query I rowsort label-3413
SELECT + 53 - + col2 / - col2 FROM tab0
----
54
54
54
query I rowsort
SELECT col0 + 63 + col0 FROM tab1
----
191
223
69
query I rowsort
SELECT ALL 69 - 77 * col2 FROM tab1
----
-4089
-4320
-7323
query I rowsort
SELECT ALL - ( - ( + col1 ) ) + - ( col2 + - tab0.col2 ) AS col0 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 + col2 col1 FROM tab1
----
106
64
67
query I rowsort
SELECT ALL + 45 AS col2 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT ALL - col1 + + tab1.col0 * col2 FROM tab1
----
136
3638
7667
query I rowsort
SELECT col0 * tab0.col2 + 16 FROM tab0
----
51
7314
808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) * - ( + col1 ) + - cor0.col2 + + col1 col1 FROM tab1 AS cor0
----
50
593
957
query I rowsort
SELECT 99 + cor0.col0 FROM tab0 AS cor0
----
123
134
188
query I rowsort
SELECT ALL + col0 * + col2 * + 67 AS col0 FROM tab1 AS cor0
----
10854
244416
514560
query I rowsort
SELECT ALL - + 60 * + col1 FROM tab1 cor0
----
-1560
-600
-780
onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT DISTINCT col2 + + col1 DIV - col0 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT col2 + + col1 / - col0 FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT DISTINCT + col1 + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3427
SELECT + col2 * + cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3427
SELECT + col2 * + cor0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + col0 * + col2 * - col0 FROM tab0 AS cor0
----
-1190
-18984
-649433
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + - 79 AS col0 FROM tab1 AS cor0
----
-79
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3431
SELECT ALL - 65 DIV - col2 + 54 * - col1 col1 FROM tab0 AS cor0
----
-4643
-4914
-5173
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - 65 / - col2 + 54 * - col1 col1 FROM tab0 AS cor0
----
-4643
-4914
-5173
query I rowsort
SELECT - 87 FROM tab1, tab1 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
onlyif mysql # use DIV operator for integer division
query I rowsort label-3433
SELECT - col1 DIV ( col2 ) + + col0 FROM tab0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-3433
SELECT - col1 / ( col2 ) + + col0 FROM tab0
----
-62
22
88
query I rowsort
SELECT ALL + - cor0.col2 * - col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3435
SELECT DISTINCT cor0.col0 * CAST( NULL AS SIGNED ) * - 15 - - col1 / - cor0.col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT cor0.col0 * CAST ( NULL AS INTEGER ) * - 15 - - col1 / - cor0.col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - - col2 * 13 AS col2 FROM tab2 AS cor0
----
338
351
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-3437
SELECT col2 + col0 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3437
SELECT col2 + col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + + col2 + ( + col0 ) * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT col1 * - col2 * 12 AS col1 FROM tab1 AS cor0
----
-14976
-16848
-6840
query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 + - 30 AS col1 FROM tab2 AS cor0
----
-1474
-706
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-3441
SELECT DISTINCT - - col0 DIV - 15 - col1 AS col2 FROM tab1 AS cor0
----
-14
-18
-26
skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT - - col0 / - 15 - col1 AS col2 FROM tab1 AS cor0
----
-14
-18
-26
query I rowsort
SELECT + + 85 * col2 + - col0 - cor0.col2 AS col2 FROM tab1 AS cor0
----
4533
4724
7984
query I rowsort
SELECT cor0.col2 * cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to aeb56f097f17f262600266df7fcf8652
query I rowsort
SELECT - col0 - - ( col1 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT 59 - - col1 FROM tab0 cor0
----
145
150
156
query I rowsort
SELECT ALL col0 * - 55 * tab2.col1 FROM tab2
----
-11935
-253110
-73865
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3447
SELECT ALL + CAST( + col0 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL + CAST ( + col0 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - - col0 + col1 * col1 AS col2 FROM tab0 cor0
----
7420
8370
9444
query I rowsort
SELECT ALL - + col2 + 35 FROM tab2 AS cor0
----
-3
8
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3450
SELECT + + CAST( 25 AS SIGNED ) col2 FROM tab1 AS cor0
----
25
25
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3450
SELECT + + CAST ( 25 AS INTEGER ) col2 FROM tab1 AS cor0
----
25
25
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT DISTINCT + - col0 * col2 DIV - col1 + col1 * ( + col2 * + col0 ) col1 FROM tab1 AS cor0
----
100430
36844
4218
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + - col0 * col2 / - col1 + col1 * ( + col2 * + col0 ) col1 FROM tab1 AS cor0
----
100430
36844
4218
query I rowsort
SELECT ALL + - ( cor0.col1 ) * + col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3453
SELECT DISTINCT 99 + + 64 * col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT 99 + + 64 * col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + - col1 + + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + - 48 + 27 * - col1 AS col0 FROM tab2 AS cor0
----
-1641
-507
-885
query I rowsort
SELECT + 59 * + col0 FROM tab1 AS cor0
----
177
3776
4720
query I rowsort
SELECT col1 * - col1 - - col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 + + col1 col1 FROM tab0
----
154
159
165
query I rowsort
SELECT + col2 * col1 + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + col1 * ( - 45 ) + - col0 FROM tab1 AS cor0
----
-1173
-514
-665
onlyif mysql # use DIV operator for integer division
query I rowsort label-3461
SELECT DISTINCT + col1 DIV - 91 AS col2 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT + col1 / - 91 AS col2 FROM tab0 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT ALL + cor0.col1 DIV col1 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4095
-6399
-8
skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + cor0.col1 / col1 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4095
-6399
-8
query I rowsort
SELECT - 75 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
query I rowsort
SELECT 26 + cor1.col2 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 0db21395ed659647d3d18a5f447e7ece
query I rowsort
SELECT col0 + - col2 * col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT + 28 - + 46 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
query I rowsort
SELECT col2 * - col1 - + col0 AS col2 FROM tab1
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT col2 + col1 * 75 DIV col2 FROM tab1
----
106
70
90
skipif mysql # not compatible
query I rowsort label-3468
SELECT col2 + col1 * 75 / col2 FROM tab1
----
106
70
90
query I rowsort
SELECT col1 * col2 + - col1 AS col1 FROM tab2
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3470
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3470
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT cor0.col2 * + 5 AS col1 FROM tab0 AS cor0
----
165
410
5
query I rowsort
SELECT - col2 * 9 AS col0 FROM tab2 cor0
----
-234
-243
-342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3473
SELECT + + CAST( NULL AS SIGNED ) / + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3473
SELECT + + CAST ( NULL AS INTEGER ) / + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
70
query I rowsort
SELECT ALL - 58 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT ALL - col1 - 13 FROM tab0
----
-104
-110
-99
query I rowsort
SELECT col0 + col2 + col0 * + col2 AS col0 FROM tab1
----
219
3769
7856
query I rowsort
SELECT col1 * - tab1.col2 - 31 FROM tab1
----
-1279
-1435
-601
query I rowsort
SELECT ALL cor2.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8
query I rowsort
SELECT - + col0 + 98 * + col2 AS col2 FROM tab1 AS cor0
----
5289
5522
9328
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3481
SELECT DISTINCT CAST( NULL AS SIGNED ) + + cor0.col2 col0 FROM tab0, tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + cor0.col2 col0 FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT cor0.col0 * - cor0.col2 + 77 FROM tab0, tab1 AS cor0
----
9 values hashing to 0acbc7a4b6b59e4ef1d83fd4af38bf58
query I rowsort
SELECT DISTINCT - + ( - 85 ) FROM tab0 AS cor0
----
85
query I rowsort
SELECT ( - 5 ) AS col1 FROM tab2
----
-5
-5
-5
query I rowsort
SELECT DISTINCT - ( 2 ) AS col1 FROM tab0
----
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3486
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3486
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 14 + + col1 * col2 FROM tab1
----
1262
1418
584
query I rowsort
SELECT ALL + cor0.col0 + - col0 * - col0 * - col2 FROM tab2 AS cor0
----
-1316
-158106
-237079
query I rowsort
SELECT - 8 * col2 FROM tab2 AS cor0
----
-208
-216
-304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 93 col0 FROM tab2 AS cor0
----
-93
-93
-93
query I rowsort
SELECT ALL - 89 * col2 AS col2 FROM tab1 cor0
----
-4806
-5073
-8544
query I rowsort
SELECT ALL - 0 AS col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3493
SELECT + col2 * CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3493
SELECT + col2 * CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3494
SELECT ALL - col2 + + 96 DIV - 40 AS col2 FROM tab0 AS cor0
----
-3
-35
-84
skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - col2 + + 96 / - 40 AS col2 FROM tab0 AS cor0
----
-3
-35
-84
query I rowsort
SELECT ALL - - col2 * 99 FROM tab2 cor0
----
2574
2673
3762
query I rowsort
SELECT DISTINCT + + col1 * ( - col0 ) + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT cor0.col1 + 83 FROM tab1 AS cor0
----
109
93
96
query I rowsort
SELECT ALL + cor0.col1 + col2 * cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
132
26222
598527
query I rowsort
SELECT 18 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT DISTINCT 80 * - col2 * ( col0 ) + + col0 * + col1 FROM tab1
----
-12882
-291200
-613360
query I rowsort
SELECT ALL 50 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT ALL + 69 + - col2 * + tab2.col1 AS col0 FROM tab2
----
-1465
-577
-768
query I rowsort
SELECT 62 + - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-227
-3419
-899
query I rowsort
SELECT 96 * 33 + + col1 FROM tab0 cor0
----
3254
3259
3265
query I rowsort
SELECT DISTINCT + + col1 * + 71 FROM tab2 cor0
----
1207
2201
4189
query I rowsort
SELECT DISTINCT - col1 * ( + col0 ) FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT + - CAST( - 49 AS SIGNED ) DIV + col0 + ( - 19 ) * - col2 + - 62 * ( col0 * + 36 ) FROM tab1 AS cor0
----
-141765
-176736
-5654
skipif mysql # not compatible
query I rowsort label-3507
SELECT + - CAST ( - 49 AS INTEGER ) / + col0 + ( - 19 ) * - col2 + - 62 * ( col0 * + 36 ) FROM tab1 AS cor0
----
-141765
-176736
-5654
onlyif mysql # use DIV operator for integer division
query I rowsort label-3508
SELECT + 63 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
63
63
71
skipif mysql # not compatible
query I rowsort label-3508
SELECT + 63 + col1 / col0 AS col0 FROM tab1 AS cor0
----
63
63
71
query I rowsort
SELECT + + ( + 10 ) AS col2 FROM tab1 cor0
----
10
10
10
query I rowsort
SELECT DISTINCT - 91 * - col0 - cor0.col2 FROM tab1 AS cor0
----
219
5767
7184
query I rowsort
SELECT 92 * col2 - + col2 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT ALL - + 97 + + 87 * - col1 AS col2 FROM tab0 AS cor0
----
-7579
-8014
-8536
query I rowsort
SELECT DISTINCT + - ( + 20 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
-140
-1560
-1580
onlyif mysql # use DIV operator for integer division
query I rowsort label-3514
SELECT DISTINCT col0 DIV - 46 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT col0 / - 46 FROM tab2
----
-1
0
query I rowsort
SELECT tab0.col0 * + col0 * - col0 FROM tab0
----
-13824
-42875
-704969
onlyif mysql # use DIV operator for integer division
query I rowsort label-3516
SELECT col2 DIV - 27 AS col1 FROM tab1
----
-2
-2
-3
skipif mysql # not compatible
query I rowsort label-3516
SELECT col2 / - 27 AS col1 FROM tab1
----
-2
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( + col2 ) col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col1 * - 69 AS col2 FROM tab0
----
-5934
-6279
-6693
query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
23
query I rowsort
SELECT DISTINCT col1 + 15 FROM tab1
----
25
28
41
query I rowsort
SELECT + ( 85 ) + col2 + col1 FROM tab2
----
140
143
170
query I rowsort
SELECT ALL 89 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT - col1 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col2 * - ( + col2 * + cor0.col1 ) - col0 FROM tab2 AS cor0
----
-22606
-24627
-39962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3525
SELECT + 50 * - cor0.col0 + + col2 * + CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3525
SELECT + 50 * - cor0.col0 + + col2 * + 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-3526
SELECT + CAST( NULL AS SIGNED ) * col1 + col1 + col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3526
SELECT + CAST ( NULL AS INTEGER ) * col1 + col1 + col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * - 64 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT DISTINCT + col1 - - 14 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1133
68
906
query I rowsort
SELECT ALL + + col1 * 38 AS col2 FROM tab0 AS cor0
----
3268
3458
3686
query I rowsort
SELECT ALL + col1 * ( - ( + cor0.col0 ) * - col0 ) AS col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - col0 * - col1 + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT + 42 + + col1 AS col0 FROM tab1
----
52
55
68
query I rowsort
SELECT ALL + col1 * + col2 * + 26 FROM tab0
----
194012
2522
73788
query I rowsort
SELECT col2 + - col1 - col0 FROM tab1
----
-17
25
3
query I rowsort
SELECT + tab1.col1 * + 59 * col1 AS col0 FROM tab1
----
39884
5900
9971
onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT ALL col2 DIV ( col2 * - col2 ) - col1 AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL col2 / ( col2 * - col2 ) - col1 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col2 + 20 AS col1 FROM tab0
----
102
21
53
skipif mysql # not compatible
query I rowsort
SELECT col0 * + CAST ( col1 AS REAL ) + + col2 * col2 + col0 / col1 AS col0 FROM tab1
----
10262
2994
3895
query I rowsort
SELECT - + col0 * + 97 + + col2 * col0 FROM tab1 AS cor0
----
-129
-2560
-80
query I rowsort
SELECT ALL + col1 + cor0.col0 AS col2 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL - - col1 * + cor0.col2 + 92 AS col0 FROM tab1 AS cor0
----
1340
1496
662
query I rowsort
SELECT DISTINCT col1 * - col2 * col0 + col2 + col2 FROM tab0
----
-3393
-663954
-68046
query I rowsort
SELECT + + col1 * - 22 + + 28 FROM tab2 cor0
----
-1270
-346
-654
query I rowsort
SELECT + - col0 - col1 * - col0 * + col2 AS col0 FROM tab0 AS cor0
----
3360
664029
68088
query I rowsort
SELECT DISTINCT - - col0 * - 88 FROM tab1 AS cor0
----
-264
-5632
-7040
query I rowsort
SELECT DISTINCT - 79 + - col1 AS col0 FROM tab1
----
-105
-89
-92
query I rowsort
SELECT ( col1 ) * col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - tab2.col1 + ( col1 ) AS col1 FROM tab2
----
0
query I rowsort
SELECT ALL - 73 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT + col1 + 8 FROM tab0 cor0
----
105
94
99
query I rowsort
SELECT DISTINCT - 60 + col0 AS col1 FROM tab0 AS cor0
----
-25
-36
29
query I rowsort
SELECT + - cor0.col0 * col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - 12 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT ALL ( col2 ) * + 85 FROM tab0 AS cor0
----
2805
6970
85
query I rowsort
SELECT ALL + 40 * - col0 * cor0.col0 FROM tab0 AS cor0
----
-23040
-316840
-49000
query I rowsort
SELECT DISTINCT - + col0 * + col0 * 12 + + col2 FROM tab2 AS cor0
----
-561
-72982
-74854
onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT 64 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3557
SELECT 64 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 56 * cor0.col0 AS col1 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * + col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + col1 + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT - - col1 + - col2 * col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL ( + col0 ) + cor0.col1 * - col1 * - col0 FROM tab1 AS cor0
----
13600
2031
6464
onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT DISTINCT - 20 * + col2 + col2 * col0 DIV - col0 - + col1 FROM tab2 AS cor0
----
-598
-605
-815
skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT - 20 * + col2 + col2 * col0 / - col0 - + col1 FROM tab2 AS cor0
----
-598
-605
-815
query I rowsort
SELECT ALL - col1 * col2 + + col0 * - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-14849
-167
-3654
query I rowsort
SELECT col0 + col0 * col0 * col0 AS col2 FROM tab0 cor0
----
13848
42910
705058
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col2 FROM tab2 cor0
----
-22
-6058
-6203
query I rowsort
SELECT + 7 + 93 FROM tab0 cor0
----
100
100
100
onlyif mysql # use DIV operator for integer division
query I rowsort label-3569
SELECT ALL + + CAST( col0 AS SIGNED ) - + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + + CAST ( col0 AS INTEGER ) - + col0 / col0 AS col2 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT DISTINCT + col0 + col2 * cor0.col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + 50 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT DISTINCT + 78 * 77 + + col0 FROM tab0 AS cor0
----
6030
6041
6095
query I rowsort
SELECT + ( - cor0.col0 ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col0 * col0 - col2 * col0 AS col2 FROM tab0 AS cor0
----
-1260
-1368
-15219
query I rowsort
SELECT ALL 21 * + 95 FROM tab1 AS cor0
----
1995
1995
1995
query I rowsort
SELECT col2 - - col0 * col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT + 94 * ( cor0.col0 ) FROM tab2 AS cor0
----
658
7332
7426
query I rowsort
SELECT ALL - - 14 + + col1 * col0 FROM tab0 AS cor0
----
2078
3409
8113
query I rowsort
SELECT - 58 * + col1 AS col2 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT - col1 + col1 * + cor0.col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + tab2.col2 + + ( col1 ) + col0 * + tab2.col2 AS col1 FROM tab2
----
2113
247
3057
query I rowsort
SELECT ( col2 ) * col0 + tab1.col1 * - col0 FROM tab1
----
3008
6640
84
query I rowsort
SELECT cor0.col0 + - cor0.col1 * - col1 AS col0 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT - col1 * - cor0.col2 + cor0.col0 * + cor0.col0 FROM tab1 cor0
----
1413
4666
7648
query I rowsort
SELECT ALL ( 54 * tab2.col1 ) + col2 + col2 AS col2 FROM tab2
----
1728
3238
994
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + + col2 col2 FROM tab2
----
39
40
51
query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab0
----
-47
query I rowsort
SELECT DISTINCT ( col2 ) * col1 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3589
SELECT DISTINCT - CAST( 23 AS SIGNED ) FROM tab0
----
-23
skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT - CAST ( 23 AS INTEGER ) FROM tab0
----
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 30 col2 FROM tab1
----
-34
-50
27
query I rowsort
SELECT DISTINCT + tab2.col2 * + 32 + - col2 AS col2 FROM tab2
----
1178
806
837
query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT - col0 * - 79 AS col2 FROM tab2
----
553
6162
6241
query I rowsort
SELECT - ( col2 ) * - col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT 28 + + col2 * - col0 + - tab2.col2 FROM tab2
----
-188
-2026
-3012
query I rowsort
SELECT 74 * + 49 AS col2 FROM tab2 AS cor0
----
3626
3626
3626
query I rowsort
SELECT - 14 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT col0 * + 42 AS col1 FROM tab1
----
126
2688
3360
query I rowsort
SELECT + 64 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT DISTINCT - col0 * - 9 AS col0 FROM tab2
----
63
702
711
query I rowsort
SELECT - - col2 * + 72 FROM tab1 AS cor0
----
3888
4104
6912
query I rowsort
SELECT - 81 * - cor0.col2 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cca91d34f9210d3c6fb2f754277569f1
query I rowsort
SELECT 79 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to da0116d31b8af0da9f685c090d378baf
query I rowsort
SELECT + col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + - col2 * col0 * - col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - col1 * col0 * col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
37
query I rowsort
SELECT ALL + - col2 * col2 + + col1 - col1 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - - cor0.col1 - cor0.col2 * ( - col1 ) AS col0 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT 0 FROM tab1, tab1 cor0, tab2 AS cor1
----
0
query I rowsort
SELECT - col2 + col2 + ( col0 * + col1 ) FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3612
SELECT 48 DIV col0 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3612
SELECT 48 / col0 FROM tab0
----
0
1
2
query I rowsort
SELECT - col0 * - col1 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 56 * ( + col2 ) col1 FROM tab0 AS cor0
----
-1960
-408688
-44352
query I rowsort
SELECT + col0 + 51 * col0 FROM tab0 AS cor0
----
1248
1820
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col1 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT + + col0 + 15 AS col0 FROM tab1 AS cor0
----
18
79
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT + cor0.col0 + 16 DIV + 37 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3618
SELECT + cor0.col0 + 16 / + 37 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col0 + 14 FROM tab1
----
-50
-66
11
query I rowsort
SELECT + col1 * col0 - + col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL - col1 + + 96 AS col1 FROM tab2
----
37
65
79
query I rowsort
SELECT ALL - tab2.col1 + - tab2.col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL + col1 * col1 + - ( + col2 ) * - ( - col1 ) FROM tab0
----
4558
819
9312
query I rowsort
SELECT + col2 * col1 - 56 FROM tab1 cor0
----
1192
1348
514
query I rowsort
SELECT ALL + col1 * 29 + col1 FROM tab0 AS cor0
----
2580
2730
2910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col2 FROM tab2 AS cor0
----
-11
-11
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 7 AS REAL ) col0 FROM tab0 cor0
----
-7
-7
-7
query I rowsort
SELECT + - ( + col0 ) + - col2 * ( - cor0.col0 ) FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL + col2 + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 * + ( - col0 + col1 * - col2 ) col1 FROM tab0 AS cor0
----
-12769
-246108
-687052
query I rowsort
SELECT DISTINCT ( 78 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
1872
2730
6942
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT 44 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-3633
SELECT 44 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col1 * - col1 col1 FROM tab0 cor0
----
-7482
-8372
-9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-3635
SELECT - 40 DIV + 78 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3635
SELECT - 40 / + 78 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT DISTINCT + 12 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + 12 / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT ALL + - col0 * 8 AS col2 FROM tab1 AS cor0
----
-24
-512
-640
query I rowsort
SELECT cor0.col1 * 78 + - cor0.col1 FROM tab1 AS cor0
----
1001
2002
770
query I rowsort
SELECT DISTINCT - + cor0.col2 - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col2 + - col0 * cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-13791
-42874
-704887
query I rowsort
SELECT 29 * cor0.col0 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT + 55 * cor0.col0 AS col2 FROM tab2 AS cor0
----
385
4290
4345
query I rowsort
SELECT ALL + 23 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT DISTINCT - + col1 + + cor0.col0 * + 55 FROM tab1 AS cor0
----
139
3510
4387
query I rowsort
SELECT ALL + + 92 AS col1 FROM tab0 AS cor0
----
92
92
92
query I rowsort
SELECT + + col2 * - cor0.col0 * ( - 73 ) FROM tab1 AS cor0
----
11826
266304
560640
query I rowsort
SELECT ALL - cor0.col0 * col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - col1 * col1 * - cor0.col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ALL 8 AS col2 FROM tab2
----
8
8
8
query I rowsort
SELECT ALL + + col0 + col1 + + col2 FROM tab1 AS cor0
----
131
189
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3651
SELECT + col2 * + CAST( NULL AS SIGNED ) * col2 + cor0.col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3651
SELECT + col2 * + CAST ( NULL AS INTEGER ) * col2 + cor0.col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3652
SELECT ALL + - col2 + - CAST( 1 AS SIGNED ) FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + - col2 + - CAST ( 1 AS INTEGER ) FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
44
query I rowsort
SELECT ALL + + 36 * col0 + + ( 26 ) FROM tab1 AS cor0
----
134
2330
2906
query I rowsort
SELECT DISTINCT + + ( - col0 ) - - col2 * 67 AS col0 FROM tab2 AS cor0
----
1664
1802
2467
query I rowsort
SELECT col2 * cor0.col1 + - 70 AS col1 FROM tab0 AS cor0
----
27
2768
7392
query I rowsort
SELECT DISTINCT + 61 * cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
1550
2232
5520
query I rowsort
SELECT ALL - + 76 AS col0 FROM tab0 cor0
----
-76
-76
-76
query I rowsort
SELECT - col0 * ( ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - - col2 * - col1 + + col0 * col2 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT ALL + col1 + - 31 * + 62 AS col1 FROM tab2 AS cor0
----
-1863
-1891
-1905
query I rowsort
SELECT col1 * + col2 + col0 AS col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col0 * - ( - col0 ) + col1 - - 63 AS col1 FROM tab0 AS cor0
----
-1065
-18859
-649368
query I rowsort
SELECT - ( + col0 ) + col0 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 83 + cor0.col2 col2 FROM tab2 AS cor0
----
-45
-56
-57
query I rowsort
SELECT - 27 + + col2 AS col0 FROM tab0 AS cor0
----
-26
55
6
query I rowsort
SELECT ALL - + cor0.col2 * + ( - col1 * col2 ) - 49 AS col0 FROM tab2 AS cor0
----
22550
24499
39835
onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT 1 * - col0 + + col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-3668
SELECT 1 * - col0 + + col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-22
-88
62
query I rowsort
SELECT ALL + 54 + - 9 FROM tab0 AS cor0
----
45
45
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 + + ( - col1 ) + cor0.col2 col0 FROM tab2 AS cor0
----
31
60
85
query I rowsort
SELECT - ( + col0 ) * + cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL - - ( + 35 ) * col1 + + col0 FROM tab2 AS cor0
----
1092
2143
674
query I rowsort
SELECT col0 * - col2 * - col0 + 54 FROM tab1 AS cor0
----
233526
540
614454
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( 62 ) + - col1 col0 FROM tab2 AS cor0
----
3
31
45
query I rowsort
SELECT 18 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT col1 * 77 FROM tab0
----
6622
7007
7469
query I rowsort
SELECT ALL + col2 + + col0 - + col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + 87 * + col0 + - col0 FROM tab2 AS cor0
----
602
6708
6794
onlyif mysql # use DIV operator for integer division
query I rowsort label-3679
SELECT + - cor0.col2 * cor0.col2 + + col0 DIV - col1 col0 FROM tab2 cor0
----
-1448
-677
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3679
SELECT + - cor0.col2 * cor0.col2 + + col0 / - col1 col0 FROM tab2 cor0
----
-1448
-677
-729
query I rowsort
SELECT DISTINCT col0 * col2 - - col2 * col2 AS col1 FROM tab0
----
14022
1881
36
query I rowsort
SELECT DISTINCT + + col2 + col1 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + 73 + - ( col2 ) FROM tab1
----
-23
16
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3683
SELECT + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3683
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT DISTINCT - cor0.col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT - cor0.col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT ALL + col0 * - 25 AS col1 FROM tab0 AS cor0
----
-2225
-600
-875
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3686
SELECT CAST( NULL AS SIGNED ) * 77 / col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3686
SELECT CAST ( NULL AS INTEGER ) * 77 / col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col0 ) + + col1 * col1 AS col0 FROM tab1
----
36
673
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3688
SELECT - CAST( NULL AS SIGNED ) * - 31 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3688
SELECT - CAST ( NULL AS INTEGER ) * - 31 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + + col0 * + cor0.col0 + col0 col1 FROM tab1 AS cor0
----
-664
4060
6311
onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT + col2 + col2 DIV + col0 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-3690
SELECT + col2 + col2 / + col0 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT + cor0.col1 * cor0.col0 * 26 FROM tab2 AS cor0
----
119652
34918
5642
query I rowsort
SELECT - col1 + - cor0.col1 AS col1 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col1 + + col1 * + tab1.col1 + - col0 FROM tab1
----
26
647
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3695
SELECT ALL - col2 + CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584
skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL - col2 + CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3696
SELECT DISTINCT + - col0 * - CAST( col0 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT + - col0 * - CAST ( col0 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + - col1 + - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-138
-173
-32
query I rowsort
SELECT DISTINCT - col2 * - 60 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT ALL - 51 AS col1 FROM tab2 AS cor0
----
-51
-51
-51
query I rowsort
SELECT - ( col2 ) - + col2 FROM tab2 AS cor0
----
-52
-54
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) + + col0 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 15 + col1 FROM tab1 AS cor0
----
-2
-5
11
query I rowsort
SELECT + - 47 AS col2 FROM tab2 AS cor0
----
-47
-47
-47
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) FROM tab1, tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col1 + + 16 * - col0 FROM tab1
----
-1014
-1267
-22
query I rowsort
SELECT col0 + + 62 AS col1 FROM tab2 AS cor0
----
140
141
69
query I rowsort
SELECT ALL + cor0.col0 * 32 - ( + col0 ) FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT DISTINCT cor0.col2 - - 95 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT col1 * + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + + col2 - + col0 * cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + col0 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - cor2.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT + col0 DIV + 30 FROM tab2 cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-3713
SELECT + col0 / + 30 FROM tab2 cor0
----
0
2
2
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 + cor0.col2 col1 FROM tab1 AS cor0
----
124
134
205
onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT col1 * col1 + + col2 - + col0 DIV col0 FROM tab2
----
326
3506
987
skipif mysql # not compatible
query I rowsort label-3716
SELECT col1 * col1 + + col2 - + col0 / col0 FROM tab2
----
326
3506
987
query I rowsort
SELECT DISTINCT 52 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
52
query I rowsort
SELECT col1 * col0 * 88 AS col0 FROM tab2 AS cor0
----
118184
19096
404976
query I rowsort
SELECT + tab0.col2 + + col2 * + col1 AS col1 FROM tab0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - 5 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2b5ade85be5319861c59c5f0e150ea0b
query I rowsort
SELECT ALL 56 * + col1 FROM tab2
----
1736
3304
952
query I rowsort
SELECT - 72 * + col2 AS col2 FROM tab0
----
-2376
-5904
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col2 FROM tab2
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3724
SELECT - col0 - col1 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1456
567
830
skipif mysql # not compatible
query I rowsort label-3724
SELECT - col0 - col1 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT 49 * col1 FROM tab1
----
1274
490
637
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3726
SELECT tab2.col2 * col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3726
SELECT tab2.col2 * col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 16 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT col0 - - cor0.col2 AS col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3729
SELECT ALL - + cor0.col0 * + CAST( 3 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-21
-234
-237
skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL - + cor0.col0 * + CAST ( 3 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-21
-234
-237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 * + 17 ) col1 FROM tab1
----
-170
-221
-442
query I rowsort
SELECT - - col2 * - col0 - ( col0 ) FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL + - col1 * 60 + col0 AS col1 FROM tab0 cor0
----
-5136
-5371
-5785
query I rowsort
SELECT - col0 - 66 AS col1 FROM tab1 AS cor0
----
-130
-146
-69
query I rowsort
SELECT + col2 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT col2 * col0 + col2 * - col1 AS col1 FROM tab1 cor0
----
-1242
3078
6432
query I rowsort
SELECT ALL - 8 * col1 AS col2 FROM tab1 AS cor0
----
-104
-208
-80
query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab1 cor0
----
-22
query I rowsort
SELECT + 63 * + col2 FROM tab0 AS cor0
----
2079
5166
63
query I rowsort
SELECT DISTINCT + col1 + col1 * col0 + cor0.col1 FROM tab1 AS cor0
----
1066
130
660
query I rowsort
SELECT + 94 * - col0 FROM tab0 AS cor0
----
-2256
-3290
-8366
query I rowsort
SELECT - col0 + - tab0.col0 * - 26 FROM tab0
----
2225
600
875
query I rowsort
SELECT + 99 FROM tab2, tab2 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - tab2.col2 + - 73 AS col2 FROM tab2
----
-100
-111
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT DISTINCT + col0 + tab2.col0 DIV + 78 + col1 FROM tab2
----
138
38
97
skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT + col0 + tab2.col0 / + 78 + col1 FROM tab2
----
138
38
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT DISTINCT col1 DIV - col0 + + col1 AS col0 FROM tab1
----
10
13
18
skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT col1 / - col0 + + col1 AS col0 FROM tab1
----
10
13
18
query I rowsort
SELECT ALL - cor0.col2 + + col0 * col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + tab2.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT + col0 + col2 DIV + col0 AS col2 FROM tab0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-3749
SELECT + col0 + col2 / + col0 AS col2 FROM tab0
----
25
35
89
query I rowsort
SELECT DISTINCT col2 * 35 + col0 FROM tab0 AS cor0
----
1179
2959
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3751
SELECT col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3751
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3752
SELECT ALL - col0 DIV - col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL - col0 / - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + - col2 * col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - - col0 * ( + col2 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - 50 + col0 * - col2 FROM tab1 AS cor0
----
-212
-3698
-7730
query I rowsort
SELECT DISTINCT - 17 * col0 AS col2 FROM tab2 AS cor0
----
-119
-1326
-1343
query I rowsort
SELECT ALL 7 * col0 AS col1 FROM tab1 cor0
----
21
448
560
query I rowsort
SELECT ALL + col1 * ( col2 ) FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3759
SELECT ALL - CAST( cor0.col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - 59 + + cor0.col1 * col2 FROM tab0 cor0
----
2779
38
7403
query I rowsort
SELECT DISTINCT + - col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - 11 * + col2 FROM tab2 AS cor0
----
-286
-297
-418
query I rowsort
SELECT + cor0.col2 * 41 AS col2 FROM tab1 AS cor0
----
2214
2337
3936
query I rowsort
SELECT ALL + - ( col0 ) * col1 * + ( - 10 ) FROM tab0 AS cor0
----
20640
33950
80990
query I rowsort
SELECT DISTINCT - - 37 FROM tab1 AS cor0
----
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - - 65 * - col2 AS col0 FROM tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT ALL + tab1.col2 * tab1.col0 + - tab1.col1 FROM tab1
----
136
3638
7667
query I rowsort
SELECT DISTINCT - - col0 * col2 + + col1 * col1 FROM tab1 AS cor0
----
3748
7849
838
onlyif mysql # use DIV operator for integer division
query I rowsort label-3770
SELECT + ( + ( + col1 ) ) DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3770
SELECT + ( + ( + col1 ) ) / col2 AS col1 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL 63 + col2 * - 49 FROM tab2 AS cor0
----
-1211
-1260
-1799
query I rowsort
SELECT DISTINCT - col2 * + col0 + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT + col1 * col1 - col2 FROM tab2 cor0
----
251
3455
934
query I rowsort
SELECT ALL + col1 + + col1 * 47 * 38 FROM tab1 AS cor0
----
17870
23231
46462
query I rowsort
SELECT DISTINCT + + 22 * col0 * - 83 FROM tab2 AS cor0
----
-12782
-142428
-144254
query I rowsort
SELECT ALL + 75 * + 54 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to a377895cbc94bb91f96df5ea91610b93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3777
SELECT ALL + + col0 * col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL + + col0 * col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * - col2 - 34 * col1 AS col2 FROM tab2 cor0
----
-217
-472
68
query I rowsort
SELECT ALL + - 20 + col2 AS col2 FROM tab1 AS cor0
----
34
37
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT DISTINCT + + col1 DIV col0 - col0 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT + + col1 / col0 - col0 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT - cor0.col2 * - col0 + - col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT - - 69 + + col0 AS col1 FROM tab0 cor0
----
104
158
93
query I rowsort
SELECT ALL + col2 * col1 + col1 - col0 FROM tab0 AS cor0
----
159
2900
7464
query I rowsort
SELECT DISTINCT + 31 + - 28 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT col0 DIV ( + col0 * col1 + 50 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3785
SELECT col0 / ( + col0 * col1 + 50 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( + col1 ) + tab1.col2 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 32 col1 FROM tab0 cor0
----
-121
-56
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3788
SELECT ALL col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL col1 / - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3789
SELECT DISTINCT + + col1 * CAST( 62 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
1615
684
886
skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + + col1 * CAST ( 62 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
1615
684
886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3790
SELECT - col2 * CAST( NULL AS SIGNED ) + - col0 * col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3790
SELECT - col2 * CAST ( NULL AS INTEGER ) + - col0 * col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col0 + - col0 FROM tab1 cor0
----
4032
6
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3792
SELECT - tab0.col2 DIV + tab0.col1 col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3792
SELECT - tab0.col2 / + tab0.col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + tab1.col0 * col1 + + 87 FROM tab1
----
1127
165
727
query I rowsort
SELECT + - col1 * - 28 AS col0 FROM tab2 cor0
----
1652
476
868
query I rowsort
SELECT - + col2 * - 3 - - col2 FROM tab1 AS cor0
----
216
228
384
query I rowsort
SELECT col0 - col0 * - col2 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT + + col1 + + col0 * - col1 * - 81 FROM tab0 AS cor0
----
167270
275092
656110
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3798
SELECT ALL - + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * 57 + + col1 AS col0 FROM tab2 AS cor0
----
1541
1570
2183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 75 col0 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT col2 - 53 FROM tab2 AS cor0
----
-15
-26
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3802
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3802
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 * + 83 * col1 col2 FROM tab1
----
-35690
-46397
-92794
query I rowsort
SELECT col1 * + col1 * - 51 AS col0 FROM tab2 cor0
----
-14739
-177531
-49011
query I rowsort
SELECT ALL + + 38 + - col1 * - col0 AS col1 FROM tab1 AS cor0
----
1078
116
678
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT DISTINCT ( col0 ) * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT ( col0 ) * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - + 11 * col1 FROM tab1 AS cor0
----
-110
-143
-286
query I rowsort
SELECT + 28 * - ( col2 ) + 7 AS col0 FROM tab0 AS cor0
----
-21
-2289
-917
query I rowsort
SELECT + col2 - + ( col1 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - col2 + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - + 2 + + col1 * cor0.col2 - col0 FROM tab0 cor0
----
2812
60
7371
query I rowsort
SELECT ALL - 9 + + col2 AS col0 FROM tab2 AS cor0
----
17
18
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT ALL + 10 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL + 10 / col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( + col1 + + col0 ) * + ( col0 ) AS col2 FROM tab0
----
16020
2640
4620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3816
SELECT - - col2 * CAST( 24 AS SIGNED ) FROM tab0 cor0
----
1968
24
792
skipif mysql # not compatible
query I rowsort label-3816
SELECT - - col2 * CAST ( 24 AS INTEGER ) FROM tab0 cor0
----
1968
24
792
query I rowsort
SELECT + - col1 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - col2 + - 16 AS col1 FROM tab1
----
-112
-70
-73
query I rowsort
SELECT + + ( - cor0.col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - + col0 * + col0 + cor0.col1 * + 79 FROM tab0 AS cor0
----
-732
6218
6438
query I rowsort
SELECT 78 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL - 64 * col1 - cor0.col2 FROM tab1 AS cor0
----
-1718
-697
-928
query I rowsort
SELECT - ( cor0.col1 ) + col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( cor0.col2 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * + cor0.col2 + - ( col0 ) + col0 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 85 * - 18 AS col2 FROM tab2 AS cor0
----
-1530
-1530
-1530
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3827
SELECT ALL cor0.col1 * col0 * + col1 + - CAST( - 58 AS SIGNED ) FROM tab2 AS cor0
----
22889
271576
6785
skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL cor0.col1 * col0 * + col1 + - CAST ( - 58 AS INTEGER ) FROM tab2 AS cor0
----
22889
271576
6785
query I rowsort
SELECT ALL - col2 + 15 * + 89 FROM tab0
----
1253
1302
1334
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3829
SELECT + col2 - + CAST( + 37 AS SIGNED ) * - col1 FROM tab2
----
1174
2209
667
skipif mysql # not compatible
query I rowsort label-3829
SELECT + col2 - + CAST ( + 37 AS INTEGER ) * - col1 FROM tab2
----
1174
2209
667
query I rowsort
SELECT col1 + + 15 FROM tab0
----
101
106
112
onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT ( col1 ) DIV + col1 + tab0.col1 * - col2 * col1 AS col2 FROM tab0
----
-244067
-679041
-9408
skipif mysql # not compatible
query I rowsort label-3831
SELECT ( col1 ) / + col1 + tab0.col1 * - col2 * col1 AS col2 FROM tab0
----
-244067
-679041
-9408
query I rowsort
SELECT DISTINCT 78 * 23 AS col0 FROM tab1
----
1794
query I rowsort
SELECT + - ( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col2 + - 94 * col0 AS col0 FROM tab0 AS cor0
----
-2223
-3289
-8284
query I rowsort
SELECT - ( - col1 * col1 ) FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3836
SELECT DISTINCT 88 DIV col0 AS col0 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT 88 / col0 AS col0 FROM tab0
----
0
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT + ( + col0 ) * CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-3837
SELECT + ( + col0 ) * CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3838
SELECT DISTINCT col2 * col0 + - CAST( - col1 AS DECIMAL ) + + col2 * - CAST( NULL AS DECIMAL ) / - col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT col2 * col0 + - CAST ( - col1 AS REAL ) + + col2 * - CAST ( NULL AS REAL ) / - col1 FROM tab1
----
NULL
query I rowsort
SELECT ALL - 56 + tab2.col2 + col1 * - col2 FROM tab2
----
-1564
-664
-866
onlyif mysql # use DIV operator for integer division
query I rowsort label-3840
SELECT + cor0.col0 DIV - ( col0 ) + col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-3840
SELECT + cor0.col0 / - ( col0 ) + col0 FROM tab2 AS cor0
----
6
77
78
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 + + cor0.col0 * + col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col2 * - 77 FROM tab0 cor0
----
-2541
-6314
-77
query I rowsort
SELECT ALL + col0 + + col2 * + col2 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-3845
SELECT - col0 * col0 + - 87 DIV col1 AS col0 FROM tab1 AS cor0
----
-12
-4104
-6406
skipif mysql # not compatible
query I rowsort label-3845
SELECT - col0 * col0 + - 87 / col1 AS col0 FROM tab1 AS cor0
----
-12
-4104
-6406
query I rowsort
SELECT DISTINCT col1 + 92 FROM tab1
----
102
105
118
query I rowsort
SELECT 95 * col2 * - 22 + col1 * col0 AS col0 FROM tab0
----
-163281
-66906
1305
query I rowsort
SELECT ALL tab0.col2 * col2 + + col0 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT col0 * - col1 * col0 + - tab2.col0 * col1 FROM tab2
----
-107440
-1736
-363558
query I rowsort
SELECT DISTINCT + + 11 * - col2 FROM tab0 cor0
----
-11
-363
-902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3851
SELECT ALL - 9 + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - 9 + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 79 + - cor0.col0 FROM tab0 AS cor0
----
-10
44
55
query I rowsort
SELECT - col2 - - 26 AS col1 FROM tab0
----
-56
-7
25
query I rowsort
SELECT + 21 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT 84 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT ALL 91 FROM tab2, tab1 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT col0 * col0 * ( - tab1.col2 ) - - col2 AS col2 FROM tab1
----
-233415
-432
-614304
onlyif mysql # use DIV operator for integer division
query I rowsort label-3858
SELECT DISTINCT - col0 DIV - tab0.col2 AS col1 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT - col0 / - tab0.col2 AS col1 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT tab1.col2 * + 42 FROM tab1
----
2268
2394
4032
query I rowsort
SELECT + tab2.col1 + - ( + col1 * + col1 ) FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT ALL + col2 + - ( + cor0.col2 ) FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - 74 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
onlyif mysql # use DIV operator for integer division
query I rowsort label-3863
SELECT DISTINCT col2 * col1 DIV - col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT col2 * col1 / - col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT 66 + 4 FROM tab1 cor0
----
70
70
70
query I rowsort
SELECT ALL - col1 * + 89 AS col1 FROM tab0 cor0
----
-7654
-8099
-8633
query I rowsort
SELECT + ( col2 ) + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - 97 * + col0 * col1 FROM tab1 AS cor0
----
-100880
-62080
-7566
skipif mysql # not compatible
query I rowsort
SELECT + + ( - cor0.col1 ) * - col1 + CAST ( col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * 88 col2 FROM tab0 AS cor0
----
2904
7216
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3870
SELECT col1 DIV 30 AS col1 FROM tab0
----
2
3
3
skipif mysql # not compatible
query I rowsort label-3870
SELECT col1 / 30 AS col1 FROM tab0
----
2
3
3
query I rowsort
SELECT + col0 + ( - cor0.col0 ) * col0 * 96 FROM tab0 AS cor0
----
-117565
-55272
-760327
query I rowsort
SELECT DISTINCT - + col2 * 48 FROM tab2 AS cor0
----
-1248
-1296
-1824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col2 * + col1 col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL + + col1 - 74 * col2 FROM tab1 AS cor0
----
-3970
-4208
-7091
query I rowsort
SELECT + 6 * - cor0.col2 FROM tab1 AS cor0
----
-324
-342
-576
query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab2 cor0
----
-25
query I rowsort
SELECT + - ( cor0.col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - + col2 + ( cor0.col0 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - 19 * + 8 FROM tab2 AS cor0
----
-152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + + col1 col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ( + 54 * col1 + + tab0.col2 ) AS col2 FROM tab0
----
4677
4996
5239
query I rowsort
SELECT ALL - cor0.col1 * cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f79f8a61ba262bc98fabbc6ce3ba7f1a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3883
SELECT - 42 DIV col1 AS col2 FROM tab1 cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-3883
SELECT - 42 / col1 AS col2 FROM tab1 cor0
----
-1
-3
-4
query I rowsort
SELECT + 43 + - col1 AS col0 FROM tab1 cor0
----
17
30
33
query I rowsort
SELECT - - col2 * + col0 * col1 + - col0 * col2 + col1 FROM tab2 AS cor0
----
117683
48049
5701
query I rowsort
SELECT col1 * - col0 - - cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + + col0 col1 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT DISTINCT + ( + col2 + + col1 ) DIV + col1 FROM tab1
----
3
6
8
skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT + ( + col2 + + col1 ) / + col1 FROM tab1
----
3
6
8
query I rowsort
SELECT DISTINCT + 1 * cor0.col0 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + ( - 40 ) FROM tab2
----
-40
-40
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-3891
SELECT - 74 DIV - col2 FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3891
SELECT - 74 / - col2 FROM tab1 cor0
----
0
1
1
query I rowsort
SELECT - + col1 + col1 * - cor0.col1 AS col0 FROM tab1 cor0
----
-110
-182
-702
query I rowsort
SELECT ALL + col1 * 56 + + col2 FROM tab0 AS cor0
----
4849
5178
5433
query I rowsort
SELECT DISTINCT col2 * + ( 32 ) + col1 * - col1 AS col1 FROM tab1 AS cor0
----
1052
1724
2903
query I rowsort
SELECT ALL + col2 + - 84 - + 60 AS col1 FROM tab1 AS cor0
----
-48
-87
-90
query I rowsort
SELECT + + col2 + 55 * - col2 AS col1 FROM tab0 AS cor0
----
-1782
-4428
-54
query I rowsort
SELECT DISTINCT col0 + - 96 * + 95 FROM tab2 AS cor0
----
-9041
-9042
-9113
query I rowsort
SELECT - col2 * col2 + cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT + cor0.col0 * tab1.col2 AS col1 FROM tab1, tab0, tab2 cor0
----
9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8
query I rowsort
SELECT ALL 22 * - col2 + + col0 FROM tab0
----
-1715
-702
13
query I rowsort
SELECT + col2 * ( - ( col2 ) ) + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT col1 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col1 * - 35 AS col0 FROM tab1 AS cor0
----
-350
-455
-910
query I rowsort
SELECT + col2 * ( col0 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col2 + ( - col0 ) * - col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT - cor0.col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + col0 * - 47 AS col1 FROM tab0 AS cor0
----
-1128
-1645
-4183
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 + 4 * col2 AS col1 FROM tab0 cor0
----
-58
326
70
query I rowsort
SELECT - + cor0.col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - tab0.col1 col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col1 * + 48 AS col0 FROM tab0 AS cor0
----
-4128
-4368
-4656
query I rowsort
SELECT ALL - - col2 * 83 * col0 AS col2 FROM tab2 AS cor0
----
15687
168324
249166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3913
SELECT 25 * - cor2.col0 * - CAST( NULL AS SIGNED ) - - 18 FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3
----
729 values hashing to 6e86984f17a5d629029cabbdf3672036
skipif mysql # not compatible
query I rowsort label-3913
SELECT 25 * - cor2.col0 * - CAST ( NULL AS INTEGER ) - - 18 FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3
----
729 values hashing to 6e86984f17a5d629029cabbdf3672036
query I rowsort
SELECT ( + col2 ) * + col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT - + 8 AS col0 FROM tab1 AS cor0
----
-8
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - 20 + col2 * col0 AS col1 FROM tab0 AS cor0
----
15
7278
772
query I rowsort
SELECT + col2 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3919
SELECT - 56 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-3919
SELECT - 56 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-8
0
0
query I rowsort
SELECT - 18 * tab0.col0 FROM tab0, tab0 cor0
----
9 values hashing to dc1ad9fde215ac2511071cb1c96c617a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT DISTINCT + - col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + - col1 / + col1 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT - + col0 + col0 * col2 AS col2 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT ALL + + 88 + col0 AS col0 FROM tab1 AS cor0
----
152
168
91
query I rowsort
SELECT DISTINCT - - ( + col2 ) + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - ( col1 ) + col1 + - 35 * col0 FROM tab1 AS cor0
----
-105
-2240
-2800
query I rowsort
SELECT ALL + + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - - 95 * + col2 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT DISTINCT + + cor0.col0 * + col2 + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT DISTINCT + col1 DIV col2 + - 51 FROM tab0 cor0
----
-49
-50
46
skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT + col1 / col2 + - 51 FROM tab0 cor0
----
-49
-50
46
query I rowsort
SELECT ALL - 22 + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 + 14 AS col1 FROM tab1 AS cor0
----
-1026
-626
-64
query I rowsort
SELECT + - col2 + + col2 * + 43 * + col0 AS col0 FROM tab2 AS cor0
----
129048
8100
87178
query I rowsort
SELECT ALL col2 * - 65 AS col0 FROM tab1 cor0
----
-3510
-3705
-6240
query I rowsort
SELECT ALL - - col1 + + col2 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT col2 + + col2 * 89 FROM tab0 AS cor0
----
2970
7380
90
query I rowsort
SELECT - ( col1 ) * ( col2 ) AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + - col2 + - col1 + - 12 FROM tab1 AS cor0
----
-121
-79
-92
query I rowsort
SELECT DISTINCT - col2 * 28 + col2 FROM tab0 AS cor0
----
-2214
-27
-891
onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT col2 * col0 DIV col1 + - col0 AS col2 FROM tab2
----
-1
-44
97
skipif mysql # not compatible
query I rowsort label-3939
SELECT col2 * col0 / col1 + - col0 AS col2 FROM tab2
----
-1
-44
97
query I rowsort
SELECT ALL ( - col1 ) + cor0.col2 * col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + + ( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + + 32 - 0 AS col0 FROM tab1 AS cor0
----
32
32
32
query I rowsort
SELECT ALL col0 * - col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - 69 * - col0 AS col0 FROM tab1 AS cor0
----
207
4416
5520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 * + 70 col1 FROM tab2 AS cor0
----
-3570
-3570
-3570
query I rowsort
SELECT DISTINCT + cor0.col2 + 64 AS col1 FROM tab1, tab2 AS cor0
----
102
90
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3947
SELECT col0 + + tab2.col1 DIV + col1 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-3947
SELECT col0 + + tab2.col1 / + col1 FROM tab2
----
79
8
80
query I rowsort
SELECT + col0 * 56 + - col0 * - 87 * - 76 FROM tab2
----
-45892
-511368
-517924
query I rowsort
SELECT ALL + ( col0 ) * ( - col0 ) * col1 + - col0 * col2 FROM tab0 AS cor0
----
-118860
-50328
-728109
query I rowsort
SELECT ALL - col1 * - col0 - cor0.col1 AS col1 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + col1 * + 92 + + col2 + - col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
10009
12320
16553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3952
SELECT ALL - cor0.col1 + + col0 * - col1 / CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL - cor0.col1 + + col0 * - col1 / CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( col0 ) * col0 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-1010
-6530
-9565
query I rowsort
SELECT + 38 * cor0.col2 FROM tab2 cor0
----
1026
1444
988
query I rowsort
SELECT DISTINCT + col2 * + col0 + - col1 + + col2 * col0 AS col2 FROM tab0 cor0
----
-27
14505
1498
query I rowsort
SELECT ALL col1 + - 79 FROM tab0 AS cor0
----
12
18
7
query I rowsort
SELECT ALL ( + cor0.col0 ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + - col0 * cor0.col0 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 * - 66 AS col0 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT DISTINCT + 45 + cor0.col1 FROM tab2, tab2 cor0
----
104
62
76
query I rowsort
SELECT ALL + ( - tab2.col1 ) + + col2 AS col0 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT ALL - col1 DIV + tab0.col1 + - col1 FROM tab0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - col1 / + tab0.col1 + - col1 FROM tab0
----
-87
-92
-98
query I rowsort
SELECT + 58 * + col1 * tab2.col1 FROM tab2
----
16762
201898
55738
query I rowsort
SELECT ALL + 73 + 90 FROM tab0
----
163
163
163
onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT ALL + col0 + col2 DIV - col1 AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + col0 + col2 / - col1 AS col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 41 * col0 col2 FROM tab0 AS cor0
----
1070
1532
3740
query I rowsort
SELECT DISTINCT col0 * cor0.col2 + + col2 * - col1 + + cor0.col2 FROM tab0 AS cor0
----
-2013
-61
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 * col0 * col0 + 60 col0 FROM tab0
----
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3969
SELECT DISTINCT 91 + col1 DIV CAST( + col0 + col2 AS SIGNED ) AS col2 FROM tab0
----
91
92
93
skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT 91 + col1 / CAST ( + col0 + col2 AS INTEGER ) AS col2 FROM tab0
----
91
92
93
query I rowsort
SELECT - 43 * col2 + - col1 FROM tab1
----
-2348
-2461
-4141
query I rowsort
SELECT ALL + col1 + tab2.col1 * col1 + col0 * + tab2.col1 AS col2 FROM tab2
----
1209
1649
8142
query I rowsort
SELECT + col1 + - col1 * col0 * tab0.col0 FROM tab0
----
-118728
-49450
-720720
onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT ALL + + col0 + - 46 * col2 DIV col0 FROM tab0 AS cor0
----
-39
34
47
skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + + col0 + - 46 * col2 / col0 FROM tab0 AS cor0
----
-39
34
47
query I rowsort
SELECT + col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col1 + col0 * + col2 AS col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT ALL cor0.col0 * 7 FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT - - col2 * 86 AS col0 FROM tab2 AS cor0
----
2236
2322
3268
query I rowsort
SELECT - col1 * + 3 * 60 FROM tab2 cor0
----
-10620
-3060
-5580
query I rowsort
SELECT DISTINCT - col2 * col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col0 * + ( - ( col1 ) ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col2 * + 64 AS col1 FROM tab2
----
1664
1728
2432
query I rowsort
SELECT + 55 + 41 * + col1 AS col0 FROM tab0 AS cor0
----
3581
3786
4032
query I rowsort
SELECT DISTINCT ( - 84 ) AS col2 FROM tab1
----
-84
query I rowsort
SELECT + + col2 * ( + col1 + - 38 ) * 91 AS col0 FROM tab2 AS cor0
----
-17199
-72618
49686
query I rowsort
SELECT 99 * cor0.col1 AS col0 FROM tab1 cor0
----
1287
2574
990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3987
SELECT + CAST( ( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3987
SELECT + CAST ( ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( col1 AS REAL ) * - col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 40 * + 66 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
18480
205920
208560
query I rowsort
SELECT + 22 + - col1 AS col0 FROM tab0 AS cor0
----
-64
-69
-75
query I rowsort
SELECT DISTINCT - 67 * + cor0.col0 + 91 * + col0 AS col1 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT 68 - col2 FROM tab1 AS cor0
----
-28
11
14
query I rowsort
SELECT ALL + + col0 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT + 32 * cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2728
2823
3069
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3995
SELECT col1 + - col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3995
SELECT col1 + - col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 37 AS col1 FROM tab0 AS cor0
----
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT - col2 * col1 DIV col0 FROM tab2 AS cor0
----
-119
-19
-8
skipif mysql # not compatible
query I rowsort label-3997
SELECT - col2 * col1 / col0 FROM tab2 AS cor0
----
-119
-19
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 93 ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT ALL + col2 DIV + 71 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL + col2 / + 71 AS col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col0 * col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col0 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT + - col1 * - col0 + col2 AS col0 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT - col0 * - col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003
query III rowsort
SELECT * FROM tab2 WHERE col0 > NULL AND ( col2 + col2 * - col1 ) > - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4006
SELECT ALL + col1 DIV col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL + col1 / col2 FROM tab0 cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4007
SELECT DISTINCT - col0 - col0 DIV col2 FROM tab0 AS cor0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - col0 - col0 / col2 FROM tab0 AS cor0
----
-24
-70
-90
query I rowsort
SELECT DISTINCT + col2 * col1 * - col1 FROM tab1 WHERE NOT ( col1 ) NOT IN ( col2 + tab1.col0 )
----
query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + 44 * - col1 * tab1.col2 AS col0 FROM tab1
----
-25080
-54912
-61776
query I rowsort
SELECT ALL 50 * col2 * - tab2.col0 FROM tab2
----
-101400
-150100
-9450
query I rowsort
SELECT DISTINCT - col0 * col0 * + tab2.col0 FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT ALL + col1 * + col2 + tab0.col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL + col1 + - tab2.col2 * - tab2.col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT col0 * + col1 * col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + col0 * + col0 + + col0 FROM tab1
----
12
4160
6480
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 + col2 ) NOT IN ( col0 + col1 )
----
query I rowsort
SELECT ALL col2 + tab2.col0 + - col2 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4019
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-4019
SELECT DISTINCT col2 / + col0 col0 FROM tab0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + tab2.col2 / - col2 + + col2 FROM tab2 WHERE NOT NULL = ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * + col1 * col0 col1 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 * col0 col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col0 * col2 + tab2.col0 + + col1 * col0 AS col2 FROM tab2
----
413
4424
6708
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE tab1.col2 + col1 * col1 + + col0 * + col0 = ( + col0 )
----
query I rowsort
SELECT - col0 * col0 - col1 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT - 4 * - col0 AS col2 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT DISTINCT + col1 + col0 * + ( - 96 ) AS col0 FROM tab1 AS cor0
----
-262
-6134
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT + + 67 * col2 DIV col0 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
36
7359
884
skipif mysql # not compatible
query I rowsort label-4029
SELECT + + 67 * col2 / col0 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
36
7359
884
query I rowsort
SELECT col0 * + col1 * + col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + col1 * col1 + + ( - 64 ) FROM tab1 AS cor0
----
105
36
612
query I rowsort
SELECT DISTINCT cor0.col2 * - col2 * 47 AS col0 FROM tab2 AS cor0
----
-31772
-34263
-67868
query I rowsort
SELECT col1 + - col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND col2 * col1 + - col0
----
query I rowsort
SELECT DISTINCT + col0 * - col0 + col0 FROM tab2
----
-42
-6006
-6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 * col1 col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-4036
SELECT DISTINCT + cor0.col1 - col1 * col0 DIV + col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + cor0.col1 - col1 * col0 / + col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col0 * col1 + + col2 * col1 FROM tab2
----
1054
1989
6136
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE col1 <> col1 + col1
----
3
64
80
query I rowsort
SELECT DISTINCT + col1 * col2 * - col1 + tab2.col0 * col1 AS col0 FROM tab2
----
-25730
-85904
-9639
query I rowsort
SELECT col2 * col0 * tab2.col0 - col1 * - col2 * + col2 FROM tab2
----
198068
23922
261706
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT col2 + + col0 + col0 * + col0 * - col0 AS col2 FROM tab2
----
-309
-474448
-492922
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 = NULL
----
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + cor0.col0 * col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + + 74 * + col1 AS col2 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT DISTINCT 80 + + col1 FROM tab1 AS cor0
----
106
90
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 69 col2 FROM tab2 cor0
----
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT - col2 DIV col2 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4050
SELECT - col2 / col2 AS col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + - 64 * col1 FROM tab1 AS cor0
----
-1664
-640
-832
onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT - col1 + col2 DIV col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-4052
SELECT - col1 + col2 / col1 FROM tab2 AS cor0
----
-15
-31
-59
query I rowsort
SELECT + col0 * + col1 + 74 AS col2 FROM tab0 cor0
----
2138
3469
8173
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4054
SELECT DISTINCT col1 - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT col1 - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab0, tab0 AS cor0
----
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + 47 * cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT - + col2 * 94 FROM tab2 AS cor0
----
-2444
-2538
-3572
onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT + 71 DIV + col1 col1 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4059
SELECT + 71 / + col1 col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - ( - 61 ) * col0 * col1 AS col1 FROM tab1 AS cor0
----
39040
4758
63440
query I rowsort
SELECT DISTINCT + ( + col1 * col0 ) AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ( col1 ) + + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-4063
SELECT DISTINCT - 88 - 51 DIV - col0 AS col0 FROM tab1 cor0
----
-71
-88
skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - 88 - 51 / - col0 AS col0 FROM tab1 cor0
----
-71
-88
query I rowsort
SELECT + col1 * - col2 + - col0 * ( cor0.col2 ) * col1 AS col0 FROM tab2 AS cor0
----
-121186
-51680
-6696
query I rowsort
SELECT ALL col1 * - col1 + tab2.col1 FROM tab2
----
-272
-3422
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4066
SELECT ALL - CAST( - col1 AS SIGNED ) * col2 AS col0 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - CAST ( - col1 AS INTEGER ) * col2 AS col0 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * + col2 col1 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT - + col1 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT ( ( col2 ) + ( 8 ) ) AS col0 FROM tab2
----
34
35
46
query I rowsort
SELECT + col1 * ( tab2.col1 ) AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL ( + col0 ) + col0 * 72 FROM tab2
----
511
5694
5767
query I rowsort
SELECT col0 * col1 + 88 AS col1 FROM tab2 AS cor0
----
1431
305
4690
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 + - tab1.col0 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cc3178d94f25e464f9440d30179b24fc
query I rowsort
SELECT ALL tab2.col0 * + tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query I rowsort
SELECT 70 * col2 AS col2 FROM tab2
----
1820
1890
2660
query I rowsort
SELECT ALL + cor0.col0 - + 76 * col1 AS col1 FROM tab1 AS cor0
----
-1973
-696
-908
query I rowsort
SELECT - + 74 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * - 73 col0 FROM tab0 AS cor0
----
-1752
-2555
-6497
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4079
SELECT CAST( 44 AS SIGNED ) * col2 + - col0 FROM tab0 AS cor0
----
1428
3519
9
skipif mysql # not compatible
query I rowsort label-4079
SELECT CAST ( 44 AS INTEGER ) * col2 + - col0 FROM tab0 AS cor0
----
1428
3519
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT + 80 - col0 DIV col1 FROM tab2 AS cor0
----
76
79
80
skipif mysql # not compatible
query I rowsort label-4080
SELECT + 80 - col0 / col1 FROM tab2 AS cor0
----
76
79
80
query I rowsort
SELECT ALL + tab1.col0 * - 71 FROM tab1
----
-213
-4544
-5680
query I rowsort
SELECT 11 FROM tab1, tab0 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT tab2.col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 + + cor0.col2 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT + col1 * - 94 FROM tab0 AS cor0
----
-8084
-8554
-9118
query I rowsort
SELECT cor0.col2 * + col2 - col1 AS col0 FROM tab1 AS cor0
----
2890
3239
9203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4087
SELECT - - CAST( NULL AS SIGNED ) / col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4087
SELECT - - CAST ( NULL AS INTEGER ) / col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4088
SELECT - + CAST( NULL AS DECIMAL ) + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4088
SELECT - + CAST ( NULL AS REAL ) + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 99 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
3267
8118
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4090
SELECT + + col1 + + col2 * col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-4090
SELECT + + col1 + + col2 * col2 / - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - col1 + 97 FROM tab1
----
71
84
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4092
SELECT ALL + - col1 * CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL + - col1 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - - col0 + + ( cor0.col0 ) FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - col0 * + col0 + 39 AS col1 FROM tab1 AS cor0
----
-4057
-6361
30
query I rowsort
SELECT 19 * + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
138662
15048
665
query I rowsort
SELECT DISTINCT + + 12 + + 24 FROM tab2 AS cor0
----
36
query I rowsort
SELECT DISTINCT + ( - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4098
SELECT - CAST( NULL AS SIGNED ) * + 90 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4098
SELECT - CAST ( NULL AS INTEGER ) * + 90 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - 90 FROM tab0 AS cor0
----
-1
-55
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + - col2 * ( - col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 * - 13 * cor0.col1 AS col0 FROM tab2 AS cor0
----
10881
19942
8398
query I rowsort
SELECT DISTINCT col1 + 46 * col0 FROM tab1 AS cor0
----
164
2954
3693
query I rowsort
SELECT ALL + ( 77 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1309
-2387
-4543
query I rowsort
SELECT - - ( - col0 ) + cor0.col0 * + col1 * - 40 AS col1 FROM tab0 AS cor0
----
-135835
-324049
-82584
query I rowsort
SELECT ALL - ( 50 ) FROM tab2, tab2 cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( 86 ) * + col2 col1 FROM tab0
----
2871
7134
87
query I rowsort
SELECT - col1 + - col0 * + cor0.col1 * + col2 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT DISTINCT + cor0.col2 + + 88 FROM tab0 AS cor0
----
121
170
89
query I rowsort
SELECT - col1 + 98 * + col1 FROM tab0 AS cor0
----
8342
8827
9409
query I rowsort
SELECT ALL cor0.col1 * + 35 AS col2 FROM tab2 cor0
----
1085
2065
595
query I rowsort
SELECT + col1 * + 0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT tab2.col2 * + 85 FROM tab2
----
2210
2295
3230
query I rowsort
SELECT - 70 + - col1 AS col2 FROM tab1 AS cor0
----
-80
-83
-96
query I rowsort
SELECT - 80 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1454
566
757
query I rowsort
SELECT DISTINCT - col2 * + col2 + - col2 * - cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
204687
5832
728064
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4117
SELECT DISTINCT ( cor0.col0 ) + ( - col1 + - col1 * CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT ( cor0.col0 ) + ( - col1 + - col1 * CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col0 * + col1 + - 72 FROM tab1 cor0
----
568
6
968
query I rowsort
SELECT ALL + col2 + + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT + + cor0.col2 * - ( - 3 ) AS col0 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT ALL cor0.col0 + + ( + col1 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + cor0.col2 * + 59 + 3 * + col1 AS col0 FROM tab2 AS cor0
----
1686
1711
2293
query I rowsort
SELECT ALL - col2 * col1 - + col1 AS col2 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT ALL + - col2 * - 45 + col1 FROM tab0 AS cor0
----
142
1571
3781
query I rowsort
SELECT ALL col1 + + 16 FROM tab1 AS cor0
----
26
29
42
query I rowsort
SELECT DISTINCT - - col0 * 0 - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + cor0.col2 + - 70 * - col0 FROM tab1 AS cor0
----
264
4537
5696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4128
SELECT + + col1 * - CAST( cor0.col2 AS SIGNED ) 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-4128
SELECT + + col1 * - CAST ( cor0.col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT ( + col2 ) * - 10 * ( + col0 ) AS col2 FROM tab1
----
-1620
-36480
-76800
query I rowsort
SELECT + col0 + + col2 + + col0 AS col1 FROM tab1
----
185
256
60
query I rowsort
SELECT DISTINCT + col1 + + col0 * col0 AS col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT + 19 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823
onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT - col0 + 23 DIV col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4133
SELECT - col0 + 23 / col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col1 + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT col1 * col0 + + cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT ALL + col0 - cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL col1 * 55 + - 82 FROM tab2 cor0
----
1623
3163
853
query I rowsort
SELECT ALL + col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4139
SELECT DISTINCT + - col2 / CAST( NULL AS DECIMAL ) + + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT + - col2 / CAST ( NULL AS REAL ) + + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 + 49 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
1488
2832
816
query I rowsort
SELECT ALL - cor0.col2 + + col0 - - 27 FROM tab1 cor0
----
-24
11
34
query I rowsort
SELECT col1 * - 37 + col1 + col1 AS col1 FROM tab1
----
-350
-455
-910
query I rowsort
SELECT ALL + - cor0.col0 * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c51b32df5863551bb4dad3fddcd65620
query I rowsort
SELECT - + col2 * + col0 * + col1 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col0 * - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ( - col1 ) * - col2 * col0 + col1 FROM tab1
----
36490
4238
99853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4147
SELECT ALL - CAST( ( cor0.col2 ) AS SIGNED ) + 49 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bdd4a1b28bb12ef9c6d34763374c7a44
skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - CAST ( ( cor0.col2 ) AS INTEGER ) + 49 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bdd4a1b28bb12ef9c6d34763374c7a44
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT DISTINCT - 16 DIV col2 AS col0 FROM tab0 AS cor0
----
-16
0
skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT - 16 / col2 AS col0 FROM tab0 AS cor0
----
-16
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4149
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT ALL - - col1 * + cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT DISTINCT - col0 * col1 * col2 + cor0.col1 DIV col0 + - col1 FROM tab2 cor0
----
-119711
-51051
-5886
skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT - col0 * col1 * col2 + cor0.col1 / col0 + - col1 FROM tab2 cor0
----
-119711
-51051
-5886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4152
SELECT - 55 * col0 * + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-225280
-352000
-495
skipif mysql # not compatible
query I rowsort label-4152
SELECT - 55 * col0 * + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-225280
-352000
-495
query I rowsort
SELECT DISTINCT col0 + col0 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4154
SELECT - + col2 + + col0 * + CAST( NULL AS DECIMAL ) * + 81 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4154
SELECT - + col2 + + col0 * + CAST ( NULL AS REAL ) * + 81 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 * + col0 AS col2 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4156
SELECT ALL tab2.col2 * ( col1 ) + + col1 DIV + col0 FROM tab2
----
1534
646
841
skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL tab2.col2 * ( col1 ) + + col1 / + col0 FROM tab2
----
1534
646
841
query I rowsort
SELECT ALL + cor0.col0 - + 96 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4bd46e2a03feeebc5a9f7b179494ade9
query I rowsort
SELECT ALL + + col1 + 48 * + 60 FROM tab2 AS cor0
----
2897
2911
2939
query I rowsort
SELECT DISTINCT - col1 * + col0 + - col0 FROM tab2 cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4160
SELECT DISTINCT col1 DIV cor0.col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT col1 / cor0.col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT col2 * 60 + - 57 * - col2 + + col0 FROM tab2 AS cor0
----
3120
3166
4525
query I rowsort
SELECT ALL - + col0 * - ( + col1 ) FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4163
SELECT - - col0 DIV 64 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4163
SELECT - - col0 / 64 FROM tab2 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4164
SELECT ALL - ( + col1 ) DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - ( + col1 ) / col0 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4165
SELECT ALL + CAST( + 87 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
87
87
87
skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + CAST ( + 87 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT + + 73 * - 61 AS col1 FROM tab2 AS cor0
----
-4453
-4453
-4453
query I rowsort
SELECT DISTINCT - ( col1 * tab0.col1 ) + col1 AS col2 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT + col2 + col0 - 83 * - ( cor0.col1 ) FROM tab1 AS cor0
----
1255
2215
951
query I rowsort
SELECT ALL + 86 + + col2 FROM tab2 cor0
----
112
113
124
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * - 75 + - col1 FROM tab1 AS cor0
----
4024
4265
7187
query I rowsort
SELECT ALL - - 83 + cor0.col0 AS col0 FROM tab0 AS cor0
----
107
118
172
query I rowsort
SELECT ALL col1 + - col1 * col0 AS col0 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - 82 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-168
-173
-179
query I rowsort
SELECT + col1 + 62 * + 31 * + col0 FROM tab2 AS cor0
----
13485
149975
151855
query I rowsort
SELECT + col2 + + 86 FROM tab1 AS cor0
----
140
143
182
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT cor0.col2 * - 89 + + cor0.col0 * col2 - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-2221
-364
-459
skipif mysql # not compatible
query I rowsort label-4176
SELECT cor0.col2 * - 89 + + cor0.col0 * col2 - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-2221
-364
-459
onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT + col0 + 85 DIV col0 + cor0.col2 * ( - 94 ) AS col1 FROM tab0 cor0
----
-3075
-57
-7619
skipif mysql # not compatible
query I rowsort label-4177
SELECT + col0 + 85 / col0 + cor0.col2 * ( - 94 ) AS col1 FROM tab0 cor0
----
-3075
-57
-7619
query I rowsort
SELECT DISTINCT - col2 * 23 + col1 * - col2 FROM tab2 cor0
----
-1458
-1520
-2132
onlyif mysql # use DIV operator for integer division
query I rowsort label-4179
SELECT col2 + + col1 DIV - 57 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4179
SELECT col2 + + col1 / - 57 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - tab2.col1 * + col0 + - col2 * col1 + col0 * col1 AS col1 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 - - col0 col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT - col1 + + ( ( - col2 ) ) FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT - + cor0.col2 + + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-4183
SELECT - + cor0.col2 + + col1 / col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT col1 * 66 AS col0 FROM tab2
----
1122
2046
3894
query I rowsort
SELECT col2 * + col0 + col2 - + col0 FROM tab1 AS cor0
----
213
3641
7696
query I rowsort
SELECT + col2 * 59 AS col1 FROM tab1 AS cor0
----
3186
3363
5664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4187
SELECT + col2 - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4187
SELECT + col2 - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 55 * + col1 FROM tab0 AS cor0
----
4730
5005
5335
query I rowsort
SELECT + ( col0 ) * col1 + + 87 FROM tab2 AS cor0
----
1430
304
4689
query I rowsort
SELECT - - col2 * cor0.col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ( + col2 * - col1 ) AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT + col2 * 89 AS col2 FROM tab2
----
2314
2403
3382
query I rowsort
SELECT DISTINCT + 19 * col0 + + col2 * - col1 FROM tab1 AS cor0
----
-1347
272
646
query I rowsort
SELECT ALL + + col1 * + col1 - col0 * 80 FROM tab1 AS cor0
----
-5020
-6231
436
onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT DISTINCT col1 DIV - col2 - tab1.col0 * - col0 AS col0 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT col1 / - col2 - tab1.col0 * - col0 AS col0 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT 35 DIV 7 FROM tab2
----
5
5
5
skipif mysql # not compatible
query I rowsort label-4198
SELECT 35 / 7 FROM tab2
----
5
5
5
query I rowsort
SELECT + + ( 29 ) * - cor0.col0 * + 63 FROM tab2 AS cor0
----
-12789
-142506
-144333
query I rowsort
SELECT col2 + + 92 FROM tab0
----
125
174
93
query I rowsort
SELECT - 25 * - cor0.col2 + - 55 AS col2 FROM tab2 AS cor0
----
595
620
895
onlyif mysql # use DIV operator for integer division
query I rowsort label-4202
SELECT 24 * cor0.col0 DIV 74 + col1 DIV col0 FROM tab2 AS cor0
----
25
25
6
skipif mysql # not compatible
query I rowsort label-4202
SELECT 24 * cor0.col0 / 74 + col1 / col0 FROM tab2 AS cor0
----
25
25
6
query I rowsort
SELECT + + col2 * + col2 + + col1 + - 22 FROM tab1 AS cor0
----
2920
3237
9207
query I rowsort
SELECT - 80 * + col2 FROM tab2 AS cor0
----
-2080
-2160
-3040
query I rowsort
SELECT + - 44 - col1 FROM tab0 AS cor0
----
-130
-135
-141
query I rowsort
SELECT DISTINCT 92 * col1 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT ALL + 17 * col1 AS col1 FROM tab1 AS cor0
----
170
221
442
query I rowsort
SELECT DISTINCT col1 * cor0.col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 * 34 col0 FROM tab2 AS cor0
----
1047
1928
499
query I rowsort
SELECT ALL + ( - cor0.col1 ) + + 84 FROM tab0 cor0
----
-13
-2
-7
query I rowsort
SELECT + - col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4212
SELECT DISTINCT - col1 + col2 DIV - 50 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT - col1 + col2 / - 50 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col0 * 46 * col1 + col2 * col0 + col1 * cor0.col1 * + col1 FROM tab2 AS cor0
----
-4285
-53863
19998
query I rowsort
SELECT ALL + 68 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
106
94
95
query I rowsort
SELECT ALL + 67 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col1 FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to a3c8e513c78e2eef41ad24aabcbeff52
query I rowsort
SELECT ALL + + 24 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT + - col1 * 85 FROM tab1 cor0
----
-1105
-2210
-850
onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT DISTINCT 36 DIV col1 + col2 FROM tab1 AS cor0
----
55
60
98
skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT 36 / col1 + col2 FROM tab1 AS cor0
----
55
60
98
query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 * - 72 AS col1 FROM tab0 cor0
----
11929
14689
9124
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4221
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 5 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 5 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + - 8 * + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-11232
-4560
-9984
query I rowsort
SELECT ALL + cor0.col0 * - 83 AS col0 FROM tab1 cor0
----
-249
-5312
-6640
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) + col1 * + 15 * cor0.col2 FROM tab1 AS cor0
----
18816
21114
8607
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) - cor0.col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL col2 + - 43 FROM tab2 AS cor0
----
-16
-17
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 7 + col2 * - col1 col1 FROM tab1 cor0
----
-1255
-1411
-577
query I rowsort
SELECT ALL - tab1.col0 * - col2 + 16 FROM tab1
----
178
3664
7696
query I rowsort
SELECT DISTINCT ( + col2 ) + - col2 * col2 AS col1 FROM tab0 cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT ALL + ( 74 ) * + col0 + + cor0.col2 * 80 DIV - col1 AS col0 FROM tab1 AS cor0
----
4280
5330
56
skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL + ( 74 ) * + col0 + + cor0.col2 * 80 / - col1 AS col0 FROM tab1 AS cor0
----
4280
5330
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( + cor0.col2 ) ) - 34 col2 FROM tab1 AS cor0
----
-130
-88
-91
query I rowsort
SELECT DISTINCT - ( col0 ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4233
SELECT DISTINCT + + 78 DIV + cor0.col0 + col2 DIV - 84 FROM tab1 AS cor0
----
-1
1
26
skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT + + 78 / + cor0.col0 + col2 / - 84 FROM tab1 AS cor0
----
-1
1
26
query I rowsort
SELECT DISTINCT 60 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
60
query I rowsort
SELECT DISTINCT - col2 * + col2 + - ( col1 ) * col1 FROM tab0 cor0
----
-15005
-8485
-9410
query I rowsort
SELECT ALL + 83 * 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5fe5134468e59ae4695cd4b8a73e7d89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4237
SELECT - col2 DIV + 4 + + col1 col0 FROM tab0 cor0
----
71
78
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4237
SELECT - col2 / + 4 + + col1 col0 FROM tab0 cor0
----
71
78
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 98 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT DISTINCT - col1 * col0 + + 4 AS col0 FROM tab1
----
-1036
-636
-74
query I rowsort
SELECT + tab2.col0 * col2 + + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - col1 * col2 * tab0.col2 + col2 FROM tab0
----
-611802
-93621
-96
query I rowsort
SELECT DISTINCT col2 + col2 * tab2.col2 * - col0 FROM tab2
----
-114038
-5076
-52702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT ALL + col0 DIV + 43 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + col0 / + 43 AS col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + - col1 + - ( 70 ) FROM tab2 cor0
----
-101
-129
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT + - col2 * ( col0 + col2 ) DIV - ( + cor0.col0 ) FROM tab2 AS cor0
----
131
34
56
skipif mysql # not compatible
query I rowsort label-4245
SELECT + - col2 * ( col0 + col2 ) / - ( + cor0.col0 ) FROM tab2 AS cor0
----
131
34
56
query I rowsort
SELECT - col2 - + col1 * - cor0.col2 FROM tab1 AS cor0
----
1152
1350
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + ( - col1 ) * + col0 col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4249
SELECT col0 + CAST( - col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-210
-3403
-954
skipif mysql # not compatible
query I rowsort label-4249
SELECT col0 + CAST ( - col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT - tab2.col2 FROM tab2, tab0, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT ALL 68 + col2 FROM tab1
----
122
125
164
query I rowsort
SELECT + + col1 * col1 * - col0 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
-22185
-269984
-5890
query I rowsort
SELECT col2 - ( + col2 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col1 * - cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT DISTINCT col0 * CAST( 69 + - col1 AS SIGNED ) FROM tab1
----
129
3776
4480
skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT col0 * CAST ( 69 + - col1 AS INTEGER ) FROM tab1
----
129
3776
4480
query I rowsort
SELECT col0 * ( col0 ) AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 7f0405f8197238fbd342972ef0bcee12
query I rowsort
SELECT col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + - 78 * + col2 AS col1 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT - col1 + - cor0.col1 * 27 FROM tab1 AS cor0
----
-280
-364
-728
query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - col1 > col0 + col0
----
17
31
59
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IN ( + col1 * - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT + col0 + tab0.col0 DIV - tab0.col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4263
SELECT + col0 + tab0.col0 / - tab0.col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL 9 * - col2 FROM tab2
----
-234
-243
-342
onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT ALL col2 DIV - tab1.col1 + tab1.col0 * + col2 col2 FROM tab1
----
160
3643
7673
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL col2 / - tab1.col1 + tab1.col0 * + col2 col2 FROM tab1
----
160
3643
7673
query I rowsort
SELECT ALL - 81 - - cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to bba626255ba2c63ab6d140a582cce4cb
query I rowsort
SELECT ALL + 97 + - col2 FROM tab2
----
59
70
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT ALL - col2 DIV - col2 + + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - col2 / - col2 + + col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT + col0 + + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + - 51 * - col1 + 95 AS col0 FROM tab0 AS cor0
----
4481
4736
5042
query I rowsort
SELECT ALL + - col2 + - col2 - col1 AS col1 FROM tab0 AS cor0
----
-152
-255
-99
query I rowsort
SELECT DISTINCT - col0 + col2 * ( cor0.col0 ) + - col2 * ( - col1 ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
107440
40064
4371
query I rowsort
SELECT col1 + - col2 * + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + 78 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT - ( col0 ) - + col0 * + col2 FROM tab0
----
-70
-7387
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4277
SELECT + col1 - CAST( col0 * + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-4277
SELECT + col1 - CAST ( col0 * + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4278
SELECT + col2 + + col2 + col2 DIV - col0 AS col0 FROM tab1
----
114
191
90
skipif mysql # not compatible
query I rowsort label-4278
SELECT + col2 + + col2 + col2 / - col0 AS col0 FROM tab1
----
114
191
90
query I rowsort
SELECT - col1 - 83 FROM tab2
----
-100
-114
-142
query I rowsort
SELECT col2 + 46 * - col0 FROM tab1
----
-2887
-3584
-84
query I rowsort
SELECT - col1 * col2 * 50 FROM tab0 AS cor0
----
-141900
-373100
-4850
query I rowsort
SELECT ( 19 ) * - cor0.col2 FROM tab0 cor0
----
-1558
-19
-627
query I rowsort
SELECT - ( 70 ) AS col1 FROM tab2 cor0
----
-70
-70
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4284
SELECT ALL CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ( + ( col1 ) ) FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT + col2 + col2 * cor0.col1 AS col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT col0 + + cor0.col0 * col0 AS col0 FROM tab0 cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT DISTINCT - col2 * - col1 + + col0 DIV + col1 FROM tab2 AS cor0
----
1535
650
837
skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT - col2 * - col1 + + col0 / + col1 FROM tab2 AS cor0
----
1535
650
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col0 col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab0
----
19
query I rowsort
SELECT ALL - - col2 * col2 * col1 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT + col2 DIV col1 + col0 * col0 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-4292
SELECT + col2 / col1 + col0 * col0 FROM tab0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT + tab0.col2 DIV col2 - - col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-4293
SELECT + tab0.col2 / col2 - - col0 FROM tab0
----
25
36
90
query I rowsort
SELECT col1 * col0 - + col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT ALL - - col1 * col0 + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - col1 * col0 + - col1 AS col2 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT col1 * - ( col1 * col0 + + col0 ) FROM tab1
----
-14560
-2106
-7040
query I rowsort
SELECT + 18 FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT - + col0 + + cor0.col0 * + col1 FROM tab0 cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT 71 * + col2 * - col0 + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-11502
-259002
-545274
skipif mysql # not compatible
query I rowsort label-4300
SELECT 71 * + col2 * - col0 + col0 / col1 AS col0 FROM tab1 AS cor0
----
-11502
-259002
-545274
query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 91 col2 FROM tab0
----
2184
3185
8099
query I rowsort
SELECT ALL + ( tab2.col2 ) * col0 + col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT - + 76 + + cor0.col2 + + col1 * col2 FROM tab0 AS cor0
----
22
2795
7468
onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT ALL + 15 DIV + col2 + col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + 15 / + col2 + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT 59 + + 28 FROM tab0
----
87
query I rowsort
SELECT - - col2 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - ( col0 ) * col1 + col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT + col1 * + col2 * col0 + col1 * col0 FROM tab2
----
124254
52377
6076
query I rowsort
SELECT 56 + col2 * + col1 AS col0 FROM tab2 cor0
----
1590
702
893
query I rowsort
SELECT DISTINCT + col2 * - col0 - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT - + 54 * col2 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col1 + + col0 AS col2 FROM tab1 cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-4315
SELECT col1 * col1 DIV + col0 + + col0 AS col2 FROM tab0 cor0
----
182
303
332
skipif mysql # not compatible
query I rowsort label-4315
SELECT col1 * col1 / + col0 + + col0 AS col2 FROM tab0 cor0
----
182
303
332
query I rowsort
SELECT ALL col2 * col2 + cor0.col2 * col2 FROM tab1 AS cor0
----
18432
5832
6498
query I rowsort
SELECT ALL - - 84 * col1 + + col2 * col2 FROM tab1 AS cor0
----
10308
4089
5100
onlyif mysql # use DIV operator for integer division
query I rowsort label-4318
SELECT ALL cor0.col1 * - col0 + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL cor0.col1 * - col0 + col2 / - col2 AS col2 FROM tab0 AS cor0
----
-2065
-3396
-8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT ALL tab0.col2 DIV - col1 + col1 AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL tab0.col2 / - col1 + col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT col1 * - col1 + col0 FROM tab0 WHERE NOT NULL IN ( + col2 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) BETWEEN NULL AND col2 * col2 - + col1
----
query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL NOT IN ( col1 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + tab2.col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 - col1 col0 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT - tab0.col1 * - col0 + col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - tab1.col2 + tab1.col0 FROM tab1 WHERE NOT NULL IN ( col1 * + col0 + + col0 * col2 + col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < col2 + col0 * + col1
----
query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NULL >= NULL
----
query I rowsort
SELECT DISTINCT col1 + tab1.col2 * col2 AS col1 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN col2 AND col2 * - col0 + col2
----
query I rowsort
SELECT ALL - col1 + - tab2.col1 AS col1 FROM tab2
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4332
SELECT ALL + col1 DIV col0 + col2 * + col1 FROM tab0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + col1 / col0 + col2 * + col1 FROM tab0
----
2841
7463
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT DISTINCT col1 + + col1 DIV + col2 AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT col1 + + col1 / + col2 AS col2 FROM tab1
----
10
13
26
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * col1 + - col0 > col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL + tab1.col0 * tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col0 * + col1 * + col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL + + cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - - col1 + cor0.col0 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL + - col2 - + col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT col2 * cor0.col1 * + col2 + col0 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
22655
30868
46046
query I rowsort
SELECT col1 + + col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 + - col2 )
----
query I rowsort
SELECT DISTINCT - col2 + col2 * col0 AS col1 FROM tab2
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-4343
SELECT DISTINCT col1 * col0 DIV tab1.col2 + + col0 FROM tab1
----
4
75
90
skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT col1 * col0 / tab1.col2 + + col0 FROM tab1
----
4
75
90
query I rowsort
SELECT col2 + + col0 * col1 + col0 FROM tab2
----
1460
251
4706
query I rowsort
SELECT - - col0 - - col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - + col0 + col0 + - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - col1 * - col1 * cor0.col0 + - cor0.col0 FROM tab0 AS cor0
----
177480
329280
736920
onlyif mysql # use DIV operator for integer division
query I rowsort label-4348
SELECT ALL + + cor0.col0 * + col2 + - col1 + - col2 DIV + col0 col2 FROM tab2 AS cor0
----
155
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + + cor0.col0 * + col2 + - col1 + - col2 / + col0 col2 FROM tab2 AS cor0
----
155
1969
2985
query I rowsort
SELECT - + col1 - - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + - col1 + col0 * col2 * col0 FROM tab0 AS cor0
----
1129
18955
649513
onlyif mysql # use DIV operator for integer division
query I rowsort label-4351
SELECT DISTINCT - col1 + + cor0.col1 DIV + col0 FROM tab0 cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - col1 + + cor0.col1 / + col0 FROM tab0 cor0
----
-83
-90
-95
query I rowsort
SELECT ALL col2 * - col1 + + col1 * col1 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT + - cor0.col2 * - cor0.col2 + col2 + cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-1475
-6274
-9407
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / col1 <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4355
SELECT - cor0.col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4355
SELECT - cor0.col2 / - col1 AS col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT ALL - cor0.col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL - cor0.col2 / + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col0 + col0 + - col0 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - col2 + + col1 * col1 + + col0 FROM tab2
----
330
3533
941
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 + col0 col2 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4360
SELECT ALL - CAST( + 80 AS SIGNED ) * cor0.col2 - + ( col1 * - col0 + col0 ) AS col0 FROM tab2 AS cor0
----
-1776
-1950
2444
skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL - CAST ( + 80 AS INTEGER ) * cor0.col2 - + ( col1 * - col0 + col0 ) AS col0 FROM tab2 AS cor0
----
-1776
-1950
2444
query I rowsort
SELECT ALL - 44 * col0 AS col0 FROM tab2 cor0
----
-308
-3432
-3476
query I rowsort
SELECT DISTINCT + 45 + 24 * col0 AS col0 FROM tab2 AS cor0
----
1917
1941
213
onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT + 32 DIV - col1 FROM tab1 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4363
SELECT + 32 / - col1 FROM tab1 cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab0
----
-92
query I rowsort
SELECT DISTINCT 57 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT CAST( col1 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-4366
SELECT CAST ( col1 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4367
SELECT - col2 DIV 89 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4367
SELECT - col2 / 89 AS col2 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4368
SELECT 77 DIV col0 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-4368
SELECT 77 / col0 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT + cor0.col1 * cor0.col0 - + col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + col2 + - 36 FROM tab1 AS cor0
----
18
21
60
query I rowsort
SELECT DISTINCT col2 + col1 * cor0.col0 * + col1 FROM tab1 cor0
----
13616
2082
6457
query I rowsort
SELECT ALL + - 1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT + col1 + ( - 66 ) * col2 * - tab2.col1 AS col1 FROM tab2
----
101303
42653
55273
query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab0, tab2 AS cor0
----
-71
query I rowsort
SELECT + col2 * + 39 + - col2 * tab2.col2 FROM tab2
----
324
338
38
query I rowsort
SELECT col0 + - col0 * col2 AS col2 FROM tab2
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT + col2 DIV - ( tab1.col2 ) + col0 * tab1.col0 AS col0 FROM tab1
----
4095
6399
8
skipif mysql # not compatible
query I rowsort label-4377
SELECT + col2 / - ( tab1.col2 ) + col0 * tab1.col0 AS col0 FROM tab1
----
4095
6399
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT ALL - col0 + col1 DIV 42 FROM tab2 cor0
----
-7
-77
-79
skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - col0 + col1 / 42 FROM tab2 cor0
----
-7
-77
-79
query I rowsort
SELECT ALL ( ( cor0.col2 ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + col1 + ( - ( + col1 ) * ( + col1 ) ) AS col2 FROM tab1
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT + - col2 + - cor0.col0 DIV + cor0.col0 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-4381
SELECT + - col2 + - cor0.col0 / + cor0.col0 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT + 83 + + col0 FROM tab1
----
147
163
86
query I rowsort
SELECT 68 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4805bcb9c04e49d1f6f82defa880d751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col0 FROM tab2, tab2 AS cor0
----
50
query I rowsort
SELECT + ( col2 ) * col0 + - ( col0 ) * + col0 FROM tab1 AS cor0
----
-448
1280
153
query I rowsort
SELECT + 40 * + cor0.col1 FROM tab0 AS cor0
----
3440
3640
3880
query I rowsort
SELECT ( - tab1.col1 ) FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL - + cor0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT cor0.col2 - + 56 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1fb0baf35db2bc8f52d005d8b5cf23ca
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT - 58 * col1 * col0 FROM tab2
----
-12586
-266916
-77894
query I rowsort
SELECT - 93 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT ( - 14 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
query I rowsort
SELECT - 37 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT + col1 - - col0 DIV col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-4396
SELECT + col1 - - col0 / col2 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT col1 * col0 * + ( - 37 ) FROM tab0
----
-125615
-299663
-76368
query I rowsort
SELECT DISTINCT - 15 * col0 * - col0 AS col0 FROM tab1
----
135
61440
96000
query I rowsort
SELECT ALL + - col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 + + col1 * + 25 AS col2 FROM tab0 AS cor0
----
2126
2186
2390
query I rowsort
SELECT - col2 + 70 FROM tab0 AS cor0
----
-12
37
69
query I rowsort
SELECT - col2 + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab0, tab1, tab2 AS cor0
----
89
query I rowsort
SELECT ALL - 33 * + col0 AS col0 FROM tab1 AS cor0
----
-2112
-2640
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4405
SELECT + 82 + col1 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-1452
-564
-755
skipif mysql # not compatible
query I rowsort label-4405
SELECT + 82 + col1 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-1452
-564
-755
query I rowsort
SELECT ALL - + col2 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT + - ( - col1 ) * - ( 63 ) + + col2 FROM tab1 cor0
----
-1584
-573
-723
query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab2 cor0
----
-34
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col2 col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col0 * - col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - col1 * col0 * - 10 FROM tab0
----
20640
33950
80990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT DISTINCT + col0 + - CAST( + col1 * col0 + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2126
-3457
-8101
skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + col0 + - CAST ( + col1 * col0 + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2126
-3457
-8101
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4415
SELECT ALL col0 + + CAST( + col1 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL col0 + + CAST ( + col1 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-4416
SELECT DISTINCT - cor0.col1 DIV col1 col0 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT - cor0.col1 / col1 col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL - col0 * + col2 + + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + + col0 + - cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT tab1.col0 - - col2 AS col1 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col2 FROM tab0 cor0
----
22
22
22
query I rowsort
SELECT ALL + ( - col1 ) + col0 * 61 AS col2 FROM tab1 AS cor0
----
157
3894
4867
query I rowsort
SELECT col0 * cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4424
SELECT DISTINCT 13 DIV col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT 13 / col2 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4425
SELECT ALL + - CAST( NULL AS DECIMAL ) * col0 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + - CAST ( NULL AS REAL ) * col0 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 - 55 FROM tab1 AS cor0
----
-1
2
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 * col2 col2 FROM tab2 AS cor0
----
442
459
646
query I rowsort
SELECT col1 * - col1 * 97 FROM tab1
----
-16393
-65572
-9700
query I rowsort
SELECT DISTINCT - + tab2.col2 * + ( - cor0.col1 ) FROM tab2, tab0, tab0 AS cor0
----
9 values hashing to 3aa3dc9c06ac75ec040ed5bc20953cf9
query I rowsort
SELECT - 96 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT DISTINCT col0 * col2 + col2 - tab2.col1 FROM tab2
----
185
1995
3023
onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT + col0 DIV + 54 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4432
SELECT + col0 / + 54 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT ( tab0.col1 ) + - col1 AS col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * ( col1 ) * 17 col0 FROM tab0
----
78948
83538
89046
query I rowsort
SELECT - 71 + ( - col1 + - ( 73 ) ) AS col2 FROM tab2 cor0
----
-161
-175
-203
query I rowsort
SELECT col2 * 18 FROM tab1 AS cor0
----
1026
1728
972
query I rowsort
SELECT 52 * + 68 FROM tab2
----
3536
3536
3536
query I rowsort
SELECT + 35 + col1 AS col0 FROM tab2
----
52
66
94
query I rowsort
SELECT DISTINCT ( + 0 * col1 ) + - 79 FROM tab1
----
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4440
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + + col0 FROM tab2
----
104
117
34
skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL ( 35 ) * tab0.col0 + 32 FROM tab0
----
1257
3147
872
query I rowsort
SELECT - + 11 + col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-11
-11
-11
query I rowsort
SELECT - + 38 + - col0 + 12 AS col2 FROM tab0 AS cor0
----
-115
-50
-61
query I rowsort
SELECT - 17 + 6 AS col0 FROM tab1
----
-11
-11
-11
query I rowsort
SELECT ( col2 + - col2 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ( + 91 ) AS col1 FROM tab1
----
91
91
91
query I rowsort
SELECT ALL col0 + + col2 * - col2 AS col0 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT ALL col0 + - col0 - - col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + 58 + - col1 AS col1 FROM tab1 AS cor0
----
32
45
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 * + col0 col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ( - col0 ) * - 48 + - col2 FROM tab1 AS cor0
----
3015
3744
90
query I rowsort
SELECT col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4453
SELECT - + col1 * + col1 + + col0 * + 77 * col1 + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4453
SELECT - + col1 * + col1 + + col0 * + 77 * col1 + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 85 * col1 FROM tab0 AS cor0
----
7310
7735
8245
onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT DISTINCT - col0 + col2 DIV cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT - col0 + col2 / cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89
query I rowsort
SELECT ALL + col1 * - col2 + - col1 + ( col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * + col2 + col0 AS col2 FROM tab2 cor0
----
-119574
-50955
-5852
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4458
SELECT ALL - - cor0.col2 + + col2 * CAST( + 39 + col0 AS SIGNED ) FROM tab1 AS cor0
----
11520
2322
5928
skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL - - cor0.col2 + + col2 * CAST ( + 39 + col0 AS INTEGER ) FROM tab1 AS cor0
----
11520
2322
5928
query I rowsort
SELECT - 39 + - col0 AS col0 FROM tab0 AS cor0
----
-128
-63
-74
query I rowsort
SELECT DISTINCT col2 * col0 * + col2 + cor0.col1 - + col1 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4461
SELECT ALL col0 * - CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL col0 * - CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4462
SELECT ALL - col2 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - col2 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - col0 + 37 * col0 AS col0 FROM tab2 AS cor0
----
252
2808
2844
query I rowsort
SELECT DISTINCT + + cor0.col0 + 14 FROM tab1 AS cor0
----
17
78
94
query I rowsort
SELECT ALL cor0.col0 + 29 FROM tab2 AS cor0
----
107
108
36
query I rowsort
SELECT DISTINCT + cor0.col0 + + ( col2 ) * col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL col0 * + cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - + cor0.col1 * - col2 * col0 FROM tab0 cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 * cor0.col2 col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - + 26 * + 75 AS col2 FROM tab0 AS cor0
----
-1950
-1950
-1950
query I rowsort
SELECT DISTINCT + 77 * - 2 FROM tab2 cor0
----
-154
query I rowsort
SELECT ALL + + col2 * 30 FROM tab2 AS cor0
----
1140
780
810
query I rowsort
SELECT - 24 * + cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
-1879
-768
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-4474
SELECT ALL cor0.col1 DIV - col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL cor0.col1 / - col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT ALL - + cor0.col0 + 24 FROM tab0 AS cor0
----
-11
-65
0
query I rowsort
SELECT DISTINCT - 18 * + col1 * col0 AS col0 FROM tab2 cor0
----
-24174
-3906
-82836
query I rowsort
SELECT + + cor0.col0 + - cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4478
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 22 * + col1 FROM tab0
----
-1892
-2002
-2134
query I rowsort
SELECT - col0 + - 69 FROM tab1 AS cor0
----
-133
-149
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * - 93 col1 FROM tab0
----
7998
8463
9021
query I rowsort
SELECT DISTINCT + ( col0 ) + col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + - ( - col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ( col0 ) + 67 FROM tab2 AS cor0
----
145
146
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4485
SELECT col2 * - CAST( - col1 + - col0 * 74 AS SIGNED ) FROM tab1 cor0
----
13392
270522
569568
skipif mysql # not compatible
query I rowsort label-4485
SELECT col2 * - CAST ( - col1 + - col0 * 74 AS INTEGER ) FROM tab1 cor0
----
13392
270522
569568
query I rowsort
SELECT + col2 + - 76 FROM tab2 cor0
----
-38
-49
-50
query I rowsort
SELECT + 97 * cor1.col2 + - 81 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 408a0fa9f1166ce620f758dca7870b0c
query I rowsort
SELECT col1 + 92 AS col1 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT - 11 * + cor0.col2 + col2 * 60 AS col1 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT - 87 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
10
4
query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab2 AS cor0
----
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT ALL + - col2 DIV - 59 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + - col2 / - 59 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ( + col0 ) * col1 + - col0 * ( col0 + ( + col0 ) ) FROM tab1 AS cor0
----
-11760
-7552
60
query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab1 cor0
----
75
query I rowsort
SELECT - col2 * + cor0.col0 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-15360
-324
-7296
query I rowsort
SELECT + + 2 + col0 * - col0 FROM tab1 AS cor0
----
-4094
-6398
-7
query I rowsort
SELECT 80 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT ( col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 51 * col1 + tab2.col0 AS col2 FROM tab2
----
-1574
-2931
-788
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
7
78
79
query I rowsort
SELECT - - 14 + - col0 AS col0 FROM tab0 AS cor0
----
-10
-21
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT ALL col0 + - col0 DIV col2 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL col0 + - col0 / col2 FROM tab1 AS cor0
----
3
63
80
query I rowsort
SELECT - - col0 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL + - 51 * + col2 * col1 + + col0 FROM tab0 AS cor0
----
-144714
-380473
-4912
query I rowsort
SELECT + cor0.col2 + col0 * 51 FROM tab1 AS cor0
----
207
3321
4176
onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT DISTINCT + col0 * cor0.col1 DIV - 92 + - cor0.col0 + cor0.col2 FROM tab0 cor0
----
-13
-70
-95
skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT + col0 * cor0.col1 / - 92 + - cor0.col0 + cor0.col2 FROM tab0 cor0
----
-13
-70
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT ALL + col0 + ( 51 ) DIV col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + col0 + ( 51 ) / col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab0, tab1 AS cor0
----
90
query I rowsort
SELECT DISTINCT - col2 + 45 + + col2 * ( 68 ) * col1 FROM tab1 cor0
----
38748
84813
95463
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b
query I rowsort
SELECT + col2 - + ( - col1 ) FROM tab2 cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4512
SELECT CAST( - col0 AS SIGNED ) * col1 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-4512
SELECT CAST ( - col0 AS INTEGER ) * col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT 85 * + col0 * col1 - + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
174351
288574
681691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + tab0.col0 * - col0 ) col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT col1 - + 65 * + col1 FROM tab1
----
-1664
-640
-832
query I rowsort
SELECT + 38 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4518
SELECT + CAST( NULL AS SIGNED ) - - tab2.col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4518
SELECT + CAST ( NULL AS INTEGER ) - - tab2.col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab0.col1 * ( + col1 * col1 ) + - col1 * + tab0.col0 + col2 AS col2 FROM tab0
----
634025
745554
909279
query I rowsort
SELECT ALL tab2.col0 * + col1 + col2 * col2 FROM tab2
----
2787
5278
946
query I rowsort
SELECT - col1 * - col2 + + col0 - + cor0.col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + col1 * + 90 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT + col1 + + ( - col0 ) * col2 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 col1 FROM tab0 cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4525
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - 63 + col2 AS col1 FROM tab1 AS cor0
----
-6
-9
33
query I rowsort
SELECT DISTINCT - ( ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - ( cor0.col1 ) + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + + col2 col1 FROM tab2 cor0
----
105
106
117
query I rowsort
SELECT DISTINCT - - 25 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
260
338
676
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT col1 * - CAST( + col2 + + col0 AS SIGNED ) FROM tab1 cor0
----
-1210
-1482
-2288
skipif mysql # not compatible
query I rowsort label-4532
SELECT col1 * - CAST ( + col2 + + col0 AS INTEGER ) FROM tab1 cor0
----
-1210
-1482
-2288
onlyif mysql # use DIV operator for integer division
query I rowsort label-4533
SELECT ALL - col0 + - 46 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - col0 + - 46 / col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + + col1 * + col1 col1 FROM tab2 cor0
----
1023
323
3599
query I rowsort
SELECT DISTINCT + cor0.col2 * 79 FROM tab1 AS cor0
----
4266
4503
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4536
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4537
SELECT col0 + col2 + - col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
104
115
34
skipif mysql # not compatible
query I rowsort label-4537
SELECT col0 + col2 + - col2 / + col1 AS col1 FROM tab2 AS cor0
----
104
115
34
query I rowsort
SELECT DISTINCT + - col1 * ( ( - col2 ) ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + tab0.col1 * tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT DISTINCT col0 - - col0 DIV col2 AS col2 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT col0 - - col0 / col2 AS col2 FROM tab0
----
24
70
90
query I rowsort
SELECT col0 + + tab0.col2 - col0 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - col1 + 33 + + col1 AS col1 FROM tab1 AS cor0
----
33
query I rowsort
SELECT ALL - col0 - - 50 FROM tab2 AS cor0
----
-28
-29
43
query I rowsort
SELECT ALL - + col0 * col2 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT + - col1 + - ( - 68 * col0 ) AS col2 FROM tab2 AS cor0
----
445
5245
5355
query I rowsort
SELECT DISTINCT - - col2 * + ( col0 ) + col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4547
SELECT ALL - - cor0.col0 + - CAST( NULL AS SIGNED ) / + 69 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-4547
SELECT ALL - - cor0.col0 + - CAST ( NULL AS INTEGER ) / + 69 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col0 * 35 * - tab1.col2 + - col1 FROM tab1
----
-127690
-268813
-5696
query I rowsort
SELECT tab0.col0 + + ( col1 * + col0 ) AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT col1 * - col1 + col0 * + col0 + ( + 45 ) FROM tab1
----
-622
4041
6276
query I rowsort
SELECT DISTINCT col2 + + ( + 66 ) FROM tab0
----
148
67
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col2 + cor0.col1 col0 FROM tab0 AS cor0
----
-73
20
95
query I rowsort
SELECT + ( 12 ) + cor0.col1 * + 25 FROM tab1 AS cor0
----
262
337
662
query I rowsort
SELECT - col2 + col1 * col0 * - 54 - 19 * - col0 AS col1 FROM tab1 AS cor0
----
-33401
-4209
-54736
query I rowsort
SELECT DISTINCT + col0 + col1 * tab1.col1 FROM tab1
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4556
SELECT DISTINCT CAST( NULL AS SIGNED ) * 71 FROM tab0, tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 71 FROM tab0, tab2 cor0
----
NULL
query I rowsort
SELECT ALL - 86 + + 23 + + col2 FROM tab2
----
-25
-36
-37
query I rowsort
SELECT - col2 * col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - 18 + - tab0.col2 FROM tab0
----
-100
-19
-51
query I rowsort
SELECT + col1 + col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col1 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 38 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
0
11
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-4563
SELECT DISTINCT + cor0.col0 * - col0 + + col2 * cor0.col1 DIV col2 FROM tab1 AS cor0
----
-4086
-6387
17
skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT + cor0.col0 * - col0 + + col2 * cor0.col1 / col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT + ( col0 ) * col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL + - 75 * - col2 * ( - col1 ) FROM tab0 AS cor0
----
-212850
-559650
-7275
query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab2, tab0 AS cor0
----
71
query I rowsort
SELECT ALL ( + 50 ) FROM tab0
----
50
50
50
query I rowsort
SELECT DISTINCT - + col1 - - cor0.col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT 97 * col1 FROM tab0 AS cor0
----
8342
8827
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT ALL + col1 + col2 DIV - col2 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + col1 + col2 / - col2 FROM tab1 cor0
----
12
25
9
query I rowsort
SELECT DISTINCT + col2 * - col1 * 56 FROM tab2 AS cor0
----
-36176
-46872
-85904
onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT ALL + - col2 + + col2 DIV + ( col1 ) + - col2 FROM tab2 AS cor0
----
-52
-54
-74
skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + - col2 + + col2 / + ( col1 ) + - col2 FROM tab2 AS cor0
----
-52
-54
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT ALL + col0 + col0 DIV ( col0 ) AS col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL + col0 + col0 / ( col0 ) AS col0 FROM tab1 AS cor0
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT DISTINCT + - 70 * col0 DIV 47 AS col0 FROM tab0 AS cor0
----
-132
-35
-52
skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + - 70 * col0 / 47 AS col0 FROM tab0 AS cor0
----
-132
-35
-52
query I rowsort
SELECT - - 42 * col0 + col2 FROM tab1 AS cor0
----
180
2745
3456
query I rowsort
SELECT ALL tab2.col1 + - 48 FROM tab2
----
-17
-31
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4577
SELECT + CAST( NULL AS DECIMAL ) * 43 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4577
SELECT + CAST ( NULL AS REAL ) * 43 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * col1 * - col1 FROM tab2
----
10982
25947
90506
skipif mysql # not compatible
query I rowsort
SELECT - col1 + CAST ( + col0 + col2 AS REAL ) AS col0 FROM tab2
----
100
3
45
query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab0, tab0 AS cor0
----
-24
query I rowsort
SELECT + ( + col1 ) * + col1 * cor0.col1 + + 94 * col2 AS col2 FROM tab1 AS cor0
----
11221
22652
6358
query I rowsort
SELECT - ( - 92 ) * col1 AS col0 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT 65 * + col1 + + col1 FROM tab2 AS cor0
----
1122
2046
3894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col1 * + col0 col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - + 65 * - col0 + col0 * + col0 - col1 AS col2 FROM tab1 cor0
----
11587
178
8246
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + cor0.col2 col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4587
SELECT DISTINCT col1 DIV + col1 + + col2 + 43 FROM tab2
----
70
71
82
skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT col1 / + col1 + + col2 + 43 FROM tab2
----
70
71
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4588
SELECT + 70 DIV - tab1.col1 + ( + col1 ) * tab1.col0 + + 53 AS col1 FROM tab1
----
1088
129
686
skipif mysql # not compatible
query I rowsort label-4588
SELECT + 70 / - tab1.col1 + ( + col1 ) * tab1.col0 + + 53 AS col1 FROM tab1
----
1088
129
686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4589
SELECT ALL + - ( col0 ) * + CAST( + ( - col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + - ( col0 ) * + CAST ( + ( - col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + - ( - col0 ) + + ( - col2 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT ( col0 ) * - col0 FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 * col1 col0 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + ( col0 ) col2 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT + - col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + col2 * col2 - - col0 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4596
SELECT col1 * CAST( - col1 AS SIGNED ) - + cor0.col2 * 23 AS col2 FROM tab1 AS cor0
----
-1411
-1918
-2377
skipif mysql # not compatible
query I rowsort label-4596
SELECT col1 * CAST ( - col1 AS INTEGER ) - + cor0.col2 * 23 AS col2 FROM tab1 AS cor0
----
-1411
-1918
-2377
query I rowsort
SELECT ALL tab1.col2 * - col2 * col1 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT - + col1 - 24 AS col0 FROM tab1 AS cor0
----
-34
-37
-50
query I rowsort
SELECT - col2 - + col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT col2 * + 29 * - col2 AS col1 FROM tab0 AS cor0
----
-194996
-29
-31581
query I rowsort
SELECT - col2 * + col2 + + ( + col0 ) + col1 FROM tab2 AS cor0
----
-1348
-539
-691
query I rowsort
SELECT - col1 * - cor0.col0 * - col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT - - col2 * - 91 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT ALL ( col1 ) * + cor0.col0 + col0 AS col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + col1 * + 84 * 46 AS col2 FROM tab0
----
332304
351624
374808
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + - col2 + 91 FROM tab2 AS cor0
----
53
64
65
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + + ( + col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - 17 + col1 FROM tab2
----
0
14
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + 38 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT ALL - col1 * col0 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + + col1 + - 16 * + 99 FROM tab0 AS cor0
----
-1487
-1493
-1498
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col1 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL cor0.col0 * - tab2.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 5bf5dc8f967b91d3fa0086e9c50c21a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT DISTINCT + cor0.col1 DIV 52 FROM tab2, tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT + cor0.col1 / 52 FROM tab2, tab2 AS cor0
----
0
1
query I rowsort
SELECT - col2 * cor0.col2 * - col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT + col2 + col2 * 40 AS col1 FROM tab2 AS cor0
----
1066
1107
1558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4620
SELECT ALL ( tab2.col1 ) + - CAST( NULL AS SIGNED ) * - 36 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL ( tab2.col1 ) + - CAST ( NULL AS INTEGER ) * - 36 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 24 * tab2.col0 + col2 * + 50 AS col0 FROM tab2
----
1518
3172
3796
query I rowsort
SELECT ALL ( col1 ) + - col0 AS col1 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL - - 79 * + col0 - col0 AS col2 FROM tab1 cor0
----
234
4992
6240
query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 - ( col1 + col0 ) FROM tab2 AS cor0
----
-1540
-767
-813
query I rowsort
SELECT + + col2 - - col2 AS col0 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col1 FROM tab2 cor0
----
84
84
84
query I rowsort
SELECT ALL + 2 * - col2 FROM tab1 cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-4628
SELECT DISTINCT + col0 DIV - col0 - - col1 * col0 AS col2 FROM tab2 AS cor0
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT + col0 / - col0 - - col1 * col0 AS col2 FROM tab2 AS cor0
----
1342
216
4601
query I rowsort
SELECT 27 - - col2 AS col2 FROM tab0 AS cor0
----
109
28
60
query I rowsort
SELECT ALL - cor1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL - col1 * ( - col1 ) AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col1 * + ( col0 ) * col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT cor0.col2 * - 23 FROM tab1 AS cor0
----
-1242
-1311
-2208
query I rowsort
SELECT + col1 * 83 * 40 AS col0 FROM tab0 AS cor0
----
285520
302120
322040
query I rowsort
SELECT + - col0 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL + 10 * - 15 FROM tab1 AS cor0
----
-150
-150
-150
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT - - cor0.col2 * + ( col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1128
-490
-7830
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col2 AS REAL ) + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT ALL - ( + col2 ) DIV + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL - ( + col2 ) / + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT DISTINCT + + 2 * 43 - - col0 FROM tab2 AS cor0
----
164
165
93
query I rowsort
SELECT + + 57 * col2 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT ( - col1 ) + + col0 * + ( - col1 + - col1 ) FROM tab0 AS cor0
----
-16289
-4214
-6887
query I rowsort
SELECT DISTINCT - col2 * + 30 AS col2 FROM tab1
----
-1620
-1710
-2880
query I rowsort
SELECT DISTINCT 40 FROM tab0, tab2, tab0 AS cor0, tab1
----
40
query I rowsort
SELECT ALL col1 + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 - + col1 col1 FROM tab1 cor0
----
-1165
-1376
-523
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * col2 col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - + ( + 87 ) * col1 AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT ALL - ( + cor0.col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4652
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + ( col0 ) + col1 * - 87 FROM tab1 AS cor0
----
-1051
-2259
-806
query I rowsort
SELECT ALL ( - col2 ) * + cor0.col1 + + 23 AS col0 FROM tab0 cor0
----
-2815
-74
-7439
query I rowsort
SELECT + 44 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * 89 + col0 col1 FROM tab0 cor0
----
-7630
-8010
-8598
query I rowsort
SELECT DISTINCT + col2 * - 65 AS col1 FROM tab2 AS cor0
----
-1690
-1755
-2470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col1 col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + ( col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + + 28 * - col1 * - 92 FROM tab0 AS cor0
----
221536
234416
249872
query I rowsort
SELECT ALL cor0.col1 + + cor0.col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT + 89 DIV col1 col1 FROM tab2 AS cor0
----
1
2
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4664
SELECT + 89 / col1 col1 FROM tab2 AS cor0
----
1
2
5
query I rowsort
SELECT - ( 85 ) AS col0 FROM tab1
----
-85
-85
-85
query I rowsort
SELECT 2 * - col0 + + col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT 28 + - col1 AS col0 FROM tab1
----
15
18
2
query I rowsort
SELECT - 53 + col0 * - col0 AS col1 FROM tab0
----
-1278
-629
-7974
query I rowsort
SELECT DISTINCT + col0 - 1 AS col2 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT ALL - col0 + + col0 * - 47 FROM tab2 AS cor0
----
-336
-3744
-3792
query I rowsort
SELECT - col0 + - 89 FROM tab0 AS cor0
----
-113
-124
-178
query I rowsort
SELECT ALL + col0 + 96 * col1 + + col2 FROM tab2 AS cor0
----
1749
3010
5768
query I rowsort
SELECT ALL + col0 * - ( - col2 ) * col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4674
SELECT ALL col0 - CAST( NULL AS SIGNED ) * 16 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL col0 - CAST ( NULL AS INTEGER ) * 16 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * 37 + - col1 AS col1 FROM tab2 cor0
----
-1021
-1030
-1423
query I rowsort
SELECT ALL - col1 * col1 + col0 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT + ( col1 + - col1 ) * col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - tab0.col1 + - col1 * col2 * - 39 AS col1 FROM tab0
----
110596
290927
3686
query I rowsort
SELECT DISTINCT + 45 + col2 * + col0 AS col1 FROM tab1
----
207
3693
7725
onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT ALL - - cor0.col2 + + 49 DIV - col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL - - cor0.col2 + + 49 / - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + + cor0.col0 * - ( - col2 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 + - ( + col2 + - cor0.col2 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col0 * + 63 + - col0 AS col2 FROM tab0 AS cor0
----
-1536
-2240
-5696
query I rowsort
SELECT DISTINCT + col2 + - col0 * + col2 AS col1 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ALL + + cor1.col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + col2 + ( + col2 ) AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT - cor0.col0 * - col0 + - col1 * col0 FROM tab2 AS cor0
----
-168
1482
4898
query I rowsort
SELECT ALL - - col1 + - 44 FROM tab2 AS cor0
----
-13
-27
15
query I rowsort
SELECT 28 * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a332cfd25dcf64ec1aac7d898652e988
query I rowsort
SELECT - col1 + col1 + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col1 * col1 - - col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4692
SELECT CAST( 17 AS SIGNED ) + - col1 col2 FROM tab1 cor0
----
-9
4
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4692
SELECT CAST ( 17 AS INTEGER ) + - col1 col2 FROM tab1 cor0
----
-9
4
7
query I rowsort
SELECT ALL - + ( col2 ) + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 72 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-568
-6
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT col0 DIV 96 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4695
SELECT col0 / 96 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * col0 * 48 FROM tab1
----
-175104
-368640
-7776
query I rowsort
SELECT - col2 + col2 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 * col2 + col2 * - 50 AS col2 FROM tab0 AS cor0
----
-11398
-2442
-85
query I rowsort
SELECT + ( - col1 ) + col1 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col2 * cor0.col0 + + col0 * ( 95 ) AS col1 FROM tab0 AS cor0
----
15753
3072
3360
query I rowsort
SELECT DISTINCT - 2 FROM tab2, tab2 AS cor0
----
-2
query I rowsort
SELECT ALL col2 + tab2.col1 AS col2 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 - cor1.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-28
11
14
query I rowsort
SELECT ALL - - 95 * cor0.col2 + + 0 * col1 AS col1 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT ALL - col0 + + col2 * 54 FROM tab1 AS cor0
----
2913
3014
5104
query I rowsort
SELECT DISTINCT + - 95 * 14 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1330
query I rowsort
SELECT DISTINCT cor1.col2 * + 58 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1914
4756
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - - col0 + - ( + 11 * col0 + + col0 ) FROM tab0 AS cor0
----
-264
-385
-979
query I rowsort
SELECT DISTINCT - ( - col2 ) * col1 AS col2 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4711
SELECT ALL + col0 + CAST( NULL AS SIGNED ) / + 7 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-4711
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) / + 7 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 + ( - col2 ) FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + - col0 * + 9 + + col0 * col2 * + col2 FROM tab0 AS cor0
----
-280
25920
597635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 60 - col0 col2 FROM tab0 AS cor0
----
-2004
-5009
-95
query I rowsort
SELECT + + col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - col0 + - 28 col2 FROM tab2 AS cor0
----
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT - col1 * - col1 + col0 DIV col2 AS col1 FROM tab1
----
101
169
676
skipif mysql # not compatible
query I rowsort label-4718
SELECT - col1 * - col1 + col0 / col2 AS col1 FROM tab1
----
101
169
676
query I rowsort
SELECT DISTINCT 60 * + tab2.col1 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
1020
1860
3540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4720
SELECT DISTINCT col1 * + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT col1 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - - col1 + col0 + col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT + + 39 AS col0 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT 7 * col2 * col2 AS col2 FROM tab0 AS cor0
----
47068
7
7623
onlyif mysql # use DIV operator for integer division
query I rowsort label-4724
SELECT - col0 + 55 DIV col1 FROM tab1 AS cor0
----
-1
-59
-76
skipif mysql # not compatible
query I rowsort label-4724
SELECT - col0 + 55 / col1 FROM tab1 AS cor0
----
-1
-59
-76
query I rowsort
SELECT - - 86 * + col2 * + 45 AS col0 FROM tab2 AS cor0
----
100620
104490
147060
query I rowsort
SELECT - + 8 + col0 * - ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1
4088
6392
query I rowsort
SELECT - + col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-4728
SELECT ALL - + cor0.col1 DIV - col0 - 4 * + 52 FROM tab0 AS cor0
----
-205
-206
-207
skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL - + cor0.col1 / - col0 - 4 * + 52 FROM tab0 AS cor0
----
-205
-206
-207
onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT ALL + 90 * cor0.col1 + + ( col0 ) DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
7741
8191
8731
skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + 90 * cor0.col1 + + ( col0 ) / cor0.col0 AS col2 FROM tab0 AS cor0
----
7741
8191
8731
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 76 + col0 col1 FROM tab0 AS cor0
----
100
111
165
onlyif mysql # use DIV operator for integer division
query I rowsort label-4731
SELECT ALL + - 59 DIV 49 + - col1 col0 FROM tab1 AS cor0
----
-11
-14
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL + - 59 / 49 + - col1 col0 FROM tab1 AS cor0
----
-11
-14
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-4732
SELECT DISTINCT col1 + - 84 * col2 DIV ( cor0.col1 ) col1 FROM tab1 AS cor0
----
-148
-468
-607
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT col1 + - 84 * col2 / ( cor0.col1 ) col1 FROM tab1 AS cor0
----
-148
-468
-607
query I rowsort
SELECT DISTINCT - - 69 * + col2 + - cor0.col1 * 13 AS col1 FROM tab0 AS cor0
----
-1192
1159
4475
query I rowsort
SELECT ALL + - col1 + + col1 * - col1 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
10965
25916
90447
query I rowsort
SELECT ALL - 48 * col1 FROM tab1 AS cor0
----
-1248
-480
-624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col2 col1 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4737
SELECT + - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4737
SELECT + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col1 * - 47 + + col2 * + col0 FROM tab1 AS cor0
----
-1060
3178
7069
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 63 + col1 col1 FROM tab2 AS cor0
----
122
80
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4740
SELECT CAST( col2 AS SIGNED ) * cor0.col1 * col0 FROM tab1 cor0
----
36480
4212
99840
skipif mysql # not compatible
query I rowsort label-4740
SELECT CAST ( col2 AS INTEGER ) * cor0.col1 * col0 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab2 cor0
----
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT + col2 DIV - col1 - col2 FROM tab2
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-4742
SELECT + col2 / - col1 - col2 FROM tab2
----
-26
-27
-40
query I rowsort
SELECT ALL 53 + + cor0.col0 FROM tab2 AS cor0
----
131
132
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-4744
SELECT DISTINCT + + CAST( col1 AS SIGNED ) DIV cor0.col1 + CAST( 57 AS SIGNED ) FROM tab0 AS cor0
----
58
skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) / cor0.col1 + CAST ( 57 AS INTEGER ) FROM tab0 AS cor0
----
58
query I rowsort
SELECT ALL - - 53 + + ( + col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1481
-593
-784
query I rowsort
SELECT + col0 * ( - col1 * - ( col0 ) ) FROM tab1 cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT + 44 DIV + ( + col0 ) AS col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4747
SELECT + 44 / + ( + col0 ) AS col0 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT - col1 * col0 + col1 AS col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT cor1.col0 FROM tab1, tab1 cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL - 49 * col0 AS col0 FROM tab2 AS cor0
----
-343
-3822
-3871
query I rowsort
SELECT - cor0.col2 + - col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830
query I rowsort
SELECT ALL col1 + + ( + 62 ) FROM tab1 AS cor0
----
72
75
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT DISTINCT col0 DIV + col0 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1535
647
838
skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT col0 / + col0 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1535
647
838
query I rowsort
SELECT DISTINCT - col1 * 6 FROM tab0 AS cor0
----
-516
-546
-582
query I rowsort
SELECT - col2 * ( col2 ) + - cor0.col2 * + 64 AS col1 FROM tab1 AS cor0
----
-15360
-6372
-6897
query I rowsort
SELECT ALL + cor0.col0 + - 51 + - cor0.col1 FROM tab1 AS cor0
----
-74
16
3
query I rowsort
SELECT ALL 12 + - col0 * col1 FROM tab0
----
-2052
-3383
-8087
query I rowsort
SELECT DISTINCT - col2 + tab2.col0 * + 8 AS col0 FROM tab2
----
29
594
598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4761
SELECT + CAST( - 46 AS SIGNED ) * + cor1.col0 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 389525de351be0d16095cecadff18165
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4761
SELECT + CAST ( - 46 AS INTEGER ) * + cor1.col0 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 389525de351be0d16095cecadff18165
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4762
SELECT ALL - ( + col2 ) + CAST( - 97 AS SIGNED ) AS col1 FROM tab2
----
-123
-124
-135
skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL - ( + col2 ) + CAST ( - 97 AS INTEGER ) AS col1 FROM tab2
----
-123
-124
-135
query I rowsort
SELECT DISTINCT tab0.col0 + + 35 AS col0 FROM tab0, tab0 AS cor0
----
124
59
70
query I rowsort
SELECT + col0 * - col2 + col1 * + tab1.col0 * - col2 AS col0 FROM tab1
----
-107520
-40128
-4374
query I rowsort
SELECT ALL col0 * + 96 FROM tab0 AS cor0
----
2304
3360
8544
query I rowsort
SELECT ALL - cor0.col1 * - 66 * col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
19153
229824
63433
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 - cor0.col1 col1 FROM tab2 AS cor0
----
-17
141
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4768
SELECT cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4768
SELECT cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - ( - cor0.col2 ) + - col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4770
SELECT ALL + 18 + - cor0.col0 DIV col1 AS col2 FROM tab2 cor0
----
14
17
18
skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + 18 + - cor0.col0 / col1 AS col2 FROM tab2 cor0
----
14
17
18
query I rowsort
SELECT - ( - col2 ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - ( cor0.col0 ) + - cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to a0bd6fe4ff31b307a7166ced74c5075b
query I rowsort
SELECT + ( col1 ) * col1 + col2 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT - - 30 FROM tab0, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT - col2 * cor0.col2 * col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4776
SELECT + + col0 * CAST( NULL AS SIGNED ) - cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4776
SELECT + + col0 * CAST ( NULL AS INTEGER ) - cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT - + col2 * col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL col2 + ( + cor0.col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT ALL - col2 + + 19 * + cor0.col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-101
-20
-52
skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL - col2 + + 19 * + cor0.col2 / - col2 AS col2 FROM tab0 AS cor0
----
-101
-20
-52
query I rowsort
SELECT ALL col2 + col1 * col2 AS col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL - 5 * + col1 + + ( col2 ) FROM tab1
----
-76
31
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT 48 + - tab2.col0 * - col0 + 86 DIV - col1 FROM tab2
----
6131
6284
95
skipif mysql # not compatible
query I rowsort label-4783
SELECT 48 + - tab2.col0 * - col0 + 86 / - col1 FROM tab2
----
6131
6284
95
query I rowsort
SELECT - col2 + - 42 * col0 + + col2 * - 1 * + col2 AS col2 FROM tab2 AS cor0
----
-1050
-3978
-4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-4785
SELECT ALL - 41 DIV col0 FROM tab2
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - 41 / col0 FROM tab2
----
-5
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT cor1.col0 * 37 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
111
2368
2960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT ALL + CAST( - col0 AS SIGNED ) * col1 AS col1 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + CAST ( - col0 AS INTEGER ) * col1 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - ( cor0.col2 ) * 61 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c49e1705be42f6df58cd4d1024041e53
onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT DISTINCT - cor0.col2 DIV cor0.col1 FROM tab2, tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - cor0.col2 / cor0.col1 FROM tab2, tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT - - cor0.col1 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT + 7 * col0 AS col0 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT 47 * col0 - col1 FROM tab2 AS cor0
----
298
3607
3696
query I rowsort
SELECT 84 - col1 AS col2 FROM tab1 cor0
----
58
71
74
query I rowsort
SELECT + col0 - cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT + - col1 * - cor0.col0 + + 61 AS col2 FROM tab2 AS cor0
----
1404
278
4663
query I rowsort
SELECT - col0 * col0 + - 36 * + col0 + + col0 FROM tab0 AS cor0
----
-11036
-1416
-2450
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4798
SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 12 ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT - - col2 - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4801
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) + ( col0 ) col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) + ( col0 ) col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col1 * 51 + 83 AS col0 FROM tab0 AS cor0
----
4469
4724
5030
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col2 + - ( - col0 ) * - cor0.col0 col2 FROM tab1 AS cor0
----
-847
2816
2907
onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT ALL + col1 DIV + col2 + col0 + cor0.col0 DIV col1 AS col0 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + col1 / + col2 + col0 + cor0.col0 / col1 AS col0 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT - col1 * - col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-4806
SELECT + col1 + - 74 DIV - ( col1 ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4806
SELECT + col1 + - 74 / - ( col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + 63 + col2 FROM tab0
----
145
64
96
query I rowsort
SELECT ALL col1 + + col0 * ( col1 ) FROM tab1
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT col1 * col2 + + col1 DIV col0 AS col0 FROM tab0 cor0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-4809
SELECT col1 * col2 + + col1 / col0 AS col0 FROM tab0 cor0
----
2841
7463
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 + - 91 col1 FROM tab2 cor0
----
-91
-91
-91
query I rowsort
SELECT - col2 * 58 AS col1 FROM tab1 AS cor0
----
-3132
-3306
-5568
onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT col0 + - col2 DIV col2 FROM tab1 cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-4812
SELECT col0 + - col2 / col2 FROM tab1 cor0
----
2
63
79
query I rowsort
SELECT DISTINCT - 89 FROM tab1, tab2 AS cor0
----
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT - ( + cor0.col1 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4814
SELECT - ( + cor0.col1 ) / - col0 AS col1 FROM tab0 AS cor0
----
1
2
3
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22
query I rowsort
SELECT DISTINCT 70 * 73 AS col1 FROM tab2 AS cor0
----
5110
query I rowsort
SELECT ALL + 40 + - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1494
-606
-797
query I rowsort
SELECT + + 93 + col2 AS col2 FROM tab1 AS cor0
----
147
150
189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4819
SELECT ALL - 43 + - ( col1 ) * CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-140
-2881
-7505
skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - 43 + - ( col1 ) * CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-140
-2881
-7505
query I rowsort
SELECT + ( - col2 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * col0 + + 57 - col0 FROM tab0 AS cor0
----
-1203
-543
-7953
query I rowsort
SELECT + + 97 + ( col0 ) * - cor0.col0 AS col0 FROM tab0 cor0
----
-1128
-479
-7824
query I rowsort
SELECT ALL + - 63 + - col1 AS col1 FROM tab2 AS cor0
----
-122
-80
-94
query I rowsort
SELECT DISTINCT - + col2 - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + tab2.col0 * - col0 * col1 AS col2 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL + 27 AS col2 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT DISTINCT + - 30 FROM tab1, tab0 AS cor0, tab2, tab2 cor1
----
-30
query I rowsort
SELECT + 15 - - col1 FROM tab0
----
101
106
112
query I rowsort
SELECT ALL - ( - col2 + col1 ) * - 61 FROM tab0
----
3233
549
5856
query I rowsort
SELECT - col0 * + tab1.col0 * ( col1 ) AS col1 FROM tab1
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col0 ) + col0 col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL col0 - - col1 * col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT col1 + + col0 + + 15 AS col1 FROM tab0 AS cor0
----
125
147
195
onlyif mysql # use DIV operator for integer division
query I rowsort label-4835
SELECT 65 DIV col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4835
SELECT 65 / col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 40 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
-184080
-53720
-8680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4837
SELECT - 91 + col1 DIV col0 FROM tab1 AS cor0
----
-83
-91
-91
skipif mysql # not compatible
query I rowsort label-4837
SELECT - 91 + col1 / col0 FROM tab1 AS cor0
----
-83
-91
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-4838
SELECT - - 95 DIV + cor0.col1 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4838
SELECT - - 95 / + cor0.col1 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT ALL + 44 + col2 FROM tab1 AS cor0
----
101
140
98
query I rowsort
SELECT + - col0 * col0 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1152
-15842
-2450
query I rowsort
SELECT + 15 * cor0.col1 + col1 FROM tab2 AS cor0
----
272
496
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT - + col0 + - col0 * col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
-4
-75
-90
skipif mysql # not compatible
query I rowsort label-4842
SELECT - + col0 + - col0 * col1 / + col2 AS col1 FROM tab1 AS cor0
----
-4
-75
-90
query I rowsort
SELECT DISTINCT - - ( - col1 ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - cor0.col2 * cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4845
SELECT - - col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4845
SELECT - - col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + ( cor0.col2 ) * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL + + col1 * - 78 AS col0 FROM tab0 AS cor0
----
-6708
-7098
-7566
query I rowsort
SELECT ALL - cor0.col1 * + 89 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT + - 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * col0 col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT 94 - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a1c8718c6405545e256bf2a85477f3ce
query I rowsort
SELECT ALL + 47 - 12 * col1 FROM tab1 AS cor0
----
-109
-265
-73
query I rowsort
SELECT cor0.col1 - - ( cor0.col1 ) * ( col2 ) * col0 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT col0 * - ( + col0 ) FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - ( 59 ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
-59
query I rowsort
SELECT 47 * 95 AS col0 FROM tab0
----
4465
4465
4465
query I rowsort
SELECT DISTINCT + 29 + + col1 AS col2 FROM tab0
----
115
120
126
query I rowsort
SELECT + ( col1 ) + col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + 30 * col1 * - 62 AS col2 FROM tab2 cor0
----
-109740
-31620
-57660
query I rowsort
SELECT ALL + 48 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT col0 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 78 col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 78 col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL tab0.col2 * + col0 + + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT + 65 + col2 FROM tab0 AS cor0
----
147
66
98
query I rowsort
SELECT DISTINCT col1 * - col0 * - ( 76 ) AS col0 FROM tab1 AS cor0
----
48640
5928
79040
query I rowsort
SELECT ALL + 44 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT + + 30 AS col0 FROM tab2 cor0
----
30
30
30
query I rowsort
SELECT ALL - 16 + + col0 * - ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-118841
-49552
-720827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT 15 + col0 AS col1 FROM tab0 AS cor0
----
104
39
50
query I rowsort
SELECT DISTINCT col2 * - col2 + ( ( + col2 ) ) * 28 * col1 AS col2 FROM tab2 AS cor0
----
16644
22707
42276
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 * - col1 col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT 55 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + cor0.col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT 63 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1381
-613
-666
query I rowsort
SELECT 3 - col1 FROM tab0 AS cor0
----
-83
-88
-94
query I rowsort
SELECT DISTINCT - 16 * + col1 FROM tab2 AS cor0
----
-272
-496
-944
query I rowsort
SELECT DISTINCT + - col2 * + col1 * col0 AS col1 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - 17 * col2 + col1 FROM tab2 AS cor0
----
-383
-428
-629
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4881
SELECT - CAST( NULL AS SIGNED ) / col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4881
SELECT - CAST ( NULL AS INTEGER ) / col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4882
SELECT ( + 14 + col0 ) DIV tab1.col1 FROM tab1
----
0
7
7
skipif mysql # not compatible
query I rowsort label-4882
SELECT ( + 14 + col0 ) / tab1.col1 FROM tab1
----
0
7
7
query I rowsort
SELECT - cor0.col0 * col2 - - col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col2 AS REAL ) + cor0.col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * - 66 AS col1 FROM tab2 AS cor0
----
-462
-5148
-5214
query I rowsort
SELECT ALL - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL + - cor0.col0 * col2 + col2 AS col1 FROM tab1 cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT ALL - - col2 DIV + 69 + - col0 FROM tab0 AS cor0
----
-24
-35
-88
skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - - col2 / + 69 + - col0 FROM tab0 AS cor0
----
-24
-35
-88
query I rowsort
SELECT + 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT col0 DIV 92 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4890
SELECT col0 / 92 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4891
SELECT - ( 12 + - col1 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4891
SELECT - ( 12 + - col1 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * ( tab0.col1 ) AS col1 FROM tab0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4893
SELECT - CAST( NULL AS SIGNED ) * 92 - + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4893
SELECT - CAST ( NULL AS INTEGER ) * 92 - + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 + 26 - 53 FROM tab2, tab2 AS cor0
----
9 values hashing to 7376d7d6c3ff9f4f02d6871d5a643021
onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT + col0 DIV + 68 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4895
SELECT + col0 / + 68 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT - 49 * ( col2 ) * - col2 FROM tab2
----
33124
35721
70756
query I rowsort
SELECT - 0 * ( tab1.col0 ) * - col0 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 * ( col1 ) AS col1 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab0, tab1, tab2 AS cor0
----
26
query I rowsort
SELECT + 44 + - col0 * ( + col0 ) * col1 FROM tab1 AS cor0
----
-190
-40916
-83156
query I rowsort
SELECT 6 + - tab0.col0 FROM tab0
----
-18
-29
-83
query I rowsort
SELECT + 81 + - col1 FROM tab2 AS cor0
----
22
50
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * cor0.col2 col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + col2 + col0 * ( 48 ) + col1 AS col1 FROM tab0 AS cor0
----
1271
1778
4445
query I rowsort
SELECT 35 * + col1 + col0 - + 85 * - col0 AS col1 FROM tab2
----
1687
7389
8773
query I rowsort
SELECT + 12 + + col1 FROM tab0
----
103
109
98
query I rowsort
SELECT ALL col2 + + tab2.col2 * - ( tab2.col0 ) + - tab2.col0 AS col0 FROM tab2
----
-169
-2080
-3043
query I rowsort
SELECT ALL + 29 * + col0 FROM tab2 AS cor0
----
203
2262
2291
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4909
SELECT + - col0 * + col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4909
SELECT + - col0 * + col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - 15 ) FROM tab2, tab2 AS cor0, tab1 cor1
----
-15
query I rowsort
SELECT 64 * + col0 AS col1 FROM tab2 AS cor0
----
448
4992
5056
query I rowsort
SELECT ALL - + col0 + - 91 FROM tab0 AS cor0
----
-115
-126
-180
query I rowsort
SELECT ALL + + col1 * + ( + cor0.col1 ) * col2 AS col1 FROM tab2 cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT - - cor0.col1 - + 43 * - col2 AS col2 FROM tab1 AS cor0
----
2348
2461
4141
query I rowsort
SELECT ALL - + col0 + + cor0.col0 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + col0 * cor0.col0 + + col0 * cor0.col2 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT DISTINCT + col1 + - col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT + 97 + col1 * col0 + 98 * col0 FROM tab0
----
16918
4513
6922
query I rowsort
SELECT 8 + col0 FROM tab0
----
32
43
97
query I rowsort
SELECT DISTINCT - col1 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col0 + + 24 FROM tab2 cor0
----
-54
-55
17
query I rowsort
SELECT ALL 2 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT - 28 + + 99 * - col2 FROM tab0 cor0
----
-127
-3295
-8146
query I rowsort
SELECT ALL - 4 * 4 * col2 FROM tab2 AS cor0
----
-416
-432
-608
query I rowsort
SELECT ALL col0 + + col2 * col2 + col1 FROM tab0 AS cor0
----
1199
133
6904
query I rowsort
SELECT col1 * + col2 - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT + 75 * col1 + + col0 + col2 DIV + col2 FROM tab1 cor0
----
1056
1954
815
skipif mysql # not compatible
query I rowsort label-4927
SELECT + 75 * col1 + + col0 + col2 / + col2 FROM tab1 cor0
----
1056
1954
815
onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT DISTINCT + col1 DIV 15 AS col1 FROM tab2
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT + col1 / 15 AS col1 FROM tab2
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT DISTINCT - col2 * col1 + + col2 DIV - 66 col2 FROM tab0 AS cor0
----
-2838
-7463
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - col2 * col1 + + col2 / - 66 col2 FROM tab0 AS cor0
----
-2838
-7463
-97
query I rowsort
SELECT DISTINCT - - col2 + col0 * + col0 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT ALL + col1 * - col1 + + col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT - 59 * + col0 FROM tab0 cor0
----
-1416
-2065
-5251
query I rowsort
SELECT ALL 9 + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1239
-1395
-561
query I rowsort
SELECT DISTINCT - col1 + + 79 * + col0 * 3 FROM tab1 AS cor0
----
15158
18947
685
query I rowsort
SELECT 99 * col2 AS col2 FROM tab2 AS cor0
----
2574
2673
3762
query I rowsort
SELECT ALL + ( + cor0.col2 ) * col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL col0 + cor0.col0 * - ( + col0 ) FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT + 37 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT - col0 + ( col1 ) AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - tab1.col1 * 41 + + tab1.col1 * - col0 AS col2 FROM tab1
----
-1050
-1144
-1573
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4941
SELECT - col1 + + CAST( NULL AS SIGNED ) * - tab0.col1 + col2 / 71 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4941
SELECT - col1 + + CAST ( NULL AS INTEGER ) * - tab0.col1 + col2 / 71 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + + col2 * col0 * col0 + col2 FROM tab2
----
1381
158269
237213
query I rowsort
SELECT + 51 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT ALL - tab2.col1 + ( - tab2.col1 ) AS col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT DISTINCT col2 + 49 * col1 FROM tab2
----
1546
2917
871
query I rowsort
SELECT DISTINCT col1 + - 65 AS col1 FROM tab0
----
21
26
32
query I rowsort
SELECT ALL - 92 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
query I rowsort
SELECT col1 * - 37 FROM tab1
----
-370
-481
-962
query I rowsort
SELECT + 58 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ALL col1 + ( - col0 ) FROM tab0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4951
SELECT ALL - col2 * CAST( - col2 AS SIGNED ) * col2 + CAST( - col0 AS SIGNED ) FROM tab1
----
157461
185129
884656
skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL - col2 * CAST ( - col2 AS INTEGER ) * col2 + CAST ( - col0 AS INTEGER ) FROM tab1
----
157461
185129
884656
onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT - col0 + ( col0 ) DIV col1 + col2 * + col1 FROM tab2
----
1457
571
830
skipif mysql # not compatible
query I rowsort label-4952
SELECT - col0 + ( col0 ) / col1 + col2 * + col1 FROM tab2
----
1457
571
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT ALL + col0 + - col1 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + col0 + - col1 / cor0.col0 AS col2 FROM tab0 AS cor0
----
21
33
88
query I rowsort
SELECT DISTINCT + col0 - - cor0.col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ( col1 ) * + col1 + - 97 + 67 * - col0 * col1 FROM tab2
----
-13675
-304950
-89789
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4956
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - col2 + - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT + CAST ( NULL AS REAL ) / - col2 + - col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 23 * col2 + col0 AS col1 FROM tab1 cor0
----
1245
1375
2288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 + - cor0.col0 col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 + - cor0.col0 col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - ( ( - col1 ) ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col0 AS REAL ) + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col2 + + 78 * - col2 AS col2 FROM tab0 cor0
----
-2541
-6314
-77
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 + - cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
1377
279
4720
query I rowsort
SELECT DISTINCT + - ( col0 ) + + col0 * cor0.col0 FROM tab0 AS cor0
----
1190
552
7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 34 col1 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT ( - col2 ) + cor0.col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + 55 * col0 FROM tab2
----
385
4290
4345
query I rowsort
SELECT DISTINCT - 29 - col2 FROM tab2 AS cor0
----
-55
-56
-67
query I rowsort
SELECT 54 * + col2 AS col2 FROM tab0 AS cor0
----
1782
4428
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT ALL + col0 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + col0 / - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * col2 col2 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT DISTINCT ( col0 ) * - 70 FROM tab0 AS cor0
----
-1680
-2450
-6230
query I rowsort
SELECT ALL + - col2 + col1 * 65 AS col2 FROM tab1 AS cor0
----
1636
593
749
query I rowsort
SELECT DISTINCT + cor0.col2 + ( ( cor0.col1 ) ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col1 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - - cor0.col1 * 0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + col2 - 75 FROM tab0 AS cor0
----
-42
-74
7
query I rowsort
SELECT ALL + + col0 - + 4 * col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-13545
-32307
-8232
query I rowsort
SELECT + col0 * col2 - - col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT ALL + - col0 + 0 * - col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col0 * col1 col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL col2 * + 27 FROM tab2 AS cor0
----
1026
702
729
query I rowsort
SELECT + + col1 * col0 * col1 AS col2 FROM tab0 cor0
----
177504
329315
737009
query I rowsort
SELECT + + col0 * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + + col0 * 41 AS col0 FROM tab0 AS cor0
----
1017
1436
3731
onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT ALL - col1 DIV ( + col0 ) col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - col1 / ( + col0 ) col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 + + col0 col0 FROM tab2 AS cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + col0 * col1 * col1 col2 FROM tab0 AS cor0
----
177542
329353
737047
query I rowsort
SELECT 37 * cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 94de0e41710bf3fdbda3e5ce4b23e12d
query I rowsort
SELECT DISTINCT - tab1.col2 AS col0 FROM tab1, tab0 cor0
----
-54
-57
-96
query I rowsort
SELECT - cor0.col0 * col1 + col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
42
query I rowsort
SELECT col2 * 82 * 58 AS col0 FROM tab0
----
156948
389992
4756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff
query I rowsort
SELECT ALL + ( - col0 ) + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ( 31 + + col1 ) * col0 * ( + tab2.col0 ) FROM tab2
----
299568
3038
547560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4996
SELECT - col2 - - 30 * - tab0.col2 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-201802
-31
-32703
skipif mysql # not compatible
query I rowsort label-4996
SELECT - col2 - - 30 * - tab0.col2 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-201802
-31
-32703
onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT DISTINCT - 85 DIV col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT - 85 / col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT - col1 + col0 * + col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT col0 * col0 + + 47 * - col2 AS col2 FROM tab2
----
-1220
4455
4862
query I rowsort
SELECT ALL + 11 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT - col2 * - col2 + + ( col2 ) AS col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT ( col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col1 FROM tab0 cor0
----
93
93
93
query I rowsort
SELECT ALL tab1.col2 + + col2 AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT 82 + + col1 * - cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-10900
-25865
-90424
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-5007
SELECT ALL + 95 DIV col0 AS col1 FROM tab1
----
1
1
31
skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + 95 / col0 AS col1 FROM tab1
----
1
1
31
query I rowsort
SELECT ALL - col1 + col0 * 54 + + tab0.col0 * + col2 FROM tab0
----
12013
1828
2002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * col1 col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT ALL - col1 * col2 * 65 AS col2 FROM tab1
----
-37050
-81120
-91260
query I rowsort
SELECT - 53 * - col1 FROM tab1
----
1378
530
689
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( tab0.col2 * col0 )
----
query I rowsort
SELECT + col2 * - col1 - + col2 * col1 FROM tab0
----
-14924
-194
-5676
query I rowsort
SELECT DISTINCT - tab1.col1 * col1 AS col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + col2 + + col1 * col2 AS col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT - col1 * col0 + col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT + col1 * - col2 + - col2 FROM tab0
----
-2871
-7544
-98
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + col0
----
query I rowsort
SELECT ALL - col0 * - col0 + - tab0.col1 FROM tab0
----
1128
490
7830
query I rowsort
SELECT ALL col1 + - col0 * tab1.col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( col2 ) < ( NULL )
----
query I rowsort
SELECT + tab2.col1 + tab2.col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL - col0 * tab2.col0 AS col0 FROM tab2
----
-49
-6084
-6241
query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN col1 * + col1 AND col0
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND + col1 + + col1
----
query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 FROM tab1
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT col1 DIV tab1.col0 + + col2 * - col1 * + col1 FROM tab1
----
-16224
-36496
-5700
skipif mysql # not compatible
query I rowsort label-5027
SELECT col1 / tab1.col0 + + col2 * - col1 * + col1 FROM tab1
----
-16224
-36496
-5700
query I rowsort
SELECT tab2.col2 * + col2 - col1 AS col2 FROM tab2
----
1427
617
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT col1 DIV col0 + + col0 AS col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-5029
SELECT col1 / col0 + + col0 AS col0 FROM tab2
----
11
78
79
query I rowsort
SELECT col0 * tab2.col1 * col1 AS col1 FROM tab2
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 + col0 col1 FROM tab2
----
113
196
69
query I rowsort
SELECT + col1 + col2 + col1 AS col1 FROM tab1
----
106
122
77
query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----
query I rowsort
SELECT col0 * col1 FROM tab2 WHERE NULL NOT IN ( tab2.col1 * + col0 + col0 / tab2.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5035
SELECT ALL + col1 DIV + col0 AS col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + col1 / + col0 AS col0 FROM tab2
----
0
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5036
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col0 - + 54 col1 FROM tab1
----
-1094
-132
-694
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col0 - + 54 col1 FROM tab1
----
-1094
-132
-694
query I rowsort
SELECT 79 + col2 AS col2 FROM tab0
----
112
161
80
query I rowsort
SELECT DISTINCT - ( col0 ) - col2 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT ALL 28 DIV - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL 28 / - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT + col0 * col1 * cor0.col0 - col2 FROM tab2 cor0
----
106059
1492
358930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 + col1 * col2 * col0 - 14 * - col2 col2 FROM tab1
----
101104
37214
4965
query I rowsort
SELECT col2 * col1 * + col0 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
121680
54036
6048
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5043
SELECT + 55 + col0 + CAST( 31 + - col1 AS SIGNED ) FROM tab0 cor0
----
24
24
84
skipif mysql # not compatible
query I rowsort label-5043
SELECT + 55 + col0 + CAST ( 31 + - col1 AS INTEGER ) FROM tab0 cor0
----
24
24
84
query I rowsort
SELECT + - 43 * + col0 - + ( 39 ) AS col1 FROM tab2 AS cor0
----
-3393
-340
-3436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * cor0.col1 + 28 + + col0 col0 FROM tab2 AS cor0
----
1640
753
872
query I rowsort
SELECT DISTINCT + + col2 - col2 * - 33 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT DISTINCT + 95 * + col2 + - col2 * - col1 FROM tab0 AS cor0
----
15252
192
5973
query I rowsort
SELECT + ( + col1 ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + - col1 + + col0 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT - col2 * col0 - + col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + - col2 + - col1 * ( + col1 ) FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT + col1 * col2 - 0 AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + + col2 col1 FROM tab2 AS cor0
----
100
88
89
query I rowsort
SELECT 56 + - col2 FROM tab1 AS cor0
----
-1
-40
2
query I rowsort
SELECT ALL + col0 + col0 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT DISTINCT 64 * - col0 + + col1 FROM tab0 cor0
----
-1450
-2143
-5605
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( cor0.col2 ) col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - + col2 * + ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT - col0 * col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT 86 * - col0 FROM tab2 AS cor0
----
-602
-6708
-6794
query I rowsort
SELECT + + 23 * col2 - col0 FROM tab1 AS cor0
----
1239
1247
2128
query I rowsort
SELECT ALL - - col0 * + cor0.col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - col2 + col2 + - col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT 31 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1256
607
7952
query I rowsort
SELECT ALL + - col0 * col1 - + col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT + 77 * - col2 FROM tab1 AS cor0
----
-4158
-4389
-7392
query I rowsort
SELECT + - col0 + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - col0 + + col0 + + cor0.col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5070
SELECT DISTINCT - col2 DIV - cor0.col2 + + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - col2 / - cor0.col2 + + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT - ( col1 ) + - col0 AS col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT + col2 + 38 FROM tab1
----
134
92
95
query I rowsort
SELECT + ( 90 + col0 ) FROM tab1
----
154
170
93
query I rowsort
SELECT DISTINCT - 23 * + col0 * + tab1.col1 AS col0 FROM tab1
----
-14720
-1794
-23920
onlyif mysql # use DIV operator for integer division
query I rowsort label-5075
SELECT col2 + col2 DIV col1 + - col0 FROM tab0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-5075
SELECT col2 + col2 / col1 + - col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT ( - col1 ) + tab0.col0 FROM tab0
----
-2
-62
query I rowsort
SELECT DISTINCT + col2 + + col0 + + col1 * + col2 FROM tab0
----
133
2895
7633
query I rowsort
SELECT DISTINCT + - ( - col1 ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - - col2 * - cor0.col0 * cor0.col1 - - col2 * col0 AS col2 FROM tab2 AS cor0
----
-117624
-48032
-5670
query I rowsort
SELECT ALL - 97 + col0 * col1 AS col2 FROM tab0 AS cor0
----
1967
3298
8002
query I rowsort
SELECT col0 * 56 + + 91 AS col2 FROM tab0 AS cor0
----
1435
2051
5075
query I rowsort
SELECT DISTINCT - col2 + - col0 * cor0.col1 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-127
112
1272
query I rowsort
SELECT DISTINCT col1 * col1 + col0 + + col0 FROM tab1 AS cor0
----
228
329
682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5085
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5085
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 - 16 AS col0 FROM tab0 AS cor0
----
-15
17
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5087
SELECT - + CAST( 86 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-2236
-2322
-3268
skipif mysql # not compatible
query I rowsort label-5087
SELECT - + CAST ( 86 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-2236
-2322
-3268
onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT DISTINCT + cor0.col0 * + col0 DIV col0 + col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + cor0.col0 * + col0 / col0 + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - - 53 * 57 + col1 FROM tab1 AS cor0
----
3031
3034
3047
query I rowsort
SELECT ( - col0 ) + + col2 * col0 AS col1 FROM tab1
----
159
3584
7600
query I rowsort
SELECT + col0 + col0 * col1 * - tab0.col2 FROM tab0
----
-3360
-664029
-68088
query I rowsort
SELECT ALL + 19 AS col1 FROM tab0
----
19
19
19
query I rowsort
SELECT DISTINCT + + 65 * cor0.col0 - col2 FROM tab0 AS cor0
----
1527
2274
5703
query I rowsort
SELECT ALL 50 * + col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
176
3210
4013
query I rowsort
SELECT ALL col1 * ( + col1 ) + cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
182
5332
6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT ALL - cor0.col1 + col1 DIV + cor0.col1 col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL - cor0.col1 + col1 / + cor0.col1 col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / col0 col0 FROM tab1 WHERE NULL <> col0 / - col0
----
query I rowsort
SELECT ALL - - col0 * + col2 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT col2 * cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - col1 * + col2 * + col0 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT cor0.col0 * - cor0.col0 * + col1 AS col2 FROM tab0 cor0
----
-118825
-49536
-720811
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----
query I rowsort
SELECT ALL col0 * col1 + col2 * col2 FROM tab2 AS cor0
----
2787
5278
946
query III rowsort
SELECT * FROM tab2 WHERE NULL <> - col1
----
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col1 + - col1 * col0 AS col2 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT col2 * - col1 + + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + col0 * + col2 + col2 AS col0 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT ALL + col2 * - col1 * col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT col1 + - tab2.col2 + col2 AS col2 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5110
SELECT - - col2 + - col0 DIV col0 AS col0 FROM tab1 cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-5110
SELECT - - col2 + - col0 / col0 AS col0 FROM tab1 cor0
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * cor0.col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col2 * col2 FROM tab0 WHERE NOT NULL > NULL AND NOT - col1 >= col0
----
query I rowsort
SELECT ALL - col0 * - 91 AS col2 FROM tab1
----
273
5824
7280
query I rowsort
SELECT cor0.col2 * col2 - - cor0.col1 AS col1 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT + col2 * + 47 + - 83 FROM tab0 AS cor0
----
-36
1468
3771
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col2 - - col2 * - col1 col2 FROM tab0 cor0
----
-132
-14760
-3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT + col2 DIV - col1 + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5117
SELECT + col2 / - col1 + col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT - col1 - - col2 DIV - 74 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-5118
SELECT - col1 - - col2 / - 74 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - - cor0.col1 + - 56 + - 42 AS col1 FROM tab0 AS cor0
----
-1
-12
-7
query I rowsort
SELECT + + 66 AS col1 FROM tab1 AS cor0
----
66
66
66
query I rowsort
SELECT ALL - - cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + + 62 * col0 FROM tab2 AS cor0
----
434
4836
4898
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5123
SELECT ALL - ( - col2 ) * - col0 * + CAST( col1 + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-4536
186124
38532
skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL - ( - col2 ) * - col0 * + CAST ( col1 + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-4536
186124
38532
query I rowsort
SELECT + 45 FROM tab2, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339
query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + ( 17 ) + col0 FROM tab0 AS cor0
----
106
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5127
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - 99 * - 58 FROM tab1 AS cor0
----
-5742
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5129
SELECT + col1 + + col2 * + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
1593
663
868
skipif mysql # not compatible
query I rowsort label-5129
SELECT + col1 + + col2 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
1593
663
868
query I rowsort
SELECT tab1.col2 * + cor0.col1 FROM tab1, tab2 cor0
----
9 values hashing to 24458b87d784ecaf9184f99bd12fb51a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5131
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT col2 * ( + col2 ) AS col0 FROM tab0 cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * ( - col0 ) * col0 col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT col2 * + cor0.col1 + 77 FROM tab1 AS cor0
----
1325
1481
647
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT + col0 DIV col2 + + 93 + + col1 FROM tab0 AS cor0
----
179
185
225
skipif mysql # not compatible
query I rowsort label-5136
SELECT + col0 / col2 + + 93 + + col1 FROM tab0 AS cor0
----
179
185
225
query I rowsort
SELECT + cor0.col1 + 46 * - col0 * col1 AS col2 FROM tab1 AS cor0
----
-29430
-3562
-47827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL 58 * + col2 AS col0 FROM tab0
----
1914
4756
58
query I rowsort
SELECT - 97 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT ALL + tab2.col2 * - col0 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col1 + ( - 44 ) * - col2 FROM tab2 AS cor0
----
1203
1219
1689
onlyif mysql # use DIV operator for integer division
query I rowsort label-5143
SELECT DISTINCT - + cor0.col0 DIV - ( + col1 ) FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT - + cor0.col0 / - ( + col1 ) FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL + - col1 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT 66 + + 96 * cor1.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4060ba51862a5267a7ee8eb011e9afb
query I rowsort
SELECT DISTINCT col1 * + col2 * ( col1 ) FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT - col0 + ( tab0.col0 ) FROM tab0
----
0
0
0
query I rowsort
SELECT - col2 + + 23 AS col1 FROM tab2
----
-15
-3
-4
query I rowsort
SELECT col0 * 48 + 49 FROM tab1
----
193
3121
3889
onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT col0 DIV - 15 AS col0 FROM tab1
----
-4
-5
0
skipif mysql # not compatible
query I rowsort label-5150
SELECT col0 / - 15 AS col0 FROM tab1
----
-4
-5
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT - col0 DIV 63 + 81 + col1 AS col2 FROM tab0
----
167
171
178
skipif mysql # not compatible
query I rowsort label-5151
SELECT - col0 / 63 + 81 + col1 AS col2 FROM tab0
----
167
171
178
query I rowsort
SELECT + col1 * 28 + col1 AS col0 FROM tab0
----
2494
2639
2813
query I rowsort
SELECT + tab2.col0 * col0 * + col0 FROM tab2
----
343
474552
493039
query I rowsort
SELECT ( col0 ) - col1 AS col1 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT ALL + 34 * col1 + col1 DIV col0 FROM tab1 AS cor0
----
340
442
892
skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL + 34 * col1 + col1 / col0 FROM tab1 AS cor0
----
340
442
892
query I rowsort
SELECT ALL + + 25 * - col0 FROM tab1 cor0
----
-1600
-2000
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col2 FROM tab2
----
20
query I rowsort
SELECT 72 + cor0.col0 AS col2 FROM tab1 AS cor0
----
136
152
75
query I rowsort
SELECT ALL col0 + cor0.col0 - + 35 * 96 AS col2 FROM tab2 AS cor0
----
-3202
-3204
-3346
query I rowsort
SELECT ALL + 73 + 32 AS col0 FROM tab2
----
105
105
105
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5161
SELECT DISTINCT + col2 + + col1 * - col2 * CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
3396
664200
68145
skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + col2 + + col1 * - col2 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
3396
664200
68145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + ( - tab2.col2 ) + - col0 * 12 col0 FROM tab2
----
-1024
-138
-988
query I rowsort
SELECT col0 * col1 + - 8 AS col1 FROM tab1 AS cor0
----
1032
632
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT DISTINCT - col2 * - cor0.col1 + 53 DIV col1 AS col2 FROM tab2 AS cor0
----
1534
649
838
skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT - col2 * - cor0.col1 + 53 / col1 AS col2 FROM tab2 AS cor0
----
1534
649
838
query I rowsort
SELECT DISTINCT - 62 + - col1 AS col2 FROM tab1 AS cor0
----
-72
-75
-88
query I rowsort
SELECT + col0 * col1 + + col1 FROM tab0 cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT ALL + 66 DIV - col2 AS col2 FROM tab0 AS cor0
----
-2
-66
0
skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + 66 / - col2 AS col2 FROM tab0 AS cor0
----
-2
-66
0
query I rowsort
SELECT 6 + - col1 FROM tab1 AS cor0
----
-20
-4
-7
query I rowsort
SELECT DISTINCT + col2 * - col0 - col1 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL ( + 10 ) * col0 * ( tab0.col2 ) FROM tab0
----
350
72980
7920
query I rowsort
SELECT DISTINCT - 38 * 7 FROM tab0 AS cor0
----
-266
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5172
SELECT DISTINCT CAST( + 92 AS SIGNED ) FROM tab1 cor0
----
92
skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT CAST ( + 92 AS INTEGER ) FROM tab1 cor0
----
92
query I rowsort
SELECT - - col1 * - col1 * - col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT 40 + + col0 FROM tab0
----
129
64
75
query I rowsort
SELECT DISTINCT tab2.col0 * + tab2.col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 + col1 ) col1 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5177
SELECT DISTINCT CAST( col2 AS SIGNED ) * col2 + - 78 - col0 AS col2 FROM tab0 AS cor0
----
-112
6557
987
skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col2 + - 78 - col0 AS col2 FROM tab0 AS cor0
----
-112
6557
987
query I rowsort
SELECT DISTINCT 3 * col1 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5180
SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT DISTINCT + - col1 DIV col0 + + col2 DIV - 60 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + - col1 / col0 + + col2 / - 60 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT - - ( + col2 ) * + col1 * - col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL + col1 * col1 - - col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL col1 * + col0 * - col0 + + col2 * col1 FROM tab1 AS cor0
----
-40390
-81952
1170
query I rowsort
SELECT DISTINCT 94 * col1 FROM tab2
----
1598
2914
5546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * + 59 col1 FROM tab0 AS cor0
----
-33984
-467339
-72275
query I rowsort
SELECT ( col1 + - col2 ) AS col1 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5188
SELECT + - col0 DIV - 15 FROM tab2 cor0
----
0
5
5
skipif mysql # not compatible
query I rowsort label-5188
SELECT + - col0 / - 15 FROM tab2 cor0
----
0
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5189
SELECT ALL - - cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL - - cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + 2 * + col2 FROM tab2 AS cor0
----
-7
23
59
query I rowsort
SELECT DISTINCT - col1 + + 78 * + cor0.col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
49910
6058
81107
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + ( + col1 ) col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT col0 + tab0.col1 - tab0.col1 * col2 FROM tab0
----
-2728
-7282
35
query I rowsort
SELECT DISTINCT + 92 + col1 * - ( + tab1.col2 ) AS col2 FROM tab1
----
-1156
-1312
-478
query I rowsort
SELECT DISTINCT col0 + col2 + 84 AS col2 FROM tab2
----
118
188
201
query I rowsort
SELECT ALL + col2 + 96 * - col2 FROM tab2 AS cor0
----
-2470
-2565
-3610
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * + col1 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + col0 col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - col2 * ( - ( - col2 ) ) + ( + 50 ) AS col0 FROM tab2 AS cor0
----
-1394
-626
-679
query I rowsort
SELECT 79 + + col2 FROM tab1
----
133
136
175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5201
SELECT + + col1 * CAST( col0 * col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5201
SELECT + + col1 * CAST ( col0 * col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT cor0.col2 * 54 AS col1 FROM tab2 AS cor0
----
1404
1458
2052
query I rowsort
SELECT - 50 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
81 values hashing to ece34ebef3a06d71156ce9f5c546aa60
query I rowsort
SELECT col2 * - col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT 69 + + 85 * - col0 FROM tab0 AS cor0
----
-1971
-2906
-7496
query I rowsort
SELECT - col0 * + 79 AS col0 FROM tab2
----
-553
-6162
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
-42
query I rowsort
SELECT 67 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT DISTINCT + 93 FROM tab1, tab0 cor0
----
93
query I rowsort
SELECT tab2.col1 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + + col0 + col2 + - col2 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col1 * 23 AS col1 FROM tab1 AS cor0
----
230
299
598
onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT DISTINCT + cor0.col2 * col2 + - col0 DIV ( ( cor0.col1 ) * 50 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + cor0.col2 * col2 + - col0 / ( ( cor0.col1 ) * 50 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5214
SELECT CAST( tab0.col0 AS SIGNED ) col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5214
SELECT CAST ( tab0.col0 AS INTEGER ) col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-5215
SELECT DISTINCT + - 52 DIV col0 + + ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
37
57
96
skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT + - 52 / col0 + + ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
37
57
96
query I rowsort
SELECT - 20 * col0 + + col2 AS col1 FROM tab0 cor0
----
-1698
-447
-699
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 + - col1 * + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-103095
-1330
-356928
query I rowsort
SELECT ALL - - 62 * col2 - 1 FROM tab0 AS cor0
----
2045
5083
61
query I rowsort
SELECT DISTINCT + 39 + + cor0.col0 * 35 FROM tab2 AS cor0
----
2769
2804
284
query I rowsort
SELECT + + 88 + - col2 * col1 AS col0 FROM tab0 cor0
----
-2750
-7374
-9
query I rowsort
SELECT DISTINCT col1 + - col1 * col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT + col1 * ( - 79 ) * col0 FROM tab2 AS cor0
----
-106097
-17143
-363558
query I rowsort
SELECT DISTINCT - ( 34 ) AS col0 FROM tab0, tab2 AS cor0
----
-34
query I rowsort
SELECT ALL 86 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT - col1 * col0 * 37 AS col2 FROM tab1 AS cor0
----
-23680
-2886
-38480
query I rowsort
SELECT + 61 * + col0 AS col0 FROM tab0 cor0
----
1464
2135
5429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * - col1 - col1 col2 FROM tab1
----
-140
-182
-364
query I rowsort
SELECT - 95 + cor0.col2 FROM tab2 cor0
----
-57
-68
-69
query I rowsort
SELECT - col0 - + col0 * + cor0.col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + + cor0.col2 * col1 + ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT + col1 + tab1.col2 * - col0 FROM tab1
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT + 85 DIV tab2.col0 + col1 * tab2.col2 FROM tab2
----
1535
647
849
skipif mysql # not compatible
query I rowsort label-5232
SELECT + 85 / tab2.col0 + col1 * tab2.col2 FROM tab2
----
1535
647
849
query I rowsort
SELECT ALL + ( + col0 ) + - ( - 89 ) FROM tab2 AS cor0
----
167
168
96
query I rowsort
SELECT + col2 * col1 * - 52 FROM tab1 AS cor0
----
-29640
-64896
-73008
query I rowsort
SELECT - - col1 * + col2 * ( + col1 ) - col1 AS col0 FROM tab0 AS cor0
----
243982
678951
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + tab2.col1 col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - - col0 + + col1 * 26 AS col2 FROM tab0 cor0
----
2260
2455
2557
query I rowsort
SELECT ALL 16 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT + + 11 * + cor0.col1 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT + + col1 * - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT + col2 + - 76 FROM tab0 AS cor0
----
-43
-75
6
query I rowsort
SELECT 51 * - col1 FROM tab0 AS cor0
----
-4386
-4641
-4947
query I rowsort
SELECT DISTINCT + col1 * ( - col1 + tab2.col0 ) AS col2 FROM tab2
----
-744
1054
1121
query I rowsort
SELECT DISTINCT - - 18 AS col1 FROM tab1 AS cor0
----
18
query I rowsort
SELECT DISTINCT - col1 * - 10 AS col2 FROM tab2 cor0
----
170
310
590
query I rowsort
SELECT ALL + ( 80 ) AS col1 FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT ALL - 50 AS col2 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to ece34ebef3a06d71156ce9f5c546aa60
query I rowsort
SELECT ALL + + 4 + col0 FROM tab1 AS cor0
----
68
7
84
query I rowsort
SELECT ( + cor0.col1 ) * cor0.col0 * col2 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT + 90 + - 50 * + col1 FROM tab2 AS cor0
----
-1460
-2860
-760
query I rowsort
SELECT DISTINCT - 2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - col2 + col0 * CAST ( + col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
6887
7618
886
query I rowsort
SELECT - cor0.col0 + ( col2 ) * + col2 AS col2 FROM tab1 cor0
----
2913
3185
9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * + 21 col1 FROM tab2 cor0
----
-1180
-340
-620
query I rowsort
SELECT ALL ( tab0.col2 * col2 ) FROM tab0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) * col2 - tab1.col2 * col1 / col1 AS col0 FROM tab1
----
-2970
-3306
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - ( 88 ) * - col2 AS col0 FROM tab1
----
4752
5016
8448
query I rowsort
SELECT DISTINCT - tab2.col2 * cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4861385979e8c7c39397a7bae15e6e96
query I rowsort
SELECT ALL col0 * 17 FROM tab1
----
1088
1360
51
query I rowsort
SELECT DISTINCT + col0 + 82 FROM tab1 cor0
----
146
162
85
query I rowsort
SELECT + - col0 * col1 + col1 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 * + col0 * col1 FROM tab1 cor0
----
180
40903
83104
onlyif mysql # use DIV operator for integer division
query I rowsort label-5265
SELECT ALL - col2 DIV col0 - + col0 FROM tab2 AS cor0
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - col2 / col0 - + col0 FROM tab2 AS cor0
----
-10
-78
-79
query I rowsort
SELECT - col2 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - col0 * 53 FROM tab2 AS cor0
----
-371
-4134
-4187
query I rowsort
SELECT DISTINCT + col1 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col0 - - col0 AS col2 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 19 * - col1 + col2 col0 FROM tab1 AS cor0
----
-12790
-1843
-3115
query I rowsort
SELECT DISTINCT + col2 + 31 AS col0 FROM tab2 cor0
----
57
58
69
query I rowsort
SELECT col2 * tab1.col0 - + col1 FROM tab1
----
136
3638
7667
query I rowsort
SELECT - col1 * tab0.col0 + + tab0.col0 * col1 - col0 AS col2 FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5274
SELECT DISTINCT col0 - col0 * 13 DIV - ( tab0.col1 ) AS col1 FROM tab0
----
101
27
39
skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT col0 - col0 * 13 / - ( tab0.col1 ) AS col1 FROM tab0
----
101
27
39
query I rowsort
SELECT DISTINCT - + 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-83
query I rowsort
SELECT col1 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT tab0.col2 * col2 + ( 68 ) * + tab0.col0 FROM tab0
----
12776
2381
2721
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - + col1 * col0 * - cor0.col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - + 28 * - cor0.col1 * + ( col1 ) + + col1 * ( - col1 ) * col2 FROM tab1 AS cor0
----
-11492
-17576
-2900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col0 FROM tab2, tab1, tab0 AS cor0
----
-43
query I rowsort
SELECT ALL - ( col0 ) * + 50 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT ALL - col1 - 22 AS col2 FROM tab2 AS cor0
----
-39
-53
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * ( - ( + col0 ) ) col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - + col0 + col2 * 49 + col1 * col0 AS col1 FROM tab0 AS cor0
----
12028
3409
3657
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5286
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) * + col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 - - col0 * + col1 FROM tab2 AS cor0
----
-620
3068
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT DISTINCT - col0 * col1 + col0 DIV - col1 FROM tab1 cor0
----
-1046
-646
-78
skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT - col0 * col1 + col0 / - col1 FROM tab1 cor0
----
-1046
-646
-78
query I rowsort
SELECT DISTINCT + col1 * 3 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT - col2 * 3 AS col0 FROM tab0 AS cor0
----
-246
-3
-99
query I rowsort
SELECT + col2 * ( - cor0.col0 ) + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + + 87 - + col2 * + col0 FROM tab2 cor0
----
-102
-1941
-2915
query I rowsort
SELECT ALL + - col0 + cor0.col1 * + col1 AS col1 FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT - 11 + col0 AS col1 FROM tab0 AS cor0
----
13
24
78
query I rowsort
SELECT ALL 46 * 10 FROM tab2 AS cor0
----
460
460
460
query I rowsort
SELECT ALL + ( - cor0.col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + - col1 * - 95 FROM tab1 AS cor0
----
1235
2470
950
query I rowsort
SELECT ALL + 9 * + col1 FROM tab0 AS cor0
----
774
819
873
query I rowsort
SELECT + col2 + - col0 + + col0 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 96 + - 35 AS col2 FROM tab0 AS cor0
----
61
query I rowsort
SELECT - ( col2 ) + col0 - 79 * col0 AS col0 FROM tab2 cor0
----
-573
-6110
-6200
query I rowsort
SELECT DISTINCT col2 * + 5 * col1 + ( 39 ) AS col2 FROM tab0 AS cor0
----
14229
37349
524
onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT col2 - 92 DIV - col2 FROM tab0 AS cor0
----
35
83
93
skipif mysql # not compatible
query I rowsort label-5303
SELECT col2 - 92 / - col2 FROM tab0 AS cor0
----
35
83
93
query I rowsort
SELECT DISTINCT - col2 + 73 * - cor0.col0 FROM tab2 AS cor0
----
-538
-5720
-5805
query I rowsort
SELECT - 92 + - col1 FROM tab2 AS cor0
----
-109
-123
-151
onlyif mysql # use DIV operator for integer division
query I rowsort label-5306
SELECT ( - 37 ) DIV - col1 + 95 * - ( col1 ) AS col0 FROM tab0 cor0
----
-8170
-8645
-9215
skipif mysql # not compatible
query I rowsort label-5306
SELECT ( - 37 ) / - col1 + 95 * - ( col1 ) AS col0 FROM tab0 cor0
----
-8170
-8645
-9215
query I rowsort
SELECT ALL - - col1 + - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + - 36 FROM tab0 AS cor0
----
-36
query I rowsort
SELECT cor1.col0 + + ( 18 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 32064469d96c313d1022cfd85b0c8b7c
query I rowsort
SELECT DISTINCT tab0.col1 * 61 + col1 AS col0 FROM tab0
----
5332
5642
6014
query I rowsort
SELECT - - cor0.col1 + col0 * ( col1 ) FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT col1 DIV + col1 + ( col1 ) + - cor0.col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5312
SELECT col1 / + col1 + ( col1 ) + - cor0.col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5313
SELECT - 21 * - col2 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5313
SELECT - 21 * - col2 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + - cor0.col1 * + col2 AS col2 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT col1 * + col0 + - col0 + col2 FROM tab2 AS cor0
----
1302
237
4550
query I rowsort
SELECT tab1.col0 + - 26 FROM tab1
----
-23
38
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT DISTINCT ( - col2 ) + + col2 DIV tab1.col1 FROM tab1
----
-52
-89
skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT ( - col2 ) + + col2 / tab1.col1 FROM tab1
----
-52
-89
query I rowsort
SELECT - 99 * col1 + 59 * - col0 AS col0 FROM tab2 cor0
----
-10443
-3482
-6344
query I rowsort
SELECT DISTINCT ( - col0 ) * col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL cor0.col2 + cor1.col1 * - ( cor0.col0 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 781faf05eec26a63ba0afd39f4b3d859
query I rowsort
SELECT ALL + 20 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT 51 + - col2 * - 95 * - col1 FROM tab0
----
-269559
-708839
-9164
query I rowsort
SELECT 79 + + 83 AS col0 FROM tab0 AS cor0
----
162
162
162
query I rowsort
SELECT ALL + 47 + col1 + + col1 FROM tab1
----
67
73
99
query I rowsort
SELECT - tab0.col1 + - col2 + + col1 * - 61 FROM tab0
----
-5365
-5724
-6015
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5327
SELECT ALL + + col0 + 31 * col2 / + CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL + + col0 + 31 * col2 / + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 28 * + 47 FROM tab0 AS cor0
----
1316
1316
1316
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5329
SELECT ALL - CAST( NULL AS SIGNED ) + cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col0 * + 94 - cor0.col1 FROM tab1 AS cor0
----
256
6006
7507
query I rowsort
SELECT + - ( - col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab0.col0 + tab0.col1 col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT col1 * + col0 AS col0 FROM tab0 WHERE ( col1 ) IN ( + tab0.col1 + + col0 )
----
query I rowsort
SELECT - col2 FROM tab0 WHERE NULL > NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * tab0.col2 / col0 IN ( + col1 * tab0.col0 + - tab0.col0 + - col2 / col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col1 + tab0.col1 * - tab0.col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT col2 NOT IN ( col2 )
----
24
35
89
query I rowsort
SELECT DISTINCT col2 + col1 FROM tab2 WHERE ( NULL ) > NULL
----
query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE ( NULL ) = NULL
----
query I rowsort
SELECT - col2 - + col1 * tab2.col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT col1 + - col1 + + col1 AS col0 FROM tab2
----
17
31
59
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 * col2 ) <= NULL
----
query I rowsort
SELECT - col0 * + col0 + col1 * col2 * col1 AS col1 FROM tab1 WHERE NOT + col0 IN ( col1 )
----
1604
36495
9824
query I rowsort
SELECT + col1 * + tab1.col2 * + col0 AS col0 FROM tab1 WHERE ( NULL ) > NULL
----
query I rowsort
SELECT - col0 + col0 + col0 FROM tab2
----
7
78
79
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < col2
----
query I rowsort
SELECT ALL col2 - + tab0.col1 * - tab0.col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT col0 + - col0 * col2 AS col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + tab0.col0 + + col2 AS col1 FROM tab0
----
171
36
57
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * - cor0.col0 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5353
SELECT DISTINCT col1 DIV - col2 col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT col1 / - col2 col0 FROM tab1 AS cor0
----
0
query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT ALL col2 + - col2 + - col2 DIV col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL col2 + - col2 + - col2 / col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT tab1.col2 + - tab1.col2 AS col2 FROM tab1
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + cor0.col1 * + col1 * + col2 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 + - col1 * col1 ) IN ( - col2 + - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT + col1 + CAST( - 58 AS SIGNED ) FROM tab1
----
-32
-45
-48
skipif mysql # not compatible
query I rowsort label-5359
SELECT + col1 + CAST ( - 58 AS INTEGER ) FROM tab1
----
-32
-45
-48
query I rowsort
SELECT ALL + tab1.col0 + + 52 * - col2 FROM tab1
----
-2805
-2900
-4912
onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT DISTINCT - col2 * col0 DIV + col1 FROM tab1 AS cor0
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - col2 * col0 / + col1 FROM tab1 AS cor0
----
-364
-590
-6
query I rowsort
SELECT + col2 + col0 * + col2 + col0 FROM tab2 AS cor0
----
2132
223
3119
query I rowsort
SELECT ALL - - col2 * col2 AS col0 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT + col2 - + ( + col0 ) DIV - col1 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-5364
SELECT + col2 - + ( + col0 ) / - col1 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT DISTINCT - col1 * ( + ( - col0 ) ) + col0 * + col2 + cor0.col0 * - 28 FROM tab1 AS cor0
----
156
2496
6480
query I rowsort
SELECT + - col1 + + col0 * 27 FROM tab2 cor0
----
158
2047
2116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( - 41 * + col1 ) - - ( cor0.col2 ) * + col0 col1 FROM tab2 AS cor0
----
144749
14851
39590
query I rowsort
SELECT - col2 * ( 82 ) + + cor0.col0 FROM tab1 AS cor0
----
-4425
-4610
-7792
query I rowsort
SELECT ALL - col1 * + 71 * - col0 + + 4 FROM tab1 AS cor0
----
45444
5542
73844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5370
SELECT ALL + CAST( col2 AS SIGNED ) * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + CAST ( col2 AS INTEGER ) * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 21 * 0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 * + ( - col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 + - 43 AS col2 FROM tab1 cor0
----
11
14
53
query I rowsort
SELECT DISTINCT - - ( col2 ) * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5375
SELECT + 68 DIV + ( - col2 ) + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-641
-79
skipif mysql # not compatible
query I rowsort label-5375
SELECT + 68 / + ( - col2 ) + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-641
-79
query I rowsort
SELECT DISTINCT - col2 + 85 * col1 AS col1 FROM tab0 AS cor0
----
7277
7653
8244
query I rowsort
SELECT ALL - cor0.col2 + + 6 AS col0 FROM tab1 AS cor0
----
-48
-51
-90
query I rowsort
SELECT DISTINCT + 74 + cor0.col1 FROM tab0 AS cor0
----
160
165
171
query I rowsort
SELECT ( + col1 ) + col1 + + ( col0 ) FROM tab0
----
196
229
271
query I rowsort
SELECT ALL - ( + 59 ) AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f
query I rowsort
SELECT DISTINCT + + col1 * - col1 - col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT DISTINCT 78 * col1 AS col0 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT + + ( - col1 ) + + ( col2 ) * - col0 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 * - col2 col1 FROM tab2 AS cor0
----
1406
962
999
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 6 col0 FROM tab1 AS cor0
----
70
86
9
query I rowsort
SELECT DISTINCT col2 - + ( + col1 ) * + cor0.col1 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT - + cor0.col0 - + col0 * col0 FROM tab0 AS cor0
----
-1260
-600
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col0 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5389
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5389
SELECT - 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-5390
SELECT ALL + + col2 + - col2 * 80 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
128
1494
192
skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + + col2 + - col2 * 80 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
128
1494
192
query I rowsort
SELECT DISTINCT - - cor0.col0 + - 34 FROM tab0 AS cor0
----
-10
1
55
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * + col1 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT cor0.col2 DIV + 80 + 81 AS col1 FROM tab2 AS cor0
----
81
81
81
skipif mysql # not compatible
query I rowsort label-5393
SELECT cor0.col2 / + 80 + 81 AS col1 FROM tab2 AS cor0
----
81
81
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5394
SELECT ALL - - col2 - CAST( cor0.col0 AS SIGNED ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - - col2 - CAST ( cor0.col0 AS INTEGER ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT + - cor0.col2 + 24 * ( col1 ) * + 12 FROM tab1 AS cor0
----
2823
3648
7434
query I rowsort
SELECT DISTINCT + + col2 * 48 FROM tab2 AS cor0
----
1248
1296
1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT ALL col0 DIV col1 + - 35 + col2 FROM tab0 AS cor0
----
-2
-34
47
skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL col0 / col1 + - 35 + col2 FROM tab0 AS cor0
----
-2
-34
47
query I rowsort
SELECT DISTINCT col2 * - col2 - tab0.col2 AS col1 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT + 80 + col2 * col1 FROM tab0
----
177
2918
7542
query I rowsort
SELECT + - 49 * col2 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
1221
3444
48
query I rowsort
SELECT + col0 + + 27 * - col1 FROM tab0 AS cor0
----
-2298
-2368
-2584
query I rowsort
SELECT DISTINCT + 80 FROM tab2, tab2 AS cor0
----
80
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col0 * 55 AS col0 FROM tab0
----
1320
1925
4895
query I rowsort
SELECT - col1 * - 8 + - col0 AS col0 FROM tab1
----
16
205
24
query I rowsort
SELECT ALL + 85 * ( col2 ) FROM tab1
----
4590
4845
8160
query I rowsort
SELECT ALL - 52 * - col1 FROM tab1
----
1352
520
676
query I rowsort
SELECT DISTINCT + + 16 FROM tab0 cor0
----
16
query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab1 AS cor0
----
94
query I rowsort
SELECT - col0 + tab1.col0 * col1 AS col2 FROM tab1
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT ALL - - 81 + col2 DIV - col1 + + col1 FROM tab0 AS cor0
----
167
172
178
skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL - - 81 + col2 / - col1 + + col1 FROM tab0 AS cor0
----
167
172
178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * col1 col1 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-5414
SELECT - cor0.col2 DIV 98 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-5414
SELECT - cor0.col2 / 98 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + + col0 + 65 * - col2 AS col2 FROM tab2 AS cor0
----
-1612
-1748
-2391
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col0 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT col1 - col0 DIV + col0 col2 FROM tab0 AS cor0
----
85
90
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5418
SELECT col1 - col0 / + col0 col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT - - col0 * - 65 AS col2 FROM tab2 AS cor0
----
-455
-5070
-5135
onlyif mysql # use DIV operator for integer division
query I rowsort label-5420
SELECT ALL + col2 DIV col2 + cor0.col2 + col2 FROM tab0 AS cor0
----
165
3
67
skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + col2 / col2 + cor0.col2 + col2 FROM tab0 AS cor0
----
165
3
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5421
SELECT + col0 + + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-5421
SELECT + col0 + + col0 / col0 AS col1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL + col2 * ( - cor0.col0 ) + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + + col0 + - 78 FROM tab0 AS cor0
----
-43
-54
11
query I rowsort
SELECT + col1 * - 57 - + 44 FROM tab2 AS cor0
----
-1013
-1811
-3407
onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT DISTINCT cor0.col0 - 44 DIV col1 AS col0 FROM tab1 AS cor0
----
2
60
77
skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT cor0.col0 - 44 / col1 AS col0 FROM tab1 AS cor0
----
2
60
77
query I rowsort
SELECT ALL - col0 * + col1 * col2 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT + + col0 * col1 + cor0.col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT col2 * col1 - + col2 * - col0 AS col2 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT - col2 * cor0.col0 - - col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - col1 * col1 + + col2 * cor0.col2 FROM tab0 AS cor0
----
-1557
-6307
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-5431
SELECT - tab2.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-5431
SELECT - tab2.col1 / - col0 col1 FROM tab2
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + - col2 col0 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * + col0 + col0 col2 FROM tab1 cor0
----
-147
-3136
-3920
query I rowsort
SELECT + 61 * + col1 FROM tab1 AS cor0
----
1586
610
793
query I rowsort
SELECT ( + cor0.col2 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT col0 + + col2 * col1 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT col0 * - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT ALL - - col1 * col1 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
12
skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - - col1 * col1 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
12
query I rowsort
SELECT DISTINCT + 58 * + col0 FROM tab2
----
406
4524
4582
query I rowsort
SELECT - 42 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1302
-2478
-714
query I rowsort
SELECT - - cor0.col2 + col1 * - col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT - + ( - col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + 36 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-153
-1992
-2966
query I rowsort
SELECT + col1 * col0 + - ( 98 ) FROM tab0 AS cor0
----
1966
3297
8001
onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT DISTINCT col2 DIV - col0 col2 FROM tab2 cor0
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT col2 / - col0 col2 FROM tab2 cor0
----
-3
0
query I rowsort
SELECT DISTINCT + + 33 AS col1 FROM tab0 AS cor0
----
33
query I rowsort
SELECT ( col1 ) * 82 + - 56 * col2 FROM tab2 AS cor0
----
-734
1030
3382
query I rowsort
SELECT ALL cor0.col2 * cor0.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to f2f8e77c5ad4f2e8fce9fd33f828ee72
onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT + 42 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5449
SELECT + 42 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - ( col0 ) + - col1 + col1 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5451
SELECT - - ( + col2 ) + col1 DIV - cor0.col1 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-5451
SELECT - - ( + col2 ) + col1 / - cor0.col1 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT DISTINCT - col2 + col0 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL - - col1 * - col1 + ( - col0 ) FROM tab1 cor0
----
-164
-249
-679
query I rowsort
SELECT - cor0.col2 + 13 * + col0 FROM tab1 AS cor0
----
-15
775
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5455
SELECT ALL + cor0.col1 * CAST( + col1 + - col1 AS SIGNED ) * + ( col0 + + cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL + cor0.col1 * CAST ( + col1 + - col1 AS INTEGER ) * + ( col0 + + cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - tab1.col1 * + col2 * + 40 + - col1 FROM tab1
----
-22810
-49933
-56186
query I rowsort
SELECT ALL - 9 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT col0 + - cor0.col1 - + col0 AS col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - 40 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT DISTINCT col2 * - 45 + col1 FROM tab2 AS cor0
----
-1111
-1184
-1693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5461
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 / col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 / col2 FROM tab1
----
NULL
query I rowsort
SELECT - 57 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT DISTINCT col2 * 61 FROM tab0
----
2013
5002
61
query I rowsort
SELECT - tab0.col1 * - 66 * + col0 AS col1 FROM tab0
----
136224
224070
534534
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5465
SELECT CAST( col1 + + col0 AS SIGNED ) * col1 AS col0 FROM tab0
----
12804
16380
9460
skipif mysql # not compatible
query I rowsort label-5465
SELECT CAST ( col1 + + col0 AS INTEGER ) * col1 AS col0 FROM tab0
----
12804
16380
9460
query I rowsort
SELECT - 27 * - col0 * + col0 AS col2 FROM tab0
----
15552
213867
33075
query I rowsort
SELECT 30 + + col1 - col1 * col1 AS col0 FROM tab2 cor0
----
-242
-3392
-900
onlyif mysql # use DIV operator for integer division
query I rowsort label-5468
SELECT ALL col2 DIV col2 - - col2 AS col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL col2 / col2 - - col2 AS col2 FROM tab0
----
2
34
83
query I rowsort
SELECT DISTINCT col2 * 71 - col2 AS col2 FROM tab2
----
1820
1890
2660
query I rowsort
SELECT col1 + col2 - col0 AS col0 FROM tab2
----
-24
51
7
query I rowsort
SELECT col0 * - ( - col1 + 54 * 75 ) FROM tab2
----
-28133
-311298
-318607
query I rowsort
SELECT DISTINCT + col2 * col1 + col2 + + col0 AS col0 FROM tab2 AS cor0
----
1638
763
871
query I rowsort
SELECT ALL - col0 * col2 * - ( tab1.col2 * - col2 ) + + ( - 44 ) * - col0 AS col0 FROM tab1
----
-11849536
-472260
-70775360
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col1 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL + col0 * tab2.col2 * + col2 + - col0 FROM tab2
----
113997
5096
52650
query I rowsort
SELECT ALL - ( col2 ) + + ( 30 ) AS col1 FROM tab2 AS cor0
----
-8
3
4
query I rowsort
SELECT DISTINCT + + 81 + cor0.col0 FROM tab0 AS cor0
----
105
116
170
query I rowsort
SELECT ALL 27 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT DISTINCT + 18 * cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
1476
18
594
query I rowsort
SELECT ALL - 23 FROM tab2, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT + + col2 * 99 FROM tab0 AS cor0
----
3267
8118
99
query I rowsort
SELECT ALL + ( - col2 ) * col2 - - col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT + + ( + col1 ) + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + col0 * col2 + - cor0.col1 + col1 * col0 FROM tab1 AS cor0
----
214
4278
8707
query I rowsort
SELECT col0 + ( col0 ) * - col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - cor0.col1 + + 86 AS col2 FROM tab2 AS cor0
----
27
55
69
query I rowsort
SELECT ALL col1 - + 70 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
167
2396
5831
query I rowsort
SELECT + - ( - col0 ) + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + 5 AS col2 FROM tab2 cor0
----
5
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT + + CAST( 51 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
133
52
84
skipif mysql # not compatible
query I rowsort label-5491
SELECT + + CAST ( 51 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
133
52
84
query I rowsort
SELECT ALL + + 65 * - col2 + - col1 FROM tab1 AS cor0
----
-3536
-3715
-6253
query I rowsort
SELECT - - 23 + ( - col1 ) FROM tab2 AS cor0
----
-36
-8
6
query I rowsort
SELECT + 74 * + ( - cor0.col1 ) + - col2 FROM tab1 AS cor0
----
-1058
-1978
-797
onlyif mysql # use DIV operator for integer division
query I rowsort label-5495
SELECT ALL ( + col0 ) + - col1 DIV col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL ( + col0 ) + - col1 / col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL + col1 + ( + ( + col2 ) ) * - col2 AS col1 FROM tab0 cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT + - col2 * + ( + col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + col2 + + col0 * - 5 AS col2 FROM tab2 AS cor0
----
-357
-364
-8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5499
SELECT + - col0 * CAST( NULL AS SIGNED ) + - col1 * col0 + + 38 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5499
SELECT + - col0 * CAST ( NULL AS INTEGER ) + - col1 * col0 + + 38 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5500
SELECT DISTINCT - col0 + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT - col0 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT cor0.col2 - + col1 * + 89 FROM tab2 AS cor0
----
-1475
-2732
-5225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5502
SELECT CAST( NULL AS DECIMAL ) + ( cor0.col0 + ( 58 ) ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5502
SELECT CAST ( NULL AS REAL ) + ( cor0.col0 + ( 58 ) ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( cor0.col0 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT + col0 * col2 + col1 FROM tab0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5505
SELECT CAST( + 38 AS SIGNED ) AS col1 FROM tab0
----
38
38
38
skipif mysql # not compatible
query I rowsort label-5505
SELECT CAST ( + 38 AS INTEGER ) AS col1 FROM tab0
----
38
38
38
query I rowsort
SELECT ALL - + col0 * col2 + col1 FROM tab0 cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT ALL + 18 + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
19
19
19
skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL + 18 + col1 / col1 AS col2 FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT DISTINCT + 75 + col0 AS col1 FROM tab2 AS cor0
----
153
154
82
query I rowsort
SELECT - + 27 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1026
-702
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + 39 * - col2 col1 FROM tab2
----
-1427
-959
-998
query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab1, tab0 AS cor0, tab2 cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT DISTINCT - ( ( - col0 ) ) AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT + tab1.col0 * - 13 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 6eff73006e14c72cd95d8d8f77275a1a
query I rowsort
SELECT + ( - col2 ) * + ( 49 ) AS col1 FROM tab2 AS cor0
----
-1274
-1323
-1862
query I rowsort
SELECT + - 18 * col1 AS col2 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT DISTINCT - - col2 * col0 + + cor0.col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT col2 * cor0.col0 * - ( col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
-113997
-5096
-52650
query I rowsort
SELECT ALL - - ( cor0.col0 ) * + col1 + 52 FROM tab2 AS cor0
----
1395
269
4654
query I rowsort
SELECT ( - col0 * col0 ) AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + col1 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - 39 + + col2 AS col2 FROM tab1 AS cor0
----
15
18
57
query I rowsort
SELECT - col0 * - ( + col2 ) FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5524
SELECT + 25 DIV 81 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-5524
SELECT + 25 / 81 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - ( tab0.col0 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT + col1 * + cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - 29 * col1 FROM tab1
----
-290
-377
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT ( col2 ) DIV col1 - CAST( - 83 AS SIGNED ) FROM tab0 cor0
----
83
83
83
skipif mysql # not compatible
query I rowsort label-5528
SELECT ( col2 ) / col1 - CAST ( - 83 AS INTEGER ) FROM tab0 cor0
----
83
83
83
query I rowsort
SELECT 92 + + col0 FROM tab1 AS cor0
----
156
172
95
query I rowsort
SELECT ALL 0 * col0 * + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT DISTINCT + col0 DIV + 44 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT + col0 / + 44 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - ( col2 ) + col1 + col2 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 8 * + col0 FROM tab0 AS cor0
----
192
280
712
onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT DISTINCT + - col1 DIV 60 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT + - col1 / 60 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col1 * col0 * col0 + 61 * 87 * - col0 FROM tab0
----
-66920
-77832
248488
query I rowsort
SELECT cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col0 - col1 * + ( tab2.col0 ) * + 46 FROM tab2
----
-211614
-61699
-9975
query I rowsort
SELECT + col2 + 72 + tab0.col1 FROM tab0
----
170
191
245
query I rowsort
SELECT col0 * - 13 AS col1 FROM tab0
----
-1157
-312
-455
query I rowsort
SELECT cor0.col2 * ( tab2.col0 ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 5a783d04f27f5464428a0aa6e48e0e25
query I rowsort
SELECT col1 * + col2 - col0 * col0 AS col2 FROM tab1 AS cor0
----
-3526
-5152
1395
onlyif mysql # use DIV operator for integer division
query I rowsort label-5542
SELECT col1 DIV + 53 - col0 * + col1 FROM tab0
----
-2063
-3394
-8098
skipif mysql # not compatible
query I rowsort label-5542
SELECT col1 / + 53 - col0 * + col1 FROM tab0
----
-2063
-3394
-8098
onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT col0 DIV - col0 + - col2 * - col1 DIV + col1 + + tab2.col0 AS col0 FROM tab2
----
103
116
33
skipif mysql # not compatible
query I rowsort label-5543
SELECT col0 / - col0 + - col2 * - col1 / + col1 + + tab2.col0 AS col0 FROM tab2
----
103
116
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-5544
SELECT tab0.col0 DIV ( col0 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5544
SELECT tab0.col0 / ( col0 ) FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT - col1 - tab0.col2 * 11 AS col1 FROM tab0
----
-108
-449
-993
query I rowsort
SELECT - col2 * 10 AS col1 FROM tab2
----
-260
-270
-380
query I rowsort
SELECT + - 6 + - col2 FROM tab2 AS cor0
----
-32
-33
-44
query I rowsort
SELECT - - 38 AS col1 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT - - 9 + cor0.col2 FROM tab0 AS cor0
----
10
42
91
query I rowsort
SELECT ALL - 62 * - col2 AS col1 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT DISTINCT ( col0 ) * - col1 * - 70 AS col2 FROM tab0 AS cor0
----
144480
237650
566930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5552
SELECT DISTINCT - cor0.col2 * - col0 * col2 + - CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
26103
34
598354
skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT - cor0.col2 * - col0 * col2 + - CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
26103
34
598354
query I rowsort
SELECT ( - col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + col1 + + 18 FROM tab0 AS cor0
----
104
109
115
query I rowsort
SELECT - col2 * col2 - col1 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL + ( - col1 ) + - col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT 4 - - cor0.col0 FROM tab0 AS cor0
----
28
39
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 + col1 col0 FROM tab0 AS cor0
----
175
180
186
query I rowsort
SELECT ALL + 77 + + 4 AS col0 FROM tab2 AS cor0
----
81
81
81
query I rowsort
SELECT ALL 40 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
50
53
66
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) - cor0.col0 FROM tab2 cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT ALL col2 + cor0.col1 DIV - col2 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL col2 + cor0.col1 / - col2 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT ALL + 36 * - col1 - - col2 AS col1 FROM tab2 cor0
----
-1089
-2098
-574
query I rowsort
SELECT - - 65 * - col2 AS col0 FROM tab2 AS cor0
----
-1690
-1755
-2470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col1 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT - 95 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-5566
SELECT - 95 / + col1 AS col2 FROM tab2 AS cor0
----
-1
-3
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5567
SELECT ALL - col0 * col0 DIV + ( col2 ) - col0 FROM tab1 AS cor0
----
-135
-146
-3
skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - col0 * col0 / + ( col2 ) - col0 FROM tab1 AS cor0
----
-135
-146
-3
query I rowsort
SELECT ALL - 87 + col2 * + ( + col1 * - cor0.col1 ) AS col0 FROM tab1 cor0
----
-16311
-36591
-5787
query I rowsort
SELECT - cor0.col2 + - col2 * 74 * col1 FROM tab2 AS cor0
----
-113542
-47842
-61965
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5570
SELECT col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5570
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col0 * cor0.col1 * - cor0.col1 AS col1 FROM tab0 cor0
----
-177471
-329314
-736927
query I rowsort
SELECT - - col1 * - ( 95 ) AS col2 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT DISTINCT col2 + 70 FROM tab1 AS cor0
----
124
127
166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5574
SELECT + + col1 * + CAST( - 78 AS SIGNED ) AS col1 FROM tab1 cor0
----
-1014
-2028
-780
skipif mysql # not compatible
query I rowsort label-5574
SELECT + + col1 * + CAST ( - 78 AS INTEGER ) AS col1 FROM tab1 cor0
----
-1014
-2028
-780
query I rowsort
SELECT DISTINCT cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - - col0 * col0 + - 6 FROM tab0 AS cor0
----
1219
570
7915
query I rowsort
SELECT DISTINCT - ( col1 ) * - col2 * col1 FROM tab0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT ALL + col1 DIV ( col2 * col1 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL + col1 / ( col2 * col1 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * 34 AS col1 FROM tab2 AS cor0
----
1054
2006
578
onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT ALL + col0 DIV - ( 8 ) FROM tab2 AS cor0
----
-9
-9
0
skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL + col0 / - ( 8 ) FROM tab2 AS cor0
----
-9
-9
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 70af829b2ea63fd8a25dddddb851fcd5
query I rowsort
SELECT DISTINCT 88 + cor0.col1 FROM tab1, tab1 cor0
----
101
114
98
query I rowsort
SELECT - + 14 AS col1 FROM tab1 AS cor0
----
-14
-14
-14
query I rowsort
SELECT 19 * cor0.col1 FROM tab2 AS cor0
----
1121
323
589
query I rowsort
SELECT ALL 59 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT DISTINCT col1 * + 14 AS col0 FROM tab1
----
140
182
364
query I rowsort
SELECT ALL - - 25 * - col2 FROM tab0 AS cor0
----
-2050
-25
-825
query I rowsort
SELECT - ( - cor0.col2 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT 43 - + col0 FROM tab0
----
-46
19
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col0 FROM tab0
----
33
33
33
query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab1 AS cor0
----
57
query I rowsort
SELECT ALL + - col1 + cor0.col1 * 44 AS col0 FROM tab1 AS cor0
----
1118
430
559
query I rowsort
SELECT - + 8 * col2 AS col1 FROM tab1 AS cor0
----
-432
-456
-768
onlyif mysql # use DIV operator for integer division
query I rowsort label-5594
SELECT ALL - 26 DIV - col1 AS col2 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - 26 / - col1 AS col2 FROM tab2
----
0
0
1
query I rowsort
SELECT DISTINCT + ( - col1 ) + - cor0.col2 AS col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 * + col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - col2 * col0 * col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - col0 - col1 AS col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + - 2 * 30 AS col0 FROM tab2 AS cor0
----
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * + cor0.col0 col2 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT ALL - ( + 95 ) AS col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT ALL + col2 * + col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col2 + + col1 + - 44 FROM tab0 AS cor0
----
129
54
75
query I rowsort
SELECT - - ( + col0 ) + 47 AS col0 FROM tab0 AS cor0
----
136
71
82
query I rowsort
SELECT DISTINCT - ( - 66 ) FROM tab1
----
66
query I rowsort
SELECT cor0.col1 * 95 FROM tab1 AS cor0
----
1235
2470
950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5607
SELECT ALL - + col2 * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - + col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( 20 ) FROM tab0, tab1 AS cor0
----
-20
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5610
SELECT col2 + CAST( ( + col1 ) * - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
skipif mysql # not compatible
query I rowsort label-5610
SELECT col2 + CAST ( ( + col1 ) * - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - col0 + col1 + + col2 AS col1 FROM tab1 cor0
----
29
3
77
query I rowsort
SELECT - col1 + ( + col1 ) FROM tab2
----
0
0
0
query I rowsort
SELECT + 43 * - col2 FROM tab2 AS cor0
----
-1118
-1161
-1634
onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT - + col2 DIV 9 + - col0 * col2 FROM tab1 AS cor0
----
-168
-3654
-7690
skipif mysql # not compatible
query I rowsort label-5614
SELECT - + col2 / 9 + - col0 * col2 FROM tab1 AS cor0
----
-168
-3654
-7690
query I rowsort
SELECT col1 * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ( - 0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5617
SELECT ALL - col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5618
SELECT DISTINCT col0 DIV ( + col1 ) col0 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT col0 / ( + col1 ) col0 FROM tab0
----
0
query I rowsort
SELECT + ( col1 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - + 28 + + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fc52db160d90fe52ad5ec7504058ba89
query I rowsort
SELECT ALL + + 27 + cor0.col2 * col0 FROM tab1 cor0
----
189
3675
7707
query I rowsort
SELECT col0 * + 60 FROM tab2
----
420
4680
4740
query I rowsort
SELECT DISTINCT - 90 * - col1 FROM tab2 AS cor0
----
1530
2790
5310
query I rowsort
SELECT ALL col2 + + cor0.col1 + + ( + col0 ) * + col0 FROM tab2 cor0
----
107
6169
6296
query I rowsort
SELECT DISTINCT + + 16 * - col2 - - ( - cor0.col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-113
-3366
-8774
query I rowsort
SELECT + ( - col0 ) * col2 * col1 + col0 * col0 FROM tab1 AS cor0
----
-32384
-4203
-93440
query I rowsort
SELECT - col0 * 64 AS col0 FROM tab2
----
-448
-4992
-5056
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5628
SELECT DISTINCT CAST( + col2 + - col1 AS SIGNED ) * ( col2 + col1 ) AS col2 FROM tab0
----
-1557
-6307
-9408
skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT CAST ( + col2 + - col1 AS INTEGER ) * ( col2 + col1 ) AS col2 FROM tab0
----
-1557
-6307
-9408
query I rowsort
SELECT ALL ( + col0 * - tab0.col1 + + col0 ) AS col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT - 18 - + col0 * col1 AS col0 FROM tab2
----
-1361
-235
-4620
query I rowsort
SELECT 47 + 2 FROM tab1
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT + + cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5632
SELECT + + cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - col1 + - col0 - col2 FROM tab0 AS cor0
----
-133
-143
-262
query I rowsort
SELECT col1 * - 84 + + col1 - col1 FROM tab2 AS cor0
----
-1428
-2604
-4956
query I rowsort
SELECT col2 * + 23 + - col0 AS col2 FROM tab0 AS cor0
----
-12
1797
735
query I rowsort
SELECT tab0.col2 + tab0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 967dc9bd7c6cd98d217c6cb5a61f5e63
query I rowsort
SELECT ALL - col0 * + tab0.col0 AS col2 FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 + - col0 ) * + tab1.col2 col0 FROM tab1
----
-3078
-6432
1242
onlyif mysql # use DIV operator for integer division
query I rowsort label-5639
SELECT + col1 + + ( cor0.col0 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-5639
SELECT + col1 + + ( cor0.col0 ) / - col1 AS col2 FROM tab1 AS cor0
----
26
4
7
query I rowsort
SELECT ALL + col2 * - 16 FROM tab2
----
-416
-432
-608
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 39 col0 FROM tab0 AS cor0
----
47
52
58
query I rowsort
SELECT ALL col2 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL ( 47 ) AS col0 FROM tab0
----
47
47
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 61 * col1 col0 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT DISTINCT - 76 * + col1 * ( + col0 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
-102051
-16461
-349693
query I rowsort
SELECT ALL - ( col0 ) + + col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT ALL + - 71 * - col2 AS col1 FROM tab1 AS cor0
----
3834
4047
6816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT + col1 DIV col2 + col0 * - col1 + + col1 AS col2 FROM tab1
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-5648
SELECT + col1 / col2 + col0 * - col1 + + col1 AS col2 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL 76 * col0 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT DISTINCT col2 + - tab0.col0 * col0 AS col2 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT - + 65 FROM tab1 cor0
----
-65
-65
-65
query I rowsort
SELECT DISTINCT cor1.col2 * - 77 - + 74 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-151
-2615
-6388
query I rowsort
SELECT ALL 43 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-43
-48
-54
query I rowsort
SELECT ALL + ( + 85 ) * - col0 + + col1 * col0 FROM tab2 AS cor0
----
-2028
-378
-5372
query I rowsort
SELECT DISTINCT 72 + col1 * col0 FROM tab1 AS cor0
----
1112
150
712
query I rowsort
SELECT - 43 * + col2 AS col0 FROM tab2 AS cor0
----
-1118
-1161
-1634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5657
SELECT CAST( + col2 AS SIGNED ) * col0 * col0 FROM tab1 AS cor0
----
233472
486
614400
skipif mysql # not compatible
query I rowsort label-5657
SELECT CAST ( + col2 AS INTEGER ) * col0 * col0 FROM tab1 AS cor0
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 + - col0 col1 FROM tab2 cor0
----
-50
-51
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT + 63 + + col0 DIV - col2 col1 FROM tab1
----
62
63
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5659
SELECT + 63 + + col0 / - col2 col1 FROM tab1
----
62
63
63
query I rowsort
SELECT + 85 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb
query I rowsort
SELECT DISTINCT 50 + + 43 FROM tab0 cor0
----
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 - cor0.col0 col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT - + col0 + + 51 AS col0 FROM tab1 AS cor0
----
-13
-29
48
query I rowsort
SELECT - 80 * - col2 * col2 FROM tab1 AS cor0
----
233280
259920
737280
query I rowsort
SELECT ALL + col2 * - cor0.col0 + col2 * col1 AS col2 FROM tab1 cor0
----
-3078
-6432
1242
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + 29 * col1 col1 FROM tab0 AS cor0
----
2527
2721
2814
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5668
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT cor0.col0 * col0 + - col1 * col0 FROM tab1 cor0
----
-69
3456
5360
query I rowsort
SELECT ALL + 41 + col2 AS col0 FROM tab1 AS cor0
----
137
95
98
query I rowsort
SELECT DISTINCT + ( - 40 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-40
query I rowsort
SELECT DISTINCT 26 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
26
query I rowsort
SELECT 64 + + col0 FROM tab0 cor0
----
153
88
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + col1 col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT DISTINCT - col0 * col2 + col1 DIV 54 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT - col0 * col2 + col1 / 54 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + ( col0 ) * ( cor0.col2 ) + + col2 * + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1411
-1575
509
query I rowsort
SELECT DISTINCT - ( col2 ) - + ( - col2 + - col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ( - col2 ) + col1 AS col2 FROM tab1
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5679
SELECT CAST( NULL AS SIGNED ) * - 10 - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5679
SELECT CAST ( NULL AS INTEGER ) * - 10 - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab0, tab1 AS cor0
----
-81
query I rowsort
SELECT ALL + - col2 * 56 FROM tab0 cor0
----
-1848
-4592
-56
query I rowsort
SELECT ALL - col0 * col0 + + cor0.col1 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL - + 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab1, tab0 cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT ALL + + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT col1 * - col2 - + col0 DIV - col0 AS col1 FROM tab1
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-5686
SELECT col1 * - col2 - + col0 / - col0 AS col1 FROM tab1
----
-1247
-1403
-569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( 81 ) col1 FROM tab2
----
159
160
88
query I rowsort
SELECT + col2 - ( col2 ) AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT col1 * 70 AS col2 FROM tab0
----
6020
6370
6790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * + col2 + col1 col1 FROM tab1 AS cor0
----
3968
4171
7021
query I rowsort
SELECT DISTINCT - col1 + - tab1.col1 + + col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 + + col1 + - 28 AS col2 FROM tab2
----
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col1 FROM tab0, tab1, tab2 AS cor0
----
24
35
89
query I rowsort
SELECT col2 * + col2 + + cor0.col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL col1 + 69 * + 72 FROM tab2
----
4985
4999
5027
query I rowsort
SELECT DISTINCT - col1 + - tab0.col0 + col1 AS col0 FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT ALL col0 + - col0 * 89 DIV col2 + - 57 * + 73 AS col2 FROM tab1
----
-4155
-4162
-4196
skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL col0 + - col0 * 89 / col2 + - 57 * + 73 AS col2 FROM tab1
----
-4155
-4162
-4196
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT DISTINCT col1 + CAST( col1 AS SIGNED ) col0 FROM tab0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT col1 + CAST ( col1 AS INTEGER ) col0 FROM tab0
----
172
182
194
query I rowsort
SELECT 33 * + col1 + + ( 24 ) FROM tab0
----
2862
3027
3225
query I rowsort
SELECT - col0 + col1 * - ( cor0.col0 * col0 ) AS col2 FROM tab0 AS cor0
----
-118860
-49560
-720900
query I rowsort
SELECT DISTINCT - col0 * 28 FROM tab1
----
-1792
-2240
-84
query I rowsort
SELECT ALL col1 * + 95 AS col1 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT + col1 + col1 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL 32 FROM tab1, tab1 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT ALL + ( - col2 + col1 ) AS col1 FROM tab2
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 col0 FROM tab1
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT ALL + 39 * - tab1.col1 + col1 DIV + ( + tab1.col2 ) col0 FROM tab1
----
-1014
-390
-507
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + 39 * - tab1.col1 + col1 / + ( + tab1.col2 ) col0 FROM tab1
----
-1014
-390
-507
query I rowsort
SELECT ALL 75 + - 44 AS col1 FROM tab2
----
31
31
31
query I rowsort
SELECT + 46 * - col2 AS col1 FROM tab1 AS cor0
----
-2484
-2622
-4416
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL + 83 * col1 + + col2 FROM tab1 AS cor0
----
1175
2212
887
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col2 ) * - col1 + col1 col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - 95 + - ( - tab0.col0 ) FROM tab0
----
-6
-60
-71
query I rowsort
SELECT - 10 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT 46 + col0 AS col1 FROM tab1
----
110
126
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-5716
SELECT col2 DIV cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5716
SELECT col2 / cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col1 * cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + col1 + col0 + col1 FROM tab1
----
106
55
84
query I rowsort
SELECT + 48 * + col2 - 36 AS col1 FROM tab1 AS cor0
----
2556
2700
4572
query I rowsort
SELECT + col2 * + col1 * 47 AS col2 FROM tab2
----
30362
39339
72098
onlyif mysql # use DIV operator for integer division
query I rowsort label-5721
SELECT - 14 DIV cor0.col1 - + 65 FROM tab2 AS cor0
----
-65
-65
-65
skipif mysql # not compatible
query I rowsort label-5721
SELECT - 14 / cor0.col1 - + 65 FROM tab2 AS cor0
----
-65
-65
-65
query I rowsort
SELECT 30 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT - + cor0.col1 * - col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col1 * 33 * col0 FROM tab1 AS cor0
----
-21120
-2574
-34320
query I rowsort
SELECT + + col0 * - 44 + + 42 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-602
-6708
-6794
query I rowsort
SELECT + + 60 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT ALL - col1 * + col0 * 48 AS col2 FROM tab2
----
-10416
-220896
-64464
query I rowsort
SELECT - - 33 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1155
-2937
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT 91 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
91
skipif mysql # not compatible
query I rowsort label-5729
SELECT 91 / col2 AS col1 FROM tab0 AS cor0
----
1
2
91
query I rowsort
SELECT 68 * col2 AS col1 FROM tab0 AS cor0
----
2244
5576
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-5731
SELECT col2 + + col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5731
SELECT col2 + + col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - + 15 + - ( col1 ) * col2 AS col1 FROM tab1 cor0
----
-1263
-1419
-585
query I rowsort
SELECT + ( + cor0.col1 ) + cor0.col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col2 + 21 AS col1 FROM tab1 cor0
----
117
75
78
query I rowsort
SELECT DISTINCT - 18 * - cor0.col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT + ( - 15 ) + cor0.col1 FROM tab0 AS cor0
----
71
76
82
query I rowsort
SELECT 4 + - col0 * col0 * - 96 FROM tab2 AS cor0
----
4708
584068
599140
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5738
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + + CAST ( NULL AS REAL ) + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + + 72 * + 17 * col0 AS col2 FROM tab2 AS cor0
----
8568
95472
96696
query I rowsort
SELECT + col1 * tab2.col1 + col1 FROM tab2
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col1 FROM tab2 AS cor0
----
-60
-60
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5742
SELECT CAST( + 10 AS SIGNED ) + + cor0.col1 FROM tab0 AS cor0
----
101
107
96
skipif mysql # not compatible
query I rowsort label-5742
SELECT CAST ( + 10 AS INTEGER ) + + cor0.col1 FROM tab0 AS cor0
----
101
107
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5743
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( - col1 ) * ( col1 ) col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( - col1 ) * ( col1 ) col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col2 + + 97 * - col1 * ( col1 ) FROM tab1 AS cor0
----
-16297
-65518
-9643
query I rowsort
SELECT cor1.col0 * 42 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f25a29ae102d615dfea20eb61f96e7b9
query I rowsort
SELECT ALL + 99 * 47 AS col1 FROM tab1 AS cor0
----
4653
4653
4653
query I rowsort
SELECT ALL 34 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT + - col0 + col0 * col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT + + ( + col2 ) + 22 * + col1 AS col2 FROM tab2 AS cor0
----
1324
412
709
query I rowsort
SELECT ALL cor0.col0 * - col1 + col0 * 45 FROM tab0 AS cor0
----
-1820
-4094
-984
query I rowsort
SELECT DISTINCT - 21 + col1 + + ( 70 ) AS col2 FROM tab0 AS cor0
----
135
140
146
query I rowsort
SELECT DISTINCT + col2 - - col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL 59 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2857
-3190
-9157
query I rowsort
SELECT - col0 * + col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + + col2 + - col1 * cor0.col0 + col2 FROM tab2 AS cor0
----
-1267
-163
-4550
query I rowsort
SELECT ALL + 62 * + col2 AS col1 FROM tab0
----
2046
5084
62
query I rowsort
SELECT 86 - ( tab0.col1 ) AS col2 FROM tab0
----
-11
-5
0
query I rowsort
SELECT DISTINCT - cor0.col2 * 75 * + col0 AS col1 FROM tab2 AS cor0
----
-14175
-152100
-225150
query I rowsort
SELECT col0 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col2 + + col2 * + 9 AS col2 FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT - col2 + + ( + col1 + col2 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col2 - col0 * col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - col1 * + ( + 33 ) FROM tab1 AS cor0
----
-330
-429
-858
query I rowsort
SELECT + + 57 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5765
SELECT ALL - - tab1.col1 * + CAST( NULL AS DECIMAL ) FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL - - tab1.col1 * + CAST ( NULL AS REAL ) FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT - cor0.col0 + - col2 + + col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - col1 + - cor0.col1 AS col0 FROM tab2 cor0
----
-118
-34
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5768
SELECT + - col0 / CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5768
SELECT + - col0 / 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-5769
SELECT tab1.col2 * ( 65 ) * - col1 + - CAST( NULL AS SIGNED ) * + 59 - col0 * + col1 / + 72 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5769
SELECT tab1.col2 * ( 65 ) * - col1 + - CAST ( NULL AS INTEGER ) * + 59 - col0 * + col1 / + 72 col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5770
SELECT - tab2.col2 DIV + col0 + 28 FROM tab2
----
25
28
28
skipif mysql # not compatible
query I rowsort label-5770
SELECT - tab2.col2 / + col0 + 28 FROM tab2
----
25
28
28
query I rowsort
SELECT ALL col1 + - 88 AS col1 FROM tab2
----
-29
-57
-71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5772
SELECT - - CAST( NULL AS SIGNED ) * - col0 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5772
SELECT - - CAST ( NULL AS INTEGER ) * - col0 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 89 * + col2 FROM tab0 AS cor0
----
-2937
-7298
-89
query I rowsort
SELECT col2 + col2 * + tab0.col2 * col0 AS col2 FROM tab0
----
26169
36
598518
query I rowsort
SELECT col1 * - 95 FROM tab1
----
-1235
-2470
-950
query I rowsort
SELECT DISTINCT tab0.col2 * 73 * + col2 + col1 * + col1 FROM tab0
----
499133
86893
9482
query I rowsort
SELECT - ( 28 ) FROM tab2
----
-28
-28
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT - col2 DIV ( - col2 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5778
SELECT - col2 / ( - col2 ) FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL ( + col2 ) * col0 * ( 9 + - col0 ) FROM tab0 AS cor0
----
-11880
-583840
-910
query I rowsort
SELECT 18 + - ( col0 ) AS col2 FROM tab1 cor0
----
-46
-62
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - 90 ) * col0 col1 FROM tab1 AS cor0
----
270
5760
7200
query I rowsort
SELECT - col0 + 43 * col0 FROM tab2 cor0
----
294
3276
3318
query I rowsort
SELECT ALL - ( ( col2 ) ) + - 95 FROM tab0 AS cor0
----
-128
-177
-96
query I rowsort
SELECT - col0 * cor0.col2 + col2 * - 18 AS col0 FROM tab0 cor0
----
-1386
-53
-8774
onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT 38 DIV - 91 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5785
SELECT 38 / - 91 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + 26 FROM tab2 AS cor0
----
-52
-53
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5787
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5788
SELECT ALL - - col2 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL - - col2 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL + - ( - col1 ) + col2 * col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT 12 * + col2 FROM tab0 AS cor0
----
12
396
984
query I rowsort
SELECT ALL col0 + + cor0.col1 * - col1 * col2 AS col0 FROM tab2 cor0
----
-10903
-25940
-90428
query I rowsort
SELECT + + col0 * col1 * col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + 40 * - col2 AS col2 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT ALL - - 99 * col1 + - col1 FROM tab2 cor0
----
1666
3038
5782
query I rowsort
SELECT + ( + col2 ) * + col0 * - ( col1 + - 65 ) FROM tab2 AS cor0
----
12168
144096
6426
query I rowsort
SELECT ALL col0 * 45 AS col0 FROM tab1 cor0
----
135
2880
3600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5797
SELECT - + col1 + CAST( col0 AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
1978
3298
8008
skipif mysql # not compatible
query I rowsort label-5797
SELECT - + col1 + CAST ( col0 AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + col2 * col0 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-514
3548
7511
query I rowsort
SELECT + + col1 * col0 - col2 * - col2 AS col2 FROM tab0 AS cor0
----
14823
3153
3396
query I rowsort
SELECT DISTINCT + col0 * col0 + + ( col1 ) FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - + col2 + + 54 FROM tab2 AS cor0
----
16
27
28
query I rowsort
SELECT + cor1.col2 + + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f2aa6062e1c74fd9b424bef552fd729e
query I rowsort
SELECT - ( col2 ) + 86 FROM tab2
----
48
59
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5804
SELECT ALL + col0 * CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL + col0 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - col0 + 87 FROM tab0 AS cor0
----
-2
52
63
query I rowsort
SELECT + col2 * - cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + col0 + + col0 * + ( 23 ) FROM tab1 AS cor0
----
1536
1920
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-5808
SELECT DISTINCT + 15 DIV col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT + 15 / col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 71 + - col2 AS col1 FROM tab1 AS cor0
----
-25
14
17
query I rowsort
SELECT + tab0.col1 * col2 * col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT 89 + col1 FROM tab0
----
175
180
186
onlyif mysql # use DIV operator for integer division
query I rowsort label-5812
SELECT col1 + - cor0.col1 DIV - col1 - + col2 AS col1 FROM tab2 AS cor0
----
-20
34
5
skipif mysql # not compatible
query I rowsort label-5812
SELECT col1 + - cor0.col1 / - col1 - + col2 AS col1 FROM tab2 AS cor0
----
-20
34
5
query I rowsort
SELECT col0 * tab1.col1 * + 8 AS col1 FROM tab1
----
5120
624
8320
query I rowsort
SELECT DISTINCT col1 * col2 * - 19 FROM tab1
----
-10830
-23712
-26676
query I rowsort
SELECT 34 + + col1 FROM tab2
----
51
65
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5816
SELECT + CAST( NULL AS SIGNED ) * - col0 * cor0.col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5816
SELECT + CAST ( NULL AS INTEGER ) * - col0 * cor0.col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT DISTINCT 97 DIV cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1
32
skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT 97 / cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1
32
query I rowsort
SELECT ALL + ( col0 + col1 ) FROM tab1
----
29
74
93
query I rowsort
SELECT 54 - 56 AS col2 FROM tab1 AS cor0
----
-2
-2
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5820
SELECT - 85 / col1 + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5820
SELECT - 85 / col1 + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * + 91 + col1 * col2 FROM tab0 AS cor0
----
-4988
-819
-8730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5822
SELECT ALL - CAST( 31 AS SIGNED ) * + col1 + col2 * + ( col2 ) FROM tab1 cor0
----
2110
2939
8813
skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - CAST ( 31 AS INTEGER ) * + col1 + col2 * + ( col2 ) FROM tab1 cor0
----
2110
2939
8813
query I rowsort
SELECT DISTINCT 69 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col2 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT ALL - + cor1.col1 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ( - 96 ) + + col2 * 33 AS col0 FROM tab1
----
1686
1785
3072
query I rowsort
SELECT - 16 + + col1 + - 8 AS col0 FROM tab0 AS cor0
----
62
67
73
query I rowsort
SELECT DISTINCT + col2 + + tab2.col2 - + 91 AS col1 FROM tab2
----
-15
-37
-39
query I rowsort
SELECT + ( col0 ) - - 9 AS col2 FROM tab2 AS cor0
----
16
87
88
query I rowsort
SELECT - cor0.col2 * - 22 AS col0 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT ( 7 ) AS col0 FROM tab1 AS cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT ALL - - 67 DIV - 17 + - col1 FROM tab0 AS cor0
----
-100
-89
-94
skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL - - 67 / - 17 + - col1 FROM tab0 AS cor0
----
-100
-89
-94
query I rowsort
SELECT DISTINCT - tab1.col2 * - ( 36 ) FROM tab1
----
1944
2052
3456
query I rowsort
SELECT DISTINCT + 27 * - 45 AS col1 FROM tab2 AS cor0
----
-1215
query I rowsort
SELECT + ( 17 ) FROM tab0 cor0
----
17
17
17
query I rowsort
SELECT DISTINCT - - col1 * col0 - - col1 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-35840
-4134
-98800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + col1 * ( col2 * + col0 ) col2 FROM tab2
----
117624
48032
5670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT col1 * + col0 * 3 - col0 AS col1 FROM tab1
----
1856
231
3040
query I rowsort
SELECT DISTINCT 35 + + col0 * 1 * - tab1.col2 AS col2 FROM tab1
----
-127
-3613
-7645
query I rowsort
SELECT ALL - cor0.col1 + 41 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 9e366535e61dc696897acb14b84e2706
onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT ALL + - col0 DIV + col1 + - col1 DIV - cor0.col1 FROM tab2 AS cor0
----
-3
0
1
skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL + - col0 / + col1 + - col1 / - cor0.col1 FROM tab2 AS cor0
----
-3
0
1
query I rowsort
SELECT DISTINCT - col1 + 12 FROM tab1 AS cor0
----
-1
-14
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5845
SELECT DISTINCT col0 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT col0 - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 + - cor0.col1 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + col2 * + 35 * 69 FROM tab0 AS cor0
----
198030
2415
79695
onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT DISTINCT + - col2 DIV 23 + col2 * col0 FROM tab0 cor0
----
35
7295
791
skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT + - col2 / 23 + col2 * col0 FROM tab0 cor0
----
35
7295
791
onlyif mysql # use DIV operator for integer division
query I rowsort label-5849
SELECT ALL + col0 DIV + 14 AS col1 FROM tab2 AS cor0
----
0
5
5
skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + col0 / + 14 AS col1 FROM tab2 AS cor0
----
0
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 52 col0 FROM tab0 cor0
----
141
76
87
query I rowsort
SELECT - 69 + - col1 FROM tab0
----
-155
-160
-166
query I rowsort
SELECT ALL - 32 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08
query I rowsort
SELECT DISTINCT - cor0.col1 + + 39 - + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2111
-3453
-8151
query I rowsort
SELECT DISTINCT + - col2 + 85 - - 77 FROM tab2 AS cor0
----
124
135
136
query I rowsort
SELECT - ( + col1 + + col1 ) * col1 * col2 AS col0 FROM tab0
----
-1358084
-18818
-488136
query I rowsort
SELECT + 82 * - 25 + - cor0.col1 * + col1 FROM tab2 AS cor0
----
-2339
-3011
-5531
query I rowsort
SELECT + 9 * - 24 - col1 FROM tab1 AS cor0
----
-226
-229
-242
query I rowsort
SELECT col0 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT col1 - - 64 AS col0 FROM tab0 AS cor0
----
150
155
161
onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT - col0 DIV 67 + col2 * ( col2 ) FROM tab2 AS cor0
----
1443
675
729
skipif mysql # not compatible
query I rowsort label-5860
SELECT - col0 / 67 + col2 * ( col2 ) FROM tab2 AS cor0
----
1443
675
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT - + 29 + + 47 DIV - col1 AS col0 FROM tab2 AS cor0
----
-29
-30
-31
skipif mysql # not compatible
query I rowsort label-5861
SELECT - + 29 + + 47 / - col1 AS col0 FROM tab2 AS cor0
----
-29
-30
-31
query I rowsort
SELECT - ( - 10 ) * + cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9cffb0f1a0812c5b73cd3a925a52dd6f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5863
SELECT - CAST( NULL AS SIGNED ) * 10 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5863
SELECT - CAST ( NULL AS INTEGER ) * 10 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 * - col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - + cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5866
SELECT CAST( col1 AS SIGNED ) * + col2 AS col1 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-5866
SELECT CAST ( col1 AS INTEGER ) * + col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - + ( col1 ) FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT ( + cor2.col0 ) FROM tab2, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5869
SELECT DISTINCT - 65 * cor0.col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT - 65 * cor0.col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5870
SELECT ALL + CAST( col0 AS SIGNED ) + + col2 - col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + CAST ( col0 AS INTEGER ) + + col2 - col0 FROM tab1
----
54
57
96
query I rowsort
SELECT col2 + - col0 + + cor0.col2 FROM tab1 AS cor0
----
105
112
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 50 * - col1 * 5 col0 FROM tab2 cor0
----
-14750
-4250
-7750
query I rowsort
SELECT + col2 + cor0.col1 * ( col2 ) AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - 62 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806
query I rowsort
SELECT + col1 * cor0.col2 - ( 80 * - col1 ) AS col1 FROM tab2 AS cor0
----
2006
3317
6254
query I rowsort
SELECT + cor0.col1 * col2 + 53 AS col2 FROM tab1 AS cor0
----
1301
1457
623
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + col1 col0 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT ALL - + 54 AS col1 FROM tab2 cor0
----
-54
-54
-54
query I rowsort
SELECT DISTINCT - - 64 * col2 FROM tab0 AS cor0
----
2112
5248
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5880
SELECT CAST( NULL AS DECIMAL ) * + col0 + + tab0.col0 / col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5880
SELECT CAST ( NULL AS REAL ) * + col0 + + tab0.col0 / col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col2 ) + tab2.col0 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT ALL - col0 * col1 DIV col1 - + 14 * - 17 AS col2 FROM tab1
----
158
174
235
skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL - col0 * col1 / col1 - + 14 * - 17 AS col2 FROM tab1
----
158
174
235
query I rowsort
SELECT ALL - ( + col0 * - tab2.col1 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL - col0 + - col1 * + col0 + - col2 FROM tab1
----
-1216
-135
-761
query I rowsort
SELECT DISTINCT - 9 + - tab0.col0 + + col0 AS col2 FROM tab0
----
-9
query I rowsort
SELECT ALL + col1 * + col1 + - 78 FROM tab1
----
22
598
91
query I rowsort
SELECT ALL + - col1 + col0 * col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT 53 + col0 + - col2 FROM tab2 AS cor0
----
105
33
94
query I rowsort
SELECT DISTINCT - col0 * + col2 + cor0.col2 + + 10 AS col2 FROM tab2 AS cor0
----
-152
-1992
-2954
query I rowsort
SELECT col1 + cor0.col1 * col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT cor0.col0 + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 + col0 col0 FROM tab1 cor0
----
-6
55
71
query I rowsort
SELECT - col1 * col2 + 54 FROM tab2 cor0
----
-1480
-592
-783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5894
SELECT 24 * col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5894
SELECT 24 * col1 * CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * - col1 AS col2 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5896
SELECT ALL + - col1 DIV cor0.col2 + - col2 DIV + 89 AS col1 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL + - col1 / cor0.col2 + - col2 / + 89 AS col1 FROM tab0 cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * 45 col1 FROM tab1
----
2404
2555
4307
onlyif mysql # use DIV operator for integer division
query I rowsort label-5898
SELECT DISTINCT + ( col0 ) DIV col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + ( col0 ) / col1 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT + ( + ( cor0.col0 ) ) + cor0.col1 * - 48 FROM tab1 AS cor0
----
-1245
-416
-544
query I rowsort
SELECT ALL + col2 + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - + col1 * - 84 + - col0 AS col2 FROM tab0 AS cor0
----
7200
7555
8113
query I rowsort
SELECT + ( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5903
SELECT ALL - + 57 DIV 76 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - + 57 / 76 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT 43 * col0 + col0 FROM tab1
----
132
2816
3520
query I rowsort
SELECT ALL - - tab1.col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL - + col1 * col1 - + col0 * + col0 AS col0 FROM tab0 AS cor0
----
-10634
-16202
-7972
onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT ALL col0 DIV - 15 + + col2 AS col2 FROM tab2 AS cor0
----
21
27
33
skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL col0 / - 15 + + col2 AS col2 FROM tab2 AS cor0
----
21
27
33
query I rowsort
SELECT cor0.col1 * + 23 FROM tab0 AS cor0
----
1978
2093
2231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * col2 + - 61 * + col1 col2 FROM tab2 cor0
----
-1162
-2923
407
query I rowsort
SELECT DISTINCT - col1 - - 45 FROM tab2 AS cor0
----
-14
14
28
query I rowsort
SELECT DISTINCT + col1 * + 20 + - col0 FROM tab1 AS cor0
----
136
180
517
query I rowsort
SELECT DISTINCT + col1 * 23 AS col0 FROM tab0 AS cor0
----
1978
2093
2231
onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT + tab0.col2 DIV col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5913
SELECT + tab0.col2 / col1 col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5914
SELECT tab2.col2 DIV ( col2 + + col0 ) AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5914
SELECT tab2.col2 / ( col2 + + col0 ) AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - cor0.col1 * 55 FROM tab2 AS cor0
----
-1705
-3245
-935
onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT + - 46 DIV - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
skipif mysql # not compatible
query I rowsort label-5916
SELECT + - 46 / - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
query I rowsort
SELECT + 77 + 46 FROM tab1, tab0 AS cor0
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb
query I rowsort
SELECT ALL - + 42 * col1 * - ( + ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-12138
-146202
-40362
query I rowsort
SELECT DISTINCT ( + col0 * col1 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT col0 + 18 AS col2 FROM tab1
----
21
82
98
query I rowsort
SELECT + 92 * col0 AS col0 FROM tab0 cor0
----
2208
3220
8188
query I rowsort
SELECT DISTINCT 78 * col0 FROM tab0
----
1872
2730
6942
query I rowsort
SELECT + col1 + - col2 * ( + 56 ) FROM tab1
----
-2998
-3182
-5363
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT col2 * + col2 * ( - ( col1 ) * 53 ) AS col2 FROM tab0
----
-32429852
-4963662
-5141
query I rowsort
SELECT ALL - col2 + - col1 * 62 AS col0 FROM tab0 AS cor0
----
-5365
-5724
-6015
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * + col0 col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-90
query I rowsort
SELECT ALL col0 * 35 AS col2 FROM tab1
----
105
2240
2800
query I rowsort
SELECT col1 * ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - ( - col0 + - col1 * col2 ) FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL + cor0.col0 * + col1 - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL - 65 * - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 85df5d3dacc5ae0a06f5015130ef3aeb
query I rowsort
SELECT 97 * + col1 + + col2 FROM tab1 AS cor0
----
1027
1357
2576
query I rowsort
SELECT - 58 + col0 AS col1 FROM tab0 cor0
----
-23
-34
31
query I rowsort
SELECT 89 + - col0 * tab1.col1 AS col2 FROM tab1
----
-551
-951
11
query I rowsort
SELECT + 93 FROM tab0 cor0
----
93
93
93
query I rowsort
SELECT DISTINCT - col2 * - col0 - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - col0 * col1 + col0 * - col0 FROM tab0 cor0
----
-16020
-2640
-4620
query I rowsort
SELECT ( col2 ) + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col2 FROM tab0, tab2 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT col2 - + ( col0 ) * - col1 AS col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT + 75 * tab2.col2 AS col0 FROM tab2
----
1950
2025
2850
onlyif mysql # use DIV operator for integer division
query I rowsort label-5944
SELECT col1 + col2 * col2 + + 40 DIV col2 AS col0 FROM tab0
----
1176
138
6815
skipif mysql # not compatible
query I rowsort label-5944
SELECT col1 + col2 * col2 + + 40 / col2 AS col0 FROM tab0
----
1176
138
6815
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5945
SELECT CAST( NULL AS SIGNED ) + - col2 * + col2 * + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5945
SELECT CAST ( NULL AS INTEGER ) + - col2 * + col2 * + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - cor0.col0 * col2 + - col2 - ( col0 ) FROM tab1 AS cor0
----
-219
-3769
-7856
query I rowsort
SELECT ALL 48 + - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4144
57
6448
query I rowsort
SELECT ALL + 70 + 39 * - col2 FROM tab2 AS cor0
----
-1412
-944
-983
query I rowsort
SELECT DISTINCT + 18 * 58 * - col1 FROM tab2 AS cor0
----
-17748
-32364
-61596
onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT DISTINCT + - col1 DIV + cor0.col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + - col1 / + cor0.col2 FROM tab1 cor0
----
0
query I rowsort
SELECT ( ( col0 ) ) + col0 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
203
2184
3160
query I rowsort
SELECT + 91 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT col2 * + 57 FROM tab0 AS cor0
----
1881
4674
57
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col2 * CAST ( - 73 AS REAL ) FROM tab1 AS cor0
----
-3942
-4161
-7008
query I rowsort
SELECT + col2 * - 60 FROM tab0 AS cor0
----
-1980
-4920
-60
query I rowsort
SELECT DISTINCT + col0 * + 62 AS col2 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT ALL col1 + 25 * - col2 AS col0 FROM tab1 AS cor0
----
-1324
-1415
-2387
query I rowsort
SELECT ALL - col1 + - 64 AS col1 FROM tab1 AS cor0
----
-74
-77
-90
query I rowsort
SELECT DISTINCT + - col1 + - col1 * + 21 * + col2 + + col0 * 55 FROM tab1 AS cor0
----
-21821
-29345
-8460
query I rowsort
SELECT ALL 33 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5963
SELECT ALL + - cor0.col0 DIV + col0 - 42 col1 FROM tab2 AS cor0
----
-43
-43
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + - cor0.col0 / + col0 - 42 col1 FROM tab2 AS cor0
----
-43
-43
-43
query I rowsort
SELECT ALL + col2 + 75 FROM tab1 cor0
----
129
132
171
onlyif mysql # use DIV operator for integer division
query I rowsort label-5965
SELECT DISTINCT + col1 + cor0.col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT + col1 + cor0.col2 / + col0 AS col2 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort
SELECT + + col0 * CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col2 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col2 + 76 * cor0.col2 AS col0 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT ALL + - col1 + ( - cor0.col1 * cor0.col0 ) FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-5970
SELECT DISTINCT + + col1 DIV col0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT + + col1 / col0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT ALL col0 * - 80 AS col0 FROM tab0 AS cor0
----
-1920
-2800
-7120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5972
SELECT + col2 + + CAST( - col2 AS SIGNED ) * - col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
207993
737376
8802
skipif mysql # not compatible
query I rowsort label-5972
SELECT + col2 + + CAST ( - col2 AS INTEGER ) * - col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
207993
737376
8802
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 + 43 + + col2 col1 FROM tab0 AS cor0
----
2140
3439
8224
query I rowsort
SELECT + - col1 + 47 FROM tab1 AS cor0
----
21
34
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5975
SELECT + + CAST( + 96 AS SIGNED ) - col1 AS col2 FROM tab1 cor0
----
70
83
86
skipif mysql # not compatible
query I rowsort label-5975
SELECT + + CAST ( + 96 AS INTEGER ) - col1 AS col2 FROM tab1 cor0
----
70
83
86
query I rowsort
SELECT DISTINCT + - 16 * 47 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-1544
-787
-8050
query I rowsort
SELECT col1 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5978
SELECT ALL + - CAST( ( col1 ) AS SIGNED ) * col2 - 61 FROM tab1 AS cor0
----
-1309
-1465
-631
skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL + - CAST ( ( col1 ) AS INTEGER ) * col2 - 61 FROM tab1 AS cor0
----
-1309
-1465
-631
query I rowsort
SELECT + col1 + + tab0.col0 AS col0 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 * ( - col0 ) + col2 col1 FROM tab1 AS cor0
----
-207879
-737184
-8694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col0 * 6 col2 FROM tab1 AS cor0
----
-21888
-46080
-972
query I rowsort
SELECT - - 17 * col2 AS col0 FROM tab0 AS cor0
----
1394
17
561
query I rowsort
SELECT ALL - + 12 FROM tab1 AS cor0
----
-12
-12
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT DISTINCT - - cor0.col2 + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - - cor0.col2 + col0 / col0 AS col0 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5985
SELECT + - cor0.col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5985
SELECT + - cor0.col0 / - col0 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + ( - col0 ) * - ( col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 - + col0 * 19 AS col0 FROM tab0 AS cor0
----
-1600
-370
-568
query I rowsort
SELECT - col0 + 81 + + col1 FROM tab0
----
143
143
83
query I rowsort
SELECT + 23 * col1 FROM tab2 cor0
----
1357
391
713
query I rowsort
SELECT + 24 + col1 * + col1 AS col1 FROM tab1
----
124
193
700
query I rowsort
SELECT col1 + + tab0.col2 * - col1 AS col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT + 93 + col2 FROM tab1 AS cor0
----
147
150
189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5993
SELECT ALL CAST( - col0 * col0 AS SIGNED ) AS col2 FROM tab2
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL CAST ( - col0 * col0 AS INTEGER ) AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ( tab1.col0 ) * 20 + + tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b97b5fcffb60298cf39199a33f076d78
query I rowsort
SELECT - 3 * col0 * col0 AS col0 FROM tab0 AS cor0
----
-1728
-23763
-3675
query I rowsort
SELECT + 51 + - col0 * + col1 * + col1 FROM tab0 AS cor0
----
-177453
-329264
-736958
query I rowsort
SELECT DISTINCT + col2 + + col0 + - 36 FROM tab1 cor0
----
140
21
85
query I rowsort
SELECT DISTINCT - col0 + 14 AS col0 FROM tab0 cor0
----
-10
-21
-75
query I rowsort
SELECT - + col1 + 26 AS col1 FROM tab1 AS cor0
----
0
13
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6000
SELECT ALL + + col1 * CAST( + 20 AS SIGNED ) FROM tab1 AS cor0
----
200
260
520
skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + + col1 * CAST ( + 20 AS INTEGER ) FROM tab1 AS cor0
----
200
260
520
query I rowsort
SELECT + col1 * col0 + cor0.col1 * col0 FROM tab0 AS cor0
----
16198
4128
6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT DISTINCT + col0 DIV - ( + col1 ) + + col2 AS col1 FROM tab1 AS cor0
----
51
54
90
skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + col0 / - ( + col1 ) + + col2 AS col1 FROM tab1 AS cor0
----
51
54
90
query I rowsort
SELECT col2 * + ( + col1 ) * - col0 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT + cor0.col1 + + 19 FROM tab0 cor0
----
105
110
116
query I rowsort
SELECT + ( + 49 ) AS col0 FROM tab0 AS cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-6006
SELECT 33 DIV + 75 + cor0.col2 * 94 AS col0 FROM tab0 AS cor0
----
3102
7708
94
skipif mysql # not compatible
query I rowsort label-6006
SELECT 33 / + 75 + cor0.col2 * 94 AS col0 FROM tab0 AS cor0
----
3102
7708
94
query I rowsort
SELECT ALL - ( 21 ) * col0 AS col1 FROM tab1 AS cor0
----
-1344
-1680
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT + + col2 + col1 DIV + col1 col1 FROM tab0 AS cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6008
SELECT + + col2 + col1 / + col1 col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT - ( - col2 ) + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - cor0.col0 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - 68 * - 26 + + col2 AS col2 FROM tab0 AS cor0
----
1769
1801
1850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6012
SELECT CAST( NULL AS SIGNED ) * + col2 + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6012
SELECT CAST ( NULL AS INTEGER ) * + col2 + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6013
SELECT ALL - ( - ( col2 DIV - col1 ) ) * - 80 * col1 FROM tab1 AS cor0
----
4000
4160
7280
skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - ( - ( col2 / - col1 ) ) * - 80 * col1 FROM tab1 AS cor0
----
4000
4160
7280
query I rowsort
SELECT + + 77 * + cor0.col1 + - cor0.col2 FROM tab1 cor0
----
1948
713
905
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 46 AS REAL ) * + col0 FROM tab0 cor0
----
1104
1610
4094
query I rowsort
SELECT + + 87 AS col0 FROM tab2 cor0
----
87
87
87
query I rowsort
SELECT ALL cor0.col0 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1120
704
81
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT ALL 42 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ( - 18 ) * + col0 + - col0 AS col1 FROM tab2
----
-133
-1482
-1501
query I rowsort
SELECT + ( + col2 + + tab2.col1 ) * - tab2.col2 * - 81 AS col0 FROM tab2
----
126846
169290
179010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col0 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6025
SELECT - col0 * - CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab2
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-6025
SELECT - col0 * - CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col1 + cor0.col0 col0 FROM tab0 AS cor0
----
167
7478
902
query I rowsort
SELECT DISTINCT col0 * + ( tab1.col0 ) * - col2 + ( col1 ) - col0 * - col1 AS col1 FROM tab1
----
-232822
-382
-613347
query I rowsort
SELECT DISTINCT col1 - - 16 AS col2 FROM tab1
----
26
29
42
query I rowsort
SELECT col2 * col2 + col0 AS col1 FROM tab2
----
1523
736
754
query I rowsort
SELECT DISTINCT col1 + col1 - - col1 FROM tab2
----
177
51
93
query I rowsort
SELECT col2 * col2 * col0 AS col1 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL - tab2.col0 + col1 + col1 FROM tab2
----
-45
40
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT col0 + col2 + col0 DIV col2 FROM tab1
----
122
176
57
skipif mysql # not compatible
query I rowsort label-6033
SELECT col0 + col2 + col0 / col2 FROM tab1
----
122
176
57
query I rowsort
SELECT + col2 * + col0 * col1 AS col0 FROM tab2
----
119652
51034
5859
query III rowsort
SELECT * FROM tab2 WHERE + col0 * + col0 - col2 >= - col2 + + col2 / - col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT ALL col2 * - col2 DIV col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL col2 * - col2 / col2 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT DISTINCT + col2 * col0 DIV col2 AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT + col2 * col0 / col2 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT + tab0.col2 + col0 + col2 * + col0 FROM tab0
----
71
7469
849
query III rowsort
SELECT * FROM tab1 WHERE - col0 * col2 - + col1 <= - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6040
SELECT ALL + tab1.col2 DIV col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL + tab1.col2 / col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT col1 * - col0 * tab2.col1 AS col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL IN ( + tab0.col1 )
----
query I rowsort
SELECT DISTINCT - col2 * col2 + + col1 * cor0.col0 * col1 FROM tab2 AS cor0
----
21387
270842
5998
onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT - tab0.col2 + - tab0.col1 * col0 DIV col0 + col2 DIV col1 FROM tab0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-6044
SELECT - tab0.col2 + - tab0.col1 * col0 / col0 + col2 / col1 FROM tab0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 + - col1 col2 FROM tab2
----
-17
141
97
query I rowsort
SELECT - tab1.col0 * - col1 FROM tab1 WHERE NOT + col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 * tab1.col1 * col2 AS col0 FROM tab1
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT DISTINCT + col1 DIV tab2.col0 AS col0 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + col1 / tab2.col0 AS col0 FROM tab2
----
0
4
query I rowsort
SELECT DISTINCT + col1 * - col2 + + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT col0 + + col1 * - col1 FROM tab2 cor0
----
-210
-3403
-954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + cor0.col1 + col2 col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT - col2 * - col0 * - col1 - col0 AS col0 FROM tab2 AS cor0
----
-119730
-51113
-5866
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND NULL AND NULL NOT IN ( col0 )
----
query I rowsort
SELECT + col0 * - col1 + col1 AS col2 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT - col0 * col0 + + col1 * col1 FROM tab0
----
360
6820
8184
query I rowsort
SELECT DISTINCT - col1 * tab2.col1 + col2 * col1 FROM tab2
----
-124
-1947
357
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab0, tab2 cor0 CROSS JOIN tab2
----
17
31
59
query I rowsort
SELECT col1 - col0 * + col1 FROM tab2
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT ALL + - col0 DIV + col0 + col2 + - col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL + - col0 / + col0 + col2 + - col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - cor0.col0 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col2 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + 29 * + col2 FROM tab1 AS cor0
----
1566
1653
2784
query I rowsort
SELECT DISTINCT 14 + col0 AS col1 FROM tab1 AS cor0
----
17
78
94
query I rowsort
SELECT DISTINCT + - cor0.col2 + - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-6065
SELECT cor0.col1 + cor0.col0 DIV + col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6065
SELECT cor0.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-6066
SELECT ALL - - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 + ( 99 ) FROM tab0 AS cor0
----
17
66
98
query I rowsort
SELECT DISTINCT - - col0 * col1 + col2 * col2 AS col1 FROM tab1 cor0
----
10256
2994
3889
query I rowsort
SELECT ALL + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6070
SELECT - + col2 + 65 DIV col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-96
skipif mysql # not compatible
query I rowsort label-6070
SELECT - + col2 + 65 / col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + ( + col1 ) col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - + cor0.col2 * - ( + ( cor0.col0 ) * - 52 + - col2 ) AS col0 FROM tab0 AS cor0
----
-1821
-386220
-42273
onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT - tab1.col2 DIV col1 + + 49 * - 55 FROM tab1
----
-2697
-2700
-2702
skipif mysql # not compatible
query I rowsort label-6073
SELECT - tab1.col2 / col1 + + 49 * - 55 FROM tab1
----
-2697
-2700
-2702
query I rowsort
SELECT + cor0.col2 + 69 * col0 FROM tab1 AS cor0
----
261
4473
5616
query I rowsort
SELECT col0 * tab1.col2 + - col1 FROM tab1
----
136
3638
7667
query I rowsort
SELECT - col0 + + tab2.col1 * col1 FROM tab2
----
210
3403
954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab1.col2 * col2 col2 FROM tab1
----
2970
3306
9312
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( col1 + col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 >= NULL
----
query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT col2 + + col1 * col2 AS col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL + + 31 * + col0 FROM tab0 AS cor0
----
1085
2759
744
query I rowsort
SELECT - col2 * - col1 + ( col1 ) FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + 97 + col1 FROM tab0 AS cor0
----
183
188
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT ALL col1 DIV col0 + col2 FROM tab2 WHERE col1 * tab2.col0 + col0 >= + col2 + + col0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL col1 / col0 + col2 FROM tab2 WHERE col1 * tab2.col0 + col0 >= + col2 + + col0
----
26
31
38
query I rowsort
SELECT - col2 * - col2 * col1 + col0 + + col1 FROM tab1
----
119901
32564
75845
query I rowsort
SELECT - cor0.col1 + ( 68 ) FROM tab2 AS cor0
----
37
51
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 10 col0 FROM tab2 AS cor0
----
21
49
7
query I rowsort
SELECT + - col2 * - ( col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col1 * + CAST ( + col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + ( - col1 ) * tab1.col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - cor0.col1 * - 55 AS col0 FROM tab1, tab0 cor0
----
4730
5005
5335
onlyif mysql # use DIV operator for integer division
query I rowsort label-6094
SELECT ALL ( - col2 + + ( - col1 ) ) DIV col0 AS col0 FROM tab2
----
-1
-8
0
skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL ( - col2 + + ( - col1 ) ) / col0 AS col0 FROM tab2
----
-1
-8
0
query I rowsort
SELECT DISTINCT - 58 * cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1508
-580
-754
query I rowsort
SELECT ALL - 7 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT 36 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT - cor0.col1 + + col2 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
119593
51017
5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT + 33 DIV tab1.col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6099
SELECT + 33 / tab1.col2 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6100
SELECT - ( - ( col2 ) ) DIV col2 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6100
SELECT - ( - ( col2 ) ) / col2 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL - + col0 + 24 FROM tab0 AS cor0
----
-11
-65
0
query I rowsort
SELECT DISTINCT 48 * + col2 - + col0 * col2 FROM tab2 AS cor0
----
-1178
-780
1107
onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT DISTINCT - 42 * - col0 + col0 - col0 DIV - 88 FROM tab2 AS cor0
----
301
3354
3397
skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT - 42 * - col0 + col0 - col0 / - 88 FROM tab2 AS cor0
----
301
3354
3397
query I rowsort
SELECT DISTINCT - col1 * col0 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-6105
SELECT + - col0 DIV + col0 col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6105
SELECT + - col0 / + col0 col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + tab1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-6107
SELECT + 25 + - col1 DIV - col0 FROM tab1 AS cor0
----
25
25
33
skipif mysql # not compatible
query I rowsort label-6107
SELECT + 25 + - col1 / - col0 FROM tab1 AS cor0
----
25
25
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * tab2.col2 col2 FROM tab2
----
-1456
-1512
-2128
query I rowsort
SELECT DISTINCT col1 * + col1 + col1 + col0 AS col2 FROM tab1 AS cor0
----
174
262
705
query I rowsort
SELECT + + ( + ( col1 ) ) FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT + col1 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6111
SELECT + col1 / cor0.col1 AS col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6112
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col2 col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col2 * + cor0.col0 * + col0 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab0 cor0
----
1
33
82
query I rowsort
SELECT + col1 - - cor0.col1 * - cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
-10965
-25916
-90447
onlyif mysql # use DIV operator for integer division
query I rowsort label-6116
SELECT col2 * + col0 DIV col0 AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6116
SELECT col2 * + col0 / col0 AS col0 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT ALL col1 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL col1 / cor0.col1 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - + col1 * - cor0.col0 + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + 4 + col2 AS col0 FROM tab1 AS cor0
----
100
58
61
query I rowsort
SELECT DISTINCT 43 * - cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
-1008
-1470
-3738
query I rowsort
SELECT DISTINCT - 76 * col2 AS col2 FROM tab2
----
-1976
-2052
-2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT ALL 79 DIV col0 AS col0 FROM tab1
----
0
1
26
skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL 79 / col0 AS col0 FROM tab1
----
0
1
26
query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab1
----
58
query I rowsort
SELECT DISTINCT col1 * 51 * col1 FROM tab2
----
14739
177531
49011
query I rowsort
SELECT ALL col0 + col0 * col1 AS col1 FROM tab1 cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6126
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col0 * - col2 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col0 * - col2 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 21 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT ALL + + CAST( - 6 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL + + CAST ( - 6 AS INTEGER ) / col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( - 64 ) + + cor0.col2 FROM tab0 AS cor0
----
-31
-63
18
query I rowsort
SELECT ALL - - cor0.col0 - + col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab1 AS cor0
----
49
query I rowsort
SELECT ALL + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - + 85 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
1185
2213
914
query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col2 * + col0 AS col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT cor0.col1 FROM tab1, tab1 cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
onlyif mysql # use DIV operator for integer division
query I rowsort label-6136
SELECT ALL 13 + col0 DIV + 46 AS col0 FROM tab1 AS cor0
----
13
14
14
skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL 13 + col0 / + 46 AS col0 FROM tab1 AS cor0
----
13
14
14
query I rowsort
SELECT ALL - + 66 * - col2 + - col2 * + ( col1 ) FROM tab2 AS cor0
----
182
1862
945
query I rowsort
SELECT + 82 AS col1 FROM tab2 cor0
----
82
82
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + - col2 * - col1 - col2 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-6141
SELECT ALL - col2 + + col2 * - 82 + col0 DIV + col1 FROM tab2 AS cor0
----
-2157
-2241
-3150
skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL - col2 + + col2 * - 82 + col0 / + col1 FROM tab2 AS cor0
----
-2157
-2241
-3150
onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT DISTINCT - - col2 DIV col0 - + 11 DIV - col0 FROM tab1 AS cor0
----
0
1
21
skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - - col2 / col0 - + 11 / - col0 FROM tab1 AS cor0
----
0
1
21
query I rowsort
SELECT 5 + col1 * tab2.col0 FROM tab2
----
1348
222
4607
query I rowsort
SELECT ALL - col1 * - ( - col1 ) + + cor0.col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT - col0 * + ( + 34 ) + col0 AS col1 FROM tab0 AS cor0
----
-1155
-2937
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6146
SELECT DISTINCT col1 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT col1 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 82 * col0 * ( + col1 ) FROM tab0
----
-169248
-278390
-664118
query I rowsort
SELECT col1 * col1 + 47 * + tab0.col2 + col0 FROM tab0
----
12224
8971
9491
query I rowsort
SELECT - col2 + 28 AS col1 FROM tab2 AS cor0
----
-10
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT DISTINCT + tab2.col2 DIV - ( col0 ) + - col0 FROM tab2
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT + tab2.col2 / - ( col0 ) + - col0 FROM tab2
----
-10
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( col1 ) col1 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT DISTINCT - - col2 DIV - col0 AS col1 FROM tab2 cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - - col2 / - col0 AS col1 FROM tab2 cor0
----
-3
0
query I rowsort
SELECT - col0 * - 16 AS col0 FROM tab1 cor0
----
1024
1280
48
query I rowsort
SELECT ALL - col1 + + col2 * - cor0.col0 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 col0 FROM tab0 AS cor0
----
-41
-41
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + + col1 col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + col0 * ( + col2 ) + - col0 AS col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT - col0 * col1 * col0 + + col2 FROM tab1
----
-180
-40903
-83104
query I rowsort
SELECT DISTINCT col2 + - 92 AS col2 FROM tab0
----
-10
-59
-91
query I rowsort
SELECT col0 + + 23 AS col2 FROM tab0 AS cor0
----
112
47
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT - 44 + - col1 DIV col2 FROM tab1 AS cor0
----
-44
-44
-44
skipif mysql # not compatible
query I rowsort label-6161
SELECT - 44 + - col1 / col2 FROM tab1 AS cor0
----
-44
-44
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT ALL - col1 + ( - col1 ) DIV + col1 + col1 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - col1 + ( - col1 ) / + col1 + col1 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - 46 + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3825ae82eae23b36d626a808152851c9
query I rowsort
SELECT DISTINCT + col2 * col0 * - col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab2, tab1 cor0
----
-83
query I rowsort
SELECT ALL ( ( col1 ) ) * + 87 FROM tab0 AS cor0
----
7482
7917
8439
query I rowsort
SELECT ALL + 73 + + cor0.col2 FROM tab2 AS cor0
----
100
111
99
query I rowsort
SELECT ALL + col1 + + 30 AS col0 FROM tab2 AS cor0
----
47
61
89
query I rowsort
SELECT - ( col1 ) * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT col1 + col0 + ( cor0.col1 + - col2 * - cor0.col0 ) FROM tab1 AS cor0
----
217
3732
7786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 col2 FROM tab2
----
-73
query I rowsort
SELECT DISTINCT - col2 + 3 * - col2 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT col1 * + ( + col0 ) + col2 * 28 AS col2 FROM tab2 cor0
----
2407
5330
973
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - + col0 - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 5 + - 9 - - cor0.col0 col2 FROM tab0 AS cor0
----
135
201
525
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 31 * - 19 col0 FROM tab2 AS cor0
----
-551
-562
-563
query I rowsort
SELECT cor0.col2 * + col1 + - 81 FROM tab0 AS cor0
----
16
2757
7381
query I rowsort
SELECT - + col2 + + ( + 93 ) - - col0 * 74 * + 89 AS col2 FROM tab0 AS cor0
----
158124
230602
586165
onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT + col2 * 56 DIV + 53 + + col0 + col0 AS col0 FROM tab2 AS cor0
----
183
198
42
skipif mysql # not compatible
query I rowsort label-6181
SELECT + col2 * 56 / + 53 + + col0 + col0 AS col0 FROM tab2 AS cor0
----
183
198
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6182
SELECT - + col2 * col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6182
SELECT - + col2 * col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - + col2 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 - col0 col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + 63 * + col1 * col2 AS col1 FROM tab0
----
178794
470106
6111
query I rowsort
SELECT 72 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6187
SELECT DISTINCT + col0 + + tab0.col2 - CAST( 59 AS SIGNED ) AS col2 FROM tab0
----
-2
-23
112
skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT + col0 + + tab0.col2 - CAST ( 59 AS INTEGER ) AS col2 FROM tab0
----
-2
-23
112
query I rowsort
SELECT col1 + - cor0.col0 * + 90 FROM tab1 cor0
----
-244
-5750
-7187
onlyif mysql # use DIV operator for integer division
query I rowsort label-6189
SELECT DISTINCT col0 + + col1 DIV + col0 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT col0 + + col1 / + col0 FROM tab1 AS cor0
----
11
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6190
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + col2 / col1 - 25 * + col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + col2 / col1 - 25 * + col2 AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT + col2 * + col1 + 20 DIV - col1 FROM tab1 AS cor0
----
1247
1404
568
skipif mysql # not compatible
query I rowsort label-6191
SELECT + col2 * + col1 + 20 / - col1 FROM tab1 AS cor0
----
1247
1404
568
query I rowsort
SELECT ALL col2 + - 79 + + col2 FROM tab2 AS cor0
----
-25
-27
-3
query I rowsort
SELECT DISTINCT col1 * ( 34 ) AS col0 FROM tab0 cor0
----
2924
3094
3298
query I rowsort
SELECT ALL + + col2 * 50 AS col0 FROM tab1 AS cor0
----
2700
2850
4800
query I rowsort
SELECT col2 + - col2 * 9 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT - + col2 * - ( col2 ) + col0 AS col2 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT + + col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - 4 * - col2 AS col2 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT + col1 * - col2 * + col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - 38 - - 30 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT - col2 + tab0.col1 * 45 FROM tab0
----
3837
4013
4364
query I rowsort
SELECT 31 FROM tab0, tab0 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT ( + 5 ) FROM tab1, tab2 AS cor0
----
5
query I rowsort
SELECT ALL - tab0.col2 * cor0.col1 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to f63103b940e61ec890521f17eeb1cdb0
query I rowsort
SELECT + 77 * col2 AS col2 FROM tab1 cor0
----
4158
4389
7392
query I rowsort
SELECT + 27 FROM tab0, tab2 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT 6 * col2 FROM tab0
----
198
492
6
query I rowsort
SELECT DISTINCT - 72 * - 10 AS col0 FROM tab1
----
720
query I rowsort
SELECT - 31 * - col2 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT DISTINCT + col2 * 42 AS col1 FROM tab2
----
1092
1134
1596
query I rowsort
SELECT ALL + + cor0.col1 * + col0 + + col0 * col0 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT ALL + + 54 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3078
5184
query I rowsort
SELECT + + cor0.col0 + col0 * ( - 63 ) FROM tab1 AS cor0
----
-186
-3968
-4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT DISTINCT + + 28 * - col0 * col2 + - 3 * col2 DIV 51 AS col1 FROM tab0 AS cor0
----
-204348
-22177
-980
skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT + + 28 * - col0 * col2 + - 3 * col2 / 51 AS col1 FROM tab0 AS cor0
----
-204348
-22177
-980
onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT + ( + col2 ) * col0 + col0 DIV - col2 col2 FROM tab0
----
0
7297
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6215
SELECT + ( + col2 ) * col0 + col0 / - col2 col2 FROM tab0
----
0
7297
792
query I rowsort
SELECT DISTINCT - tab2.col2 * + 11 AS col2 FROM tab2
----
-286
-297
-418
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + - 20 + tab0.col2 col2 FROM tab0
----
-2051
-3414
-8037
query I rowsort
SELECT - col2 + + col2 + + 87 FROM tab2 cor0
----
87
87
87
query I rowsort
SELECT DISTINCT + + 5 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT + - 97 - col2 FROM tab1 cor0
----
-151
-154
-193
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6221
SELECT - col2 + col0 + CAST( col2 + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-6221
SELECT - col2 + col0 + CAST ( col2 + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col1 * - col0 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT - col0 + + 70 FROM tab2
----
-8
-9
63
query I rowsort
SELECT ALL cor1.col0 + + 81 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ea42afdc887557ff2686f65be4fdfcf1
query I rowsort
SELECT 1 * 51 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT ALL 21 * 71 + col0 * + 38 + 40 AS col2 FROM tab2 AS cor0
----
1797
4495
4533
query I rowsort
SELECT ALL ( + col1 ) + col0 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 97 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
97
query I rowsort
SELECT DISTINCT col1 * col2 * - col1 + - 80 AS col0 FROM tab0 AS cor0
----
-244148
-679122
-9489
query I rowsort
SELECT DISTINCT cor1.col0 - + 95 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-16
-17
-88
query I rowsort
SELECT + 41 * - col1 AS col2 FROM tab2 AS cor0
----
-1271
-2419
-697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6233
SELECT - 64 + - 47 * cor1.col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6233
SELECT - 64 + - 47 * cor1.col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 3 col0 FROM tab1 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab0 cor0
----
5
query I rowsort
SELECT 52 * col2 * - 43 + - ( col1 + ( col0 ) ) * - col1 AS col0 FROM tab2 cor0
----
-50053
-59194
-83336
query I rowsort
SELECT ALL 75 + col0 AS col1 FROM tab1 AS cor0
----
139
155
78
query I rowsort
SELECT DISTINCT col1 * - col1 - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2240
3149
9047
query I rowsort
SELECT DISTINCT - - col1 - cor0.col0 FROM tab0 cor0
----
2
62
query I rowsort
SELECT + - 80 - + col0 * col0 FROM tab1 AS cor0
----
-4176
-6480
-89
query I rowsort
SELECT ALL 69 * col1 + tab2.col0 AS col1 FROM tab2
----
1252
2146
4149
onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT ALL + col0 + col1 * col0 DIV + col0 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL + col0 + col1 * col0 / + col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT - - ( - cor1.col0 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6244
SELECT DISTINCT - cor0.col0 * - CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT - cor0.col0 * - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col0 * 66 * - col0 AS col2 FROM tab1
----
-270336
-422400
-594
query I rowsort
SELECT 51 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT ALL - 21 + tab1.col1 AS col0 FROM tab1
----
-11
-8
5
query I rowsort
SELECT col2 + + 62 * col0 FROM tab2 cor0
----
461
4862
4936
query I rowsort
SELECT ALL - cor0.col1 * ( col1 ) * - col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + ( - 97 * col2 ) FROM tab1
----
-5238
-5529
-9312
query I rowsort
SELECT - 72 * + col1 * cor0.col1 + 9 * 23 FROM tab1 AS cor0
----
-11961
-48465
-6993
query I rowsort
SELECT + 51 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT + - 31 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
-18
-21
-5
query I rowsort
SELECT ALL + cor2.col1 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
query I rowsort
SELECT + + 34 * - 61 FROM tab0 AS cor0
----
-2074
-2074
-2074
onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT col1 + 69 DIV tab1.col0 + + col2 FROM tab1
----
103
109
68
skipif mysql # not compatible
query I rowsort label-6256
SELECT col1 + 69 / tab1.col0 + + col2 FROM tab1
----
103
109
68
query I rowsort
SELECT ( 26 ) * col2 + + 64 AS col2 FROM tab1
----
1468
1546
2560
query I rowsort
SELECT ( + cor0.col0 ) * + col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6259
SELECT DISTINCT - - col2 DIV + 70 AS col1 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - - col2 / + 70 AS col1 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - ( 38 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
16
19
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col1 FROM tab0 AS cor0
----
-82
query I rowsort
SELECT DISTINCT ( col0 ) * - cor0.col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + col1 - + 9 FROM tab1 AS cor0
----
1
17
4
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a
query I rowsort
SELECT - cor0.col2 * + col2 * - col1 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + col2 - col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - - col0 + + cor0.col1 * 80 * ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
227064
597049
7795
query I rowsort
SELECT DISTINCT + 99 + cor0.col2 AS col1 FROM tab1 AS cor0
----
153
156
195
onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT - + cor0.col0 DIV + col0 + ( col1 * + col0 ) FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-6269
SELECT - + cor0.col0 / + col0 + ( col1 * + col0 ) FROM tab0 AS cor0
----
2063
3394
8098
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - col0 * col0 * - col1 + - col2 AS col0 FROM tab1 cor0
----
-288
-41017
-83296
query I rowsort
SELECT DISTINCT + - col1 + - col0 * ( col2 ) * col0 FROM tab2 cor0
----
-1354
-158243
-237175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 - - ( + col0 ) col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col0 - - 14 col2 FROM tab1 AS cor0
----
1054
654
92
query I rowsort
SELECT ALL - col2 - + col1 * col0 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - col1 - - 1 FROM tab0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT 92 - + col1 FROM tab1
----
66
79
82
query I rowsort
SELECT - 44 + - col0 * ( col1 * col0 ) FROM tab2 AS cor0
----
-106141
-1563
-359000
onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT + - col0 DIV col1 - + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6280
SELECT + - col0 / col1 - + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col2 + + col1 * ( + cor0.col1 ) FROM tab0 AS cor0
----
7429
8363
9410
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548
query I rowsort
SELECT 32 * + col2 * + col2 FROM tab0
----
215168
32
34848
query I rowsort
SELECT - cor0.col1 + col2 * col1 * cor0.col0 FROM tab0 AS cor0
----
3298
664027
68026
onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT + cor0.col1 * - 92 - col2 DIV col0 FROM tab2 cor0
----
-1564
-2855
-5428
skipif mysql # not compatible
query I rowsort label-6285
SELECT + cor0.col1 * - 92 - col2 / col0 FROM tab2 cor0
----
-1564
-2855
-5428
query I rowsort
SELECT ALL 16 + + col2 * tab0.col0 AS col2 FROM tab0
----
51
7314
808
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6287
SELECT ALL + 51 + col0 * - CAST( + 0 AS SIGNED ) FROM tab0
----
51
51
51
skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL + 51 + col0 * - CAST ( + 0 AS INTEGER ) FROM tab0
----
51
51
51
query I rowsort
SELECT + + cor0.col1 * - cor0.col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - + 71 * - col1 + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
2418
2550
8791
query I rowsort
SELECT DISTINCT - col2 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - 75 * 54 FROM tab2 AS cor0
----
-4050
-4050
-4050
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab1 AS cor2
----
13122 values hashing to 74800d60bf545713181bb3fa76005791
query I rowsort
SELECT DISTINCT + ( col0 + col2 ) * 75 FROM tab2
----
2550
7800
8775
onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT ( + 30 ) DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6294
SELECT ( + 30 ) / col0 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + col0 * ( col0 ) col2 FROM tab0 cor0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT + col2 DIV + 41 AS col2 FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6296
SELECT + col2 / + 41 AS col2 FROM tab0 AS cor0
----
0
0
2
query I rowsort
SELECT ALL + 72 + - col1 FROM tab2 AS cor0
----
13
41
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6298
SELECT 55 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
7
skipif mysql # not compatible
query I rowsort label-6298
SELECT 55 / col0 AS col1 FROM tab2 AS cor0
----
0
0
7
query I rowsort
SELECT DISTINCT 99 + + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1442
316
4701
query I rowsort
SELECT - - ( cor0.col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT col0 DIV + ( + col2 + col1 ) AS col0 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6301
SELECT col0 / + ( + col2 + col1 ) AS col0 FROM tab2
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6302
SELECT - 86 DIV cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-6302
SELECT - 86 / cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 2 col0 FROM tab2
----
-14
-156
-158
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 cor1, tab0, tab2 cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570
query I rowsort
SELECT + ( 1 ) + col1 AS col2 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-6306
SELECT - - ( + col0 ) * col2 + - ( col1 + + col1 ) * col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
110
3628
7654
skipif mysql # not compatible
query I rowsort label-6306
SELECT - - ( + col0 ) * col2 + - ( col1 + + col1 ) * col2 / + col2 AS col2 FROM tab1 AS cor0
----
110
3628
7654
onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT DISTINCT CAST( - col2 AS SIGNED ) DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / col1 AS col0 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT 9 - cor0.col1 * - col0 FROM tab1 AS cor0
----
1049
649
87
query I rowsort
SELECT tab2.col1 * + 86 FROM tab2
----
1462
2666
5074
onlyif mysql # use DIV operator for integer division
query I rowsort label-6310
SELECT 66 + col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
66
67
70
skipif mysql # not compatible
query I rowsort label-6310
SELECT 66 + col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
66
67
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 * col2 col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL - - col0 + col1 AS col1 FROM tab1 cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6313
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-6313
SELECT + CAST ( NULL AS INTEGER ) + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col0 ) * col2 + + ( + cor0.col2 + - col1 ) col1 FROM tab1 AS cor0
----
190
3695
7763
query I rowsort
SELECT + + 82 AS col2 FROM tab0 AS cor0
----
82
82
82
query I rowsort
SELECT ALL - tab0.col1 * - col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + col2 * - col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab0
----
29
29
29
query I rowsort
SELECT + ( cor1.col2 ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + + col1 * 64 - col2 AS col0 FROM tab0 cor0
----
5471
5742
6207
query I rowsort
SELECT + + col0 * 94 FROM tab0 cor0
----
2256
3290
8366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( col0 ) col2 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT DISTINCT + cor0.col1 DIV + 6 FROM tab0 cor0
----
14
15
16
skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT + cor0.col1 / + 6 FROM tab0 cor0
----
14
15
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT + col2 DIV - 76 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6324
SELECT + col2 / - 76 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - cor0.col2 * 91 * cor0.col0 FROM tab0 AS cor0
----
-3185
-664118
-72072
query I rowsort
SELECT + + col0 + + ( 61 ) * col0 FROM tab1 AS cor0
----
186
3968
4960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col1 * - col0 col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + - col1 * ( 56 ) AS col2 FROM tab2 AS cor0
----
-1736
-3304
-952
query I rowsort
SELECT + col2 * 80 AS col0 FROM tab1 cor0
----
4320
4560
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * col0 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT 95 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT ALL + col1 DIV col1 AS col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL + col1 / col1 AS col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT col0 * ( + col0 ) + tab1.col1 * tab1.col2 FROM tab1
----
1413
4666
7648
query I rowsort
SELECT col0 * ( + col1 ) * col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - - 89 AS col2 FROM tab2 AS cor0
----
89
query I rowsort
SELECT - 74 + col2 AS col1 FROM tab2 AS cor0
----
-36
-47
-48
query I rowsort
SELECT cor0.col0 + cor0.col2 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 8a206af99264e378e55b667df888459e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6338
SELECT DISTINCT + col2 * - col0 DIV + col0 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT + col2 * - col0 / + col0 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT DISTINCT ( tab0.col1 ) DIV col0 AS col2 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT ( tab0.col1 ) / col0 AS col2 FROM tab0
----
1
2
3
query I rowsort
SELECT 52 * + tab2.col0 AS col1 FROM tab2
----
364
4056
4108
query I rowsort
SELECT ALL 42 + + col2 * 31 FROM tab2
----
1220
848
879
query I rowsort
SELECT DISTINCT - 91 * - col0 AS col1 FROM tab2
----
637
7098
7189
query I rowsort
SELECT + ( col1 ) * - col2 + col1 * - col2 FROM tab1
----
-1140
-2496
-2808
query I rowsort
SELECT col1 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 * - cor0.col2 FROM tab2 cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col1 * cor0.col1 col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col1 col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + col2 + tab2.col1 * col0 * + tab2.col1 - - col2 FROM tab2
----
22907
271570
6781
query I rowsort
SELECT + col0 + col2 + col2 * + col0 AS col1 FROM tab1
----
219
3769
7856
query I rowsort
SELECT + tab1.col2 + col1 * col2 + - col0 AS col2 FROM tab1
----
1264
1455
563
query I rowsort
SELECT - col0 + col1 + - col1 * col2 AS col0 FROM tab1
----
-1315
-1381
-624
query I rowsort
SELECT ALL tab0.col0 - col2 * + col2 * col2 FROM tab0
----
-35913
-551279
34
query I rowsort
SELECT ALL - col1 + + col2 - + tab0.col0 FROM tab0
----
-131
-77
-98
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 + - tab0.col0 col0 FROM tab0
----
2
62
query I rowsort
SELECT ALL tab1.col2 * col0 * - col1 + col0 AS col1 FROM tab1
----
-36416
-4209
-99760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT + - cor0.col1 * cor0.col1 + col0 DIV col0 FROM tab1 AS cor0
----
-168
-675
-99
skipif mysql # not compatible
query I rowsort label-6357
SELECT + - cor0.col1 * cor0.col1 + col0 / col0 FROM tab1 AS cor0
----
-168
-675
-99
query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab2 AS cor0 INNER JOIN tab0 ON NOT NULL <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * cor0.col2 + - col2 col1 FROM tab0 cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT DISTINCT - - cor0.col1 DIV - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT - - cor0.col1 / - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-3
-36
-83
query I rowsort
SELECT ALL ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 56 + col1 * col1 AS col1 FROM tab2
----
1017
345
3537
onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT + tab1.col1 DIV col0 + col2 AS col1 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-6363
SELECT + tab1.col1 / col0 + col2 AS col1 FROM tab1
----
57
62
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT DISTINCT - + col1 DIV cor0.col0 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - + col1 / cor0.col0 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT - - col1 * col0 * - col0 AS col2 FROM tab1 cor0
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col1 col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + - col0 * - col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT - col1 * + col1 + cor0.col0 FROM tab1 cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 - + tab0.col0 col1 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT - col2 + + col0 * + tab1.col1 AS col0 FROM tab1
----
24
583
944
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / col1 < col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT DISTINCT col1 DIV + col2 - col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT col1 / + col2 - col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col1 - - col1 * + tab1.col0 * col1 FROM tab1
----
13533
2054
6410
query I rowsort
SELECT ALL + col0 * + col1 + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT col2 FROM tab2 WHERE ( col0 ) BETWEEN ( col0 + - col2 ) AND NULL
----
query I rowsort
SELECT + tab1.col0 + + col2 + tab1.col1 AS col2 FROM tab1
----
131
189
83
query I rowsort
SELECT ALL col2 + col1 * - ( - col1 ) FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT - cor0.col1 * CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6378
SELECT - cor0.col1 * CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6379
SELECT - + col0 + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6379
SELECT - + col0 + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col0
----
query I rowsort
SELECT col1 + col1 AS col2 FROM tab0 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT ALL cor0.col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col2 * - col0 + + col0 FROM tab1 WHERE NOT ( NULL ) IN ( - col0 * - col0 )
----
query I rowsort
SELECT ALL tab1.col0 * + tab1.col2 + tab1.col0 * - col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT col1 DIV + col2 + col1 + col1 AS col0 FROM tab0
----
174
183
291
skipif mysql # not compatible
query I rowsort label-6385
SELECT col1 / + col2 + col1 + col1 AS col0 FROM tab0
----
174
183
291
query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NULL NOT IN ( col1 )
----
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0 * + col2
----
query I rowsort
SELECT - tab2.col0 * - tab2.col1 + col2 + + col0 AS col2 FROM tab2
----
1460
251
4706
query I rowsort
SELECT ALL col0 * col2 + + col2 FROM tab1
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab2.col1 * - col0 + - col2 col0 FROM tab2
----
-22869
-271544
-6754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab0 WHERE col1 NOT IN ( col0 )
----
1
33
82
query I rowsort
SELECT DISTINCT col1 * tab1.col1 + col2 * - col0 AS col1 FROM tab1
----
-3548
-7511
514
query I rowsort
SELECT DISTINCT col1 / col2 FROM tab0 WHERE - col1 = ( - col1 * + col1 * + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT ALL col0 DIV + tab0.col1 + + col0 * + col2 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL col0 / + tab0.col1 + + col0 * + col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + col2 * col2 + 46 + + col0 AS col0 FROM tab1 cor0
----
2965
3359
9342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6396
SELECT - CAST( + col2 * col1 + ( col0 ) AS SIGNED ) FROM tab1
----
-1328
-1407
-634
skipif mysql # not compatible
query I rowsort label-6396
SELECT - CAST ( + col2 * col1 + ( col0 ) AS INTEGER ) FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT col0 * + col0 - ( + 92 ) * - col2 FROM tab2
----
2533
8476
9737
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6398
SELECT col0 - col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6398
SELECT col0 - col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 74 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT - 76 * - col2 AS col0 FROM tab1 AS cor0
----
4104
4332
7296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6401
SELECT col1 * + tab1.col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6401
SELECT col1 * + tab1.col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 12 AS col0 FROM tab0, tab2, tab2 AS cor0
----
12
query I rowsort
SELECT ALL 88 * + col1 AS col2 FROM tab2
----
1496
2728
5192
query I rowsort
SELECT - col0 * - ( tab2.col0 + - col2 ) AS col0 FROM tab2
----
-140
3239
4056
query I rowsort
SELECT - 90 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT - col1 DIV ( cor0.col1 ) col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6406
SELECT - col1 / ( cor0.col1 ) col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 * ( + ( - col1 ) + 5 ) FROM tab0
----
1944
3220
7654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 - - 94 col1 FROM tab1
----
161
174
203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col1 * 7 * col0 + 41 + col0 FROM tab1 AS cor0
----
4585
590
7401
query I rowsort
SELECT + 73 * - 32 AS col0 FROM tab1 AS cor0
----
-2336
-2336
-2336
query I rowsort
SELECT ALL + 20 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-1180
-340
-620
onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT - col2 + col2 DIV + col2 FROM tab0 cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-6413
SELECT - col2 + col2 / + col2 FROM tab0 cor0
----
-32
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 * col1 col1 FROM tab1 AS cor0
----
190
247
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 69 * - col0 col1 FROM tab0 AS cor0
----
-1656
-2415
-6141
query I rowsort
SELECT DISTINCT - col2 + + col2 * - col2 AS col2 FROM tab1 cor0
----
-2970
-3306
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT + ( col2 ) + - col1 DIV + 9 FROM tab1 AS cor0
----
52
56
95
skipif mysql # not compatible
query I rowsort label-6417
SELECT + ( col2 ) + - col1 / + 9 FROM tab1 AS cor0
----
52
56
95
query I rowsort
SELECT + cor0.col2 + 61 * col0 FROM tab0 AS cor0
----
1497
2136
5511
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6419
SELECT ALL + CAST( 6 AS SIGNED ) + tab2.col2 * col1 AS col2 FROM tab2
----
1540
652
843
skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL + CAST ( 6 AS INTEGER ) + tab2.col2 * col1 AS col2 FROM tab2
----
1540
652
843
onlyif mysql # use DIV operator for integer division
query I rowsort label-6420
SELECT + col2 DIV col0 - - col0 * tab1.col1 * col1 col1 FROM tab1
----
13521
2046
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6420
SELECT + col2 / col0 - - col0 * tab1.col1 * col1 col1 FROM tab1
----
13521
2046
6400
query I rowsort
SELECT DISTINCT + 16 + - col1 AS col2 FROM tab1
----
-10
3
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT DISTINCT - tab2.col2 * + 55 + col0 DIV - col1 FROM tab2
----
-1431
-1485
-2094
skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT - tab2.col2 * + 55 + col0 / - col1 FROM tab2
----
-1431
-1485
-2094
query I rowsort
SELECT ALL - - ( - col0 ) * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL + + col0 + col2 * col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + + ( + col1 ) + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + - col0 * + col0 + col1 * + col2 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT DISTINCT ( + col2 ) * - col0 + col1 * cor0.col2 + + col0 * - col0 * + col0 FROM tab0 AS cor0
----
-11778
-42813
-704805
query I rowsort
SELECT ALL + ( - cor0.col1 ) - + cor0.col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT 41 + - ( - col2 ) AS col0 FROM tab0
----
123
42
74
query I rowsort
SELECT DISTINCT + ( + 80 * + col0 ) + tab0.col1 AS col1 FROM tab0
----
2006
2897
7211
query I rowsort
SELECT DISTINCT - col0 + + 96 AS col1 FROM tab1
----
16
32
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6433
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + + col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + + col1 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT ( col2 ) + col0 + - col0 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - 84 + + col2 * col0 + col1 FROM tab0 AS cor0
----
48
7305
794
query I rowsort
SELECT DISTINCT 55 * - col1 FROM tab2 AS cor0
----
-1705
-3245
-935
query I rowsort
SELECT - col0 + col0 * - col1 * col1 FROM tab2 AS cor0
----
-22910
-271596
-6734
query I rowsort
SELECT + - 83 + col0 * + col0 FROM tab1 AS cor0
----
-74
4013
6317
query I rowsort
SELECT ALL - + col2 + + col0 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT + col1 * + col1 - ( - col1 + col0 ) FROM tab2 AS cor0
----
227
3462
985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT col0 * 24 DIV + col2 + + col2 FROM tab0 AS cor0
----
108
50
841
skipif mysql # not compatible
query I rowsort label-6441
SELECT col0 * 24 / + col2 + + col2 FROM tab0 AS cor0
----
108
50
841
query I rowsort
SELECT col1 - - ( col2 ) AS col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT + col2 DIV ( col0 ) + - col2 + + col0 FROM tab0 cor0
----
-8
34
7
skipif mysql # not compatible
query I rowsort label-6443
SELECT + col2 / ( col0 ) + - col2 + + col0 FROM tab0 cor0
----
-8
34
7
query I rowsort
SELECT - col2 + col1 * ( - col0 ) FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6445
SELECT ALL - col0 * - CAST( 11 AS SIGNED ) - col1 FROM tab2 AS cor0
----
46
799
852
skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - col0 * - CAST ( 11 AS INTEGER ) - col1 FROM tab2 AS cor0
----
46
799
852
onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT + + cor0.col2 DIV 72 - col2 FROM tab0 AS cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-6446
SELECT + + cor0.col2 / 72 - col2 FROM tab0 AS cor0
----
-1
-33
-81
query I rowsort
SELECT DISTINCT + col1 + + 12 * - col2 FROM tab2 cor0
----
-253
-293
-439
query I rowsort
SELECT ALL - cor0.col1 * + 61 * col0 FROM tab0 AS cor0
----
-125904
-207095
-494039
query I rowsort
SELECT + cor0.col1 * - col0 * - col0 + col1 * col0 FROM tab2 AS cor0
----
107440
1736
363558
query I rowsort
SELECT ALL col2 * - ( - col0 ) + - col0 AS col1 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT + + ( + col1 ) + - cor0.col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + ( + col0 ) * - col0 + col1 * cor0.col1 FROM tab0 AS cor0
----
360
6820
8184
query I rowsort
SELECT DISTINCT + col2 + col2 * - col0 AS col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT + + col2 * 33 FROM tab2 AS cor0
----
1254
858
891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6455
SELECT tab0.col1 + CAST( 29 AS SIGNED ) FROM tab0
----
115
120
126
skipif mysql # not compatible
query I rowsort label-6455
SELECT tab0.col1 + CAST ( 29 AS INTEGER ) FROM tab0
----
115
120
126
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 * col1 col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6457
SELECT - col1 * + CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-6457
SELECT - col1 * + CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + col2 * 80 + + 97 AS col2 FROM tab1 AS cor0
----
4417
4657
7777
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6459
SELECT DISTINCT + col0 + - 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-6459
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6460
SELECT ALL - col2 + 92 * + col1 * - col1 - col2 DIV + col2 FROM tab1 AS cor0
----
-15645
-62247
-9258
skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL - col2 + 92 * + col1 * - col1 - col2 / + col2 FROM tab1 AS cor0
----
-15645
-62247
-9258
query I rowsort
SELECT ALL + col0 * ( cor0.col1 ) + - col0 - - col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + + col2 + col1 + - cor0.col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - - col2 * + col0 * - col1 - - col1 FROM tab1 AS cor0
----
-36470
-4186
-99827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( cor0.col2 ) col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col2 * 99 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
-1824
-1995
-5184
query I rowsort
SELECT + col2 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + - 57 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT - cor1.col0 + + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 69a03f002c4988a217a3743145c31549
query I rowsort
SELECT ALL - + 79 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-176
-2917
-7541
onlyif mysql # use DIV operator for integer division
query I rowsort label-6470
SELECT + - col2 + + col0 DIV - ( col2 + + col0 ) col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6470
SELECT + - col2 + + col0 / - ( col2 + + col0 ) col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - - 17 FROM tab0 cor0
----
17
query I rowsort
SELECT DISTINCT 35 + - tab0.col0 FROM tab0
----
-54
0
11
query I rowsort
SELECT - 3 + col1 * - ( + ( - col1 ) * - col2 ) FROM tab0 AS cor0
----
-244071
-679045
-9412
onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT - 26 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6474
SELECT - 26 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col0 * + col1 * + 80 FROM tab0 AS cor0
----
-165120
-271600
-647920
query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6477
SELECT - 57 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-6477
SELECT - 57 / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT + 71 * col0 FROM tab1 AS cor0
----
213
4544
5680
query I rowsort
SELECT - col1 + col1 * - col1 AS col0 FROM tab0
----
-7482
-8372
-9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 * + col2 col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6481
SELECT - + cor0.col1 DIV col2 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-6481
SELECT - + cor0.col1 / col2 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT + cor0.col2 + - col1 * - 88 FROM tab1 AS cor0
----
1240
2342
937
query I rowsort
SELECT ALL - col0 * 78 FROM tab0 cor0
----
-1872
-2730
-6942
query I rowsort
SELECT cor0.col0 * - col2 * - col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + col0 + + ( - col2 ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + cor0.col2 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT - 17 * 79 + + tab0.col1 + + col2 DIV - col1 AS col2 FROM tab0
----
-1246
-1252
-1257
skipif mysql # not compatible
query I rowsort label-6487
SELECT - 17 * 79 + + tab0.col1 + + col2 / - col1 AS col2 FROM tab0
----
-1246
-1252
-1257
query I rowsort
SELECT DISTINCT + col2 + - 32 AS col1 FROM tab1 AS cor0
----
22
25
64
query I rowsort
SELECT ( col0 ) * + col2 - - ( col0 + col0 * - 35 ) FROM tab1 cor0
----
1472
4960
60
query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6491
SELECT ALL + - CAST( + ( col2 ) AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL + - CAST ( + ( col2 ) AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * - 16 FROM tab2 AS cor0
----
-112
-1248
-1264
query I rowsort
SELECT DISTINCT 49 + col2 AS col2 FROM tab2 AS cor0
----
75
76
87
query I rowsort
SELECT DISTINCT 68 + col1 AS col1 FROM tab0 AS cor0
----
154
159
165
query I rowsort
SELECT ALL + col0 * + col0 * - 28 FROM tab0 AS cor0
----
-16128
-221788
-34300
query I rowsort
SELECT - 53 + col2 * col2 FROM tab0 AS cor0
----
-52
1036
6671
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6497
SELECT ALL + 39 + col1 * CAST( + 79 * - col1 AS SIGNED ) FROM tab2 AS cor0
----
-22792
-274960
-75880
skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL + 39 + col1 * CAST ( + 79 * - col1 AS INTEGER ) FROM tab2 AS cor0
----
-22792
-274960
-75880
query I rowsort
SELECT cor0.col1 * + col2 + - 5 FROM tab1 AS cor0
----
1243
1399
565
query I rowsort
SELECT - 64 + col2 * + ( + cor0.col0 ) FROM tab2 AS cor0
----
125
1964
2938
query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - 60 + col1 FROM tab2
----
-1
-29
-43
query I rowsort
SELECT DISTINCT - col0 + - col0 * + col1 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT 40 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col0 * 67 + - cor0.col1 col1 FROM tab2 AS cor0
----
14508
308275
89964
query I rowsort
SELECT col2 * + col1 * col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ( - 29 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to ac17da4547aa356439ff11568174588c
query I rowsort
SELECT DISTINCT col0 * ( col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + 91 * + col2 + col0 * - ( + col2 ) * + col1 FROM tab0 AS cor0
----
-3304
-65109
-656656
query I rowsort
SELECT + col2 + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 + 82 col2 FROM tab1 AS cor0
----
142
142
142
query I rowsort
SELECT ALL ( + col0 ) * - col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT col1 * - 71 - col1 AS col1 FROM tab2
----
-1224
-2232
-4248
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6514
SELECT ALL CAST( NULL AS SIGNED ) + - col1 / - col1 + - col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 / - col1 + - col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 78 * col2 AS col2 FROM tab1 AS cor0
----
-4212
-4446
-7488
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6517
SELECT col0 * CAST( NULL AS DECIMAL ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6517
SELECT col0 * CAST ( NULL AS REAL ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 13 + - col1 AS col0 FROM tab2
----
-18
-4
-46
query I rowsort
SELECT DISTINCT + ( + tab2.col0 ) * - 34 + tab2.col1 * col1 FROM tab2
----
-2397
723
829
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
-95
query I rowsort
SELECT + - col0 * - ( 66 ) + col2 AS col0 FROM tab1 AS cor0
----
252
4281
5376
query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - col2 col2 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6524
SELECT DISTINCT 87 * + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT 87 * + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT 24 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 * tab1.col0 col0 FROM tab1, tab1 AS cor0
----
1856
2320
87
query I rowsort
SELECT - - col2 * + ( - 27 ) + - col2 + - col2 FROM tab0 AS cor0
----
-2378
-29
-957
query I rowsort
SELECT - + col2 + cor0.col0 + ( col0 ) FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT col2 + ( 21 ) AS col0 FROM tab1 AS cor0
----
117
75
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6530
SELECT DISTINCT + tab1.col1 DIV + 4 + tab1.col1 * + col1 col1 FROM tab1
----
102
172
682
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT + tab1.col1 / + 4 + tab1.col1 * + col1 col1 FROM tab1
----
102
172
682
query I rowsort
SELECT - col0 - 89 * 10 * + col2 AS col0 FROM tab0 AS cor0
----
-29394
-73069
-925
query I rowsort
SELECT ALL ( tab1.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col2 + tab1.col1 + col1 * - col0 * + col0 FROM tab1
----
-262
-41007
-83283
onlyif mysql # use DIV operator for integer division
query I rowsort label-6534
SELECT - tab0.col2 DIV + ( tab0.col0 + col2 ) AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6534
SELECT - tab0.col2 / + ( tab0.col0 + col2 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + + 94 AS col1 FROM tab0
----
118
129
183
query I rowsort
SELECT - 11 + 88 AS col2 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT DISTINCT - + ( col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL 96 * 29 AS col1 FROM tab2 AS cor0
----
2784
2784
2784
onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT ALL cor0.col2 + + col1 DIV + col0 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL cor0.col2 + + col1 / + col0 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT DISTINCT + - 50 * col1 + cor0.col0 FROM tab2 AS cor0
----
-1543
-2872
-771
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6541
SELECT + CAST( NULL AS SIGNED ) + col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6541
SELECT + CAST ( NULL AS INTEGER ) + col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - ( - col2 ) ) + col1 - 82 * col1 AS col0 FROM tab2 AS cor0
----
-1415
-2538
-4805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 + col1 * + col0 col0 FROM tab0 AS cor0
----
2087
3418
8122
query I rowsort
SELECT DISTINCT + 0 * - col2 + col1 AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL - col1 + + 37 * + col0 AS col2 FROM tab0 AS cor0
----
1198
3202
802
query I rowsort
SELECT DISTINCT + col2 - - col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col1 * col2 * - col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + + col0 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-6549
SELECT DISTINCT - col1 * - col2 + + col2 * - ( col0 ) + + ( - cor0.col0 ) DIV col0 FROM tab2 AS cor0
----
-2357
-495
647
skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT - col1 * - col2 + + col2 * - ( col0 ) + + ( - cor0.col0 ) / col0 FROM tab2 AS cor0
----
-2357
-495
647
query I rowsort
SELECT 15 AS col0 FROM tab2 cor0
----
15
15
15
query I rowsort
SELECT ALL col1 * 11 FROM tab2 AS cor0
----
187
341
649
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - ( col0 ) col1 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT ALL col2 + 63 - + 84 AS col0 FROM tab1 AS cor0
----
33
36
75
query I rowsort
SELECT ( - 65 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT - col0 + col0 * + 91 FROM tab2
----
630
7020
7110
query I rowsort
SELECT + 37 * + 60 * col0 AS col1 FROM tab2
----
15540
173160
175380
query I rowsort
SELECT DISTINCT + 14 * tab2.col1 FROM tab2, tab1 AS cor0
----
238
434
826
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6558
SELECT CAST( NULL AS DECIMAL ) * + col0 + - col0 * 17 / col1 col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6558
SELECT CAST ( NULL AS REAL ) * + col0 + - col0 * 17 / col1 col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab2, tab1, tab0 cor0
----
61
query I rowsort
SELECT - 25 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT DISTINCT - ( - ( - col1 ) ) * col1 + cor0.col1 FROM tab1 cor0
----
-156
-650
-90
query I rowsort
SELECT ALL 12 FROM tab1 cor0
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 39 ) * col2 col1 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT DISTINCT - - col2 + + col0 * + 12 AS col0 FROM tab2 AS cor0
----
111
962
986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col1 col1 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6566
SELECT DISTINCT + col0 * + col2 + CAST( - ( col2 ) AS SIGNED ) * ( - col0 ) col2 FROM tab1 AS cor0
----
15360
324
7296
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT + col0 * + col2 + CAST ( - ( col2 ) AS INTEGER ) * ( - col0 ) col2 FROM tab1 AS cor0
----
15360
324
7296
query I rowsort
SELECT ALL + col1 + + col2 * + cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
-207926
-737267
-8722
query I rowsort
SELECT col2 * - cor0.col1 * + 95 FROM tab0 AS cor0
----
-269610
-708890
-9215
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6569
SELECT col0 * + col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6569
SELECT col0 * + col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col1 col1 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * cor0.col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT - 5 DIV col1 + col2 AS col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6573
SELECT - 5 / col1 + col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT 2 * cor0.col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - cor0.col2 + - 3 * - 36 * cor0.col2 AS col0 FROM tab2 AS cor0
----
2782
2889
4066
query I rowsort
SELECT DISTINCT + col0 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL + cor0.col1 * ( cor0.col1 ) + col2 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT col1 * - 8 FROM tab2 AS cor0
----
-136
-248
-472
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + ( cor0.col2 ) col2 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - 44 col1 FROM tab1 AS cor0
----
-132
-2816
-3520
query I rowsort
SELECT ALL col2 + + 2 AS col2 FROM tab1
----
56
59
98
query I rowsort
SELECT ALL + col2 * col1 * col1 + col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
12839
246156
687230
query I rowsort
SELECT ALL + col0 * col1 + 18 * - col0 * - 91 FROM tab0 AS cor0
----
153881
41376
60725
query I rowsort
SELECT ALL col2 * col2 + - col0 * cor0.col2 FROM tab2 AS cor0
----
-1352
-1558
540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6585
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col1 + col1 col0 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + col0 + - cor0.col2 * - col2 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT + cor0.col1 * col2 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - col1 + + 89 FROM tab1 AS cor0
----
63
76
79
query I rowsort
SELECT DISTINCT + + col2 * - ( + 21 ) + - col0 AS col1 FROM tab0 AS cor0
----
-1811
-56
-717
query I rowsort
SELECT + - col2 + 68 AS col1 FROM tab2 AS cor0
----
30
41
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT ALL - col0 + ( 65 ) DIV col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL - col0 + ( 65 ) / col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - col2 + - 19 FROM tab0 cor0
----
-101
-20
-52
query I rowsort
SELECT DISTINCT + + col0 * + ( col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col0 + - col0 + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ( cor0.col1 ) + - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * col1 + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL col2 + col2 + + col2 * + col1 * + col1 AS col2 FROM tab0
----
244134
679206
9411
query I rowsort
SELECT - col0 * 82 + cor0.col0 * col1 FROM tab1 AS cor0
----
-168
-4608
-5520
query I rowsort
SELECT - + col2 * col2 * + col0 FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - col2 * col0 + col2 * ( + 28 ) + + col0 AS col0 FROM tab2 AS cor0
----
-1222
-1859
574
query I rowsort
SELECT DISTINCT cor0.col0 + + ( col1 + 71 ) AS col2 FROM tab1 AS cor0
----
100
145
164
onlyif mysql # use DIV operator for integer division
query I rowsort label-6603
SELECT - - col0 DIV 50 + col0 AS col0 FROM tab1 AS cor0
----
3
65
81
skipif mysql # not compatible
query I rowsort label-6603
SELECT - - col0 / 50 + col0 AS col0 FROM tab1 AS cor0
----
3
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + cor0.col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col1 - - 78 FROM tab0 AS cor0
----
164
169
175
query I rowsort
SELECT + col1 * col2 + + 71 FROM tab1
----
1319
1475
641
query I rowsort
SELECT - col0 * col2 * col2 AS col2 FROM tab1
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT - CAST( - col0 AS SIGNED ) DIV col0 - + 26 AS col0 FROM tab1 cor0
----
-25
-25
-25
skipif mysql # not compatible
query I rowsort label-6608
SELECT - CAST ( - col0 AS INTEGER ) / col0 - + 26 AS col0 FROM tab1 cor0
----
-25
-25
-25
onlyif mysql # use DIV operator for integer division
query I rowsort label-6609
SELECT 6 + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
103
7
8
skipif mysql # not compatible
query I rowsort label-6609
SELECT 6 + col1 / + col2 AS col0 FROM tab0 AS cor0
----
103
7
8
query I rowsort
SELECT + - 89 * cor0.col0 + col0 FROM tab1 AS cor0
----
-264
-5632
-7040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT + 34 DIV col0 + col1 col0 FROM tab2
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6611
SELECT + 34 / col0 + col1 col0 FROM tab2
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * 74 + col1 * col2 col2 FROM tab0
----
-2493
-532590
-55770
query I rowsort
SELECT ALL + tab2.col0 * - col0 * col2 AS col1 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT ALL 7 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL col1 * 11 AS col2 FROM tab1
----
110
143
286
query I rowsort
SELECT DISTINCT col1 * - ( - tab0.col2 ) * - col0 + ( col1 ) FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL + col2 + col2 + + 94 AS col2 FROM tab1
----
202
208
286
query I rowsort
SELECT col2 * 79 AS col1 FROM tab1 cor0
----
4266
4503
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT DISTINCT + col2 - - 17 FROM tab1 AS cor0
----
113
71
74
query I rowsort
SELECT + + col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT cor0.col1 * col2 - - col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-6623
SELECT - col2 * col1 + - 95 DIV - col1 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-97
skipif mysql # not compatible
query I rowsort label-6623
SELECT - col2 * col1 + - 95 / - col1 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT DISTINCT - - col1 DIV - 14 AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT - - col1 / - 14 AS col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL cor0.col1 * 66 + - 63 FROM tab0 cor0
----
5613
5943
6339
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * cor0.col2 col2 FROM tab2, tab1 cor0
----
9 values hashing to 443e87dcdcb61f29c7ca3ce0be4e83d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT cor0.col0 + - 90 DIV + cor0.col0 FROM tab1 AS cor0
----
-27
63
79
skipif mysql # not compatible
query I rowsort label-6628
SELECT cor0.col0 + - 90 / + cor0.col0 FROM tab1 AS cor0
----
-27
63
79
query I rowsort
SELECT - ( 92 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT - col1 DIV 77 AS col2 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6630
SELECT - col1 / 77 AS col2 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6631
SELECT ALL cor0.col0 DIV 66 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL cor0.col0 / 66 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col0 - + col1 AS col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT + cor0.col2 + 64 AS col0 FROM tab2 AS cor0
----
102
90
91
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + + col2 * - col1 + + 67 * - ( col1 + - col0 * 60 ) AS col2 FROM tab2 AS cor0
----
25226
308073
315795
query I rowsort
SELECT ALL - col2 + col1 - 65 FROM tab1 AS cor0
----
-112
-148
-93
query I rowsort
SELECT DISTINCT + 85 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
3
52
84
query I rowsort
SELECT - + 34 + + col2 AS col2 FROM tab1 AS cor0
----
20
23
62
query I rowsort
SELECT 37 * + col2 + + ( col0 ) FROM tab0 AS cor0
----
1245
3123
72
query I rowsort
SELECT DISTINCT + 66 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1775
-1813
-2525
onlyif mysql # use DIV operator for integer division
query I rowsort label-6641
SELECT ALL - cor0.col2 DIV + col1 + 61 - - 18 FROM tab0 AS cor0
----
79
79
79
skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL - cor0.col2 / + col1 + 61 - - 18 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT - col1 * + col2 + 49 FROM tab1 AS cor0
----
-1199
-1355
-521
onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT ALL + - ( col1 ) DIV - cor0.col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL + - ( col1 ) / - cor0.col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - 88 * + cor0.col0 + 63 AS col0 FROM tab0 AS cor0
----
-2049
-3017
-7769
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6645
SELECT DISTINCT - tab0.col2 * cor0.col1 * CAST( - cor0.col0 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 84e6f3a8c63f5c33a9516fdcfe1fabb6
skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT - tab0.col2 * cor0.col1 * CAST ( - cor0.col0 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 84e6f3a8c63f5c33a9516fdcfe1fabb6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6646
SELECT CAST( NULL AS SIGNED ) + col1 / col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6646
SELECT CAST ( NULL AS INTEGER ) + col1 / col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab0.col1 - - col0 * + col0 FROM tab0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 col2 FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT + col0 * col1 DIV col2 col2 FROM tab0
----
3395
62
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6649
SELECT + col0 * col1 / col2 col2 FROM tab0
----
3395
62
98
query I rowsort
SELECT ALL + + 68 + + col0 FROM tab2 AS cor0
----
146
147
75
query I rowsort
SELECT DISTINCT + 53 - col2 FROM tab0 AS cor0
----
-29
20
52
query I rowsort
SELECT ALL - col1 * - tab0.col1 + col1 * col1 AS col0 FROM tab0
----
14792
16562
18818
query I rowsort
SELECT - 80 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd
onlyif mysql # use DIV operator for integer division
query I rowsort label-6654
SELECT col1 DIV col1 + - col2 FROM tab2
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-6654
SELECT col1 / col1 + - col2 FROM tab2
----
-25
-26
-37
query I rowsort
SELECT 50 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT DISTINCT - 28 * ( col0 ) FROM tab1 AS cor0
----
-1792
-2240
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6657
SELECT - + 79 + - col1 DIV - cor0.col1 FROM tab0 AS cor0
----
-78
-78
-78
skipif mysql # not compatible
query I rowsort label-6657
SELECT - + 79 + - col1 / - cor0.col1 FROM tab0 AS cor0
----
-78
-78
-78
query I rowsort
SELECT DISTINCT + - 34 * - col1 AS col1 FROM tab0 AS cor0
----
2924
3094
3298
query I rowsort
SELECT DISTINCT - col2 * + col1 * - col1 FROM tab2 AS cor0
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6660
SELECT ALL + - 84 * col2 + col1 DIV - CAST( col0 + + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2184
-2268
-3192
skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + - 84 * col2 + col1 / - CAST ( col0 + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2184
-2268
-3192
onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT 81 + + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
83
86
88
skipif mysql # not compatible
query I rowsort label-6661
SELECT 81 + + col2 / col1 AS col1 FROM tab1 AS cor0
----
83
86
88
query I rowsort
SELECT ALL + col0 + - tab1.col1 * col0 AS col2 FROM tab1
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 6 col1 FROM tab1
----
-48
-51
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6664
SELECT tab1.col0 DIV col1 + col2 AS col2 FROM tab1
----
102
54
63
skipif mysql # not compatible
query I rowsort label-6664
SELECT tab1.col0 / col1 + col2 AS col2 FROM tab1
----
102
54
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( + col2 ) col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col0 * col1 * - ( col0 ) + 13 * col0 AS col0 FROM tab2
----
-105070
-1428
-357942
query I rowsort
SELECT col1 * 66 FROM tab1
----
1716
660
858
query I rowsort
SELECT DISTINCT + col2 * - 91 + col1 + tab0.col2 AS col2 FROM tab0
----
-2884
-7289
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT DISTINCT + col2 DIV - 18 + col0 AS col1 FROM tab0
----
23
35
85
skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + col2 / - 18 + col0 AS col1 FROM tab0
----
23
35
85
query I rowsort
SELECT - 66 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT DISTINCT + - col0 * ( - col2 ) + 88 FROM tab1 AS cor0
----
250
3736
7768
query I rowsort
SELECT ALL + ( col1 ) * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col2 * 39 AS col1 FROM tab0 AS cor0
----
-1287
-3198
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6674
SELECT ALL - - CAST( 91 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
91
91
91
skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - - CAST ( 91 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT col2 * col1 + + 92 * col1 AS col1 FROM tab0
----
10750
15834
9021
query I rowsort
SELECT DISTINCT + 55 + col0 AS col2 FROM tab0
----
144
79
90
query I rowsort
SELECT DISTINCT - col2 * tab1.col2 + 26 FROM tab1
----
-2890
-3223
-9190
query I rowsort
SELECT 33 + col2 + - ( 21 ) * col1 FROM tab1
----
-120
-144
-459
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - 80 * 40 col2 FROM tab1 AS cor0
----
-3120
-3136
-3197
query I rowsort
SELECT + cor0.col0 + - ( - col1 ) FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT DISTINCT col1 * col2 DIV col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT col1 * col2 / col1 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6682
SELECT col0 * col1 DIV 49 AS col0 FROM tab2
----
27
4
93
skipif mysql # not compatible
query I rowsort label-6682
SELECT col0 * col1 / 49 AS col0 FROM tab2
----
27
4
93
query I rowsort
SELECT + tab0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL - col1 + + col0 * + 51 + - col2 FROM tab0
----
1105
1687
4366
query I rowsort
SELECT ALL 92 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT + cor0.col0 * ( col2 + - col0 ) * - col1 FROM tab1 AS cor0
----
-16640
-3978
4480
query I rowsort
SELECT ALL - 96 * - 21 FROM tab2, tab0 AS cor0
----
9 values hashing to 896c492ca649b9543d0f2ce199c7f55d
query I rowsort
SELECT ALL col2 * 22 AS col2 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT ALL - col2 + - 72 * col1 FROM tab2 cor0
----
-1262
-2259
-4274
query I rowsort
SELECT - + col0 * + 0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 + + cor0.col2 AS col1 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6692
SELECT DISTINCT - - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT - - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 * 39 AS col2 FROM tab1 AS cor0
----
2106
2223
3744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col2 FROM tab1
----
108
114
192
query I rowsort
SELECT - col1 * + 48 + + col1 * - col1 AS col0 FROM tab0 cor0
----
-11524
-12649
-14065
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - + col1 * + col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6698
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 * col1 / col0 + col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 * col1 / col0 + col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + + col0 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL - ( ( col1 ) ) FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT DISTINCT - col0 DIV - 28 + col0 + + cor0.col2 FROM tab0 AS cor0
----
174
37
57
skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT - col0 / - 28 + col0 + + cor0.col2 FROM tab0 AS cor0
----
174
37
57
query I rowsort
SELECT DISTINCT + col2 * col2 * ( 83 ) FROM tab2 AS cor0
----
119852
56108
60507
query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col0 + cor0.col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT - + ( + col1 ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6707
SELECT + 89 * ( + tab0.col1 ) * - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6707
SELECT + 89 * ( + tab0.col1 ) * - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( col1 ) - + col1 FROM tab2
----
0
query I rowsort
SELECT ALL - + 29 + col2 AS col2 FROM tab0 AS cor0
----
-28
4
53
query I rowsort
SELECT + col1 + col0 * ( - col1 + col2 * cor0.col2 ) FROM tab1 AS cor0
----
207306
736253
8696
onlyif mysql # use DIV operator for integer division
query I rowsort label-6711
SELECT col2 * col0 DIV - ( - tab0.col1 ) FROM tab0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-6711
SELECT col2 * col0 / - ( - tab0.col1 ) FROM tab0
----
0
80
9
query I rowsort
SELECT ALL + col2 * col1 - + 79 AS col1 FROM tab2 cor0
----
1455
567
758
query I rowsort
SELECT - + 57 + col0 AS col0 FROM tab0 AS cor0
----
-22
-33
32
query I rowsort
SELECT - - 11 + - col1 FROM tab1 cor0
----
-15
-2
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col1 FROM tab2, tab2 AS cor0
----
-67
query I rowsort
SELECT ALL - + 67 FROM tab0, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT 32 * + col2 FROM tab1
----
1728
1824
3072
query I rowsort
SELECT ALL + col2 * col0 + col1 AS col1 FROM tab2
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - 27 * + col1 col0 FROM tab2 AS cor0
----
-25947
-7803
-93987
query I rowsort
SELECT col1 + + 1 FROM tab2
----
18
32
60
query I rowsort
SELECT DISTINCT - 70 + + tab0.col2 FROM tab0, tab2 cor0
----
-37
-69
12
query I rowsort
SELECT 65 + tab1.col1 * - col2 AS col2 FROM tab1
----
-1183
-1339
-505
query I rowsort
SELECT ALL + col2 + 5 * - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1058
-22984
-6677
query I rowsort
SELECT cor0.col2 + + 97 FROM tab0, tab0 AS cor0
----
9 values hashing to 64b28c86e19477c17cfc8ee358d1395b
query I rowsort
SELECT ALL + 0 AS col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT + - col2 DIV CAST( - 61 AS SIGNED ) FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6726
SELECT + - col2 / CAST ( - 61 AS INTEGER ) FROM tab0 cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6727
SELECT - col0 + + CAST( NULL AS SIGNED ) * + cor0.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-6727
SELECT - col0 + + CAST ( NULL AS INTEGER ) * + cor0.col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6728
SELECT cor0.col0 * cor0.col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-6728
SELECT cor0.col0 * cor0.col0 / - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - 72 + - col2 FROM tab2
----
-110
-98
-99
query I rowsort
SELECT col0 + - col0 + + col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + - col2 + col2 + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL tab1.col1 - tab1.col0 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col0 - + ( col2 ) AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT + ( - col0 ) + col0 - - ( + 44 ) FROM tab0
----
44
query I rowsort
SELECT DISTINCT + cor0.col1 * 0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6736
SELECT - CAST( NULL AS DECIMAL ) + - cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6736
SELECT - CAST ( NULL AS REAL ) + - cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 - col2 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT ALL col1 + + 10 FROM tab1 cor0
----
20
23
36
query I rowsort
SELECT DISTINCT - + col0 * col0 * col0 AS col2 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT + col2 + ( 7 ) * col0 * 11 AS col0 FROM tab0 AS cor0
----
1881
2696
6935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6741
SELECT + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6741
SELECT + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col2 + 39 * 61 FROM tab1 AS cor0
----
2433
2436
2475
query I rowsort
SELECT + col0 + - col1 * + 85 AS col0 FROM tab2 AS cor0
----
-1366
-2628
-4937
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 82 col2 FROM tab0 AS cor0
----
-2706
-6724
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6746
SELECT ALL - - col0 * CAST( NULL AS SIGNED ) + + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL - - col0 * CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * - cor0.col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
-788
4550
5595
onlyif mysql # use DIV operator for integer division
query I rowsort label-6748
SELECT - col2 + - col1 DIV col0 FROM tab2 AS cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-6748
SELECT - col2 + - col1 / col0 FROM tab2 AS cor0
----
-26
-31
-38
query I rowsort
SELECT DISTINCT + + cor0.col0 + 17 AS col2 FROM tab2 AS cor0
----
24
95
96
query I rowsort
SELECT ALL + col1 - 50 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1519
-2891
-833
query I rowsort
SELECT - col2 * + col2 * col0 AS col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL col2 + ( col0 * - col1 ) FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL col2 * 81 + + col0 * col2 FROM tab1 AS cor0
----
15456
4536
8265
query I rowsort
SELECT ALL col0 + col0 * col1 * 20 FROM tab1 cor0
----
12864
1563
20880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 77 ) * + col2 col1 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT DISTINCT - col2 - ( col2 ) FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT col0 - - 66 * 41 * tab2.col2 FROM tab2
----
102907
70434
73069
query I rowsort
SELECT ALL ( + col2 ) + col1 * + 75 * + 25 FROM tab0 AS cor0
----
161283
170707
181876
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6759
SELECT DISTINCT CAST( ( - cor0.col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT CAST ( ( - cor0.col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col0 - 74 FROM tab2 AS cor0
----
-152
-153
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT ALL - - col0 DIV ( col0 ) + - col2 AS col1 FROM tab1 cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - - col0 / ( col0 ) + - col2 AS col1 FROM tab1 cor0
----
-53
-56
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT ALL col0 * col2 + cor0.col0 + ( + col0 ) DIV + col2 FROM tab0 AS cor0
----
105
7388
816
skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL col0 * col2 + cor0.col0 + ( + col0 ) / + col2 FROM tab0 AS cor0
----
105
7388
816
query I rowsort
SELECT DISTINCT 44 FROM tab1, tab0 AS cor0
----
44
query I rowsort
SELECT ALL 14 * + col2 AS col0 FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT col1 + - col2 * col1 * col1 + col2 FROM tab2 AS cor0
----
-10927
-25889
-90421
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col1 FROM tab2 AS cor0
----
16
16
16
query I rowsort
SELECT - col1 + + col0 * col0 + 19 AS col0 FROM tab1 AS cor0
----
2
4105
6406
query I rowsort
SELECT DISTINCT - 20 + col1 FROM tab2 cor0
----
-3
11
39
query I rowsort
SELECT ALL - col0 + cor0.col2 + + col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + + 90 * - col2 FROM tab2 cor0
----
-2340
-2430
-3420
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6771
SELECT + 37 * - col0 + - CAST( col0 AS SIGNED ) + col0 * - ( + col2 ) FROM tab2 cor0
----
-455
-4992
-6004
skipif mysql # not compatible
query I rowsort label-6771
SELECT + 37 * - col0 + - CAST ( col0 AS INTEGER ) + col0 * - ( + col2 ) FROM tab2 cor0
----
-455
-4992
-6004
query I rowsort
SELECT DISTINCT - col1 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1360
-248
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col2 FROM tab2 AS cor0
----
30
30
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT - 28 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-6774
SELECT - 28 / col1 AS col0 FROM tab1 AS cor0
----
-1
-2
-2
query I rowsort
SELECT + ( col1 ) + + col2 * - col1 FROM tab1
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT + col2 DIV 1 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6776
SELECT + col2 / 1 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + 73 * + 90 FROM tab2
----
6570
6570
6570
query I rowsort
SELECT ALL - 15 + col0 + - tab2.col0 AS col2 FROM tab2
----
-15
-15
-15
query I rowsort
SELECT cor0.col2 * - col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - col0 * - col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + - 99 + col1 FROM tab1 AS cor0
----
-73
-86
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6782
SELECT ALL - 23 + col1 * + CAST( + 22 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-14103
-1739
-22903
skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL - 23 + col1 * + CAST ( + 22 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-14103
-1739
-22903
query I rowsort
SELECT + 8 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col1 FROM tab0
----
91
91
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6785
SELECT ALL - col1 + col2 * ( + ( + col0 ) ) * CAST( 44 AS SIGNED ) FROM tab0 cor0
----
1443
321021
34762
skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL - col1 + col2 * ( + ( + col0 ) ) * CAST ( 44 AS INTEGER ) FROM tab0 cor0
----
1443
321021
34762
query I rowsort
SELECT ALL + + col2 * col2 - col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT + col0 * - col2 - - col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + 94 * col2 + 81 * col0 FROM tab1
----
10542
15504
5319
query I rowsort
SELECT DISTINCT col2 + - col0 * + tab2.col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - col0 + col2 + col2 FROM tab1
----
105
112
50
query I rowsort
SELECT - cor0.col1 * cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT + col0 + + ( + col2 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + - col0 * - col2 + - 66 AS col1 FROM tab0 AS cor0
----
-31
7232
726
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6795
SELECT + col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6795
SELECT + col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 63 + + col1 AS col1 FROM tab2
----
-32
-4
-46
query I rowsort
SELECT - + ( - col1 ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT col0 * tab0.col2 * + ( + col1 ) - col1 FROM tab0
----
3298
664027
68026
onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT DISTINCT col1 DIV ( + col1 ) AS col0 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT col1 / ( + col1 ) AS col0 FROM tab0 cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6800
SELECT - + CAST( ( - col1 ) AS SIGNED ) + 38 * + col2 FROM tab2 AS cor0
----
1047
1057
1461
skipif mysql # not compatible
query I rowsort label-6800
SELECT - + CAST ( ( - col1 ) AS INTEGER ) + 38 * + col2 FROM tab2 AS cor0
----
1047
1057
1461
query I rowsort
SELECT DISTINCT - ( col0 ) * col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + 39 * - cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
110682
291018
3783
query I rowsort
SELECT ( 54 ) * + tab1.col2 + + tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 71ec043512788bd149471f731369101a
query I rowsort
SELECT DISTINCT + 15 FROM tab2, tab2 AS cor0
----
15
query I rowsort
SELECT ALL + tab0.col0 * + 89 FROM tab0
----
2136
3115
7921
query I rowsort
SELECT + 5 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6807
SELECT + + CAST( NULL AS DECIMAL ) + 55 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6807
SELECT + + CAST ( NULL AS REAL ) + 55 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT ALL + col1 * - ( cor0.col0 ) + 40 + - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-1304
-178
-4563
skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + col1 * - ( cor0.col0 ) + 40 + - col1 / col1 AS col2 FROM tab2 AS cor0
----
-1304
-178
-4563
query I rowsort
SELECT DISTINCT - col0 + 30 - - col1 AS col1 FROM tab2 AS cor0
----
-32
11
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT ALL - cor0.col2 DIV col2 + - cor0.col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - cor0.col2 / col2 + - cor0.col2 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT ALL - - col0 * + col0 + cor0.col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - 70 * + col1 * col1 FROM tab0 AS cor0
----
-517720
-579670
-658630
query I rowsort
SELECT ALL - - cor0.col0 * cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - col2 * - cor0.col0 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 * - tab0.col0 * 73 col2 FROM tab0, tab0 cor0
----
9 values hashing to bf9e8e373e36d41ad0ac74f7160a17c7
query I rowsort
SELECT ALL ( - col0 ) + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 * cor0.col0 * + 46 FROM tab2 AS cor0
----
211692
61778
9982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( - col2 ) col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT ( + col2 + + col1 ) FROM tab0
----
119
173
98
query I rowsort
SELECT - 39 * - col0 AS col1 FROM tab2 AS cor0
----
273
3042
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6821
SELECT cor0.col0 + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6821
SELECT cor0.col0 + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + col1 * - 15 FROM tab2 AS cor0
----
-217
-438
-859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT 35 DIV cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-6823
SELECT 35 / cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - col0 * + ( col0 * + col0 ) FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT - col0 + - 34 AS col1 FROM tab1 AS cor0
----
-114
-37
-98
query I rowsort
SELECT ALL cor0.col1 * + ( col1 ) + col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6827
SELECT + col2 + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-6827
SELECT + col2 + col1 / + col0 AS col2 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT - + col0 * - 35 FROM tab2 cor0
----
245
2730
2765
query I rowsort
SELECT ALL - 57 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT + 75 * + col0 FROM tab2 AS cor0
----
525
5850
5925
onlyif mysql # use DIV operator for integer division
query I rowsort label-6831
SELECT + 58 + + 17 DIV col2 AS col0 FROM tab1 AS cor0
----
58
58
58
skipif mysql # not compatible
query I rowsort label-6831
SELECT + 58 + + 17 / col2 AS col0 FROM tab1 AS cor0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT ALL + col2 DIV 43 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL + col2 / 43 FROM tab2
----
0
0
0
query I rowsort
SELECT - col2 * 57 AS col0 FROM tab0 cor0
----
-1881
-4674
-57
query I rowsort
SELECT - - 24 * + 67 AS col2 FROM tab1 AS cor0
----
1608
1608
1608
query I rowsort
SELECT ALL - + col2 * + cor0.col1 - + cor0.col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - col2 * - 37 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT - - cor0.col2 + - col1 * 48 AS col2 FROM tab2 cor0
----
-1461
-2806
-778
query I rowsort
SELECT DISTINCT col1 + col1 + col1 FROM tab0 cor0
----
258
273
291
query I rowsort
SELECT - col2 * + 14 FROM tab1 cor0
----
-1344
-756
-798
query I rowsort
SELECT 72 * + col2 AS col2 FROM tab2
----
1872
1944
2736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6841
SELECT ALL - + col1 * CAST( + col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL - + col1 * CAST ( + col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT col2 * 2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT ALL - cor0.col2 + 47 DIV + 45 + col1 col0 FROM tab2 AS cor0
----
-20
34
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL - cor0.col2 + 47 / + 45 + col1 col0 FROM tab2 AS cor0
----
-20
34
5
query I rowsort
SELECT ( 92 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT - cor0.col0 * cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7522b05e664ac1561bef84e44b3f2d33
query I rowsort
SELECT DISTINCT tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6847
SELECT DISTINCT + col0 - col2 * col1 DIV + col0 AS col2 FROM tab0
----
-94
33
6
skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT + col0 - col2 * col1 / + col0 AS col2 FROM tab0
----
-94
33
6
query I rowsort
SELECT - col2 + col0 + col2 AS col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * tab0.col2 * tab0.col0 col1 FROM tab0 WHERE NULL NOT IN ( + col1 / + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT DISTINCT - col1 DIV + tab2.col1 AS col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT - col1 / + tab2.col1 AS col0 FROM tab2
----
-1
query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 * col0 AS col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ALL tab0.col2 - + col2 FROM tab0
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + tab2.col1 > ( NULL )
----
query I rowsort
SELECT - tab0.col0 + cor0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 8e2d2d35b0aeae8bb4f81dcc791d8691
query I rowsort
SELECT DISTINCT 52 + - col0 + col0 AS col1 FROM tab1
----
52
query I rowsort
SELECT ALL col0 + col2 + - col2 AS col2 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT + 98 DIV col0 - + 17 * - col2 AS col0 FROM tab0
----
1395
19
565
skipif mysql # not compatible
query I rowsort label-6857
SELECT + 98 / col0 - + 17 * - col2 AS col0 FROM tab0
----
1395
19
565
query I rowsort
SELECT ( - tab0.col0 ) - + 21 * - col2 FROM tab0
----
-14
1633
669
query I rowsort
SELECT + 50 + col2 * - 2 FROM tab0
----
-114
-16
48
query I rowsort
SELECT + - col2 * col2 + + cor0.col2 * + col1 FROM tab0 AS cor0
----
1749
738
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + cor0.col0 * col0 col1 FROM tab1 AS cor0
----
12
4160
6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col1 FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT ALL col2 + + col0 * col2 AS col0 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT 19 * col2 + 37 AS col1 FROM tab1 AS cor0
----
1063
1120
1861
query I rowsort
SELECT + - col1 + - 16 * + col1 AS col1 FROM tab2 AS cor0
----
-1003
-289
-527
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT ALL + col0 * - 87 AS col0 FROM tab2 AS cor0
----
-609
-6786
-6873
query I rowsort
SELECT ALL + tab2.col1 * - ( col0 ) AS col2 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6869
SELECT col1 + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-6869
SELECT col1 + col1 / col0 AS col2 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL col1 * - col2 + - 23 AS col0 FROM tab1 cor0
----
-1271
-1427
-593
query I rowsort
SELECT 50 * + tab0.col2 FROM tab0
----
1650
4100
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 - col1 col0 FROM tab0 AS cor0
----
-3
3
8
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 d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT ( + col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ( col2 ) * col0 - + col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT 16 + - col0 FROM tab0
----
-19
-73
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6878
SELECT - col2 DIV + tab1.col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-6878
SELECT - col2 / + tab1.col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT + 51 + + col0 FROM tab1
----
115
131
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT DISTINCT - - col0 + col0 DIV + col2 AS col1 FROM tab1 cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT - - col0 + col0 / + col2 AS col1 FROM tab1 cor0
----
3
65
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6881
SELECT DISTINCT - 71 * + col1 + col1 DIV cor0.col2 + - 97 AS col2 FROM tab0 AS cor0
----
-6201
-6557
-6887
skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT - 71 * + col1 + col1 / cor0.col2 + - 97 AS col2 FROM tab0 AS cor0
----
-6201
-6557
-6887
onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT DISTINCT - ( col1 ) DIV col0 - + 38 * - col1 AS col2 FROM tab0 AS cor0
----
3265
3457
3684
skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - ( col1 ) / col0 - + 38 * - col1 AS col2 FROM tab0 AS cor0
----
3265
3457
3684
query I rowsort
SELECT DISTINCT - ( - col2 ) + col2 + + ( - ( col2 ) ) FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT ALL + cor0.col2 + col0 DIV + ( - col1 ) AS col0 FROM tab1 AS cor0
----
51
54
90
skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + cor0.col2 + col0 / + ( - col1 ) AS col0 FROM tab1 AS cor0
----
51
54
90
query I rowsort
SELECT ALL 70 + col2 * - col0 FROM tab1 AS cor0
----
-3578
-7610
-92
query I rowsort
SELECT ALL - - 81 FROM tab2 AS cor0
----
81
81
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT DISTINCT + col2 * col2 DIV + CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT + col2 * col2 / + CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 1 * + cor0.col0 - ( - col2 ) * cor0.col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + ( cor0.col2 ) * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - - col0 + - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL 68 + col0 * - 9 FROM tab1 cor0
----
-508
-652
41
query I rowsort
SELECT - ( col2 ) + ( col2 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT DISTINCT - col2 + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT - col2 + + col1 / col1 AS col0 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT DISTINCT + + col1 * col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL cor0.col1 + + col1 AS col2 FROM tab0 cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + tab2.col0 - col1 col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT tab0.col2 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT DISTINCT + col1 - - col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col0 * col2 - col2 AS col1 FROM tab1
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + - 39 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT ALL - cor0.col2 + - col1 AS col2 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + + col2 - col2 * col1 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT + col2 * + CAST( 81 * col1 AS SIGNED ) + 43 DIV tab0.col0 col2 FROM tab0
----
229879
604422
7858
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6903
SELECT + col2 * + CAST ( 81 * col1 AS INTEGER ) + 43 / tab0.col0 col2 FROM tab0
----
229879
604422
7858
query I rowsort
SELECT - col0 * 46 FROM tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT ALL 64 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT ALL + col2 * + 18 + col1 * col1 FROM tab0 AS cor0
----
7990
9427
9757
query I rowsort
SELECT DISTINCT - col1 + - 94 AS col2 FROM tab2 AS cor0
----
-111
-125
-153
query I rowsort
SELECT ALL - 0 + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + ( - col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col1 * + col0 + col1 * 61 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-38063
-50840
-88972
query I rowsort
SELECT ALL + cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT col0 DIV col0 + + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-6913
SELECT col0 / col0 + + col0 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 96 * col0 col0 FROM tab0 cor0
----
-2304
-3360
-8544
query I rowsort
SELECT DISTINCT col0 * + col1 + + 14 FROM tab2 AS cor0
----
1357
231
4616
query I rowsort
SELECT ALL + + col1 * col2 + col2 * - 22 FROM tab2 AS cor0
----
-190
243
962
query I rowsort
SELECT ALL + 61 - + col0 FROM tab0 AS cor0
----
-28
26
37
query I rowsort
SELECT DISTINCT 66 * + col2 AS col1 FROM tab2 cor0
----
1716
1782
2508
query I rowsort
SELECT tab0.col0 * - col2 * col0 + col2 * 0 FROM tab0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( col2 ) col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) * tab0.col2 * - tab0.col1 + col0 col2 FROM tab0
----
-244044
-678953
-9374
query I rowsort
SELECT - cor0.col0 * + col1 + col1 * 23 AS col0 FROM tab0 AS cor0
----
-1164
-6006
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6923
SELECT col2 + col0 DIV + cor0.col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6923
SELECT col2 + col0 / + cor0.col0 FROM tab2 AS cor0
----
27
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-6924
SELECT DISTINCT + 1 DIV col1 + ( + col1 ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT + 1 / col1 + ( + col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - 46 * + col1 + + col2 AS col2 FROM tab2
----
-1399
-2688
-744
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT cor0.col1 + ( + col1 + - col0 ) FROM tab2 AS cor0
----
-45
40
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + col1 + ( - 56 ) * + col0 FROM tab2 AS cor0
----
-423
-4427
-4441
query I rowsort
SELECT - col1 * ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - 5 * tab2.col2 AS col0 FROM tab2
----
-130
-135
-190
query I rowsort
SELECT - 82 FROM tab0, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT col2 + 31 FROM tab2 AS cor0
----
57
58
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6934
SELECT ALL col2 + col0 * col0 + - CAST( 90 AS SIGNED ) * tab0.col1 * 79 FROM tab0
----
-610851
-639007
-688444
skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL col2 + col0 * col0 + - CAST ( 90 AS INTEGER ) * tab0.col1 * 79 FROM tab0
----
-610851
-639007
-688444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col0 FROM tab1 AS cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT col0 DIV - 44 + - col0 * 92 - col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
5188
6189
91
skipif mysql # not compatible
query I rowsort label-6936
SELECT col0 / - 44 + - col0 * 92 - col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
5188
6189
91
query I rowsort
SELECT DISTINCT + - col1 * - col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - ( col0 ) + + cor0.col0 * ( col2 ) + col2 AS col1 FROM tab1 AS cor0
----
213
3641
7696
query I rowsort
SELECT ALL - ( ( + col1 ) ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 + col0 col2 FROM tab2 cor0
----
156
157
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6941
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6942
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT + ( col0 ) * col0 DIV ( - col0 ) FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6943
SELECT + ( col0 ) * col0 / ( - col0 ) FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6944
SELECT ( col2 ) * + 54 + + col0 + col2 * CAST( 78 AS SIGNED ) FROM tab2 AS cor0
----
3510
3571
5095
skipif mysql # not compatible
query I rowsort label-6944
SELECT ( col2 ) * + 54 + + col0 + col2 * CAST ( 78 AS INTEGER ) FROM tab2 AS cor0
----
3510
3571
5095
query I rowsort
SELECT - ( + col1 + col1 ) * col1 FROM tab1
----
-1352
-200
-338
query I rowsort
SELECT + 83 * col1 FROM tab0 cor0
----
7138
7553
8051
query I rowsort
SELECT - col0 * + col0 + col2 AS col1 FROM tab2 cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT ( + col1 ) + + col0 * cor0.col2 + + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 86 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-2975
-7565
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col0 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + 40 + - col2 AS col1 FROM tab0 AS cor0
----
-42
39
7
query I rowsort
SELECT ALL - col1 + 36 AS col1 FROM tab0 AS cor0
----
-50
-55
-61
query I rowsort
SELECT ALL + 42 * col2 AS col1 FROM tab0 AS cor0
----
1386
3444
42
query I rowsort
SELECT DISTINCT - + 96 + - col1 FROM tab0 AS cor0
----
-182
-187
-193
query I rowsort
SELECT DISTINCT - 40 * + col1 + cor0.col1 FROM tab1 AS cor0
----
-1014
-390
-507
query I rowsort
SELECT + - 46 * col2 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT DISTINCT cor0.col2 + + col1 * 2 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT ALL 14 * + col0 + + ( - cor0.col2 ) FROM tab2 AS cor0
----
1066
1068
71
query I rowsort
SELECT ALL - cor0.col1 + - col0 * - 44 FROM tab1 AS cor0
----
106
2806
3507
query I rowsort
SELECT ALL + + col2 * - col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ( col0 ) * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 30 * + col2 + - ( - col0 ) * + col0 + 1 * + col0 AS col1 FROM tab0 AS cor0
----
-390
1230
5550
query I rowsort
SELECT col2 + + tab1.col0 * col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT - cor1.col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT - col2 DIV - cor0.col0 - - 29 AS col2 FROM tab0 AS cor0
----
29
29
30
skipif mysql # not compatible
query I rowsort label-6965
SELECT - col2 / - cor0.col0 - - 29 AS col2 FROM tab0 AS cor0
----
29
29
30
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col1 * + cor0.col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col1 + 12 * 80 FROM tab1
----
970
973
986
query I rowsort
SELECT - + cor0.col1 - ( - 26 ) * col2 AS col2 FROM tab2 cor0
----
617
671
971
query I rowsort
SELECT + col0 * - tab0.col2 - col2 FROM tab0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-6970
SELECT col1 DIV - 35 + col1 - + col1 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6970
SELECT col1 / - 35 + col1 - + col1 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - ( + 23 ) AS col1 FROM tab1 AS cor0
----
-23
-23
-23
query I rowsort
SELECT DISTINCT tab0.col0 + - col2 + col2 AS col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT ALL + tab2.col0 DIV ( - col0 ) - + col0 col1 FROM tab2
----
-79
-8
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL + tab2.col0 / ( - col0 ) - + col0 col1 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT - tab2.col1 + col0 + tab2.col0 FROM tab2
----
-17
141
97
query I rowsort
SELECT ( col1 + col1 ) * col1 AS col2 FROM tab2
----
1922
578
6962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6976
SELECT ALL CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6977
SELECT DISTINCT ( + ( - col2 ) ) * - CAST( col2 AS SIGNED ) + col1 * + col2 FROM tab1
----
10464
3819
4320
skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT ( + ( - col2 ) ) * - CAST ( col2 AS INTEGER ) + col1 * + col2 FROM tab1
----
10464
3819
4320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6978
SELECT DISTINCT col1 / + ( - col0 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT col1 / + ( - col0 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
query I rowsort
SELECT - ( col0 + tab0.col0 ) * - col2 * + 15 FROM tab0
----
1050
218940
23760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6980
SELECT CAST( col2 * - col0 AS SIGNED ) + 28 FROM tab0
----
-7
-7270
-764
skipif mysql # not compatible
query I rowsort label-6980
SELECT CAST ( col2 * - col0 AS INTEGER ) + 28 FROM tab0
----
-7
-7270
-764
query I rowsort
SELECT - - 6 FROM tab2 cor0
----
6
6
6
query I rowsort
SELECT DISTINCT col2 * - 11 + - cor0.col1 FROM tab2 AS cor0
----
-328
-345
-435
query I rowsort
SELECT ALL + 60 * + 14 FROM tab2 AS cor0
----
840
840
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 * col1 col2 FROM tab2 AS cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * CAST ( + 88 * - col2 AS REAL ) + - col0 FROM tab1 AS cor0
----
109744
123549
50096
query I rowsort
SELECT ALL col2 + - 71 FROM tab1 AS cor0
----
-14
-17
25
query I rowsort
SELECT DISTINCT - + 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 72 * - 41 col1 FROM tab2 AS cor0
----
-20664
-230256
-233208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( - col0 ) col0 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 53 + - col1 * - col1 col1 FROM tab1 cor0
----
3121
3538
5257
query I rowsort
SELECT DISTINCT col1 + 61 FROM tab1 AS cor0
----
71
74
87
query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT + col0 * + ( + col1 ) * cor0.col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL + + cor0.col0 + cor0.col0 * + 88 AS col2 FROM tab1 AS cor0
----
267
5696
7120
onlyif mysql # use DIV operator for integer division
query I rowsort label-6995
SELECT - col1 DIV 3 FROM tab1 AS cor0
----
-3
-4
-8
skipif mysql # not compatible
query I rowsort label-6995
SELECT - col1 / 3 FROM tab1 AS cor0
----
-3
-4
-8
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) AS col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6997
SELECT ALL - + col1 DIV - col1 AS col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - + col1 / - col1 AS col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT + 4 FROM tab2 cor0
----
4
4
4
query I rowsort
SELECT - - col1 * - col0 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL cor0.col1 * + cor0.col0 + - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2a7da137a94142df8cb9f2ac1b45e832
onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT tab0.col1 * - col0 DIV + col0 AS col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7001
SELECT tab0.col1 * - col0 / + col0 AS col2 FROM tab0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7002
SELECT DISTINCT col0 * tab2.col1 + + col0 + - col2 * CAST( + col0 + col1 AS SIGNED ) FROM tab2
----
-2226
-802
1118
skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT col0 * tab2.col1 + + col0 + - col2 * CAST ( + col0 + col1 AS INTEGER ) FROM tab2
----
-2226
-802
1118
query I rowsort
SELECT DISTINCT - col2 + col2 * - ( col2 ) AS col2 FROM tab1
----
-2970
-3306
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7004
SELECT - col1 + - CAST( NULL AS DECIMAL ) * - col0 * - col1 - + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7004
SELECT - col1 + - CAST ( NULL AS REAL ) * - col0 * - col1 - + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col1 * + ( - cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col0 + + col2 - ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 * - col1 - col0 * col0 AS col1 FROM tab2 AS cor0
----
-10686
-266
-7584
query I rowsort
SELECT + ( 27 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT 52 * - cor0.col0 FROM tab2 AS cor0
----
-364
-4056
-4108
query I rowsort
SELECT + - 55 + - cor0.col2 FROM tab2 AS cor0
----
-81
-82
-93
query I rowsort
SELECT DISTINCT + 89 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2117
278
3091
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7012
SELECT CAST( NULL AS SIGNED ) * + col2 + - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7012
SELECT CAST ( NULL AS INTEGER ) * + col2 + - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - ( - col0 ) * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + col0 * 27 AS col1 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT - tab0.col0 * col0 + - ( - col2 * tab0.col1 ) AS col2 FROM tab0
----
-1128
-459
2262
query I rowsort
SELECT tab1.col0 * - 15 FROM tab1
----
-1200
-45
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT col0 DIV - ( col2 ) + + tab0.col2 * - ( tab0.col1 ) FROM tab0
----
-132
-2838
-7463
skipif mysql # not compatible
query I rowsort label-7017
SELECT col0 / - ( col2 ) + + tab0.col2 * - ( tab0.col1 ) FROM tab0
----
-132
-2838
-7463
query I rowsort
SELECT + 78 + 80 FROM tab0 AS cor0
----
158
158
158
query I rowsort
SELECT - + 29 AS col1 FROM tab1 cor0
----
-29
-29
-29
query I rowsort
SELECT + ( 41 ) FROM tab1
----
41
41
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7021
SELECT ALL + CAST( NULL AS SIGNED ) * col1 - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * + col2 + - col0 col2 FROM tab2
----
182
1950
2923
query I rowsort
SELECT + col1 * ( - col0 ) FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + - 65 * + col1 * + col1 FROM tab1 AS cor0
----
-10985
-43940
-6500
query I rowsort
SELECT - + col2 + 22 AS col2 FROM tab2 AS cor0
----
-16
-4
-5
query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL - cor0.col0 + col2 * - ( - col2 * col0 + 77 ) AS col0 FROM tab2 cor0
----
111071
3017
50648
query I rowsort
SELECT DISTINCT - col0 * col1 * 88 FROM tab0 AS cor0
----
-181632
-298760
-712712
query I rowsort
SELECT ALL - + col2 + cor0.col2 * 58 + col1 FROM tab1 AS cor0
----
3104
3259
5485
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * 37 + ( col1 ) col2 FROM tab2 AS cor0
----
1037
1099
1502
query I rowsort
SELECT col1 * - col1 * - col2 + - col2 + - col2 FROM tab1 AS cor0
----
16032
36396
5586
query I rowsort
SELECT ALL + ( + col0 ) * - 17 + col2 FROM tab1 AS cor0
----
-1031
-1264
3
query I rowsort
SELECT tab1.col0 * ( + col2 + col0 ) FROM tab1
----
14080
171
7744
query I rowsort
SELECT ALL + 96 AS col2 FROM tab2
----
96
96
96
query I rowsort
SELECT + cor0.col2 + 83 * + col2 AS col2 FROM tab1 AS cor0
----
4536
4788
8064
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col0 FROM tab1
----
54
57
96
query I rowsort
SELECT - col1 * col2 * - cor0.col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + 76 * col1 * col2 FROM tab0
----
215688
567112
7372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7039
SELECT ALL - CAST( NULL AS DECIMAL ) + + tab0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL - CAST ( NULL AS REAL ) + + tab0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7040
SELECT DISTINCT - col2 * CAST( 77 AS SIGNED ) - col1 AS col2 FROM tab0
----
-174
-2627
-6405
skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT - col2 * CAST ( 77 AS INTEGER ) - col1 AS col2 FROM tab0
----
-174
-2627
-6405
query I rowsort
SELECT + col2 * - col0 - - cor0.col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT - col2 * 95 FROM tab0
----
-3135
-7790
-95
query I rowsort
SELECT ALL tab0.col1 + + col0 * - col0 - - col0 * col2 AS col0 FROM tab0
----
-1093
-532
302
query I rowsort
SELECT DISTINCT col0 - + tab0.col1 FROM tab0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7045
SELECT col2 DIV col1 + col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-60
24
skipif mysql # not compatible
query I rowsort label-7045
SELECT col2 / col1 + col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-60
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7046
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7046
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col1 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 * + col0 * col2 + tab1.col2 + + col1 col0 FROM tab1
----
-233405
-406
-614291
query I rowsort
SELECT - col0 + - col2 * ( - ( col2 ) ) FROM tab1
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT - 86 + + col0 DIV + col0 FROM tab2
----
-85
-85
-85
skipif mysql # not compatible
query I rowsort label-7050
SELECT - 86 + + col0 / + col0 FROM tab2
----
-85
-85
-85
query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) * - col0 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-7052
SELECT - col2 DIV + col0 + + ( - col2 ) DIV 94 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7052
SELECT - col2 / + col0 + + ( - col2 ) / 94 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + col2 * - 84 AS col0 FROM tab2 AS cor0
----
-2184
-2268
-3192
query I rowsort
SELECT - - cor0.col1 + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col2 + + 7 + col2 FROM tab2 AS cor0
----
59
61
83
query I rowsort
SELECT DISTINCT - + col2 * - 47 AS col1 FROM tab0 AS cor0
----
1551
3854
47
query I rowsort
SELECT - col0 * tab0.col2 * - tab0.col2 + col2 FROM tab0
----
26169
36
598518
query I rowsort
SELECT ALL - col1 + ( col0 ) AS col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 - col1 * - col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col1 - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col2 * 73 + - col0 AS col0 FROM tab2 AS cor0
----
1820
1964
2695
onlyif mysql # use DIV operator for integer division
query I rowsort label-7062
SELECT ALL col0 DIV ( col2 * - col1 + 18 ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL col0 / ( col2 * - col1 + 18 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + col1 + 20 * col1 FROM tab1 AS cor0
----
190
247
494
query I rowsort
SELECT ALL col0 + ( - 83 ) FROM tab1 cor0
----
-19
-3
-80
query I rowsort
SELECT + col2 * + col0 + col0 FROM tab0 cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT col0 + - col2 DIV + col2 col0 FROM tab1 AS cor0
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7066
SELECT col0 + - col2 / + col2 col0 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT ALL - col0 * col0 DIV + 27 + - col1 AS col0 FROM tab0 cor0
----
-107
-142
-384
skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL - col0 * col0 / + 27 + - col1 AS col0 FROM tab0 cor0
----
-107
-142
-384
query I rowsort
SELECT ALL - cor1.col1 + ( + 17 ) * cor0.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51e7c8abf5b557a35cc01577889a96e2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 * + cor0.col0 col2 FROM tab1 cor0
----
126
2688
3360
query I rowsort
SELECT DISTINCT - col0 * 75 FROM tab2 AS cor0
----
-525
-5850
-5925
onlyif mysql # use DIV operator for integer division
query I rowsort label-7071
SELECT - - col2 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7071
SELECT - - col2 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + + 69 * + col2 AS col1 FROM tab2 AS cor0
----
1794
1863
2622
onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT - + ( col0 ) DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7073
SELECT - + ( col0 ) / - cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col2 + - 7 * col2 AS col0 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT + + 17 AS col1 FROM tab1 AS cor0
----
17
17
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7076
SELECT + CAST( - 79 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-79
-79
-79
skipif mysql # not compatible
query I rowsort label-7076
SELECT + CAST ( - 79 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-79
-79
-79
query I rowsort
SELECT DISTINCT - + col2 * col2 + ( - col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT DISTINCT - 80 + - col1 FROM tab2 AS cor0
----
-111
-139
-97
query I rowsort
SELECT DISTINCT + - 19 AS col0 FROM tab1 AS cor0
----
-19
query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 - - 36 * - col1 AS col1 FROM tab1 AS cor0
----
1980
2889
8748
query I rowsort
SELECT DISTINCT - 62 * + col2 FROM tab0 AS cor0
----
-2046
-5084
-62
query I rowsort
SELECT ALL - 40 + + col2 + cor0.col1 FROM tab1 AS cor0
----
27
40
69
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) * + col0 - + ( + col0 ) AS col1 FROM tab1
----
159
3584
7600
query I rowsort
SELECT - 39 + - 31 AS col2 FROM tab2
----
-70
-70
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 * + col1 - - ( + col0 * + col0 ) col0 FROM tab1 AS cor0
----
4116
61
6426
onlyif mysql # use DIV operator for integer division
query I rowsort label-7086
SELECT DISTINCT - 48 DIV + col0 - ( col0 ) * + col0 FROM tab0 AS cor0
----
-1226
-578
-7921
skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT - 48 / + col0 - ( col0 ) * + col0 FROM tab0 AS cor0
----
-1226
-578
-7921
query I rowsort
SELECT DISTINCT - 67 + - col0 AS col2 FROM tab2 AS cor0
----
-145
-146
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7088
SELECT DISTINCT + 70 + - cor0.col0 - + CAST( - col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
16
3
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT + 70 + - cor0.col0 - + CAST ( - col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
16
3
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT DISTINCT col1 - col2 DIV + 91 col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT col1 - col2 / + 91 col1 FROM tab0
----
86
91
97
query I rowsort
SELECT 31 * col1 * col2 + col2 AS col2 FROM tab2
----
20064
25974
47580
query I rowsort
SELECT - 3 + col0 AS col0 FROM tab2
----
4
75
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - ( cor0.col2 ) + + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL col0 + 36 * + col2 AS col2 FROM tab2 AS cor0
----
1014
1447
979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - ( - col1 + col0 ) * col1 col0 FROM tab0 cor0
----
5308
5979
93
query I rowsort
SELECT ALL - col1 + 47 AS col2 FROM tab2 cor0
----
-12
16
30
query I rowsort
SELECT ALL + - col1 * col0 - + col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL + col0 + + 14 AS col2 FROM tab0
----
103
38
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-7099
SELECT tab1.col2 * 34 * 48 - - col1 DIV + tab1.col1 FROM tab1
----
156673
88129
93025
skipif mysql # not compatible
query I rowsort label-7099
SELECT tab1.col2 * 34 * 48 - - col1 / + tab1.col1 FROM tab1
----
156673
88129
93025
query I rowsort
SELECT ( + tab0.col2 ) AS col1 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7101
SELECT DISTINCT + 15 + - 86 DIV - cor0.col2 FROM tab1 AS cor0
----
15
16
skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT + 15 + - 86 / - cor0.col2 FROM tab1 AS cor0
----
15
16
query I rowsort
SELECT + + 65 + cor0.col2 FROM tab0 AS cor0
----
147
66
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7103
SELECT DISTINCT CAST( col2 AS SIGNED ) * + col0 AS col0 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL + col2 + + col0 + col2 AS col1 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT + cor0.col0 * + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2e5241c58e367013a1a203910e000c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT col0 * + col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - ( - ( + col0 ) ) FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT + 35 * - ( col1 ) AS col0 FROM tab1
----
-350
-455
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-7110
SELECT ALL - 41 - - 45 DIV - col0 FROM tab2
----
-41
-41
-47
skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL - 41 - - 45 / - col0 FROM tab2
----
-41
-41
-47
query I rowsort
SELECT ALL - col0 + + 70 - tab2.col1 FROM tab2
----
-26
-67
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + - cor0.col1 * col2 col2 FROM tab0 cor0
----
-15561
-3492
-4902
query I rowsort
SELECT + col1 * + col2 * + col1 + col1 + col1 * col2 AS col0 FROM tab2 AS cor0
----
11645
26815
92099
query I rowsort
SELECT DISTINCT col0 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + 11 FROM tab2 cor0
----
11
11
11
query I rowsort
SELECT + col2 * + col0 + - col0 + + col2 AS col0 FROM tab1 AS cor0
----
213
3641
7696
query I rowsort
SELECT ALL + tab1.col1 * tab1.col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT + - cor0.col1 * col1 + col1 + - col2 * col2 FROM tab2 AS cor0
----
-1659
-1716
-4098
query I rowsort
SELECT + - col0 * col2 + col1 + col1 * col0 AS col0 FROM tab1 cor0
----
-2998
-58
-6627
query I rowsort
SELECT + 45 - col0 AS col1 FROM tab2 cor0
----
-33
-34
38
query I rowsort
SELECT ALL - col1 + + col0 + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
154
236
653
query I rowsort
SELECT + col0 * - tab0.col0 + - col2 * + col0 AS col1 FROM tab0
----
-1260
-1368
-15219
onlyif mysql # use DIV operator for integer division
query I rowsort label-7124
SELECT DISTINCT col2 + tab1.col0 DIV + col2 AS col0 FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT col2 + tab1.col0 / + col2 AS col0 FROM tab1
----
54
58
96
query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2
----
query I rowsort
SELECT DISTINCT col1 * col0 + col0 AS col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT tab1.col1 + col0 + + col0 FROM tab1 WHERE ( - col1 * col0 / + col0 ) >= + col2 + col1
----
query I rowsort
SELECT ALL tab2.col1 + - col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - col1 * - col2 + tab2.col0 + - col2 * - col1 AS col1 FROM tab2
----
1371
1681
3146
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - tab0.col0 + col2 * col1 col0 FROM tab0
----
-35
2728
7282
onlyif mysql # use DIV operator for integer division
query I rowsort label-7132
SELECT - col1 * - col2 + - col2 DIV - col1 - col2 * tab0.col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7132
SELECT - col1 * - col2 + - col2 / - col1 - col2 * tab0.col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 + - tab2.col1 * - col1 FROM tab2 WHERE ( NULL ) >= ( col2 * + col0 )
----
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT col1 + col2 BETWEEN NULL AND col1 + - col0 / - col2
----
86
91
query I rowsort
SELECT ALL col1 * col1 * col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT - col0 + + col0 + + col2 * col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 + - col1 + col0 AS col2 FROM tab0
----
-29
-61
80
query I rowsort
SELECT DISTINCT col2 * col1 * - col0 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col1 + col0 + col0 AS col0 FROM tab2
----
175
215
45
query I rowsort
SELECT ALL - tab2.col0 / - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * col0 * col0 AS col1 FROM tab1
----
262144
27
512000
query I rowsort
SELECT DISTINCT + col0 + - tab2.col1 AS col0 FROM tab2
----
-24
19
62
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7144
SELECT col0 + + tab1.col0 DIV col1 AS col2 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-7144
SELECT col0 + + tab1.col0 / col1 AS col2 FROM tab1
----
3
70
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * col2 col2 FROM tab0
----
-1225
-19008
-649522
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + col2 NOT BETWEEN - col2 AND NULL
----
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT DISTINCT - col1 - + tab1.col0 FROM tab1 WHERE NOT col0 IN ( - col0 )
----
-29
-74
-93
query I rowsort
SELECT ALL + col0 FROM tab0 WHERE + col0 * col1 NOT BETWEEN NULL AND - col2
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT ALL + 78 * ( + col0 ) DIV col1 AS col1 FROM tab0 AS cor0
----
21
28
76
skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + 78 * ( + col0 ) / col1 AS col1 FROM tab0 AS cor0
----
21
28
76
query I rowsort
SELECT DISTINCT + col0 * + ( + 26 ) FROM tab2
----
182
2028
2054
query I rowsort
SELECT DISTINCT + col2 * - tab1.col2 AS col0 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT cor0.col2 * - col1 - col2 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT - ( col2 ) * - col1 - - 2 * - col0 FROM tab0 AS cor0
----
27
2790
7284
query I rowsort
SELECT col2 * 73 * + cor0.col2 FROM tab2 AS cor0
----
105412
49348
53217
query I rowsort
SELECT DISTINCT + + ( col1 ) AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ( col1 ) + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col1 * 88 + 69 FROM tab0
----
7637
8077
8605
query I rowsort
SELECT - col2 * + col1 + - col0 + - col2 AS col2 FROM tab1
----
-1424
-1461
-691
query I rowsort
SELECT - 81 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7162
SELECT DISTINCT - ( + col0 ) DIV col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT - ( + col0 ) / col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + - col1 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-7164
SELECT ALL - col1 DIV - col0 + + col1 AS col0 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL - col1 / - col0 + + col1 AS col0 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT 9 AS col1 FROM tab2 cor0
----
9
9
9
query I rowsort
SELECT ALL - col1 * + col1 - - col2 AS col2 FROM tab0 cor0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * - col0 + - col2 * col0 col1 FROM tab0 AS cor0
----
-12994
-2275
-2328
query I rowsort
SELECT DISTINCT - 14 + col0 AS col1 FROM tab2 AS cor0
----
-7
64
65
query I rowsort
SELECT ALL - col1 * col2 + - cor0.col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT 93 + - col2 AS col1 FROM tab2 AS cor0
----
55
66
67
query I rowsort
SELECT + ( - col1 ) * + col0 - cor0.col0 * 91 AS col1 FROM tab2 AS cor0
----
-11700
-8532
-854
query I rowsort
SELECT + - cor0.col0 + - col0 * cor0.col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ( + tab0.col2 ) * - 21 * col2 FROM tab0
----
-141204
-21
-22869
query I rowsort
SELECT - ( + col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-7175
SELECT - 96 DIV + 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-7175
SELECT - 96 / + 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + col0 col2 FROM tab2
----
170
171
99
query I rowsort
SELECT ALL col1 + - 98 FROM tab0 AS cor0
----
-1
-12
-7
query I rowsort
SELECT ALL - col0 * + col2 + cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
-156
-3520
-7520
query I rowsort
SELECT col1 * ( - 17 * + col0 ) FROM tab2 AS cor0
----
-22831
-3689
-78234
onlyif mysql # use DIV operator for integer division
query I rowsort label-7180
SELECT + + cor0.col1 DIV - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7180
SELECT + + cor0.col1 / - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - + col0 * 0 * col2 + cor0.col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + 17 + - 85 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT ALL - cor0.col0 + + ( col2 ) * + cor0.col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL - - col1 + 0 * col0 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL col1 * - ( + col2 + col2 ) AS col2 FROM tab2 cor0
----
-1292
-1674
-3068
query I rowsort
SELECT DISTINCT + + col2 * - 85 + + col1 FROM tab1 AS cor0
----
-4564
-4835
-8147
query I rowsort
SELECT - col0 * - 69 AS col0 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT ALL - col1 * 68 + + col2 - col1 FROM tab1 AS cor0
----
-1740
-633
-801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + 83 * 69 col1 FROM tab2 AS cor0
----
5753
5754
5765
query I rowsort
SELECT DISTINCT + col2 + ( - cor0.col0 ) * col1 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL col0 + - 44 * - col1 FROM tab1 cor0
----
1147
504
652
onlyif mysql # use DIV operator for integer division
query I rowsort label-7192
SELECT ALL + col0 DIV ( col0 ) FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL + col0 / ( col0 ) FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - col1 * - col2 * + col1 FROM tab2 AS cor0
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * ( - cor0.col1 ) col2 FROM tab0 AS cor0
----
2838
7462
97
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7196
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col2 col1 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col2 col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL - ( + 44 ) AS col0 FROM tab2 AS cor0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT - - ( + col0 ) + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col1 * + col1 + - col1 FROM tab2
----
272
3422
930
query I rowsort
SELECT DISTINCT col2 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + - 99 * + col2 + ( + col0 * col0 ) FROM tab1 AS cor0
----
-1547
-3104
-5337
query I rowsort
SELECT ALL - ( + col0 ) + ( col0 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * - col2 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-7204
SELECT DISTINCT col2 DIV + ( + tab0.col2 * col1 ) - col0 * col0 * col0 FROM tab0
----
-13824
-42875
-704969
skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT col2 / + ( + tab0.col2 * col1 ) - col0 * col0 * col0 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT col2 * 95 * tab1.col0 FROM tab1
----
15390
346560
729600
query I rowsort
SELECT - 49 + col1 * col0 AS col2 FROM tab1 AS cor0
----
29
591
991
query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT 94 * - col2 * + ( 44 ) + col1 FROM tab0
----
-136402
-339061
-4039
query I rowsort
SELECT + col0 * - col1 - tab1.col0 * tab1.col1 FROM tab1
----
-1280
-156
-2080
query I rowsort
SELECT col2 * col0 * 95 AS col2 FROM tab2
----
17955
192660
285190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7211
SELECT + tab0.col2 - + col0 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7211
SELECT + tab0.col2 - + col0 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + + 41 FROM tab1 AS cor0
----
137
95
98
query I rowsort
SELECT DISTINCT - - col0 + 79 AS col0 FROM tab2 AS cor0
----
157
158
86
query I rowsort
SELECT - col2 + col2 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
26103
34
598354
query I rowsort
SELECT 62 + - col0 * tab1.col1 AS col2 FROM tab1
----
-16
-578
-978
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7216
SELECT ALL col1 + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL col1 + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * col0 + - 33 col0 FROM tab2
----
240
3009
3048
query I rowsort
SELECT DISTINCT 25 * - col0 + col2 AS col1 FROM tab0
----
-2143
-567
-874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + tab0.col2 * - col1 col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT ALL col1 + col2 * col2 AS col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT - col0 + + col0 * + 6 AS col2 FROM tab1
----
15
320
400
query I rowsort
SELECT col0 - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - - col0 * - col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 64 * + col1 + 70 FROM tab2 AS cor0
----
1158
2054
3846
query I rowsort
SELECT ALL - - 43 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT + - 76 * + col0 * + 64 AS col2 FROM tab0 AS cor0
----
-116736
-170240
-432896
query I rowsort
SELECT cor0.col0 - + col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + + col0 col0 FROM tab2 AS cor0
----
-40
31
32
query I rowsort
SELECT + col1 + col1 * + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-7230
SELECT - col0 DIV 88 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7230
SELECT - col0 / 88 AS col1 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT + col1 + 0 DIV + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7231
SELECT + col1 + 0 / + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 75 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT ALL - col0 * + 9 + - col0 FROM tab1 AS cor0
----
-30
-640
-800
query I rowsort
SELECT ALL + + col0 + 46 AS col0 FROM tab2 AS cor0
----
124
125
53
query I rowsort
SELECT + ( - 13 ) FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT + cor0.col1 * 12 AS col0 FROM tab2 AS cor0
----
204
372
708
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
-26
-27
-38
query I rowsort
SELECT + ( + 66 ) AS col1 FROM tab2 cor0
----
66
66
66
query I rowsort
SELECT DISTINCT + cor0.col1 + - 84 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
-58
-71
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * 18 col0 FROM tab2 AS cor0
----
-468
-486
-684
query I rowsort
SELECT ALL tab1.col0 - tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 318a6997409c5decbbc3333c9d493ad3
query I rowsort
SELECT ALL tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL ( - col1 + col0 ) * - col2 * 76 FROM tab0
----
12464
155496
4712
query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT 99 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + + 18 * - col0 + - ( ( + col0 ) ) - col2 FROM tab0 AS cor0
----
-1773
-489
-666
query I rowsort
SELECT ALL + + 36 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT + - cor0.col2 * col1 + + col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - - col2 * - col0 - col1 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
635264
746273
912638
query I rowsort
SELECT DISTINCT col0 + col0 * - ( 88 ) FROM tab1 AS cor0
----
-261
-5568
-6960
query I rowsort
SELECT col1 - col0 * - col0 AS col1 FROM tab1
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT 29 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT DISTINCT - col0 * 8 FROM tab0
----
-192
-280
-712
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT - - 59 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT - 45 FROM tab0, tab1, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 1f0df66b2151954f18c5f227a321bf0c
query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
14
query I rowsort
SELECT ALL + tab1.col0 + 42 FROM tab1
----
106
122
45
query I rowsort
SELECT - col0 * col0 * col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ( col1 ) * + col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col0 + 74 AS col0 FROM tab0 AS cor0
----
109
163
98
query I rowsort
SELECT ALL - + col1 + - col0 + - col1 AS col0 FROM tab0 cor0
----
-196
-229
-271
query I rowsort
SELECT DISTINCT 2 - - 76 * col0 AS col1 FROM tab0 AS cor0
----
1826
2662
6766
onlyif mysql # use DIV operator for integer division
query I rowsort label-7266
SELECT cor0.col1 + - col1 DIV + col2 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-7266
SELECT cor0.col1 + - col1 / + col2 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT DISTINCT + - 88 * - cor0.col2 FROM tab1 AS cor0
----
4752
5016
8448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7268
SELECT ALL + 83 * col0 + - col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL + 83 * col0 + - col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - 55 ) + - col2 FROM tab0 cor0
----
-137
-56
-88
query I rowsort
SELECT - ( col0 ) * + col2 + - 17 FROM tab1 AS cor0
----
-179
-3665
-7697
onlyif mysql # use DIV operator for integer division
query I rowsort label-7271
SELECT - ( + cor0.col0 ) DIV + col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7271
SELECT - ( + cor0.col0 ) / + col0 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7272
SELECT DISTINCT + + col2 * - col0 + + col2 DIV + col2 col2 FROM tab0 AS cor0
----
-34
-7297
-791
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT + + col2 * - col0 + + col2 / + col2 col2 FROM tab0 AS cor0
----
-34
-7297
-791
query I rowsort
SELECT - col2 * 41 AS col0 FROM tab1 cor0
----
-2214
-2337
-3936
query I rowsort
SELECT ALL col0 * - ( 50 ) + col2 AS col0 FROM tab0 AS cor0
----
-1167
-1749
-4368
query I rowsort
SELECT ALL - col0 + + 91 FROM tab2 AS cor0
----
12
13
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-7276
SELECT DISTINCT + col2 * - col0 DIV ( col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + col2 * - col0 / ( col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 - + 36 col0 FROM tab1 AS cor0
----
-8
11
47
query I rowsort
SELECT ALL + + col0 * 29 + + 52 FROM tab2 AS cor0
----
2314
2343
255
query I rowsort
SELECT ALL - cor0.col1 + 93 AS col1 FROM tab0 AS cor0
----
-4
2
7
query I rowsort
SELECT + 56 * cor0.col2 FROM tab2 AS cor0
----
1456
1512
2128
query I rowsort
SELECT DISTINCT + col1 + + col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - + 77 + - col1 * col1 FROM tab2 cor0
----
-1038
-3558
-366
query I rowsort
SELECT DISTINCT col0 * + cor0.col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + + col2 * - col1 + col1 * col1 FROM tab2 cor0
----
-357
124
1947
query I rowsort
SELECT - col1 + 57 FROM tab0 cor0
----
-29
-34
-40
query I rowsort
SELECT 68 * cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
207
4416
5520
onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT ALL col1 + col0 DIV + 1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL col1 + col0 / + 1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT DISTINCT + col0 + + col2 + - col0 DIV 94 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT + col0 + + col2 + - col0 / 94 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col1 * - col0 + 90 FROM tab0 AS cor0
----
2154
3485
8189
query I rowsort
SELECT DISTINCT + 20 - col2 * col0 * col1 AS col1 FROM tab1 AS cor0
----
-36460
-4192
-99820
onlyif mysql # use DIV operator for integer division
query I rowsort label-7291
SELECT - col2 DIV col1 + 6 FROM tab2 AS cor0
----
4
6
6
skipif mysql # not compatible
query I rowsort label-7291
SELECT - col2 / col1 + 6 FROM tab2 AS cor0
----
4
6
6
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT col2 + col2 * - 85 AS col2 FROM tab2 AS cor0
----
-2184
-2268
-3192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * - cor0.col1 col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL col2 * - cor0.col1 + + cor0.col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-27
-2790
-7284
query I rowsort
SELECT DISTINCT - col2 * + col1 - + col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT + 11 * col1 AS col1 FROM tab2 cor0
----
187
341
649
query I rowsort
SELECT - - 89 AS col2 FROM tab0 cor0
----
89
89
89
query I rowsort
SELECT ALL + 14 + col2 * col2 FROM tab0 AS cor0
----
1103
15
6738
query I rowsort
SELECT ALL - 12 + - col2 FROM tab0 AS cor0
----
-13
-45
-94
query I rowsort
SELECT DISTINCT + col2 * + tab2.col1 * - tab2.col1 + col1 * col2 AS col2 FROM tab2
----
-10336
-25110
-88972
query I rowsort
SELECT ( col0 ) + col0 * + col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT + 84 - - col2 AS col0 FROM tab1
----
138
141
180
query I rowsort
SELECT + col2 * - tab1.col1 * tab1.col1 AS col0 FROM tab1
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * + col1 col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT ( col0 ) + + tab0.col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab1, tab1 AS cor0
----
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7309
SELECT - cor0.col0 + + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-7309
SELECT - cor0.col0 + + col2 / col1 AS col0 FROM tab1 AS cor0
----
-1
-59
-73
query I rowsort
SELECT + col1 * ( 41 ) + - col2 FROM tab2 AS cor0
----
1244
2393
659
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7311
SELECT DISTINCT - col1 + CAST( 13 AS SIGNED ) FROM tab1 AS cor0
----
-13
0
3
skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT - col1 + CAST ( 13 AS INTEGER ) FROM tab1 AS cor0
----
-13
0
3
query I rowsort
SELECT ALL - col1 + 37 AS col1 FROM tab1 AS cor0
----
11
24
27
query I rowsort
SELECT + col2 * col2 + 57 * - col1 FROM tab0 AS cor0
----
-3813
-5528
1537
query I rowsort
SELECT ALL + col0 * - 30 AS col0 FROM tab0 AS cor0
----
-1050
-2670
-720
query I rowsort
SELECT + cor0.col0 + col0 * col0 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT ALL - col0 + - col0 * 65 AS col2 FROM tab1 AS cor0
----
-198
-4224
-5280
query I rowsort
SELECT DISTINCT 25 * tab2.col0 * + col0 + + tab2.col2 + - col0 FROM tab2
----
1245
152048
155984
onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT - col2 * col1 DIV col1 AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7318
SELECT - col2 * col1 / col1 AS col2 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 27 col0 FROM tab1 AS cor0
----
270
351
702
query I rowsort
SELECT ALL 80 * col1 AS col1 FROM tab2 AS cor0
----
1360
2480
4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * ( - col2 ) col1 FROM tab0 AS cor0
----
-1558
-19
-627
query I rowsort
SELECT ALL + cor0.col0 * col0 * col0 FROM tab2 cor0
----
343
474552
493039
query I rowsort
SELECT - - ( col2 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - ( - cor0.col0 ) AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - 87 + - col1 FROM tab2 AS cor0
----
-104
-118
-146
query I rowsort
SELECT DISTINCT cor0.col1 * + 86 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT - cor0.col2 * col0 * - 20 + col2 - + col1 AS col0 FROM tab1 AS cor0
----
153683
3268
73007
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to e7ea8a30caeb35409d15d2ce0abbd5a6
query I rowsort
SELECT + col2 * 17 FROM tab0 AS cor0
----
1394
17
561
query I rowsort
SELECT ALL - 93 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT DISTINCT + col1 + col2 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
17635
19714
54889
query I rowsort
SELECT + + col0 - 26 FROM tab2 AS cor0
----
-19
52
53
query I rowsort
SELECT + 60 * + 86 AS col1 FROM tab1 AS cor0
----
5160
5160
5160
query I rowsort
SELECT col1 * 31 FROM tab0 cor0
----
2666
2821
3007
query I rowsort
SELECT cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7336
SELECT 65 + + col1 DIV cor0.col0 col0 FROM tab0 AS cor0
----
66
67
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7336
SELECT 65 + + col1 / cor0.col0 col0 FROM tab0 AS cor0
----
66
67
68
query I rowsort
SELECT - col2 * + cor0.col0 + - 9 * - 99 FROM tab2 AS cor0
----
-1137
-2111
702
query I rowsort
SELECT DISTINCT - + 96 * - cor0.col1 + + cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
1060
1417
3172
query I rowsort
SELECT col2 + - 70 * - col1 FROM tab0 AS cor0
----
6053
6452
6791
query I rowsort
SELECT ALL + tab2.col2 * - tab2.col0 AS col1 FROM tab2
----
-189
-2028
-3002
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
1
query I rowsort
SELECT - - cor0.col0 * ( 64 ) FROM tab1 cor0
----
192
4096
5120
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT col0 * - col0 * 67 FROM tab0
----
-38592
-530707
-82075
query I rowsort
SELECT DISTINCT + col1 + 40 FROM tab2 AS cor0
----
57
71
99
query I rowsort
SELECT DISTINCT cor0.col2 - 32 FROM tab0 AS cor0
----
-31
1
50
query I rowsort
SELECT - - cor0.col2 * 0 + - 41 AS col0 FROM tab1 cor0
----
-41
-41
-41
query I rowsort
SELECT - + col1 * 76 FROM tab0 AS cor0
----
-6536
-6916
-7372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7350
SELECT ALL CAST( 8 AS SIGNED ) * - col1 * - col1 + - 6 * col1 * col1 FROM tab2 cor0
----
1922
578
6962
skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL CAST ( 8 AS INTEGER ) * - col1 * - col1 + - 6 * col1 * col1 FROM tab2 cor0
----
1922
578
6962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7351
SELECT CAST( NULL AS DECIMAL ) + + cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7351
SELECT CAST ( NULL AS REAL ) + + cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - cor0.col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - col1 col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7354
SELECT - 61 DIV + col1 - ( 35 ) FROM tab0 AS cor0
----
-35
-35
-35
skipif mysql # not compatible
query I rowsort label-7354
SELECT - 61 / + col1 - ( 35 ) FROM tab0 AS cor0
----
-35
-35
-35
query I rowsort
SELECT DISTINCT - ( - 32 ) AS col1 FROM tab2
----
32
query I rowsort
SELECT ALL 70 * - 0 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7357
SELECT ALL CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + - col1 * 6 FROM tab0
----
-540
-617
-635
query I rowsort
SELECT + ( + col0 ) + 19 AS col2 FROM tab1 AS cor0
----
22
83
99
query I rowsort
SELECT - cor0.col0 * col1 + + ( + 63 ) * col2 AS col1 FROM tab0 AS cor0
----
-2933
-3332
15
query I rowsort
SELECT 67 * col2 FROM tab0
----
2211
5494
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 + 29 * col1 col1 FROM tab1
----
379
466
843
query I rowsort
SELECT + col2 * col1 + tab0.col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT tab2.col1 + + 16 FROM tab2
----
33
47
75
query I rowsort
SELECT ALL 48 + col1 * - col2 FROM tab2
----
-1486
-598
-789
query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - cor0.col2 + + col0 * col0 FROM tab0 cor0
----
1224
543
7839
query I rowsort
SELECT ALL cor0.col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + col0 * - col2 + 22 FROM tab2 cor0
----
-167
-2006
-2980
query I rowsort
SELECT + - 32 * - col0 AS col1 FROM tab0 AS cor0
----
1120
2848
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7371
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col2 / col1 + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT CAST ( NULL AS REAL ) * col2 / col1 + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7372
SELECT DISTINCT CAST( - col1 AS SIGNED ) * col0 * + ( col1 ) + col1 + 82 FROM tab1
----
-13425
-1920
-6308
skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * col0 * + ( col1 ) + col1 + 82 FROM tab1
----
-13425
-1920
-6308
query I rowsort
SELECT DISTINCT + - 34 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
1122
2788
34
query I rowsort
SELECT DISTINCT - col0 * col2 + 7 AS col2 FROM tab2 AS cor0
----
-182
-2021
-2995
query I rowsort
SELECT + - 51 + + cor0.col0 FROM tab1 cor0
----
-48
13
29
query I rowsort
SELECT col2 + - 0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT col0 * - ( col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - col1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + col0 * 97 + col0 - + col2 FROM tab1 AS cor0
----
240
6215
7744
onlyif mysql # use DIV operator for integer division
query I rowsort label-7380
SELECT + cor0.col1 + + col2 DIV - col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-7380
SELECT + cor0.col1 + + col2 / - col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT ALL - col0 + + ( 5 ) FROM tab2 AS cor0
----
-2
-73
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT DISTINCT col1 + ( 20 ) DIV cor0.col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT col1 + ( 20 ) / cor0.col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7383
SELECT - col0 DIV + cor0.col1 - - 90 FROM tab1 AS cor0
----
84
84
90
skipif mysql # not compatible
query I rowsort label-7383
SELECT - col0 / + cor0.col1 - - 90 FROM tab1 AS cor0
----
84
84
90
query I rowsort
SELECT ALL + col0 * - cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT - cor0.col0 - 11 FROM tab1 AS cor0
----
-14
-75
-91
query I rowsort
SELECT ALL + - col0 * - 49 FROM tab1 AS cor0
----
147
3136
3920
query I rowsort
SELECT col0 - + ( + col1 ) * - col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL col0 + - 41 FROM tab1 cor0
----
-38
23
39
query I rowsort
SELECT DISTINCT + col2 * - col0 + + col1 - col0 FROM tab2 AS cor0
----
-165
-2047
-3064
query I rowsort
SELECT + + col2 * - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL + 61 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT ALL + 17 FROM tab2 cor0
----
17
17
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT + col0 DIV 57 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7393
SELECT + col0 / 57 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT ALL 98 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # use DIV operator for integer division
query I rowsort label-7395
SELECT tab2.col1 * col2 + ( col0 ) DIV tab2.col1 + + col0 col2 FROM tab2
----
1613
729
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7395
SELECT tab2.col1 * col2 + ( col0 ) / tab2.col1 + + col0 col2 FROM tab2
----
1613
729
844
query I rowsort
SELECT - + col2 * - col0 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + 12 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2826
-7450
-85
query I rowsort
SELECT ALL + + col0 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7399
SELECT - CAST( NULL AS SIGNED ) * 38 - - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7399
SELECT - CAST ( NULL AS INTEGER ) * 38 - - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * 44 + + cor0.col2 FROM tab1 AS cor0
----
2430
2565
4320
query I rowsort
SELECT - + 11 * + col2 + + col0 FROM tab0 AS cor0
----
-339
-813
24
query I rowsort
SELECT ALL cor0.col2 * col0 * + col2 AS col2 FROM tab0 cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-7403
SELECT + 16 DIV - 62 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7403
SELECT + 16 / - 62 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL 19 * col0 * col2 + - cor0.col2 * - 5 * - col1 FROM tab2 cor0
----
-594
30862
53808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 25 col1 FROM tab1 AS cor0
----
-250
-325
-650
query I rowsort
SELECT - ( col2 ) - - cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + - 17 * - col1 + + ( - ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
298
381
448
query I rowsort
SELECT DISTINCT - 66 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-66
query I rowsort
SELECT ALL col2 * - 57 + 56 * col1 AS col0 FROM tab1
----
-1622
-2689
-4744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + col1 col2 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT - col2 * + col1 + + 12 + - col2 FROM tab1
----
-1332
-1446
-615
onlyif mysql # use DIV operator for integer division
query I rowsort label-7412
SELECT ALL col0 - + 51 DIV + 25 FROM tab1
----
1
62
78
skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL col0 - + 51 / + 25 FROM tab1
----
1
62
78
query I rowsort
SELECT ALL + col2 - - col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - 11 + 2 AS col1 FROM tab1
----
-9
query I rowsort
SELECT - tab1.col1 * + tab1.col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col0 + + 40 FROM tab2 cor0
----
-38
-39
33
query I rowsort
SELECT DISTINCT + col2 * + col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT - - col0 * 94 FROM tab1 cor0
----
282
6016
7520
query I rowsort
SELECT ALL + - col0 + col0 * + col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL cor0.col0 + ( - cor0.col1 ) + + ( + col1 ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col0 + + 91 FROM tab0 AS cor0
----
115
126
180
query I rowsort
SELECT - col1 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT tab1.col1 + col2 * col0 + + col1 FROM tab1
----
214
3668
7706
onlyif mysql # use DIV operator for integer division
query I rowsort label-7424
SELECT - 12 DIV 53 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7424
SELECT - 12 / 53 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - - col2 * - 90 FROM tab1 cor0
----
-4860
-5130
-8640
query I rowsort
SELECT ALL cor0.col1 + col0 * col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL + cor0.col2 + 51 FROM tab2, tab1 AS cor0
----
9 values hashing to de276199dd846c831d442b140b3ff6f8
query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1
query I rowsort
SELECT 14 * - col1 + col2 FROM tab0
----
-1171
-1192
-1357
query I rowsort
SELECT ALL - + col2 * + col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - + cor0.col0 * + 28 - col2 FROM tab0 AS cor0
----
-2574
-705
-981
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( + col2 ) + + col0 col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT - col0 - ( col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT col1 * - ( 95 ) * col2 AS col1 FROM tab0 AS cor0
----
-269610
-708890
-9215
query I rowsort
SELECT ALL + + col2 + 52 FROM tab1 cor0
----
106
109
148
query I rowsort
SELECT DISTINCT col0 * + 89 AS col0 FROM tab0 AS cor0
----
2136
3115
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7437
SELECT col0 + CAST( - 67 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
-1584
-2310
-5874
skipif mysql # not compatible
query I rowsort label-7437
SELECT col0 + CAST ( - 67 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
-1584
-2310
-5874
query I rowsort
SELECT + - col1 * col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-7439
SELECT - + col1 DIV + col1 + + col1 col0 FROM tab0 AS cor0
----
85
90
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7439
SELECT - + col1 / + col1 + + col1 col0 FROM tab0 AS cor0
----
85
90
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7440
SELECT CAST( + 72 AS SIGNED ) + col0 FROM tab2
----
150
151
79
skipif mysql # not compatible
query I rowsort label-7440
SELECT CAST ( + 72 AS INTEGER ) + col0 FROM tab2
----
150
151
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 48 * col2 col0 FROM tab1 AS cor0
----
2592
2736
4608
onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT + col1 + + col0 DIV - col1 FROM tab1 cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-7442
SELECT + col1 + + col0 / - col1 FROM tab1 cor0
----
26
4
7
query I rowsort
SELECT - col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT ( + 20 ) FROM tab2, tab2 AS cor0
----
20
query I rowsort
SELECT ALL col2 * ( 71 ) FROM tab2
----
1846
1917
2698
query I rowsort
SELECT ALL col2 * cor0.col2 - - col1 FROM tab2 cor0
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7447
SELECT ALL - + col2 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL - + col2 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7448
SELECT col2 DIV - 22 FROM tab0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-7448
SELECT col2 / - 22 FROM tab0
----
-1
-3
0
query I rowsort
SELECT DISTINCT - cor1.col2 + cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7450
SELECT - CAST( NULL AS SIGNED ) * 64 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7450
SELECT - CAST ( NULL AS INTEGER ) * 64 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT - 33 DIV col1 + col1 FROM tab2 cor0
----
16
30
59
skipif mysql # not compatible
query I rowsort label-7451
SELECT - 33 / col1 + col1 FROM tab2 cor0
----
16
30
59
query I rowsort
SELECT - col1 + col0 - - col0 * - col2 * col2 FROM tab1
----
-207882
-737213
-8771
onlyif mysql # use DIV operator for integer division
query I rowsort label-7453
SELECT ALL - col1 + col1 DIV - col0 + - col0 AS col2 FROM tab0
----
-113
-134
-181
skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - col1 + col1 / - col0 + - col0 AS col2 FROM tab0
----
-113
-134
-181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 - col0 col0 FROM tab2
----
-26
-3
47
query I rowsort
SELECT - col0 - col1 AS col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - cor0.col2 + col2 * col1 * + col2 FROM tab0 AS cor0
----
611802
93621
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT col1 * cor0.col0 + - col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 * - col1 * + col2 FROM tab2 AS cor0
----
119652
51034
5859
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 WHERE NULL = ( NULL )
----
query I rowsort
SELECT ALL col0 - col0 AS col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7462
SELECT col2 * col0 + - cor0.col1 * + cor0.col2 - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-648
2360
495
skipif mysql # not compatible
query I rowsort label-7462
SELECT col2 * col0 + - cor0.col1 * + cor0.col2 - col0 / - col1 AS col0 FROM tab2 AS cor0
----
-648
2360
495
query I rowsort
SELECT DISTINCT + col1 + col0 + + col0 AS col1 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT + - cor0.col0 * col1 + + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-1488
-178
-2170
onlyif mysql # use DIV operator for integer division
query I rowsort label-7465
SELECT col0 * + col1 DIV col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7465
SELECT col0 * + col1 / col1 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT col1 * col2 DIV tab1.col0 AS col0 FROM tab1
----
15
468
8
skipif mysql # not compatible
query I rowsort label-7466
SELECT col1 * col2 / tab1.col0 AS col0 FROM tab1
----
15
468
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7467
SELECT DISTINCT tab1.col2 * tab1.col1 DIV + col0 - col2 DIV col2 FROM tab1
----
14
467
7
skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT tab1.col2 * tab1.col1 / + col0 - col2 / col2 FROM tab1
----
14
467
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7468
SELECT col1 DIV col0 + col0 * col1 - col2 AS col1 FROM tab2
----
1305
194
4576
skipif mysql # not compatible
query I rowsort label-7468
SELECT col1 / col0 + col0 * col1 - col2 AS col1 FROM tab2
----
1305
194
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT col0 + + ( col2 ) * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - col0 * cor0.col2 * col1 + + col0 * col2 FROM tab2 AS cor0
----
-117624
-48032
-5670
query I rowsort
SELECT col2 + tab0.col2 * + 94 * col1 + + col0 FROM tab0
----
266829
701599
9154
query I rowsort
SELECT - 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT - - 69 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT DISTINCT + col2 * - col0 - 24 * - ( col2 ) FROM tab1
----
-2280
-5376
1134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7476
SELECT - col1 * + CAST( col2 + - col2 AS SIGNED ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7476
SELECT - col1 * + CAST ( col2 + - col2 AS INTEGER ) FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + ( + ( col0 ) ) AS col0 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT - col1 * - 82 + col1 FROM tab1
----
1079
2158
830
query I rowsort
SELECT DISTINCT + col2 + ( - col1 ) * - tab1.col1 AS col0 FROM tab1
----
157
265
730
query I rowsort
SELECT + tab2.col1 + - ( - ( tab2.col1 ) ) AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL - col2 + + cor0.col2 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7482
SELECT + CAST( + tab2.col0 AS SIGNED ) + col2 AS col0 FROM tab2
----
104
117
34
skipif mysql # not compatible
query I rowsort label-7482
SELECT + CAST ( + tab2.col0 AS INTEGER ) + col2 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT + ( + 52 ) + - col2 * - col1 FROM tab2
----
1586
698
889
query I rowsort
SELECT ALL + 49 * - 27 FROM tab1
----
-1323
-1323
-1323
query I rowsort
SELECT DISTINCT + col1 * 11 + col2 FROM tab0 AS cor0
----
1068
1083
979
query I rowsort
SELECT - 50 + + ( col2 ) AS col2 FROM tab0
----
-17
-49
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-7487
SELECT ALL col2 DIV + col0 - col1 AS col2 FROM tab1 cor0
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL col2 / + col0 - col1 AS col2 FROM tab1 cor0
----
-10
-12
-8
query I rowsort
SELECT - col1 * col1 + col2 + col2 AS col2 FROM tab1 AS cor0
----
-568
14
23
query I rowsort
SELECT + col2 * col0 * col1 - - 77 FROM tab1 AS cor0
----
36557
4289
99917
query I rowsort
SELECT DISTINCT - - 33 + col0 FROM tab2 AS cor0
----
111
112
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - + 60 + col0 * + col2 AS col2 FROM tab1 cor0
----
102
3588
7620
query I rowsort
SELECT - col1 + col1 + + 30 FROM tab2 AS cor0
----
30
30
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-7494
SELECT DISTINCT + col0 + col2 DIV - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT + col0 + col2 / - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
7
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 23 - col1 * ( col1 ) col0 FROM tab0 AS cor0
----
-7373
-8258
-9386
query I rowsort
SELECT - 10 + cor0.col1 FROM tab2 AS cor0
----
21
49
7
query I rowsort
SELECT 46 - - col1 FROM tab2 cor0
----
105
63
77
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + + col0 * + cor0.col2 * col1 FROM tab1 AS cor0
----
32832
4050
92160
onlyif mysql # use DIV operator for integer division
query I rowsort label-7499
SELECT ALL ( cor0.col0 ) + 46 DIV - 8 AS col1 FROM tab1 cor0
----
-2
59
75
skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL ( cor0.col0 ) + 46 / - 8 AS col1 FROM tab1 cor0
----
-2
59
75
query I rowsort
SELECT - 62 * cor0.col2 FROM tab2 AS cor0
----
-1612
-1674
-2356
query I rowsort
SELECT DISTINCT - - 46 + - col0 FROM tab2 AS cor0
----
-32
-33
39
query I rowsort
SELECT DISTINCT - 83 * ( - col2 + col2 ) AS col2 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * col2 col2 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT ALL + + col1 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - + col1 + - col1 * + col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT + - 80 * + col2 AS col1 FROM tab1 AS cor0
----
-4320
-4560
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col2 FROM tab0 AS cor0
----
-37
query I rowsort
SELECT DISTINCT - 53 * + col0 FROM tab0 AS cor0
----
-1272
-1855
-4717
onlyif mysql # use DIV operator for integer division
query I rowsort label-7509
SELECT - 48 DIV col0 AS col2 FROM tab1 AS cor0
----
-16
0
0
skipif mysql # not compatible
query I rowsort label-7509
SELECT - 48 / col0 AS col2 FROM tab1 AS cor0
----
-16
0
0
query I rowsort
SELECT DISTINCT ( + tab2.col2 + - 0 ) * - col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - - 33 AS col0 FROM tab1 AS cor0
----
33
query I rowsort
SELECT ALL - 57 + - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1097
-135
-697
query I rowsort
SELECT ( col2 ) * - 73 AS col0 FROM tab0 AS cor0
----
-2409
-5986
-73
query I rowsort
SELECT col0 + - 21 FROM tab1 AS cor0
----
-18
43
59
query I rowsort
SELECT + cor0.col1 + + 13 + - col0 FROM tab0 AS cor0
----
15
75
75
query I rowsort
SELECT - col0 + - col2 - 60 AS col2 FROM tab2 AS cor0
----
-164
-177
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-7517
SELECT + + col0 + - 71 DIV + ( col2 ) AS col1 FROM tab0 cor0
----
-36
22
89
skipif mysql # not compatible
query I rowsort label-7517
SELECT + + col0 + - 71 / + ( col2 ) AS col1 FROM tab0 cor0
----
-36
22
89
query I rowsort
SELECT DISTINCT + col2 + 14 * col1 FROM tab1 AS cor0
----
197
278
418
query I rowsort
SELECT + 76 + col0 * - col0 * col1 AS col0 FROM tab0
----
-118749
-49460
-720735
query I rowsort
SELECT + - col0 - 86 AS col1 FROM tab2 AS cor0
----
-164
-165
-93
query I rowsort
SELECT col2 * + ( col0 * - cor0.col2 ) + + col0 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
-25320
-591049
35
query I rowsort
SELECT ALL col0 + - tab1.col2 + tab1.col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + 93 * col0 * + col2 FROM tab2
----
17577
188604
279186
query I rowsort
SELECT DISTINCT + ( 80 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
144
160
83
query I rowsort
SELECT DISTINCT - col2 + col1 * + col1 * + 2 + cor0.col1 FROM tab1 AS cor0
----
1324
153
255
query I rowsort
SELECT ( 41 ) AS col2 FROM tab0 cor0
----
41
41
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-7527
SELECT ALL + 56 + 83 DIV col0 AS col2 FROM tab2 AS cor0
----
57
57
67
skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + 56 + 83 / col0 AS col2 FROM tab2 AS cor0
----
57
57
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + + col1 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - ( + 0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7530
SELECT + ( + col0 ) + + col0 DIV - ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-7530
SELECT + ( + col0 ) + + col0 / - ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7531
SELECT ALL + col1 + cor0.col1 DIV + col1 AS col2 FROM tab2 cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL + col1 + cor0.col1 / + col1 AS col2 FROM tab2 cor0
----
18
32
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7532
SELECT DISTINCT - - CAST( col1 AS SIGNED ) * col1 * - ( col0 ) FROM tab2 cor0
----
-22831
-271518
-6727
skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) * col1 * - ( col0 ) FROM tab2 cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT col1 + col1 + + col0 AS col1 FROM tab0 AS cor0
----
196
229
271
onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT DISTINCT + col1 DIV - ( - col1 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT + col1 / - ( - col1 ) FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT + col1 + col1 * - col2 AS col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + cor0.col2 * - 58 AS col2 FROM tab1 AS cor0
----
-3132
-3306
-5568
query I rowsort
SELECT 32 AS col2 FROM tab2 cor0
----
32
32
32
query I rowsort
SELECT + ( ( - col2 ) ) AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL - - cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT col2 * cor0.col2 AS col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT col2 + + 1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT - - col2 * 23 AS col1 FROM tab2 AS cor0
----
598
621
874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7543
SELECT CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7543
SELECT CAST ( NULL AS REAL ) + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 78 + col0 * - col0 FROM tab1 AS cor0
----
-4018
-6322
69
query I rowsort
SELECT - col1 * - 57 + + col1 * col0 + tab1.col1 * col0 FROM tab1
----
1638
1850
2821
onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT DISTINCT - col1 DIV 77 + tab1.col0 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - col1 / 77 + tab1.col0 AS col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - 9 col0 FROM tab0 AS cor0
----
-100
-106
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * - cor0.col0 col1 FROM tab2 AS cor0
----
595
6630
6715
query I rowsort
SELECT ( col0 ) + - col0 + - col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + 34 * ( col0 ) * col2 AS col2 FROM tab2
----
102068
6426
68952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 + + col0 ) * - ( + col2 ) col1 FROM tab1
----
15360
324
7296
query I rowsort
SELECT 41 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT + 29 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7554
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT + - 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-76
query I rowsort
SELECT tab1.col0 * ( - 66 ) FROM tab1
----
-198
-4224
-5280
query I rowsort
SELECT + col1 * - col1 - ( col1 ) FROM tab0 AS cor0
----
-7482
-8372
-9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7558
SELECT - col0 DIV col0 - - col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-7558
SELECT - col0 / col0 - - col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT col1 - - ( 55 + + col1 ) * 93 FROM tab0 AS cor0
----
13199
13669
14233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 - + col1 * + col0 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + 22 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + ( - col2 ) * + cor0.col0 col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT cor0.col1 - col2 * + ( - col1 ) FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT - ( + cor0.col1 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL + ( 44 ) + col1 FROM tab0 AS cor0
----
130
135
141
query I rowsort
SELECT DISTINCT - - 33 AS col0 FROM tab2 AS cor0
----
33
query I rowsort
SELECT - - col0 * 91 * ( col0 * col2 ) AS col0 FROM tab0 AS cor0
----
111475
1729728
59106502
query I rowsort
SELECT - col0 + ( tab1.col2 ) FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-7569
SELECT ALL - col1 DIV col2 + tab1.col1 * col2 AS col2 FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - col1 / col2 + tab1.col1 * col2 AS col2 FROM tab1
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7570
SELECT - CAST( NULL AS SIGNED ) * 11 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7570
SELECT - CAST ( NULL AS INTEGER ) * 11 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7571
SELECT - + col0 DIV + col0 + col1 AS col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-7571
SELECT - + col0 / + col0 + col1 AS col1 FROM tab0 AS cor0
----
85
90
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7572
SELECT - - CAST( NULL AS SIGNED ) + cor0.col2 * col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7572
SELECT - - CAST ( NULL AS INTEGER ) + cor0.col2 * col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 42 * - col2 AS col0 FROM tab2 AS cor0
----
1092
1134
1596
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7574
SELECT + col0 - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7574
SELECT + col0 - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7575
SELECT col2 * - col2 / CAST( NULL AS DECIMAL ) - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7575
SELECT col2 * - col2 / CAST ( NULL AS REAL ) - col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7576
SELECT DISTINCT - col1 * col0 DIV - ( col1 ) AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT - col1 * col0 / - ( col1 ) AS col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT - 12 * col0 * ( col2 ) + col0 + col2 DIV col0 FROM tab0 AS cor0
----
-385
-87487
-9479
skipif mysql # not compatible
query I rowsort label-7577
SELECT - 12 * col0 * ( col2 ) + col0 + col2 / col0 FROM tab0 AS cor0
----
-385
-87487
-9479
query I rowsort
SELECT - col1 * + 2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT - col2 * ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + ( + cor0.col2 ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - 26 + + tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-23
38
54
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-7583
SELECT + col1 DIV ( col1 ) FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7583
SELECT + col1 / ( col1 ) FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col0 + - col0 + + col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 18 + col0 * + ( col1 ) FROM tab2 AS cor0
----
1361
235
4620
query I rowsort
SELECT + col2 + cor0.col1 * 36 FROM tab2 AS cor0
----
1143
2150
650
query I rowsort
SELECT - ( + col1 ) * + ( - cor0.col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT DISTINCT + col0 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + + col1 * - cor0.col1 + + cor0.col1 + col2 FROM tab2 cor0
----
-234
-3396
-903
query I rowsort
SELECT ALL col2 + + col1 * - col0 * + col2 + + col0 AS col1 FROM tab1 AS cor0
----
-36359
-4155
-99664
query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( tab2.col1 + + col0 * tab2.col0 + tab2.col0 * col2 )
----
query I rowsort
SELECT - - col2 * col2 * 13 AS col1 FROM tab1 AS cor0
----
119808
37908
42237
query I rowsort
SELECT ALL col2 * col0 - 8 AS col2 FROM tab0
----
27
7290
784
query I rowsort
SELECT - col1 * + col1 + - col0 + 34 AS col1 FROM tab1
----
-130
-215
-645
query I rowsort
SELECT ( col2 ) + + 9 * col0 FROM tab2
----
728
749
90
query I rowsort
SELECT DISTINCT + 57 * col2 + - col1 + col2 FROM tab2 AS cor0
----
1449
1535
2187
query I rowsort
SELECT 48 + - col2 AS col2 FROM tab1
----
-48
-6
-9
query I rowsort
SELECT DISTINCT - ( col0 ) + tab1.col1 FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7599
SELECT col2 + col2 + + col1 * col2 DIV + col0 FROM tab0
----
184
247
4
skipif mysql # not compatible
query I rowsort label-7599
SELECT col2 + col2 + + col1 * col2 / + col0 FROM tab0
----
184
247
4
query I rowsort
SELECT DISTINCT - col1 + col1 * col0 AS col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT ALL - col0 * col1 * tab0.col0 + + col2 FROM tab0
----
-118824
-49503
-720729
query I rowsort
SELECT - col1 FROM tab0 WHERE + col0 IN ( + tab0.col1 )
----
query I rowsort
SELECT DISTINCT - col1 * col2 + + col0 * col2 AS col2 FROM tab0
----
-164
-2046
-62
query I rowsort
SELECT tab0.col0 + col2 - col2 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - col1 * col0 + - col0 >= ( - col1 )
----
26
27
38
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL NOT IN ( col2 + + col2 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7607
SELECT ALL + col0 + col0 * tab0.col0 DIV tab0.col1 AS col1 FROM tab0
----
176
30
47
skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + col0 + col0 * tab0.col0 / tab0.col1 AS col1 FROM tab0
----
176
30
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT DISTINCT col2 DIV + col0 + - col2 AS col1 FROM tab1
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT col2 / + col0 + - col2 AS col1 FROM tab1
----
-36
-57
-95
query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) = - col2 * col1
----
query I rowsort
SELECT tab1.col0 * tab1.col1 + col1 + - col0 AS col2 FROM tab1
----
101
586
973
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) = col0
----
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT col2 NOT IN ( + tab2.col1 * + col2 * col0 + - col2 )
----
query I rowsort
SELECT + tab1.col1 + col2 AS col2 FROM tab1
----
109
67
80
query III rowsort
SELECT * FROM tab1 WHERE NULL > + col2 + - col1
----
query I rowsort
SELECT col0 + - col0 * col0 AS col2 FROM tab1
----
-4032
-6
-6320
query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN ( col1 ) AND col2
----
query I rowsort
SELECT - col1 + + tab2.col2 * - col2 AS col0 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab0 WHERE col0 < NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7619
SELECT CAST( NULL AS SIGNED ) * - 32 AS col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7619
SELECT CAST ( NULL AS INTEGER ) * - 32 AS col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL 3 * - tab0.col0 AS col0 FROM tab0
----
-105
-267
-72
query I rowsort
SELECT ALL 62 * - col1 FROM tab1
----
-1612
-620
-806
query I rowsort
SELECT - ( ( col0 ) * + 44 ) AS col0 FROM tab2
----
-308
-3432
-3476
onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT ALL - + col2 DIV cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL - + col2 / cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7624
SELECT DISTINCT + ( - col2 ) DIV col1 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT + ( - col2 ) / col1 FROM tab2
----
-2
0
query I rowsort
SELECT ALL 1 * - 16 AS col1 FROM tab1
----
-16
-16
-16
query I rowsort
SELECT ALL + + col2 * col2 * cor0.col0 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT ALL - + col0 * col1 DIV + ( 82 ) FROM tab2 cor0
----
-16
-2
-56
skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - + col0 * col1 / + ( 82 ) FROM tab2 cor0
----
-16
-2
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7628
SELECT - col1 + - cor0.col1 DIV col1 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-7628
SELECT - col1 + - cor0.col1 / col1 FROM tab0 AS cor0
----
-87
-92
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 56 * - col1 col0 FROM tab1 AS cor0
----
1456
560
728
onlyif mysql # use DIV operator for integer division
query I rowsort label-7630
SELECT ALL - col2 + col2 DIV + ( - col2 ) FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - col2 + col2 / + ( - col2 ) FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT ALL + col2 + + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - col2 + 2 AS col2 FROM tab2 cor0
----
-24
-25
-36
query I rowsort
SELECT DISTINCT - col0 * - 21 + col0 AS col1 FROM tab0 AS cor0
----
1958
528
770
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7634
SELECT - col1 + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-7634
SELECT - col1 + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - col1 + 46 AS col1 FROM tab0 AS cor0
----
-40
-45
-51
query I rowsort
SELECT + col1 * 97 * + col2 - col1 AS col1 FROM tab2 AS cor0
----
148739
62645
81158
query I rowsort
SELECT col2 + 28 FROM tab0 cor0
----
110
29
61
skipif mysql # not compatible
query I rowsort
SELECT + col0 + - CAST ( col2 AS REAL ) * - cor0.col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col1 + col1 * col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT col0 * - 79 + - col0 * + col1 FROM tab0 AS cor0
----
-15130
-3960
-6160
query I rowsort
SELECT col0 - ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col1 * + ( col1 ) + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL + 14 * + 82 * - col1 FROM tab1 AS cor0
----
-11480
-14924
-29848
query I rowsort
SELECT ( - cor0.col2 ) + - 45 FROM tab0, tab2 AS cor0
----
9 values hashing to 591f00f1c2b9ae5c968f83e2169edef4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7645
SELECT DISTINCT + col1 DIV - ( + col0 ) FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT + col1 / - ( + col0 ) FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT col0 + - col1 + col0 AS col1 FROM tab0 cor0
----
-27
-38
87
query I rowsort
SELECT - 75 * col2 AS col0 FROM tab2
----
-1950
-2025
-2850
query I rowsort
SELECT DISTINCT - 82 * - col2 FROM tab2
----
2132
2214
3116
query I rowsort
SELECT - 63 + 56 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
query I rowsort
SELECT + col0 * + col0 * + col0 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT ALL + col0 * + col1 - ( + 85 ) AS col1 FROM tab2
----
1258
132
4517
query I rowsort
SELECT - + cor0.col2 * + col0 - cor0.col2 * cor0.col0 FROM tab2 cor0
----
-378
-4056
-6004
query I rowsort
SELECT + cor0.col2 + col2 + col0 * - col2 FROM tab1 AS cor0
----
-3534
-54
-7488
query I rowsort
SELECT + col0 + ( 86 ) AS col2 FROM tab1 AS cor0
----
150
166
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - ( col2 ) col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT col2 * col2 * - ( col0 ) FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT - col0 * + tab0.col2 * col1 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7658
SELECT DISTINCT 67 DIV col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT 67 / col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT + ( + col0 ) * - col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT 89 * + col1 * 35 AS col1 FROM tab1
----
31150
40495
80990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7661
SELECT - col2 * CAST( - col0 AS SIGNED ) * + cor0.col0 + 85 FROM tab2 cor0
----
1408
158269
237243
skipif mysql # not compatible
query I rowsort label-7661
SELECT - col2 * CAST ( - col0 AS INTEGER ) * + cor0.col0 + 85 FROM tab2 cor0
----
1408
158269
237243
query I rowsort
SELECT ALL + col0 * ( - 98 ) FROM tab1 AS cor0
----
-294
-6272
-7840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7663
SELECT + + CAST( col1 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-7663
SELECT + + CAST ( col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL col2 * + 16 AS col1 FROM tab1
----
1536
864
912
query I rowsort
SELECT col0 * col0 + cor0.col2 * - ( col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-603963
-93078
1128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7666
SELECT - CAST( 75 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
-18
-21
21
skipif mysql # not compatible
query I rowsort label-7666
SELECT - CAST ( 75 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
-18
-21
21
query I rowsort
SELECT DISTINCT col1 * - ( 91 ) FROM tab2
----
-1547
-2821
-5369
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7668
SELECT + - CAST( col2 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-7668
SELECT + - CAST ( col2 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 95 + - cor0.col0 FROM tab0 AS cor0
----
6
60
71
query I rowsort
SELECT col1 + 24 FROM tab1
----
34
37
50
query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT + ( col2 ) + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - ( - col1 + + col2 ) AS col1 FROM tab2
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7674
SELECT DISTINCT - 32 DIV + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT - 32 / + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT DISTINCT - col2 DIV + col1 + 4 AS col1 FROM tab2 AS cor0
----
2
4
skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT - col2 / + col1 + 4 AS col1 FROM tab2 AS cor0
----
2
4
query I rowsort
SELECT ALL col2 + col0 * - cor0.col1 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + 60 col2 FROM tab2 AS cor0
----
1021
349
3541
query I rowsort
SELECT + + col1 + - col1 * 1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 3 * col1 AS col1 FROM tab0 AS cor0
----
-258
-273
-291
onlyif mysql # use DIV operator for integer division
query I rowsort label-7680
SELECT + 44 DIV + col0 FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-7680
SELECT + 44 / + col0 FROM tab2 AS cor0
----
0
0
6
query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 col0 FROM tab0, tab2, tab1 AS cor0
----
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7683
SELECT ALL - - col0 * - col2 + - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - - col0 * - col2 + - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 - + col1 * - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7685
SELECT DISTINCT - CAST( col0 * col1 + - 40 AS SIGNED ) AS col2 FROM tab0
----
-2024
-3355
-8059
skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT - CAST ( col0 * col1 + - 40 AS INTEGER ) AS col2 FROM tab0
----
-2024
-3355
-8059
query I rowsort
SELECT - cor0.col1 * + 42 AS col0 FROM tab0 AS cor0
----
-3612
-3822
-4074
onlyif mysql # use DIV operator for integer division
query I rowsort label-7687
SELECT - 14 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7687
SELECT - 14 / col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 71 * - col2 AS col1 FROM tab0 AS cor0
----
-2343
-5822
-71
query I rowsort
SELECT ALL + + 55 + 65 + - col2 AS col1 FROM tab0 AS cor0
----
119
38
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( col1 ) col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT 19 * 17 FROM tab1, tab2 cor0
----
9 values hashing to 1df581ca88d55a9daf9a75059126a5bb
query I rowsort
SELECT - 14 * + col1 FROM tab1
----
-140
-182
-364
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7693
SELECT DISTINCT - CAST( - ( + col1 ) * - tab0.col1 AS SIGNED ) + - 0 FROM tab0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT - CAST ( - ( + col1 ) * - tab0.col1 AS INTEGER ) + - 0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + col2 * + tab0.col2 + - col1 * + col1 FROM tab0
----
-1557
-6307
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * + col1 * col0 - col0 col1 FROM tab0
----
-218762
-55752
-91700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col1 FROM tab2
----
-62
-62
-62
query I rowsort
SELECT DISTINCT + tab2.col2 * col0 + col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT col2 * ( - col0 ) + + col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT ALL - - col1 * - 53 FROM tab2 AS cor0
----
-1643
-3127
-901
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7700
SELECT - CAST( col0 AS SIGNED ) * + col1 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif mysql # not compatible
query I rowsort label-7700
SELECT - CAST ( col0 AS INTEGER ) * + col1 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7701
SELECT CAST( 99 AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
10
64
75
skipif mysql # not compatible
query I rowsort label-7701
SELECT CAST ( 99 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
10
64
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7702
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT cor0.col2 DIV - 63 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7703
SELECT cor0.col2 / - 63 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col0 * + col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL - + cor0.col1 * ( col2 ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - col0 * col0 + ( - col2 ) + - col0 FROM tab1 AS cor0
----
-4217
-6576
-66
query I rowsort
SELECT + col0 * col2 * col1 + - col1 + col1 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + col0 + + ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( - 79 ) col0 FROM tab1 AS cor0
----
-17
22
25
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-86
-91
-97
query I rowsort
SELECT ALL + + 44 * 29 + - col2 AS col1 FROM tab1 AS cor0
----
1180
1219
1222
query I rowsort
SELECT DISTINCT - + 1 - col2 AS col2 FROM tab2 AS cor0
----
-27
-28
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 3 col2 FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT ALL - col1 * - col1 + + col2 * + 2 * 0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - 48 - 81 FROM tab1 AS cor0
----
-129
query I rowsort
SELECT DISTINCT + - ( + col0 ) - - col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col2 * 22 AS col1 FROM tab2 AS cor0
----
-572
-594
-836
query I rowsort
SELECT ALL cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT col1 + col1 + col1 AS col2 FROM tab1 AS cor0
----
30
39
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7720
SELECT - cor0.col2 DIV - col0 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7720
SELECT - cor0.col2 / - col0 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT ALL col0 * cor0.col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 - tab2.col1 col1 FROM tab2
----
-13
-41
1
query I rowsort
SELECT DISTINCT + - col0 * + col2 * + 9 FROM tab1 AS cor0
----
-1458
-32832
-69120
query I rowsort
SELECT ALL + col0 * col2 * col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - 22 + col1 AS col0 FROM tab2 AS cor0
----
-5
37
9
query I rowsort
SELECT + + col2 * col0 * + 32 + cor0.col0 FROM tab0 AS cor0
----
1155
233625
25368
query I rowsort
SELECT ALL + 85 + - col1 AS col0 FROM tab1
----
59
72
75
query I rowsort
SELECT DISTINCT + - col1 * col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col2 + 30 * col1 AS col0 FROM tab1 AS cor0
----
357
486
834
onlyif mysql # use DIV operator for integer division
query I rowsort label-7730
SELECT + cor0.col1 + cor0.col0 DIV + col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-7730
SELECT + cor0.col1 + cor0.col0 / + col1 FROM tab1 AS cor0
----
16
19
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * - tab1.col0 + 1 * + col0 col2 FROM tab1
----
-3975
-6224
48
query I rowsort
SELECT + col0 + + col0 * + 62 AS col0 FROM tab1
----
189
4032
5040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7733
SELECT - col0 + - tab0.col1 * + CAST( + col1 AS SIGNED ) - col1 * - ( + ( - col2 ) ) FROM tab0
----
-10258
-15832
-9541
skipif mysql # not compatible
query I rowsort label-7733
SELECT - col0 + - tab0.col1 * + CAST ( + col1 AS INTEGER ) - col1 * - ( + ( - col2 ) ) FROM tab0
----
-10258
-15832
-9541
onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT DISTINCT col2 + + col1 DIV tab2.col1 + tab2.col0 FROM tab2
----
105
118
35
skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT col2 + + col1 / tab2.col1 + tab2.col0 FROM tab2
----
105
118
35
query I rowsort
SELECT ALL + col1 + + tab2.col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + col2 + - col1 * col1 FROM tab1
----
-43
-622
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7737
SELECT - col0 + CAST( NULL AS DECIMAL ) * 36 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7737
SELECT - col0 + CAST ( NULL AS REAL ) * 36 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * - col0 + + ( + col0 * - col0 ) FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( col1 AS REAL ) + + col2 / - ( col0 * cor0.col2 ) col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col2 * - 35 AS col0 FROM tab1
----
-1890
-1995
-3360
query I rowsort
SELECT col2 + - ( col2 * - col1 ) FROM tab2
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 61 col1 FROM tab0
----
5246
5551
5917
query I rowsort
SELECT + ( 26 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col1 FROM tab1
----
44
44
44
query I rowsort
SELECT ( - col2 ) * col1 + ( + col0 ) * 41 FROM tab0 AS cor0
----
-1854
-3813
1338
query I rowsort
SELECT ALL col0 * + col2 + + col2 * 96 AS col2 FROM tab2
----
2781
4524
6650
query I rowsort
SELECT + + col1 * col1 + cor0.col2 AS col0 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT - 8 + tab2.col0 * + col1 AS col0 FROM tab2
----
1335
209
4594
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - col2 * col2 + cor0.col0 AS col1 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL - ( col2 ) - col1 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7752
SELECT DISTINCT - ( - col2 ) DIV + ( - 22 * - col0 ) + col1 + - col0 AS col2 FROM tab0 cor0
----
2
62
skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT - ( - col2 ) / + ( - 22 * - col0 ) + col1 + - col0 AS col2 FROM tab0 cor0
----
2
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7753
SELECT ALL - col0 DIV col0 + - cor0.col2 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL - col0 / col0 + - cor0.col2 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT col2 * - col1 - cor0.col1 * col2 AS col1 FROM tab2 cor0
----
-1292
-1674
-3068
onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT + col2 DIV + col0 + + col2 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-7755
SELECT + col2 / + col0 + + col2 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT + 18 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
70
72
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - col0 * + col2 col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - 55 * - col1 * + ( + col0 * - col1 ) + 60 AS col2 FROM tab0 AS cor0
----
-18112265
-40535435
-9762660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 * + col0 - 12 col2 FROM tab1 AS cor0
----
255
5684
7108
query I rowsort
SELECT + + col1 - - col1 * col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - + ( col1 ) * + col2 + + 92 * col1 AS col1 FROM tab1 AS cor0
----
-52
350
988
query I rowsort
SELECT DISTINCT - col0 + 65 + cor0.col2 FROM tab1 cor0
----
116
58
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7763
SELECT + CAST( cor0.col2 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif mysql # not compatible
query I rowsort label-7763
SELECT + CAST ( cor0.col2 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 * + cor0.col1 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cff6bd90f074a83a78bc7b2ecd96fa34
query I rowsort
SELECT - 57 FROM tab2, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT DISTINCT 3 * tab1.col0 - col2 AS col0 FROM tab1
----
-45
135
144
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7767
SELECT + col1 + col0 * col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7767
SELECT + col1 + col0 * col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - 81 ) FROM tab1 AS cor0
----
-81
-81
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7769
SELECT - CAST( NULL AS SIGNED ) * col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7769
SELECT - CAST ( NULL AS INTEGER ) * col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + 81 AS col0 FROM tab1 AS cor0
----
107
91
94
query I rowsort
SELECT - + cor0.col0 * + 97 FROM tab0 AS cor0
----
-2328
-3395
-8633
query I rowsort
SELECT + - 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT - + 23 AS col2 FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT - cor0.col1 * col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
-182
-5332
-6014
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col1 col0 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7776
SELECT - col2 + CAST( NULL AS SIGNED ) * - cor0.col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7776
SELECT - col2 + CAST ( NULL AS INTEGER ) * - cor0.col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 14 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT ALL 18 AS col0 FROM tab1, tab0 cor0, tab1 cor1, tab0, tab0 cor2
----
243 values hashing to 162ac04886543cfd80f55de959076e4e
query I rowsort
SELECT col2 * + 67 AS col0 FROM tab0 AS cor0
----
2211
5494
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-7780
SELECT + - col1 + - col0 * col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-7780
SELECT + - col1 + - col0 * col2 / + col0 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + col1 + 12 * + ( - cor0.col2 ) FROM tab1 AS cor0
----
-1139
-622
-674
query I rowsort
SELECT DISTINCT + col0 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT + col2 + + cor0.col1 DIV col2 col1 FROM tab0 AS cor0
----
35
83
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7783
SELECT + col2 + + cor0.col1 / col2 col1 FROM tab0 AS cor0
----
35
83
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7784
SELECT ALL col0 DIV ( + col0 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL col0 / ( + col0 ) FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - + col1 * 93 FROM tab0 AS cor0
----
-7998
-8463
-9021
query I rowsort
SELECT ALL - col2 + col1 * col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
7387
8288
9443
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7787
SELECT + col1 + + CAST( 41 AS SIGNED ) * col2 FROM tab0 AS cor0
----
138
1439
3453
skipif mysql # not compatible
query I rowsort label-7787
SELECT + col1 + + CAST ( 41 AS INTEGER ) * col2 FROM tab0 AS cor0
----
138
1439
3453
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col1 + - CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - cor0.col0 + + 73 * col0 AS col2 FROM tab0 AS cor0
----
1728
2520
6408
query I rowsort
SELECT ALL + cor0.col1 * - ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 + - 37 FROM tab1 cor0
----
-34
27
43
query I rowsort
SELECT DISTINCT + cor0.col0 * 63 + col1 FROM tab0 cor0
----
1598
2302
5698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 col0 FROM tab0, tab0 AS cor0
----
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7794
SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7795
SELECT ALL - ( - col1 ) DIV col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL - ( - col1 ) / col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + cor1.col2 + + 93 AS col2 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to 91056dd0549fb51f4bf75c19315f17bf
onlyif mysql # use DIV operator for integer division
query I rowsort label-7797
SELECT DISTINCT col2 * col2 DIV - col1 FROM tab2
----
-11
-23
-84
skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT col2 * col2 / - col1 FROM tab2
----
-11
-23
-84
query I rowsort
SELECT + + cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * col1 col0 FROM tab0 AS cor0
----
1892
2002
2134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7800
SELECT + CAST( col2 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-7800
SELECT + CAST ( col2 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 20 col0 FROM tab0 AS cor0
----
1780
480
700
query I rowsort
SELECT ALL - cor1.col0 - + cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c4fc15c50f67af58e655853a3faec38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 86 + - col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-11
-2752
-7376
query I rowsort
SELECT - + col1 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + tab1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7807
SELECT ALL - cor0.col2 * + CAST( + cor0.col1 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - cor0.col2 * + CAST ( + cor0.col1 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7808
SELECT ALL + 53 DIV + col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + 53 / + col1 AS col1 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7809
SELECT - 21 * - col1 * CAST( NULL AS SIGNED ) + + tab2.col0 + + tab2.col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7809
SELECT - 21 * - col1 * CAST ( NULL AS INTEGER ) + + tab2.col0 + + tab2.col1 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7810
SELECT DISTINCT - 70 DIV col1 + col0 FROM tab1
----
1
57
75
skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT - 70 / col1 + col0 FROM tab1
----
1
57
75
query I rowsort
SELECT ALL - ( col2 ) * - col1 + tab1.col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL - ( 84 ) + col2 FROM tab2 AS cor0
----
-46
-57
-58
query I rowsort
SELECT + + ( 76 ) AS col0 FROM tab1 AS cor0
----
76
76
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col0 FROM tab1 AS cor0
----
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7815
SELECT 44 DIV - col0 AS col0 FROM tab2 AS cor0
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-7815
SELECT 44 / - col0 AS col0 FROM tab2 AS cor0
----
-6
0
0
query I rowsort
SELECT ALL + + col1 * col2 + cor0.col0 * 65 FROM tab1 AS cor0
----
1599
4730
6448
query I rowsort
SELECT DISTINCT - - 47 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-17
-33
44
query I rowsort
SELECT DISTINCT + - col0 - + col0 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT ( + 2 ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
2
query I rowsort
SELECT ALL - 16 * + col2 + col2 * col0 + col2 AS col0 FROM tab0 AS cor0
----
20
297
6068
query I rowsort
SELECT 24 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 36 col2 FROM tab1 AS cor0
----
-36
query I rowsort
SELECT + 63 + + col0 AS col2 FROM tab2 AS cor0
----
141
142
70
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - 90 + + col1 FROM tab0 AS cor0
----
-4
1
7
query I rowsort
SELECT ALL 48 * - col0 AS col0 FROM tab2 AS cor0
----
-336
-3744
-3792
query I rowsort
SELECT + col0 * ( + col1 ) AS col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7828
SELECT - col1 DIV + col1 - + 9 AS col0 FROM tab1 AS cor0
----
-10
-10
-10
skipif mysql # not compatible
query I rowsort label-7828
SELECT - col1 / + col1 - + 9 AS col0 FROM tab1 AS cor0
----
-10
-10
-10
query I rowsort
SELECT - col1 * ( + 25 ) * col2 + + col0 * col2 - col2 * col1 AS col0 FROM tab0 cor0
----
-186714
-2487
-72996
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - col0 + - 37 + 33 FROM tab1
----
-68
-7
-84
query I rowsort
SELECT DISTINCT + + col2 + - ( - col1 ) AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col0 + 28 + col1 FROM tab2 AS cor0
----
-34
52
9
query I rowsort
SELECT + col1 + - ( - ( col0 ) ) - - col2 AS col0 FROM tab1 cor0
----
131
189
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7835
SELECT ALL + + col1 + CAST( NULL AS SIGNED ) * + col2 / + cor0.col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL + + col1 + CAST ( NULL AS INTEGER ) * + col2 / + cor0.col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + col1 + + col0 * - col0 * col1 - + col2 * + col0 * ( col2 ) FROM tab1 AS cor0
----
-248256
-819440
-8904
query I rowsort
SELECT + 29 * col0 AS col2 FROM tab0 cor0
----
1015
2581
696
query I rowsort
SELECT ALL 14 * + col2 FROM tab2 AS cor0
----
364
378
532
query I rowsort
SELECT ( 61 ) + cor0.col1 + ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-6
7
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 25 ) * cor0.col2 col1 FROM tab1 cor0
----
1350
1425
2400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7841
SELECT ALL + 3 * col1 DIV - col1 FROM tab2 AS cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL + 3 * col1 / - col1 FROM tab2 AS cor0
----
-3
-3
-3
query I rowsort
SELECT ALL - - 74 * - col1 AS col1 FROM tab0 AS cor0
----
-6364
-6734
-7178
query I rowsort
SELECT ALL 33 * 31 FROM tab1 cor0
----
1023
1023
1023
query I rowsort
SELECT - - ( ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - - 23 * - 14 FROM tab2 AS cor0
----
-322
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7846
SELECT ALL + tab2.col1 + + CAST( 14 AS SIGNED ) AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 17caaa1fb761d5b429675eb08f912c66
skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL + tab2.col1 + + CAST ( 14 AS INTEGER ) AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 17caaa1fb761d5b429675eb08f912c66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7847
SELECT - 43 DIV col0 + + col1 - cor0.col2 * + col2 FROM tab0 cor0
----
-1004
-6633
95
skipif mysql # not compatible
query I rowsort label-7847
SELECT - 43 / col0 + + col1 - cor0.col2 * + col2 FROM tab0 cor0
----
-1004
-6633
95
query I rowsort
SELECT ALL col0 + col2 - + col1 FROM tab1
----
111
163
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 * tab1.col1 * - col1 - col1 col2 FROM tab1
----
13507
2002
6390
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7850
SELECT - - CAST( + col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-7850
SELECT - - CAST ( + col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * col1 col1 FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT ALL + - 79 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-6761
-7107
-7662
query I rowsort
SELECT cor0.col0 * - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + col2 col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT 99 + col2 * 56 AS col2 FROM tab1 AS cor0
----
3123
3291
5475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7856
SELECT DISTINCT CAST( + 18 * col2 AS SIGNED ) col1 FROM tab2
----
468
486
684
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT CAST ( + 18 * col2 AS INTEGER ) col1 FROM tab2
----
468
486
684
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col1 FROM tab0
----
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-7858
SELECT 74 + col2 DIV 4 FROM tab2
----
80
80
83
skipif mysql # not compatible
query I rowsort label-7858
SELECT 74 + col2 / 4 FROM tab2
----
80
80
83
query I rowsort
SELECT + col1 + col1 * col1 AS col2 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT - 7 * col1 AS col2 FROM tab1
----
-182
-70
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-7861
SELECT + col0 + + col0 DIV - tab1.col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-7861
SELECT + col0 + + col0 / - tab1.col0 FROM tab1
----
2
63
79
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL + col1 - + col2 * - col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + 64 col1 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT DISTINCT + col2 * col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - - col0 * ( - col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + col0 + + 82 + ( col2 * cor0.col0 ) AS col0 FROM tab2 AS cor0
----
2188
278
3163
query I rowsort
SELECT - col0 * - 55 FROM tab1 AS cor0
----
165
3520
4400
query I rowsort
SELECT - 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT ALL + - col0 * col1 * - col2 + + col1 * - 51 AS col2 FROM tab1 AS cor0
----
2886
35970
99177
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col1 * + col2 + col1 col1 FROM tab0 AS cor0
----
159
2900
7464
query I rowsort
SELECT DISTINCT - col2 * col0 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
query I rowsort
SELECT ALL + col1 * 77 AS col2 FROM tab0
----
6622
7007
7469
query I rowsort
SELECT + tab1.col0 * - cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to b6c6c1b3967245d500b5bbd13326e94e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7875
SELECT ALL + col1 DIV col0 + col2 + + col2 col2 FROM tab2 cor0
----
52
58
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL + col1 / col0 + col2 + + col2 col2 FROM tab2 cor0
----
52
58
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7876
SELECT ALL - - CAST( + 71 AS SIGNED ) * cor0.col2 DIV col0 FROM tab0 AS cor0
----
2
65
97
skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - - CAST ( + 71 AS INTEGER ) * cor0.col2 / col0 FROM tab0 AS cor0
----
2
65
97
query I rowsort
SELECT col2 + ( - ( + col0 ) ) AS col0 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-7878
SELECT tab2.col0 + CAST( col2 AS SIGNED ) DIV col0 FROM tab2
----
10
78
79
skipif mysql # not compatible
query I rowsort label-7878
SELECT tab2.col0 + CAST ( col2 AS INTEGER ) / col0 FROM tab2
----
10
78
79
query I rowsort
SELECT ALL - col2 * col2 * + 39 FROM tab2 AS cor0
----
-26364
-28431
-56316
query I rowsort
SELECT col0 * cor0.col1 + + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT 52 * 80 * - col2 AS col1 FROM tab1
----
-224640
-237120
-399360
query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab2
----
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT - col0 DIV col0 + - 13 AS col2 FROM tab0 AS cor0
----
-14
-14
-14
skipif mysql # not compatible
query I rowsort label-7883
SELECT - col0 / col0 + - 13 AS col2 FROM tab0 AS cor0
----
-14
-14
-14
query I rowsort
SELECT + 33 + - col2 AS col1 FROM tab2 AS cor0
----
-5
6
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * ( + col1 ) col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - ( col1 * + col0 + + 15 ) FROM tab0
----
-2079
-3410
-8114
onlyif mysql # use DIV operator for integer division
query I rowsort label-7887
SELECT - col0 DIV + col1 col1 FROM tab1
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7887
SELECT - col0 / + col1 col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT + 79 - col1 FROM tab1
----
53
66
69
query I rowsort
SELECT - col1 + - col2 * ( 35 ) AS col2 FROM tab0 AS cor0
----
-1241
-132
-2961
query I rowsort
SELECT + - 56 - - col1 AS col2 FROM tab1 AS cor0
----
-30
-43
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7891
SELECT col2 * + col1 + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-7891
SELECT col2 * + col1 + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-7892
SELECT + col2 + col1 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-7892
SELECT + col2 + col1 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT ALL + col0 + tab1.col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL 21 * col0 + 69 FROM tab0
----
1938
573
804
query I rowsort
SELECT ALL + 79 * + col1 + 26 FROM tab2
----
1369
2475
4687
onlyif mysql # use DIV operator for integer division
query I rowsort label-7896
SELECT + + col0 + cor0.col2 DIV + col0 + col2 AS col2 FROM tab1 AS cor0
----
121
177
75
skipif mysql # not compatible
query I rowsort label-7896
SELECT + + col0 + cor0.col2 / + col0 + col2 AS col2 FROM tab1 AS cor0
----
121
177
75
query I rowsort
SELECT ALL col0 - col1 * + 35 * + col2 FROM tab2
----
-22531
-29288
-53612
query I rowsort
SELECT 22 + col1 - col2 AS col1 FROM tab1
----
-25
-6
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-7899
SELECT DISTINCT col0 DIV - col2 + + col0 + + col0 AS col0 FROM tab1
----
127
160
6
skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT col0 / - col2 + + col0 + + col0 AS col0 FROM tab1
----
127
160
6
query I rowsort
SELECT - col2 - col2 * - 88 FROM tab2 AS cor0
----
2262
2349
3306
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - ( + col0 ) col0 FROM tab2 AS cor0
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab0.col0 col0 FROM tab0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7903
SELECT col0 * + tab2.col0 + CAST( 37 AS SIGNED ) * col0 + - ( + col0 ) * col2 AS col0 FROM tab2
----
119
6162
6942
skipif mysql # not compatible
query I rowsort label-7903
SELECT col0 * + tab2.col0 + CAST ( 37 AS INTEGER ) * col0 + - ( + col0 ) * col2 AS col0 FROM tab2
----
119
6162
6942
query I rowsort
SELECT ALL - col2 * + col2 + + tab0.col0 AS col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT ALL + cor0.col0 + col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col1 * + 49 + + 70 * - col1 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-267
-369
-600
query I rowsort
SELECT col0 * - col0 + 69 FROM tab0 AS cor0
----
-1156
-507
-7852
query I rowsort
SELECT col1 * ( 75 ) + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-2898
-6705
1788
query I rowsort
SELECT ALL cor0.col0 * ( col0 ) AS col2 FROM tab0 cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + ( col1 * col2 ) col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL + col2 * col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - col0 * + ( - 17 ) + col2 AS col2 FROM tab2 AS cor0
----
1352
1381
146
onlyif mysql # use DIV operator for integer division
query I rowsort label-7913
SELECT DISTINCT + col1 + cor0.col1 DIV + cor0.col0 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT + col1 + cor0.col1 / + cor0.col0 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT ALL - col0 * 19 - 53 AS col1 FROM tab0 AS cor0
----
-1744
-509
-718
query I rowsort
SELECT ALL cor0.col2 + ( - cor0.col0 + col1 ) AS col1 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT - col1 + 39 AS col2 FROM tab0 AS cor0
----
-47
-52
-58
query I rowsort
SELECT DISTINCT col0 + 26 FROM tab0 AS cor0
----
115
50
61
query I rowsort
SELECT ALL + + col1 + ( + col1 * - col2 ) - + cor0.col2 * + col2 FROM tab0 AS cor0
----
-1
-14095
-3841
onlyif mysql # use DIV operator for integer division
query I rowsort label-7919
SELECT ( + 96 ) DIV - col2 col2 FROM tab0 AS cor0
----
-1
-2
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7919
SELECT ( + 96 ) / - col2 col2 FROM tab0 AS cor0
----
-1
-2
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7920
SELECT DISTINCT - - CAST( ( col2 ) AS SIGNED ) + ( - cor0.col0 ) DIV col0 + + cor0.col0 DIV 57 FROM tab1 AS cor0
----
53
57
96
skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT - - CAST ( ( col2 ) AS INTEGER ) + ( - cor0.col0 ) / col0 + + cor0.col0 / 57 FROM tab1 AS cor0
----
53
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7921
SELECT ALL - col2 DIV 51 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - col2 / 51 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT cor0.col0 + ( - col2 ) * 70 FROM tab1 AS cor0
----
-3777
-3926
-6640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 + + col1 col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-7924
SELECT DISTINCT - col1 + + cor0.col0 DIV + col2 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT - col1 + + cor0.col0 / + col2 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT DISTINCT - - 89 * - col1 AS col2 FROM tab1 AS cor0
----
-1157
-2314
-890
query I rowsort
SELECT + cor0.col1 + 29 * - col2 FROM tab2 AS cor0
----
-1085
-695
-752
onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT + col2 + col2 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-7927
SELECT + col2 + col2 / cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT - 60 - col1 * + cor0.col0 * col0 FROM tab2 cor0
----
-106157
-1579
-359016
query I rowsort
SELECT DISTINCT col2 - col0 * 75 AS col2 FROM tab0 cor0
----
-1767
-2624
-6593
query I rowsort
SELECT ALL 32 + - col2 * ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-2806
-65
-7430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 * - col1 col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT col1 * - col2 * col1 - - col2 AS col1 FROM tab2 AS cor0
----
-10944
-25920
-90480
query I rowsort
SELECT cor0.col2 - + col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - 25 * + col1 * col0 FROM tab2 AS cor0
----
-115050
-33575
-5425
query I rowsort
SELECT - ( + col2 ) * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 35 * - col1 * ( col1 * - col1 ) + col0 + col1 AS col1 FROM tab2 AS cor0
----
1042723
172051
7188402
query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7938
SELECT DISTINCT col2 DIV + tab1.col2 col2 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT col2 / + tab1.col2 col2 FROM tab1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7939
SELECT ALL - tab1.col0 DIV col1 AS col0 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - tab1.col0 / col1 AS col0 FROM tab1
----
-6
-6
0
query I rowsort
SELECT tab2.col2 * - col0 + col0 + col1 AS col1 FROM tab2
----
-151
-1891
-2906
query I rowsort
SELECT + col0 * col0 + col1 AS col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT - col0 * - tab2.col2 + + col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT col2 + tab1.col1 FROM tab1 WHERE NULL NOT IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7944
SELECT ALL col1 + - col1 DIV - col1 + + col1 AS col2 FROM tab0
----
173
183
195
skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL col1 + - col1 / - col1 + + col1 AS col2 FROM tab0
----
173
183
195
query I rowsort
SELECT DISTINCT + col0 + + col0 * col0 + tab2.col1 AS col2 FROM tab2
----
6221
6337
87
query I rowsort
SELECT - col0 * col1 * + col0 AS col2 FROM tab2
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-7947
SELECT - col1 * col2 DIV + col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-7947
SELECT - col1 * col2 / + col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 * + col2 + - col0 + tab1.col1 FROM tab1
----
-1315
-1381
-624
query I rowsort
SELECT ALL col1 * col0 AS col2 FROM tab0 WHERE NOT NULL <= ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( + col2 * - col0 + - col1 * - col2 + + col0 )
----
query I rowsort
SELECT - col1 + tab0.col0 * - col2 + col1 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NULL <= - col1 + col2
----
query I rowsort
SELECT col0 * + col0 - col2 * - col1 * col0 AS col2 FROM tab1
----
106240
40576
4221
query I rowsort
SELECT col1 * tab1.col2 FROM tab1 WHERE NOT NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col2 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 * - col0 - + col1 AS col1 FROM tab0
----
-1322
-662
-8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * - col2 + col1 col2 FROM tab2
----
-1475
-629
-806
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col0 ) OR NOT NULL BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT DISTINCT col1 * col2 * - col0 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col0 * - tab1.col2 + col2 + col0 FROM tab1
----
219
3769
7856
query I rowsort
SELECT DISTINCT col2 * + col2 + + col2 AS col0 FROM tab0
----
1122
2
6806
query I rowsort
SELECT ALL - cor0.col2 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7963
SELECT ALL + cor0.col2 * col0 DIV - col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + cor0.col2 * col0 / - col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col1 + + col0 * + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT col2 + col0 * + cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1460
251
4706
query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col1 = - col0 + + col2 / - col0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 * + col0 - col2 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT + 48 + + tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to 861e0798f5d0dd29725f9b058878df24
query I rowsort
SELECT + 77 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT + + cor0.col0 * col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - col1 * + col2 * - col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT col0 + ( col1 ) * cor0.col1 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT + + col1 + col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7974
SELECT DISTINCT - cor0.col1 DIV 23 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT - cor0.col1 / 23 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
-1
-2
0
query I rowsort
SELECT - - ( ( - col2 ) ) - col2 AS col1 FROM tab1 cor0
----
-108
-114
-192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7976
SELECT DISTINCT CAST( 55 * col2 AS SIGNED ) - - col0 AS col2 FROM tab2
----
1492
1508
2169
skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT CAST ( 55 * col2 AS INTEGER ) - - col0 AS col2 FROM tab2
----
1492
1508
2169
query I rowsort
SELECT - - col0 * - ( col0 ) + ( 11 ) * col0 FROM tab2 AS cor0
----
-5226
-5372
28
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
86
91
97
query I rowsort
SELECT ALL 8 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT ALL 64 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7981
SELECT - 39 + col2 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1405
637
690
skipif mysql # not compatible
query I rowsort label-7981
SELECT - 39 + col2 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1405
637
690
query I rowsort
SELECT - + 38 + + col2 + 14 * + ( col0 ) FROM tab1 cor0
----
1178
58
915
query I rowsort
SELECT DISTINCT + + 18 FROM tab0, tab0 AS cor0
----
18
query I rowsort
SELECT col2 * 36 AS col1 FROM tab0 AS cor0
----
1188
2952
36
query I rowsort
SELECT - cor0.col1 * + ( 25 + col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-22400
-39520
-3978
query I rowsort
SELECT - col2 * ( col1 ) + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT - - col0 * + 0 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7988
SELECT ALL 87 DIV - col1 AS col0 FROM tab1
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL 87 / - col1 AS col0 FROM tab1
----
-3
-6
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 + col2 col2 FROM tab0
----
-19
13
62
query I rowsort
SELECT col0 + col0 * + ( - col1 ) * col1 AS col0 FROM tab2
----
-22752
-271440
-6720
query I rowsort
SELECT 34 * - 43 + + col2 - + col1 * - cor0.col0 FROM tab1 AS cor0
----
-1330
-326
-765
query I rowsort
SELECT ALL col0 + + ( - col1 ) FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 * cor0.col1 FROM tab0 cor0
----
636056
753571
912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT DISTINCT + - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT + - col1 / col1 AS col2 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT + 85 + - col1 * 16 AS col0 FROM tab2 AS cor0
----
-187
-411
-859
query I rowsort
SELECT DISTINCT - - col1 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7997
SELECT - col2 * col2 + CAST( NULL AS SIGNED ) * 87 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7997
SELECT - col2 * col2 + CAST ( NULL AS INTEGER ) * 87 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7998
SELECT ALL col2 DIV 87 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL col2 / 87 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT col1 + ( col2 ) AS col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8000
SELECT - + 27 * cor0.col0 + col0 * CAST( col2 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-910
25488
596033
skipif mysql # not compatible
query I rowsort label-8000
SELECT - + 27 * cor0.col0 + col0 * CAST ( col2 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-910
25488
596033
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2, tab0 AS cor3
----
3645 values hashing to 01eead0dd25d3467de7ffefe027bc35f
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 ( cor0.col1 ) + - cor0.col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ( - col0 ) * + col1 - - col2 * col2 FROM tab1 AS cor0
----
2609
2838
8176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8005
SELECT - CAST( NULL AS SIGNED ) * - 12 / + col1 + col2 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8005
SELECT - CAST ( NULL AS INTEGER ) * - 12 / + col1 + col2 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 37 + + col2 * + col0 * 18 AS col1 FROM tab0 AS cor0
----
131401
14293
667
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( ( col0 ) AS REAL ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8008
SELECT DISTINCT - - CAST( 37 AS SIGNED ) + col0 FROM tab2 AS cor0
----
115
116
44
skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT - - CAST ( 37 AS INTEGER ) + col0 FROM tab2 AS cor0
----
115
116
44
query I rowsort
SELECT ALL - 80 + + col1 FROM tab0 AS cor0
----
11
17
6
query I rowsort
SELECT DISTINCT tab0.col0 * + col1 * col2 AS col1 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-8011
SELECT DISTINCT + col2 DIV cor0.col1 - - col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT + col2 / cor0.col1 - - col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - 17 * col2 * - col2 + + 32 FROM tab1 AS cor0
----
156704
49604
55265
query I rowsort
SELECT ( ( + col1 ) ) * + ( 63 ) FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT - - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + 66 + col1 * + col1 FROM tab2 cor0
----
1027
3547
355
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8016
SELECT - - CAST( - col0 AS SIGNED ) * - col1 * col2 - + col1 col0 FROM tab0 AS cor0
----
3298
664027
68026
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8016
SELECT - - CAST ( - col0 AS INTEGER ) * - col1 * col2 - + col1 col0 FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT ALL - col1 + 40 * col1 AS col1 FROM tab2 AS cor0
----
1209
2301
663
query I rowsort
SELECT ALL + ( col1 + + 94 ) * ( tab2.col0 * + 24 ) FROM tab2
----
21000
210456
286416
onlyif mysql # use DIV operator for integer division
query I rowsort label-8019
SELECT + - col2 * + col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8019
SELECT + - col2 * + col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + + col2 + + col1 * col1 - col2 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL col1 * - 6 AS col2 FROM tab0
----
-516
-546
-582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8022
SELECT col1 * CAST( NULL AS SIGNED ) * + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8022
SELECT col1 * CAST ( NULL AS INTEGER ) * + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8023
SELECT DISTINCT + col2 * cor0.col1 + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT + col2 * cor0.col1 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL col0 * - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + + 83 * + col1 AS col0 FROM tab0 AS cor0
----
7138
7553
8051
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8026
SELECT ALL + ( col0 ) + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL + ( col0 ) + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8027
SELECT - 73 + col1 DIV - col2 FROM tab0 AS cor0
----
-170
-74
-75
skipif mysql # not compatible
query I rowsort label-8027
SELECT - 73 + col1 / - col2 FROM tab0 AS cor0
----
-170
-74
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8028
SELECT DISTINCT col0 * col0 + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
1224
543
7839
skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT col0 * col0 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
1224
543
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col1 FROM tab0 AS cor0
----
-64
-64
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8030
SELECT + col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8030
SELECT + col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 19 + 48 AS col1 FROM tab1 AS cor0
----
67
query I rowsort
SELECT DISTINCT + + col2 * col1 + + col0 AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + + col2 + + col0 * col1 * 89 FROM tab0 AS cor0
----
183729
302156
720893
query I rowsort
SELECT DISTINCT ( - 87 ) + + col1 AS col1 FROM tab1 AS cor0
----
-61
-74
-77
query I rowsort
SELECT DISTINCT 40 * - cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
-1400
-3560
-960
query I rowsort
SELECT - 34 * col1 FROM tab2 cor0
----
-1054
-2006
-578
query I rowsort
SELECT ALL + 80 + - col2 AS col2 FROM tab0 AS cor0
----
-2
47
79
query I rowsort
SELECT col1 + 96 FROM tab1
----
106
109
122
onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT DISTINCT + col2 DIV + col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + col2 / + col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT + col1 - + ( - col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT 32 * col0 FROM tab2 cor0
----
224
2496
2528
query I rowsort
SELECT ALL 43 + + col2 FROM tab1 AS cor0
----
100
139
97
query I rowsort
SELECT ALL + - col1 * col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col2 col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ( col2 * 30 ) FROM tab2
----
1140
780
810
query I rowsort
SELECT DISTINCT + 70 + - 34 AS col2 FROM tab1, tab2 AS cor0
----
36
query I rowsort
SELECT DISTINCT - col2 * - 97 AS col2 FROM tab0
----
3201
7954
97
query I rowsort
SELECT + col0 * - col2 * + col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT + + 72 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT ALL + col2 * - ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL col2 - col1 * col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8052
SELECT + + CAST( + ( col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8052
SELECT + + CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - 87 + 25 * col2 FROM tab0 cor0
----
-62
1963
738
query I rowsort
SELECT 18 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
100
19
51
query I rowsort
SELECT DISTINCT + col0 * ( col1 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT tab2.col1 * 8 + - col0 FROM tab2
----
241
394
57
query I rowsort
SELECT + col1 * 67 + col2 * - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-20374
-592339
6464
onlyif mysql # use DIV operator for integer division
query I rowsort label-8058
SELECT col2 * 48 DIV 17 + col2 FROM tab1 AS cor0
----
206
217
367
skipif mysql # not compatible
query I rowsort label-8058
SELECT col2 * 48 / 17 + col2 FROM tab1 AS cor0
----
206
217
367
query I rowsort
SELECT - - cor0.col0 * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - + tab1.col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT ALL + col0 * 36 + - col0 * + tab1.col2 AS col1 FROM tab1
----
-1344
-4800
-54
query I rowsort
SELECT ALL + + col2 * 37 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT DISTINCT + + col2 * col0 + - 69 FROM tab2 AS cor0
----
120
1959
2933
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8064
SELECT col0 + CAST( + 58 AS SIGNED ) FROM tab1 AS cor0
----
122
138
61
skipif mysql # not compatible
query I rowsort label-8064
SELECT col0 + CAST ( + 58 AS INTEGER ) FROM tab1 AS cor0
----
122
138
61
query I rowsort
SELECT DISTINCT col1 + col0 * + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - + col2 + - 1 AS col0 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT ALL - cor0.col1 * - ( col0 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - tab0.col1 + tab0.col2 * - col2 * col2 AS col1 FROM tab0
----
-36023
-551459
-98
query I rowsort
SELECT col0 * - col1 - col1 AS col2 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT 16 - ( col2 * - ( 57 ) ) AS col2 FROM tab0
----
1897
4690
73
query I rowsort
SELECT 60 * - 49 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6e9dd3a7d3bfcec6febab2bedd916826
onlyif mysql # use DIV operator for integer division
query I rowsort label-8072
SELECT ALL col1 * ( - col0 ) DIV 54 AS col0 FROM tab0
----
-149
-38
-62
skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL col1 * ( - col0 ) / 54 AS col0 FROM tab0
----
-149
-38
-62
query I rowsort
SELECT + 92 + + cor0.col0 FROM tab1 AS cor0
----
156
172
95
query I rowsort
SELECT ALL col2 - col2 * + col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT 21 * col2 + - col0 FROM tab0 cor0
----
-14
1633
669
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * - cor0.col2 col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL ( 94 ) FROM tab1
----
94
94
94
query I rowsort
SELECT DISTINCT col2 * - col2 * col1 - - col1 AS col1 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT - - 90 * col2 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT DISTINCT + - col2 + + col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304
onlyif mysql # use DIV operator for integer division
query I rowsort label-8081
SELECT DISTINCT - col1 DIV col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - col1 / col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8082
SELECT + 10 DIV - col1 col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8082
SELECT + 10 / - col1 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col1 ) + col0 * - 92 AS col2 FROM tab1 AS cor0
----
-250
-5878
-7347
query I rowsort
SELECT ALL + 11 * col1 AS col2 FROM tab2 cor0
----
187
341
649
query I rowsort
SELECT DISTINCT + col1 + col0 * - col1 * col1 AS col2 FROM tab2 AS cor0
----
-22814
-271459
-6696
query I rowsort
SELECT DISTINCT + - 85 * col2 + col2 FROM tab1 AS cor0
----
-4536
-4788
-8064
query I rowsort
SELECT ALL col2 * ( col1 ) AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + col0 + col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1430
-529
-803
query I rowsort
SELECT DISTINCT col0 * - 25 * 58 - - col1 FROM tab2 AS cor0
----
-10119
-113041
-114533
onlyif mysql # use DIV operator for integer division
query I rowsort label-8090
SELECT ALL + col2 DIV - 56 + col2 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL + col2 / - 56 + col2 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT DISTINCT + col2 - + 69 FROM tab0 AS cor0
----
-36
-68
13
query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
57
query I rowsort
SELECT - 62 + col0 AS col2 FROM tab1
----
-59
18
2
query I rowsort
SELECT DISTINCT + 43 * + col2 FROM tab1
----
2322
2451
4128
query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab1, tab2 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8096
SELECT ALL + 71 DIV col2 AS col1 FROM tab0
----
0
2
71
skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL + 71 / col2 AS col1 FROM tab0
----
0
2
71
query I rowsort
SELECT col2 * + col0 * tab2.col2 + 37 FROM tab2
----
114113
5140
52765
query I rowsort
SELECT + cor0.col2 + col2 + col0 AS col2 FROM tab0 AS cor0
----
253
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 71 ) * col1 + - ( - 29 ) col1 FROM tab2 AS cor0
----
1236
2230
4218
onlyif mysql # use DIV operator for integer division
query I rowsort label-8100
SELECT + col2 DIV - col0 col1 FROM tab1 cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8100
SELECT + col2 / - col0 col1 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT - + col0 * ( - cor0.col2 + cor0.col1 ) FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT ALL - col2 + 64 AS col1 FROM tab1 AS cor0
----
-32
10
7
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * - col1 AS col0 FROM tab2 cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8104
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + + col0 * - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + + col0 * - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 0 col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + - col0 + - 72 FROM tab2 AS cor0
----
-150
-151
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 57 col0 FROM tab1 AS cor0
----
57
57
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + 73 + col2 * ( 59 ) col0 FROM tab1 cor0
----
11504
3405
8035
query I rowsort
SELECT ALL - 78 + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1167
-6802
-79
query I rowsort
SELECT + col0 * + ( col1 ) * 38 FROM tab2 AS cor0
----
174876
51034
8246
onlyif mysql # use DIV operator for integer division
query I rowsort label-8111
SELECT ALL col2 * 40 - col0 DIV + col1 AS col0 FROM tab0
----
1320
3280
40
skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL col2 * 40 - col0 / + col1 AS col0 FROM tab0
----
1320
3280
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8112
SELECT ALL CAST( tab0.col0 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL CAST ( tab0.col0 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT ALL - + 10 DIV + 24 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - + 10 / + 24 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT 42 + + ( cor0.col0 * col2 ) AS col0 FROM tab2 AS cor0
----
2070
231
3044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8115
SELECT + CAST( + col1 AS SIGNED ) + col2 * col0 AS col1 FROM tab0 AS cor0
----
132
7389
878
skipif mysql # not compatible
query I rowsort label-8115
SELECT + CAST ( + col1 AS INTEGER ) + col2 * col0 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT col2 * col0 * cor0.col2 + - col1 AS col1 FROM tab2 AS cor0
----
114059
5072
52669
query I rowsort
SELECT - - 61 + - col0 * + col1 FROM tab2 AS cor0
----
-1282
-156
-4541
onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT DISTINCT + col0 + - 12 * col0 DIV ( col0 ) + + col1 * - col1 FROM tab1 cor0
----
-101
-48
-685
skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT + col0 + - 12 * col0 / ( col0 ) + + col1 * - col1 FROM tab1 cor0
----
-101
-48
-685
query I rowsort
SELECT DISTINCT + col0 + 48 * - col1 FROM tab2 AS cor0
----
-1481
-2754
-737
query I rowsort
SELECT DISTINCT + - col2 * ( + col0 ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL cor0.col2 * 22 FROM tab1, tab1 AS cor0
----
9 values hashing to 753d4f7c514b9e015612181ef0349c00
query I rowsort
SELECT ALL + + 62 * col2 AS col1 FROM tab1 AS cor0
----
3348
3534
5952
query I rowsort
SELECT ( - 10 ) FROM tab1 cor0
----
-10
-10
-10
query I rowsort
SELECT ALL - cor0.col2 * - 37 AS col0 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT ALL + col0 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT cor0.col0 + 14 AS col1 FROM tab0 AS cor0
----
103
38
49
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col1 AS REAL ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col0 * + ( - cor0.col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 80 + + col0 AS col0 FROM tab2 AS cor0
----
158
159
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-8130
SELECT ALL + 78 DIV + col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + 78 / + col2 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT 53 * 5 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
265
query I rowsort
SELECT DISTINCT + 87 AS col1 FROM tab1 AS cor0
----
87
query I rowsort
SELECT - + col0 + + cor0.col1 * ( col1 ) FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT + col2 + + 62 AS col1 FROM tab0 AS cor0
----
144
63
95
query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col1 * tab1.col0 + + 34 * - col1 * + col0 FROM tab1
----
-21120
-2574
-34320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8137
SELECT - col1 * col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8137
SELECT - col1 * col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + ( 7 ) * - col2 AS col0 FROM tab2 AS cor0
----
-104
-182
-187
query I rowsort
SELECT - col2 + - cor0.col0 * - 27 FROM tab0 AS cor0
----
2321
615
944
query I rowsort
SELECT - 65 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 62fe7b8eb6ce8c547418f08ea8ada1fc
query I rowsort
SELECT ALL - 46 + col0 FROM tab1 AS cor0
----
-43
18
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col1 col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - cor2.col0 + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 AS cor2
----
81 values hashing to 1c6b7430e640f915d1b5238d8347f7d4
query I rowsort
SELECT + col1 + + col0 * - 53 FROM tab0 AS cor0
----
-1186
-1758
-4626
query I rowsort
SELECT col2 * cor0.col0 + - ( + col1 ) AS col0 FROM tab2 AS cor0
----
158
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 col2 FROM tab0, tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119
query I rowsort
SELECT ALL - 59 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f
query I rowsort
SELECT - 84 * + 71 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9298af5dce006c86119ac52928b9c27b
query I rowsort
SELECT DISTINCT + + col0 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + 58 - col1 FROM tab1 AS cor0
----
32
45
48
query I rowsort
SELECT ALL ( + cor0.col0 ) + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - ( - 61 ) + cor0.col1 FROM tab1 AS cor0
----
71
74
87
query I rowsort
SELECT DISTINCT - col1 + col1 * col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + ( + 51 ) * col0 AS col1 FROM tab1 cor0
----
153
3264
4080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 74 ) + cor0.col1 col0 FROM tab1 AS cor0
----
100
84
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8156
SELECT ALL - + CAST( NULL AS SIGNED ) * col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - + CAST ( NULL AS INTEGER ) * col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 50 * + col2 + col1 * + col0 FROM tab2
----
-1133
-557
3302
onlyif mysql # use DIV operator for integer division
query I rowsort label-8158
SELECT + col2 DIV - 41 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8158
SELECT + col2 / - 41 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - 86 * ( col1 ) FROM tab1
----
-1118
-2236
-860
query I rowsort
SELECT - 78 - + tab2.col0 AS col0 FROM tab2
----
-156
-157
-85
query I rowsort
SELECT - 78 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT + 67 FROM tab2, tab0, tab2 cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT ALL 28 * + col1 + - ( col2 ) FROM tab1
----
223
268
674
query I rowsort
SELECT + 21 * + col2 * - col1 + + col0 * - tab0.col0 FROM tab0
----
-164623
-3262
-60174
query I rowsort
SELECT ALL cor0.col2 * - ( 74 ) - col0 AS col0 FROM tab0 AS cor0
----
-109
-2466
-6157
onlyif mysql # use DIV operator for integer division
query I rowsort label-8166
SELECT DISTINCT col0 DIV + ( - cor0.col0 ) FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT col0 / + ( - cor0.col0 ) FROM tab1 AS cor0
----
-1
query I rowsort
SELECT + col0 * - 91 AS col2 FROM tab0 AS cor0
----
-2184
-3185
-8099
query I rowsort
SELECT DISTINCT - + col2 * - col2 * 19 AS col2 FROM tab1 cor0
----
175104
55404
61731
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 11 col0 FROM tab0 AS cor0
----
11
363
902
query I rowsort
SELECT col2 * ( col2 ) + col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + col2 * - col2 + col0 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT ALL tab0.col0 + + col2 * - col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT + col0 + tab2.col1 * - col1 AS col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT - col0 + + col0 * tab2.col1 FROM tab2
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-8175
SELECT DISTINCT col2 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT col2 / cor0.col0 AS col2 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL + col1 * col2 + col2 + - col0 FROM tab0 AS cor0
----
2847
63
7455
query I rowsort
SELECT ALL - - cor0.col2 * - col0 - + col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT col0 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL + col1 * + col2 + - col0 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT ALL + col1 - - col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - col1 * col2 + col2 + - col2 * + tab2.col0 FROM tab2
----
-3536
-3610
-999
query I rowsort
SELECT - col2 * + col2 + col2 * + col1 AS col2 FROM tab2
----
-798
108
858
query I rowsort
SELECT ALL - col0 + tab0.col2 + col1 * tab0.col2 FROM tab0
----
2847
63
7455
query I rowsort
SELECT DISTINCT tab1.col2 * col0 + col1 FROM tab1
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT tab2.col2 DIV col1 - col0 AS col0 FROM tab2
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-8185
SELECT tab2.col2 / col1 - col0 AS col0 FROM tab2
----
-7
-77
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8186
SELECT DISTINCT tab1.col1 DIV + col1 + col0 * - tab1.col1 FROM tab1
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT tab1.col1 / + col1 + col0 * - tab1.col1 FROM tab1
----
-1039
-639
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col0 col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 * - col2 + cor0.col2 * + col0 FROM tab0 cor0
----
-164
-2046
-62
query I rowsort
SELECT ALL + + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col0 * col1 + col1 - - col0 * + col1 AS col2 FROM tab1 cor0
----
1290
182
2093
query I rowsort
SELECT ALL 53 AS col1 FROM tab2 AS cor0
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-8192
SELECT DISTINCT col1 DIV tab1.col2 + + col2 * - tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT col1 / tab1.col2 + + col2 * - tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - col1 * + cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - - cor0.col2 + + col2 * - col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL col1 + + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT - ( - col1 ) + col1 * col1 * - cor0.col2 FROM tab2 AS cor0
----
-10965
-25916
-90447
onlyif mysql # use DIV operator for integer division
query I rowsort label-8197
SELECT col1 DIV 71 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8197
SELECT col1 / 71 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) * + col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT 93 * - col1 + + cor0.col0 - col1 FROM tab1 cor0
----
-1142
-2441
-876
onlyif mysql # use DIV operator for integer division
query I rowsort label-8200
SELECT ALL + col1 * - col1 * col0 + + col1 DIV - col0 FROM tab1 AS cor0
----
-13520
-2036
-6400
skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL + col1 * - col1 * col0 + + col1 / - col0 FROM tab1 AS cor0
----
-13520
-2036
-6400
query I rowsort
SELECT DISTINCT + ( tab0.col2 ) * col2 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-8202
SELECT DISTINCT - col1 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT - col1 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8203
SELECT + col0 * col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8203
SELECT + col0 * col2 / - col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + - col1 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8205
SELECT tab2.col2 DIV tab2.col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8205
SELECT tab2.col2 / tab2.col1 FROM tab2
----
0
0
2
query I rowsort
SELECT DISTINCT - col1 + col0 * col0 + col2 FROM tab1
----
37
4143
6483
query I rowsort
SELECT - 50 * - col0 + - col0 * - col1 + + col0 FROM tab1
----
231
3904
5120
query I rowsort
SELECT - 47 + col1 - + col2 AS col2 FROM tab2
----
-14
-43
-68
query I rowsort
SELECT + 24 * 50 + - col1 * col1 FROM tab0
----
-6196
-7081
-8209
query I rowsort
SELECT + 20 * - col2 + + col2 AS col1 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT ( + col0 ) + 27 AS col1 FROM tab0 AS cor0
----
116
51
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8212
SELECT CAST( NULL AS SIGNED ) * - 79 * col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8212
SELECT CAST ( NULL AS INTEGER ) * - 79 * col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + + tab1.col0 * col2 col2 FROM tab1
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8214
SELECT DISTINCT 71 + col2 DIV + col2 AS col1 FROM tab0
----
72
skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT 71 + col2 / + col2 AS col1 FROM tab0
----
72
query I rowsort
SELECT DISTINCT - 68 * + tab0.col1 FROM tab0
----
-5848
-6188
-6596
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL + - 2 AS col1 FROM tab1 cor0
----
-2
-2
-2
query I rowsort
SELECT col1 + col0 * 69 * col0 FROM tab2 AS cor0
----
3412
419855
430646
query I rowsort
SELECT ALL + + 14 + col0 FROM tab1 AS cor0
----
17
78
94
query I rowsort
SELECT ALL - ( - col1 ) + ( - 22 ) AS col1 FROM tab2 cor0
----
-5
37
9
query I rowsort
SELECT + col1 * - col1 + + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL + col2 + - cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-8223
SELECT DISTINCT - + 4 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT - + 4 / - col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col0 * - col1 + col1 * - 66 + col2 * - 99 AS col2 FROM tab1 AS cor0
----
-11402
-6943
-7140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * col0 + col1 * - col1 col1 FROM tab2 cor0
----
-1150
-3291
-5509
query I rowsort
SELECT tab1.col1 * - ( 16 + col0 ) AS col2 FROM tab1
----
-1248
-494
-800
query I rowsort
SELECT DISTINCT + col2 * col1 + - col1 AS col0 FROM tab2
----
1475
629
806
query I rowsort
SELECT ALL col1 * - ( - cor0.col0 ) FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * ( col0 ) col1 FROM tab1 cor0
----
1136
132
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8230
SELECT DISTINCT + col0 * CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT + col0 * CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col2 + 34 FROM tab0 cor0
----
116
35
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8232
SELECT DISTINCT + ( cor0.col2 ) * col0 DIV - col1 AS col2 FROM tab1 cor0
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT + ( cor0.col2 ) * col0 / - col1 AS col2 FROM tab1 cor0
----
-364
-590
-6
query I rowsort
SELECT - 12 - + col2 FROM tab0 AS cor0
----
-13
-45
-94
query I rowsort
SELECT + col1 * col2 + + 46 * + col0 FROM tab1
----
1542
3514
4928
query I rowsort
SELECT + ( ( col1 ) ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8236
SELECT + 62 - col1 DIV - col0 FROM tab0 AS cor0
----
63
64
65
skipif mysql # not compatible
query I rowsort label-8236
SELECT + 62 - col1 / - col0 FROM tab0 AS cor0
----
63
64
65
query I rowsort
SELECT col2 + col1 * col2 + col1 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT - ( cor0.col0 ) + col2 - + 67 * - col1 FROM tab0 AS cor0
----
5771
6090
6465
query I rowsort
SELECT + cor0.col0 + + 93 * + col1 * 39 + - col1 AS col2 FROM tab2 AS cor0
----
112413
214012
61721
onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT ( col0 ) + - col1 DIV + col0 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-8240
SELECT ( col0 ) + - col1 / + col0 FROM tab0 AS cor0
----
21
33
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8241
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + 15 * + 93 * col1 AS col2 FROM tab1
----
13950
18135
36270
query I rowsort
SELECT - 93 FROM tab2, tab2 cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8244
SELECT DISTINCT + cor0.col0 DIV col0 + 28 AS col1 FROM tab1 AS cor0
----
29
skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT + cor0.col0 / col0 + 28 AS col1 FROM tab1 AS cor0
----
29
query I rowsort
SELECT - + col1 + + 43 * - 17 FROM tab0 AS cor0
----
-817
-822
-828
onlyif mysql # use DIV operator for integer division
query I rowsort label-8246
SELECT ALL col1 DIV ( ( - tab0.col0 ) ) FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL col1 / ( ( - tab0.col0 ) ) FROM tab0
----
-1
-2
-3
query I rowsort
SELECT ALL + + col1 + - 67 FROM tab2 AS cor0
----
-36
-50
-8
query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab2, tab0, tab1 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8249
SELECT ALL col2 DIV 71 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL col2 / 71 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT ( 50 ) FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT - col1 + - 19 * + col2 AS col0 FROM tab0 AS cor0
----
-116
-1649
-713
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col2 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL col2 + col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8254
SELECT + col2 + + col1 DIV - col1 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-8254
SELECT + col2 + + col1 / - col1 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT ALL - col2 + - col2 * - col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT + + col0 + - ( - col1 ) * cor0.col0 * 75 AS col2 FROM tab0 AS cor0
----
154824
254660
607514
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 * 45 FROM tab0 AS cor0
----
152775
364455
92880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 * - col1 col2 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT col1 + + 66 AS col2 FROM tab1 AS cor0
----
76
79
92
query I rowsort
SELECT ALL + - col2 * - cor0.col2 + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL + + col2 * - 37 AS col2 FROM tab1 cor0
----
-1998
-2109
-3552
query I rowsort
SELECT DISTINCT + - col2 * + 58 * - col2 FROM tab2 AS cor0
----
39208
42282
83752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 66 + - col1 * cor0.col2 + + col2 col2 FROM tab0 AS cor0
----
-1968
-30
-627
query I rowsort
SELECT ALL + col0 * + col0 - cor0.col2 FROM tab1 cor0
----
-45
4039
6304
query I rowsort
SELECT ALL - 38 + col0 * + col1 * cor0.col1 FROM tab1 AS cor0
----
13482
1990
6362
query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab0 AS cor0
----
51
query I rowsort
SELECT - ( - 6 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
onlyif mysql # use DIV operator for integer division
query I rowsort label-8268
SELECT DISTINCT - 11 DIV col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT - 11 / col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col2 + - col1 AS col0 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8270
SELECT DISTINCT + + 70 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT + + 70 / + col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8271
SELECT - 58 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-58
0
skipif mysql # not compatible
query I rowsort label-8271
SELECT - 58 / col2 AS col2 FROM tab0 AS cor0
----
-1
-58
0
query I rowsort
SELECT + + 13 + - 13 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - - 43 AS col0 FROM tab0 AS cor0
----
43
43
43
query I rowsort
SELECT + 38 * - col0 AS col1 FROM tab2
----
-266
-2964
-3002
query I rowsort
SELECT ALL col0 + - 11 * 1 FROM tab1 AS cor0
----
-8
53
69
query I rowsort
SELECT + 70 * + col1 AS col0 FROM tab1
----
1820
700
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-8277
SELECT DISTINCT ( col1 ) + tab1.col0 DIV col0 AS col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT ( col1 ) + tab1.col0 / col0 AS col1 FROM tab1
----
11
14
27
query I rowsort
SELECT DISTINCT + col0 * + 56 + 14 AS col1 FROM tab0 AS cor0
----
1358
1974
4998
query I rowsort
SELECT + 6 + col1 + 37 * - tab2.col1 AS col2 FROM tab2
----
-1110
-2118
-606
query I rowsort
SELECT 35 + col1 + + col1 AS col0 FROM tab2
----
153
69
97
query I rowsort
SELECT DISTINCT 18 + + col1 FROM tab1
----
28
31
44
query I rowsort
SELECT - col0 * col0 + 89 * + col0 * + tab2.col1 + col1 * col1 AS col0 FROM tab2
----
113575
20225
406975
query I rowsort
SELECT DISTINCT col0 + tab1.col2 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - col0 + + 94 FROM tab1
----
14
30
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8285
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * - tab2.col2 * - tab2.col1 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * - tab2.col2 * - tab2.col1 AS col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * + 82 col2 FROM tab2
----
110126
17794
377364
query I rowsort
SELECT - col2 + + ( - col1 ) * col2 + - tab2.col1 * - tab2.col0 FROM tab2
----
-647
3042
659
query I rowsort
SELECT + 21 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8289
SELECT - col0 + + CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8289
SELECT - col0 + + CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 + + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 19 col1 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT DISTINCT - col2 * - tab0.col0 * col0 AS col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT 49 * - col0 + col1 FROM tab2
----
-312
-3763
-3854
query I rowsort
SELECT + + col1 * - col0 * col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + ( + 57 ) FROM tab1 AS cor0
----
57
query I rowsort
SELECT - ( tab2.col2 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - col0 * 29 + col0 AS col1 FROM tab1
----
-1792
-2240
-84
query I rowsort
SELECT + cor0.col2 + + col1 * + col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT 87 + - col0 AS col2 FROM tab1 AS cor0
----
23
7
84
query I rowsort
SELECT ALL + col1 * cor0.col2 + - col0 * - 90 AS col2 FROM tab1 AS cor0
----
1674
6330
8448
query I rowsort
SELECT ALL - 34 * + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 084eb7f6d2e434c1a92d97f46838c084
query I rowsort
SELECT DISTINCT + 1 * col0 * - cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - + cor0.col2 * col1 + col0 * col2 * col2 FROM tab1 cor0
----
207366
7344
736032
query I rowsort
SELECT ALL + col2 - col2 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + col0 * col2 + col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT - ( 55 + col2 ) FROM tab0
----
-137
-56
-88
query I rowsort
SELECT ALL - - col1 + - col1 * + col0 * 73 AS col0 FROM tab2 AS cor0
----
-15810
-335887
-98022
query I rowsort
SELECT ALL + ( col0 ) + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col1 FROM tab0 cor0
----
70
70
70
query I rowsort
SELECT DISTINCT + 70 * col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
6106
6461
6887
query I rowsort
SELECT - - col1 + ( cor0.col0 ) * + ( - col2 + col2 ) FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8313
SELECT DISTINCT CAST( col2 AS SIGNED ) * - col1 + col0 + col0 AS col1 FROM tab0 AS cor0
----
-27
-2790
-7284
skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - col1 + col0 + col0 AS col1 FROM tab0 AS cor0
----
-27
-2790
-7284
query I rowsort
SELECT 75 * cor0.col0 - col1 FROM tab0 AS cor0
----
1714
2528
6584
query I rowsort
SELECT - - 31 AS col0 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT ( 65 ) FROM tab1
----
65
65
65
query I rowsort
SELECT tab0.col1 + 96 AS col1 FROM tab0
----
182
187
193
query I rowsort
SELECT + ( + tab2.col0 ) + col1 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT + 15 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-20
-74
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8320
SELECT + + col0 + col2 DIV ( - 99 + + col2 ) FROM tab1 AS cor0
----
2
48
63
skipif mysql # not compatible
query I rowsort label-8320
SELECT + + col0 + col2 / ( - 99 + + col2 ) FROM tab1 AS cor0
----
2
48
63
query I rowsort
SELECT - 44 * col1 FROM tab1
----
-1144
-440
-572
query I rowsort
SELECT ( col1 ) * + col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ( 12 ) * - tab1.col2 AS col2 FROM tab1
----
-1152
-648
-684
query I rowsort
SELECT DISTINCT 54 * + col1 AS col1 FROM tab1
----
1404
540
702
query I rowsort
SELECT + 34 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
onlyif mysql # use DIV operator for integer division
query I rowsort label-8326
SELECT 90 * tab0.col1 DIV + col1 FROM tab0
----
90
90
90
skipif mysql # not compatible
query I rowsort label-8326
SELECT 90 * tab0.col1 / + col1 FROM tab0
----
90
90
90
query I rowsort
SELECT DISTINCT 89 * + col2 FROM tab1
----
4806
5073
8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col0 FROM tab1
----
67
67
67
query I rowsort
SELECT + 35 AS col2 FROM tab2
----
35
35
35
query I rowsort
SELECT col0 + + tab2.col0 * col0 AS col0 FROM tab2
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8331
SELECT - col0 DIV col1 + 83 * col2 DIV - col0 AS col1 FROM tab0
----
-114
-2
-76
skipif mysql # not compatible
query I rowsort label-8331
SELECT - col0 / col1 + 83 * col2 / - col0 AS col1 FROM tab0
----
-114
-2
-76
query I rowsort
SELECT + col1 * - 47 FROM tab2
----
-1457
-2773
-799
query I rowsort
SELECT DISTINCT - + col1 * 97 FROM tab2 AS cor0
----
-1649
-3007
-5723
query I rowsort
SELECT ALL + - col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + cor0.col0 * + ( + 89 ) + col2 FROM tab1 cor0
----
321
5753
7216
query I rowsort
SELECT ALL - col1 * - col1 + + col0 * + cor0.col2 + + 63 * + 74 FROM tab2 AS cor0
----
10171
5812
7953
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col0 * 21 col1 FROM tab2 cor0
----
116
1579
1642
onlyif mysql # use DIV operator for integer division
query I rowsort label-8338
SELECT ALL - cor0.col2 + - CAST( ( col1 ) AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL - cor0.col2 + - CAST ( ( col1 ) AS INTEGER ) / + col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT - col1 + + col0 DIV col2 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-8339
SELECT - col1 + + col0 / col2 FROM tab1 AS cor0
----
-13
-26
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8340
SELECT cor0.col1 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8340
SELECT cor0.col1 * + CAST ( NULL AS REAL ) AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col0 * - col2 * 42 AS col0 FROM tab0
----
-1470
-306516
-33264
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * - col2 * - cor0.col0 AS col2 FROM tab0 cor0
----
3298
664027
68026
query I rowsort
SELECT ALL + + col1 * + col1 + col1 * - col2 FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT + + 47 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1136
48
6771
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8345
SELECT CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8345
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( col2 ) + + col0 - - col0 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT ALL - col2 * - ( tab2.col0 * + col0 ) AS col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL - col2 * col1 - + col0 AS col1 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT + col2 * 20 + col1 AS col1 FROM tab2 cor0
----
571
579
777
query I rowsort
SELECT ( col2 ) * col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + - 34 * + col2 * + 88 FROM tab1 AS cor0
----
-161568
-170544
-287232
query I rowsort
SELECT - ( col1 ) * - 8 FROM tab2 AS cor0
----
136
248
472
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) - col2 * 95 AS col1 FROM tab1 cor0
----
-5156
-5425
-9133
onlyif mysql # use DIV operator for integer division
query I rowsort label-8354
SELECT + 86 DIV col2 + col0 FROM tab0 AS cor0
----
121
26
90
skipif mysql # not compatible
query I rowsort label-8354
SELECT + 86 / col2 + col0 FROM tab0 AS cor0
----
121
26
90
query I rowsort
SELECT ALL + - col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 + - ( - col2 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 47 * col2 FROM tab1
----
2538
2679
4512
query I rowsort
SELECT + - cor0.col1 + - 78 FROM tab0 AS cor0
----
-164
-169
-175
query I rowsort
SELECT - - 92 * col1 + + col2 * col2 - col1 FROM tab0 AS cor0
----
15005
8828
8915
query I rowsort
SELECT ALL - ( + ( + col0 ) ) * col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - tab1.col1 + - col2 * col0 AS col1 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT + + 79 + 86 AS col2 FROM tab0 AS cor0
----
165
165
165
onlyif mysql # use DIV operator for integer division
query I rowsort label-8363
SELECT ALL col2 + col0 DIV ( col2 ) AS col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL col2 + col0 / ( col2 ) AS col2 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT DISTINCT - col1 * + col0 + + ( + 11 ) AS col0 FROM tab1 AS cor0
----
-1029
-629
-67
query I rowsort
SELECT ALL - col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 64 AS col0 FROM tab0, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 11a0bc70e08dac4e49bd0140a49d04fb
onlyif mysql # use DIV operator for integer division
query I rowsort label-8367
SELECT - - ( + col2 ) DIV - col0 + + 12 FROM tab1 AS cor0
----
-6
11
12
skipif mysql # not compatible
query I rowsort label-8367
SELECT - - ( + col2 ) / - col0 + + 12 FROM tab1 AS cor0
----
-6
11
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 71 - + col0 col0 FROM tab1 AS cor0
----
-135
-151
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-8369
SELECT ALL + col1 + - col0 DIV col1 - + col2 AS col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL + col1 + - col0 / col1 - + col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col0 * + col2 - + tab2.col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT + + cor0.col2 + + col0 * - 33 FROM tab0 cor0
----
-1154
-2855
-759
query I rowsort
SELECT + 39 + + 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3b792285965591d50328a6a66dcbef61
query I rowsort
SELECT ALL col1 + col2 + + col1 AS col2 FROM tab0 AS cor0
----
195
205
264
onlyif mysql # use DIV operator for integer division
query I rowsort label-8375
SELECT col2 DIV - 55 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8375
SELECT col2 / - 55 FROM tab0
----
-1
0
0
query I rowsort
SELECT 91 * cor0.col2 + col2 + - 79 AS col2 FROM tab1 AS cor0
----
4889
5165
8753
query I rowsort
SELECT DISTINCT - ( + col2 ) + - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - 50 * col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8379
SELECT col1 - cor0.col1 * col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8379
SELECT col1 - cor0.col1 * col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 50 * col2 FROM tab0 AS cor0
----
-1650
-4100
-50
query I rowsort
SELECT DISTINCT col0 - + 62 AS col2 FROM tab2
----
-55
16
17
query I rowsort
SELECT DISTINCT - col0 * 91 AS col2 FROM tab0
----
-2184
-3185
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * - ( col0 + - col1 ) * tab2.col0 col2 FROM tab2
----
-115596
-386942
1176
query I rowsort
SELECT 64 + cor0.col1 FROM tab1, tab0 cor0
----
9 values hashing to 68c47867df5782a3cadf19aa278dd68c
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col0 + - cor0.col2 * - col0 FROM tab0 AS cor0
----
1260
1368
15219
query I rowsort
SELECT DISTINCT col0 * col0 * col0 + col0 AS col1 FROM tab2 AS cor0
----
350
474630
493118
query I rowsort
SELECT - 81 - col0 AS col1 FROM tab1 AS cor0
----
-145
-161
-84
query I rowsort
SELECT ALL - + 86 + col0 FROM tab0 AS cor0
----
-51
-62
3
query I rowsort
SELECT ALL - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
onlyif mysql # use DIV operator for integer division
query I rowsort label-8390
SELECT DISTINCT ( + tab1.col2 ) + - col2 DIV ( col1 + + col2 ) AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT ( + tab1.col2 ) + - col2 / ( col1 + + col2 ) AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + col1 - 22 FROM tab0
----
64
69
75
query I rowsort
SELECT DISTINCT + 66 + + tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
130
146
69
query I rowsort
SELECT DISTINCT - + col2 + 16 * col1 FROM tab2 AS cor0
----
234
469
918
query I rowsort
SELECT - col0 * col1 - + col2 AS col2 FROM tab2 cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - cor0.col0 + col1 col1 FROM tab0 AS cor0
----
-87
27
38
query I rowsort
SELECT - ( ( + col2 ) ) + - ( col2 ) + col2 * + 84 FROM tab2
----
2132
2214
3116
query I rowsort
SELECT ALL - col0 * + tab2.col2 + col0 + col0 AS col0 FROM tab2
----
-175
-1872
-2844
query I rowsort
SELECT - 83 + col2 FROM tab0
----
-1
-50
-82
query I rowsort
SELECT ALL 75 + + col1 * 44 AS col2 FROM tab2
----
1439
2671
823
query I rowsort
SELECT DISTINCT + + cor0.col1 * 63 + - col1 * + col1 * + col1 FROM tab1 AS cor0
----
-1378
-15938
-370
query I rowsort
SELECT + col1 * + 62 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT ALL 34 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT + 39 * + col1 FROM tab1
----
1014
390
507
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT tab0.col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT col0 + 41 AS col1 FROM tab1
----
105
121
44
query I rowsort
SELECT DISTINCT - col1 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + 40 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL col0 - ( col2 ) AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + cor0.col1 * - 6 FROM tab2 AS cor0
----
-102
-186
-354
query I rowsort
SELECT ALL + + cor0.col2 * + col1 + + 67 FROM tab0 AS cor0
----
164
2905
7529
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * 33 col0 FROM tab1 AS cor0
----
1785
1945
3248
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8415
SELECT ALL - col1 * CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL - col1 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + cor0.col0 * - col1 + 98 * col1 AS col1 FROM tab1 AS cor0
----
234
2470
340
onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT DISTINCT - col0 DIV col1 + - col1 FROM tab1 cor0
----
-16
-19
-26
skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT - col0 / col1 + - col1 FROM tab1 cor0
----
-16
-19
-26
query I rowsort
SELECT ALL cor0.col0 + 54 FROM tab1 AS cor0
----
118
134
57
query I rowsort
SELECT + col2 + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + tab2.col2 * 22 AS col0 FROM tab2, tab1, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 3b123a93404777ba4aafa98bb2d0ccc5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * col0 col0 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT + 44 + col2 * 43 FROM tab1 AS cor0
----
2366
2495
4172
query I rowsort
SELECT - - col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8424
SELECT - + col1 DIV cor0.col1 + - 74 * + col2 AS col1 FROM tab1 AS cor0
----
-3997
-4219
-7105
skipif mysql # not compatible
query I rowsort label-8424
SELECT - + col1 / cor0.col1 + - 74 * + col2 AS col1 FROM tab1 AS cor0
----
-3997
-4219
-7105
query I rowsort
SELECT + - cor0.col1 * + ( + col0 ) * col1 - - 72 * col0 FROM tab1 AS cor0
----
-1792
-1812
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8426
SELECT - + col1 DIV + 23 + + cor0.col0 FROM tab2 AS cor0
----
6
76
79
skipif mysql # not compatible
query I rowsort label-8426
SELECT - + col1 / + 23 + + cor0.col0 FROM tab2 AS cor0
----
6
76
79
query I rowsort
SELECT col1 + - col0 + + col1 * col1 FROM tab1 AS cor0
----
102
46
699
query I rowsort
SELECT + - col2 + 96 + 87 AS col1 FROM tab1 AS cor0
----
126
129
87
query I rowsort
SELECT ALL - col0 * + col0 * - 27 + 37 FROM tab0
----
15589
213904
33112
query I rowsort
SELECT ALL tab1.col0 + - col1 + + col1 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL + ( + col0 ) * - 50 FROM tab2
----
-350
-3900
-3950
query I rowsort
SELECT col0 * + 46 + 16 AS col2 FROM tab1 AS cor0
----
154
2960
3696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8433
SELECT DISTINCT + CAST( + 89 AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
4806
5073
8544
skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + CAST ( + 89 AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
4806
5073
8544
query I rowsort
SELECT - col2 * 61 * - col0 AS col1 FROM tab0 AS cor0
----
2135
445178
48312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - 82 * - col2 AS col2 FROM tab0 AS cor0
----
2706
6724
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 10 * - col2 col2 FROM tab2 AS cor0
----
-301
-319
-397
query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab0 cor0
----
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-8439
SELECT ALL + + col2 DIV col2 + cor0.col2 + 3 AS col2 FROM tab0 AS cor0
----
37
5
86
skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL + + col2 / col2 + cor0.col2 + 3 AS col2 FROM tab0 AS cor0
----
37
5
86
query I rowsort
SELECT ALL - 23 * + col0 AS col2 FROM tab2 AS cor0
----
-161
-1794
-1817
query I rowsort
SELECT ALL - - 30 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-203
-2262
-2291
query I rowsort
SELECT DISTINCT col2 + - tab0.col1 + - col0 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT - 17 * col1 * col0 AS col1 FROM tab2 cor0
----
-22831
-3689
-78234
query I rowsort
SELECT col0 + 41 AS col0 FROM tab2
----
119
120
48
query I rowsort
SELECT 10 * col0 * + col2 FROM tab0 cor0
----
350
72980
7920
query I rowsort
SELECT ALL - + 26 + - col2 + + col2 FROM tab2 AS cor0
----
-26
-26
-26
query I rowsort
SELECT ALL - - 26 * col0 AS col1 FROM tab2 cor0
----
182
2028
2054
query I rowsort
SELECT 72 + - col2 AS col0 FROM tab1
----
-24
15
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8450
SELECT ALL 83 DIV cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL 83 / cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8451
SELECT - col2 DIV 88 AS col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8451
SELECT - col2 / 88 AS col2 FROM tab1
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8452
SELECT + cor0.col2 DIV 50 + - col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8452
SELECT + cor0.col2 / 50 + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + 13 AS col2 FROM tab2, tab1 AS cor0
----
13
query I rowsort
SELECT ALL + col0 * + col1 + 81 AS col0 FROM tab0 AS cor0
----
2145
3476
8180
query I rowsort
SELECT - col0 * + col1 * 15 + col1 AS col2 FROM tab1 AS cor0
----
-1144
-15587
-9590
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8456
SELECT + + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8456
SELECT + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 73 + cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d6542428bc77e2f2ee210a1049fe9f30
query I rowsort
SELECT DISTINCT + col1 + 57 * 83 + + col0 AS col2 FROM tab2 AS cor0
----
4769
4827
4868
onlyif mysql # use DIV operator for integer division
query I rowsort label-8459
SELECT + col1 - - ( - col2 ) DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-8459
SELECT + col1 - - ( - col2 ) / cor0.col1 AS col1 FROM tab1 AS cor0
----
24
5
6
query I rowsort
SELECT DISTINCT - - cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8461
SELECT ALL + col0 * - 16 - col1 * col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1515
-470
-657
skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + col0 * - 16 - col1 * col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1515
-470
-657
query I rowsort
SELECT - col0 * - col0 + - ( - col2 ) AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT 98 * - tab2.col2 AS col1 FROM tab2
----
-2548
-2646
-3724
query I rowsort
SELECT DISTINCT + col2 + - 2 AS col2 FROM tab2 AS cor0
----
24
25
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT - col0 - CAST( - 22 + col2 AS SIGNED ) DIV + col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8465
SELECT - col0 - CAST ( - 22 + col2 AS INTEGER ) / + col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL cor0.col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * ( col0 * col2 ) col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT + ( + col1 ) * col1 + 19 AS col2 FROM tab2
----
308
3500
980
query I rowsort
SELECT col1 - - tab0.col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - col0 * + 26 + col2 FROM tab2 AS cor0
----
-155
-2002
-2016
query I rowsort
SELECT ALL cor0.col1 + - 44 * col2 FROM tab0 cor0
----
-1366
-3517
53
query I rowsort
SELECT ALL - cor0.col0 * - ( col2 ) + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + + col2 + - 72 AS col2 FROM tab1 AS cor0
----
-15
-18
24
query I rowsort
SELECT ALL + cor0.col2 * 71 FROM tab0 AS cor0
----
2343
5822
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-8475
SELECT ALL - col0 + - ( col0 ) DIV - col0 + tab2.col1 AS col2 FROM tab2
----
-18
-61
25
skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - col0 + - ( col0 ) / - col0 + tab2.col1 AS col2 FROM tab2
----
-18
-61
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8476
SELECT DISTINCT CAST( 98 AS SIGNED ) AS col1 FROM tab1
----
98
skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT CAST ( 98 AS INTEGER ) AS col1 FROM tab1
----
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8477
SELECT - CAST( - 61 AS SIGNED ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-28
26
37
skipif mysql # not compatible
query I rowsort label-8477
SELECT - CAST ( - 61 AS INTEGER ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-28
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 36 ) * col0 col2 FROM tab2 AS cor0
----
252
2808
2844
onlyif mysql # use DIV operator for integer division
query I rowsort label-8479
SELECT 3 DIV + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8479
SELECT 3 / + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col0 * col2 + 14 + col2 AS col1 FROM tab1 cor0
----
-3577
-7570
-94
query I rowsort
SELECT - ( + col1 ) * + col2 + 89 AS col1 FROM tab2 AS cor0
----
-1445
-557
-748
query I rowsort
SELECT + - 86 * col0 FROM tab0 AS cor0
----
-2064
-3010
-7654
query I rowsort
SELECT DISTINCT - - 24 + - col0 + col0 FROM tab1 AS cor0
----
24
query I rowsort
SELECT - 55 * col2 * col1 AS col0 FROM tab1 AS cor0
----
-31350
-68640
-77220
query I rowsort
SELECT + 5 * - col2 AS col0 FROM tab1 AS cor0
----
-270
-285
-480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col1 + + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL col2 * col0 + - col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT + 1 - col1 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT - + col2 * + col0 + - col0 - - col1 FROM tab1 cor0
----
-139
-3702
-7747
query I rowsort
SELECT ALL - col2 * + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-8492
SELECT DISTINCT + - cor0.col1 DIV col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + - cor0.col1 / col2 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8493
SELECT ALL + col2 + cor0.col2 - col1 * col2 DIV - col2 FROM tab0 cor0
----
152
255
99
skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + col2 + cor0.col2 - col1 * col2 / - col2 FROM tab0 cor0
----
152
255
99
query I rowsort
SELECT - col1 + col1 * - col2 * cor0.col1 FROM tab1 AS cor0
----
-16237
-36530
-5710
query I rowsort
SELECT DISTINCT + - col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + 70 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1190
-2170
-4130
onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT cor0.col2 DIV + col0 AS col2 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8497
SELECT cor0.col2 / + col0 AS col2 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col0 FROM tab2 cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8500
SELECT + CAST( col1 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-8500
SELECT + CAST ( col1 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * - col2 col0 FROM tab1 cor0
----
-3024
-3192
-5376
query I rowsort
SELECT + - 97 * + 98 + col2 AS col0 FROM tab2 cor0
----
-9468
-9479
-9480
query I rowsort
SELECT ALL col2 + + col1 + col1 * - tab1.col0 FROM tab1
----
-573
-931
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT ALL - col1 * + 89 * - col1 + - col1 DIV col0 FROM tab1
----
15041
60156
8900
skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL - col1 * + 89 * - col1 + - col1 / col0 FROM tab1
----
15041
60156
8900
query I rowsort
SELECT ALL 29 * + 91 + col2 FROM tab2
----
2665
2666
2677
query I rowsort
SELECT col0 * - col0 * col2 + col1 FROM tab0
----
-1128
-18922
-649431
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 * - col2 + cor0.col1 col2 FROM tab0 AS cor0
----
-1877
-706
73
query I rowsort
SELECT DISTINCT + ( col0 ) * tab2.col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT ( col1 ) * + col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT - tab2.col1 + - tab2.col0 AS col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT - col0 * + tab1.col2 + tab1.col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT 31 * col0 + col1 FROM tab1
----
119
1994
2493
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8513
SELECT CAST( NULL AS SIGNED ) * + tab0.col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8513
SELECT CAST ( NULL AS INTEGER ) * + tab0.col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 17 * col1 AS col1 FROM tab1 cor0
----
-170
-221
-442
query I rowsort
SELECT ALL 38 - tab1.col0 * 3 FROM tab1, tab2 AS cor0
----
9 values hashing to b8e34c0674dd7c7f0db952ce23349e8e
query I rowsort
SELECT + ( - 20 ) FROM tab1 cor0
----
-20
-20
-20
onlyif mysql # use DIV operator for integer division
query I rowsort label-8517
SELECT - 48 DIV - cor0.col2 FROM tab0 AS cor0
----
0
1
48
skipif mysql # not compatible
query I rowsort label-8517
SELECT - 48 / - cor0.col2 FROM tab0 AS cor0
----
0
1
48
query I rowsort
SELECT 82 + col1 * col2 FROM tab1
----
1330
1486
652
query I rowsort
SELECT DISTINCT + col1 * - col1 * + tab2.col2 AS col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT + 30 AS col2 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT - col1 * col0 + 36 AS col1 FROM tab0
----
-2028
-3359
-8063
query I rowsort
SELECT 73 - col2 AS col2 FROM tab2 AS cor0
----
35
46
47
query I rowsort
SELECT + 55 * - col2 AS col0 FROM tab2 AS cor0
----
-1430
-1485
-2090
onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT ALL col1 DIV + 51 AS col2 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL col1 / + 51 AS col2 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8526
SELECT DISTINCT + - col1 + col1 DIV + cor0.col0 AS col0 FROM tab0 cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT + - col1 + col1 / + cor0.col0 AS col0 FROM tab0 cor0
----
-83
-90
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col0 - + col0 col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL cor0.col1 * 10 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b37ee2ce992e8318c6634347d64c61d
query I rowsort
SELECT - tab1.col1 + - col0 * + tab1.col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT + cor0.col0 + + 53 * col0 AS col0 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT DISTINCT col0 + 79 AS col0 FROM tab0
----
103
114
168
query I rowsort
SELECT cor0.col0 + - 0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col0 * 37 * col2 + col1 * col1 FROM tab2 AS cor0
----
111363
78517
7954
query I rowsort
SELECT DISTINCT + 88 * col0 * col1 AS col0 FROM tab2 AS cor0
----
118184
19096
404976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8535
SELECT ALL + + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + + 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 DISTINCT - cor0.col0 + + 44 col0 FROM tab2 AS cor0
----
-34
-35
37
query I rowsort
SELECT DISTINCT col2 + + 79 AS col2 FROM tab2 AS cor0
----
105
106
117
query I rowsort
SELECT - + ( col1 ) * + col0 + - col2 FROM tab1 cor0
----
-1136
-132
-697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + + 66 * col2 col1 FROM tab2 AS cor0
----
1764
1830
2556
query I rowsort
SELECT ALL - - col2 * - col1 + - col0 FROM tab1 cor0
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8541
SELECT 30 - + col2 * - CAST( 61 * - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-31
-410134
-66399
skipif mysql # not compatible
query I rowsort label-8541
SELECT 30 - + col2 * - CAST ( 61 * - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-31
-410134
-66399
query I rowsort
SELECT cor0.col1 * col1 + 2 * + col0 AS col0 FROM tab1 AS cor0
----
228
329
682
query I rowsort
SELECT ( col0 ) + col1 * col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + col1 + col0 - 72 FROM tab1 AS cor0
----
-43
2
21
query I rowsort
SELECT + + 42 * col2 FROM tab1 AS cor0
----
2268
2394
4032
query I rowsort
SELECT - + col0 * cor0.col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8547
SELECT ALL 31 DIV col2 AS col0 FROM tab0
----
0
0
31
skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL 31 / col2 AS col0 FROM tab0
----
0
0
31
query I rowsort
SELECT - col1 * + 14 + 75 AS col2 FROM tab1 cor0
----
-107
-289
-65
query I rowsort
SELECT ALL + 59 * + col1 * col2 FROM tab1
----
33630
73632
82836
query I rowsort
SELECT ALL + - col1 + + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - - 62 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1186
-1342
-508
query I rowsort
SELECT DISTINCT - - 58 FROM tab0 cor0
----
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT ALL - + cor0.col1 DIV - col1 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-8553
SELECT ALL - + cor0.col1 / - col1 col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + col1 * col2 * - 13 AS col0 FROM tab0 AS cor0
----
-1261
-36894
-97006
query I rowsort
SELECT ALL 55 + - col0 * + ( col2 + col2 ) * + ( col0 ) FROM tab0 cor0
----
-1298989
-2395
-37961
query I rowsort
SELECT + + 32 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8557
SELECT ALL CAST( + col0 * - col1 AS SIGNED ) AS col2 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL CAST ( + col0 * - col1 AS INTEGER ) AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - + 40 + + col2 * cor0.col1 FROM tab0 AS cor0
----
2798
57
7422
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col0 FROM tab2 cor0
----
11
query I rowsort
SELECT + col2 * + col0 * + col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL + + ( - 70 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
query I rowsort
SELECT + col0 * - ( col2 ) + col1 * - col2 + - 84 * + cor0.col1 AS col2 FROM tab1 cor0
----
-10020
-3750
-5058
query I rowsort
SELECT ALL col0 + 60 AS col2 FROM tab0 AS cor0
----
149
84
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + col1 * col0 col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - col2 * cor0.col2 + col2 AS col2 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + col1 * col0 * - col0 + 62 + col2 FROM tab2 AS cor0
----
-105997
-1430
-358868
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) * - col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT - col2 + col2 + - 67 FROM tab0
----
-67
-67
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8569
SELECT ( col2 ) * col1 DIV tab0.col2 + - col1 DIV col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-8569
SELECT ( col2 ) * col1 / tab0.col2 + - col1 / col1 FROM tab0
----
85
90
96
query I rowsort
SELECT ALL 87 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * + col0 + col1 * - col0 col1 FROM tab2
----
-175
-4134
-869
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 + col2 col1 FROM tab2
----
12
13
24
query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col0 - 41 FROM tab0
----
-17
-6
48
query I rowsort
SELECT DISTINCT col0 + 10 AS col2 FROM tab0 AS cor0
----
34
45
99
query I rowsort
SELECT DISTINCT + 46 + - col0 * col2 - col1 FROM tab2 AS cor0
----
-174
-2041
-2973
query I rowsort
SELECT + 70 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
1111
2163
4052
query I rowsort
SELECT DISTINCT + - 57 + + col1 * cor0.col2 FROM tab0 AS cor0
----
2781
40
7405
query I rowsort
SELECT ALL + col0 * - col1 + + col0 * + 13 AS col1 FROM tab1 AS cor0
----
-39
0
192
query I rowsort
SELECT - 50 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT DISTINCT - - 10 FROM tab1, tab1 AS cor0
----
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col2 FROM tab2
----
46
46
46
query I rowsort
SELECT + cor0.col2 + cor0.col0 + 4 FROM tab2, tab1 AS cor0
----
9 values hashing to ae6ec13b93b1304554c0c89053cef02a
query I rowsort
SELECT col1 * cor0.col1 + + 60 FROM tab2 AS cor0
----
1021
349
3541
query I rowsort
SELECT DISTINCT - - col1 * - col1 + + 66 FROM tab2 AS cor0
----
-223
-3415
-895
onlyif mysql # use DIV operator for integer division
query I rowsort label-8586
SELECT DISTINCT - - col2 DIV - col1 + - 63 FROM tab2 AS cor0
----
-63
-65
skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - - col2 / - col1 + - 63 FROM tab2 AS cor0
----
-63
-65
query I rowsort
SELECT ALL - cor0.col2 + 5 AS col0 FROM tab2 AS cor0
----
-21
-22
-33
query I rowsort
SELECT + col2 + 58 FROM tab2 AS cor0
----
84
85
96
query I rowsort
SELECT DISTINCT cor0.col0 - - 68 AS col2 FROM tab1 AS cor0
----
132
148
71
query I rowsort
SELECT ALL - - col2 + ( cor0.col0 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT + cor0.col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 22 AS REAL ) + - col1 AS col2 FROM tab1 AS cor0
----
-4
12
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8593
SELECT 6 * ( col2 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8593
SELECT 6 * ( col2 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + col1 + + col1 AS col0 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT 68 + + col2 AS col2 FROM tab1 cor0
----
122
125
164
query I rowsort
SELECT ALL - 55 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
191
3530
4413
onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT 59 DIV + 29 + + col1 FROM tab0 cor0
----
88
93
99
skipif mysql # not compatible
query I rowsort label-8597
SELECT 59 / + 29 + + col1 FROM tab0 cor0
----
88
93
99
query I rowsort
SELECT ALL ( cor0.col0 ) + col2 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL - 32 * col1 + col0 - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1202
-1808
-6412
query I rowsort
SELECT DISTINCT - + 67 * 73 FROM tab2 AS cor0
----
-4891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8601
SELECT - + CAST( NULL AS SIGNED ) / col0 + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8601
SELECT - + CAST ( NULL AS INTEGER ) / col0 + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8602
SELECT DISTINCT - ( + col2 ) DIV cor0.col0 AS col2 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT - ( + col2 ) / cor0.col0 AS col2 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT - col2 * cor0.col2 + - col0 * 99 FROM tab0 AS cor0
----
-15535
-3465
-3466
query I rowsort
SELECT ALL - 53 * - col1 AS col1 FROM tab0 cor0
----
4558
4823
5141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 * + 31 + + col0 col0 FROM tab0 AS cor0
----
-1306
-1360
-1371
query I rowsort
SELECT col2 + + col1 + + col2 * + col1 FROM tab2
----
1619
701
895
query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----
query I rowsort
SELECT ALL - cor0.col0 + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + cor0.col2 )
----
query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col1 + col1
----
query I rowsort
SELECT ALL tab2.col0 + col0 * col2 + + col0 AS col1 FROM tab2
----
203
2184
3160
query I rowsort
SELECT col2 + col2 + tab1.col2 AS col0 FROM tab1
----
162
171
288
onlyif mysql # use DIV operator for integer division
query I rowsort label-8613
SELECT col2 * - tab2.col0 + col0 * col0 DIV col1 AS col1 FROM tab2
----
-188
-1925
-2635
skipif mysql # not compatible
query I rowsort label-8613
SELECT col2 * - tab2.col0 + col0 * col0 / col1 AS col1 FROM tab2
----
-188
-1925
-2635
query I rowsort
SELECT DISTINCT col1 + col2 FROM tab2 WHERE NOT NULL >= col0 * col0
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND ( col2 )
----
query I rowsort
SELECT ALL col1 * + col0 * col0 + + col1 AS col1 FROM tab2
----
106114
1550
359015
query I rowsort
SELECT ALL tab1.col0 + col0 * + tab1.col1 AS col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT col1 + col0 * col0 * + col2 FROM tab1
----
233482
512
614413
query I rowsort
SELECT ALL tab0.col2 + col0 AS col2 FROM tab0 WHERE NULL < NULL
----
query I rowsort
SELECT col2 * + col2 + + col1 AS col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL + col1 + + col2 * - col2 * - col2 + + col0 FROM tab1 WHERE col0 NOT IN ( col1 )
----
157493
185267
884829
query I rowsort
SELECT DISTINCT col1 * col2 * + col0 + - col2 * col0 * col1 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8623
SELECT ALL col2 DIV col2 + - col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL col2 / col2 + - col0 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT ALL col2 * tab0.col1 + col2 AS col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL + col1 + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - + col0 * - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT cor0.col0 - - col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - + col1 * cor0.col0 - - cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + col0 * col1 + - cor0.col1 * - col0 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT col0 * col2 * - ( 44 ) FROM tab0
----
-1540
-321112
-34848
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 * cor0.col0 col0 FROM tab2, tab0, tab2 cor0
----
27 values hashing to f627ec705ff12c0cc5e9bb9d3ea1197f
query I rowsort
SELECT DISTINCT col0 * + col2 * 80 - col1 AS col1 FROM tab1
----
12934
291830
614387
query I rowsort
SELECT 29 * tab2.col1 * + col2 FROM tab2
----
18734
24273
44486
query I rowsort
SELECT - tab2.col1 * - tab2.col2 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col1 * - col0 + + ( col0 ) * col0 + col2 AS col1 FROM tab0
----
-1455
-2169
-96
query I rowsort
SELECT + - 92 * - col1 * + ( - col2 * col1 ) - + col2 AS col2 FROM tab2 AS cor0
----
-1010382
-2387151
-8326578
query I rowsort
SELECT - col2 * - ( 75 ) * + cor0.col2 - 92 FROM tab2 AS cor0
----
108208
50608
54583
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8638
SELECT - col0 * CAST( 48 AS SIGNED ) + col1 FROM tab0 AS cor0
----
-1066
-1583
-4181
skipif mysql # not compatible
query I rowsort label-8638
SELECT - col0 * CAST ( 48 AS INTEGER ) + col1 FROM tab0 AS cor0
----
-1066
-1583
-4181
query I rowsort
SELECT ALL - - col2 * 90 + - col2 * col1 FROM tab1 AS cor0
----
3456
4560
7392
query I rowsort
SELECT DISTINCT col1 * + 63 - + 34 FROM tab1 cor0
----
1604
596
785
onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT cor0.col1 DIV ( col2 ) - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8641
SELECT cor0.col1 / ( col2 ) - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col2 * + 65 + - col2 AS col2 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT tab1.col1 + 2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 18e817b62724a9e6c343ab9a374e92bc
query I rowsort
SELECT + - col0 * + ( - 58 ) + - col0 AS col2 FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT ALL - col1 * + 60 * - col0 - + col2 FROM tab1 cor0
----
38343
4626
62304
onlyif mysql # use DIV operator for integer division
query I rowsort label-8646
SELECT ALL + col0 DIV col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL + col0 / col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT DISTINCT - col0 * 85 AS col2 FROM tab2 AS cor0
----
-595
-6630
-6715
query I rowsort
SELECT DISTINCT + col2 * - 5 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT DISTINCT col0 * col2 + - col2 * - col2 FROM tab0
----
14022
1881
36
query I rowsort
SELECT + col0 + tab1.col2 + col0 AS col1 FROM tab1
----
185
256
60
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( tab1.col0 )
----
query I rowsort
SELECT ALL tab0.col0 * tab0.col2 + - col2 AS col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT col2 + tab2.col0 FROM tab2 WHERE NOT NULL NOT IN ( + col2 * - col1 + tab2.col1 )
----
query I rowsort
SELECT col1 + - tab0.col2 * - col1 FROM tab0
----
194
2924
7553
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( col1 * col2 / - col2 )
----
query I rowsort
SELECT + col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2
----
query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE ( NULL ) < NULL
----
query I rowsort
SELECT DISTINCT + col2 - col2 FROM tab1 WHERE ( + col0 * col2 ) <= ( NULL )
----
query I rowsort
SELECT - - 94 * - cor0.col1 AS col2 FROM tab1 cor0
----
-1222
-2444
-940
query I rowsort
SELECT ALL + col2 * col0 AS col1 FROM tab1 WHERE ( + col0 ) > col1 + col0
----
query I rowsort
SELECT + cor0.col1 * 23 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to fb8dd46c1d1e50c6add3c75f1eae539c
query I rowsort
SELECT ALL tab1.col2 - col2 * - tab1.col2 * col2 AS col2 FROM tab1
----
157518
185250
884832
onlyif mysql # use DIV operator for integer division
query I rowsort label-8663
SELECT col1 + col0 DIV col0 AS col0 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-8663
SELECT col1 + col0 / col0 AS col0 FROM tab0
----
87
92
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8664
SELECT - col2 * ( + col0 ) + - col0 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8664
SELECT - col2 * ( + col0 ) + - col0 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * 36 FROM tab0
----
-1260
-3204
-864
query I rowsort
SELECT DISTINCT + col0 + + ( 12 ) * col1 FROM tab0 cor0
----
1056
1181
1199
query I rowsort
SELECT ALL col1 * + col2 + + ( - col0 ) * col1 FROM tab2 cor0
----
-3068
-697
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-8668
SELECT ALL + + col0 DIV col0 col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL + + col0 / col0 col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col1 + + cor0.col1 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8670
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) DIV + col2 - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) / + col2 - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8671
SELECT ALL + col0 + + col1 * + cor0.col2 * - CAST( + ( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
11061
25954
90584
skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL + col0 + + col1 * + cor0.col2 * - CAST ( + ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
11061
25954
90584
query I rowsort
SELECT DISTINCT - + col0 + 57 * + col1 * + 65 AS col1 FROM tab2 cor0
----
114848
218517
62906
query I rowsort
SELECT ALL - 79 * col2 * + col1 - - col2 AS col0 FROM tab0 AS cor0
----
-224169
-589416
-7662
query I rowsort
SELECT + cor0.col1 * + ( col0 ) * + col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT - - ( col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * - cor0.col0 col0 FROM tab0 cor0
----
-2031
-3394
-8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8677
SELECT ALL CAST( + 40 AS SIGNED ) + - col1 col1 FROM tab0 AS cor0
----
-46
-51
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL CAST ( + 40 AS INTEGER ) + - col1 col1 FROM tab0 AS cor0
----
-46
-51
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8678
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 48 * - col0 * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 48 * - col0 * col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * - 67 + - col0 FROM tab0 cor0
----
-1632
-2380
-6052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 - cor0.col2 col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT + + col2 - + 76 * - cor0.col1 FROM tab0 AS cor0
----
6569
6998
7373
query I rowsort
SELECT ALL - 44 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-3784
-4004
-4268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + - 92 col2 FROM tab2
----
125
1251
4510
query I rowsort
SELECT ALL - col2 + ( + 12 ) AS col1 FROM tab1
----
-42
-45
-84
query I rowsort
SELECT ALL - 88 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT DISTINCT + col1 + + col2 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL col1 * - 91 AS col1 FROM tab2 AS cor0
----
-1547
-2821
-5369
query I rowsort
SELECT DISTINCT 71 + - ( + cor0.col2 + + col2 ) FROM tab2 AS cor0
----
-5
17
19
query I rowsort
SELECT + 53 AS col2 FROM tab2 cor0
----
53
53
53
query I rowsort
SELECT - + col2 + + col2 + ( - col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - + 28 AS col1 FROM tab2 AS cor0
----
-28
-28
-28
query I rowsort
SELECT + 21 * - col2 * col0 AS col2 FROM tab0 cor0
----
-153258
-16632
-735
query I rowsort
SELECT - + cor0.col0 + col1 * + col0 - col1 FROM tab2 AS cor0
----
1247
179
4465
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 58 col0 FROM tab0 cor0
----
-58
query I rowsort
SELECT ALL 75 + + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6860b5a0df7fe5161eaee44dca3b2b14
onlyif mysql # use DIV operator for integer division
query I rowsort label-8697
SELECT 59 DIV col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8697
SELECT 59 / col2 FROM tab1
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + 47 col1 FROM tab0 AS cor0
----
2111
3442
8146
onlyif mysql # use DIV operator for integer division
query I rowsort label-8699
SELECT + - col0 * col2 - - col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-8699
SELECT + - col0 * col2 - - col2 / + col1 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col0 + col0 * col1 * - 57 AS col0 FROM tab0
----
-117624
-193480
-461554
query I rowsort
SELECT - - col1 * col2 + - 4 * - col2 FROM tab0 AS cor0
----
101
2970
7790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8702
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT + - 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8704
SELECT + col0 * - CAST( NULL AS SIGNED ) + + col1 * - col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8704
SELECT + col0 * - CAST ( NULL AS INTEGER ) + + col1 * - col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - ( - col2 ) * col1 col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + col0 * 85 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT DISTINCT - + col1 * + 30 + - 93 AS col1 FROM tab2 AS cor0
----
-1023
-1863
-603
onlyif mysql # use DIV operator for integer division
query I rowsort label-8708
SELECT DISTINCT + col1 DIV 27 AS col0 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT + col1 / 27 AS col0 FROM tab0 cor0
----
3
query I rowsort
SELECT - + cor0.col1 + 59 * - col0 - col1 FROM tab2 AS cor0
----
-4695
-4720
-475
query I rowsort
SELECT + col1 + 56 + + 3 AS col1 FROM tab1 AS cor0
----
69
72
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 + col2 * - ( 18 ) + - col2 col1 FROM tab1
----
-1022
-1763
-965
query I rowsort
SELECT + cor0.col2 - ( - col0 ) AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - - col1 * col2 + - col2 * + col0 FROM tab1 cor0
----
-3078
-6432
1242
query I rowsort
SELECT ALL - 3 + - col0 + + ( - col2 ) FROM tab0
----
-174
-39
-60
query I rowsort
SELECT DISTINCT + col1 + 16 + + col0 FROM tab0
----
126
148
196
query I rowsort
SELECT - - col0 * + col1 + ( - cor0.col1 ) * 97 FROM tab2 AS cor0
----
-1121
-2790
-306
onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT DISTINCT - cor0.col0 DIV - 96 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT - cor0.col0 / - 96 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - 41 * + col0 + tab0.col0 FROM tab0
----
-1400
-3560
-960
query I rowsort
SELECT + tab1.col1 + + 27 * col1 * col1 FROM tab1
----
18278
2710
4576
query I rowsort
SELECT DISTINCT - 98 AS col0 FROM tab1, tab1 AS cor0
----
-98
query I rowsort
SELECT + 99 * - col0 AS col1 FROM tab0 AS cor0
----
-2376
-3465
-8811
query I rowsort
SELECT ALL - ( col0 ) + + col1 AS col2 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL 91 * + tab0.col1 * + col2 AS col2 FROM tab0
----
258258
679042
8827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8724
SELECT ALL - 40 + + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL - 40 + + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * cor0.col1 + col0 - col1 FROM tab0 AS cor0
----
7334
8279
9347
query I rowsort
SELECT DISTINCT col2 + - col0 * - col2 * col2 FROM tab1 AS cor0
----
207993
737376
8802
query I rowsort
SELECT - 91 * + tab0.col0 AS col0 FROM tab0
----
-2184
-3185
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8728
SELECT col2 DIV - col0 + - CAST( - col2 AS SIGNED ) - col2 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8728
SELECT col2 / - col0 + - CAST ( - col2 AS INTEGER ) - col2 FROM tab1 cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8729
SELECT + - cor0.col1 DIV + col0 col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8729
SELECT + - cor0.col1 / + col0 col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT + + ( ( - col2 ) ) FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - 37 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT - col2 - 89 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1475
2732
5225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8733
SELECT - col2 * col0 + - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8733
SELECT - col2 * col0 + - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8735
SELECT - col0 * - cor0.col0 + CAST( - 53 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1172
523
7868
skipif mysql # not compatible
query I rowsort label-8735
SELECT - col0 * - cor0.col0 + CAST ( - 53 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1172
523
7868
query I rowsort
SELECT cor0.col0 * - 11 FROM tab2 AS cor0
----
-77
-858
-869
query I rowsort
SELECT - 21 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT 20 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT DISTINCT + - 50 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-50
query I rowsort
SELECT - 6 * + cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 7bc6d89ade4de51eb078005606e6352e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * 57 col1 FROM tab0
----
4902
5187
5529
query I rowsort
SELECT + ( + cor0.col1 ) * col0 * - col1 + + 84 + col2 AS col2 FROM tab0 cor0
----
-177387
-329230
-736843
query I rowsort
SELECT 28 * - col1 * - col0 - col2 AS col2 FROM tab0 AS cor0
----
226690
57759
95059
query I rowsort
SELECT - 76 + + 47 AS col2 FROM tab2 AS cor0
----
-29
-29
-29
query I rowsort
SELECT ALL + 27 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL - + cor0.col0 * - col0 * col1 + ( 50 ) * col2 AS col1 FROM tab1 cor0
----
2934
43810
88000
query I rowsort
SELECT DISTINCT - 84 * col1 + - col1 FROM tab0 AS cor0
----
-7310
-7735
-8245
query I rowsort
SELECT ALL - 73 * col2 FROM tab1 AS cor0
----
-3942
-4161
-7008
query I rowsort
SELECT ALL + 48 + 74 FROM tab1, tab0 AS cor0
----
9 values hashing to 3b792285965591d50328a6a66dcbef61
query I rowsort
SELECT ALL col1 * 91 FROM tab1
----
1183
2366
910
query I rowsort
SELECT - 28 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT DISTINCT ( col2 + col0 ) * col1 * + 10 AS col1 FROM tab0
----
155610
34920
49020
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - tab1.col1 col1 FROM tab1
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8754
SELECT CAST( NULL AS SIGNED ) * - tab2.col0 * col0 + + 99 + - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8754
SELECT CAST ( NULL AS INTEGER ) * - tab2.col0 * col0 + + 99 + - col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8755
SELECT - CAST( ( col2 ) AS SIGNED ) + - tab2.col0 - - 50 AS col0 FROM tab2
----
-54
-67
16
skipif mysql # not compatible
query I rowsort label-8755
SELECT - CAST ( ( col2 ) AS INTEGER ) + - tab2.col0 - - 50 AS col0 FROM tab2
----
-54
-67
16
query I rowsort
SELECT - + col0 + 73 * col2 FROM tab1 AS cor0
----
3939
4097
6928
query I rowsort
SELECT ALL col2 * 1 * col2 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL + 62 + + col2 FROM tab0
----
144
63
95
query I rowsort
SELECT - - col1 + 62 FROM tab1 AS cor0
----
72
75
88
query I rowsort
SELECT + ( 74 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT + col2 * - 45 AS col0 FROM tab1 AS cor0
----
-2430
-2565
-4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * ( col0 * - col2 ) + + 57 col0 FROM tab1 AS cor0
----
233529
543
614457
query I rowsort
SELECT DISTINCT - - col1 + + col2 * col1 + col0 FROM tab0 AS cor0
----
229
2948
7642
onlyif mysql # use DIV operator for integer division
query I rowsort label-8765
SELECT col2 * ( col2 ) + - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
1443
675
728
skipif mysql # not compatible
query I rowsort label-8765
SELECT col2 * ( col2 ) + - col0 / col0 AS col2 FROM tab2 AS cor0
----
1443
675
728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8766
SELECT + cor0.col0 + CAST( - 0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8766
SELECT + cor0.col0 + CAST ( - 0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col1 * 51 FROM tab2 AS cor0
----
1581
3009
867
onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT DISTINCT - col0 + col2 DIV col1 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - col0 + col2 / col1 FROM tab1 AS cor0
----
-1
-59
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8769
SELECT col0 * col0 DIV cor0.col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8769
SELECT col0 * col0 / cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + col1 + 67 FROM tab0
----
153
158
164
query I rowsort
SELECT - + col1 * col0 * col0 + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-109416
-42140
-712530
query I rowsort
SELECT DISTINCT - 31 * + cor0.col1 + col2 FROM tab2 AS cor0
----
-1803
-489
-934
query I rowsort
SELECT ALL - col2 * + col2 + 25 AS col2 FROM tab2 AS cor0
----
-1419
-651
-704
query I rowsort
SELECT 44 * - col2 AS col2 FROM tab1
----
-2376
-2508
-4224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8775
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + col2 * + tab2.col1 * - col1 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + col2 * + tab2.col1 * - col1 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - 30 + + ( + tab0.col0 + + 4 ) * + col2 AS col1 FROM tab0
----
7596
894
9
query I rowsort
SELECT cor0.col1 - 7 * - col0 * - cor0.col1 FROM tab1 AS cor0
----
-4470
-520
-7267
query I rowsort
SELECT ALL col0 * + col2 * col2 - - col1 FROM tab2 AS cor0
----
114093
5134
52787
query I rowsort
SELECT ALL + 64 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT - col2 * - col2 + col2 * + tab2.col2 * col1 FROM tab2
----
23328
25992
40560
query I rowsort
SELECT ALL + + ( - col0 ) + + col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8782
SELECT ALL - col0 * + col1 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
36480
4212
99840
skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL - col0 * + col1 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT 3 + - col1 FROM tab0 AS cor0
----
-83
-88
-94
query I rowsort
SELECT DISTINCT - - col2 + col2 + col2 FROM tab2 AS cor0
----
114
78
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8785
SELECT + 1 * col2 + CAST( 23 * - col2 + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1162
-1244
-2099
skipif mysql # not compatible
query I rowsort label-8785
SELECT + 1 * col2 + CAST ( 23 * - col2 + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1162
-1244
-2099
query I rowsort
SELECT + - 77 * col1 + + col0 + col2 FROM tab0 AS cor0
----
-6565
-6836
-7433
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 44 + col2 * + 57 col2 FROM tab0 cor0
----
13
1837
4630
query I rowsort
SELECT col0 + - col0 * ( + col1 ) FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT 93 + + col2 FROM tab0 AS cor0
----
126
175
94
query I rowsort
SELECT ALL col1 + - col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8791
SELECT + - col2 * + cor0.col0 * + CAST( col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-233462
-460
-614387
skipif mysql # not compatible
query I rowsort label-8791
SELECT + - col2 * + cor0.col0 * + CAST ( col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-233462
-460
-614387
onlyif mysql # use DIV operator for integer division
query I rowsort label-8792
SELECT DISTINCT col1 * - ( col1 ) DIV - col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT col1 * - ( col1 ) / - col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - + col1 * ( col2 ) * - col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-8794
SELECT DISTINCT - - col0 - col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT - - col0 - col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
24
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8795
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 + + col1 * + 18 FROM tab2 AS cor0
----
1140
385
565
query I rowsort
SELECT + col0 * + ( + 20 ) FROM tab2 AS cor0
----
140
1560
1580
query I rowsort
SELECT DISTINCT + cor0.col1 - + 52 FROM tab2 AS cor0
----
-21
-35
7
query I rowsort
SELECT cor0.col2 * 89 FROM tab1 cor0
----
4806
5073
8544
query I rowsort
SELECT DISTINCT + 44 + col0 AS col0 FROM tab1 AS cor0
----
108
124
47
query I rowsort
SELECT ALL col2 * 9 FROM tab2 AS cor0
----
234
243
342
query I rowsort
SELECT - 21 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-1631
-607
76
query I rowsort
SELECT ALL - 66 * - col2 + + col2 FROM tab0 AS cor0
----
2211
5494
67
query I rowsort
SELECT DISTINCT + col1 + - 43 * col2 AS col1 FROM tab0 AS cor0
----
-1333
-3435
54
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8807
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT 56 + + 15 AS col0 FROM tab1 cor0
----
71
query I rowsort
SELECT - 41 * col2 FROM tab1 AS cor0
----
-2214
-2337
-3936
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * + col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT col1 + col2 + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-234
-3396
-903
query I rowsort
SELECT ALL 66 * - 66 AS col1 FROM tab0 AS cor0
----
-4356
-4356
-4356
query I rowsort
SELECT ALL - col0 * col0 * + col2 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT + 77 * - 30 FROM tab1 cor0
----
-2310
query I rowsort
SELECT 33 * - cor0.col2 FROM tab0 AS cor0
----
-1089
-2706
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col2 * - col0 col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT tab2.col2 * col0 + col1 AS col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT col2 + ( + tab2.col0 ) * tab2.col1 + col2 FROM tab2
----
1419
271
4654
query I rowsort
SELECT - ( - col0 ) * + col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + + col2 * ( col0 ) + col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8821
SELECT + + col1 * CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8821
SELECT + + col1 * CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * col1 + + 43 * col2 * col0 col0 FROM tab0 AS cor0
----
10914
322095
41452
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - 90 col2 FROM tab0 cor0
----
-2160
-3150
-8010
query I rowsort
SELECT DISTINCT col1 + 90 FROM tab2 AS cor0
----
107
121
149
query I rowsort
SELECT ALL - cor0.col0 + + col1 + 10 FROM tab1 AS cor0
----
-44
-57
33
query I rowsort
SELECT ALL + col0 * col1 * cor0.col0 + col2 FROM tab0 AS cor0
----
118826
49569
720893
query I rowsort
SELECT ALL + cor0.col2 + cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a451dbe509e87d1600234f39388c7bd3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8830
SELECT DISTINCT + tab0.col0 + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + tab0.col0 + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab0, tab1, tab0 cor0
----
24
35
89
query I rowsort
SELECT + col1 + 50 * - col0 AS col1 FROM tab2
----
-319
-3841
-3933
query I rowsort
SELECT + tab1.col1 * col2 + - ( tab1.col2 + + 71 ) * + col2 AS col2 FROM tab1
----
-14784
-5346
-6726
query I rowsort
SELECT tab0.col2 * + 75 + 81 FROM tab0
----
156
2556
6231
query I rowsort
SELECT col1 - - 49 AS col2 FROM tab1
----
59
62
75
query I rowsort
SELECT DISTINCT cor0.col0 * col1 * - ( + col1 ) FROM tab2 AS cor0
----
-22831
-271518
-6727
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * CAST ( + 14 * col2 AS REAL ) AS col1 FROM tab1
----
107520
2268
51072
query I rowsort
SELECT ALL + col1 * - ( col2 * + col2 ) AS col0 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT ( - col1 * 61 ) FROM tab1
----
-1586
-610
-793
query I rowsort
SELECT + + ( col0 ) + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - - cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col0 - ( - cor0.col0 ) FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col0 col0 FROM tab1
----
0
query I rowsort
SELECT ALL - tab2.col0 * - col0 - + 53 FROM tab2
----
-4
6031
6188
query I rowsort
SELECT DISTINCT col0 - - 91 * + tab2.col2 FROM tab2
----
2444
2464
3537
onlyif mysql # use DIV operator for integer division
query I rowsort label-8846
SELECT ALL + 70 DIV 36 + col0 * - CAST( - 82 AS SIGNED ) + cor0.col2 DIV - 54 AS col2 FROM tab2 AS cor0
----
575
6397
6479
skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + 70 / 36 + col0 * - CAST ( - 82 AS INTEGER ) + cor0.col2 / - 54 AS col2 FROM tab2 AS cor0
----
575
6397
6479
query I rowsort
SELECT ALL - col2 * - 66 * + tab2.col2 AS col1 FROM tab2
----
44616
48114
95304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 57 col2 FROM tab2 AS cor0
----
1767
3363
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-8849
SELECT - col0 * cor0.col0 DIV col1 + + col1 AS col0 FROM tab1 cor0
----
-399
-479
26
skipif mysql # not compatible
query I rowsort label-8849
SELECT - col0 * cor0.col0 / col1 + + col1 AS col0 FROM tab1 cor0
----
-399
-479
26
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 + - 63 col0 FROM tab2 AS cor0
----
-35
-35
-35
query I rowsort
SELECT - 17 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-1078
-1347
-25
query I rowsort
SELECT - col0 * - col2 * col1 FROM tab0 cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * - col1 col2 FROM tab0 cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL 49 * tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4a143df2654096d95df8e718411086c1
query I rowsort
SELECT DISTINCT ( - ( - tab0.col1 ) ) FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT ( ( + col1 ) ) FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8858
SELECT col0 + col2 DIV - 35 FROM tab0 AS cor0
----
24
35
87
skipif mysql # not compatible
query I rowsort label-8858
SELECT col0 + col2 / - 35 FROM tab0 AS cor0
----
24
35
87
query I rowsort
SELECT DISTINCT 46 * + 33 FROM tab2, tab0 AS cor0, tab1 cor1
----
1518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + cor0.col1 + col0 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT col1 + col2 * - ( col2 + col1 ) AS col2 FROM tab1 AS cor0
----
-10451
-3809
-4294
query I rowsort
SELECT DISTINCT + 69 * col2 FROM tab1 AS cor0
----
3726
3933
6624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8864
SELECT 36 * - tab0.col2 + CAST( NULL AS SIGNED ) * 2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8864
SELECT 36 * - tab0.col2 + CAST ( NULL AS INTEGER ) * 2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 58 * cor0.col0 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 05c57f4bef60b2b26db094a8c7184266
onlyif mysql # use DIV operator for integer division
query I rowsort label-8866
SELECT DISTINCT 35 DIV 34 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT 35 / 34 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8867
SELECT ALL - col0 + col1 DIV 6 AS col2 FROM tab1 AS cor0
----
-63
-78
1
skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - col0 + col1 / 6 AS col2 FROM tab1 AS cor0
----
-63
-78
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT ALL + 17 * tab2.col0 DIV col1 FROM tab2
----
22
3
79
skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL + 17 * tab2.col0 / col1 FROM tab2
----
22
3
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8870
SELECT col1 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-8870
SELECT col1 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT - 8 * col1 + + col1 * 3 AS col2 FROM tab1 AS cor0
----
-130
-50
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8872
SELECT ALL + 75 DIV 90 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + 75 / 90 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( 40 ) FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT DISTINCT + 71 + 61 AS col0 FROM tab1 AS cor0
----
132
query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0, tab2, tab2 AS cor0
----
24
35
89
query I rowsort
SELECT - ( - cor0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + 99 - + col0 AS col0 FROM tab2
----
20
21
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + cor0.col2 + ( + 83 * + col0 ) col0 FROM tab0 AS cor0
----
-813
2809
7
query I rowsort
SELECT + col0 + + 80 AS col0 FROM tab1 cor0
----
144
160
83
query I rowsort
SELECT - 30 + col2 AS col2 FROM tab1 AS cor0
----
24
27
66
query I rowsort
SELECT 15 + + col0 FROM tab0 AS cor0
----
104
39
50
query I rowsort
SELECT DISTINCT + col0 * - col1 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + 99 + col0 * col2 FROM tab2 AS cor0
----
2127
288
3101
query I rowsort
SELECT DISTINCT + cor0.col1 * + 97 AS col1 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT col1 * 61 FROM tab0 AS cor0
----
5246
5551
5917
query I rowsort
SELECT + - ( - col2 ) * col0 + + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - col0 * + col2 + tab2.col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT ALL + 91 + - 76 * col2 AS col2 FROM tab0
----
-2417
-6141
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT CAST( + 54 + - col0 AS SIGNED ) * col2 DIV + col2 FROM tab0
----
-35
19
30
skipif mysql # not compatible
query I rowsort label-8889
SELECT CAST ( + 54 + - col0 AS INTEGER ) * col2 / + col2 FROM tab0
----
-35
19
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col0 col1 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - + ( + 69 ) + + col1 FROM tab2 AS cor0
----
-10
-38
-52
query I rowsort
SELECT + col1 * col2 - cor0.col0 AS col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - cor0.col1 + 1 * cor0.col1 AS col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8894
SELECT DISTINCT - - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT - - col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - cor0.col2 + - col0 * - col2 col2 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT + + col0 * 45 AS col0 FROM tab2 cor0
----
315
3510
3555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8897
SELECT DISTINCT - cor0.col0 * + CAST( - col2 * - col1 AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
-119593
-51017
-5828
skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT - cor0.col0 * + CAST ( - col2 * - col1 AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
-119593
-51017
-5828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 col2 FROM tab0, tab2, tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8899
SELECT DISTINCT - col2 * col1 DIV tab0.col1 AS col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - col2 * col1 / tab0.col1 AS col1 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8900
SELECT + ( + col0 ) * + col2 + + tab2.col0 DIV col1 AS col0 FROM tab2
----
189
2029
3006
skipif mysql # not compatible
query I rowsort label-8900
SELECT + ( + col0 ) * + col2 + + tab2.col0 / col1 AS col0 FROM tab2
----
189
2029
3006
query I rowsort
SELECT DISTINCT + 63 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( col2 + + col1 ) col1 FROM tab2 AS cor0
----
-1566
-2090
-2210
query I rowsort
SELECT ALL + cor0.col1 + col0 * + col0 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-8904
SELECT DISTINCT - + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - + col2 / - col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - col2 * + 50 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT ALL - + col1 * + cor0.col2 + - 63 * + col1 FROM tab1 cor0
----
-1200
-2067
-3042
query I rowsort
SELECT DISTINCT - + col2 * col2 * + 91 + - cor0.col1 FROM tab1 AS cor0
----
-265382
-295669
-838669
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8908
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - 7 AS col1 FROM tab1 AS cor0
----
378
399
672
query I rowsort
SELECT 55 * cor0.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a8a9ff195cd7a76ac69b10080cf78468
query I rowsort
SELECT 47 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT + + col1 * 85 AS col1 FROM tab0 AS cor0
----
7310
7735
8245
query I rowsort
SELECT ALL + col1 + + 90 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7826
8281
8827
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT cor0.col0 + 41 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8e911d0fa165a41a30587636a450253c
query I rowsort
SELECT ALL + - 72 * col1 FROM tab0 AS cor0
----
-6192
-6552
-6984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8917
SELECT + CAST( NULL AS SIGNED ) * 43 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8917
SELECT + CAST ( NULL AS INTEGER ) * 43 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8918
SELECT + + CAST( col1 AS SIGNED ) col2 FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8918
SELECT + + CAST ( col1 AS INTEGER ) col2 FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8919
SELECT - + CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8919
SELECT - + CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + col0 * cor0.col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL + - col2 * col1 * ( + col0 * cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-329315
-5857632
-60434738
onlyif mysql # use DIV operator for integer division
query I rowsort label-8922
SELECT DISTINCT col2 + - col2 DIV + col0 FROM tab1 AS cor0
----
36
57
95
skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT col2 + - col2 / + col0 FROM tab1 AS cor0
----
36
57
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-8923
SELECT ALL + + col0 DIV col1 - + 99 FROM tab2 cor0
----
-95
-98
-99
skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL + + col0 / col1 - + 99 FROM tab2 cor0
----
-95
-98
-99
query I rowsort
SELECT - + col2 - cor0.col1 * + col1 FROM tab1 AS cor0
----
-157
-265
-730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + col2 * col1 col1 FROM tab0 AS cor0
----
118
2859
7483
query I rowsort
SELECT DISTINCT - ( col0 ) + 64 FROM tab1 AS cor0
----
-16
0
61
query I rowsort
SELECT ALL - 39 + + col1 - + 67 FROM tab2 cor0
----
-47
-75
-89
query I rowsort
SELECT - 94 + col0 FROM tab0 AS cor0
----
-5
-59
-70
query I rowsort
SELECT ALL - - col0 * col0 + 46 AS col0 FROM tab1 AS cor0
----
4142
55
6446
query I rowsort
SELECT - + col0 + - col2 * col1 AS col1 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + col1 + col0 * col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + cor0.col0 * + col2 * + col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 + col0 AS col1 FROM tab1 cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL col0 FROM tab0 WHERE col1 / - col0 IN ( col1 )
----
query I rowsort
SELECT col0 + + col2 AS col1 FROM tab0 WHERE NOT col2 = NULL
----
query I rowsort
SELECT + + col2 * cor0.col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-8937
SELECT + col1 + - col2 DIV col2 + - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8937
SELECT + col1 + - col2 / col2 + - col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 + - col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + ( - col1 ) + - col1 * col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL col1 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + 9 + + col1 FROM tab1 AS cor0
----
19
22
35
query I rowsort
SELECT ALL - tab0.col2 * tab0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 8c9123b78bd6939e7be59da36c5c5c77
query I rowsort
SELECT ALL + col0 * col0 * + col1 AS col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT col0 * - col1 * - col1 + col1 * + col2 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
12613
391196
73903
query I rowsort
SELECT + col2 + - col0 * - col1 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT - col0 + - col1 * col1 * + col1 + - col1 FROM tab2 AS cor0
----
-205516
-29829
-5009
query I rowsort
SELECT ALL col2 * col0 * - col2 FROM tab2
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-8948
SELECT + col2 + col0 * col0 DIV - col2 + col1 FROM tab1
----
-4
43
80
skipif mysql # not compatible
query I rowsort label-8948
SELECT + col2 + col0 * col0 / - col2 + col1 FROM tab1
----
-4
43
80
query I rowsort
SELECT DISTINCT + tab1.col1 * + tab1.col0 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 + tab0.col0 - col1 AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( col0 )
----
query I rowsort
SELECT DISTINCT col1 * col0 * col0 AS col2 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT tab1.col2 * col0 * col1 + col2 FROM tab1
----
36537
4266
99936
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 + - col0 ) NOT BETWEEN col0 AND col1 * col1 * col2
----
query I rowsort
SELECT DISTINCT + col0 + + tab0.col1 - - col2 FROM tab0
----
133
143
262
query I rowsort
SELECT ALL col2 * + tab1.col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL tab1.col2 + - col1 * - tab1.col1 FROM tab1
----
157
265
730
query I rowsort
SELECT ALL - tab1.col0 - - col1 * - tab1.col2 AS col0 FROM tab1
----
-1328
-1407
-634
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + col0 IN ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL - - col2 * col1 + + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + 45 FROM tab2 cor0
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8962
SELECT DISTINCT - col1 DIV cor0.col0 + 48 AS col2 FROM tab0 AS cor0
----
45
46
47
skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - col1 / cor0.col0 + 48 AS col2 FROM tab0 AS cor0
----
45
46
47
query I rowsort
SELECT - col2 + + col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT - col1 + col0 * + col2 AS col1 FROM tab0
----
-62
706
7207
query I rowsort
SELECT ALL - + 57 + - col2 * col0 * - ( - col2 + + 86 ) FROM tab0 cor0
----
29135
2918
41919
query I rowsort
SELECT ALL - - col2 * + col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - tab0.col2 + col1 + - col0 AS col0 FROM tab0
----
-80
29
61
query I rowsort
SELECT DISTINCT - col1 - - cor0.col1 FROM tab2 cor0
----
0
query I rowsort
SELECT col1 / col0 + + col0 * + col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * col0 >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8970
SELECT col0 DIV col2 - col1 AS col2 FROM tab0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-8970
SELECT col0 / col2 - col1 AS col2 FROM tab0
----
-62
-86
-90
query I rowsort
SELECT + col1 * - col1 * - col0 + col1 FROM tab1
----
13533
2054
6410
query I rowsort
SELECT col0 * col2 * col1 AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL + col2 + + tab0.col0 + col2 AS col1 FROM tab0
----
253
37
90
query I rowsort
SELECT + col2 * col0 * - col2 AS col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - tab0.col1 + col2 * col0 FROM tab0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-8976
SELECT col0 DIV col2 + col2 AS col2 FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-8976
SELECT col0 / col2 + col2 AS col2 FROM tab1
----
54
58
96
query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE ( col0 ) BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * + col1 + + col0 * + col2 * - col0 col2 FROM tab2
----
-1106
-153582
-235815
query I rowsort
SELECT ALL + col1 + tab0.col0 * col1 AS col1 FROM tab0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + + col2 * - col2 col0 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT 70 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT - 9 * col0 * - col0 FROM tab2 AS cor0
----
441
54756
56169
query I rowsort
SELECT - 94 * col2 FROM tab0 cor0
----
-3102
-7708
-94
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 - + col1 * + col2 * + col2 FROM tab2 AS cor0
----
-22382
-23205
-35282
query I rowsort
SELECT DISTINCT + - 75 - + col1 FROM tab1 AS cor0
----
-101
-85
-88
query I rowsort
SELECT 14 * - col1 FROM tab0 AS cor0
----
-1204
-1274
-1358
query I rowsort
SELECT ALL cor0.col0 * + cor0.col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT - col0 * - col0 + + 50 * 94 - col1 FROM tab1 AS cor0
----
11087
4683
8786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - ( ( - col0 ) * cor0.col1 ) col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL + col1 * 3 AS col1 FROM tab1 cor0
----
30
39
78
query I rowsort
SELECT 15 + + col0 FROM tab0
----
104
39
50
query I rowsort
SELECT ( col1 * ( col1 ) ) + + tab1.col2 AS col0 FROM tab1
----
157
265
730
query I rowsort
SELECT DISTINCT + + 49 AS col1 FROM tab2 AS cor0
----
49
query I rowsort
SELECT DISTINCT + - col1 + + cor0.col0 * col1 FROM tab1 AS cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 81 * + 91 col2 FROM tab1 AS cor0
----
-7371
-7371
-7371
query I rowsort
SELECT + col0 + - cor0.col2 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) * - col1 + col1 + col1 AS col2 FROM tab1 AS cor0
----
-1222
-1352
-550
query I rowsort
SELECT - + 33 + + col1 FROM tab1 AS cor0
----
-20
-23
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8999
SELECT ALL col1 DIV 81 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL col1 / 81 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 * ( col0 * cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - col2 + + col1 * col0 * 99 AS col1 FROM tab2 AS cor0
----
132919
21456
455572
query I rowsort
SELECT + + col1 * - cor0.col1 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1417
-2080
-670
query I rowsort
SELECT ALL - ( col1 ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + col1 + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT + ( - 29 ) * - col0 AS col2 FROM tab1 AS cor0
----
1856
2320
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9006
SELECT ALL - - CAST( NULL AS SIGNED ) * - 61 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 61 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + + 66 * 97 FROM tab2
----
6419
6433
6461
query I rowsort
SELECT col1 * tab1.col1 * col0 AS col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL tab2.col1 + col2 + + col0 AS col0 FROM tab2
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-9010
SELECT DISTINCT col0 DIV ( 73 ) FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT col0 / ( 73 ) FROM tab0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9011
SELECT ALL col1 DIV tab1.col2 + 68 AS col2 FROM tab1
----
68
68
68
skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL col1 / tab1.col2 + 68 AS col2 FROM tab1
----
68
68
68
query I rowsort
SELECT ( 60 ) * - col1 FROM tab0 cor0
----
-5160
-5460
-5820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9013
SELECT ALL - CAST( 45 AS SIGNED ) FROM tab0 AS cor0
----
-45
-45
-45
skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - CAST ( 45 AS INTEGER ) FROM tab0 AS cor0
----
-45
-45
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9014
SELECT ALL col0 DIV - col1 + col2 FROM tab1
----
51
54
90
skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL col0 / - col1 + col2 FROM tab1
----
51
54
90
query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT + col0 + col0 * - 40 AS col1 FROM tab1 AS cor0
----
-117
-2496
-3120
query I rowsort
SELECT DISTINCT ( tab0.col0 + col0 ) FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT col2 DIV + tab0.col2 + + col1 DIV + col0 AS col2 FROM tab0
----
2
3
4
skipif mysql # not compatible
query I rowsort label-9018
SELECT col2 / + tab0.col2 + + col1 / + col0 AS col2 FROM tab0
----
2
3
4
query I rowsort
SELECT DISTINCT 69 * tab2.col2 AS col1 FROM tab2
----
1794
1863
2622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9020
SELECT ALL - + 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-9020
SELECT ALL - + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9022
SELECT cor0.col2 * col2 * CAST( col0 * + col1 AS SIGNED ) FROM tab1 AS cor0
----
2079360
227448
9584640
skipif mysql # not compatible
query I rowsort label-9022
SELECT cor0.col2 * col2 * CAST ( col0 * + col1 AS INTEGER ) FROM tab1 AS cor0
----
2079360
227448
9584640
query I rowsort
SELECT col1 + col1 * - ( cor0.col1 ) + col1 * 68 * col0 FROM tab1 cor0
----
43430
4654
70564
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + - col0 col1 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9025
SELECT ALL + - cor0.col1 * col0 * - CAST( 47 AS SIGNED ) FROM tab1 AS cor0
----
30080
3666
48880
skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL + - cor0.col1 * col0 * - CAST ( 47 AS INTEGER ) FROM tab1 AS cor0
----
30080
3666
48880
query I rowsort
SELECT + + 67 * col1 + col1 + - col0 AS col0 FROM tab1 cor0
----
1765
616
804
onlyif mysql # use DIV operator for integer division
query I rowsort label-9027
SELECT DISTINCT + cor0.col1 + col1 DIV - 96 FROM tab0 cor0
----
86
91
96
skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT + cor0.col1 + col1 / - 96 FROM tab0 cor0
----
86
91
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 42 col0 FROM tab2
----
68
69
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( col0 ) col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT col0 * + 76 - + 57 FROM tab2 AS cor0
----
475
5871
5947
query I rowsort
SELECT DISTINCT + col2 * col1 + - 1 FROM tab0 AS cor0
----
2837
7461
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9032
SELECT - - col1 DIV - 32 + + col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9032
SELECT - - col1 / - 32 + + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col0 + ( col2 ) * - col1 AS col0 FROM tab2
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort
SELECT ALL - - cor0.col1 * CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col1 * + col1 - - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL col0 + ( - col1 ) * 44 * col1 AS col0 FROM tab1 AS cor0
----
-29741
-4336
-7356
query I rowsort
SELECT DISTINCT - col2 + ( cor0.col0 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - ( col0 ) + - col2 * + col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT - - 92 * + 1 FROM tab0 AS cor0
----
92
92
92
query I rowsort
SELECT ALL + 42 + col2 AS col2 FROM tab1 AS cor0
----
138
96
99
query I rowsort
SELECT DISTINCT - 10 * - 94 * - cor0.col2 FROM tab2 AS cor0
----
-24440
-25380
-35720
query I rowsort
SELECT + 81 * + 87 FROM tab1 AS cor0
----
7047
7047
7047
query I rowsort
SELECT - - ( col1 ) * + col1 + + 57 AS col0 FROM tab2 AS cor0
----
1018
346
3538
query I rowsort
SELECT + col2 + 2 FROM tab2 AS cor0
----
28
29
40
query I rowsort
SELECT DISTINCT col2 + 9 * + col0 AS col1 FROM tab1
----
633
81
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 77 + col1 col1 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT + col2 * - col1 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - col1 + 19 AS col1 FROM tab0 AS cor0
----
-67
-72
-78
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ( col2 ) * 83 FROM tab1
----
4482
4731
7968
onlyif mysql # use DIV operator for integer division
query I rowsort label-9052
SELECT + col1 DIV - ( col1 * col1 ) col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9052
SELECT + col1 / - ( col1 * col1 ) col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + col1 * col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - 7 + + col1 AS col1 FROM tab1 AS cor0
----
19
3
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9055
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 * - col1 + - 29 * col1 FROM tab2 AS cor0
----
-1139
-1736
-3245
onlyif mysql # use DIV operator for integer division
query I rowsort label-9057
SELECT - - col2 + cor0.col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-9057
SELECT - - col2 + cor0.col0 / + col1 AS col0 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT DISTINCT ( col0 ) * + col2 + + ( col1 + - col1 ) FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + tab1.col0 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + 21 * - tab0.col2 FROM tab0
----
-1722
-21
-693
query I rowsort
SELECT DISTINCT 19 * - col0 * - col1 AS col2 FROM tab1
----
12160
1482
19760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9062
SELECT ALL col0 * CAST( 27 AS SIGNED ) + col1 FROM tab1 AS cor0
----
107
1738
2173
skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL col0 * CAST ( 27 AS INTEGER ) + col1 FROM tab1 AS cor0
----
107
1738
2173
query I rowsort
SELECT col1 + col0 + col2 * - col0 FROM tab0
----
-682
-7118
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9064
SELECT ALL + col0 + + col0 * + CAST( 20 AS SIGNED ) - + col2 FROM tab1
----
1287
1584
9
skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + col0 + + col0 * + CAST ( 20 AS INTEGER ) - + col2 FROM tab1
----
1287
1584
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab0.col0 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL + col1 * col0 + tab1.col1 + col2 * + col1 AS col0 FROM tab1
----
1220
1508
2301
query I rowsort
SELECT ALL + col1 * - 40 FROM tab2 AS cor0
----
-1240
-2360
-680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9068
SELECT - col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9068
SELECT - col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 6 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT DISTINCT col2 + + 22 * + col1 AS col2 FROM tab1 AS cor0
----
277
382
626
query I rowsort
SELECT - + col2 * + 54 FROM tab2 AS cor0
----
-1404
-1458
-2052
query I rowsort
SELECT ALL + col0 * ( + 24 + col1 ) AS col1 FROM tab0 cor0
----
10235
2640
4235
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + col0 * 13 FROM tab0
----
1246
336
490
onlyif mysql # use DIV operator for integer division
query I rowsort label-9074
SELECT + 47 + + col2 DIV - col0 col1 FROM tab2
----
44
47
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9074
SELECT + 47 + + col2 / - col0 col1 FROM tab2
----
44
47
47
query I rowsort
SELECT ALL ( tab1.col1 ) * - col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - - ( 47 ) FROM tab0, tab2, tab0 AS cor0
----
47
query I rowsort
SELECT - 0 * + cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + 76 FROM tab0 AS cor0
----
76
76
76
query I rowsort
SELECT - ( col0 ) * + col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - - 66 - col1 AS col2 FROM tab2 AS cor0
----
35
49
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9082
SELECT ALL col0 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL col0 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 86 * col0 + 68 * col1 AS col2 FROM tab0 AS cor0
----
13842
7912
9606
query I rowsort
SELECT DISTINCT - col0 + + col1 * ( col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
-244092
-679131
-9444
query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9086
SELECT DISTINCT - col2 * cor0.col0 + - 87 * 1 + + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - col2 * cor0.col0 + - 87 * 1 + + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9087
SELECT - col0 + + 74 DIV + col0 AS col1 FROM tab1
----
-63
-80
21
skipif mysql # not compatible
query I rowsort label-9087
SELECT - col0 + + 74 / + col0 AS col1 FROM tab1
----
-63
-80
21
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col1 + ( + cor0.col2 * + col2 ) AS col2 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9090
SELECT + + cor0.col0 * + CAST( - col2 AS SIGNED ) + col1 * + col0 FROM tab2 cor0
----
-1659
2574
28
skipif mysql # not compatible
query I rowsort label-9090
SELECT + + cor0.col0 * + CAST ( - col2 AS INTEGER ) + col1 * + col0 FROM tab2 cor0
----
-1659
2574
28
query I rowsort
SELECT 72 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e1618abfe12be6a950cc575d695639b7
query I rowsort
SELECT DISTINCT ( 58 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
1508
1566
2204
onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT ALL - cor0.col1 DIV - cor0.col0 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1f0ec2f5091c72e20606d261f4aec730
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL - cor0.col1 / - cor0.col0 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1f0ec2f5091c72e20606d261f4aec730
onlyif mysql # use DIV operator for integer division
query I rowsort label-9094
SELECT - ( ( + cor0.col2 ) ) + + col2 DIV - col1 + - col0 * + 22 FROM tab1 cor0
----
-122
-1470
-1863
skipif mysql # not compatible
query I rowsort label-9094
SELECT - ( ( + cor0.col2 ) ) + + col2 / - col1 + - col0 * + 22 FROM tab1 cor0
----
-122
-1470
-1863
query I rowsort
SELECT + col1 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + col2 + col2 * 36 col2 FROM tab1 AS cor0
----
2076
2749
4592
query I rowsort
SELECT ALL ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 * col0 + col1 + col0 * col0 col0 FROM tab2 AS cor0
----
220
7703
7838
query I rowsort
SELECT - ( + 67 ) AS col1 FROM tab1 AS cor0
----
-67
-67
-67
query I rowsort
SELECT ALL col1 + col0 * col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT 66 * col1 + col1 * 3 FROM tab2
----
1173
2139
4071
query I rowsort
SELECT + - 38 * col1 - col1 FROM tab1 AS cor0
----
-1014
-390
-507
query I rowsort
SELECT ALL - ( col0 ) + tab1.col2 * - col1 * + col2 FROM tab1
----
-119888
-32554
-75819
query I rowsort
SELECT ALL - col2 + col0 * 81 FROM tab1
----
189
5127
6384
query I rowsort
SELECT ALL - + cor0.col2 * col1 + ( + col1 ) FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9106
SELECT col0 * col1 - + CAST( NULL AS DECIMAL ) * + 24 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9106
SELECT col0 * col1 - + CAST ( NULL AS REAL ) * + 24 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + 25 FROM tab2 AS cor0
----
-34
-6
8
query I rowsort
SELECT ALL - - col2 + col2 + + 23 FROM tab0 AS cor0
----
187
25
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9109
SELECT ALL col0 * 10 + col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
30
646
806
skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL col0 * 10 + col0 / + col1 AS col0 FROM tab1 AS cor0
----
30
646
806
query I rowsort
SELECT + + col1 + + ( - ( + col2 ) ) FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9111
SELECT col2 DIV 49 + - col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-9111
SELECT col2 / 49 + - col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT ALL col0 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-9113
SELECT DISTINCT - - cor0.col0 + col0 + + 35 DIV + col2 FROM tab1 cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT - - cor0.col0 + col0 + + 35 / + col2 FROM tab1 cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9114
SELECT cor0.col0 * - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9114
SELECT cor0.col0 * - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 87 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT - col1 * + 4 + - col1 FROM tab0 cor0
----
-430
-455
-485
query I rowsort
SELECT + col0 * - 69 * col2 AS col1 FROM tab1
----
-11178
-251712
-529920
query I rowsort
SELECT ALL + - col1 + 44 FROM tab0 AS cor0
----
-42
-47
-53
query I rowsort
SELECT + col2 + - 93 AS col0 FROM tab0 AS cor0
----
-11
-60
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + col2 * + col2 col1 FROM tab2 cor0
----
1484
716
769
query I rowsort
SELECT - col2 * 64 * col2 AS col0 FROM tab0
----
-430336
-64
-69696
query I rowsort
SELECT ALL + col0 * - col2 * 74 FROM tab0
----
-2590
-540052
-58608
query I rowsort
SELECT ALL tab1.col0 * col0 * col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT - col0 * col0 + col2 * col0 FROM tab2 AS cor0
----
-3239
-4056
140
onlyif mysql # use DIV operator for integer division
query I rowsort label-9125
SELECT - - 5 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9125
SELECT - - 5 / cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * col0 col1 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT + + cor0.col0 + - col2 * - 86 AS col1 FROM tab0 AS cor0
----
121
2862
7141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col2 FROM tab2 AS cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) + col2 FROM tab0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9130
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9130
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9131
SELECT - col1 + - 15 DIV - col0 AS col0 FROM tab2
----
-17
-29
-59
skipif mysql # not compatible
query I rowsort label-9131
SELECT - col1 + - 15 / - col0 AS col0 FROM tab2
----
-17
-29
-59
query I rowsort
SELECT + 98 * + 85 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 451dc547442b7caf51ae165cb0df3651
query I rowsort
SELECT DISTINCT - 73 + col2 AS col0 FROM tab2
----
-35
-46
-47
query I rowsort
SELECT DISTINCT ( - tab2.col2 ) + - ( - col0 * - col2 ) AS col1 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT 85 + + col2 AS col0 FROM tab0 AS cor0
----
118
167
86
query I rowsort
SELECT ALL + col1 + - col2 * 99 AS col1 FROM tab0 AS cor0
----
-2
-3181
-8027
query I rowsort
SELECT - ( col0 ) * col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9138
SELECT + 52 DIV 45 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9138
SELECT + 52 / 45 FROM tab0
----
1
1
1
query I rowsort
SELECT ( - col1 ) - - tab0.col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT ( + 0 ) - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT col0 * 67 - col2 FROM tab1
----
147
4231
5264
query I rowsort
SELECT ( - col1 ) * + col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + tab2.col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT col1 - + col0 * + col1 FROM tab0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + + col2 col0 FROM tab1 AS cor0
----
142
145
184
query I rowsort
SELECT - - 53 AS col0 FROM tab0 AS cor0
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-9147
SELECT + cor0.col2 + col1 * col0 DIV col1 FROM tab2 cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-9147
SELECT + cor0.col2 + col1 * col0 / col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT - cor0.col1 + cor0.col1 * + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-16237
-36530
-5710
query I rowsort
SELECT ALL - 93 * cor0.col1 FROM tab0 AS cor0
----
-7998
-8463
-9021
query I rowsort
SELECT + + 44 - - col2 FROM tab2 AS cor0
----
70
71
82
query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + col2 * col2 + ( 13 ) AS col0 FROM tab2 AS cor0
----
1457
689
742
query I rowsort
SELECT DISTINCT - - col0 * col1 AS col0 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9154
SELECT DISTINCT + col2 * col0 + ( ( col0 ) + col0 ) DIV + col0 FROM tab2 AS cor0
----
191
2030
3004
skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT + col2 * col0 + ( ( col0 ) + col0 ) / + col0 FROM tab2 AS cor0
----
191
2030
3004
query I rowsort
SELECT col0 + + 19 * col2 * cor0.col0 FROM tab0 cor0
----
138751
15072
700
query I rowsort
SELECT + col0 * + 20 AS col0 FROM tab0 cor0
----
1780
480
700
query I rowsort
SELECT - col1 * + col2 * + col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + 61 * - col0 AS col2 FROM tab1 AS cor0
----
-183
-3904
-4880
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + col0 + 78 * col1 FROM tab0 AS cor0
----
6732
7187
7601
query I rowsort
SELECT DISTINCT - - ( 56 ) * - col2 FROM tab2 AS cor0
----
-1456
-1512
-2128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9162
SELECT - - CAST( NULL AS DECIMAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9162
SELECT - - CAST ( NULL AS REAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * - 66 AS col0 FROM tab1 AS cor0
----
-198
-4224
-5280
query I rowsort
SELECT - cor0.col0 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT - col2 * - col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9166
SELECT ALL + + CAST( - col2 AS SIGNED ) + col2 * ( 20 ) AS col1 FROM tab1 AS cor0
----
1026
1083
1824
skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL + + CAST ( - col2 AS INTEGER ) + col2 * ( 20 ) AS col1 FROM tab1 AS cor0
----
1026
1083
1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-9167
SELECT DISTINCT col2 + + 13 DIV col0 FROM tab2 AS cor0
----
26
28
38
skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT col2 + + 13 / col0 FROM tab2 AS cor0
----
26
28
38
query I rowsort
SELECT col0 * ( - col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - 93 col1 FROM tab1 AS cor0
----
1209
2418
930
query I rowsort
SELECT col0 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 58 col2 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT ALL + ( - col0 ) + - col0 AS col2 FROM tab0 cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + + col0 * - 15 col0 FROM tab0
----
-1244
-274
-428
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9175
SELECT ALL - 61 + col2 * CAST( + col1 * col0 AS SIGNED ) FROM tab2 AS cor0
----
119591
50973
5798
skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL - 61 + col2 * CAST ( + col1 * col0 AS INTEGER ) FROM tab2 AS cor0
----
119591
50973
5798
onlyif mysql # use DIV operator for integer division
query I rowsort label-9176
SELECT DISTINCT + col0 * + col0 + CAST( + 15 AS SIGNED ) DIV + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT + col0 * + col0 + CAST ( + 15 AS INTEGER ) / + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT col2 * 84 FROM tab2 cor0
----
2184
2268
3192
query I rowsort
SELECT - ( col0 + ( + 44 ) ) FROM tab2
----
-122
-123
-51
query I rowsort
SELECT - tab2.col1 * tab2.col0 + 45 FROM tab2
----
-1298
-172
-4557
query I rowsort
SELECT DISTINCT col0 * + ( col1 * - col2 ) FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL 94 + + 4 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT - + col0 * ( + ( col0 ) ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - - col1 + + col2 + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT DISTINCT + + col0 * 88 AS col0 FROM tab1 AS cor0
----
264
5632
7040
query I rowsort
SELECT col1 * + col2 * col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + 20 * tab0.col1 + - col1 + + col1 AS col1 FROM tab0
----
1720
1820
1940
query I rowsort
SELECT DISTINCT col1 + + col0 + - tab0.col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + tab2.col1 + - col0 + + col2 FROM tab2
----
-24
51
7
query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
-37
query I rowsort
SELECT ( - col1 ) + + col0 + + col0 AS col0 FROM tab1
----
-20
118
147
query I rowsort
SELECT DISTINCT - col0 * + col0 + col2 AS col0 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT + ( - col1 ) * + col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 6 * + col1 FROM tab2
----
102
186
354
query I rowsort
SELECT 93 * - col0 FROM tab2
----
-651
-7254
-7347
query I rowsort
SELECT DISTINCT - 95 * + col0 FROM tab1
----
-285
-6080
-7600
query I rowsort
SELECT + 7 + - col0 + ( col2 ) FROM tab1
----
0
23
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9198
SELECT DISTINCT - 76 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - 76 / col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL + 36 * - col0 * + cor0.col1 FROM tab2 AS cor0
----
-165672
-48348
-7812
onlyif mysql # use DIV operator for integer division
query I rowsort label-9200
SELECT + col0 + + ( - col2 ) DIV + col0 AS col2 FROM tab1
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-9200
SELECT + col0 + + ( - col2 ) / + col0 AS col2 FROM tab1
----
-15
64
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9201
SELECT ALL - CAST( NULL AS SIGNED ) / 31 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL - CAST ( NULL AS INTEGER ) / 31 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT - col1 + ( col0 * col1 ) AS col0 FROM tab1
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-9204
SELECT ALL + cor0.col1 + + col2 DIV - cor0.col1 + + cor0.col2 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
186
3653
7686
skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + cor0.col1 + + col2 / - cor0.col1 + + cor0.col2 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
186
3653
7686
query I rowsort
SELECT ALL - col0 * - cor0.col1 + col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9206
SELECT + CAST( NULL AS SIGNED ) + 91 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9206
SELECT + CAST ( NULL AS INTEGER ) + 91 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col1 * + col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + tab1.col2 * - 38 + col0 FROM tab1
----
-2049
-2102
-3568
query I rowsort
SELECT DISTINCT + - 71 + 48 FROM tab1 AS cor0
----
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9210
SELECT DISTINCT - CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * - 42 + col1 AS col0 FROM tab2 AS cor0
----
325
3335
query I rowsort
SELECT - 45 * col1 - col0 FROM tab0 AS cor0
----
-3894
-4184
-4400
query I rowsort
SELECT ALL ( + ( + col1 ) ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + col1 - 18 AS col2 FROM tab2 cor0
----
-1
13
41
query I rowsort
SELECT - - ( - col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL cor0.col2 * col1 + cor0.col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
1331
1432
617
query I rowsort
SELECT + 83 + 7 AS col0 FROM tab0 cor0
----
90
90
90
query I rowsort
SELECT ( col1 ) + col2 * - ( + col0 ) FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + + cor0.col0 - - 90 AS col2 FROM tab0 AS cor0
----
114
125
179
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - col2 col0 FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT + col1 + cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-9222
SELECT ALL - + cor0.col1 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL - + cor0.col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 76 col1 FROM tab1
----
-4
12
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9224
SELECT tab0.col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9224
SELECT tab0.col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - ( 93 ) - + col2 AS col0 FROM tab0 AS cor0
----
11
60
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 80 ) + col0 col0 FROM tab2 AS cor0
----
158
159
87
query I rowsort
SELECT col2 * + 91 + - cor0.col1 AS col0 FROM tab0 cor0
----
-6
2917
7371
query I rowsort
SELECT ALL - + 64 FROM tab1 AS cor0
----
-64
-64
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9229
SELECT 57 * + cor0.col1 + + cor0.col0 DIV - col0 - - 89 * + col1 FROM tab0 AS cor0
----
12555
13285
14161
skipif mysql # not compatible
query I rowsort label-9229
SELECT 57 * + cor0.col1 + + cor0.col0 / - col0 - - 89 * + col1 FROM tab0 AS cor0
----
12555
13285
14161
query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - + 64 * col0 FROM tab2 AS cor0
----
-448
-4992
-5056
query I rowsort
SELECT DISTINCT - 77 * col0 AS col1 FROM tab1
----
-231
-4928
-6160
query I rowsort
SELECT DISTINCT 85 * 78 AS col0 FROM tab1 AS cor0
----
6630
onlyif mysql # use DIV operator for integer division
query I rowsort label-9234
SELECT ALL + col0 * col2 DIV cor0.col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + col0 * col2 / cor0.col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + 70 + 34 FROM tab2 cor0
----
104
104
104
query I rowsort
SELECT DISTINCT ( - col0 ) * + col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - col2 * + col1 - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT - - cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT cor0.col0 + col1 * + col2 AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT col2 + - col1 * col0 AS col2 FROM tab2 cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-9241
SELECT ALL 17 * 42 DIV + col0 + col2 FROM tab0
----
21
62
90
skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL 17 * 42 / + col0 + col2 FROM tab0
----
21
62
90
query I rowsort
SELECT ALL col1 + - 11 AS col1 FROM tab1
----
-1
15
2
query I rowsort
SELECT ALL + 61 * col0 + + col2 FROM tab2
----
454
4784
4857
query I rowsort
SELECT - + col1 * col2 + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT col2 - + col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - col1 + - 43 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
27761
35960
65903
query I rowsort
SELECT ALL + col1 * 95 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT - col1 + - ( 18 ) * - col1 AS col0 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT ALL + col0 * + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT DISTINCT - - cor0.col1 * 32 FROM tab2 AS cor0
----
1888
544
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT ALL cor0.col0 DIV + 50 FROM tab2 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL cor0.col0 / + 50 FROM tab2 cor0
----
0
1
1
query I rowsort
SELECT + + col2 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9253
SELECT + - cor0.col1 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-9253
SELECT + - cor0.col1 + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - col1 + + 21 * 87 FROM tab0 AS cor0
----
1730
1736
1741
query I rowsort
SELECT - 18 FROM tab0, tab1 cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 + + col0 col2 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9259
SELECT DISTINCT - col1 DIV - col1 + - 48 AS col0 FROM tab2 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT - col1 / - col1 + - 48 AS col0 FROM tab2 AS cor0
----
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-9260
SELECT + - col1 * col1 DIV + cor0.col2 FROM tab0 AS cor0
----
-100
-224
-9409
skipif mysql # not compatible
query I rowsort label-9260
SELECT + - col1 * col1 / + cor0.col2 FROM tab0 AS cor0
----
-100
-224
-9409
query I rowsort
SELECT - ( 64 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT DISTINCT col0 + col2 - + col0 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9263
SELECT cor0.col1 * ( col1 ) * + cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9263
SELECT cor0.col1 * ( col1 ) * + cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9264
SELECT ALL - tab0.col2 DIV + col0 + col0 - + col1 AS col0 FROM tab0
----
-2
-62
-63
skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL - tab0.col2 / + col0 + col0 - + col1 AS col0 FROM tab0
----
-2
-62
-63
query I rowsort
SELECT ALL + col0 * ( col0 * - col0 ) FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT + cor0.col2 * 48 + - col2 * cor0.col2 FROM tab2 AS cor0
----
380
567
572
onlyif mysql # use DIV operator for integer division
query I rowsort label-9267
SELECT col0 DIV 17 + - col2 AS col2 FROM tab0 AS cor0
----
-32
-77
1
skipif mysql # not compatible
query I rowsort label-9267
SELECT col0 / 17 + - col2 AS col2 FROM tab0 AS cor0
----
-32
-77
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) + col1 col2 FROM tab2 cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 71 * col0 col1 FROM tab1 AS cor0
----
213
4544
5680
query I rowsort
SELECT + tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + 86 * - col0 + - col0 FROM tab0 AS cor0
----
-2088
-3045
-7743
query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 * + 83 AS col0 FROM tab2 cor0
----
612
6533
6574
query I rowsort
SELECT + col2 + - col2 * 39 * ( col1 + - 32 ) FROM tab1 AS cor0
----
12690
48963
71232
query I rowsort
SELECT + col0 * col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 65 + - col1 col1 FROM tab2 AS cor0
----
34
48
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9276
SELECT DISTINCT + - ( cor0.col0 ) + CAST( NULL AS SIGNED ) * + col2 col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT + - ( cor0.col0 ) + CAST ( NULL AS INTEGER ) * + col2 col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9277
SELECT - - 55 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9277
SELECT - - 55 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 * - 75 FROM tab0 AS cor0
----
-2389
-6059
22
query I rowsort
SELECT + - ( col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9280
SELECT DISTINCT + col2 - ( + cor0.col2 ) DIV cor0.col0 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT + col2 - ( + cor0.col2 ) / cor0.col0 FROM tab0 AS cor0
----
1
32
82
query I rowsort
SELECT DISTINCT col1 * col0 + 76 - + col1 AS col2 FROM tab1 AS cor0
----
1103
128
706
query I rowsort
SELECT ALL col0 - 98 AS col2 FROM tab0 AS cor0
----
-63
-74
-9
query I rowsort
SELECT ALL - - col2 + - col1 + 5 FROM tab2 AS cor0
----
-28
1
26
query I rowsort
SELECT + 29 * tab1.col2 - col0 FROM tab1
----
1563
1589
2704
query I rowsort
SELECT cor0.col0 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL - - ( 38 ) * col1 FROM tab0 AS cor0
----
3268
3458
3686
query I rowsort
SELECT DISTINCT - + col0 * + 13 + col0 AS col1 FROM tab0 AS cor0
----
-1068
-288
-420
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9288
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + cor0.col1 * + col2 FROM tab2 AS cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + cor0.col1 * + col2 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col2 FROM tab0 cor0
----
-93
-93
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col0 col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - + 9 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-297
-738
-9
query I rowsort
SELECT ALL col2 * col2 * - tab2.col2 FROM tab2
----
-17576
-19683
-54872
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT + 42 + col0 AS col0 FROM tab1
----
106
122
45
query I rowsort
SELECT ALL + col1 + col1 + col2 * ( - col2 ) * + col0 AS col0 FROM tab2
----
-114042
-5041
-52610
query I rowsort
SELECT - ( col1 ) * + col1 + + col0 FROM tab0
----
-7372
-8192
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col0 * + col2 col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9298
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 98 + col2 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 98 + col2 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT + + col1 * col1 * col0 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-9300
SELECT ALL col0 DIV - tab2.col1 + + col1 * + col2 + col0 AS col1 FROM tab2
----
1611
721
844
skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL col0 / - tab2.col1 + + col1 * + col2 + col0 AS col1 FROM tab2
----
1611
721
844
query I rowsort
SELECT ALL 72 + - col1 FROM tab0
----
-14
-19
-25
query I rowsort
SELECT 20 * + 79 - - col1 AS col1 FROM tab1 AS cor0
----
1590
1593
1606
query I rowsort
SELECT 21 + + 85 * - col1 AS col2 FROM tab1 cor0
----
-1084
-2189
-829
query I rowsort
SELECT ALL col2 + - 27 FROM tab1 AS cor0
----
27
30
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9305
SELECT - col0 DIV + col1 - cor0.col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9305
SELECT - col0 / + col1 - cor0.col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9306
SELECT ALL + + 88 * - col0 - + cor0.col1 DIV - 14 AS col1 FROM tab1 AS cor0
----
-263
-5632
-7040
skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL + + 88 * - col0 - + cor0.col1 / - 14 AS col1 FROM tab1 AS cor0
----
-263
-5632
-7040
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 9b60cb1db2fb2fa5700b0e572b4b6546
onlyif mysql # use DIV operator for integer division
query I rowsort label-9308
SELECT DISTINCT + col1 DIV col0 + + col2 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT + col1 / col0 + + col2 FROM tab1 AS cor0
----
57
62
96
query I rowsort
SELECT ALL 44 - + col2 * + col2 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
207980
737324
8792
query I rowsort
SELECT col0 * + 25 AS col1 FROM tab2 AS cor0
----
175
1950
1975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9311
SELECT - CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9311
SELECT - CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 * 59 * - ( - col1 ) FROM tab1 AS cor0
----
33630
73632
82836
query I rowsort
SELECT ALL col0 * - 59 AS col2 FROM tab0 AS cor0
----
-1416
-2065
-5251
query I rowsort
SELECT ALL - col0 + + 84 AS col0 FROM tab0 cor0
----
-5
49
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-9315
SELECT + + col0 DIV + ( - cor0.col0 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9315
SELECT + + col0 / + ( - cor0.col0 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + 6 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT + col2 + + ( + 13 ) * + tab0.col1 FROM tab0
----
1151
1262
1265
query I rowsort
SELECT ALL - + col0 * 66 AS col2 FROM tab0 AS cor0
----
-1584
-2310
-5874
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9320
SELECT ALL col1 * + CAST( NULL AS SIGNED ) + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + + col2 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT 72 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT tab1.col0 * - ( 97 ) AS col2 FROM tab1
----
-291
-6208
-7760
query I rowsort
SELECT - col0 + 49 FROM tab2 AS cor0
----
-29
-30
42
query I rowsort
SELECT - - 61 + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2977
3310
9277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + + col2 * + cor0.col2 col1 FROM tab0 AS cor0
----
1130
42
6765
query I rowsort
SELECT - 97 + + col1 FROM tab0 AS cor0
----
-11
-6
0
query I rowsort
SELECT ALL + 9 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT DISTINCT 33 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
33
query I rowsort
SELECT col2 * + col1 * col0 FROM tab1
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col2 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - - col0 + 62 AS col2 FROM tab2 AS cor0
----
140
141
69
query I rowsort
SELECT col1 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - col1 * - ( + 95 ) FROM tab0 AS cor0
----
8170
8645
9215
query I rowsort
SELECT - col0 * col2 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-14596
-1584
-70
query I rowsort
SELECT ALL 22 * 91 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 382eba3a06b4dcf70793f7ac610a5e35
query I rowsort
SELECT ALL - col0 * + col0 * col0 FROM tab1
----
-262144
-27
-512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT ALL - col2 DIV col1 + + 51 AS col2 FROM tab1 AS cor0
----
44
46
49
skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL - col2 / col1 + + 51 AS col2 FROM tab1 AS cor0
----
44
46
49
query I rowsort
SELECT ALL + + col2 * 68 FROM tab2 AS cor0
----
1768
1836
2584
query I rowsort
SELECT ALL + + cor0.col1 + col0 + col0 AS col1 FROM tab2 AS cor0
----
175
215
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 4 col2 FROM tab2 AS cor0
----
-124
-236
-68
query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + 97 * + col0 FROM tab2
----
679
7566
7663
query I rowsort
SELECT ALL - 46 * col0 FROM tab1
----
-138
-2944
-3680
query I rowsort
SELECT cor0.col2 * - 57 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-3052
-3239
-5459
query I rowsort
SELECT ALL - + 28 * + col1 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT ALL col1 * + col0 + col0 * - ( col0 ) FROM tab2 AS cor0
----
-1482
-4898
168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9351
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT + col1 * col1 * col1 FROM tab1 cor0
----
1000
17576
2197
query I rowsort
SELECT + 21 * col1 + col2 AS col0 FROM tab0 AS cor0
----
1839
1993
2038
query I rowsort
SELECT cor0.col1 + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 - col1 * + col0 * col0 FROM tab2 cor0
----
-106059
-1492
-358930
query I rowsort
SELECT 32 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT + col2 * tab0.col0 * + col1 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9359
SELECT - ( col2 ) DIV col1 + + col2 AS col2 FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-9359
SELECT - ( col2 ) / col1 + + col2 AS col2 FROM tab1 AS cor0
----
52
52
89
query I rowsort
SELECT + - cor0.col1 + + col2 * col1 FROM tab2 cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9361
SELECT - - CAST( NULL AS SIGNED ) + col1 * col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9361
SELECT - - CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9362
SELECT - cor0.col0 * 17 DIV - col0 AS col0 FROM tab0 AS cor0
----
17
17
17
skipif mysql # not compatible
query I rowsort label-9362
SELECT - cor0.col0 * 17 / - col0 AS col0 FROM tab0 AS cor0
----
17
17
17
query I rowsort
SELECT + col0 + + ( + col0 ) * - 75 - 49 FROM tab0
----
-1825
-2639
-6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-9364
SELECT ( + 55 ) DIV - tab1.col0 + ( - col1 * - col2 ) FROM tab1
----
1248
1386
570
skipif mysql # not compatible
query I rowsort label-9364
SELECT ( + 55 ) / - tab1.col0 + ( - col1 * - col2 ) FROM tab1
----
1248
1386
570
query I rowsort
SELECT 55 + + col1 + col2 FROM tab0 AS cor0
----
153
174
228
query I rowsort
SELECT DISTINCT - col0 + - col1 + + tab2.col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + ( + 63 ) + + col0 FROM tab0
----
152
87
98
query I rowsort
SELECT DISTINCT 71 FROM tab1, tab2, tab1 cor0
----
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * + cor0.col1 col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to c60831db2936bdb61fb09e86d08b0883
onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT DISTINCT + - col1 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + - col1 / cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL + - col0 * - col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-9372
SELECT - + 83 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-2
-83
skipif mysql # not compatible
query I rowsort label-9372
SELECT - + 83 / cor0.col2 FROM tab0 AS cor0
----
-1
-2
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9373
SELECT + 96 * col2 DIV + col0 + - col2 * col1 FROM tab0 AS cor0
----
-2706
-7374
-95
skipif mysql # not compatible
query I rowsort label-9373
SELECT + 96 * col2 / + col0 + - col2 * col1 FROM tab0 AS cor0
----
-2706
-7374
-95
query I rowsort
SELECT ALL col0 * - col2 * col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-207926
-737267
-8722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + col2 col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - + 81 + col2 * col1 FROM tab2 cor0
----
1453
565
756
query I rowsort
SELECT col0 * col2 * 19 AS col2 FROM tab0 AS cor0
----
138662
15048
665
query I rowsort
SELECT 44 * + cor0.col2 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT + - 96 + col0 * + col0 + + col2 * + cor0.col2 * 0 FROM tab2 AS cor0
----
-47
5988
6145
query I rowsort
SELECT DISTINCT - - col2 * + col1 * 91 AS col1 FROM tab0 AS cor0
----
258258
679042
8827
query I rowsort
SELECT ALL - col2 + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + 91 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # use DIV operator for integer division
query I rowsort label-9383
SELECT ALL + + col0 * col1 DIV 7 + - col1 + + ( 3 ) FROM tab1 AS cor0
----
-12
138
84
skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL + + col0 * col1 / 7 + - col1 + + ( 3 ) FROM tab1 AS cor0
----
-12
138
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 19 col0 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT DISTINCT col1 + + 51 * - 30 FROM tab2 AS cor0
----
-1471
-1499
-1513
query I rowsort
SELECT + - col0 * + 31 FROM tab1 AS cor0
----
-1984
-2480
-93
query I rowsort
SELECT ALL - - col2 + 25 * + col2 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT ALL col2 * col1 * + col2 + - col2 AS col2 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT DISTINCT - col0 + + col1 + cor0.col0 AS col2 FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9390
SELECT + CAST( NULL AS SIGNED ) + + 0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9390
SELECT + CAST ( NULL AS INTEGER ) + + 0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT 14 * - 78 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 04c673185a9a5114af276b5ad32b8a1e
query I rowsort
SELECT DISTINCT tab2.col0 + + 68 * 23 - tab2.col1 AS col1 FROM tab2
----
1540
1583
1626
query I rowsort
SELECT + 86 * col1 + - col0 FROM tab2 AS cor0
----
1383
2659
4996
query I rowsort
SELECT DISTINCT - col0 + 99 FROM tab1 AS cor0
----
19
35
96
query I rowsort
SELECT ALL - 64 + - col1 AS col2 FROM tab1 AS cor0
----
-74
-77
-90
query I rowsort
SELECT DISTINCT + 78 + col0 * ( + col2 * cor0.col2 ) AS col0 FROM tab2 AS cor0
----
114154
5181
52806
query I rowsort
SELECT DISTINCT - col2 + col0 * - cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
-45
-6051
-6262
query I rowsort
SELECT DISTINCT + col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL 25 * - col1 + cor0.col2 + col2 FROM tab1 AS cor0
----
-133
-136
-542
query I rowsort
SELECT + 9 * col2 + 90 AS col0 FROM tab1 AS cor0
----
576
603
954
query I rowsort
SELECT DISTINCT col2 + ( col2 ) * - col1 + + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9403
SELECT DISTINCT col0 DIV col0 + - ( - col0 ) + + col1 FROM tab2 AS cor0
----
138
39
97
skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT col0 / col0 + - ( - col0 ) + + col1 FROM tab2 AS cor0
----
138
39
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT ALL - col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL - col1 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - - col2 * - 80 + - col1 AS col0 FROM tab0 AS cor0
----
-177
-2726
-6651
query I rowsort
SELECT + + 15 AS col2 FROM tab1 AS cor0
----
15
15
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col2 FROM tab0
----
-15
-15
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-9408
SELECT ALL - + 83 * 88 + - col1 * col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-7305
-7337
-7386
skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL - + 83 * 88 + - col1 * col2 / col1 AS col0 FROM tab0 AS cor0
----
-7305
-7337
-7386
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col2 FROM tab1 AS cor0
----
-88
-88
-88
query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL + ( 39 ) * col1 + col1 * col2 FROM tab1 AS cor0
----
1755
2418
960
query I rowsort
SELECT ( - tab1.col2 ) + col2 AS col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9413
SELECT ALL + - 68 + cor0.col0 DIV + 93 AS col2 FROM tab0 AS cor0
----
-68
-68
-68
skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL + - 68 + cor0.col0 / + 93 AS col2 FROM tab0 AS cor0
----
-68
-68
-68
query I rowsort
SELECT - ( + 1 ) AS col2 FROM tab0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9415
SELECT + CAST( NULL AS SIGNED ) / tab1.col2 + - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9415
SELECT + CAST ( NULL AS INTEGER ) / tab1.col2 + - col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT 35 + + ( + col0 + - 27 ) * col1 DIV - tab0.col1 AS col0 FROM tab0
----
-27
27
38
skipif mysql # not compatible
query I rowsort label-9416
SELECT 35 + + ( + col0 + - 27 ) * col1 / - tab0.col1 AS col0 FROM tab0
----
-27
27
38
query I rowsort
SELECT + col1 + ( + col0 ) * - col0 AS col2 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT + 45 * + col1 FROM tab1
----
1170
450
585
onlyif mysql # use DIV operator for integer division
query I rowsort label-9419
SELECT + col0 + + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9419
SELECT + col0 + + col1 / col1 AS col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT col2 * col1 * + 13 AS col2 FROM tab0 AS cor0
----
1261
36894
97006
query I rowsort
SELECT ALL - 20 + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 9587973dd957c4efe7c538db83fbb878
query I rowsort
SELECT + 96 FROM tab1, tab0 cor0 CROSS JOIN tab0, tab1 cor1
----
81 values hashing to e03080212e3345d8b37e64e3264019c4
query I rowsort
SELECT DISTINCT 4 * + 19 FROM tab0
----
76
query I rowsort
SELECT - ( - cor0.col1 ) + - ( + ( col2 ) + col2 ) AS col2 FROM tab0 AS cor0
----
-73
20
95
query I rowsort
SELECT DISTINCT 45 * col1 FROM tab0
----
3870
4095
4365
query I rowsort
SELECT DISTINCT 22 * col0 * + tab2.col0 FROM tab2
----
1078
133848
137302
query I rowsort
SELECT 96 * col0 AS col1 FROM tab0 AS cor0
----
2304
3360
8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col2 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - col2 * - tab2.col0 + + col2 * - col1 AS col2 FROM tab2
----
-648
2356
494
query I rowsort
SELECT ALL + col2 + 87 * col2 + + col0 FROM tab2
----
2366
2383
3423
query I rowsort
SELECT tab0.col0 + - 89 * tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 6a5ca83f02af2b92621ce58085895b58
query I rowsort
SELECT ALL col1 + + col2 * - 19 FROM tab2
----
-435
-482
-705
query I rowsort
SELECT DISTINCT - col1 + 75 FROM tab0
----
-11
-16
-22
query I rowsort
SELECT + col2 * - 75 AS col2 FROM tab2
----
-1950
-2025
-2850
query I rowsort
SELECT DISTINCT + 54 * col1 + col2 FROM tab0 AS cor0
----
4677
4996
5239
query I rowsort
SELECT ALL - - 40 + cor0.col1 * + col2 FROM tab0 AS cor0
----
137
2878
7502
onlyif mysql # use DIV operator for integer division
query I rowsort label-9437
SELECT - col0 DIV - col2 + col0 AS col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-9437
SELECT - col0 / - col2 + col0 AS col2 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT + col2 + - 50 AS col1 FROM tab0 AS cor0
----
-17
-49
32
query I rowsort
SELECT + 62 + col0 * col1 FROM tab2 AS cor0
----
1405
279
4664
onlyif mysql # use DIV operator for integer division
query I rowsort label-9440
SELECT ( 62 ) + + col2 * col1 DIV 75 FROM tab0 AS cor0
----
161
63
99
skipif mysql # not compatible
query I rowsort label-9440
SELECT ( 62 ) + + col2 * col1 / 75 FROM tab0 AS cor0
----
161
63
99
query I rowsort
SELECT + 42 + col2 * + col1 * + col2 AS col1 FROM tab0 cor0
----
139
611926
93696
onlyif mysql # use DIV operator for integer division
query I rowsort label-9442
SELECT DISTINCT - + col1 + + col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - + col1 + + col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT - - ( 84 ) + col2 AS col0 FROM tab0 AS cor0
----
117
166
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 10 col0 FROM tab2 AS cor0
----
-70
-780
-790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9445
SELECT - CAST( NULL AS SIGNED ) + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9445
SELECT - CAST ( NULL AS INTEGER ) + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - col1 - - tab1.col2 FROM tab1
----
111
163
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9447
SELECT ALL + + col2 * CAST( col0 + - col1 * + col1 AS SIGNED ) FROM tab1 AS cor0
----
-2052
-36342
-8544
skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL + + col2 * CAST ( col0 + - col1 * + col1 AS INTEGER ) FROM tab1 AS cor0
----
-2052
-36342
-8544
query I rowsort
SELECT ALL + + cor0.col1 * 99 + col1 FROM tab0 AS cor0
----
8600
9100
9700
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 AS cor1, tab2, tab2 cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9450
SELECT + col2 + - CAST( cor0.col2 AS SIGNED ) FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9450
SELECT + col2 + - CAST ( cor0.col2 AS INTEGER ) FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9451
SELECT ALL + - 88 * col0 + col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + - 88 * col0 + col2 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 62 * - 90 AS col2 FROM tab1 AS cor0
----
-5580
-5580
-5580
onlyif mysql # use DIV operator for integer division
query I rowsort label-9453
SELECT ALL + - ( 28 ) * - col2 - 26 DIV + col1 FROM tab1 cor0
----
1511
1594
2686
skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL + - ( 28 ) * - col2 - 26 / + col1 FROM tab1 cor0
----
1511
1594
2686
query I rowsort
SELECT ALL - - 16 AS col1 FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT ALL - 95 * + col0 AS col2 FROM tab2 AS cor0
----
-665
-7410
-7505
query I rowsort
SELECT DISTINCT + ( ( cor0.col0 ) ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col1 * col1 * + 68 - col0 * - col0 FROM tab2
----
242792
25893
65397
query I rowsort
SELECT ALL - col1 * 90 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1568
-2817
-5336
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9459
SELECT + cor0.col1 + - col2 * + CAST( cor0.col1 AS SIGNED ) + col1 col0 FROM tab0 AS cor0
----
-2666
-7280
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9459
SELECT + cor0.col1 + - col2 * + CAST ( cor0.col1 AS INTEGER ) + col1 col0 FROM tab0 AS cor0
----
-2666
-7280
97
query I rowsort
SELECT 10 + col0 * col2 AS col0 FROM tab1 AS cor0
----
172
3658
7690
onlyif mysql # use DIV operator for integer division
query I rowsort label-9461
SELECT + - cor0.col2 * col2 DIV + col1 + 59 * - col1 AS col0 FROM tab0 cor0
----
-5086
-5442
-5723
skipif mysql # not compatible
query I rowsort label-9461
SELECT + - cor0.col2 * col2 / + col1 + 59 * - col1 AS col0 FROM tab0 cor0
----
-5086
-5442
-5723
query I rowsort
SELECT - 96 + - col1 * - col2 * ( + cor0.col0 ) FROM tab1 AS cor0
----
36384
4116
99744
query I rowsort
SELECT - + col0 * col0 + + ( + 40 ) * col2 FROM tab0 cor0
----
-1185
-4641
744
query I rowsort
SELECT ALL + 73 * + col2 FROM tab0
----
2409
5986
73
query I rowsort
SELECT ALL - col1 * - 76 FROM tab1
----
1976
760
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-9466
SELECT ALL col1 DIV + 29 FROM tab0
----
2
3
3
skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL col1 / + 29 FROM tab0
----
2
3
3
query I rowsort
SELECT ALL 29 * + col1 * - tab1.col2 AS col1 FROM tab1
----
-16530
-36192
-40716
query I rowsort
SELECT - - col2 + col2 * - col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL col2 * - col2 * 18 FROM tab0
----
-121032
-18
-19602
query I rowsort
SELECT - ( col0 ) * col1 - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - cor0.col0 * - tab1.col0 + - 34 FROM tab1, tab2 AS cor0
----
9 values hashing to d2809d96cf58d31c0b64dbc103d4809f
query I rowsort
SELECT col2 + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL - col1 + 40 * col2 FROM tab2 AS cor0
----
1049
1503
981
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9474
SELECT ALL col1 * - CAST( NULL AS SIGNED ) * + 1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) * + 1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + 22 * col1 + col1 AS col1 FROM tab1 cor0
----
166
219
595
query I rowsort
SELECT ALL 46 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9477
SELECT + col0 + - CAST( + 36 * col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1164
-2863
skipif mysql # not compatible
query I rowsort label-9477
SELECT + col0 + - CAST ( + 36 * col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1164
-2863
query I rowsort
SELECT ALL col1 + + 56 AS col2 FROM tab1 AS cor0
----
66
69
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 91 * 79 col1 FROM tab2 AS cor0
----
186914
194103
273182
query I rowsort
SELECT - col1 * col1 * cor0.col2 + + col0 - col0 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + + cor0.col1 * - col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - 88 - col0 * col0 FROM tab1
----
-4184
-6488
-97
query I rowsort
SELECT - 80 + + col1 * 50 AS col1 FROM tab0
----
4220
4470
4770
query I rowsort
SELECT col2 * - col1 * - ( col0 + col2 ) AS col1 FROM tab0
----
1276002
161766
3492
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + + ( 77 ) col0 FROM tab0
----
113
134
248
onlyif mysql # use DIV operator for integer division
query I rowsort label-9486
SELECT 81 DIV + col0 AS col0 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-9486
SELECT 81 / + col0 AS col0 FROM tab0
----
0
2
3
query I rowsort
SELECT + col1 * ( - tab1.col2 ) + col2 * 77 AS col2 FROM tab1
----
2754
3819
6144
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to a8f0522dfcc0ffd1116145dd0d0134ff
query I rowsort
SELECT ALL tab1.col1 * + ( + col0 ) + col0 * + col0 AS col0 FROM tab1
----
4736
7440
87
query I rowsort
SELECT DISTINCT col0 + - ( tab1.col2 ) * - col0 + - 64 * col2 AS col2 FROM tab1
----
-3291
1616
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9491
SELECT ALL - - cor0.col0 + cor0.col1 DIV col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL - - cor0.col0 + cor0.col1 / col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + + col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT cor0.col2 + ( + col2 ) * col0 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 66 + col1 * col1 col1 FROM tab0
----
2869
5218
9343
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) + - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT col1 + - col0 - - col0 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 20 + - col0 AS col0 FROM tab2 AS cor0
----
-58
-59
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 + - col2 col2 FROM tab0 AS cor0
----
-111
-30
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * col2 * col0 col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT DISTINCT 56 * - col0 FROM tab1 cor0
----
-168
-3584
-4480
query I rowsort
SELECT + 2 * cor0.col0 * + 89 FROM tab2 cor0
----
1246
13884
14062
query I rowsort
SELECT DISTINCT + col1 * - col0 + ( + 91 ) FROM tab1 AS cor0
----
-549
-949
13
query I rowsort
SELECT DISTINCT - 9 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9504
SELECT DISTINCT cor0.col2 DIV - col0 + + 53 FROM tab1 AS cor0
----
35
52
53
skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT cor0.col2 / - col0 + + 53 FROM tab1 AS cor0
----
35
52
53
query I rowsort
SELECT DISTINCT - - col0 * col2 * ( col0 ) FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT 78 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT - - ( ( - col1 ) ) * 29 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT - col0 + + 49 AS col1 FROM tab0 AS cor0
----
-40
14
25
query I rowsort
SELECT - col2 * - 68 AS col1 FROM tab1
----
3672
3876
6528
query I rowsort
SELECT ALL - 2 FROM tab0, tab1 cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * + col2 col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - + cor0.col2 * + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - 41 + + col2 * - col1 FROM tab1 AS cor0
----
-1289
-1445
-611
query I rowsort
SELECT + 16 * + cor0.col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-3024
-32448
-48032
query I rowsort
SELECT DISTINCT - col1 + 56 FROM tab1 AS cor0
----
30
43
46
query I rowsort
SELECT cor0.col2 * col1 * + col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + - 13 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1118
-1183
-1261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + tab0.col2 + col1 col0 FROM tab0
----
191
212
266
onlyif mysql # use DIV operator for integer division
query I rowsort label-9519
SELECT + 40 DIV - col0 FROM tab0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9519
SELECT + 40 / - col0 FROM tab0
----
-1
-1
0
query I rowsort
SELECT DISTINCT - col0 + col1 * - col2 AS col1 FROM tab2
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT col2 + - tab0.col2 + - ( ( + col2 ) + col2 ) DIV col1 col0 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9521
SELECT col2 + - tab0.col2 + - ( ( + col2 ) + col2 ) / col1 col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT ALL + + col0 + cor0.col2 * ( 83 ) AS col2 FROM tab0 AS cor0
----
118
2763
6895
query I rowsort
SELECT - ( col2 ) - 21 FROM tab0 AS cor0
----
-103
-22
-54
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - ( + cor0.col1 ) * 66 AS col1 FROM tab2 AS cor0
----
-1122
-2046
-3894
query I rowsort
SELECT ALL - 2 + + col1 FROM tab2 AS cor0
----
15
29
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + cor0.col2 * + cor1.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dddbb42661917809cdda89c779966e7e
query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 * + col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL col0 + + ( col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-9530
SELECT ALL - - cor0.col0 DIV col2 AS col1 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - - cor0.col0 / col2 AS col1 FROM tab0 cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col0 * col1 * - col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - col0 * cor0.col0 - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-10634
-16202
-7972
query I rowsort
SELECT + col0 * + col0 + 11 * - col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-16224
-2030
-26781
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9535
SELECT + col0 * CAST( - col1 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
-104
-1053
-650
skipif mysql # not compatible
query I rowsort label-9535
SELECT + col0 * CAST ( - col1 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT - - col0 + 51 AS col2 FROM tab2 AS cor0
----
129
130
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9537
SELECT - + CAST( col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9537
SELECT - + CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - 93 + col0 FROM tab0 AS cor0
----
-4
-58
-69
query I rowsort
SELECT ALL + + 57 * - ( col2 ) * col2 FROM tab1 AS cor0
----
-166212
-185193
-525312
query I rowsort
SELECT 39 * - 54 FROM tab1 cor0
----
-2106
-2106
-2106
query I rowsort
SELECT + 62 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1488
2170
5518
query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) + col1 * col2 * col1 FROM tab2 cor0
----
10903
25940
90428
query I rowsort
SELECT + col2 * 93 + + col2 AS col2 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT DISTINCT 11 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
231
384
897
query I rowsort
SELECT + - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - 71 + + tab2.col0 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to 153d4cf6d746bed3657c15af2d1adb69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9548
SELECT DISTINCT col1 DIV col0 + ( + tab1.col0 ) FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT col1 / col0 + ( + tab1.col0 ) FROM tab1
----
11
64
80
query I rowsort
SELECT ALL + col0 * col0 * - col1 + col0 AS col1 FROM tab0
----
-118790
-49512
-720722
query I rowsort
SELECT + col0 * col0 + ( - col2 ) FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT ALL col0 + col0 * + col1 - 81 * 61 AS col1 FROM tab1
----
-3821
-4237
-4860
query I rowsort
SELECT DISTINCT + - 35 * cor0.col2 AS col2 FROM tab2 cor0
----
-1330
-910
-945
query I rowsort
SELECT ALL ( col1 ) + - tab1.col2 - 52 AS col1 FROM tab1
----
-135
-80
-99
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT - 62 * + tab1.col0 + tab1.col0 AS col1 FROM tab1
----
-183
-3904
-4880
query I rowsort
SELECT DISTINCT 53 * col1 FROM tab1 AS cor0
----
1378
530
689
query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 AS col2 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 25 ) col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT ALL - 27 * - col0 FROM tab1 AS cor0
----
1728
2160
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT - cor0.col0 DIV + col1 col0 FROM tab1 AS cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9560
SELECT - cor0.col0 / + col1 col0 FROM tab1 AS cor0
----
-6
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9561
SELECT ALL col2 DIV - col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL col2 / - col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ( 39 ) FROM tab2, tab2 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT ALL + cor0.col1 + - 75 AS col0 FROM tab1 AS cor0
----
-49
-62
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-9564
SELECT - 94 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9564
SELECT - 94 / col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - ( + 60 ) FROM tab2 AS cor0
----
-60
query I rowsort
SELECT DISTINCT - cor0.col2 * 1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - 44 * 50 FROM tab1 AS cor0
----
-2200
-2200
-2200
query I rowsort
SELECT ALL 9 + 89 FROM tab0 AS cor0
----
98
98
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9569
SELECT - 58 + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-57
-57
-57
skipif mysql # not compatible
query I rowsort label-9569
SELECT - 58 + col1 / col1 AS col0 FROM tab1 AS cor0
----
-57
-57
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9570
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9571
SELECT + cor0.col0 + + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-9571
SELECT + cor0.col0 + + col2 / - col1 AS col1 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT 60 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-9573
SELECT DISTINCT - ( - col2 ) * + col1 DIV + ( col1 ) FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - ( - col2 ) * + col1 / + ( col1 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL col2 + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL + ( col2 ) * col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT 17 * col2 AS col1 FROM tab0 AS cor0
----
1394
17
561
query I rowsort
SELECT ALL - 36 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9579
SELECT DISTINCT + CAST( 81 AS SIGNED ) * col1 - col0 AS col0 FROM tab0 AS cor0
----
6942
7282
7822
skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + CAST ( 81 AS INTEGER ) * col1 - col0 AS col0 FROM tab0 AS cor0
----
6942
7282
7822
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9580
SELECT CAST( col1 + + col1 * + 45 AS SIGNED ) FROM tab0
----
3956
4186
4462
skipif mysql # not compatible
query I rowsort label-9580
SELECT CAST ( col1 + + col1 * + 45 AS INTEGER ) FROM tab0
----
3956
4186
4462
query I rowsort
SELECT ALL - ( - ( + tab2.col2 ) * 36 ) AS col2 FROM tab2
----
1368
936
972
query I rowsort
SELECT DISTINCT 31 + + col1 + + col0 FROM tab2 AS cor0
----
127
168
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + cor0.col2 col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + ( - cor0.col1 ) + col1 - col2 * - 40 AS col0 FROM tab0 AS cor0
----
1320
3280
40
query I rowsort
SELECT + + 14 FROM tab1 cor0
----
14
14
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-9586
SELECT DISTINCT 76 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT 76 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col1 + col2 * 58 * col0 AS col1 FROM tab0 AS cor0
----
2127
423375
46022
query I rowsort
SELECT ( + 42 ) + - col1 FROM tab0
----
-44
-49
-55
query I rowsort
SELECT - 1 + - col2 AS col1 FROM tab2
----
-27
-28
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab0.col2 ) + col1 * - col1 * - tab0.col2 col2 FROM tab0
----
244101
679124
9410
query I rowsort
SELECT + cor0.col1 * - cor0.col1 FROM tab1, tab2, tab1 cor0
----
27 values hashing to d0b2c3e52486851dabc33a8847596040
query I rowsort
SELECT - + col2 * - col0 + + 47 FROM tab2 AS cor0
----
2075
236
3049
query I rowsort
SELECT - cor0.col1 * + 32 FROM tab2 AS cor0
----
-1888
-544
-992
query I rowsort
SELECT ALL col2 * 76 AS col2 FROM tab1 AS cor0
----
4104
4332
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-9595
SELECT + col0 + cor0.col2 DIV - 35 AS col0 FROM tab2 AS cor0
----
7
78
78
skipif mysql # not compatible
query I rowsort label-9595
SELECT + col0 + cor0.col2 / - 35 AS col0 FROM tab2 AS cor0
----
7
78
78
query I rowsort
SELECT ALL - col2 + + 72 * - 94 AS col2 FROM tab2 AS cor0
----
-6794
-6795
-6806
query I rowsort
SELECT - cor0.col1 + - ( 53 + - col0 ) * ( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-1457
1416
425
query I rowsort
SELECT ALL col2 + ( + 50 ) AS col0 FROM tab1 AS cor0
----
104
107
146
query I rowsort
SELECT DISTINCT - - col0 * 80 - - col1 FROM tab1 AS cor0
----
266
5130
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-9600
SELECT ALL + col1 + + cor0.col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
13
31
58
skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + col1 + + cor0.col0 / - col1 AS col2 FROM tab2 AS cor0
----
13
31
58
query I rowsort
SELECT ALL - cor0.col1 * 43 + + col2 FROM tab2 cor0
----
-1306
-2511
-693
query I rowsort
SELECT + + col2 * 26 FROM tab1 AS cor0
----
1404
1482
2496
onlyif mysql # use DIV operator for integer division
query I rowsort label-9603
SELECT col0 DIV - col0 - + col1 col2 FROM tab2
----
-18
-32
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9603
SELECT col0 / - col0 - + col1 col2 FROM tab2
----
-18
-32
-60
query I rowsort
SELECT ALL tab0.col1 + - col1 + - ( 31 ) FROM tab0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT col2 * - 58 FROM tab0 AS cor0
----
-1914
-4756
-58
query I rowsort
SELECT - - col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL - + col1 * col1 * + col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT + ( cor0.col0 ) * cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to caa3e6469432624a16bd3084f5c6de58
query I rowsort
SELECT - + col2 - - col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - + col1 * col2 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-9613
SELECT ALL - col0 DIV + ( - col2 ) + col2 * col2 FROM tab1 AS cor0
----
2916
3250
9216
skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - col0 / + ( - col2 ) + col2 * col2 FROM tab1 AS cor0
----
2916
3250
9216
query I rowsort
SELECT + cor0.col0 + - col1 * ( cor0.col2 ) AS col1 FROM tab1 cor0
----
-1168
-1401
-506
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 + + ( - col2 * col0 ) - + CAST ( + col2 * col2 AS REAL ) FROM tab1 AS cor0
----
-16883
-3052
-6887
query I rowsort
SELECT - col0 + col2 * + col2 * col2 AS col0 FROM tab1 cor0
----
157461
185129
884656
onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT + col1 + col2 DIV col0 - col2 DIV 14 AS col2 FROM tab1 AS cor0
----
41
6
8
skipif mysql # not compatible
query I rowsort label-9617
SELECT + col1 + col2 / col0 - col2 / 14 AS col2 FROM tab1 AS cor0
----
41
6
8
query I rowsort
SELECT DISTINCT col1 * - col1 + - 88 + col1 AS col0 FROM tab0
----
-7398
-8278
-9400
query I rowsort
SELECT DISTINCT - - col1 - ( col0 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col2 + - col1 + col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT tab0.col1 + col0 * + col2 * + col0 AS col2 FROM tab0
----
1322
19094
649613
query I rowsort
SELECT ALL - col1 * + col1 AS col2 FROM tab0 WHERE NULL > NULL
----
query I rowsort
SELECT col1 * col1 - - col1 FROM tab2 WHERE NOT NULL IN ( + col0 )
----
query I rowsort
SELECT - col2 + col2 * + tab2.col1 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT 90 * - col1 * + col0 AS col1 FROM tab2
----
-120870
-19530
-414180
query I rowsort
SELECT ALL 42 + - col1 FROM tab1
----
16
29
32
query I rowsort
SELECT ALL - col2 * col1 + - col2 * + tab2.col2 AS col1 FROM tab2
----
-1566
-2090
-2210
query I rowsort
SELECT ALL tab0.col1 + + col0 * + 49 AS col0 FROM tab0
----
1262
1812
4452
query I rowsort
SELECT ALL + 15 * + col2 * - 31 AS col2 FROM tab0 AS cor0
----
-15345
-38130
-465
query I rowsort
SELECT DISTINCT - - 59 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
123
139
62
query I rowsort
SELECT DISTINCT + - col2 * - cor0.col2 + col1 * col1 FROM tab0 AS cor0
----
15005
8485
9410
query I rowsort
SELECT DISTINCT 16 * tab2.col1 FROM tab2
----
272
496
944
query I rowsort
SELECT - 80 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-560
-6240
-6320
query I rowsort
SELECT + 31 * col1 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - 85 * + col0 FROM tab1 cor0
----
-255
-5440
-6800
query I rowsort
SELECT - col1 + 21 * + 55 * col0 AS col0 FROM tab0
----
102704
27634
40328
onlyif mysql # use DIV operator for integer division
query I rowsort label-9638
SELECT - col0 + col2 - - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-33
-6
10
skipif mysql # not compatible
query I rowsort label-9638
SELECT - col0 + col2 - - col0 / col0 AS col1 FROM tab0 AS cor0
----
-33
-6
10
query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
83
query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab0, tab1, tab0 AS cor0
----
-97
query I rowsort
SELECT - col2 + 18 AS col2 FROM tab1 AS cor0
----
-36
-39
-78
query I rowsort
SELECT col1 * 90 FROM tab0 cor0
----
7740
8190
8730
query I rowsort
SELECT + 26 * + col1 + col2 FROM tab0 AS cor0
----
2269
2448
2523
query I rowsort
SELECT - ( - 38 ) FROM tab0
----
38
38
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9645
SELECT col1 * col1 + - col1 * + CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
-357
124
1947
skipif mysql # not compatible
query I rowsort label-9645
SELECT col1 * col1 + - col1 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
-357
124
1947
query I rowsort
SELECT ( col2 ) + + col0 * + ( + col0 + - col2 ) AS col2 FROM tab0
----
-183
1191
705
query I rowsort
SELECT col1 + tab0.col1 * + col1 AS col2 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT - cor0.col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + - col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + cor0.col1 - + col0 * col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT col1 + - col0 - tab2.col0 * col2 FROM tab2
----
-165
-2047
-3064
onlyif mysql # use DIV operator for integer division
query I rowsort label-9652
SELECT DISTINCT col0 * - col0 - + col0 DIV tab2.col1 AS col2 FROM tab2
----
-49
-6085
-6245
skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT col0 * - col0 - + col0 / tab2.col1 AS col2 FROM tab2
----
-49
-6085
-6245
query I rowsort
SELECT DISTINCT col2 - + tab1.col0 * - col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT + col0 + - tab1.col0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * col1 + col1 AS col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT col1 + tab1.col0 + - col1 * col2 FROM tab1
----
-1155
-1375
-496
query I rowsort
SELECT - col1 * - col1 * col0 + - col2 + + col0 AS col2 FROM tab2
----
22872
271570
6707
query I rowsort
SELECT tab1.col1 + col0 * col0 FROM tab1
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-9659
SELECT ALL col1 - + col2 DIV col2 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL col1 - + col2 / col2 FROM tab1
----
12
25
9
query I rowsort
SELECT - col1 + - col0 * col0 + - col2 FROM tab2
----
-107
-6169
-6296
query I rowsort
SELECT DISTINCT + col2 - col2 * + col2 AS col1 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT ALL - ( - col0 ) * - col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - 90 * - ( col0 + col0 ) * + col2 AS col1 FROM tab0
----
1313640
142560
6300
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9664
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 61 / - col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 61 / - col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + - col1 + - col1 * col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT ALL + + ( col1 ) + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - ( + 16 * - col0 ) AS col1 FROM tab1
----
1024
1280
48
query I rowsort
SELECT ALL 41 + ( - col1 ) AS col1 FROM tab2
----
-18
10
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * tab1.col2 + + col0 col1 FROM tab1
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9670
SELECT ALL CAST( + 74 AS SIGNED ) + + col2 FROM tab0
----
107
156
75
skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL CAST ( + 74 AS INTEGER ) + + col2 FROM tab0
----
107
156
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9671
SELECT ( + col2 ) * col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9671
SELECT ( + col2 ) * col1 / - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + col0 * col2 AS col2 FROM tab1 AS cor0
----
-514
3548
7511
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT cor0.col2 * col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - col1 * + col2 * - col0 FROM tab2 cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9676
SELECT ( col2 ) DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9676
SELECT ( col2 ) / col0 AS col2 FROM tab0 AS cor0
----
0
0
1
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 > col1 * col0 * + col1 - - col0
----
query I rowsort
SELECT col0 * col1 * + col2 FROM tab2 WHERE col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col2 * + col1 + - col2 * - tab2.col0 AS col0 FROM tab2
----
1026
3562
3648
query I rowsort
SELECT + col0 - col0 FROM tab2 WHERE NULL IN ( tab2.col1 * + col1 )
----
query I rowsort
SELECT DISTINCT - col2 * - tab2.col0 FROM tab2 WHERE NOT col0 IN ( col2 + - col2 )
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE NULL BETWEEN - col2 - + tab2.col1 AND col1
----
query I rowsort
SELECT tab2.col2 * col2 - col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT + col0 = + col0 + - col0 * + col1
----
24
35
89
query I rowsort
SELECT + tab0.col0 + col2 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL col2 * + col2 / col0 + col0 + + col0 FROM tab2 WHERE NULL <> NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * col1 <> ( col0 + col0 - col1 )
----
query I rowsort
SELECT - col0 + + col0 * + col0 * tab2.col0 - col0 FROM tab2
----
329
474396
492881
query I rowsort
SELECT + col0 * col1 * - col1 FROM tab0 WHERE NULL > NULL
----
query I rowsort
SELECT DISTINCT col0 * col2 + col1 AS col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT ALL - col2 * - col2 + - col1 * - col1 FROM tab1 AS cor0
----
3349
3592
9385
query I rowsort
SELECT ALL - cor0.col0 - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 col2 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL col0 + cor0.col1 - + cor0.col2 FROM tab0 AS cor0
----
131
77
98
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= col0
----
query I rowsort
SELECT ALL - col0 + col2 * col0 AS col2 FROM tab1
----
159
3584
7600
query I rowsort
SELECT - - col2 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + col1 * col2 + col0 * + col1 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT + tab1.col1 * tab1.col1 * + col1 AS col0 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col2 + col0 + - col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - col1 + col2 * col2 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT - col2 * + col0 + cor0.col2 + - col2 * - col2 * - col0 AS col2 FROM tab2 AS cor0
----
-117040
-5265
-54730
query I rowsort
SELECT + cor0.col2 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 + col2 col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + col0 + col1 * col2 + col2 AS col2 FROM tab0
----
133
2895
7633
query I rowsort
SELECT col0 + + tab0.col1 + col0 * + col2 FROM tab0
----
167
7478
902
query I rowsort
SELECT DISTINCT 53 * - 4 AS col2 FROM tab1
----
-212
query I rowsort
SELECT - 89 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT ALL + col0 * ( col1 ) + ( - cor0.col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
15561
3492
4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT ALL 5 DIV + col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL 5 / + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - - 10 + - col1 AS col1 FROM tab1 AS cor0
----
-16
-3
0
query I rowsort
SELECT ALL + ( col1 ) * col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9716
SELECT - + col0 DIV - col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9716
SELECT - + col0 / - col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - col2 * + col2 * col1 + col1 * + col1 FROM tab1 AS cor0
----
-119639
-32390
-75140
query I rowsort
SELECT - + col2 + + cor0.col2 - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - col1 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + col2 + + col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - cor0.col1 * col1 + - col1 * - col0 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT + col0 * - col0 * ( col0 ) + - col2 FROM tab0 AS cor0
----
-13857
-42876
-705051
onlyif mysql # use DIV operator for integer division
query I rowsort label-9723
SELECT 33 DIV - col0 AS col0 FROM tab1
----
-11
0
0
skipif mysql # not compatible
query I rowsort label-9723
SELECT 33 / - col0 AS col0 FROM tab1
----
-11
0
0
query I rowsort
SELECT DISTINCT + - col0 * col2 + col0 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
1072
6628
9409
query I rowsort
SELECT ALL - col0 - + col0 FROM tab2 cor0
----
-14
-156
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9726
SELECT ALL + col2 + CAST( 33 AS SIGNED ) FROM tab2 AS cor0
----
59
60
71
skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL + col2 + CAST ( 33 AS INTEGER ) FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT DISTINCT + - col2 * - 95 FROM tab2 cor0
----
2470
2565
3610
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + + col2 * + col1 FROM tab0 AS cor0
----
-4558
-819
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9729
SELECT ALL + - cor0.col2 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + - cor0.col2 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - 37 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1188
-2990
-4408
query I rowsort
SELECT ALL + 99 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - 78 + - 48 FROM tab1 AS cor0
----
-126
-126
-126
query I rowsort
SELECT ALL 64 * col1 AS col2 FROM tab0 AS cor0
----
5504
5824
6208
query I rowsort
SELECT ALL - - 41 + + ( - col1 ) * + 36 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-20479
-44887
-50503
onlyif mysql # use DIV operator for integer division
query I rowsort label-9735
SELECT DISTINCT - col0 * col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT - col0 * col1 / col1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col2 * 53 AS col2 FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT - ( col0 ) + cor0.col0 * 27 FROM tab0 AS cor0
----
2314
624
910
query I rowsort
SELECT ALL ( - cor0.col1 ) AS col1 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + - col1 * col0 * - col2 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9741
SELECT DISTINCT - ( - col0 ) DIV ( tab1.col1 + - col0 ) AS col2 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT - ( - col0 ) / ( tab1.col1 + - col0 ) AS col2 FROM tab1
----
-1
0
query I rowsort
SELECT ALL - 13 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2
query I rowsort
SELECT - 13 * col1 FROM tab1 cor0
----
-130
-169
-338
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9744
SELECT + tab1.col2 / CAST( NULL AS SIGNED ) FROM tab1, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9744
SELECT + tab1.col2 / CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - 82 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9746
SELECT - cor0.col2 + - CAST( NULL AS SIGNED ) * 63 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9746
SELECT - cor0.col2 + - CAST ( NULL AS INTEGER ) * 63 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * ( col1 * cor0.col1 ) FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL + 86 * + col2 * 51 + + ( + col1 + ( + col1 ) ) FROM tab0 AS cor0
----
144910
359834
4580
query I rowsort
SELECT + cor0.col0 * + cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ee9a612676395b6deb95e76b47378cb3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9750
SELECT DISTINCT cor0.col1 - + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT cor0.col1 - + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * 71 + 44 col1 FROM tab0 cor0
----
146588
241089
575073
query I rowsort
SELECT DISTINCT col1 + col0 * ( - ( - col2 ) ) * 14 FROM tab1 AS cor0
----
107533
2294
51082
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 - - col1 col0 FROM tab2 AS cor0
----
102
130
88
query I rowsort
SELECT ALL - + 4 + + col0 * + cor0.col2 AS col0 FROM tab0 cor0
----
31
7294
788
onlyif mysql # use DIV operator for integer division
query I rowsort label-9755
SELECT ALL - + 67 + - cor0.col0 DIV + 84 AS col1 FROM tab0 AS cor0
----
-67
-67
-68
skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - + 67 + - cor0.col0 / + 84 AS col1 FROM tab0 AS cor0
----
-67
-67
-68
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + + ( col2 ) FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9757
SELECT DISTINCT col2 - + col1 / CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT col2 - + col1 / CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9758
SELECT ALL + + col1 * cor0.col2 DIV - 10 FROM tab1 cor0
----
-124
-140
-57
skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + + col1 * cor0.col2 / - 10 FROM tab1 cor0
----
-124
-140
-57
query I rowsort
SELECT ALL - cor0.col1 + + 86 FROM tab1 cor0
----
60
73
76
query I rowsort
SELECT 7 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - ( 56 ) + + col2 col1 FROM tab1 cor0
----
-2970
-3135
-5280
query I rowsort
SELECT ALL col1 * - col2 + 35 * col2 * col0 FROM tab0 AS cor0
----
1128
247968
24882
query I rowsort
SELECT + ( col1 ) * cor0.col1 * - ( - cor0.col0 ) + col0 AS col0 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT cor2.col0 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL - col2 * + col1 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - col2 * - 65 - + col2 AS col1 FROM tab0 AS cor0
----
2112
5248
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9767
SELECT ALL ( col0 ) + - col1 DIV - col1 AS col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL ( col0 ) + - col1 / - col1 AS col0 FROM tab2
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + col0 col2 FROM tab1
----
135
151
74
query I rowsort
SELECT DISTINCT - col2 + col0 * - ( 4 ) FROM tab0 AS cor0
----
-129
-141
-438
query I rowsort
SELECT DISTINCT ( - col1 ) * + 98 FROM tab0 AS cor0
----
-8428
-8918
-9506
query I rowsort
SELECT - col2 + - cor0.col2 * - ( + col0 + - col1 ) FROM tab2 AS cor0
----
-675
2318
468
query I rowsort
SELECT cor0.col0 + - 61 AS col2 FROM tab2 AS cor0
----
-54
17
18
query I rowsort
SELECT - col1 * + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9774
SELECT ALL - col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL - col2 / + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL - col2 * - col2 + 80 FROM tab2 AS cor0
----
1524
756
809
query I rowsort
SELECT col1 * + ( col1 ) * ( + col1 * col1 ) AS col0 FROM tab1
----
10000
28561
456976
query I rowsort
SELECT ALL + ( cor0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + 80 + col2 * + col1 * - col0 + 25 AS col2 FROM tab0
----
-3290
-664013
-68007
query I rowsort
SELECT DISTINCT col2 * - tab1.col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - 47 + - col1 * 74 FROM tab1
----
-1009
-1971
-787
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * ( + col0 ) col2 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * + col1 col1 FROM tab2 AS cor0
----
1530
2790
5310
query I rowsort
SELECT col0 + - ( + col0 ) FROM tab2
----
0
0
0
query I rowsort
SELECT + col0 * - col0 + col1 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT col0 * col1 - col2 * col0 FROM tab0
----
1272
3360
801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + col2 col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - col0 + + ( - tab1.col2 ) AS col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-44
query I rowsort
SELECT ALL - 91 * + 64 FROM tab0 AS cor0
----
-5824
-5824
-5824
query I rowsort
SELECT - + 41 + - col1 AS col2 FROM tab2 AS cor0
----
-100
-58
-72
query I rowsort
SELECT - col1 + + cor0.col2 * - col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT 20 + + col2 * cor0.col1 AS col1 FROM tab0 cor0
----
117
2858
7482
query I rowsort
SELECT ALL - + 65 + 8 FROM tab2 cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT + + 31 * + cor0.col2 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT DISTINCT ( + col1 ) * col0 + + col2 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-9797
SELECT - 0 DIV col0 + - col1 DIV ( col0 ) FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9797
SELECT - 0 / col0 + - col1 / ( col0 ) FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT 71 + ( - col0 ) FROM tab0 AS cor0
----
-18
36
47
query I rowsort
SELECT - 46 + col1 FROM tab0 cor0
----
40
45
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT - 24 + + col1 - col1 DIV + col1 FROM tab1 AS cor0
----
-12
-15
1
skipif mysql # not compatible
query I rowsort label-9800
SELECT - 24 + + col1 - col1 / + col1 FROM tab1 AS cor0
----
-12
-15
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9801
SELECT ALL CAST( col1 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL CAST ( col1 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT 43 + - col2 AS col0 FROM tab1 cor0
----
-11
-14
-53
query I rowsort
SELECT DISTINCT col2 * col2 + cor0.col1 * ( - cor0.col0 ) FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT + - ( col2 ) * - col1 - + col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT col0 * col0 - - 25 * col2 FROM tab2
----
6734
7191
724
query I rowsort
SELECT ALL - col2 + + col2 + col2 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9807
SELECT DISTINCT + cor0.col1 DIV 94 + col1 * 97 AS col2 FROM tab2 AS cor0
----
1649
3007
5723
skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT + cor0.col1 / 94 + col1 * 97 AS col2 FROM tab2 AS cor0
----
1649
3007
5723
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 + tab2.col1 col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 76ea7fcd86f61ac8825e15b762e21f82
query I rowsort
SELECT - 68 AS col0 FROM tab1
----
-68
-68
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col1 FROM tab2
----
-56
-56
-56
query I rowsort
SELECT DISTINCT - 25 * col2 * 87 + - col0 FROM tab1 cor0
----
-117453
-124039
-208880
onlyif mysql # use DIV operator for integer division
query I rowsort label-9812
SELECT DISTINCT - col0 + - col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-25
-35
-89
skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT - col0 + - col2 / col0 AS col2 FROM tab0 AS cor0
----
-25
-35
-89
query I rowsort
SELECT DISTINCT - col0 * - 90 AS col1 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT ALL + col2 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9815
SELECT - - cor0.col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9815
SELECT - - cor0.col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * 36 AS col1 FROM tab2 AS cor0
----
-1116
-2124
-612
query I rowsort
SELECT - + col2 * 77 FROM tab1 AS cor0
----
-4158
-4389
-7392
query I rowsort
SELECT - - col1 + 69 * col1 AS col2 FROM tab1 AS cor0
----
1820
700
910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9820
SELECT ALL - col0 + - cor0.col0 + - col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-14
-157
-162
skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL - col0 + - cor0.col0 + - col0 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-14
-157
-162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9821
SELECT ALL - - CAST( + col2 AS SIGNED ) + - cor0.col1 col0 FROM tab2 cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL - - CAST ( + col2 AS INTEGER ) + - cor0.col1 col0 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9822
SELECT + - col2 * col2 + - cor0.col2 * - CAST( NULL AS SIGNED ) * ( - col0 + + 77 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9822
SELECT + - col2 * col2 + - cor0.col2 * - CAST ( NULL AS INTEGER ) * ( - col0 + + 77 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 + + 20 FROM tab2 AS cor0
----
37
51
79
query I rowsort
SELECT - 28 * - col0 + + col1 * col0 FROM tab2 AS cor0
----
3555
413
6786
query I rowsort
SELECT ( 62 ) + col2 AS col1 FROM tab0 AS cor0
----
144
63
95
query I rowsort
SELECT ALL cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - col1 * + col1 + + col0 * col2 FROM tab0 AS cor0
----
-6604
-9374
-983
query I rowsort
SELECT DISTINCT - + ( 43 ) + - col0 AS col0 FROM tab2 AS cor0
----
-121
-122
-50
query I rowsort
SELECT ALL + + 22 * col2 FROM tab2 cor0
----
572
594
836
query I rowsort
SELECT - + 25 + col0 AS col0 FROM tab2 AS cor0
----
-18
53
54
query I rowsort
SELECT ALL - 75 + col0 * cor0.col1 FROM tab0 AS cor0
----
1989
3320
8024
query I rowsort
SELECT DISTINCT - 71 + + 56 - - col1 FROM tab1 AS cor0
----
-2
-5
11
query I rowsort
SELECT - - 27 + - col1 FROM tab1 AS cor0
----
1
14
17
query I rowsort
SELECT - ( + col2 ) + - tab1.col2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT ALL 44 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 28260e29e57ce8be02ad5690ad8fc1f1
query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-21
query I rowsort
SELECT cor0.col0 * col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT + 67 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT col2 + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT + col1 * col2 + 73 FROM tab2 AS cor0
----
1607
719
910
query I rowsort
SELECT 15 + col1 * cor0.col1 + - 80 AS col2 FROM tab2 AS cor0
----
224
3416
896
onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT ALL + + col0 + col2 DIV 80 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL + + col0 + col2 / 80 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - - 68 + + 86 * + cor0.col2 FROM tab1 AS cor0
----
4712
4970
8324
query I rowsort
SELECT DISTINCT - tab1.col1 + tab1.col0 FROM tab1, tab0 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - col1 * tab0.col0 * + col1 AS col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT + cor0.col2 * col1 - col1 AS col2 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT + 10 * - 59 AS col0 FROM tab2
----
-590
-590
-590
query I rowsort
SELECT - + cor0.col2 - + ( col1 ) FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL col1 + 69 * + tab2.col2 * col0 FROM tab2
----
13072
139991
207155
query I rowsort
SELECT + col1 * - 85 AS col0 FROM tab0 AS cor0
----
-7310
-7735
-8245
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9851
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 * CAST ( col1 AS REAL ) - + col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
164
2046
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9853
SELECT DISTINCT + cor0.col1 DIV 92 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT + cor0.col1 / 92 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT col0 * ( + ( col1 ) ) + 10 * col1 FROM tab0 AS cor0
----
2924
4365
9009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL 60 * - cor0.col0 FROM tab1 AS cor0
----
-180
-3840
-4800
query I rowsort
SELECT - cor0.col2 + col1 + col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 77 * + 57 col2 FROM tab2 AS cor0
----
-4389
query I rowsort
SELECT 37 + - col2 AS col0 FROM tab2
----
-1
10
11
query I rowsort
SELECT col1 + - 69 AS col0 FROM tab2 AS cor0
----
-10
-38
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9861
SELECT DISTINCT - CAST( - 41 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
41
skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT - CAST ( - 41 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
41
query I rowsort
SELECT ALL + 7 + cor0.col0 * col2 FROM tab0 AS cor0
----
42
7305
799
query I rowsort
SELECT - 97 + col2 AS col0 FROM tab1 AS cor0
----
-1
-40
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT ALL + - ( col1 ) DIV col1 + CAST( col1 + col2 AS SIGNED ) * cor0.col0 * ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
113359
42879
6239
skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + - ( col1 ) / col1 + CAST ( col1 + col2 AS INTEGER ) * cor0.col0 * ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
113359
42879
6239
query I rowsort
SELECT ( 11 ) * col1 + + 76 AS col0 FROM tab0 AS cor0
----
1022
1077
1143
query I rowsort
SELECT - col2 * col2 - - col2 AS col1 FROM tab0 cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9867
SELECT - col2 - + col0 DIV - 87 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9867
SELECT - col2 - + col0 / - 87 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - col1 * - col2 - col0 * + col2 FROM tab0
----
164
2046
62
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 AS cor0 WHERE cor0.col2 < cor0.col0
----
81 values hashing to e2bcdde72d86bc73577eb2919dc75a26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9870
SELECT DISTINCT + 66 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + 66 / col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * + cor0.col1 col0 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab2 cor0
----
18
query I rowsort
SELECT + - col0 + - col0 * - col0 AS col0 FROM tab0 cor0
----
1190
552
7832
query I rowsort
SELECT ALL - + col1 * 32 AS col2 FROM tab2 AS cor0
----
-1888
-544
-992
query I rowsort
SELECT DISTINCT - col1 * ( + cor0.col0 ) + + cor0.col2 * + cor0.col0 * + col0 FROM tab0 AS cor0
----
-2170
16944
641423
query I rowsort
SELECT tab1.col0 + 14 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 24c2fb9fc50d05971d8c341bd1fe82cb
query I rowsort
SELECT ALL + col1 + col0 * - col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT + col2 + 79 FROM tab0 AS cor0
----
112
161
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9879
SELECT DISTINCT - col2 DIV ( + col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT - col2 / ( + col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT - col1 * col0 * - col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + ( 64 + col2 ) col2 FROM tab0 AS cor0
----
130
228
66
query I rowsort
SELECT - col1 * - ( 16 ) + col0 + - col0 FROM tab1 AS cor0
----
160
208
416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9883
SELECT DISTINCT + col0 * col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT + col0 * col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT - 70 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9885
SELECT - 56 DIV + tab1.col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9885
SELECT - 56 / + tab1.col2 FROM tab1
----
-1
0
0
query I rowsort
SELECT - col2 * + col1 * 62 AS col2 FROM tab0
----
-175956
-462644
-6014
query I rowsort
SELECT DISTINCT + col2 * col1 - - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT - + col2 * col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT ALL - col2 + col1 DIV + 18 AS col0 FROM tab0 AS cor0
----
-29
-77
4
skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL - col2 + col1 / + 18 AS col0 FROM tab0 AS cor0
----
-29
-77
4
query I rowsort
SELECT + 10 * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to daf30803acc158430e9342e85963898a
query I rowsort
SELECT ALL 12 * - col0 FROM tab2
----
-84
-936
-948
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9892
SELECT ALL col0 * CAST( col2 * col2 AS SIGNED ) FROM tab2 AS cor0
----
114076
5103
52728
skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL col0 * CAST ( col2 * col2 AS INTEGER ) FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9893
SELECT DISTINCT + col1 + + CAST( col2 AS SIGNED ) * + col0 FROM tab2
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT + col1 + + CAST ( col2 AS INTEGER ) * + col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL col0 + 0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9896
SELECT + 19 + 16 DIV col0 AS col2 FROM tab0 AS cor0
----
19
19
19
skipif mysql # not compatible
query I rowsort label-9896
SELECT + 19 + 16 / col0 AS col2 FROM tab0 AS cor0
----
19
19
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-9897
SELECT + ( cor0.col0 ) DIV col0 + 21 FROM tab0 AS cor0
----
22
22
22
skipif mysql # not compatible
query I rowsort label-9897
SELECT + ( cor0.col0 ) / col0 + 21 FROM tab0 AS cor0
----
22
22
22
query I rowsort
SELECT + col2 * ( + 7 + col0 ) FROM tab0
----
1023
42
7872
query I rowsort
SELECT ALL col0 * 60 AS col2 FROM tab0
----
1440
2100
5340
query I rowsort
SELECT col2 - - ( - col0 ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col0 + ( col0 ) * + col0 AS col1 FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL - col0 * col1 + + cor0.col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - ( + col1 ) * + tab0.col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 31 * col2 FROM tab1 AS cor0
----
1674
1767
2976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + cor0.col0 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 62 + 22 FROM tab2
----
-40
-40
-40
query I rowsort
SELECT - 63 * 30 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6696529d1cb255e1c943c37dd7898a4b
query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
query I rowsort
SELECT ALL + col0 + - col0 * - col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 * - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT DISTINCT + col0 * - col1 - - col2 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-9912
SELECT ALL + - col1 * col1 DIV + 46 AS col1 FROM tab0 AS cor0
----
-160
-180
-204
skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + - col1 * col1 / + 46 AS col1 FROM tab0 AS cor0
----
-160
-180
-204
query I rowsort
SELECT DISTINCT col0 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab1 AS cor0
----
-40
-40
-40
query I rowsort
SELECT ALL - 93 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 373608b5054d92c1128be0c71db4d4ed
query I rowsort
SELECT col2 * cor0.col1 * ( + 48 ) FROM tab1 cor0
----
27360
59904
67392
query I rowsort
SELECT - - col1 * col2 + cor0.col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + 3 * - cor1.col0 FROM tab0, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
-105
-267
-72
query I rowsort
SELECT cor0.col2 * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
query I rowsort
SELECT tab0.col1 / - col0 FROM tab0 WHERE NOT ( col0 ) = NULL
----
query I rowsort
SELECT ALL - col0 - col2 AS col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col1 - + 2 FROM tab1 AS cor0
----
11
24
8
query I rowsort
SELECT cor0.col2 + 30 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 92af442afb75ac78e60de88f33bee210
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 + + col1 ) col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + 54 * - col2 AS col1 FROM tab0
----
-1782
-4428
-54
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND tab2.col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9927
SELECT col2 - + col0 DIV col2 col2 FROM tab1
----
54
56
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9927
SELECT col2 - + col0 / col2 col2 FROM tab1
----
54
56
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9928
SELECT col0 * col2 DIV + col1 FROM tab0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-9928
SELECT col0 * col2 / + col1 FROM tab0
----
0
80
9
query I rowsort
SELECT col1 * col1 + - col2 FROM tab1 WHERE NOT + col1 + - col2 <= col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9930
SELECT DISTINCT tab0.col1 DIV col1 + - col1 + - col1 AS col2 FROM tab0
----
-171
-181
-193
skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT tab0.col1 / col1 + - col1 + - col1 AS col2 FROM tab0
----
-171
-181
-193
query I rowsort
SELECT tab1.col2 * col2 * - col0 + + col2 * col1 AS col1 FROM tab1
----
-207366
-7344
-736032
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 + + col0 * + cor0.col1 * col2 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9933
SELECT col1 DIV + col2 + + col1 AS col0 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-9933
SELECT col1 / + col2 + + col1 AS col0 FROM tab0
----
194
88
92
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9935
SELECT col0 * col0 + col1 DIV col2 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-9935
SELECT col0 * col0 + col1 / col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT col2 * col1 + + tab0.col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT col0 * + col0 + - col1 AS col1 FROM tab0 WHERE - col0 < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9938
SELECT col1 DIV tab2.col0 - col2 * col0 FROM tab2
----
-185
-2028
-3002
skipif mysql # not compatible
query I rowsort label-9938
SELECT col1 / tab2.col0 - col2 * col0 FROM tab2
----
-185
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9939
SELECT DISTINCT + col1 DIV + col0 AS col2 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT + col1 / + col0 AS col2 FROM tab2
----
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT col2 * col1 DIV col2 col0 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9940
SELECT col2 * col1 / col2 col0 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9941
SELECT ALL col0 + - tab2.col0 DIV col0 + - tab2.col0 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL col0 + - tab2.col0 / col0 + - tab2.col0 AS col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL tab1.col1 * - tab1.col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - ( + 34 ) + tab1.col0 + + col2 AS col1 FROM tab1
----
142
23
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9944
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 col1 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 col1 FROM tab1
----
NULL
query I rowsort
SELECT col1 - 44 FROM tab1 AS cor0
----
-18
-31
-34
query I rowsort
SELECT DISTINCT - col0 * - col1 - col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT 26 + - col1 * col2 AS col2 FROM tab2
----
-1508
-620
-811
onlyif mysql # use DIV operator for integer division
query I rowsort label-9948
SELECT + col0 + col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9948
SELECT + col0 + col0 / + col0 AS col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL 43 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-21
-37
40
query I rowsort
SELECT DISTINCT ( col2 ) * col0 * col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT col0 * + col2 + ( - col0 ) - cor0.col0 * + ( col0 ) FROM tab0 AS cor0
----
-1225
-712
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9952
SELECT + 48 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-9952
SELECT + 48 / col0 AS col2 FROM tab2 AS cor0
----
0
0
6
query I rowsort
SELECT ALL + - cor0.col0 * - col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + + col0 * 39 AS col0 FROM tab1 cor0
----
117
2496
3120
query I rowsort
SELECT DISTINCT - + col2 + + 4 + 1 * + col0 AS col2 FROM tab1 AS cor0
----
-12
-47
11
query I rowsort
SELECT + col1 + + 1 FROM tab1 cor0
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + col2 + + cor0.col0 col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 68 * - 61 FROM tab1 AS cor0
----
-4148
-4148
-4148
onlyif mysql # use DIV operator for integer division
query I rowsort label-9959
SELECT + - CAST( + col2 AS SIGNED ) + + cor0.col0 DIV col0 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-9959
SELECT + - CAST ( + col2 AS INTEGER ) + + cor0.col0 / col0 FROM tab1 AS cor0
----
-53
-56
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9960
SELECT - ( col1 ) + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-9960
SELECT - ( col1 ) + col2 / col2 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * 20 * + col1 col2 FROM tab1
----
-15400
-20020
-40040
query I rowsort
SELECT ALL - + cor0.col1 + col2 * - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - + col1 * - col2 * col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT col2 * col2 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
194
611975
93740
query I rowsort
SELECT DISTINCT - + ( + col1 ) + - col0 * - col2 AS col2 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT col1 * col2 - col0 * - tab1.col0 FROM tab1
----
1413
4666
7648
query I rowsort
SELECT DISTINCT tab1.col0 - - col0 * tab1.col0 FROM tab1
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9968
SELECT DISTINCT + ( + col2 ) - col1 DIV + col0 FROM tab2
----
23
26
38
skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT + ( + col2 ) - col1 / + col0 FROM tab2
----
23
26
38
query I rowsort
SELECT col0 - 76 FROM tab0
----
-41
-52
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-9970
SELECT col0 DIV 41 FROM tab0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9970
SELECT col0 / 41 FROM tab0
----
0
0
2
query I rowsort
SELECT DISTINCT tab0.col1 - - col2 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT col2 + col2 + - col2 DIV tab1.col1 FROM tab1
----
106
109
185
skipif mysql # not compatible
query I rowsort label-9972
SELECT col2 + col2 + - col2 / tab1.col1 FROM tab1
----
106
109
185
query I rowsort
SELECT - col0 * 32 FROM tab0
----
-1120
-2848
-768
query I rowsort
SELECT + 42 * 35 * tab0.col0 FROM tab0
----
130830
35280
51450
query I rowsort
SELECT + 21 + col0 + + col1 FROM tab2
----
117
158
59
query I rowsort
SELECT 30 * - col0 * + col2 + col1 * - col0 * col1 AS col1 FROM tab0 AS cor0
----
-201264
-330365
-955949
query I rowsort
SELECT ALL - col2 + - col0 * col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT ALL + 55 FROM tab0 cor0
----
55
55
55
query I rowsort
SELECT - - 76 * + cor0.col2 + + col0 FROM tab2 AS cor0
----
2054
2059
2967
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT ( + col1 ) * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - ( - col2 ) * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col2 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL ( col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col0 * 97 AS col2 FROM tab2 AS cor0
----
-679
-7566
-7663
query I rowsort
SELECT ALL + - col1 * - 69 AS col1 FROM tab1 cor0
----
1794
690
897
query I rowsort
SELECT DISTINCT + 76 * + tab2.col1 - col0 FROM tab2
----
1213
2349
4406
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9988
SELECT DISTINCT CAST( - tab1.col1 AS SIGNED ) AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT CAST ( - tab1.col1 AS INTEGER ) AS col0 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9989
SELECT ( 37 ) DIV - col0 + - col1 col1 FROM tab2
----
-17
-36
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9989
SELECT ( 37 ) / - col0 + - col1 col1 FROM tab2
----
-17
-36
-59
query I rowsort
SELECT ALL 44 * - col1 FROM tab0 AS cor0
----
-3784
-4004
-4268
onlyif mysql # use DIV operator for integer division
query I rowsort label-9991
SELECT DISTINCT - col2 * ( col2 ) DIV + col1 AS col0 FROM tab2 AS cor0
----
-11
-23
-84
skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT - col2 * ( col2 ) / + col1 AS col0 FROM tab2 AS cor0
----
-11
-23
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9992
SELECT - 30 DIV + cor0.col0 col2 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9992
SELECT - 30 / + cor0.col0 col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ( - cor0.col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9994
SELECT DISTINCT - - CAST( ( - col1 ) AS SIGNED ) * col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - - CAST ( ( - col1 ) AS INTEGER ) * col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - + 45 + 88 FROM tab0 AS cor0
----
43
43
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 72 + + col2 col0 FROM tab2 AS cor0
----
110
98
99
query I rowsort
SELECT ALL - tab1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( - col0 * + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9999
SELECT DISTINCT - cor0.col0 DIV + col1 + - col2 col2 FROM tab2 AS cor0
----
-27
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT - cor0.col0 / + col1 + - col2 col2 FROM tab2 AS cor0
----
-27
-42