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 - - ( - 30 ) + col0 AS col2 FROM tab0 AS cor0
----
-6
5
59
query I rowsort
SELECT DISTINCT - + cor0.col0 * 37 * - col2 AS col2 FROM tab2 AS cor0
----
111074
6993
75036
query I rowsort
SELECT ALL - col0 + 27 AS col1 FROM tab2 cor0
----
-51
-52
20
query I rowsort
SELECT + + col2 * ( cor0.col1 * col0 ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL cor0.col1 - col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5
SELECT + cor0.col2 DIV + 96 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5
SELECT + cor0.col2 / + 96 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col0 * 0 FROM tab1 cor0
----
0
query I rowsort
SELECT col1 + 64 * col0 AS col2 FROM tab0 AS cor0
----
1622
2337
5787
query I rowsort
SELECT DISTINCT col2 * + col2 * 3 FROM tab2 AS cor0
----
2028
2187
4332
query I rowsort
SELECT + tab1.col2 * tab1.col1 - + col1 FROM tab1
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * - col1 col2 FROM tab0
----
-4902
-5187
-5529
query I rowsort
SELECT ALL ( - col0 ) - 2 AS col0 FROM tab0
----
-26
-37
-91
query I rowsort
SELECT DISTINCT + col2 * - tab2.col2 * - col1 AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT ALL - col0 * + ( + col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - - col0 + - col1 * + col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL - col2 * + 1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col2 + + 55 FROM tab2 AS cor0
----
81
82
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-17
SELECT DISTINCT - col0 * col1 DIV - col0 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT - col0 * col1 / - col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT col2 + col0 * + col0 + tab2.col2 * + 75 FROM tab2
----
2101
8060
9129
query I rowsort
SELECT col1 + - cor0.col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + col0 + - ( col0 ) * - cor0.col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-21
SELECT - col2 - cor0.col0 DIV col1 FROM tab1 AS cor0
----
-102
-54
-63
skipif mysql # not compatible
query I rowsort label-21
SELECT - col2 - cor0.col0 / col1 FROM tab1 AS cor0
----
-102
-54
-63
query I rowsort
SELECT 8 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT - 36 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-24
SELECT - - CAST( col1 AS SIGNED ) col1 FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-24
SELECT - - CAST ( col1 AS INTEGER ) col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + 60 * cor0.col2 FROM tab0 AS cor0
----
1980
4920
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-26
SELECT - col0 * + col2 - - tab1.col0 DIV col2 col1 FROM tab1
----
-162
-3647
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-26
SELECT - col0 * + col2 - - tab1.col0 / col2 col1 FROM tab1
----
-162
-3647
-7680
query I rowsort
SELECT + 45 - col0 FROM tab0
----
-44
10
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-28
SELECT - 50 DIV col1 col1 FROM tab1 AS cor0
----
-1
-3
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-28
SELECT - 50 / col1 col1 FROM tab1 AS cor0
----
-1
-3
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + col1 col0 FROM tab2
----
105
63
77
query I rowsort
SELECT ALL 86 * - col2 AS col2 FROM tab2 AS cor0
----
-2236
-2322
-3268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col2 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - + 25 + + col0 FROM tab1 AS cor0
----
-22
39
55
query I rowsort
SELECT ALL + + cor0.col1 * - col0 + col2 + - col2 * + col1 * - col2 AS col0 FROM tab2 cor0
----
22409
23243
35308
query I rowsort
SELECT DISTINCT + + 7 * - col2 + col2 + col1 * cor0.col0 FROM tab0 AS cor0
----
1866
3389
7607
onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT ALL - + 17 DIV + col0 - 96 FROM tab0 cor0
----
-96
-96
-96
skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - + 17 / + col0 - 96 FROM tab0 cor0
----
-96
-96
-96
query I rowsort
SELECT ALL - 20 * col1 + col2 FROM tab2 AS cor0
----
-1154
-302
-593
query I rowsort
SELECT + - 15 AS col2 FROM tab0 AS cor0
----
-15
-15
-15
query I rowsort
SELECT DISTINCT + + col1 + + col2 + + col0 FROM tab0 AS cor0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * + ( col1 ) col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - 17 * cor0.col1 FROM tab1 AS cor0
----
-170
-221
-442
onlyif mysql # use DIV operator for integer division
query I rowsort label-41
SELECT DISTINCT - col2 * col0 DIV 4 + + 18 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-39
-66
439
skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT - col2 * col0 / 4 + + 18 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-39
-66
439
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 42 + - col2 * + col2 * 63 col2 FROM tab0 AS cor0
----
-419790
-64995
4011
query I rowsort
SELECT DISTINCT - + col1 + - ( col0 ) FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col2 FROM tab0
----
-19
onlyif mysql # use DIV operator for integer division
query I rowsort label-45
SELECT ALL - col1 DIV + 51 + - col0 * - cor0.col1 * col2 FROM tab0 AS cor0
----
3394
664117
68111
skipif mysql # not compatible
query I rowsort label-45
SELECT ALL - col1 / + 51 + - col0 * - cor0.col1 * col2 FROM tab0 AS cor0
----
3394
664117
68111
query I rowsort
SELECT DISTINCT + col0 * + col0 - - col0 AS col2 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT ALL + + col2 + - 34 * - col0 + 27 AS col2 FROM tab0 cor0
----
1218
3135
876
query I rowsort
SELECT - col0 * cor0.col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 + col2 * col1 col1 FROM tab1 AS cor0
----
1223
1379
545
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-50
SELECT DISTINCT col0 * + 86 * col0 - CAST( - col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
105447
52374
688668
skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT col0 * + 86 * col0 - CAST ( - col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
105447
52374
688668
query I rowsort
SELECT ALL - 34 * + 40 FROM tab2 AS cor0
----
-1360
-1360
-1360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-52
SELECT DISTINCT tab0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT tab0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT ALL col1 + + col2 * - col0 FROM tab0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 62 + - col1 col2 FROM tab0 AS cor0
----
-148
-153
-159
query I rowsort
SELECT + col0 * - col0 + col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-10634
-16202
-7972
onlyif mysql # use DIV operator for integer division
query I rowsort label-56
SELECT - col2 DIV tab0.col0 - - col1 FROM tab0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-56
SELECT - col2 / tab0.col0 - - col1 FROM tab0
----
85
91
97
query I rowsort
SELECT ALL - ( 68 + col1 ) AS col1 FROM tab0
----
-154
-159
-165
query I rowsort
SELECT DISTINCT - 88 FROM tab0, tab2 AS cor0
----
-88
query I rowsort
SELECT + col1 + ( cor0.col1 + col1 ) AS col0 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT - - cor0.col2 * col0 * cor0.col0 - + col1 * + col0 * 63 FROM tab2 AS cor0
----
-12348
-131742
152549
query I rowsort
SELECT DISTINCT cor0.col2 + + 76 * + cor0.col0 * cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
48697
5982
79136
query I rowsort
SELECT + - col0 * col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL + col0 * - col0 + 98 AS col1 FROM tab1 AS cor0
----
-3998
-6302
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col0 * 97 col2 FROM tab2 AS cor0
----
686
7644
7742
query I rowsort
SELECT - 94 + - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e40b0d6c856320f8f0d0680f445fde25
query I rowsort
SELECT ALL + 35 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT ( + col2 ) * cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + + 38 + - col1 AS col2 FROM tab2 AS cor0
----
-21
21
7
query I rowsort
SELECT col0 * - 67 * + col2 FROM tab1
----
-10854
-244416
-514560
query I rowsort
SELECT 97 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ALL - 26 * + 63 FROM tab0
----
-1638
-1638
-1638
query I rowsort
SELECT DISTINCT + - 0 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-73
SELECT + + cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-73
SELECT + + cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT - + 94 * col1 AS col2 FROM tab1 AS cor0
----
-1222
-2444
-940
query I rowsort
SELECT - + 47 + cor0.col2 * + ( + 3 ) FROM tab1 cor0
----
115
124
241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 86 ) * + col0 * - 78 + col0 col0 FROM tab0
----
-160968
-234745
-596923
query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab1, tab0 AS cor0
----
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * col1 * - col1 col1 FROM tab1
----
-10478
-41912
-6200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 34 ) col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT ALL 27 * - ( col2 ) AS col1 FROM tab2
----
-1026
-702
-729
query I rowsort
SELECT - 76 + col2 AS col2 FROM tab1
----
-19
-22
20
query I rowsort
SELECT DISTINCT 64 FROM tab0, tab1 AS cor0, tab0 cor1
----
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 30 col2 FROM tab2 AS cor0
----
30
30
30
query I rowsort
SELECT + - 5 * - col1 * cor0.col0 FROM tab0 cor0
----
10320
16975
40495
query I rowsort
SELECT ALL - - col1 + col2 * 22 FROM tab2 AS cor0
----
625
631
853
query I rowsort
SELECT ALL 40 * col1 FROM tab1 cor0
----
1040
400
520
query I rowsort
SELECT - - ( + cor1.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - 73 * + col0 FROM tab0 cor0
----
-1752
-2555
-6497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * - cor0.col1 col1 FROM tab1 AS cor0
----
-280
-364
-728
onlyif mysql # use DIV operator for integer division
query I rowsort label-90
SELECT ALL - col0 + - cor0.col2 DIV 3 FROM tab1 AS cor0
----
-112
-21
-83
skipif mysql # not compatible
query I rowsort label-90
SELECT ALL - col0 + - cor0.col2 / 3 FROM tab1 AS cor0
----
-112
-21
-83
query I rowsort
SELECT ALL - col2 * ( + ( + col1 ) ) + - 68 * - col0 * - col0 + 9 AS col1 FROM tab0 AS cor0
----
-41997
-546081
-83388
query I rowsort
SELECT + col0 * col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT - col2 + tab0.col0 DIV col0 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-94
SELECT - col2 + tab0.col0 / col0 FROM tab0
----
-32
-81
0
query I rowsort
SELECT ( + tab1.col2 * - col2 ) FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - 10 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT col1 - ( 14 ) * col0 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-5
2
26
skipif mysql # not compatible
query I rowsort label-98
SELECT col1 - ( 14 ) * col0 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-5
2
26
query I rowsort
SELECT DISTINCT + - col0 * - col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - - col1 - + cor0.col0 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT - col0 + ( col0 ) * + col2 AS col1 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT col1 * 34 FROM tab1 AS cor0
----
340
442
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col2 FROM tab2 cor0
----
-53
-53
-53
query I rowsort
SELECT 16 * col0 + - cor0.col2 FROM tab0 AS cor0
----
1342
351
559
onlyif mysql # use DIV operator for integer division
query I rowsort label-105
SELECT ALL + 14 DIV - 39 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + 14 / - 39 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + ( - col0 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 * 65 + - col0 AS col0 FROM tab2 AS cor0
----
-1184
-2022
-3913
query I rowsort
SELECT - 68 + 39 FROM tab0 AS cor0
----
-29
-29
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + - 51 AS col1 FROM tab0 AS cor0
----
-51
-51
-51
query I rowsort
SELECT tab0.col2 + ( 17 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e10b3ea49c8f43d8b37d4c6d5c96fef1
query I rowsort
SELECT DISTINCT - 17 + - col1 FROM tab1 AS cor0
----
-27
-30
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-113
SELECT DISTINCT CAST( - 97 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
-38
-66
-80
skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT CAST ( - 97 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
-38
-66
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col2 * - col0 col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-115
SELECT DISTINCT - + col0 * col1 * - col2 + 59 DIV col2 FROM tab1 AS cor0
----
36481
4213
99840
skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT - + col0 * col1 * - col2 + 59 / col2 FROM tab1 AS cor0
----
36481
4213
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col2 FROM tab2 AS cor0
----
89
89
89
query I rowsort
SELECT DISTINCT col1 * col1 * col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT 26 * col2 FROM tab2 AS cor0
----
676
702
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * - 66 col0 FROM tab2 AS cor0
----
4026
query I rowsort
SELECT ALL - 13 * - col2 AS col2 FROM tab2 cor0
----
338
351
494
query I rowsort
SELECT DISTINCT col1 * 82 + col2 FROM tab2 AS cor0
----
1432
2569
4864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0, tab2, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + ( 84 ) * col2 AS col0 FROM tab2 cor0
----
2184
2268
3192
query I rowsort
SELECT DISTINCT col1 + 35 + col1 FROM tab2 AS cor0
----
153
69
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL + ( 67 ) - + col2 FROM tab2 AS cor0
----
29
40
41
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + 38 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-129
SELECT ALL + - col2 DIV + ( 59 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + - col2 / + ( 59 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + + col0 * tab1.col1 + + 57 AS col0 FROM tab1
----
1177
138
761
query I rowsort
SELECT col0 * + col2 + 94 * col1 + col0 AS col2 FROM tab1
----
2609
4652
8982
query I rowsort
SELECT ALL 59 * + col1 AS col0 FROM tab1
----
1534
590
767
query I rowsort
SELECT DISTINCT + col0 * - col0 + cor0.col2 FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-134
SELECT + 52 DIV - cor0.col2 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-134
SELECT + 52 / - cor0.col2 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - col0 * + 87 AS col1 FROM tab1 AS cor0
----
-261
-5568
-6960
query I rowsort
SELECT - 52 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 + - tab0.col1 * col0 col1 FROM tab0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-138
SELECT DISTINCT col1 * col0 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT col1 * col0 / col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-139
SELECT ALL - cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-139
SELECT ALL - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + ( cor0.col2 ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - col0 * + 19 FROM tab1
----
-1216
-1520
-57
query I rowsort
SELECT col1 * + 30 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT DISTINCT - + col2 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + 55 + cor0.col2 * + col1 FROM tab0 AS cor0
----
152
2893
7517
query I rowsort
SELECT 49 + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 7a3e1f32aa98032134dbe067604f6090
query I rowsort
SELECT DISTINCT 65 * + col0 AS col1 FROM tab2
----
455
5070
5135
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-148
SELECT - CAST( NULL AS SIGNED ) / - 5 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-148
SELECT - CAST ( NULL AS INTEGER ) / - 5 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT DISTINCT col0 + CAST( 35 AS SIGNED ) DIV col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT col0 + CAST ( 35 AS INTEGER ) / col2 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT + - 48 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-150
SELECT + - 48 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + - col0 * - col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-152
SELECT DISTINCT - + 3 DIV col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT - + 3 / col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + cor0.col0 + - col1 * col2 * 70 FROM tab1 AS cor0
----
-39836
-87280
-98277
query I rowsort
SELECT DISTINCT col0 * col1 + col0 + col2 AS col2 FROM tab0 AS cor0
----
2121
3431
8270
query I rowsort
SELECT 43 + + col0 AS col1 FROM tab0 cor0
----
132
67
78
query I rowsort
SELECT + ( tab2.col2 * + 39 ) + col1 FROM tab2
----
1073
1084
1499
query I rowsort
SELECT DISTINCT + 38 + - col0 + + 73 FROM tab2
----
104
32
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-158
SELECT ALL 64 + col0 + col0 DIV + cor0.col2 FROM tab1 AS cor0
----
129
144
67
skipif mysql # not compatible
query I rowsort label-158
SELECT ALL 64 + col0 + col0 / + cor0.col2 FROM tab1 AS cor0
----
129
144
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-159
SELECT DISTINCT col1 - col1 DIV 75 AS col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT col1 - col1 / 75 AS col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT + col1 - - col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT - + col0 * - col1 - - col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-162
SELECT + 75 * - col1 * CAST( NULL AS SIGNED ) + + col1 * + col1 * + 37 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-162
SELECT + 75 * - col1 * CAST ( NULL AS INTEGER ) + + col1 * + col1 * + 37 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 67 + col2 AS col2 FROM tab0 AS cor0
----
100
149
68
query I rowsort
SELECT ALL + col2 + col0 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-3975
-6224
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-165
SELECT ALL + col2 * + col1 + - col2 DIV - 91 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
skipif mysql # not compatible
query I rowsort label-165
SELECT ALL + col2 * + col1 + - col2 / - 91 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT ALL - 61 + - cor0.col0 DIV col2 FROM tab1 AS cor0
----
-61
-61
-62
skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - 61 + - cor0.col0 / col2 FROM tab1 AS cor0
----
-61
-61
-62
query I rowsort
SELECT - col1 + 38 + col1 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT - col0 * - col1 + - col1 + col1 * col2 FROM tab2 AS cor0
----
1023
1972
6077
query I rowsort
SELECT cor0.col1 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL + col2 * + col2 + + 83 FROM tab0 AS cor0
----
1172
6807
84
query I rowsort
SELECT ALL + col0 + + 32 + + cor0.col0 FROM tab1 cor0
----
160
192
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT ALL - col0 + 28 DIV - col0 AS col2 FROM tab2 AS cor0
----
-11
-78
-79
skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - col0 + 28 / - col0 AS col2 FROM tab2 AS cor0
----
-11
-78
-79
query I rowsort
SELECT DISTINCT + col1 + - 87 AS col0 FROM tab0 AS cor0
----
-1
10
4
query I rowsort
SELECT + col2 * 0 + col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + 60 * + col2 - 36 FROM tab1
----
3204
3384
5724
query I rowsort
SELECT col1 * - col2 + col1 - col0 * - col2 FROM tab2
----
-617
2373
553
query I rowsort
SELECT col0 - col2 * col1 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT 62 * tab0.col1 AS col2 FROM tab0
----
5332
5642
6014
query I rowsort
SELECT DISTINCT tab0.col0 + col0 * 1 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT col2 + - col0 * 64 FROM tab1
----
-138
-4039
-5024
query I rowsort
SELECT DISTINCT + ( col0 ) + 37 * - 53 FROM tab1
----
-1881
-1897
-1958
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 > ( NULL )
----
query I rowsort
SELECT DISTINCT col2 + col1 + col2 AS col1 FROM tab0
----
152
255
99
query I rowsort
SELECT ALL - col2 + col0 + col1 * + col1 FROM tab1
----
107
153
625
query I rowsort
SELECT + col1 * col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT - col2 * - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-188
SELECT col1 - col2 DIV col0 FROM tab2 cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-188
SELECT col1 - col2 / col0 FROM tab2 cor0
----
17
28
59
query I rowsort
SELECT DISTINCT - col2 * - col1 - - col1 * col0 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT - col1 * col2 + col1 * col1 FROM tab1 AS cor0
----
-1079
-470
-728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 col1 FROM tab2, tab1, tab1 AS cor0
----
7
78
79
query I rowsort
SELECT 62 * + col0 AS col1 FROM tab2 AS cor0
----
434
4836
4898
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-193
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-193
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 10 + - col2 * col0 FROM tab0 AS cor0
----
-25
-7288
-782
query I rowsort
SELECT ( + col0 ) + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL col2 * col0 - + col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT + col1 * - col2 + + col2 AS col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT col0 * col2 * col2 + + col1 FROM tab0
----
132
26222
598527
query I rowsort
SELECT ALL + col1 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT 6 * 99 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
594
query I rowsort
SELECT ALL - + col1 - + col0 AS col2 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + + col0 * col0 + - col1 AS col1 FROM tab1 cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT - col0 + + col0 * 41 * col0 FROM tab1 AS cor0
----
167872
262320
366
query I rowsort
SELECT DISTINCT col1 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - + 64 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= col2 * + col1 + - col2
----
query I rowsort
SELECT + col2 * col2 * col1 AS col2 FROM tab1
----
119808
32490
75816
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( col1 + - col0 )
----
query I rowsort
SELECT + tab2.col0 * + tab2.col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT col1 - tab0.col1 FROM tab0
----
0
query I rowsort
SELECT col1 * col2 - - tab0.col0 AS col1 FROM tab0
----
132
2862
7551
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 <> NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 >= col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-215
SELECT col1 * col1 + col0 * col1 DIV col0 FROM tab1
----
110
182
702
skipif mysql # not compatible
query I rowsort label-215
SELECT col1 * col1 + col0 * col1 / col0 FROM tab1
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col1 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT - col0 * col2 * + col1 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - col0 + col0 * tab1.col2 + col2 * col0 FROM tab1
----
15280
321
7232
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= ( col0 )
----
query I rowsort
SELECT col1 * + col1 + + col1 AS col1 FROM tab1
----
110
182
702
query I rowsort
SELECT DISTINCT col2 - + col0 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL + tab2.col1 - - col1 AS col1 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-223
SELECT + col1 + col2 DIV col2 AS col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-223
SELECT + col1 + col2 / col2 AS col1 FROM tab1
----
11
14
27
query I rowsort
SELECT - col1 + col0 FROM tab1 WHERE NULL = col2
----
query I rowsort
SELECT - col2 * col0 + col2 * - col2 FROM tab0
----
-14022
-1881
-36
query I rowsort
SELECT col1 * + col0 * - tab2.col2 AS col1 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT tab0.col2 * tab0.col0 DIV - col0 AS col0 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-227
SELECT tab0.col2 * tab0.col0 / - col0 AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - col1 + - col1 * + col2 + - col2 AS col2 FROM tab1
----
-1357
-1484
-637
query I rowsort
SELECT DISTINCT + col1 * col1 * col0 AS col1 FROM tab2
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + 95 * + col2 AS col2 FROM tab1
----
5130
5415
9120
query I rowsort
SELECT ALL + + col1 + + cor0.col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + + 65 FROM tab1 AS cor0
----
119
122
161
query I rowsort
SELECT + col0 * - col1 + - 81 FROM tab2 AS cor0
----
-1424
-298
-4683
query I rowsort
SELECT ALL - col0 * col0 * - 51 AS col1 FROM tab2 AS cor0
----
2499
310284
318291
query I rowsort
SELECT ALL 74 + - col2 AS col1 FROM tab0 AS cor0
----
-8
41
73
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT ALL + cor0.col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT cor0.col0 + + col2 AS col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-240
SELECT + - col2 * CAST( + 67 AS SIGNED ) col1 FROM tab1 AS cor0
----
-3618
-3819
-6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-240
SELECT + - col2 * CAST ( + 67 AS INTEGER ) col1 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT col2 * ( + cor0.col2 ) + col0 * - col1 AS col1 FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT ALL + col1 * - col2 * + cor0.col0 FROM tab2 cor0
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-243
SELECT ALL + - col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-243
SELECT ALL + - col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col0 * - col1 + + 73 FROM tab2 cor0
----
-1270
-144
-4529
query I rowsort
SELECT DISTINCT + cor0.col0 * 79 AS col0 FROM tab1 AS cor0
----
237
5056
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * + col0 col2 FROM tab2
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-247
SELECT col0 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-247
SELECT col0 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + col0 + col0 * + ( + col0 ) FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT + - cor0.col1 * - col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + 18 + col2 * - ( + col0 ) * col2 + + col0 * + col0 FROM tab1
----
-203822
-730862
-8721
query I rowsort
SELECT DISTINCT - col0 * tab2.col2 * + col0 + col0 AS col2 FROM tab2
----
-1316
-158106
-237079
query I rowsort
SELECT DISTINCT + ( - 24 ) * + col2 + + col1 FROM tab0 AS cor0
----
-1877
-706
73
query I rowsort
SELECT + col2 + + col0 - + col2 AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - - col2 + 73 FROM tab0 AS cor0
----
106
155
74
query I rowsort
SELECT + - col2 - - col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - - 13 * - ( + col2 ) + - ( - col1 ) FROM tab0 AS cor0
----
-343
-975
84
query I rowsort
SELECT DISTINCT - col0 + + 54 * col1 * col2 + col0 FROM tab0 AS cor0
----
153252
402948
5238
query I rowsort
SELECT + 76 + - 67 * - col0 * + cor0.col2 FROM tab1 AS cor0
----
10930
244492
514636
query I rowsort
SELECT DISTINCT + col1 + col2 * col1 + - 58 AS col1 FROM tab1 cor0
----
1203
1372
522
query I rowsort
SELECT - + col1 * col2 + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT + + col2 - col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT col1 * - cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - tab0.col0 * 3 FROM tab0
----
-105
-267
-72
query I rowsort
SELECT DISTINCT + col0 + - 24 FROM tab0 cor0
----
0
11
65
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-266
SELECT - - col1 + cor0.col0 DIV + col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-266
SELECT - - col1 + cor0.col0 / + col1 FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT ALL col0 * - 45 + - col1 + + col2 FROM tab1 AS cor0
----
-107
-2833
-3517
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-268
SELECT + CAST( NULL AS DECIMAL ) * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-268
SELECT + CAST ( NULL AS REAL ) * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-269
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col2 + col2 + + col1 * 66 FROM tab0 AS cor0
----
5742
6170
6404
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-271
SELECT DISTINCT + + 65 + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT + + 65 + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-272
SELECT ALL + col0 + cor0.col0 * - col0 DIV + 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-272
SELECT ALL + col0 + cor0.col0 * - col0 / + col0 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col0 + - col0 AS col0 FROM tab2 cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT ( col1 ) + col2 * col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1128
-18922
-649431
query I rowsort
SELECT DISTINCT 82 - + col2 FROM tab1 AS cor0
----
-14
25
28
query I rowsort
SELECT ALL - col0 + col1 * col1 FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT + 58 * + cor0.col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT 68 * - col1 AS col0 FROM tab0
----
-5848
-6188
-6596
query I rowsort
SELECT DISTINCT 8 * col1 + + col0 FROM tab1
----
144
184
211
query I rowsort
SELECT DISTINCT ( 98 * + col1 ) + - tab2.col0 * col2 AS col2 FROM tab2
----
-1336
2849
3754
query I rowsort
SELECT ALL - col0 + 61 FROM tab1
----
-19
-3
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * + 70 + col0 * col0 col1 FROM tab2
----
2779
8814
8971
query I rowsort
SELECT col2 * - col1 + + col2 * + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 1 * col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + 87 * - col1 FROM tab0 AS cor0
----
-7482
-7917
-8439
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + cor0.col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col1 * col0 - col2 * - col2 AS col0 FROM tab0 cor0
----
-1375
-3394
-975
query I rowsort
SELECT ALL - 30 + - cor0.col1 * + col2 AS col0 FROM tab0 cor0
----
-127
-2868
-7492
onlyif mysql # use DIV operator for integer division
query I rowsort label-290
SELECT col1 DIV 22 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-290
SELECT col1 / 22 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT tab1.col1 * 5 * - col2 AS col1 FROM tab1
----
-2850
-6240
-7020
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-292
SELECT DISTINCT - cor0.col0 + + CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT - cor0.col0 + + CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL + col2 + + ( tab2.col0 ) FROM tab2
----
104
117
34
query I rowsort
SELECT + - 35 + cor0.col0 FROM tab2 AS cor0
----
-28
43
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT tab0.col1 + col2 + + col2 DIV col0 FROM tab0
----
120
173
98
skipif mysql # not compatible
query I rowsort label-296
SELECT tab0.col1 + col2 + + col2 / col0 FROM tab0
----
120
173
98
query I rowsort
SELECT 58 + ( - col0 + + col1 ) AS col2 FROM tab2
----
-4
39
82
query I rowsort
SELECT ALL + 77 * - col1 + + col1 + col1 FROM tab0
----
-6450
-6825
-7275
query I rowsort
SELECT DISTINCT ( - col2 ) + tab1.col0 AS col2 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-300
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col1 * col1 * - col0 + cor0.col2 AS col0 FROM tab0 cor0
----
-177471
-329314
-736927
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-302
SELECT ALL CAST( NULL AS DECIMAL ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-302
SELECT ALL CAST ( NULL AS REAL ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 59 + - tab0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5241c018ac8a1fa9bf660cd2b91acfe1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-304
SELECT DISTINCT + - cor0.col0 + CAST( 26 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1456
363
799
skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT + - cor0.col0 + CAST ( 26 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1456
363
799
query I rowsort
SELECT cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT - 59 + - col2 FROM tab0 AS cor0
----
-141
-60
-92
query I rowsort
SELECT DISTINCT - - col2 * + col1 + + col0 + col2 * col0 FROM tab2 AS cor0
----
1033
3640
3727
onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT col1 DIV col0 + + col2 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-308
SELECT col1 / col0 + + col2 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT DISTINCT - 17 * col0 * col2 AS col0 FROM tab0 AS cor0
----
-124066
-13464
-595
query I rowsort
SELECT - col2 + + col2 * - col0 AS col2 FROM tab2 cor0
----
-2054
-216
-3040
query I rowsort
SELECT col1 * - cor0.col1 + col0 FROM tab2 cor0
----
-210
-3403
-954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + - col0 * cor0.col0 col1 FROM tab1 cor0
----
-3996
-6231
667
onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT 98 + col2 DIV + col0 FROM tab2
----
101
98
98
skipif mysql # not compatible
query I rowsort label-313
SELECT 98 + col2 / + col0 FROM tab2
----
101
98
98
query I rowsort
SELECT DISTINCT - cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT + + col2 + 77 FROM tab0 AS cor0
----
110
159
78
query I rowsort
SELECT + col0 + col0 * - 95 FROM tab2 AS cor0
----
-658
-7332
-7426
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-317
SELECT col0 * + CAST( NULL AS SIGNED ) * + cor0.col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-317
SELECT col0 * + CAST ( NULL AS INTEGER ) * + cor0.col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 * 4 FROM tab0 AS cor0
----
140
356
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-319
SELECT DISTINCT + + col2 + col2 DIV 42 - col2 DIV col1 FROM tab2 AS cor0
----
26
27
36
skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT + + col2 + col2 / 42 - col2 / col1 FROM tab2 AS cor0
----
26
27
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col0 * ( - col2 + + col0 ) col1 FROM tab0 AS cor0
----
-1189
-541
249
query I rowsort
SELECT - 38 + col2 FROM tab2 cor0
----
-11
-12
0
query I rowsort
SELECT DISTINCT - 92 * col2 + col1 AS col1 FROM tab1 cor0
----
-4942
-5234
-8819
query I rowsort
SELECT - + 55 * + 69 + col2 AS col1 FROM tab1 AS cor0
----
-3699
-3738
-3741
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col0 + col0 * col1 col2 FROM tab1 AS cor0
----
240
4288
8720
onlyif mysql # use DIV operator for integer division
query I rowsort label-325
SELECT ALL + + cor0.col0 * - col2 + - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + + cor0.col0 * - col2 + - col1 / - col1 AS col2 FROM tab1 AS cor0
----
-161
-3647
-7679
query I rowsort
SELECT tab0.col0 * - 74 AS col0 FROM tab0
----
-1776
-2590
-6586
query I rowsort
SELECT + col0 * 17 FROM tab0
----
1513
408
595
query I rowsort
SELECT DISTINCT + col2 * + col1 * - col0 AS col1 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT - cor0.col0 - - cor0.col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-329
SELECT - cor0.col0 - - cor0.col0 / - col2 AS col1 FROM tab1 AS cor0
----
-3
-65
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-330
SELECT + 74 - - cor0.col0 * CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-330
SELECT + 74 - - cor0.col0 * CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 - + col1 * col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + col1 col2 FROM tab2 cor0
----
114
128
156
query I rowsort
SELECT DISTINCT 82 * + 22 FROM tab0
----
1804
query I rowsort
SELECT cor0.col1 + + 53 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 59bac454ac38df46bf3ac2bec6efdc22
query I rowsort
SELECT DISTINCT ( + 34 ) AS col0 FROM tab2
----
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-336
SELECT DISTINCT + col2 * col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT + col2 * col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 - ( + col2 * + col2 + col2 * col2 ) FROM tab1 cor0
----
-18419
-5806
-6488
query I rowsort
SELECT - + col2 * - col2 - - ( ( col2 ) ) AS col1 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT + - ( col1 ) * + col0 * - col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - tab1.col2 + - col1 + col0 FROM tab1
----
-29
-3
-77
query I rowsort
SELECT - 93 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT + col1 - ( col0 + - ( + col0 ) ) FROM tab2
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-343
SELECT - CAST( NULL AS DECIMAL ) + - tab1.col0 + - col0 * 54 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-343
SELECT - CAST ( NULL AS REAL ) + - tab1.col0 + - col0 * 54 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 + col0 col0 FROM tab2
----
21
234
237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-345
SELECT + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-345
SELECT + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 73 * - 80 AS col0 FROM tab1
----
-5840
-5840
-5840
query I rowsort
SELECT col1 + - col0 + + col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT DISTINCT 88 + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
89
skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT 88 + col2 / col2 AS col0 FROM tab1 AS cor0
----
89
query I rowsort
SELECT - tab1.col0 * col2 + col2 AS col1 FROM tab1
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-350
SELECT ALL + CAST( 0 AS SIGNED ) + - col2 + + 22 AS col1 FROM tab1
----
-32
-35
-74
skipif mysql # not compatible
query I rowsort label-350
SELECT ALL + CAST ( 0 AS INTEGER ) + - col2 + + 22 AS col1 FROM tab1
----
-32
-35
-74
query I rowsort
SELECT ALL + + 56 AS col1 FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT 29 * - col1 + col2 FROM tab2 AS cor0
----
-1685
-455
-872
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + col0 AS col2 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT - + 28 * col2 FROM tab2 AS cor0
----
-1064
-728
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - 82 * + col1 FROM tab2 AS cor0
----
-1394
-2542
-4838
query I rowsort
SELECT ALL + - col0 * - cor0.col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col1 + + col0 + col1 * col2 col0 FROM tab2 AS cor0
----
1371
1681
3146
query I rowsort
SELECT ALL - + ( col0 ) + - col0 * col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT ( + col1 ) * + 0 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-361
SELECT - + col1 + col2 + CAST( 60 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
27
56
81
skipif mysql # not compatible
query I rowsort label-361
SELECT - + col1 + col2 + CAST ( 60 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
27
56
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-362
SELECT + + col0 + - col1 + + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-362
SELECT + + col0 + - col1 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT 51 * + col2 * ( - 9 ) AS col2 FROM tab1 AS cor0
----
-24786
-26163
-44064
query I rowsort
SELECT ALL - col1 * - col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-365
SELECT ALL - + col1 DIV cor0.col0 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - + col1 / cor0.col0 FROM tab1 cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT + - 95 * col2 AS col0 FROM tab1 cor0
----
-5130
-5415
-9120
query I rowsort
SELECT cor0.col1 * 62 * 41 FROM tab1 AS cor0
----
25420
33046
66092
query I rowsort
SELECT ALL - + cor0.col2 * 81 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT ALL + col0 * + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL cor0.col0 * - 64 * - col1 FROM tab0 AS cor0
----
132096
217280
518336
query I rowsort
SELECT DISTINCT - col1 + - 52 FROM tab2 AS cor0
----
-111
-69
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-372
SELECT DISTINCT + + col1 * - CAST( col0 AS SIGNED ) + + col2 * col1 FROM tab1 cor0
----
-70
1326
208
skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT + + col1 * - CAST ( col0 AS INTEGER ) + + col2 * col1 FROM tab1 cor0
----
-70
1326
208
query I rowsort
SELECT DISTINCT + 48 * col0 FROM tab1 cor0
----
144
3072
3840
query I rowsort
SELECT ALL + - col0 * - 96 AS col1 FROM tab0 AS cor0
----
2304
3360
8544
onlyif mysql # use DIV operator for integer division
query I rowsort label-375
SELECT - - col2 + + cor0.col0 DIV col2 AS col1 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-375
SELECT - - col2 + + cor0.col0 / col2 AS col1 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT ALL - ( - col2 ) * + col0 + + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT - ( col2 ) - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + - cor0.col1 * + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601c129c54e49286b9ededa8928121fc
query I rowsort
SELECT 68 * col0 - - col1 * - col0 AS col2 FROM tab1 AS cor0
----
126
3712
4400
query I rowsort
SELECT ALL - col1 * ( col1 + col2 ) AS col1 FROM tab1 AS cor0
----
-1417
-2080
-670
query I rowsort
SELECT DISTINCT + col0 + + 71 + + col1 FROM tab1 AS cor0
----
100
145
164
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-382
SELECT ( - ( + col2 ) ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-382
SELECT ( - ( + col2 ) ) + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-383
SELECT DISTINCT - - 40 DIV - 31 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT - - 40 / - 31 FROM tab0 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-384
SELECT ALL - + col1 + 39 DIV cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - + col1 + 39 / cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - cor0.col2 + 34 AS col1 FROM tab2 AS cor0
----
-4
7
8
query I rowsort
SELECT col0 - 24 * + col1 FROM tab0 AS cor0
----
-2040
-2095
-2293
query I rowsort
SELECT DISTINCT 84 + 67 AS col1 FROM tab2 AS cor0
----
151
onlyif mysql # use DIV operator for integer division
query I rowsort label-388
SELECT DISTINCT - ( col1 ) DIV + col1 - ( + 94 ) * col1 FROM tab2 AS cor0
----
-1599
-2915
-5547
skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT - ( col1 ) / + col1 - ( + 94 ) * col1 FROM tab2 AS cor0
----
-1599
-2915
-5547
query I rowsort
SELECT ALL + + ( + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col1 * + col0 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
260
40970
83213
query I rowsort
SELECT DISTINCT + 66 + + 37 * col2 FROM tab0 AS cor0
----
103
1287
3100
query I rowsort
SELECT DISTINCT + col1 + 98 FROM tab1 cor0
----
108
111
124
onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT ALL - - ( - col0 ) DIV col1 + col0 AS col2 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-393
SELECT ALL - - ( - col0 ) / col1 + col0 AS col2 FROM tab2 AS cor0
----
7
75
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 10 col0 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT DISTINCT + col2 + 21 * col0 FROM tab0 AS cor0
----
1951
537
736
query I rowsort
SELECT + 6 + + 93 AS col1 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT ALL + ( col0 ) + col1 * col1 FROM tab1
----
164
249
679
query I rowsort
SELECT 31 - col1 AS col0 FROM tab1 AS cor0
----
18
21
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-399
SELECT col0 + col1 DIV tab0.col0 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-399
SELECT col0 + col1 / tab0.col0 FROM tab0
----
27
37
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT ALL col1 + + col2 * - col2 DIV col2 FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-400
SELECT ALL col1 + + col2 * - col2 / col2 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col2 * + col1 + - col1 col1 FROM tab2 cor0
----
22568
24531
39825
query I rowsort
SELECT - + col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + + col2 + ( + col1 ) FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT ALL col1 DIV + 34 AS col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-404
SELECT ALL col1 / + 34 AS col0 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-405
SELECT - col0 + + col0 DIV col1 AS col1 FROM tab1
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-405
SELECT - col0 + + col0 / col1 AS col1 FROM tab1
----
-3
-58
-74
query I rowsort
SELECT DISTINCT - col1 * + tab2.col2 + - 28 AS col1 FROM tab2
----
-1562
-674
-865
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-407
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-407
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 - + ( col1 ) AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT + cor0.col2 * + 67 FROM tab0 AS cor0
----
2211
5494
67
query I rowsort
SELECT DISTINCT - - col2 + 68 * col2 AS col0 FROM tab2 AS cor0
----
1794
1863
2622
query I rowsort
SELECT ALL col2 * col1 * - col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - col1 + - 8 FROM tab0 AS cor0
----
-105
-94
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 - col1 col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + - col2 * col1 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT cor0.col0 * col0 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT col0 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + col1 * col2 * col0 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
32832
4050
92160
query I rowsort
SELECT 92 * cor0.col0 + 8 AS col0 FROM tab0 AS cor0
----
2216
3228
8196
query I rowsort
SELECT ( cor0.col2 ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-420
SELECT col1 * col1 + - CAST( 22 + col0 AS SIGNED ) FROM tab1 AS cor0
----
14
651
67
skipif mysql # not compatible
query I rowsort label-420
SELECT col1 * col1 + - CAST ( 22 + col0 AS INTEGER ) FROM tab1 AS cor0
----
14
651
67
query I rowsort
SELECT col0 + + 70 FROM tab2 AS cor0
----
148
149
77
query I rowsort
SELECT ALL + ( - col2 ) + + ( tab1.col1 ) FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT 24 * col2 * col0 FROM tab1
----
184320
3888
87552
query I rowsort
SELECT col2 + - 25 FROM tab0 AS cor0
----
-24
57
8
query I rowsort
SELECT ALL - col1 + 57 AS col2 FROM tab2
----
-2
26
40
query I rowsort
SELECT - col1 - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT + - 63 - + 84 AS col1 FROM tab1 AS cor0
----
-147
-147
-147
query I rowsort
SELECT ALL col1 + + 36 AS col2 FROM tab0
----
122
127
133
query I rowsort
SELECT + 76 * + col0 FROM tab0
----
1824
2660
6764
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-430
SELECT ALL CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-430
SELECT ALL CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 86 col1 FROM tab1
----
4644
4902
8256
onlyif mysql # use DIV operator for integer division
query I rowsort label-432
SELECT col1 DIV - cor0.col1 + + col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-432
SELECT col1 / - cor0.col1 + + col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT col1 + col0 * - col0 * + 62 AS col1 FROM tab2 AS cor0
----
-3007
-377149
-386925
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 42 + + cor0.col0 col1 FROM tab0 AS cor0
----
-18
-7
47
query I rowsort
SELECT + cor0.col1 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT tab1.col1 * - cor0.col1 FROM tab1, tab2 cor0
----
9 values hashing to c6f4b0b1d1f7796b05493e23d40b0b75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-437
SELECT + + CAST( NULL AS SIGNED ) + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-437
SELECT + + CAST ( NULL AS INTEGER ) + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT ( 37 ) DIV + col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-438
SELECT ( 37 ) / + col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT 38 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + cor0.col2 col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-442
SELECT + col2 + + col2 DIV col0 col2 FROM tab2 cor0
----
26
30
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-442
SELECT + col2 + + col2 / col0 col2 FROM tab2 cor0
----
26
30
38
query I rowsort
SELECT - 50 - + col2 FROM tab0
----
-132
-51
-83
query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + 92 + - col1 + ( ( - col2 ) * col0 ) AS col2 FROM tab1
----
-3566
-7601
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + - col2 * col1 + + col1 col2 FROM tab2
----
-1023
-1972
-6077
query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 81 * - cor0.col2 - - col1 FROM tab0 cor0
----
-2587
-6551
16
query I rowsort
SELECT 63 * cor0.col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to f2b207c373906ce53f5e7d84b72cfa41
onlyif mysql # use DIV operator for integer division
query I rowsort label-450
SELECT col2 DIV + ( col0 ) AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-450
SELECT col2 / + ( col0 ) AS col2 FROM tab1 AS cor0
----
0
1
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-451
SELECT DISTINCT + tab1.col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT + tab1.col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT ALL 94 AS col2 FROM tab2 cor0
----
94
94
94
query I rowsort
SELECT DISTINCT + - 95 FROM tab1 cor0
----
-95
query I rowsort
SELECT ( 68 ) * + col0 AS col0 FROM tab2 AS cor0
----
476
5304
5372
query I rowsort
SELECT col1 + col1 * + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
onlyif mysql # use DIV operator for integer division
query I rowsort label-456
SELECT + - 31 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-456
SELECT + - 31 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 * 5 col2 FROM tab0
----
-165
-410
-5
query I rowsort
SELECT + 91 * + 9 AS col2 FROM tab2 AS cor0
----
819
819
819
query I rowsort
SELECT DISTINCT col0 + 54 AS col2 FROM tab1 AS cor0
----
118
134
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-460
SELECT ALL + col0 DIV 1 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-460
SELECT ALL + col0 / 1 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT + col1 + - 49 + + 58 * col0 AS col1 FROM tab1 AS cor0
----
151
3673
4604
query I rowsort
SELECT ALL - 2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT + col1 * 14 + - 69 * - col1 FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT DISTINCT + col0 + col1 * - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + col0 + col1 + col1 FROM tab0 cor0
----
196
229
271
query I rowsort
SELECT ALL 85 * 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08fa07fed055c156e813d5e2e0eb1103
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-468
SELECT col1 / 78 + - col0 * col0 - - CAST( NULL AS SIGNED ) / + 43 col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-468
SELECT col1 / 78 + - col0 * col0 - - CAST ( NULL AS INTEGER ) / + 43 col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + + 84 FROM tab0 AS cor0
----
-13
-2
-7
query I rowsort
SELECT ALL + col1 + ( cor0.col0 ) * col0 + cor0.col0 * + 70 * - col2 FROM tab2 cor0
----
-13150
-135817
-203882
query I rowsort
SELECT ALL + col2 + + col2 * + 46 FROM tab1 AS cor0
----
2538
2679
4512
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-472
SELECT - col0 * - CAST( + col0 AS SIGNED ) FROM tab2
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-472
SELECT - col0 * - CAST ( + col0 AS INTEGER ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT + tab2.col1 + + 61 + col0 FROM tab2
----
157
198
99
query I rowsort
SELECT ALL + col0 + - 64 * - col1 AS col1 FROM tab1
----
1667
704
912
query I rowsort
SELECT ALL + 25 AS col0 FROM tab2
----
25
25
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-476
SELECT ALL + CAST( - col0 + tab2.col0 AS SIGNED ) col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-476
SELECT ALL + CAST ( - col0 + tab2.col0 AS INTEGER ) col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + ( + col2 * + col0 + col2 ) AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT - 57 AS col1 FROM tab0 cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT - ( - col2 * + col2 ) AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT tab0.col2 + col1 * + col2 AS col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL 3 * 10 FROM tab1
----
30
30
30
query I rowsort
SELECT ALL + 94 * - col0 AS col2 FROM tab2
----
-658
-7332
-7426
query I rowsort
SELECT ALL ( + col0 ) * + tab0.col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL 95 * + col0 * - 14 AS col1 FROM tab0 AS cor0
----
-118370
-31920
-46550
query I rowsort
SELECT + + ( - col2 ) + 34 AS col1 FROM tab2 cor0
----
-4
7
8
query I rowsort
SELECT DISTINCT + + 80 + + col2 + - col1 FROM tab0 cor0
----
-16
27
71
query I rowsort
SELECT + ( col1 ) + ( 61 ) * + col1 FROM tab1
----
1612
620
806
query I rowsort
SELECT ALL + 86 + col1 AS col1 FROM tab0 AS cor0
----
172
177
183
query I rowsort
SELECT - + col1 * + col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col1 FROM tab0 AS cor0
----
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 9 col0 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT - col1 + - col0 AS col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + col0 - - col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - + 31 * + cor0.col2 FROM tab1 AS cor0
----
-1674
-1767
-2976
query I rowsort
SELECT DISTINCT - 93 * + col0 FROM tab0
----
-2232
-3255
-8277
query I rowsort
SELECT 42 * - col0 AS col2 FROM tab0 AS cor0
----
-1008
-1470
-3738
query I rowsort
SELECT DISTINCT + - 32 + - col0 AS col1 FROM tab2 cor0
----
-110
-111
-39
query I rowsort
SELECT - - col1 * col0 + 85 * - col1 FROM tab2 AS cor0
----
-102
-2418
-413
query I rowsort
SELECT ALL 57 * - col2 FROM tab0 AS cor0
----
-1881
-4674
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-501
SELECT DISTINCT - + 58 * col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT - + 58 * col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col1 col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + cor0.col0 * 13 AS col0 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT ALL + + col2 * - 85 FROM tab0 AS cor0
----
-2805
-6970
-85
query I rowsort
SELECT - col2 + 42 * 49 FROM tab2 AS cor0
----
2020
2031
2032
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 * 85 * + col1 col0 FROM tab0 AS cor0
----
628627
703803
799764
query I rowsort
SELECT + col2 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col0 * - ( 82 + - col2 ) FROM tab0 AS cor0
----
0
1176
2835
onlyif mysql # use DIV operator for integer division
query I rowsort label-509
SELECT DISTINCT - 60 DIV + 91 + - col1 * + ( 39 * col0 ) FROM tab2 cor0
----
-179478
-52377
-8463
skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT - 60 / + 91 + - col1 * + ( 39 * col0 ) FROM tab2 cor0
----
-179478
-52377
-8463
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - cor0.col2 - col0 * col2 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-512
SELECT DISTINCT + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 * col1 + cor0.col0 col0 FROM tab1 AS cor0
----
36544
4215
99920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 13 col0 FROM tab2 AS cor0
----
1014
1027
91
query I rowsort
SELECT - 77 * 74 AS col0 FROM tab2
----
-5698
-5698
-5698
query I rowsort
SELECT col2 + 60 AS col1 FROM tab0 AS cor0
----
142
61
93
query I rowsort
SELECT + ( col0 ) * col1 - cor0.col2 AS col1 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * - ( col1 ) + 57 * - col1 col1 FROM tab2 AS cor0
----
-680
-806
118
onlyif mysql # use DIV operator for integer division
query I rowsort label-519
SELECT + col2 + col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-519
SELECT + col2 + col1 / - col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-521
SELECT CAST( NULL AS DECIMAL ) + col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-521
SELECT CAST ( NULL AS REAL ) + col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col2 + col1 + + col1 * col1 FROM tab1 AS cor0
----
167
278
756
query I rowsort
SELECT ALL col2 * col0 + + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT ( col0 ) * col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + 36 + col2 AS col2 FROM tab1
----
132
90
93
query I rowsort
SELECT DISTINCT - ( - tab0.col1 + + tab0.col0 ) * 72 FROM tab0
----
144
4464
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 * - col2 + - col2 col2 FROM tab2
----
-2366
-2457
-3458
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * col1 col2 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT + - col0 + col0 + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-530
SELECT + col1 DIV cor0.col1 - + col0 DIV + col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-530
SELECT + col1 / cor0.col1 - + col0 / + col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + col1 * - col1 + - col1 FROM tab2 cor0
----
-306
-3540
-992
query I rowsort
SELECT + col1 + + col1 * cor0.col1 * - col2 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT - col1 + - col0 * - 10 AS col2 FROM tab0 AS cor0
----
154
253
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-534
SELECT cor0.col1 * + CAST( + col0 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-534
SELECT cor0.col1 * + CAST ( + col0 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-537
SELECT ALL - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-537
SELECT ALL - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-539
SELECT + CAST( NULL AS SIGNED ) * 12 + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-539
SELECT + CAST ( NULL AS INTEGER ) * 12 + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * 95 FROM tab0
----
2280
3325
8455
onlyif mysql # use DIV operator for integer division
query I rowsort label-541
SELECT col1 DIV col1 + col1 DIV col1 + col2 FROM tab1
----
56
59
98
skipif mysql # not compatible
query I rowsort label-541
SELECT col1 / col1 + col1 / col1 + col2 FROM tab1
----
56
59
98
query I rowsort
SELECT DISTINCT + tab1.col1 * col1 * + 57 AS col0 FROM tab1
----
38532
5700
9633
query I rowsort
SELECT col0 * col2 * col2 + col1 AS col1 FROM tab2
----
114093
5134
52787
query I rowsort
SELECT DISTINCT - tab2.col2 AS col2 FROM tab2, tab1, tab0 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL tab0.col2 - 33 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1dfe9c8080b8e16f1f07257507f1361a
query I rowsort
SELECT + ( - cor0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL + col2 + col2 * 82 FROM tab1 AS cor0
----
4482
4731
7968
query I rowsort
SELECT DISTINCT + col0 * + col1 * col2 + col2 AS col0 FROM tab1 AS cor0
----
36537
4266
99936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * - col1 col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT col2 * 93 AS col2 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT + col0 * - 7 FROM tab2 cor0
----
-49
-546
-553
query I rowsort
SELECT DISTINCT - cor1.col1 + + 77 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-14
-20
-9
query I rowsort
SELECT ALL - tab1.col2 + tab1.col2 - - col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + col2 - 15 FROM tab1
----
39
42
81
query I rowsort
SELECT + col0 * ( 95 ) FROM tab0
----
2280
3325
8455
query I rowsort
SELECT tab2.col1 - 45 * tab2.col1 AS col1 FROM tab2
----
-1364
-2596
-748
query I rowsort
SELECT ALL col1 * + col0 - col0 * col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-559
SELECT - col2 DIV + 58 col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-559
SELECT - col2 / + 58 col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 89 col0 FROM tab0
----
-56
-7
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + + col1 col1 FROM tab0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-562
SELECT DISTINCT col0 - + col2 DIV + col1 FROM tab1
----
1
59
73
skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT col0 - + col2 / + col1 FROM tab1
----
1
59
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-563
SELECT + + col0 * - CAST( 56 AS SIGNED ) AS col1 FROM tab2 cor0
----
-392
-4368
-4424
skipif mysql # not compatible
query I rowsort label-563
SELECT + + col0 * - CAST ( 56 AS INTEGER ) AS col1 FROM tab2 cor0
----
-392
-4368
-4424
query I rowsort
SELECT + cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1, tab1 AS cor0
----
20
query I rowsort
SELECT 50 AS col0 FROM tab1
----
50
50
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-567
SELECT CAST( - col1 AS SIGNED ) * col1 * - col0 AS col2 FROM tab2
----
22831
271518
6727
skipif mysql # not compatible
query I rowsort label-567
SELECT CAST ( - col1 AS INTEGER ) * col1 * - col0 AS col2 FROM tab2
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 + + col0 col2 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT col0 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - col1 * col0 + + col2 * + 50 + col0 FROM tab2 AS cor0
----
-3224
1140
636
query I rowsort
SELECT + col0 * 24 AS col2 FROM tab1
----
1536
1920
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-572
SELECT ALL - CAST( NULL AS DECIMAL ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-572
SELECT ALL - CAST ( NULL AS REAL ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + + col1 * + col1 + tab0.col2 * - 95 * + col2 FROM tab0
----
-630410
-96035
9349
query I rowsort
SELECT ALL ( col2 ) + - col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + 61 + col2 FROM tab1
----
115
118
157
onlyif mysql # use DIV operator for integer division
query I rowsort label-576
SELECT + + cor0.col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-576
SELECT + + cor0.col1 / - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT - col2 * col2 * - col2 + - col0 FROM tab1 AS cor0
----
157461
185129
884656
query I rowsort
SELECT ALL 38 + col2 * + col1 FROM tab2 AS cor0
----
1572
684
875
query I rowsort
SELECT ALL + 21 * tab2.col1 AS col2 FROM tab2
----
1239
357
651
query I rowsort
SELECT + + 31 * - col0 AS col1 FROM tab1 AS cor0
----
-1984
-2480
-93
query I rowsort
SELECT 47 * - col2 AS col0 FROM tab0 AS cor0
----
-1551
-3854
-47
query I rowsort
SELECT ALL - - 26 AS col2 FROM tab2 AS cor0
----
26
26
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-583
SELECT CAST( NULL AS SIGNED ) * 72 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-583
SELECT CAST ( NULL AS INTEGER ) * 72 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 70 ) FROM tab1 cor0
----
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT - + cor0.col0 * - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-585
SELECT - + cor0.col0 * - col1 / col1 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * + col1 * + cor0.col0 col1 FROM tab1 AS cor0
----
51840
6318
84240
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be
query I rowsort
SELECT ALL + col0 * - col2 + + cor0.col2 * - 99 FROM tab1 AS cor0
----
-17184
-5508
-9291
query I rowsort
SELECT DISTINCT - 72 * col2 FROM tab1 AS cor0
----
-3888
-4104
-6912
onlyif mysql # use DIV operator for integer division
query I rowsort label-590
SELECT ALL + 12 DIV col1 + 98 AS col0 FROM tab0 AS cor0
----
98
98
98
skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + 12 / col1 + 98 AS col0 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT ALL + 59 * col2 + 18 FROM tab2 AS cor0
----
1552
1611
2260
query I rowsort
SELECT DISTINCT 97 * - col2 AS col0 FROM tab2 cor0
----
-2522
-2619
-3686
query I rowsort
SELECT + 44 AS col1 FROM tab1 cor0
----
44
44
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-594
SELECT ALL + 7 DIV + col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + 7 / + col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col1 FROM tab0
----
-28
query I rowsort
SELECT + cor0.col2 * col0 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL cor0.col0 + 11 FROM tab1 AS cor0
----
14
75
91
query I rowsort
SELECT ALL - + col1 * + 27 + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-2375
-2466
-2715
query I rowsort
SELECT ALL + col1 + 85 FROM tab0 cor0
----
171
176
182
query I rowsort
SELECT - col1 * col1 + 30 FROM tab1 AS cor0
----
-139
-646
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( + 17 ) col2 FROM tab0 AS cor0
----
18
50
99
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - col0 + 96 AS col0 FROM tab0 AS cor0
----
61
7
72
query I rowsort
SELECT + col1 - tab1.col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ( col1 * - col2 ) + - tab0.col0 * - tab0.col1 AS col0 FROM tab0
----
-774
3298
637
query I rowsort
SELECT + 10 + col2 AS col0 FROM tab2
----
36
37
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + - tab1.col0 col1 FROM tab1
----
-29
-45
32
query I rowsort
SELECT 7 * + col0 FROM tab2
----
49
546
553
query I rowsort
SELECT DISTINCT + col2 * col1 * cor0.col2 + col2 + col1 * col0 FROM tab0 cor0
----
3493
620065
95751
onlyif mysql # use DIV operator for integer division
query I rowsort label-610
SELECT ALL + col0 DIV + col1 - - col0 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-610
SELECT ALL + col0 / + col1 - - col0 FROM tab1 AS cor0
----
3
70
86
query I rowsort
SELECT + 78 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL - col2 + 90 * col2 FROM tab0
----
2937
7298
89
query I rowsort
SELECT tab0.col0 * col0 * + col0 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT DISTINCT tab2.col0 + - 92 FROM tab2
----
-13
-14
-85
query I rowsort
SELECT + col0 + 85 AS col2 FROM tab1
----
149
165
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 37 col2 FROM tab0
----
1295
3293
888
query I rowsort
SELECT ALL - col1 * 88 + col0 * col1 AS col1 FROM tab0 AS cor0
----
-5141
-5504
91
query I rowsort
SELECT - 29 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
-2470
-2550
-2778
query I rowsort
SELECT DISTINCT ( 73 ) AS col2 FROM tab0 AS cor0
----
73
query I rowsort
SELECT - - 38 * + 16 AS col2 FROM tab2 AS cor0
----
608
608
608
query I rowsort
SELECT ALL + 91 + - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-198
-3390
-870
query I rowsort
SELECT DISTINCT - 90 * col1 AS col2 FROM tab2 AS cor0
----
-1530
-2790
-5310
query I rowsort
SELECT 64 + 17 AS col2 FROM tab1 cor0
----
81
81
81
query I rowsort
SELECT DISTINCT + 51 + + cor0.col0 * - col1 - col1 FROM tab0 AS cor0
----
-2099
-3441
-8139
query I rowsort
SELECT cor0.col0 + + 79 FROM tab2 AS cor0
----
157
158
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-626
SELECT + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-626
SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col1 + col2 + + col0 * - 36 AS col2 FROM tab0 AS cor0
----
-1162
-3031
-745
query I rowsort
SELECT + col1 * col1 - ( - col1 ) AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL 27 * cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
2485
681
946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 + - col2 * + col2 col0 FROM tab2 AS cor0
----
-1352
-1458
-2888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + 97 * + col0 AS col1 FROM tab2 AS cor0
----
679
7566
7663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - - col1 col2 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 - col2 col1 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT - + col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - - col1 * + ( col2 ) FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT ALL col2 DIV col0 + ( col2 * col0 ) FROM tab0 AS cor0
----
35
7298
793
skipif mysql # not compatible
query I rowsort label-637
SELECT ALL col2 / col0 + ( col2 * col0 ) FROM tab0 AS cor0
----
35
7298
793
query I rowsort
SELECT ALL - cor0.col2 * + 27 AS col2 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT ALL 68 + col0 AS col1 FROM tab1
----
132
148
71
query I rowsort
SELECT col1 * 78 - ( col0 ) AS col1 FROM tab1 AS cor0
----
2025
716
934
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - + col0 + - 24 * ( + col1 ) FROM tab0 cor0
----
-2088
-2273
-2363
query I rowsort
SELECT DISTINCT + col2 * ( + col0 + + col2 ) * + 24 AS col2 FROM tab0 AS cor0
----
336528
45144
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + col0 col2 FROM tab0 AS cor0
----
124
59
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-645
SELECT - + col0 DIV col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-645
SELECT - + col0 / col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT + 36 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT DISTINCT - - col1 - + ( - 14 ) AS col1 FROM tab0 AS cor0
----
100
105
111
query I rowsort
SELECT col0 + ( 24 * + col2 ) FROM tab1 AS cor0
----
1299
1432
2384
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-649
SELECT + - col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-649
SELECT + - col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * 53 FROM tab2 AS cor0
----
371
4134
4187
onlyif mysql # use DIV operator for integer division
query I rowsort label-651
SELECT - col2 DIV 69 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-651
SELECT - col2 / 69 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - col0 + ( - cor0.col2 * col1 ) + col0 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 78 * col2 + col2 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT - - col1 + 0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + + col2 + - cor0.col0 * - col1 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-656
SELECT 30 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-656
SELECT 30 / col0 AS col0 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-657
SELECT - + cor0.col1 + cor0.col2 DIV - col1 FROM tab2 AS cor0
----
-19
-31
-59
skipif mysql # not compatible
query I rowsort label-657
SELECT - + cor0.col1 + cor0.col2 / - col1 FROM tab2 AS cor0
----
-19
-31
-59
query I rowsort
SELECT DISTINCT 42 * - tab2.col2 AS col1 FROM tab2
----
-1092
-1134
-1596
query I rowsort
SELECT - 58 + + col1 * + col0 FROM tab0 AS cor0
----
2006
3337
8041
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 97 + + col2 FROM tab0 cor0
----
130
179
98
query I rowsort
SELECT - col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-663
SELECT DISTINCT + - col1 + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT + - col1 + col0 / col2 AS col0 FROM tab0 AS cor0
----
-62
-86
-90
query I rowsort
SELECT DISTINCT - col0 * col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
-1190
-623
216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-665
SELECT + + col0 + + CAST( + col0 AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
skipif mysql # not compatible
query I rowsort label-665
SELECT + + col0 + + CAST ( + col0 AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - col1 + ( cor0.col2 ) * - col2 * 65 FROM tab0 AS cor0
----
-162
-437151
-70871
query I rowsort
SELECT DISTINCT - col0 * ( - cor0.col1 * - cor0.col1 ) FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-50
query I rowsort
SELECT DISTINCT - - 96 * + col2 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
5158
5462
9203
query I rowsort
SELECT ALL ( - 99 ) * + col2 FROM tab0 AS cor0
----
-3267
-8118
-99
query I rowsort
SELECT 63 + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5680edd2e1edd155f1e3c53af6d4ee58
query I rowsort
SELECT cor0.col2 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT + ( col0 ) + - col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + col2 * col1 - - col1 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
121056
33060
77220
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-675
SELECT CAST( - col2 AS SIGNED ) * - col1 AS col0 FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-675
SELECT CAST ( - col2 AS INTEGER ) * - col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT - 89 + col1 FROM tab1
----
-63
-76
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-677
SELECT - col1 * col2 DIV + col0 - tab2.col0 FROM tab2
----
-126
-87
-97
skipif mysql # not compatible
query I rowsort label-677
SELECT - col1 * col2 / + col0 - tab2.col0 FROM tab2
----
-126
-87
-97
query I rowsort
SELECT - col0 + + 9 FROM tab0
----
-15
-26
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-679
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + + col0 * - CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + + col0 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
query I rowsort
SELECT + 81 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd
query I rowsort
SELECT cor1.col1 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT + ( 84 ) DIV - col1 + ( col1 ) FROM tab2
----
13
29
58
skipif mysql # not compatible
query I rowsort label-682
SELECT + ( 84 ) / - col1 + ( col1 ) FROM tab2
----
13
29
58
query I rowsort
SELECT ALL col1 + + 44 FROM tab0
----
130
135
141
query I rowsort
SELECT DISTINCT - ( 39 ) FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
-39
query I rowsort
SELECT ALL - col2 + - 19 * + col1 FROM tab1 AS cor0
----
-247
-343
-548
query I rowsort
SELECT DISTINCT + col1 * col2 * + cor0.col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT - col0 DIV ( col2 ) + col1 DIV 5 + + col2 AS col1 FROM tab0 cor0
----
-15
50
99
skipif mysql # not compatible
query I rowsort label-687
SELECT - col0 / ( col2 ) + col1 / 5 + + col2 AS col1 FROM tab0 cor0
----
-15
50
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-688
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + ( - tab0.col0 + - tab0.col1 * 96 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0f931e6c7e706fae2618bccc44d5a210
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-690
SELECT ALL - - CAST( - col1 AS SIGNED ) + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-690
SELECT ALL - - CAST ( - col1 AS INTEGER ) + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - + ( - col1 ) * + col0 * ( - col2 + col2 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT + - 45 * + 82 AS col0 FROM tab0 AS cor0
----
-3690
-3690
-3690
query I rowsort
SELECT DISTINCT - 39 * - 29 FROM tab0
----
1131
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-694
SELECT CAST( 98 AS SIGNED ) FROM tab2
----
98
98
98
skipif mysql # not compatible
query I rowsort label-694
SELECT CAST ( 98 AS INTEGER ) FROM tab2
----
98
98
98
query I rowsort
SELECT - cor0.col1 * 32 * + col2 AS col0 FROM tab0 AS cor0
----
-238784
-3104
-90816
query I rowsort
SELECT ALL - + ( 65 ) * col2 FROM tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT DISTINCT 9 + col0 * + col1 FROM tab1 AS cor0
----
1049
649
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-698
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - - ( cor0.col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab0, tab2, tab2 AS cor0, tab1
----
3
64
80
query I rowsort
SELECT ALL - - cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - cor0.col2 * + col0 * col2 + - col1 + - col1 FROM tab2 AS cor0
----
-114110
-5165
-52846
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 * + col2 col2 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT col2 + - tab1.col0 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT + + 70 - + col1 FROM tab1 AS cor0
----
44
57
60
query I rowsort
SELECT ALL + col1 * cor0.col0 + - col2 * cor0.col0 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT col1 + - col1 + - ( cor0.col2 * - cor0.col2 ) FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-708
SELECT DISTINCT col1 DIV col1 + - col0 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
118826
49537
720812
skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT col1 / col1 + - col0 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
118826
49537
720812
query I rowsort
SELECT ALL + cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-710
SELECT DISTINCT + col1 + CAST( + 89 AS SIGNED ) * col1 FROM tab1 cor0
----
1170
2340
900
skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT + col1 + CAST ( + 89 AS INTEGER ) * col1 FROM tab1 cor0
----
1170
2340
900
query I rowsort
SELECT col0 + - ( col0 + col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT - col2 DIV + ( col0 ) + col2 + col0 FROM tab2 AS cor0
----
104
117
31
skipif mysql # not compatible
query I rowsort label-712
SELECT - col2 / + ( col0 ) + col2 + col0 FROM tab2 AS cor0
----
104
117
31
query I rowsort
SELECT ALL col0 * + 90 AS col0 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT ALL + col1 + - col1 * 43 AS col2 FROM tab2 cor0
----
-1302
-2478
-714
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-715
SELECT DISTINCT + col1 * - CAST( 46 AS SIGNED ) FROM tab0 AS cor0
----
-3956
-4186
-4462
skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT + col1 * - CAST ( 46 AS INTEGER ) FROM tab0 AS cor0
----
-3956
-4186
-4462
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-716
SELECT col0 * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-716
SELECT col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 26 + + tab2.col2 AS col2 FROM tab2
----
52
53
64
query I rowsort
SELECT - col2 * - col0 + + col2 * col1 FROM tab2
----
1026
3562
3648
query I rowsort
SELECT col0 * tab0.col2 * 95 AS col2 FROM tab0
----
3325
693310
75240
query I rowsort
SELECT 54 * col1 + - col1 AS col2 FROM tab0
----
4558
4823
5141
query I rowsort
SELECT - - 22 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT DISTINCT ( + col2 ) DIV col2 + + 76 + col0 AS col0 FROM tab1
----
141
157
80
skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT ( + col2 ) / col2 + + 76 + col0 AS col0 FROM tab1
----
141
157
80
query I rowsort
SELECT 50 + - col1 * 42 AS col0 FROM tab0
----
-3562
-3772
-4024
query I rowsort
SELECT ALL 54 FROM tab0, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT ALL - col1 * + 33 AS col2 FROM tab2 AS cor0
----
-1023
-1947
-561
query I rowsort
SELECT DISTINCT - col2 + - 67 AS col2 FROM tab2 AS cor0
----
-105
-93
-94
query I rowsort
SELECT DISTINCT col0 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT col0 * 57 + col1 FROM tab2 AS cor0
----
430
4505
4520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-729
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col1 * - 5 + col0 AS col1 FROM tab2 AS cor0
----
-148
-217
-6
query I rowsort
SELECT + col0 - - ( col2 ) * col2 AS col0 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT + col1 + + cor0.col0 + 60 * - col1 FROM tab2 AS cor0
----
-1822
-3403
-924
query I rowsort
SELECT + 44 + 32 + - col1 * col0 FROM tab1 AS cor0
----
-2
-564
-964
onlyif mysql # use DIV operator for integer division
query I rowsort label-734
SELECT ALL + + tab1.col1 DIV + 20 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
skipif mysql # not compatible
query I rowsort label-734
SELECT ALL + + tab1.col1 / + 20 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
query I rowsort
SELECT 26 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT - col1 * 32 FROM tab1
----
-320
-416
-832
query I rowsort
SELECT ALL - col1 * + 56 AS col1 FROM tab0
----
-4816
-5096
-5432
query I rowsort
SELECT + 62 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
onlyif mysql # use DIV operator for integer division
query I rowsort label-739
SELECT ALL + tab1.col2 DIV tab1.col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-739
SELECT ALL + tab1.col2 / tab1.col1 AS col2 FROM tab1
----
2
5
7
query I rowsort
SELECT 61 * cor0.col2 FROM tab2 AS cor0
----
1586
1647
2318
query I rowsort
SELECT - ( col1 ) * + 65 AS col1 FROM tab2 AS cor0
----
-1105
-2015
-3835
query I rowsort
SELECT col2 * 7 * + col1 + tab0.col1 * col1 FROM tab0
----
10088
27262
60515
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * - col0 + col0 * 54 col0 FROM tab1
----
10640
399
8512
query I rowsort
SELECT - 49 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 * + cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd367ab7c8d057d9aebb0731ddf71f6d
query I rowsort
SELECT ALL + + col1 * + col1 + col0 + col2 * - col0 FROM tab2 cor0
----
-2634
1531
779
query I rowsort
SELECT DISTINCT col1 + + col1 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + col2 + - col0 + - 89 * col2 FROM tab1 AS cor0
----
-4755
-5080
-8528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-749
SELECT DISTINCT + - ( col1 ) - CAST( NULL AS SIGNED ) * + col0 col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + - ( col1 ) - CAST ( NULL AS INTEGER ) * + col0 col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 + + col0 * - col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT - + 66 + - cor0.col0 FROM tab2 AS cor0
----
-144
-145
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-752
SELECT ALL + + col1 * col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + + col1 * col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + col2 * 78 AS col2 FROM tab1 AS cor0
----
4215
4510
7568
query I rowsort
SELECT ALL - - 30 + cor0.col1 * + col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-119778
-32460
-75786
query I rowsort
SELECT + - col0 * col0 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL - + 91 + + col1 AS col1 FROM tab1 AS cor0
----
-65
-78
-81
query I rowsort
SELECT - ( col1 ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + - 68 + - 86 AS col0 FROM tab0 cor0
----
-154
-154
-154
query I rowsort
SELECT - + cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT 44 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
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-763
SELECT + - CAST( + col1 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-763
SELECT + - CAST ( + col1 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab1, tab2 AS cor0
----
20
query I rowsort
SELECT + - col2 + 82 * cor0.col2 FROM tab0 AS cor0
----
2673
6642
81
query I rowsort
SELECT ( 49 ) AS col0 FROM tab1 AS cor0
----
49
49
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-767
SELECT + CAST( NULL AS SIGNED ) * - ( - col0 * + col0 ) - 0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-767
SELECT + CAST ( NULL AS INTEGER ) * - ( - col0 * + col0 ) - 0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + 87 FROM tab1 cor0
----
87
87
87
query I rowsort
SELECT DISTINCT + 67 FROM tab1, tab0 AS cor0
----
67
query I rowsort
SELECT - col2 + col1 * 85 AS col0 FROM tab2
----
1407
2608
4989
query I rowsort
SELECT DISTINCT - + 20 + - col0 * - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-2048
-209
-3022
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 * ( + 57 + - col0 * col2 ) FROM tab0 AS cor0
----
-770
52844818
582120
onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT col2 DIV col1 + 79 + - col1 AS col2 FROM tab0 AS cor0
----
-12
-18
-7
skipif mysql # not compatible
query I rowsort label-773
SELECT col2 / col1 + 79 + - col1 AS col2 FROM tab0 AS cor0
----
-12
-18
-7
query I rowsort
SELECT col0 + - ( - 42 ) + + col2 AS col0 FROM tab2 AS cor0
----
146
159
76
query I rowsort
SELECT + + col1 * cor0.col0 + - col1 + - col1 * - col1 FROM tab0 cor0
----
12707
16289
9374
query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col1 FROM tab0, tab1 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT ALL - col1 * col1 + + col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT + + col2 * - col2 + - cor0.col2 + col1 FROM tab0 AS cor0
----
-1036
-6715
95
query I rowsort
SELECT DISTINCT cor0.col0 * col1 + + 82 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
2766
2816
9518
onlyif mysql # use DIV operator for integer division
query I rowsort label-782
SELECT + cor0.col1 + cor0.col0 DIV col1 + col0 AS col0 FROM tab1 AS cor0
----
29
80
99
skipif mysql # not compatible
query I rowsort label-782
SELECT + cor0.col1 + cor0.col0 / col1 + col0 AS col0 FROM tab1 AS cor0
----
29
80
99
query I rowsort
SELECT col2 + + 10 AS col2 FROM tab1 AS cor0
----
106
64
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 51 col0 FROM tab2 AS cor0
----
13
24
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 + + 60 * col1 col2 FROM tab0 AS cor0
----
5071
5371
5731
query I rowsort
SELECT DISTINCT - 34 * col0 * col1 AS col0 FROM tab2 AS cor0
----
-156468
-45662
-7378
onlyif mysql # use DIV operator for integer division
query I rowsort label-787
SELECT + + col0 DIV - 69 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-787
SELECT + + col0 / - 69 FROM tab0 cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-788
SELECT - col1 DIV + 14 AS col0 FROM tab0 AS cor0
----
-6
-6
-6
skipif mysql # not compatible
query I rowsort label-788
SELECT - col1 / + 14 AS col0 FROM tab0 AS cor0
----
-6
-6
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 90 * + col0 col0 FROM tab0 cor0
----
-2160
-3150
-8010
query I rowsort
SELECT - ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - - cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - 52 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c232e2ae3578ab06c9eddd80610c3a7f
query I rowsort
SELECT DISTINCT + col2 * - col0 - ( col1 ) FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT - 91 + col1 FROM tab1 AS cor0
----
-65
-78
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-795
SELECT ALL col0 * col1 DIV CAST( 26 * - col2 AS SIGNED ) + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-795
SELECT ALL col0 * col1 / CAST ( 26 * - col2 AS INTEGER ) + col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT col0 * col0 DIV - 69 AS col0 FROM tab1 AS cor0
----
-59
-92
0
skipif mysql # not compatible
query I rowsort label-796
SELECT col0 * col0 / - 69 AS col0 FROM tab1 AS cor0
----
-59
-92
0
query I rowsort
SELECT ALL + col2 * 72 + + col2 + - cor0.col1 FROM tab2 AS cor0
----
1839
1940
2757
query I rowsort
SELECT ALL + 16 * tab2.col2 AS col1 FROM tab2
----
416
432
608
query I rowsort
SELECT DISTINCT + - col2 * + 26 + - col0 + - col1 FROM tab1 AS cor0
----
-1433
-1556
-2589
onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT ALL + cor0.col2 DIV col0 + col2 AS col1 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + cor0.col2 / col0 + col2 AS col1 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT - col0 * - 15 + col2 * col0 FROM tab1 AS cor0
----
207
4608
8880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-802
SELECT ALL - - cor0.col2 * ( col2 ) * + col1 + + CAST( NULL AS SIGNED ) * 4 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-802
SELECT ALL - - cor0.col2 * ( col2 ) * + col1 + + CAST ( NULL AS INTEGER ) * 4 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + - col2 - 71 * ( col0 * + col1 ) FROM tab2
----
-15403
-326709
-95374
query I rowsort
SELECT + 71 + tab2.col2 AS col2 FROM tab2
----
109
97
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-805
SELECT DISTINCT - col0 DIV col2 - 48 * 21 AS col1 FROM tab0
----
-1008
-1009
-1043
skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT - col0 / col2 - 48 * 21 AS col1 FROM tab0
----
-1008
-1009
-1043
query I rowsort
SELECT + ( tab1.col1 ) * + ( col2 ) + - col0 + col2 FROM tab1
----
1264
1455
563
query I rowsort
SELECT - ( col2 ) * col1 AS col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-808
SELECT ALL + CAST( NULL AS SIGNED ) * + 80 AS col2 FROM tab2, tab2 cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-808
SELECT ALL + CAST ( NULL AS INTEGER ) * + 80 AS col2 FROM tab2, tab2 cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - ( col2 ) * - 2 - - col2 AS col0 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + - cor0.col0 AS col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL 13 * col2 FROM tab2
----
338
351
494
query I rowsort
SELECT ALL - 15 AS col2 FROM tab1
----
-15
-15
-15
query I rowsort
SELECT ALL + 87 - + col0 FROM tab0 cor0
----
-2
52
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-815
SELECT + + col0 DIV + col2 + - col1 * 42 FROM tab1 AS cor0
----
-1092
-419
-546
skipif mysql # not compatible
query I rowsort label-815
SELECT + + col0 / + col2 + - col1 * 42 FROM tab1 AS cor0
----
-1092
-419
-546
onlyif mysql # use DIV operator for integer division
query I rowsort label-816
SELECT DISTINCT 61 + col1 * ( + cor0.col1 ) DIV col0 AS col2 FROM tab2 AS cor0
----
105
198
64
skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT 61 + col1 * ( + cor0.col1 ) / col0 AS col2 FROM tab2 AS cor0
----
105
198
64
query I rowsort
SELECT ALL - 90 + + col2 AS col1 FROM tab1 AS cor0
----
-33
-36
6
query I rowsort
SELECT ALL 72 * - col0 FROM tab1 AS cor0
----
-216
-4608
-5760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - cor0.col0 * col1 col2 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-820
SELECT ALL col1 + - col2 * - CAST( + col1 + col1 AS SIGNED ) FROM tab1 AS cor0
----
1150
2509
2834
skipif mysql # not compatible
query I rowsort label-820
SELECT ALL col1 + - col2 * - CAST ( + col1 + col1 AS INTEGER ) FROM tab1 AS cor0
----
1150
2509
2834
onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT DISTINCT + cor0.col2 - - col1 DIV ( ( col1 ) + + col1 ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT + cor0.col2 - - col1 / ( ( col1 ) + + col1 ) FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT DISTINCT + col2 DIV + ( + col2 ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT + col2 / + ( + col2 ) FROM tab0
----
1
query I rowsort
SELECT ALL tab2.col0 * + 84 AS col2 FROM tab2
----
588
6552
6636
query I rowsort
SELECT DISTINCT col2 * col0 * - 51 FROM tab2 cor0
----
-103428
-153102
-9639
query I rowsort
SELECT ALL - col0 * 68 FROM tab2 AS cor0
----
-476
-5304
-5372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * + cor0.col2 col2 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-827
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 93 * - col2 AS col2 FROM tab1 AS cor0
----
5022
5301
8928
query I rowsort
SELECT + col1 * + cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + col1 * - cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT 8 * + col1 AS col1 FROM tab0 AS cor0
----
688
728
776
query I rowsort
SELECT ALL 42 + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2796
-55
-7420
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 37 col1 FROM tab2 AS cor0
----
115
116
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-834
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 86 * col2 FROM tab1 AS cor0
----
4644
4902
8256
query I rowsort
SELECT DISTINCT - 87 * col0 AS col0 FROM tab1 AS cor0
----
-261
-5568
-6960
query I rowsort
SELECT ALL + + 53 * cor0.col2 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT + - col2 + 63 FROM tab0 AS cor0
----
-19
30
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-839
SELECT ALL - col0 * col0 DIV + col0 - tab2.col2 * col2 AS col1 FROM tab2
----
-1523
-736
-754
skipif mysql # not compatible
query I rowsort label-839
SELECT ALL - col0 * col0 / + col0 - tab2.col2 * col2 AS col1 FROM tab2
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT 88 + + col2 FROM tab0 cor0
----
121
170
89
query I rowsort
SELECT DISTINCT col1 * col2 + col2 - + 34 * col0 AS col1 FROM tab0 cor0
----
-1092
2055
4518
query I rowsort
SELECT ALL - - cor0.col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 - col0 col1 FROM tab0 AS cor0
----
-16
38
49
query I rowsort
SELECT + ( - 4 ) - col0 * ( + col1 * col2 ) AS col2 FROM tab2 AS cor0
----
-119656
-51038
-5863
query I rowsort
SELECT ALL - ( + col0 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + cor0.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-847
SELECT + + CAST( col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-847
SELECT + + CAST ( col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT ALL - col0 DIV - col1 + col0 * + col2 AS col2 FROM tab2
----
189
2029
3006
skipif mysql # not compatible
query I rowsort label-848
SELECT ALL - col0 / - col1 + col0 * + col2 AS col2 FROM tab2
----
189
2029
3006
query I rowsort
SELECT col2 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * cor0.col1 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-851
SELECT 25 + - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-851
SELECT 25 + - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - col0 * - col0 - col2 FROM tab0 AS cor0
----
1224
18975
649440
query I rowsort
SELECT - + col0 * col1 + - 42 FROM tab2 AS cor0
----
-1385
-259
-4644
onlyif mysql # use DIV operator for integer division
query I rowsort label-854
SELECT - col2 * + col1 - 21 DIV 36 col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-854
SELECT - col2 * + col1 - 21 / 36 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + cor0.col0 + col2 * + 27 AS col0 FROM tab2 AS cor0
----
1105
736
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-856
SELECT 18 DIV - col0 AS col2 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-856
SELECT 18 / - col0 AS col2 FROM tab2
----
-2
0
0
query I rowsort
SELECT tab0.col1 * + 2 AS col1 FROM tab0
----
172
182
194
query I rowsort
SELECT + 91 * - tab2.col1 FROM tab2
----
-1547
-2821
-5369
onlyif mysql # use DIV operator for integer division
query I rowsort label-859
SELECT + tab2.col0 DIV 21 AS col2 FROM tab2
----
0
3
3
skipif mysql # not compatible
query I rowsort label-859
SELECT + tab2.col0 / 21 AS col2 FROM tab2
----
0
3
3
query I rowsort
SELECT DISTINCT 20 * + col0 + - col2 FROM tab0
----
1698
447
699
query I rowsort
SELECT DISTINCT - + col0 * - col1 + 76 + - col1 AS col1 FROM tab1 AS cor0
----
1103
128
706
query I rowsort
SELECT DISTINCT - - col2 - col1 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL col1 + 53 FROM tab2 AS cor0
----
112
70
84
query I rowsort
SELECT DISTINCT - col1 - - cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - col2 * + 51 FROM tab1 AS cor0
----
-2754
-2907
-4896
query I rowsort
SELECT + col1 + + 89 AS col2 FROM tab1 AS cor0
----
102
115
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT DISTINCT + + col1 DIV ( - col1 * + col2 ) AS col1 FROM tab0 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + + col1 / ( - col1 * + col2 ) AS col1 FROM tab0 cor0
----
-1
0
query I rowsort
SELECT ALL + col0 + ( col1 ) * col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-869
SELECT DISTINCT + - col0 + + 28 * col2 - cor0.col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
2208
90
902
skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT + - col0 + + 28 * col2 - cor0.col1 / - col2 AS col2 FROM tab0 AS cor0
----
2208
90
902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-870
SELECT DISTINCT - col2 * - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT - col2 * - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT + ( - tab1.col0 + + tab1.col2 ) FROM tab1
----
-7
16
51
query I rowsort
SELECT ( + col1 ) - 66 * - col0 FROM tab2
----
493
5207
5231
onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT tab1.col2 * col1 * + ( - tab1.col2 ) + - col0 DIV + 65 AS col1 FROM tab1
----
-119809
-32490
-75816
skipif mysql # not compatible
query I rowsort label-873
SELECT tab1.col2 * col1 * + ( - tab1.col2 ) + - col0 / + 65 AS col1 FROM tab1
----
-119809
-32490
-75816
query I rowsort
SELECT - col2 + 84 * - col2 FROM tab2
----
-2210
-2295
-3230
query I rowsort
SELECT DISTINCT - col0 * + col2 + + col1 * col2 * - col1 FROM tab1 AS cor0
----
-23904
-36666
-9348
query I rowsort
SELECT ALL + - col1 + 11 + - 80 FROM tab1 AS cor0
----
-79
-82
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor2.col1 col1 FROM tab1, tab1 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
query I rowsort
SELECT + cor0.col1 + + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL + 1 + col2 FROM tab2
----
27
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT DISTINCT - 27 + + col0 + ( + col2 + - col1 ) DIV col0 AS col2 FROM tab2
----
-20
51
52
skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT - 27 + + col0 + ( + col2 + - col1 ) / col0 AS col2 FROM tab2
----
-20
51
52
query I rowsort
SELECT ( - 46 ) * + cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e1e1a54c64c2015d8d53651e259e896f
onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT cor0.col1 DIV - col2 + - 31 + + col2 AS col2 FROM tab0 AS cor0
----
-127
0
50
skipif mysql # not compatible
query I rowsort label-882
SELECT cor0.col1 / - col2 + - 31 + + col2 AS col2 FROM tab0 AS cor0
----
-127
0
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-883
SELECT + + col2 DIV cor0.col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-883
SELECT + + col2 / cor0.col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-884
SELECT DISTINCT + cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT + cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 * 56 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT DISTINCT - col2 + 36 FROM tab0 AS cor0
----
-46
3
35
query I rowsort
SELECT DISTINCT + col0 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-888
SELECT ALL + col0 DIV 69 col1 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-888
SELECT ALL + col0 / 69 col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT 60 * col2 FROM tab2
----
1560
1620
2280
query I rowsort
SELECT 66 * - col2 FROM tab2
----
-1716
-1782
-2508
query I rowsort
SELECT - 37 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
-114
-2432
-3040
query I rowsort
SELECT - col1 - 84 FROM tab0 AS cor0
----
-170
-175
-181
query I rowsort
SELECT - - ( - col0 ) + + col1 * col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - 93 - + col1 * - col2 FROM tab2 AS cor0
----
1441
553
744
query I rowsort
SELECT ALL - ( col2 ) + col0 * - cor0.col0 FROM tab0 cor0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT + col2 + + 3 - col1 AS col0 FROM tab1 AS cor0
----
31
50
86
query I rowsort
SELECT + col2 + ( - col2 ) * col1 AS col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + col2 + ( col0 ) * 38 - - ( col2 ) AS col0 FROM tab2 AS cor0
----
3016
3078
320
query I rowsort
SELECT - col0 * + cor0.col2 - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL col2 * col0 * col2 FROM tab1
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-901
SELECT DISTINCT ( + col1 ) - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT ( + col1 ) - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - col0 + col0 * - 5 AS col2 FROM tab1 AS cor0
----
-18
-384
-480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col1 FROM tab2 AS cor0
----
-58
-58
-58
query I rowsort
SELECT - - col2 - + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - col0 * col1 - - col1 * 49 FROM tab0 AS cor0
----
-3640
1358
2150
query I rowsort
SELECT ALL + 15 * cor0.col1 + - 55 FROM tab2 AS cor0
----
200
410
830
query I rowsort
SELECT DISTINCT - col1 * - col0 + 34 - - col2 AS col2 FROM tab2 AS cor0
----
1415
278
4662
onlyif mysql # use DIV operator for integer division
query I rowsort label-908
SELECT DISTINCT - col0 * col0 + col2 * + col1 + + col0 DIV - 87 AS col0 FROM tab1 AS cor0
----
-3526
-5152
1395
skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT - col0 * col0 + col2 * + col1 + + col0 / - 87 AS col0 FROM tab1 AS cor0
----
-3526
-5152
1395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-909
SELECT DISTINCT col0 * col2 + + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT col0 * col2 + + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - col1 * col1 ) - - col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT + tab1.col0 * - col2 * col1 + ( col0 ) AS col1 FROM tab1
----
-36416
-4209
-99760
query I rowsort
SELECT DISTINCT col1 * 17 * col0 FROM tab2
----
22831
3689
78234
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-913
SELECT ALL CAST( - col2 AS SIGNED ) - + col0 FROM tab2
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-913
SELECT ALL CAST ( - col2 AS INTEGER ) - + col0 FROM tab2
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-914
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-914
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 col0 FROM tab1
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-916
SELECT + CAST( NULL AS SIGNED ) - - 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-916
SELECT + CAST ( NULL AS INTEGER ) - - 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col0 * col1 * + 61 + 61 FROM tab0 AS cor0
----
125965
207156
494100
query I rowsort
SELECT ALL col0 + + col2 * - 30 + 93 * col1 AS col2 FROM tab1 AS cor0
----
-1591
-716
801
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-919
SELECT ALL col0 + + col2 * - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1065
-6635
34
skipif mysql # not compatible
query I rowsort label-919
SELECT ALL col0 + + col2 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT col0 + + col1 * + 81 AS col0 FROM tab0 AS cor0
----
6990
7460
7892
query I rowsort
SELECT ALL - + 23 + + col2 + col1 FROM tab2 AS cor0
----
32
35
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-922
SELECT ALL - col1 DIV cor0.col0 + ( col0 ) FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-922
SELECT ALL - col1 / cor0.col0 + ( col0 ) FROM tab0 AS cor0
----
21
33
88
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 + ( - col0 * + col1 ) FROM tab1 AS cor0
----
-540
-871
598
onlyif mysql # use DIV operator for integer division
query I rowsort label-924
SELECT DISTINCT cor0.col1 * col1 DIV 6 + + col0 + + col2 * - col1 FROM tab0 AS cor0
----
-1582
-5993
1506
skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT cor0.col1 * col1 / 6 + + col0 + + col2 * - col1 FROM tab0 AS cor0
----
-1582
-5993
1506
query I rowsort
SELECT col1 * col1 * 97 + + col0 FROM tab2 AS cor0
----
28112
337735
93224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-926
SELECT ALL + col2 / - col1 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + col2 / - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col2 + col0 * ( - col1 + + col0 * + col1 ) AS col2 FROM tab1 AS cor0
----
-6
36672
74480
onlyif mysql # use DIV operator for integer division
query I rowsort label-928
SELECT - 68 DIV + 59 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-928
SELECT - 68 / + 59 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT 81 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT + + col0 * - 22 * - col2 FROM tab1 AS cor0
----
168960
3564
80256
query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + 77 FROM tab1, tab2 AS cor0
----
2002
2079
2926
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - cor0.col2 * - col1 * + col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + 22 FROM tab1 cor0
----
22
22
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-935
SELECT - tab2.col2 + + 70 DIV + col0 FROM tab2
----
-17
-26
-38
skipif mysql # not compatible
query I rowsort label-935
SELECT - tab2.col2 + + 70 / + col0 FROM tab2
----
-17
-26
-38
query I rowsort
SELECT + ( - 43 ) AS col2 FROM tab0
----
-43
-43
-43
query I rowsort
SELECT col0 * + 77 * col1 AS col0 FROM tab1 AS cor0
----
49280
6006
80080
query I rowsort
SELECT ALL - col2 * col2 * col0 + - col2 * + col1 FROM tab0 AS cor0
----
-132
-28974
-605898
query I rowsort
SELECT ALL - cor0.col2 * 4 AS col1 FROM tab2 AS cor0
----
-104
-108
-152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-940
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col2 + + col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col2 + + col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT - 44 + + col0 AS col2 FROM tab0 AS cor0
----
-20
-9
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT col1 * 17 AS col1 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT - cor0.col2 - + col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT + - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT - col2 + ( col2 * - cor0.col2 ) + ( ( col2 ) ) FROM tab0 cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-949
SELECT ALL - + col2 + col2 DIV 99 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-949
SELECT ALL - + col2 + col2 / 99 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - - col2 * + col0 * - 14 AS col2 FROM tab0 AS cor0
----
-102172
-11088
-490
query I rowsort
SELECT + + col1 + 44 * - 20 FROM tab0 cor0
----
-783
-789
-794
query I rowsort
SELECT - col1 * - 88 AS col1 FROM tab2 AS cor0
----
1496
2728
5192
onlyif mysql # use DIV operator for integer division
query I rowsort label-953
SELECT ALL - ( col2 ) DIV - 79 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - ( col2 ) / - 79 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL + col2 * col0 * 5 FROM tab2 AS cor0
----
10140
15010
945
query I rowsort
SELECT DISTINCT - col1 + + 90 FROM tab0 AS cor0
----
-1
-7
4
query I rowsort
SELECT ALL col2 * col0 - col1 AS col2 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT + col1 + - 44 FROM tab1 AS cor0
----
-18
-31
-34
query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
76
query I rowsort
SELECT ALL - 95 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-1056
-3576
-384
query I rowsort
SELECT 71 AS col1 FROM tab2 cor0
----
71
71
71
query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab2 AS cor0
----
76
query I rowsort
SELECT + 44 * - 53 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 745744b8613ede620bf64207a110fb25
query I rowsort
SELECT ALL 89 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT ALL - - cor0.col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + 76 + + col0 FROM tab2 AS cor0
----
154
155
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-966
SELECT DISTINCT - + 66 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-62
-65
-66
skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT - + 66 + col0 / col1 AS col2 FROM tab2 AS cor0
----
-62
-65
-66
query I rowsort
SELECT - col1 * + cor0.col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT - 89 + col1 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-1116
-141
-719
query I rowsort
SELECT + col1 - - col0 * cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + + cor0.col0 + - col2 * - col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + ( + col2 ) + + cor0.col2 * cor0.col1 + 61 AS col0 FROM tab1 AS cor0
----
1405
1519
688
query I rowsort
SELECT DISTINCT - 63 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
189
4032
5040
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74
query I rowsort
SELECT - 86 * col2 + - col1 + col0 FROM tab1 AS cor0
----
-4667
-4848
-8189
query I rowsort
SELECT - + col0 * + col1 + + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-976
SELECT - - col0 DIV - col2 + + col1 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-976
SELECT - - col0 / - col2 + + col1 FROM tab1 AS cor0
----
13
26
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * + col1 col1 FROM tab1 AS cor0
----
1196
2392
920
query I rowsort
SELECT 10 * cor0.col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
326
447
981
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 * cor0.col1 col2 FROM tab1 cor0
----
1534
590
767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + - 65 col0 FROM tab2
----
-135
-135
-135
query I rowsort
SELECT ALL 19 * col0 FROM tab1
----
1216
1520
57
query I rowsort
SELECT - col2 * col2 + ( + col1 ) FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT col0 * col0 * - col0 AS col2 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT + col2 * - col0 - + col2 AS col2 FROM tab2
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT + col0 DIV col1 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-985
SELECT + col0 / col1 + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT col0 * - col1 - - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-987
SELECT - + col1 * - col0 * col0 + col0 DIV col1 FROM tab0 AS cor0
----
118825
49536
720811
skipif mysql # not compatible
query I rowsort label-987
SELECT - + col1 * - col0 * col0 + col0 / col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT - col2 * col2 * - col1 - + col2 AS col2 FROM tab0
----
611802
93621
96
query I rowsort
SELECT col1 - col0 * - tab2.col1 AS col0 FROM tab2
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-990
SELECT col2 + col0 DIV + col0 FROM tab0 cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-990
SELECT col2 + col0 / + col0 FROM tab0 cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-991
SELECT - col2 + + col0 DIV col0 + col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-991
SELECT - col2 + + col0 / col0 + col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-992
SELECT + col0 * - col2 + cor0.col2 * col0 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-992
SELECT + col0 * - col2 + cor0.col2 * col0 + col0 / col1 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT - col2 + col2 * col0 * cor0.col1 FROM tab0 cor0
----
3394
664036
68079
query I rowsort
SELECT DISTINCT + + col2 + + col2 AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - col2 + col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT col1 - - col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL col1 * col2 + - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + 40 + + col2 AS col1 FROM tab2 AS cor0
----
66
67
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-999
SELECT + - col2 DIV + col0 col2 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-999
SELECT + - col2 / + col0 col2 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT + col2 * + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + col1 - - col2 AS col0 FROM tab0 cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1002
SELECT ALL - tab0.col2 DIV col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL - tab0.col2 / col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - tab0.col1 * - tab0.col1 AS col1 FROM tab0 WHERE NOT ( NULL ) <= NULL
----
query I rowsort
SELECT DISTINCT - col0 * col1 - col0 FROM tab1
----
-1120
-704
-81
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 = ( NULL )
----
query I rowsort
SELECT - col2 - - col1 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT - col0 + - tab2.col0 AS col1 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT col0 * + col0 / col2 AS col2 FROM tab0 WHERE col0 BETWEEN NULL AND - col0 + col1 - - col0 * + col0 * - col1
----
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <= ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 / + col0 ) > col0
----
query I rowsort
SELECT ALL - col2 * tab2.col2 + col2 + + col2 AS col1 FROM tab2
----
-1368
-624
-675
query I rowsort
SELECT - col2 * col2 * col0 + - col2 FROM tab0
----
-26169
-36
-598518
query I rowsort
SELECT - col2 - col0 * - 99 * col1 AS col0 FROM tab1 AS cor0
----
102864
63303
7668
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <> + col1 + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL + col1 - - tab1.col0 * col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT col1 + + col2 + + col2 AS col0 FROM tab2
----
111
85
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * col2 + + col1 col1 FROM tab2
----
-22568
-24531
-39825
query I rowsort
SELECT + col1 + + col0 * + col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND col1 / - col0
----
query I rowsort
SELECT col0 * + tab2.col0 AS col2 FROM tab2 WHERE NOT col2 < ( col2 * + col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1022
SELECT col0 + + tab1.col0 DIV col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1022
SELECT col0 + + tab1.col0 / col0 FROM tab1
----
4
65
81
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col2 * - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL + col1 + col2 * + tab2.col0 AS col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT tab1.col0 * tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - col2 + - col2 AS col0 FROM tab0 WHERE col2 < ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE NOT NULL BETWEEN - col2 - + col0 * - col0 AND NULL
----
query I rowsort
SELECT - col1 + - tab1.col1 - col1 AS col1 FROM tab1
----
-30
-39
-78
query I rowsort
SELECT col1 * - col1 + col2 + + col2 AS col1 FROM tab0
----
-7330
-8117
-9407
query I rowsort
SELECT tab2.col2 + + col2 + col2 AS col0 FROM tab2
----
114
78
81
query I rowsort
SELECT + col2 * tab2.col0 FROM tab2 WHERE NULL >= NULL
----
query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - col1 IN ( - col1 + + col2 * col2 )
----
query I rowsort
SELECT - col2 + - col0 * col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT - col2 * col1 FROM tab2 AS cor0 WHERE NOT col0 / col0 NOT BETWEEN - col1 AND col0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + col1 * 45 * - col0 col2 FROM tab2 AS cor0
----
-207064
-60397
-9738
query I rowsort
SELECT DISTINCT col2 + + 87 * + col0 * ( + 78 ) AS col2 FROM tab0 AS cor0
----
162897
237511
604036
query I rowsort
SELECT col2 * 86 FROM tab2 AS cor0
----
2236
2322
3268
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT + ( cor0.col1 ) * col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL 7 * col2 FROM tab0 AS cor0
----
231
574
7
query I rowsort
SELECT - 51 + col0 FROM tab1 AS cor0
----
-48
13
29
query I rowsort
SELECT - ( ( col1 ) ) * - ( - 58 ) * - col1 AS col0 FROM tab0 AS cor0
----
428968
480298
545722
query I rowsort
SELECT DISTINCT + 62 * + col1 AS col2 FROM tab0 AS cor0
----
5332
5642
6014
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col2 col1 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 48 * - col1 * + col0 FROM tab2
----
-10416
-220896
-64464
query I rowsort
SELECT ( col0 ) * col1 - - 21 AS col2 FROM tab0
----
2085
3416
8120
query I rowsort
SELECT DISTINCT + + cor0.col1 + + col1 * 42 FROM tab1 cor0
----
1118
430
559
query I rowsort
SELECT ALL - - col2 * col0 - + 73 AS col2 FROM tab2 AS cor0
----
116
1955
2929
query I rowsort
SELECT DISTINCT - col2 + ( ( - col0 ) ) * col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT - col2 * col1 + 26 AS col0 FROM tab2 AS cor0
----
-1508
-620
-811
onlyif mysql # use DIV operator for integer division
query I rowsort label-1056
SELECT ALL - col2 + ( - col0 ) * col2 DIV 35 AS col2 FROM tab0 AS cor0
----
-2
-290
-55
skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL - col2 + ( - col0 ) * col2 / 35 AS col2 FROM tab0 AS cor0
----
-2
-290
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-1057
SELECT DISTINCT col1 * col0 DIV + col0 + - col1 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT col1 * col0 / + col0 + - col1 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT - col1 + - col0 * 84 FROM tab2 AS cor0
----
-619
-6611
-6653
query I rowsort
SELECT ALL col2 * - ( - col2 ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col1 * - col0 + col2 FROM tab0 cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-1061
SELECT DISTINCT col1 + col0 DIV - 11 col2 FROM tab0
----
83
84
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT col1 + col0 / - 11 col2 FROM tab0
----
83
84
94
query I rowsort
SELECT ALL + col1 + 96 AS col2 FROM tab2 AS cor0
----
113
127
155
onlyif mysql # use DIV operator for integer division
query I rowsort label-1063
SELECT + + col1 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1063
SELECT + + col1 / - col1 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1064
SELECT CAST( NULL AS SIGNED ) + tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1064
SELECT CAST ( NULL AS INTEGER ) + tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + - ( col2 ) * col0 * - col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - + ( - col1 ) * col0 + col1 * + 1 * - col2 AS col2 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT - col1 + + tab0.col1 * - col1 FROM tab0
----
-7482
-8372
-9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1068
SELECT ALL - tab0.col2 DIV 55 AS col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - tab0.col2 / 55 AS col1 FROM tab0
----
-1
0
0
query I rowsort
SELECT - cor0.col1 * - 85 + tab2.col2 AS col2 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 7d05b6587c7851f0eaee3691e252ac2b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col1 col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + tab1.col1 - 59 AS col0 FROM tab1
----
-33
-46
-49
query I rowsort
SELECT + 50 + col1 * col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
147
611934
93704
query I rowsort
SELECT DISTINCT + col2 * - col0 + - col1 * - cor0.col0 + - cor0.col1 * - col0 AS col1 FROM tab2 cor0
----
-316
245
7176
query I rowsort
SELECT DISTINCT - 69 * - tab1.col0 FROM tab1, tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT + ( 64 ) FROM tab0
----
64
64
64
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT 6 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
6
query I rowsort
SELECT - col0 + + tab1.col1 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col0 * - 81 FROM tab1 AS cor0
----
-243
-5184
-6480
query I rowsort
SELECT ( + col2 ) * + 69 AS col0 FROM tab2
----
1794
1863
2622
query I rowsort
SELECT DISTINCT - 35 + + col1 * - ( - 94 ) AS col0 FROM tab0
----
8049
8519
9083
query I rowsort
SELECT ALL col2 * - col2 + - col0 AS col2 FROM tab1
----
-2919
-3313
-9296
query I rowsort
SELECT + + col1 * + col1 + - 67 FROM tab2 cor0
----
222
3414
894
query I rowsort
SELECT ALL + cor0.col1 * - ( + col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - col2 * + col0 + 70 * col1 AS col2 FROM tab0 AS cor0
----
-928
5228
6755
onlyif mysql # use DIV operator for integer division
query I rowsort label-1086
SELECT col1 DIV - 86 + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1086
SELECT col1 / - 86 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT 82 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT col1 * + 13 + col1 AS col0 FROM tab2 AS cor0
----
238
434
826
query I rowsort
SELECT ALL col2 + + 23 AS col2 FROM tab1 AS cor0
----
119
77
80
query I rowsort
SELECT - + col2 * + col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT col0 + 34 * cor0.col0 FROM tab1 AS cor0
----
105
2240
2800
query I rowsort
SELECT ALL col2 * 14 + col0 * cor0.col1 AS col2 FROM tab0 cor0
----
2526
3409
9247
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 col2 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1094
SELECT ALL + col1 + + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL + col1 + + col1 / col1 AS col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT - col1 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT - + col0 + + 48 + - col2 FROM tab0 AS cor0
----
-123
-9
12
query I rowsort
SELECT - col2 * - col0 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + 61 col0 FROM tab2 AS cor0
----
87
88
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1099
SELECT - col1 * col1 + + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1099
SELECT - col1 * col1 + + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + ( + cor1.col1 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97
query I rowsort
SELECT DISTINCT - 71 + 56 FROM tab0, tab1 AS cor0
----
-15
query I rowsort
SELECT DISTINCT + col0 * - ( 76 ) - col0 FROM tab2
----
-539
-6006
-6083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * ( col1 * + col2 ) col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - ( + ( - col2 ) ) * col2 * + col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT - 6 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT + + col2 + 85 AS col1 FROM tab2 cor0
----
111
112
123
query I rowsort
SELECT 75 * - 0 + + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1108
SELECT - - CAST( NULL AS SIGNED ) * col0 + - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1108
SELECT - - CAST ( NULL AS INTEGER ) * col0 + - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT DISTINCT 63 + + col0 DIV tab0.col0 FROM tab0
----
64
skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT 63 + + col0 / tab0.col0 FROM tab0
----
64
query I rowsort
SELECT - + col2 + + col1 * 31 FROM tab0 AS cor0
----
2633
2739
3006
query I rowsort
SELECT - 1 + - col2 * 23 * col2 FROM tab2 AS cor0
----
-15549
-16768
-33213
onlyif mysql # use DIV operator for integer division
query I rowsort label-1112
SELECT DISTINCT + ( col1 ) + + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT + ( col1 ) + + col1 / col0 AS col0 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT DISTINCT - - col1 * - col0 - col0 FROM tab0 cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT DISTINCT col0 * + col2 + - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
185
2028
3002
skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT col0 * + col2 + - col1 / col0 AS col2 FROM tab2 AS cor0
----
185
2028
3002
query I rowsort
SELECT ALL + 35 * col0 + - 37 AS col2 FROM tab2 AS cor0
----
208
2693
2728
query I rowsort
SELECT ALL + 34 * col0 AS col1 FROM tab2
----
238
2652
2686
onlyif mysql # use DIV operator for integer division
query I rowsort label-1117
SELECT ALL 30 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL 30 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + + cor0.col2 * + col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + + 74 * + col2 + ( + ( + col1 ) ) FROM tab1 AS cor0
----
4022
4228
7117
query I rowsort
SELECT DISTINCT + col1 * + col1 * - cor0.col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 + - col1 * + col0 + col0 col2 FROM tab2 cor0
----
-1243
-189
-4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-1122
SELECT 74 DIV col1 col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1122
SELECT 74 / col1 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + cor0.col0 * - cor0.col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT 96 * cor0.col0 * + ( 63 ) + col0 + col2 FROM tab1 AS cor0
----
18201
387193
484016
query I rowsort
SELECT DISTINCT col2 * - col0 * - 90 AS col2 FROM tab0 AS cor0
----
3150
656820
71280
query I rowsort
SELECT DISTINCT col0 * - 56 FROM tab2 AS cor0
----
-392
-4368
-4424
onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT ALL + - col1 DIV CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + - col1 / CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 + + 90 FROM tab0 cor0
----
123
172
91
query I rowsort
SELECT DISTINCT - + col2 * 3 * 62 FROM tab1 AS cor0
----
-10044
-10602
-17856
query I rowsort
SELECT - col0 * - ( 78 + col2 * col0 ) FROM tab0 AS cor0
----
20880
3955
656464
query I rowsort
SELECT DISTINCT + col2 + - 77 FROM tab2 AS cor0
----
-39
-50
-51
query I rowsort
SELECT ALL + - col0 * 48 AS col0 FROM tab2 AS cor0
----
-336
-3744
-3792
query I rowsort
SELECT col2 * 76 AS col1 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT ALL cor0.col2 + - 91 FROM tab0 cor0
----
-58
-9
-90
query I rowsort
SELECT col2 * 27 FROM tab0 cor0
----
2214
27
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * - cor0.col1 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - 11 * cor0.col1 FROM tab1 AS cor0
----
-110
-143
-286
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 + ( cor0.col2 ) col2 FROM tab0 AS cor0
----
16
48
97
query I rowsort
SELECT ALL + col0 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL - 55 * + col2 + + col1 * col0 + + col2 FROM tab1 AS cor0
----
-2438
-2838
-4144
query I rowsort
SELECT ALL col2 + tab1.col2 + col2 * - col0 * col0 FROM tab1
----
-233358
-378
-614208
query I rowsort
SELECT + - ( + col1 ) + cor0.col2 * + col0 + 98 AS col0 FROM tab1 AS cor0
----
234
3736
7765
query I rowsort
SELECT 59 + cor0.col1 * - col0 AS col2 FROM tab2 cor0
----
-1284
-158
-4543
query I rowsort
SELECT ALL - 80 * col1 AS col0 FROM tab0 AS cor0
----
-6880
-7280
-7760
query I rowsort
SELECT 31 + - 41 + - col0 FROM tab2 cor0
----
-17
-88
-89
query I rowsort
SELECT ALL col1 * 33 AS col1 FROM tab0
----
2838
3003
3201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col2 ) + - 74 * + col2 col2 FROM tab1 AS cor0
----
-3834
-570
576
query I rowsort
SELECT ALL - - col0 + - 66 AS col1 FROM tab1 AS cor0
----
-2
-63
14
query I rowsort
SELECT ( + col0 ) * + cor0.col1 * + col2 - + col0 FROM tab0 AS cor0
----
3360
664029
68088
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT 0 - + col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1152
SELECT ALL - + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL - + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 36 FROM tab1, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT ALL - col0 + tab2.col0 + col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT col1 + 0 * col0 FROM tab0
----
86
91
97
query I rowsort
SELECT - 90 + + 76 FROM tab2 AS cor0
----
-14
-14
-14
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT ALL + ( tab0.col2 + col2 ) AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - 59 + - 80 AS col0 FROM tab2 cor0
----
-139
-139
-139
query I rowsort
SELECT ALL + cor0.col1 * 52 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1355
584
756
query I rowsort
SELECT DISTINCT + ( col2 ) - col0 * 44 AS col0 FROM tab2 AS cor0
----
-281
-3406
-3438
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1163
SELECT ALL - + col0 * - 72 - col2 * - CAST( NULL AS DECIMAL ) 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-1163
SELECT ALL - + col0 * - 72 - col2 * - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( col2 ) + - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 63 + - col1 * - col2 AS col1 FROM tab0 cor0
----
160
2901
7525
onlyif mysql # use DIV operator for integer division
query I rowsort label-1166
SELECT ALL + + ( + col1 ) + col0 DIV 47 FROM tab1 AS cor0
----
11
14
26
skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + + ( + col1 ) + col0 / 47 FROM tab1 AS cor0
----
11
14
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT ALL ( col1 ) DIV - col0 + - col1 DIV + tab1.col2 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL ( col1 ) / - col0 + - col1 / + tab1.col2 FROM tab1
----
-8
0
0
query I rowsort
SELECT + + cor1.col0 + 16 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1ffc8833304b6812bf475223957ec1a8
query I rowsort
SELECT ALL + 9 + + cor0.col2 FROM tab1 cor0
----
105
63
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1171
SELECT 60 DIV col1 - - col0 FROM tab2 AS cor0
----
79
8
82
skipif mysql # not compatible
query I rowsort label-1171
SELECT 60 / col1 - - col0 FROM tab2 AS cor0
----
79
8
82
query I rowsort
SELECT DISTINCT - col0 * col1 + 2 * + col0 FROM tab1 AS cor0
----
-512
-72
-880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - col0 col2 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + + col1 col2 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * 22 col2 FROM tab1 AS cor0
----
1214
1264
2125
query I rowsort
SELECT DISTINCT - 13 * - col0 FROM tab2 AS cor0
----
1014
1027
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT - col2 + col0 DIV 9 FROM tab1 cor0
----
-50
-54
-88
skipif mysql # not compatible
query I rowsort label-1177
SELECT - col2 + col0 / 9 FROM tab1 cor0
----
-50
-54
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1178
SELECT ALL - 64 DIV - col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
738
skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - 64 / - col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
738
query I rowsort
SELECT - - col0 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ( - cor1.col1 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT - col2 + 41 * col0 FROM tab1 AS cor0
----
2567
3184
69
query I rowsort
SELECT ALL + - col0 + ( - 13 ) AS col1 FROM tab0 AS cor0
----
-102
-37
-48
query I rowsort
SELECT - col0 - col1 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT - + col0 + - ( - ( col1 ) ) * 7 * 22 AS col1 FROM tab1 AS cor0
----
1476
1922
4001
query I rowsort
SELECT col1 * col0 - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1186
SELECT + col1 + + CAST( NULL AS SIGNED ) / + col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1186
SELECT + col1 + + CAST ( NULL AS INTEGER ) / + col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col0 - + col1 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1188
SELECT col2 + - col0 DIV 6 FROM tab1 cor0
----
47
54
83
skipif mysql # not compatible
query I rowsort label-1188
SELECT col2 + - col0 / 6 FROM tab1 cor0
----
47
54
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col1 + + cor0.col2 col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1190
SELECT CAST( NULL AS DECIMAL ) + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1190
SELECT CAST ( NULL AS REAL ) + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1191
SELECT - CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1191
SELECT - CAST ( NULL AS REAL ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 50 * 18 AS col0 FROM tab1 AS cor0
----
900
900
900
query I rowsort
SELECT - tab1.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT + 16 * + col0 FROM tab1
----
1024
1280
48
query I rowsort
SELECT ALL + ( col1 * col1 ) FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT DISTINCT + cor0.col0 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT + cor0.col0 / - cor0.col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 * tab1.col1 FROM tab1
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * 36 col2 FROM tab0 AS cor0
----
3096
3276
3492
onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT 45 DIV - col2 FROM tab0 AS cor0
----
-1
-45
0
skipif mysql # not compatible
query I rowsort label-1200
SELECT 45 / - col2 FROM tab0 AS cor0
----
-1
-45
0
query I rowsort
SELECT DISTINCT - ( - col2 ) + + 79 AS col0 FROM tab0 AS cor0
----
112
161
80
query I rowsort
SELECT ALL + col2 + col1 * 76 AS col1 FROM tab1 AS cor0
----
1084
2030
817
query I rowsort
SELECT DISTINCT - ( col0 + col2 ) AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT 92 + - col2 * - col2 FROM tab1
----
3008
3341
9308
query I rowsort
SELECT col0 + - 16 FROM tab2 AS cor0
----
-9
62
63
query I rowsort
SELECT ALL + + cor0.col2 + - 39 AS col2 FROM tab1 AS cor0
----
15
18
57
query I rowsort
SELECT DISTINCT col1 - - col0 * 28 AS col1 FROM tab2 AS cor0
----
2229
2243
227
query I rowsort
SELECT - - col1 * - ( 37 ) + - col1 AS col2 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT ALL 74 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT DISTINCT - tab2.col1 - - cor0.col2 FROM tab2, tab1, tab0 cor0
----
9 values hashing to a315d120f944e987e8b5f24efc4da004
query I rowsort
SELECT ALL tab0.col2 * 18 + + tab0.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 32efaf94745eff462771b0ae5d3fc9fc
onlyif mysql # use DIV operator for integer division
query I rowsort label-1212
SELECT ALL - tab2.col1 DIV - ( col0 ) + + col0 AS col1 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - tab2.col1 / - ( col0 ) + + col0 AS col1 FROM tab2
----
11
78
79
query I rowsort
SELECT + - col2 + + col1 * - col1 FROM tab0 cor0
----
-7429
-8363
-9410
query I rowsort
SELECT cor0.col2 * 2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col0 * ( col1 * col2 ) + + col2 * - cor0.col0 FROM tab0 AS cor0
----
3360
656820
67320
query I rowsort
SELECT ALL col0 * tab0.col0 * col1 + - col2 AS col2 FROM tab0
----
118824
49503
720729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1217
SELECT + CAST( col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-1217
SELECT + CAST ( col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + ( - col1 ) * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1219
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) + 5 * + col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) + 5 * + col1 FROM tab2
----
NULL
query I rowsort
SELECT - col1 * - col0 - + col1 * - col1 FROM tab1
----
1209
740
754
query I rowsort
SELECT - col1 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 + col1 col1 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1223
SELECT - col2 + + CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1223
SELECT - col2 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 20 ) AS col2 FROM tab0 AS cor0
----
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + + col1 col2 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1226
SELECT DISTINCT + - ( cor0.col1 ) DIV + col1 AS col0 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT + - ( cor0.col1 ) / + col1 AS col0 FROM tab1 cor0
----
-1
query I rowsort
SELECT - col2 * col1 + col1 * 97 FROM tab1 AS cor0
----
1118
13
400
query I rowsort
SELECT ALL - - ( - col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 20 + + col1 FROM tab2 AS cor0
----
-3
11
39
query I rowsort
SELECT DISTINCT 85 * - 74 FROM tab1 AS cor0
----
-6290
query I rowsort
SELECT DISTINCT 17 * col0 + col2 FROM tab0 AS cor0
----
1595
441
596
query I rowsort
SELECT cor0.col1 * + ( col2 ) FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT 82 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 15 col2 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT + col1 + 13 AS col2 FROM tab1 AS cor0
----
23
26
39
query I rowsort
SELECT DISTINCT + + col1 + col2 - - col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT 22 + 28 FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT DISTINCT - col2 + col1 * col1 + + 7 AS col1 FROM tab2 AS cor0
----
258
3462
941
query I rowsort
SELECT DISTINCT 44 * + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-2156
-267696
-274604
query I rowsort
SELECT + ( 75 ) FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT DISTINCT - + 18 * + 92 + + col1 + + cor0.col1 FROM tab2 AS cor0
----
-1538
-1594
-1622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 + - col0 col1 FROM tab2 AS cor0
----
18
19
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1243
SELECT ALL - + ( col0 ) DIV + col2 + 63 + - col0 FROM tab1 AS cor0
----
-17
-2
60
skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL - + ( col0 ) / + col2 + 63 + - col0 FROM tab1 AS cor0
----
-17
-2
60
query I rowsort
SELECT DISTINCT - 9 * - col1 - - col0 AS col0 FROM tab1 AS cor0
----
154
197
237
query I rowsort
SELECT ALL - col1 - col2 AS col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - 26 * + col0 AS col1 FROM tab2 cor0
----
-182
-2028
-2054
query I rowsort
SELECT - 82 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT DISTINCT col0 * - col0 - col2 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT ( + col2 ) + 23 AS col1 FROM tab0 cor0
----
105
24
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-1250
SELECT ALL - 7 DIV - col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL - 7 / - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + - cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT col2 * - col0 + cor0.col1 AS col0 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - col1 + col1 * col0 * 51 FROM tab1 AS cor0
----
32630
3952
53027
query I rowsort
SELECT - cor0.col1 + col1 * col2 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL 7 * cor0.col0 FROM tab0 AS cor0
----
168
245
623
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1256
SELECT ALL - col2 * CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - col2 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col2 * + tab0.col0 - - ( 91 ) FROM tab0
----
126
7389
883
query I rowsort
SELECT ALL + + col2 * + col1 + + col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT - 8 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
onlyif mysql # use DIV operator for integer division
query I rowsort label-1260
SELECT DISTINCT col2 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT col2 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1261
SELECT - + cor0.col2 * col1 + CAST( col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-1475
-629
-806
skipif mysql # not compatible
query I rowsort label-1261
SELECT - + cor0.col2 * col1 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) + - 22 AS col1 FROM tab0 cor0
----
13
2
67
query I rowsort
SELECT col1 * - ( + col0 ) AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col1 + 19 AS col1 FROM tab1
----
29
32
45
query I rowsort
SELECT DISTINCT - 19 + + col2 * tab2.col2 FROM tab2
----
1425
657
710
query I rowsort
SELECT DISTINCT - 73 + - tab0.col0 AS col0 FROM tab0
----
-108
-162
-97
query I rowsort
SELECT ALL ( 57 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT - tab1.col1 + + col1 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT DISTINCT - col2 + + cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT - col2 + + cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 33 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-224
-2496
-2528
query I rowsort
SELECT ALL + - ( cor0.col2 ) + 24 FROM tab1 AS cor0
----
-30
-33
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT ALL + + ( + col1 ) DIV - col2 AS col1 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL + + ( + col1 ) / - col2 AS col1 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT + 35 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT ALL ( 72 ) * cor1.col0 AS col0 FROM tab1, tab1 cor0, tab2, tab0 cor1
----
81 values hashing to 8b668fb8d80738ded29df8863ad47c14
query I rowsort
SELECT - 8 + col1 FROM tab1 AS cor0
----
18
2
5
query I rowsort
SELECT DISTINCT + col0 * - 64 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-417
-4933
-5039
query I rowsort
SELECT DISTINCT + col1 * ( col0 ) - + col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a
onlyif mysql # use DIV operator for integer division
query I rowsort label-1279
SELECT 78 * + col2 DIV - col2 FROM tab0
----
-78
-78
-78
skipif mysql # not compatible
query I rowsort label-1279
SELECT 78 * + col2 / - col2 FROM tab0
----
-78
-78
-78
query I rowsort
SELECT ALL + 92 AS col0 FROM tab2
----
92
92
92
query I rowsort
SELECT - 92 * col2 + - cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
-10432
-15825
-9501
query I rowsort
SELECT + ( + tab0.col1 ) + + tab0.col1 FROM tab0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( col1 ) * + tab1.col1 col0 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT ALL - 52 + col1 AS col1 FROM tab2 AS cor0
----
-21
-35
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT ALL - col2 * col0 + - col1 + ( 26 + - col2 ) DIV cor0.col0 FROM tab0 AS cor0
----
-132
-7389
-878
skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - col2 * col0 + - col1 + ( 26 + - col2 ) / cor0.col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL + 91 FROM tab2, tab2 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL + ( + col2 ) * + col1 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1288
SELECT CAST( NULL AS SIGNED ) * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1288
SELECT CAST ( NULL AS INTEGER ) * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - 44 ) * - col1 + col2 - 78 AS col0 FROM tab1 AS cor0
----
-1168
-461
-554
query I rowsort
SELECT + 89 - - col1 AS col1 FROM tab2 cor0
----
106
120
148
onlyif mysql # use DIV operator for integer division
query I rowsort label-1291
SELECT col0 + - col2 DIV col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1291
SELECT col0 + - col2 / col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT col2 * + col1 * - col0 + cor0.col2 FROM tab2 cor0
----
-119626
-50996
-5832
query I rowsort
SELECT 38 + - col0 - col1 FROM tab2
----
-58
-99
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT - - col0 + col0 DIV col2 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-1294
SELECT - - col0 + col0 / col2 FROM tab1 AS cor0
----
3
65
80
query I rowsort
SELECT 22 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + ( cor0.col1 ) col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT + col2 * 88 FROM tab0 AS cor0
----
2904
7216
88
query I rowsort
SELECT - - col2 * col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - + ( 50 ) * cor0.col1 AS col0 FROM tab2 cor0
----
-1550
-2950
-850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + - col1 col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - - col2 + + col2 AS col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT - cor0.col2 * + col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col1 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - - col0 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL col1 * - cor0.col0 - + col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + - col0 * col0 col2 FROM tab2 cor0
----
-4797
-5408
680
query I rowsort
SELECT col2 * 44 + col0 FROM tab2
----
1195
1222
1751
query I rowsort
SELECT DISTINCT + 38 - col0 * + tab0.col1 AS col1 FROM tab0
----
-2026
-3357
-8061
onlyif mysql # use DIV operator for integer division
query I rowsort label-1311
SELECT ALL - 18 + col0 DIV col1 AS col1 FROM tab1 cor0
----
-12
-12
-18
skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL - 18 + col0 / col1 AS col1 FROM tab1 cor0
----
-12
-12
-18
query I rowsort
SELECT col1 - - 85 AS col1 FROM tab2 AS cor0
----
102
116
144
onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT DISTINCT + col0 DIV - cor0.col1 + + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3654
-7686
skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT + col0 / - cor0.col1 + + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3654
-7686
query I rowsort
SELECT + ( - col1 ) * cor0.col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - col2 + ( cor0.col0 ) + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2865
3256
9200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 * col0 col0 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + 44 * - col1 - col1 FROM tab2 AS cor0
----
-1395
-2655
-765
query I rowsort
SELECT 85 * + col0 FROM tab2 AS cor0
----
595
6630
6715
query I rowsort
SELECT ALL ( col1 ) * col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL 80 AS col2 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT ALL 84 - - tab2.col2 AS col0 FROM tab2
----
110
111
122
query I rowsort
SELECT ALL col2 * 83 - col2 FROM tab2
----
2132
2214
3116
query I rowsort
SELECT + col0 * col0 * - tab1.col2 FROM tab1
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1324
SELECT - 27 DIV ( + col0 ) FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1324
SELECT - 27 / ( + col0 ) FROM tab2
----
-3
0
0
query I rowsort
SELECT ( 20 ) * col2 * col0 FROM tab0
----
145960
15840
700
onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT ALL + 25 DIV col2 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL + 25 / col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 * col0 - + col1 )
----
query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - col1 - - cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT ALL - col0 DIV - col1 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1046
646
78
skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - col0 / - col1 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1046
646
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT col1 + + col1 * col0 + - cor0.col2 DIV + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1331
SELECT col1 + + col1 * col0 + - cor0.col2 / + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-1332
SELECT DISTINCT - col1 DIV + col0 AS col1 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT - col1 / + col0 AS col1 FROM tab2
----
-4
0
query I rowsort
SELECT - col2 * - cor0.col2 - + col0 FROM tab1 AS cor0
----
2913
3185
9136
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + col2 BETWEEN col1 AND col0 * - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL col0 * tab1.col0 * + col0 AS col2 FROM tab1
----
262144
27
512000
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + tab2.col1 IN ( - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 + + col1 col0 FROM tab2
----
113
196
69
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE ( NULL ) NOT IN ( col2 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT - col2 + - col2 + + col2 DIV - col0 col0 FROM tab0
----
-164
-2
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1339
SELECT - col2 + - col2 + + col2 / - col0 col0 FROM tab0
----
-164
-2
-67
query III rowsort
SELECT * FROM tab1 WHERE col2 + col2 NOT IN ( + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL - col2 * + col1 * + col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT col2 * + col2 + tab0.col0 AS col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT col0 * cor0.col1 * + col2 + + cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
3589
664300
68284
query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> col2
----
query I rowsort
SELECT DISTINCT + col2 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 + - col2 + - col0 )
----
query I rowsort
SELECT ALL - col1 - + col0 * + col0 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NULL > ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1348
SELECT col1 DIV col2 + col2 FROM tab0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-1348
SELECT col1 / col2 + col2 FROM tab0
----
35
83
98
query I rowsort
SELECT DISTINCT + - col1 * col2 + - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL col1 + col1 * - col0 * col2 AS col0 FROM tab0 cor0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL col0 - + cor0.col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT col1 * col0 - col0 FROM tab1
----
576
75
960
query I rowsort
SELECT - tab1.col0 * col1 + col1 AS col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT + tab0.col0 + + col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT ALL + col0 * cor0.col2 + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + + col1 * col1 + + col0 FROM tab0 cor0
----
7420
8370
9444
query I rowsort
SELECT + cor0.col2 * - col1 + col0 * + col1 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT DISTINCT - col1 + + col2 * col0 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT + + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + col2 - col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT - col1 * cor0.col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - col1 * 60 AS col2 FROM tab0
----
-5160
-5460
-5820
query I rowsort
SELECT col2 * - 46 AS col1 FROM tab0 cor0
----
-1518
-3772
-46
query I rowsort
SELECT + cor0.col0 + - 30 FROM tab0 AS cor0
----
-6
5
59
query I rowsort
SELECT - col0 + 19 FROM tab2 AS cor0
----
-59
-60
12
query I rowsort
SELECT - - col2 * - 22 FROM tab1 cor0
----
-1188
-1254
-2112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1368
SELECT CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1368
SELECT CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 78 + 58 * - col1 AS col0 FROM tab0 AS cor0
----
-4910
-5200
-5548
query I rowsort
SELECT DISTINCT cor0.col0 * - 99 AS col0 FROM tab2, tab0 AS cor0
----
-2376
-3465
-8811
onlyif mysql # use DIV operator for integer division
query I rowsort label-1371
SELECT + col2 * col1 DIV tab2.col0 AS col0 FROM tab2
----
119
19
8
skipif mysql # not compatible
query I rowsort label-1371
SELECT + col2 * col1 / tab2.col0 AS col0 FROM tab2
----
119
19
8
query I rowsort
SELECT DISTINCT - col2 * - ( 74 ) + col2 AS col1 FROM tab0
----
2475
6150
75
query I rowsort
SELECT DISTINCT + 5 FROM tab0, tab0 AS cor0
----
5
query I rowsort
SELECT ALL + + 40 AS col2 FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT + col0 * col0 * col2 AS col0 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + + 31 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT 73 + col1 AS col2 FROM tab1
----
83
86
99
query I rowsort
SELECT ALL - ( col0 ) * - col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL col0 * col1 * col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT tab1.col1 + - 89 AS col0 FROM tab1
----
-63
-76
-79
query I rowsort
SELECT 52 * cor0.col0 AS col1 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT DISTINCT + + col0 + + col0 + + 83 FROM tab1 AS cor0
----
211
243
89
query I rowsort
SELECT + cor0.col0 + + ( + col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + - col0 * 37 FROM tab0 AS cor0
----
-1295
-3293
-888
query I rowsort
SELECT ALL 75 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT ALL + ( col0 * tab0.col1 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT 22 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1389
SELECT - col0 + CAST( NULL AS SIGNED ) * 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1389
SELECT - col0 + CAST ( NULL AS INTEGER ) * 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - 49 FROM tab0
----
-14
-25
40
query I rowsort
SELECT - col1 - - ( col1 + - col1 ) FROM tab2
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1392
SELECT ALL - CAST( NULL AS SIGNED ) * + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - CAST ( NULL AS INTEGER ) * + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 37 + + col2 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
35974
38
551405
query I rowsort
SELECT ( 13 ) FROM tab0 AS cor0
----
13
13
13
query I rowsort
SELECT - 97 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to a85708f93e08f0a017b33cd7912642fd
query I rowsort
SELECT + 25 * col2 FROM tab0
----
2050
25
825
query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1398
SELECT col1 * col0 + + 76 * col1 DIV col1 FROM tab1 AS cor0
----
1116
154
716
skipif mysql # not compatible
query I rowsort label-1398
SELECT col1 * col0 + + 76 * col1 / col1 FROM tab1 AS cor0
----
1116
154
716
query I rowsort
SELECT - 92 + col2 AS col2 FROM tab0 AS cor0
----
-10
-59
-91
query I rowsort
SELECT + 49 * col2 AS col1 FROM tab2
----
1274
1323
1862
query I rowsort
SELECT 94 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL - 87 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to edb5a8bbcb3204ac8254e54507073328
query I rowsort
SELECT DISTINCT 54 - col2 FROM tab0 AS cor0
----
-28
21
53
query I rowsort
SELECT 90 + + 25 FROM tab0 AS cor0
----
115
115
115
query I rowsort
SELECT - - cor0.col1 - 37 AS col2 FROM tab2 AS cor0
----
-20
-6
22
query I rowsort
SELECT DISTINCT 27 - col0 * - col0 AS col2 FROM tab2
----
6111
6268
76
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 col1 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab0, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 + col1 * ( + col1 ) AS col2 FROM tab1
----
36
673
89
query I rowsort
SELECT + 3 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT ALL - col2 * col0 - cor0.col1 AS col1 FROM tab0 cor0
----
-132
-7389
-878
query I rowsort
SELECT - col2 + - cor0.col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + col1 * col1 * - col1 AS col0 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT - 47 * col2 AS col1 FROM tab2 AS cor0
----
-1222
-1269
-1786
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1416
SELECT - CAST( - 75 AS SIGNED ) - col1 FROM tab2 AS cor0
----
16
44
58
skipif mysql # not compatible
query I rowsort label-1416
SELECT - CAST ( - 75 AS INTEGER ) - col1 FROM tab2 AS cor0
----
16
44
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * + col0 * - cor0.col2 col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - tab2.col2 * + 41 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 37676c69ec9f9cc7e3d9ba1e062c3882
query I rowsort
SELECT DISTINCT + + 94 AS col2 FROM tab2 AS cor0
----
94
query I rowsort
SELECT ALL - col1 * + 71 FROM tab2 cor0
----
-1207
-2201
-4189
query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-58
query I rowsort
SELECT cor0.col2 + cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 940a6b82c800eab4d330c129dc095a0c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1423
SELECT ALL CAST( 55 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
55
55
55
skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL CAST ( 55 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT DISTINCT + 75 * col0 AS col2 FROM tab0
----
1800
2625
6675
query I rowsort
SELECT ALL - ( 35 ) * - col0 FROM tab0 cor0
----
1225
3115
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT cor0.col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 26 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT ALL + col1 * - col2 * col1 + cor0.col0 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT ALL col0 + + col1 * cor0.col2 + 25 FROM tab2 cor0
----
1637
750
869
query I rowsort
SELECT - ( - 72 ) AS col1 FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + - col2 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * 53 * col0 col1 FROM tab2
----
1113
12402
12561
query I rowsort
SELECT DISTINCT 25 FROM tab1, tab0, tab0 AS cor0
----
25
query I rowsort
SELECT ALL + 68 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT + - col1 + ( + col2 ) * col0 AS col2 FROM tab1 cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-1439
SELECT DISTINCT - - col2 DIV + col0 + + 60 + col1 FROM tab0 AS cor0
----
147
151
157
skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - - col2 / + col0 + + 60 + col1 FROM tab0 AS cor0
----
147
151
157
query I rowsort
SELECT ALL - col0 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1441
SELECT ALL col0 * - CAST( col2 AS SIGNED ) + - cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825
skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL col0 * - CAST ( col2 AS INTEGER ) + - cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT col0 + + ( - col1 + - cor0.col0 * ( col1 ) ) FROM tab2 AS cor0
----
-1281
-241
-4583
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1443
SELECT DISTINCT - - col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - - col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * - 35 AS col0 FROM tab1 AS cor0
----
-1890
-1995
-3360
query I rowsort
SELECT - cor0.col1 * col1 + col2 * col0 FROM tab1 cor0
----
-514
3548
7511
query I rowsort
SELECT DISTINCT - col2 + + col0 * - col2 FROM tab0 AS cor0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-1447
SELECT - - cor0.col2 DIV + col0 + col2 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-1447
SELECT - - cor0.col2 / + col0 + col2 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT DISTINCT - cor0.col0 + 16 FROM tab2 AS cor0
----
-62
-63
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1449
SELECT DISTINCT col2 DIV - col2 + ( col1 ) AS col1 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT col2 / - col2 + ( col1 ) AS col1 FROM tab1
----
12
25
9
query I rowsort
SELECT 72 + + col1 FROM tab2
----
103
131
89
query I rowsort
SELECT DISTINCT - 12 + - col0 FROM tab2
----
-19
-90
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT col1 DIV - col1 + + ( + col0 ) * col0 + col2 DIV col1 FROM tab1
----
10
4100
6406
skipif mysql # not compatible
query I rowsort label-1452
SELECT col1 / - col1 + + ( + col0 ) * col0 + col2 / col1 FROM tab1
----
10
4100
6406
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 + cor0.col2 col0 FROM tab2, tab1, tab1 AS cor0
----
-35
-38
4
query I rowsort
SELECT DISTINCT ( - col1 ) + col0 AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT col0 * + col0 - + col2 * col2 FROM tab2
----
-680
4797
5408
onlyif mysql # use DIV operator for integer division
query I rowsort label-1456
SELECT ALL col1 DIV - 13 FROM tab0
----
-6
-7
-7
skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL col1 / - 13 FROM tab0
----
-6
-7
-7
query I rowsort
SELECT ALL + - col2 + 27 AS col2 FROM tab1 AS cor0
----
-27
-30
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 + + cor0.col0 col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1459
SELECT + + col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1459
SELECT + + col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT 65 DIV - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd8e66a7c41793984e7b645fb7a39788
skipif mysql # not compatible
query I rowsort label-1460
SELECT 65 / - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd8e66a7c41793984e7b645fb7a39788
query I rowsort
SELECT - 37 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
query I rowsort
SELECT DISTINCT - col1 - cor0.col1 * 14 FROM tab1 cor0
----
-150
-195
-390
query I rowsort
SELECT DISTINCT + col1 + - col1 * col1 AS col2 FROM tab2 cor0
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col1 * 97 col0 FROM tab2 AS cor0
----
1728
3014
5801
query I rowsort
SELECT DISTINCT + - col0 - + col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL cor0.col1 + col1 * + ( - col0 ) + cor0.col2 * + 70 FROM tab0 AS cor0
----
-2268
-3228
332
query I rowsort
SELECT + 32 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT DISTINCT + col0 * + col0 + + col0 * col1 + + 23 AS col0 FROM tab2 AS cor0
----
10709
289
7607
onlyif mysql # use DIV operator for integer division
query I rowsort label-1469
SELECT + ( 30 ) DIV cor0.col2 + tab2.col1 + + 20 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 17a4cce3168e756308f4e28194077b51
skipif mysql # not compatible
query I rowsort label-1469
SELECT + ( 30 ) / cor0.col2 + tab2.col1 + + 20 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 17a4cce3168e756308f4e28194077b51
query I rowsort
SELECT DISTINCT + - col0 * 74 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT col0 * 61 AS col2 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT col0 - tab1.col0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT tab1.col1 * + col1 * col2 AS col0 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT DISTINCT col1 - col0 AS col0 FROM tab0
----
2
62
query I rowsort
SELECT col1 * tab1.col1 * + col1 AS col2 FROM tab1
----
1000
17576
2197
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + col2 * + tab2.col0 + - col1 < NULL
----
query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NULL IN ( + col0 * col2 )
----
query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
53
query I rowsort
SELECT - - 66 FROM tab1 cor0
----
66
66
66
query I rowsort
SELECT DISTINCT col0 - tab2.col2 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1483
SELECT DISTINCT - tab0.col2 + - col1 DIV + col1 AS col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT - tab0.col2 + - col1 / + col1 AS col2 FROM tab0
----
-2
-34
-83
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( tab2.col0 * + col2 + + col2 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col0 col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - 7 * col1 + col1 * ( - cor0.col0 ) FROM tab0 AS cor0
----
-2666
-4074
-8736
query I rowsort
SELECT ( + col0 * col2 ) AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - col1 * 90 FROM tab0 AS cor0
----
-7740
-8190
-8730
query I rowsort
SELECT - col0 * - cor0.col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-1490
SELECT ( - 90 + tab0.col2 ) DIV - col2 FROM tab0
----
0
1
89
skipif mysql # not compatible
query I rowsort label-1490
SELECT ( - 90 + tab0.col2 ) / - col2 FROM tab0
----
0
1
89
query I rowsort
SELECT + + tab1.col2 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT 7 + col0 - + col1 * 47 * ( - cor0.col0 ) FROM tab1 AS cor0
----
30151
3676
48967
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1493
SELECT + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1493
SELECT + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ( - col0 ) * cor0.col0 + - col2 * + 71 FROM tab0 cor0
----
-1296
-13743
-2919
query I rowsort
SELECT DISTINCT - + col0 + + 14 AS col0 FROM tab1 AS cor0
----
-50
-66
11
query I rowsort
SELECT col0 * 35 AS col0 FROM tab1 AS cor0
----
105
2240
2800
onlyif mysql # use DIV operator for integer division
query I rowsort label-1497
SELECT - col0 DIV cor0.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-1497
SELECT - col0 / cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + ( - col2 ) col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1499
SELECT col0 * CAST( + cor0.col0 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
skipif mysql # not compatible
query I rowsort label-1499
SELECT col0 * CAST ( + cor0.col0 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT ALL - + col1 DIV cor0.col0 AS col1 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - + col1 / cor0.col0 AS col1 FROM tab1 cor0
----
-8
0
0
query I rowsort
SELECT col2 + 18 * 76 FROM tab0 AS cor0
----
1369
1401
1450
query I rowsort
SELECT ALL cor0.col0 * - col2 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT - col2 * - cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT DISTINCT col0 DIV - 3 FROM tab2 AS cor0
----
-2
-26
skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT col0 / - 3 FROM tab2 AS cor0
----
-2
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col1 col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT ALL - cor0.col0 * ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT cor0.col1 * 0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - - cor0.col2 + 34 FROM tab2 cor0
----
60
61
72
query I rowsort
SELECT ALL + + col1 * + 35 + col0 FROM tab1 cor0
----
414
535
913
query I rowsort
SELECT DISTINCT - cor0.col0 + ( - 9 ) FROM tab1 AS cor0
----
-12
-73
-89
query I rowsort
SELECT ALL + 45 * tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 256997fa690cf0b54b6070927cea829d
query I rowsort
SELECT - col1 * + col2 - - col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT 20 + col2 FROM tab2 AS cor0
----
46
47
58
query I rowsort
SELECT DISTINCT 21 * 66 * + tab2.col2 AS col1 FROM tab2, tab1 AS cor0
----
36036
37422
52668
onlyif mysql # use DIV operator for integer division
query I rowsort label-1515
SELECT ALL tab0.col0 DIV col0 + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL tab0.col0 / col0 + col1 FROM tab0
----
87
92
98
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0, tab0 cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT ALL + + 4 + col2 FROM tab2 AS cor0
----
30
31
42
query I rowsort
SELECT - + cor0.col2 + - cor0.col2 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT + 66 * col1 + col0 AS col0 FROM tab2
----
1201
2053
3972
query I rowsort
SELECT - + 18 * - cor1.col2 + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e6a95a7efcad7d4d6d284ea089d3848a
query I rowsort
SELECT ALL ( col0 ) - col0 * 5 AS col2 FROM tab0 AS cor0
----
-140
-356
-96
query I rowsort
SELECT col2 * col0 + + 22 FROM tab2 AS cor0
----
2050
211
3024
query I rowsort
SELECT DISTINCT - - col0 + col1 + - col2 * - col1 FROM tab0 AS cor0
----
229
2948
7642
query I rowsort
SELECT + 83 * col0 + ( cor0.col1 ) FROM tab0 AS cor0
----
2078
3002
7478
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1525
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 87 AS col1 FROM tab2, tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 87 AS col1 FROM tab2, tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 * - 59 + col0 FROM tab2 AS cor0
----
-1456
-1586
-2163
query I rowsort
SELECT ALL + col2 * + 48 FROM tab1 AS cor0
----
2592
2736
4608
query I rowsort
SELECT DISTINCT + + col1 * - col0 + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col1 + col2 * + col0 AS col0 FROM tab1 cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1530
SELECT + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1530
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 * 34 + - cor0.col1 FROM tab0 cor0
----
-1287
-3117
-902
query I rowsort
SELECT + cor0.col0 + cor0.col0 AS col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 383cda8fc1e6c2323eb0e11cc73d6c43
query I rowsort
SELECT col0 + - col2 + tab1.col1 * + tab1.col2 FROM tab1
----
1232
1353
577
query I rowsort
SELECT DISTINCT 97 + - ( - col0 ) AS col2 FROM tab2
----
104
175
176
query I rowsort
SELECT + 79 + col0 + - col2 AS col1 FROM tab1
----
28
63
86
query I rowsort
SELECT cor0.col2 - col0 * cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + col1 * - 37 * - col2 AS col1 FROM tab0 AS cor0
----
105006
276094
3589
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1538
SELECT ALL - ( - col0 ) + col1 * - CAST( 82 AS SIGNED ) FROM tab2 AS cor0
----
-1315
-2535
-4760
skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - ( - col0 ) + col1 * - CAST ( 82 AS INTEGER ) FROM tab2 AS cor0
----
-1315
-2535
-4760
query I rowsort
SELECT + col2 + col1 * col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) * col0 * - 82 FROM tab2 cor0
----
110126
17794
377364
query I rowsort
SELECT 85 + col0 * col2 FROM tab0 AS cor0
----
120
7383
877
query I rowsort
SELECT + ( col0 ) + col0 * - 22 FROM tab1 AS cor0
----
-1344
-1680
-63
query I rowsort
SELECT - ( cor0.col0 ) * col1 + + col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + col1 + cor0.col2 - col0 FROM tab0 AS cor0
----
63
84
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1545
SELECT ALL + col0 + col2 * CAST( NULL AS SIGNED ) + + col1 * + col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL + col0 + col2 * CAST ( NULL AS INTEGER ) + + col1 * + col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1546
SELECT ALL col1 * cor0.col2 - CAST( NULL AS SIGNED ) * - 14 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL col1 * cor0.col2 - CAST ( NULL AS INTEGER ) * - 14 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + 95 ) + - col1 FROM tab0
----
-181
-186
-192
query I rowsort
SELECT 32 + 62 FROM tab2
----
94
94
94
query I rowsort
SELECT + 34 + col0 * - col2 FROM tab0
----
-1
-7264
-758
query I rowsort
SELECT DISTINCT + tab1.col0 + + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT + ( col2 * + col2 ) + ( + col0 ) FROM tab2
----
1523
736
754
query I rowsort
SELECT + cor0.col0 * 11 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1655f99fc8ef2c0ec4c1b024cc7f4448
query I rowsort
SELECT ( + col2 ) * - col0 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT 40 * - col0 FROM tab1
----
-120
-2560
-3200
onlyif mysql # use DIV operator for integer division
query I rowsort label-1556
SELECT ALL + ( 13 ) * - tab2.col1 DIV - ( - col1 ) FROM tab2
----
-13
-13
-13
skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + ( 13 ) * - tab2.col1 / - ( - col1 ) FROM tab2
----
-13
-13
-13
query I rowsort
SELECT ALL - col2 * col0 * + col1 AS col2 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1558
SELECT DISTINCT - - CAST( col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col1 * col1 + + col1 * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
119639
32390
75140
onlyif mysql # use DIV operator for integer division
query I rowsort label-1560
SELECT - col1 * col0 DIV col0 AS col2 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1560
SELECT - col1 * col0 / col0 AS col2 FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1561
SELECT + 74 DIV col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1561
SELECT + 74 / col1 FROM tab1
----
2
5
7
query I rowsort
SELECT ALL 98 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - 44 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
42
47
53
query I rowsort
SELECT ALL col2 + - ( cor0.col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col1 * - ( - col1 * - col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT ALL - + col2 + col1 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1567
SELECT + col0 * col1 + - 2 * + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1567
SELECT + col0 * col1 + - 2 * + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1568
SELECT DISTINCT - col2 * 71 DIV ( col2 ) + - cor0.col1 FROM tab1 AS cor0
----
-81
-84
-97
skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT - col2 * 71 / ( col2 ) + - cor0.col1 FROM tab1 AS cor0
----
-81
-84
-97
query I rowsort
SELECT ALL col2 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT tab1.col1 * 81 FROM tab1
----
1053
2106
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT col1 * + ( - 71 ) * col2 + col2 AS col1 FROM tab1 AS cor0
----
-40413
-88512
-99630
query I rowsort
SELECT cor0.col1 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + col0 + - 83 AS col0 FROM tab2 cor0
----
-4
-5
-76
query I rowsort
SELECT ALL - col0 * col1 - + col1 * col1 FROM tab0
----
-12804
-16380
-9460
query I rowsort
SELECT ALL + col1 * - ( - 74 ) FROM tab0
----
6364
6734
7178
onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT DISTINCT - col2 DIV col0 - 24 AS col0 FROM tab1
----
-24
-25
-42
skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT - col2 / col0 - 24 AS col0 FROM tab1
----
-24
-25
-42
query I rowsort
SELECT DISTINCT col1 + + 5 - 12 * col0 AS col0 FROM tab2
----
-48
-872
-926
query I rowsort
SELECT - col0 - ( col2 ) FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1580
SELECT - col0 + CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1580
SELECT - col0 + CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1581
SELECT - CAST( + col1 AS SIGNED ) * + col1 + col0 col1 FROM tab0 cor0
----
-7372
-8192
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1581
SELECT - CAST ( + col1 AS INTEGER ) * + col1 + col0 col1 FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT - 69 * cor0.col2 + - col2 FROM tab0 AS cor0
----
-2310
-5740
-70
query I rowsort
SELECT - 95 + 25 * + col2 FROM tab1 AS cor0
----
1255
1330
2305
onlyif mysql # use DIV operator for integer division
query I rowsort label-1584
SELECT - CAST( 82 AS SIGNED ) DIV col0 + + ( col0 ) FROM tab1 AS cor0
----
-24
63
79
skipif mysql # not compatible
query I rowsort label-1584
SELECT - CAST ( 82 AS INTEGER ) / col0 + + ( col0 ) FROM tab1 AS cor0
----
-24
63
79
query I rowsort
SELECT - - ( col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1586
SELECT + + col1 DIV cor0.col1 + col0 FROM tab0 cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1586
SELECT + + col1 / cor0.col1 + col0 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT DISTINCT - ( 69 ) + col2 AS col1 FROM tab0 AS cor0
----
-36
-68
13
query I rowsort
SELECT DISTINCT - - ( 60 ) * - col1 AS col0 FROM tab0 AS cor0
----
-5160
-5460
-5820
query I rowsort
SELECT ALL col1 * + 63 FROM tab2
----
1071
1953
3717
query I rowsort
SELECT ALL + - 6 * col1 - col0 AS col1 FROM tab1 AS cor0
----
-124
-158
-159
query I rowsort
SELECT DISTINCT + + 91 * - col2 FROM tab1 cor0
----
-4914
-5187
-8736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1592
SELECT - CAST( col0 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-1592
SELECT - CAST ( col0 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - col2 + + col2 * col1 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT ALL + ( - cor0.col0 ) + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 35 * - cor0.col2 FROM tab0 AS cor0
----
-1155
-2870
-35
query I rowsort
SELECT - 69 + - 65 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 907dea30bfa8e2d7a89718dcdc47bc4e
query I rowsort
SELECT - 59 + - col2 FROM tab2 AS cor0
----
-85
-86
-97
query I rowsort
SELECT + 89 * + col2 AS col0 FROM tab2 cor0
----
2314
2403
3382
query I rowsort
SELECT ALL - 64 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
5504
5824
6208
query I rowsort
SELECT - ( cor0.col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - col2 - + ( - col1 ) * + col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - cor0.col2 * - 8 + + col1 FROM tab1 AS cor0
----
458
466
781
query I rowsort
SELECT DISTINCT + - cor1.col2 * - 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4860
5130
8640
query I rowsort
SELECT - + col1 * + col0 - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + + col0 - 51 * 71 FROM tab1 AS cor0
----
-3541
-3557
-3618
onlyif mysql # use DIV operator for integer division
query I rowsort label-1606
SELECT - + col0 DIV - 7 col0 FROM tab0 AS cor0
----
12
3
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1606
SELECT - + col0 / - 7 col0 FROM tab0 AS cor0
----
12
3
5
query I rowsort
SELECT col1 * - 15 AS col1 FROM tab2 AS cor0
----
-255
-465
-885
onlyif mysql # use DIV operator for integer division
query I rowsort label-1608
SELECT + 87 DIV - 46 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1608
SELECT + 87 / - 46 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT tab1.col0 * + 42 AS col2 FROM tab1
----
126
2688
3360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1610
SELECT - CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1610
SELECT - CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 53 ) FROM tab2
----
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * 24 col1 FROM tab2 AS cor0
----
-1416
-408
-744
query I rowsort
SELECT ALL + ( - ( col0 ) ) FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1614
SELECT ALL + CAST( 94 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
94
94
94
skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL + CAST ( 94 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT - + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 78 * - col0 AS col0 FROM tab1 AS cor0
----
-234
-4992
-6240
query I rowsort
SELECT ALL - 22 * + ( col2 ) AS col0 FROM tab2 cor0
----
-572
-594
-836
onlyif mysql # use DIV operator for integer division
query I rowsort label-1618
SELECT + + col0 DIV 38 + col1 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
1042
641
78
skipif mysql # not compatible
query I rowsort label-1618
SELECT + + col0 / 38 + col1 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
1042
641
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1619
SELECT DISTINCT CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT col0 * + ( col2 ) FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1621
SELECT ALL CAST( col1 AS SIGNED ) + - col0 AS col2 FROM tab2 cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL CAST ( col1 AS INTEGER ) + - col0 AS col2 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - - col2 + - 44 AS col2 FROM tab2 AS cor0
----
-17
-18
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + - col2 * + col2 * - col1 col1 FROM tab2 AS cor0
----
22647
24596
39932
query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) + cor0.col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1375
3394
975
query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - + 69 * + col1 AS col0 FROM tab0 cor0
----
-5934
-6279
-6693
query I rowsort
SELECT DISTINCT - col2 * col0 * col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + - col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col0 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 65 ) * col2 col1 FROM tab0
----
-2145
-5330
-65
query I rowsort
SELECT - col0 * col1 + + col1 * - col2 + ( + 39 + + col0 ) FROM tab1 cor0
----
-1107
-1440
-2169
query I rowsort
SELECT + col0 + - 70 * 14 + col0 FROM tab1 cor0
----
-820
-852
-974
query I rowsort
SELECT - ( col0 ) * col0 AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT + col2 * + col2 - - col0 AS col2 FROM tab2
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT + col0 DIV - 27 + - col2 FROM tab2
----
-27
-28
-40
skipif mysql # not compatible
query I rowsort label-1635
SELECT + col0 / - 27 + - col2 FROM tab2
----
-27
-28
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1636
SELECT + CAST( tab2.col1 AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif mysql # not compatible
query I rowsort label-1636
SELECT + CAST ( tab2.col1 AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - col0 * + ( col2 ) - - col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - ( + 78 ) AS col2 FROM tab1, tab0 cor0
----
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1639
SELECT col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1639
SELECT col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + ( col1 ) * cor0.col0 + col0 * - col0 FROM tab1 cor0
----
-3520
-5440
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1641
SELECT col2 * col0 + - ( cor0.col1 * CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1641
SELECT col2 * col0 + - ( cor0.col1 * CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + - ( + col1 ) * - col2 * + col0 + + col0 FROM tab2
----
119789
51130
5897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col2 FROM tab1
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1644
SELECT + col1 + CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-1644
SELECT + col1 + CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT - + CAST( - col0 AS SIGNED ) * - col2 + col0 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-162
-3654
-7686
skipif mysql # not compatible
query I rowsort label-1646
SELECT - + CAST ( - col0 AS INTEGER ) * - col2 + col0 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-162
-3654
-7686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1647
SELECT DISTINCT - + ( + col2 ) * + col2 + + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1056
-6642
0
skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT - + ( + col2 ) * + col2 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT + 31 * - 63 + cor0.col1 FROM tab1 AS cor0
----
-1927
-1940
-1943
query I rowsort
SELECT + 71 * - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-146544
-241045
-575029
query I rowsort
SELECT DISTINCT - 28 FROM tab1 AS cor0
----
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT ALL + cor0.col1 + - col1 DIV col2 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + cor0.col1 + - col1 / col2 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT DISTINCT ( col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 11 * + col2 - col2 col2 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT ALL 63 * + col2 * + col1 FROM tab0
----
178794
470106
6111
query I rowsort
SELECT ALL 38 - - col1 FROM tab0
----
124
129
135
query I rowsort
SELECT ALL + col2 + + col2 + - 85 * + col1 * col1 AS col1 FROM tab1 AS cor0
----
-14173
-57352
-8386
query I rowsort
SELECT ALL + + col0 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 + + cor0.col0 * + cor0.col1 col0 FROM tab0, tab2, tab0 AS cor0
----
1982
3313
8017
query I rowsort
SELECT ALL + col2 * col2 * - col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT DISTINCT + col1 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - cor0.col1 + - 25 + col0 FROM tab0 AS cor0
----
-27
-87
query I rowsort
SELECT - col2 * + col1 + + 19 FROM tab2 AS cor0
----
-1515
-627
-818
query I rowsort
SELECT ALL + - col2 - ( - 71 ) * col0 * 43 AS col1 FROM tab2 AS cor0
----
21344
238108
241149
onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT - col2 DIV + 41 + + col0 * + col1 AS col1 FROM tab0 cor0
----
2064
3395
8097
skipif mysql # not compatible
query I rowsort label-1664
SELECT - col2 / + 41 + + col0 * + col1 AS col1 FROM tab0 cor0
----
2064
3395
8097
query I rowsort
SELECT + - col0 * col0 + + 27 * col1 AS col2 FROM tab0 AS cor0
----
-5464
1394
1746
query I rowsort
SELECT DISTINCT - + cor0.col2 - + ( col1 ) FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1667
SELECT + col2 DIV - cor0.col0 + col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-1667
SELECT + col2 / - cor0.col0 + col0 FROM tab2 AS cor0
----
4
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( + col1 ) col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT cor0.col1 * ( col0 ) - col2 * - col2 FROM tab1 cor0
----
10256
2994
3889
query I rowsort
SELECT DISTINCT - col1 + + col1 * 97 FROM tab2 cor0
----
1632
2976
5664
query I rowsort
SELECT ALL col0 + ( col0 ) AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL cor0.col1 + ( - 19 ) - + col1 AS col1 FROM tab0 AS cor0
----
-19
-19
-19
query I rowsort
SELECT 52 * col1 + ( col0 ) + - cor0.col2 AS col2 FROM tab1 cor0
----
1301
527
660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - + col2 + col0 * + 55 AS col1 FROM tab2 AS cor0
----
358
4264
4307
query I rowsort
SELECT - + col0 + col1 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL col2 + col2 * col1 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT - tab0.col1 + col1 * col1 * - 16 FROM tab0
----
-118422
-132587
-150641
query I rowsort
SELECT + 8 * + 37 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a32cf9e6a5cef6e3940b41bfad35aa25
skipif mysql # not compatible
query I rowsort
SELECT + col1 * + col1 * CAST ( col0 AS REAL ) FROM tab2
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 * - cor0.col2 col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d321c4df1d3defbace47695ec78921d4
query I rowsort
SELECT - 5 * - col1 FROM tab2
----
155
295
85
query I rowsort
SELECT + tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + + col0 + 29 AS col1 FROM tab0 AS cor0
----
118
53
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 21 col2 FROM tab0 cor0
----
-65
-70
-76
query I rowsort
SELECT 3 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT 96 * - col1 * 23 FROM tab2
----
-130272
-37536
-68448
query I rowsort
SELECT col2 + + col2 * 16 FROM tab1
----
1632
918
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-1689
SELECT - + ( col1 ) DIV col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-1689
SELECT - + ( col1 ) / col0 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT + col0 * ( - col0 ) DIV col0 + + col1 AS col0 FROM tab1
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-1690
SELECT + col0 * ( - col0 ) / col0 + + col1 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col1 + - col2 * ( + col1 + + col1 ) AS col0 FROM tab1
----
-1130
-2483
-2782
query I rowsort
SELECT - 2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT ALL col0 + - tab2.col2 * + col1 AS col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT + 6 - col2 * col0 AS col0 FROM tab1 AS cor0
----
-156
-3642
-7674
query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab1 cor0
----
26
query I rowsort
SELECT ALL + ( col0 ) * col0 + - ( + col0 ) FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT 33 + + 99 FROM tab2 cor0
----
132
132
132
onlyif mysql # use DIV operator for integer division
query I rowsort label-1698
SELECT - ( 5 ) * col2 DIV + 53 FROM tab2 AS cor0
----
-2
-2
-3
skipif mysql # not compatible
query I rowsort label-1698
SELECT - ( 5 ) * col2 / + 53 FROM tab2 AS cor0
----
-2
-2
-3
query I rowsort
SELECT - - ( 63 ) AS col0 FROM tab2 AS cor0
----
63
63
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1700
SELECT ALL 61 + col0 DIV + col2 FROM tab1 AS cor0
----
61
61
62
skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL 61 + col0 / + col2 FROM tab1 AS cor0
----
61
61
62
query I rowsort
SELECT - - 38 + 73 AS col0 FROM tab2 cor0
----
111
111
111
query I rowsort
SELECT ALL - 89 * col1 FROM tab1 cor0
----
-1157
-2314
-890
query I rowsort
SELECT DISTINCT + col1 * col1 + + cor0.col0 * + 0 + 14 * col2 AS col0 FROM tab0 AS cor0
----
7858
9423
9429
query I rowsort
SELECT DISTINCT - cor0.col0 + + 1 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT + + 28 AS col0 FROM tab1 AS cor0
----
28
28
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT DISTINCT col2 * - col0 + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-144
-3648
-7679
skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT col2 * - col0 + col2 / + col0 AS col0 FROM tab1 AS cor0
----
-144
-3648
-7679
query I rowsort
SELECT - - col0 + - col2 * - 82 FROM tab0 AS cor0
----
117
2730
6813
query I rowsort
SELECT + ( + 23 ) FROM tab0
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col0 + + col0 col2 FROM tab1
----
233536
489
614480
query I rowsort
SELECT DISTINCT - col0 * tab0.col1 - col1 * + 43 AS col0 FROM tab0
----
-12012
-5762
-7566
query I rowsort
SELECT - 43 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-17
-30
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) - col0 col1 FROM tab0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + - 21 col0 FROM tab2 cor0
----
-1364
-238
-4623
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 * 99 FROM tab1 AS cor0
----
1047
1383
2628
query I rowsort
SELECT - cor0.col0 - + col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + col1 * - cor0.col0 - + 34 FROM tab1 AS cor0
----
-1074
-112
-674
query I rowsort
SELECT + col2 - + col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT col2 * + 75 AS col2 FROM tab1
----
4050
4275
7200
query I rowsort
SELECT DISTINCT col0 * + ( col2 ) * - col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - col0 * 17 FROM tab0 AS cor0
----
-1513
-408
-595
query I rowsort
SELECT - - col0 + 78 * + col2 FROM tab2 cor0
----
2106
2113
3043
query I rowsort
SELECT col1 + - col1 * + col1 FROM tab1 cor0
----
-156
-650
-90
query I rowsort
SELECT - cor0.col1 * ( 30 ) + col2 AS col0 FROM tab0 AS cor0
----
-2547
-2648
-2909
query I rowsort
SELECT - cor0.col0 + - 32 FROM tab1 AS cor0
----
-112
-35
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1725
SELECT + CAST( + col0 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-1725
SELECT + CAST ( + col0 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 * + col2 * 27 col1 FROM tab0 AS cor0
----
201565
2716
76712
query I rowsort
SELECT col1 + 15 * 53 * col1 AS col1 FROM tab1
----
10348
20696
7960
query I rowsort
SELECT - 56 + - 81 FROM tab0, tab0 AS cor0
----
9 values hashing to 77c3d2047f1ee5e234978774b15ce98a
query I rowsort
SELECT DISTINCT - col2 + - ( col2 ) FROM tab2
----
-52
-54
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - ( col2 + col2 ) * 27 col2 FROM tab0
----
1806
4517
89
query I rowsort
SELECT ALL tab1.col0 + 12 FROM tab1
----
15
76
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col2 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT tab1.col1 + + 58 + + col0 * col2 FROM tab1
----
246
3716
7751
onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT - col2 DIV + 42 + + 28 FROM tab2 AS cor0
----
28
28
28
skipif mysql # not compatible
query I rowsort label-1734
SELECT - col2 / + 42 + + 28 FROM tab2 AS cor0
----
28
28
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT 49 DIV 40 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-1735
SELECT 49 / 40 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1737
SELECT - - col0 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1737
SELECT - - col0 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * ( - ( + col1 ) ) + + ( + col1 ) AS col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT 13 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT + col1 * col2 + tab2.col2 FROM tab2
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1741
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - 73 * - col0 AS col0 FROM tab1 cor0
----
219
4672
5840
query I rowsort
SELECT ALL + 38 * - col1 FROM tab0 cor0
----
-3268
-3458
-3686
query I rowsort
SELECT + 27 * - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-2132
-216
-2171
query I rowsort
SELECT ALL - col0 * col0 + - col0 FROM tab2 cor0
----
-56
-6162
-6320
query I rowsort
SELECT ALL + 41 * + col2 AS col1 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT DISTINCT - - col0 + + 75 + col1 FROM tab2 AS cor0
----
113
171
212
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - ( col1 ) col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT ALL + - col1 + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7
skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL + - col1 + col0 / col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7
query I rowsort
SELECT ALL + 12 + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1355
229
4614
query I rowsort
SELECT col0 + ( + col1 ) * + 75 * - cor0.col2 FROM tab1 AS cor0
----
-105297
-42686
-93520
query I rowsort
SELECT DISTINCT + 61 * + ( + col2 ) + ( - col0 ) + col2 * + col0 AS col2 FROM tab0 cor0
----
12211
2781
61
query I rowsort
SELECT + ( col0 ) + col0 * + ( - 76 ) FROM tab2 AS cor0
----
-525
-5850
-5925
query I rowsort
SELECT ALL - col0 - col0 AS col1 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT + + 94 + - col0 * col1 FROM tab2 AS cor0
----
-123
-1249
-4508
onlyif mysql # use DIV operator for integer division
query I rowsort label-1756
SELECT ALL col0 DIV cor0.col0 + col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL col0 / cor0.col0 + col2 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 33 * - 91 col0 FROM tab2 AS cor0
----
-3003
query I rowsort
SELECT ALL + - 51 * - cor0.col1 + col2 + 18 AS col1 FROM tab1 cor0
----
1398
585
777
query I rowsort
SELECT ALL col0 * 25 - cor0.col2 AS col0 FROM tab0 cor0
----
2143
567
874
query I rowsort
SELECT ALL - col2 * + col0 * + cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + - ( + cor0.col0 ) * 32 AS col1 FROM tab1 cor0
----
-2048
-2560
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT DISTINCT - ( - col2 ) DIV col2 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT - ( - col2 ) / col2 FROM tab0 cor0
----
1
query I rowsort
SELECT DISTINCT col2 * + ( - cor0.col1 ) + cor0.col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT col0 * - col0 + + 97 FROM tab2 cor0
----
-5987
-6144
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 827987689e80df19b2497de1709e105d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1766
SELECT ALL + - cor0.col0 - + CAST( - col0 AS SIGNED ) * col2 FROM tab1 AS cor0
----
159
3584
7600
skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL + - cor0.col0 - + CAST ( - col0 AS INTEGER ) * col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT col1 * - col1 - + col0 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT DISTINCT - col0 * col0 - - 17 AS col2 FROM tab0 AS cor0
----
-1208
-559
-7904
query I rowsort
SELECT ALL 18 - - col1 FROM tab1
----
28
31
44
query I rowsort
SELECT ALL - 61 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT ALL - col1 * ( - col1 + col0 ) AS col1 FROM tab0 AS cor0
----
182
5332
6014
query I rowsort
SELECT ALL - col1 * 76 FROM tab2 AS cor0
----
-1292
-2356
-4484
query I rowsort
SELECT - col2 - - ( cor0.col1 ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT col1 * 39 + - col0 FROM tab2 AS cor0
----
1202
2223
584
query I rowsort
SELECT col1 - + ( col2 + - col0 * ( - col1 ) ) AS col0 FROM tab2 cor0
----
-1364
-213
-4569
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb
onlyif mysql # use DIV operator for integer division
query I rowsort label-1777
SELECT ALL - col2 DIV 64 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL - col2 / 64 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 - col0 * col0 * - col1 col1 FROM tab0 cor0
----
128234
56932
729092
query I rowsort
SELECT - - col0 * col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1780
SELECT + + col2 DIV 92 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1780
SELECT + + col2 / 92 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1781
SELECT + col2 * + 30 * ( + col1 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1781
SELECT + col2 * + 30 * ( + col1 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col1 + col0 AS col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT - - cor0.col2 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - col0 + 94 AS col2 FROM tab1
----
14
30
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT - col2 * col0 DIV 90 FROM tab2 AS cor0
----
-2
-22
-33
skipif mysql # not compatible
query I rowsort label-1785
SELECT - col2 * col0 / 90 FROM tab2 AS cor0
----
-2
-22
-33
query I rowsort
SELECT - cor0.col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col2 + 19 * col2 FROM tab1
----
1080
1140
1920
onlyif mysql # use DIV operator for integer division
query I rowsort label-1788
SELECT DISTINCT col2 + col2 DIV + col1 AS col0 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT col2 + col2 / + col1 AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL + + 73 AS col1 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT ALL - 88 + + col1 AS col1 FROM tab0 AS cor0
----
-2
3
9
query I rowsort
SELECT ( col0 * ( 43 ) ) AS col1 FROM tab0
----
1032
1505
3827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 2 col2 FROM tab2 AS cor0
----
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT - col2 * - col0 DIV col0 + + col0 AS col2 FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-1793
SELECT - col2 * - col0 / col0 + + col0 AS col2 FROM tab0
----
171
36
57
query III rowsort
SELECT * FROM tab2 WHERE col1 IN ( tab2.col0 * col2 * + col0 + col1 )
----
query I rowsort
SELECT ALL tab0.col1 * + tab0.col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT tab0.col2 * - col1 * col0 + - col1 * col0 * + col0 FROM tab0
----
-117648
-122220
-1384929
query I rowsort
SELECT DISTINCT col0 * col1 * + col2 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----
query I rowsort
SELECT ALL col1 + - col0 FROM tab0 WHERE ( NULL ) IN ( - col1 + col2 * + col0 + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1799
SELECT DISTINCT - col1 - col2 * col1 DIV tab1.col2 AS col1 FROM tab1
----
-20
-26
-52
skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT - col1 - col2 * col1 / tab1.col2 AS col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT - col0 + + col0 + + tab1.col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT col0 - col1 * tab0.col2 AS col1 FROM tab0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT ALL col2 * col0 DIV col0 - tab1.col0 col2 FROM tab1
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL col2 * col0 / col0 - tab1.col0 col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT + col1 - col2 AS col0 FROM tab1 WHERE NULL IN ( + tab1.col2 * + tab1.col2 * - tab1.col0 + + col2 * - col2 )
----
query I rowsort
SELECT 27 * col0 * - col1 + 45 AS col2 FROM tab2 cor0
----
-124209
-36216
-5814
query I rowsort
SELECT - 1 * - cor0.col0 + + cor0.col1 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - ( + col2 ) * col0 - - 95 * col1 FROM tab0 AS cor0
----
1347
7378
9180
query I rowsort
SELECT DISTINCT 15 + - col0 * 66 - - col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-4109
-5096
493
query I rowsort
SELECT DISTINCT - col2 - + col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + tab0.col0 * + col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT 66 - - col2 * col2 AS col2 FROM tab1 AS cor0
----
2982
3315
9282
query I rowsort
SELECT col2 + - cor0.col1 * ( + col1 ) * cor0.col2 FROM tab0 AS cor0
----
-244035
-678960
-9408
query I rowsort
SELECT + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1814
SELECT DISTINCT col0 DIV - col1 + col0 AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT col0 / - col1 + col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT col0 + + cor0.col1 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
query I rowsort
SELECT col0 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT + col0 * col1 * col0 + col1 + col1 FROM tab0
----
119019
49708
720993
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - col1
----
query I rowsort
SELECT col1 + - col1 * + col1 * + col0 FROM tab2
----
-22814
-271459
-6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab2.col1 col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + col0 - col1 AS col1 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1822
SELECT ALL col2 DIV + col2 + col2 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL col2 / + col2 + col2 AS col1 FROM tab0
----
2
34
83
query I rowsort
SELECT - col0 FROM tab2 WHERE + col2 IN ( - col2 * col2 )
----
query I rowsort
SELECT - + col1 + - col1 * + col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT 20 + + col1 * col1 FROM tab2 AS cor0
----
309
3501
981
query I rowsort
SELECT ALL 32 - - cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 9bfe0a3a40f6ea36db9e7cd8f88b4222
query I rowsort
SELECT ALL + 71 + 78 FROM tab1, tab0 AS cor0
----
9 values hashing to e405bda2d02faef1ec0a7731ac2315a4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * col2 col1 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 * 62 col1 FROM tab1 AS cor0
----
3968
onlyif mysql # use DIV operator for integer division
query I rowsort label-1830
SELECT ALL + + col1 * col0 DIV col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL + + col1 * col0 / col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col1 * + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL 19 * ( col1 ) * - col1 FROM tab2
----
-18259
-5491
-66139
query I rowsort
SELECT - - 20 + col0 FROM tab0 AS cor0
----
109
44
55
query I rowsort
SELECT ALL + col1 * cor0.col2 + 34 FROM tab0 AS cor0
----
131
2872
7496
query I rowsort
SELECT DISTINCT - cor0.col0 - - col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 - + col0 col2 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL col2 * - 85 FROM tab2 AS cor0
----
-2210
-2295
-3230
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + 26 col1 FROM tab1 AS cor0
----
36
39
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1839
SELECT col0 * 26 * + 95 + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1839
SELECT col0 * 26 * + 95 + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - col0 + + col2 * + cor0.col1 + - col0 * ( - 52 ) * + col0 FROM tab2 cor0
----
317824
325099
3378
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col0 FROM tab1
----
86
86
86
query I rowsort
SELECT + col0 + ( + col1 * col1 ) AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - col2 * cor0.col1 + 73 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1086
-965
2458
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col1 * col0 col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + ( - col2 ) * + col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col0 + col2 * 74 * 25 + - col0 AS col1 FROM tab2 AS cor0
----
47944
49936
70142
query I rowsort
SELECT - col1 + + col1 * col0 * - 80 - col1 * 97 AS col0 FROM tab2 AS cor0
----
-109106
-20398
-373942
query I rowsort
SELECT - 46 + - col0 * col1 + ( cor0.col2 ) FROM tab2 AS cor0
----
-1351
-236
-4622
query I rowsort
SELECT ALL - - 81 + col1 AS col0 FROM tab2 AS cor0
----
112
140
98
query I rowsort
SELECT ALL - col1 + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT - + col0 + col0 + ( + col1 ) DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1852
SELECT - + col0 + col0 + ( + col1 ) / - cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 37 + + col1 * tab0.col1 AS col0 FROM tab0
----
7433
8318
9446
query I rowsort
SELECT 40 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT ALL ( - tab1.col0 ) - - col0 * col1 FROM tab1
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1856
SELECT ALL col0 * - col2 - col1 DIV - 57 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL col0 * - col2 - col1 / - 57 FROM tab0
----
-34
-7297
-791
query I rowsort
SELECT ALL + 69 * col1 + - ( 85 ) + col0 FROM tab2
----
1167
2061
4064
query I rowsort
SELECT - cor0.col2 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT ALL - 83 + col2 DIV - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-5
-6
-76
skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - 83 + col2 / - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-5
-6
-76
query I rowsort
SELECT ALL + + 47 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT ALL - 56 + col1 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-2144
-3486
-8244
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * + 84 FROM tab2 AS cor0
----
1445
2635
5015
query I rowsort
SELECT DISTINCT - - 16 + col0 FROM tab0 AS cor0
----
105
40
51
query I rowsort
SELECT - - col2 * col1 + - 51 FROM tab2 AS cor0
----
1483
595
786
onlyif mysql # use DIV operator for integer division
query I rowsort label-1865
SELECT DISTINCT - cor0.col2 + - col1 + - col1 DIV 39 FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - cor0.col2 + - col1 + - col1 / 39 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + 6 + col2 FROM tab1 AS cor0
----
102
60
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1867
SELECT DISTINCT - ( + col0 ) + + CAST( 38 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-40
-41
31
skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - ( + col0 ) + + CAST ( 38 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-40
-41
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 - col2 col0 FROM tab0
----
2805
7380
96
query I rowsort
SELECT ALL - 58 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT + cor0.col2 * - 31 FROM tab1 AS cor0
----
-1674
-1767
-2976
query I rowsort
SELECT cor0.col2 * 97 AS col0 FROM tab1 AS cor0
----
5238
5529
9312
query I rowsort
SELECT ALL - 66 * cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b2d0b5987227ebcfbbdc1d4b5c380d9b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1873
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col1 + + col0 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT tab0.col0 * col1 + col0 * 88 * + col1 FROM tab0
----
183696
302155
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-1876
SELECT ( col0 ) + + col1 + col2 DIV 55 col2 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1876
SELECT ( col0 ) + + col1 + col2 / 55 col2 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT + + col2 + ( col1 ) + col2 AS col1 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT + + 5 * - col0 AS col2 FROM tab2 cor0
----
-35
-390
-395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1879
SELECT ALL + 47 + 64 + + col0 * CAST( NULL AS SIGNED ) * + cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL + 47 + 64 + + col0 * CAST ( NULL AS INTEGER ) * + cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 97 col0 FROM tab1 AS cor0
----
-97
-97
-97
query I rowsort
SELECT DISTINCT + + 45 + 31 FROM tab0 AS cor0
----
76
query I rowsort
SELECT DISTINCT 11 * col2 - - col2 FROM tab1 cor0
----
1152
648
684
query I rowsort
SELECT DISTINCT col0 * 72 + + col2 FROM tab1 AS cor0
----
270
4665
5856
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1885
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT col2 DIV + 66 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1886
SELECT col2 / + 66 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL 76 * col0 FROM tab2 AS cor0
----
532
5928
6004
query I rowsort
SELECT ALL - 27 + + col1 * col0 * + 77 FROM tab0 cor0
----
158901
261388
623596
onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT ALL - 41 + - col0 DIV + col2 + col1 AS col0 FROM tab0 AS cor0
----
21
45
49
skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - 41 + - col0 / + col2 + col1 AS col0 FROM tab0 AS cor0
----
21
45
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1890
SELECT - - CAST( col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-1890
SELECT - - CAST ( col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT ( 15 ) * col2 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT - col0 * - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - col1 + + 15 * col2 AS col1 FROM tab1 cor0
----
1427
784
845
query I rowsort
SELECT ALL + col0 * ( cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col1 * + col1 * - col1 + col0 FROM tab0 AS cor0
----
-636032
-753482
-912638
query I rowsort
SELECT - + col1 * cor0.col2 + 45 * + 38 * - col1 AS col2 FROM tab0 AS cor0
----
-149898
-163072
-165967
onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT - col1 DIV col0 - CAST( 16 AS SIGNED ) FROM tab1 AS cor0
----
-16
-16
-24
skipif mysql # not compatible
query I rowsort label-1897
SELECT - col1 / col0 - CAST ( 16 AS INTEGER ) FROM tab1 AS cor0
----
-16
-16
-24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1898
SELECT CAST( + 73 AS SIGNED ) + col1 AS col0 FROM tab0
----
159
164
170
skipif mysql # not compatible
query I rowsort label-1898
SELECT CAST ( + 73 AS INTEGER ) + col1 AS col0 FROM tab0
----
159
164
170
onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT cor0.col0 DIV 29 FROM tab2 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-1899
SELECT cor0.col0 / 29 FROM tab2 AS cor0
----
0
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1900
SELECT - col2 DIV - ( col1 ) FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1900
SELECT - col2 / - ( col1 ) FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT + + col2 + + 65 AS col2 FROM tab0 AS cor0
----
147
66
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1902
SELECT ALL - col2 / CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL - col2 / CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT col0 + - col0 DIV - 56 AS col0 FROM tab0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-1903
SELECT col0 + - col0 / - 56 AS col0 FROM tab0
----
24
35
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1904
SELECT + col1 DIV 75 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1904
SELECT + col1 / 75 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 + + col2 + + 85 AS col2 FROM tab2 AS cor0
----
137
139
161
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - col2 - - col0 * col2 AS col0 FROM tab2
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1908
SELECT DISTINCT col2 * + CAST( + col1 AS SIGNED ) FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT col2 * + CAST ( + col1 AS INTEGER ) FROM tab2
----
1534
646
837
query I rowsort
SELECT - col1 + + 72 AS col1 FROM tab0 cor0
----
-14
-19
-25
onlyif mysql # use DIV operator for integer division
query I rowsort label-1910
SELECT DISTINCT 99 DIV tab0.col2 FROM tab0, tab1 AS cor0
----
1
3
99
skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT 99 / tab0.col2 FROM tab0, tab1 AS cor0
----
1
3
99
query I rowsort
SELECT col1 + col0 * - col2 * col0 FROM tab2
----
-1292
-158125
-237141
onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT + col1 DIV 52 + + col0 AS col1 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1912
SELECT + col1 / 52 + + col0 AS col1 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL + ( 36 ) AS col0 FROM tab2, tab0 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1914
SELECT ALL cor0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL cor0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + ( col0 + col2 ) * - tab1.col0 * + col0 FROM tab1
----
-1126400
-495616
-513
query I rowsort
SELECT - 73 + - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 572cf2e55595a0271b75ddde9c9db2f7
query I rowsort
SELECT ( tab2.col2 + ( + 83 ) ) AS col1 FROM tab2
----
109
110
121
onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT ALL - col1 DIV + col0 col1 FROM tab1
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - col1 / + col0 col1 FROM tab1
----
-8
0
0
query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-78
query I rowsort
SELECT DISTINCT + 89 AS col2 FROM tab0, tab1 AS cor0
----
89
query I rowsort
SELECT col1 + + 14 * - cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-1059
-1127
-94
query I rowsort
SELECT DISTINCT col2 * + col0 + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + + ( + col0 ) * cor0.col2 + - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-514
3548
7511
query I rowsort
SELECT ALL + - col0 + - col2 + + 26 FROM tab0 AS cor0
----
-10
-145
-31
query I rowsort
SELECT col2 + - col1 * 20 FROM tab1 AS cor0
----
-143
-164
-466
query I rowsort
SELECT - - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col1 * - col0 + ( 0 ) + col0 * - 19 FROM tab0 AS cor0
----
1608
2730
6408
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + 48 + + col2 * CAST ( col2 AS REAL ) AS col0 FROM tab2
----
1492
724
777
query I rowsort
SELECT ( - tab1.col2 ) - + 65 FROM tab1
----
-119
-122
-161
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( cor0.col0 ) col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col2 - ( col0 ) * col0 AS col2 FROM tab1 cor0
----
-4153
-63
-6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1932
SELECT ALL col1 + CAST( - ( col2 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL col1 + CAST ( - ( col2 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col2 * ( 59 ) AS col0 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT ALL col2 * + 2 + col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT + + col2 * - ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 + + 52 * col2 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT DISTINCT + col2 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL - - col1 * + col0 - - col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + col0 * col1 * - tab0.col0 FROM tab0
----
-118825
-49536
-720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1940
SELECT ALL col0 * col0 * + CAST( 44 AS SIGNED ) FROM tab1
----
180224
281600
396
skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL col0 * col0 * + CAST ( 44 AS INTEGER ) FROM tab1
----
180224
281600
396
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab1
----
-80
-80
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1942
SELECT CAST( - col2 AS SIGNED ) * - cor0.col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1942
SELECT CAST ( - col2 AS INTEGER ) * - cor0.col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + - 19 - - col0 AS col2 FROM tab2 AS cor0
----
-12
59
60
query I rowsort
SELECT + col0 + + cor0.col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - 39 * col2 + col1 * col2 * - cor0.col0 + + cor0.col1 FROM tab0 AS cor0
----
-3337
-667225
-69313
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - 11 col0 FROM tab1 AS cor0
----
-110
-143
-286
onlyif mysql # use DIV operator for integer division
query I rowsort label-1947
SELECT DISTINCT - col0 + - col1 * col1 DIV - ( - col1 ) FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT - col0 + - col1 * col1 / - ( - col1 ) FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - col1 * + cor0.col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT ALL + 72 DIV + col1 AS col0 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + 72 / + col1 AS col0 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT - col2 * + 37 - + col1 FROM tab2 cor0
----
-1021
-1030
-1423
query I rowsort
SELECT DISTINCT + - ( 35 ) + col1 AS col0 FROM tab0 AS cor0
----
51
56
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1952
SELECT DISTINCT + col1 + ( 43 ) DIV + tab0.col2 AS col1 FROM tab0
----
140
87
91
skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT + col1 + ( 43 ) / + tab0.col2 AS col1 FROM tab0
----
140
87
91
query I rowsort
SELECT col0 + col2 + col0 FROM tab1
----
185
256
60
query I rowsort
SELECT + col1 * + tab2.col2 * 84 FROM tab2
----
128856
54264
70308
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col2 FROM tab1
----
13
13
13
query I rowsort
SELECT + col1 * + ( + col0 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + col0 * + 19 * col2 FROM tab2
----
3591
38532
57038
query I rowsort
SELECT col0 + + 14 * col0 * ( + 32 ) + col1 AS col1 FROM tab0 cor0
----
10862
15812
40052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 * + col2 col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT 68 + 74 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 9c44598517721ad29c019d831d2e0959
query I rowsort
SELECT ALL cor0.col0 + + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 7 AS REAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT + + col1 DIV col0 AS col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1964
SELECT + + col1 / col0 AS col0 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT ALL + 78 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT DISTINCT col1 * - col2 * - col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT - 60 - col2 AS col0 FROM tab1 AS cor0
----
-114
-117
-156
query I rowsort
SELECT DISTINCT - col0 - 22 AS col1 FROM tab0
----
-111
-46
-57
query I rowsort
SELECT ALL - col2 - col0 * col0 AS col2 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT ALL col0 - col2 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - col2 - 90 FROM tab1 AS cor0
----
-144
-147
-186
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + col1 + - 64 AS col2 FROM tab2 AS cor0
----
-33
-47
-5
query I rowsort
SELECT + + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ( ( + col1 ) ) - - 21 AS col1 FROM tab2 cor0
----
38
52
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1977
SELECT DISTINCT + 80 DIV cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
29
65
81
skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + 80 / cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
29
65
81
query I rowsort
SELECT 54 + col0 FROM tab2 AS cor0
----
132
133
61
query I rowsort
SELECT ALL + col0 * col1 * + 33 FROM tab1
----
21120
2574
34320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 82 col1 FROM tab1
----
146
162
85
query I rowsort
SELECT col2 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT DISTINCT + col1 + + col2 DIV + 98 AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT + col1 + + col2 / + 98 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - + 27 * - col0 AS col0 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT + + 91 + col0 AS col1 FROM tab1 AS cor0
----
155
171
94
query I rowsort
SELECT ALL - 21 FROM tab0 cor0
----
-21
-21
-21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1986
SELECT - - cor0.col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1986
SELECT - - cor0.col0 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL - + 71 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT DISTINCT - col0 * col0 * 20 + + 52 FROM tab0 AS cor0
----
-11468
-158368
-24448
query I rowsort
SELECT ALL - + col0 * - col2 + + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 * tab2.col1 + - col0 FROM tab2
----
1456
567
830
query I rowsort
SELECT - tab2.col0 + + col0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 * + 79 FROM tab0 cor0
----
-1872
-2730
-6942
query I rowsort
SELECT DISTINCT - ( col1 ) * 68 FROM tab1
----
-1768
-680
-884
onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT ALL tab1.col1 DIV + col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL tab1.col1 / + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT 22 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-127
-1690
-1700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 34 col2 FROM tab1 AS cor0
----
-34
query I rowsort
SELECT DISTINCT - + col2 * col1 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col0 + col0 AS col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT - 89 * col0 + ( - col2 + col0 ) * + 9 AS col1 FROM tab2
----
-6474
-6662
-803
onlyif mysql # use DIV operator for integer division
query I rowsort label-2003
SELECT - col2 * tab0.col1 + + col1 DIV - 79 FROM tab0
----
-2839
-7463
-98
skipif mysql # not compatible
query I rowsort label-2003
SELECT - col2 * tab0.col1 + + col1 / - 79 FROM tab0
----
-2839
-7463
-98
query I rowsort
SELECT + col0 * col0 + col2 AS col0 FROM tab0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT - col1 DIV + col0 + col1 AS col1 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-2005
SELECT - col1 / + col0 + col1 AS col1 FROM tab0 AS cor0
----
83
90
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2006
SELECT + cor0.col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2006
SELECT + cor0.col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * 84 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-16
1875
4280
query I rowsort
SELECT DISTINCT + + col1 * 7 AS col1 FROM tab2 AS cor0
----
119
217
413
query I rowsort
SELECT ALL + cor0.col2 * 85 + + 37 + + col1 * + col0 FROM tab1 AS cor0
----
4705
5522
9237
query I rowsort
SELECT ALL col2 + + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 * col2 col0 FROM tab0 cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL + ( col0 ) + + col0 FROM tab2
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * + col1 col1 FROM tab2 AS cor0
----
1241
2263
4307
query I rowsort
SELECT DISTINCT + col1 + 78 - cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
188
260
780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 62 ) + - col0 col1 FROM tab0 AS cor0
----
-27
27
38
query I rowsort
SELECT + + col0 * - col2 * - col1 - ( + col0 ) AS col0 FROM tab1 AS cor0
----
36416
4209
99760
query I rowsort
SELECT ALL - + col0 + - col2 * - col1 * + col1 FROM tab2 AS cor0
----
10903
25940
90428
onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT ALL - col0 DIV + cor0.col0 + col1 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - col0 / + cor0.col0 + col1 FROM tab1 cor0
----
12
25
9
query I rowsort
SELECT ALL - col1 * col2 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + col0 * col0 + - ( col0 ) AS col2 FROM tab0 AS cor0
----
1190
552
7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 * + 78 col1 FROM tab2 AS cor0
----
-515
-6025
-6145
query I rowsort
SELECT - 50 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT ALL + col0 * + col1 - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + + cor0.col2 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT + 7 * + col1 AS col1 FROM tab2 AS cor0
----
119
217
413
onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT 74 + + col1 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
75
75
75
skipif mysql # not compatible
query I rowsort label-2026
SELECT 74 + + col1 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
75
75
75
query I rowsort
SELECT - - 1 + - col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2917
3250
9217
query I rowsort
SELECT ALL 38 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT + tab0.col0 * + 76 FROM tab0
----
1824
2660
6764
query I rowsort
SELECT - col1 * + tab2.col1 * tab2.col1 AS col0 FROM tab2
----
-205379
-29791
-4913
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2031
SELECT + CAST( col0 AS SIGNED ) * col2 col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2031
SELECT + CAST ( col0 AS INTEGER ) * col2 col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2032
SELECT - cor0.col2 DIV cor0.col0 + - col2 FROM tab1 AS cor0
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-2032
SELECT - cor0.col2 / cor0.col0 + - col2 FROM tab1 AS cor0
----
-57
-72
-97
query I rowsort
SELECT - col2 + col2 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
2888
3202
9133
onlyif mysql # use DIV operator for integer division
query I rowsort label-2034
SELECT DISTINCT - - col1 DIV cor0.col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT - - col1 / cor0.col0 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT DISTINCT 14 + col2 FROM tab1 AS cor0
----
110
68
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT DISTINCT - 5 * + col0 * col2 FROM tab2
----
-10140
-15010
-945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2038
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - cor0.col2 + 0 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL - col2 + + col2 * + tab0.col2 * + 58 FROM tab0
----
389910
57
63129
query I rowsort
SELECT DISTINCT - 68 * + tab2.col2 FROM tab2, tab2 AS cor0
----
-1768
-1836
-2584
query I rowsort
SELECT ALL + 41 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL + col0 + 9 - + 62 FROM tab2
----
-46
25
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + + col0 col2 FROM tab2 AS cor0
----
100
3
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2045
SELECT ALL - ( - col2 ) DIV + cor0.col0 - - ( col0 ) * col0 FROM tab2 AS cor0
----
52
6084
6241
skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - ( - col2 ) / + cor0.col0 - - ( col0 ) * col0 FROM tab2 AS cor0
----
52
6084
6241
query I rowsort
SELECT tab0.col1 * 22 FROM tab0
----
1892
2002
2134
query I rowsort
SELECT DISTINCT + col1 * + 34 * col1 + col0 FROM tab2
----
118432
32681
9905
onlyif mysql # use DIV operator for integer division
query I rowsort label-2048
SELECT + + col0 + ( + cor0.col2 ) DIV - col1 AS col1 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-2048
SELECT + + col0 + ( + cor0.col2 ) / - col1 AS col1 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT DISTINCT col1 - col1 * + col0 AS col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ( ( + col2 ) ) - tab2.col2 * - 9 AS col1 FROM tab2
----
260
270
380
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2051
SELECT CAST( NULL AS SIGNED ) * - 86 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2051
SELECT CAST ( NULL AS INTEGER ) * - 86 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + col2 col0 FROM tab1
----
129
87
90
query I rowsort
SELECT ( 59 * col1 ) FROM tab0
----
5074
5369
5723
query I rowsort
SELECT ALL col0 * col2 + - col1 FROM tab0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + tab1.col2 + - col2 col0 FROM tab1
----
54
57
96
query I rowsort
SELECT col0 * col1 * col2 + + col0 * 66 + col0 AS col0 FROM tab1
----
105200
40768
4413
query I rowsort
SELECT ALL - col2 * + 70 FROM tab2 AS cor0
----
-1820
-1890
-2660
query I rowsort
SELECT ALL + col2 + 9 + col1 AS col1 FROM tab0 AS cor0
----
107
128
182
query I rowsort
SELECT DISTINCT - + col1 + ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL + col0 * col2 + col2 AS col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT - - ( + col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - 90 FROM tab0, tab2, tab2 AS cor0
----
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 * + col1 col0 FROM tab1 AS cor0
----
1066
2132
820
query I rowsort
SELECT - 53 + col2 FROM tab1 cor0
----
1
4
43
query I rowsort
SELECT ALL 64 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT + + col2 + 82 * + col1 FROM tab0 AS cor0
----
7085
7544
7955
query I rowsort
SELECT DISTINCT + col1 + ( cor0.col0 * - col0 ) + 91 * 58 * - col1 FROM tab2 AS cor0
----
-163636
-317427
-95950
query I rowsort
SELECT col0 * + col2 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
113997
5096
52650
query I rowsort
SELECT col0 * + col0 - - 72 AS col2 FROM tab0 AS cor0
----
1297
648
7993
query I rowsort
SELECT + + col2 + 60 FROM tab1 AS cor0
----
114
117
156
query I rowsort
SELECT DISTINCT + col0 * 60 * col1 - - col2 FROM tab0 AS cor0
----
123873
203701
486022
query I rowsort
SELECT ALL + col1 + - col0 * 93 + + col2 AS col1 FROM tab1 AS cor0
----
-199
-5885
-7331
query I rowsort
SELECT DISTINCT ( - col2 + + col2 * + col0 ) AS col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT DISTINCT ( 47 * - col2 ) FROM tab1
----
-2538
-2679
-4512
query I rowsort
SELECT DISTINCT ( 50 ) FROM tab0
----
50
query I rowsort
SELECT ALL col0 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT 56 * cor0.col0 + - col2 FROM tab0 AS cor0
----
1311
1959
4902
query I rowsort
SELECT ALL ( - 32 ) FROM tab2 AS cor0
----
-32
-32
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-2081
SELECT DISTINCT + col1 DIV + col1 col0 FROM tab1 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + col1 / + col1 col0 FROM tab1 cor0
----
1
query I rowsort
SELECT ALL + cor0.col2 * col1 + col1 AS col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL - col2 * + col0 + + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 57 * col2 + + cor0.col1 col2 FROM tab0 cor0
----
-1795
-4583
40
query I rowsort
SELECT + - ( + cor0.col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col2 - col1 * + col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT ALL + col2 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT + + 55 + - col2 FROM tab1 AS cor0
----
-2
-41
1
query I rowsort
SELECT ALL + cor0.col0 + + cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0
query I rowsort
SELECT ( ( col1 ) ) * - col1 + + col2 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT tab2.col1 - 31 AS col2 FROM tab2
----
-14
0
28
query I rowsort
SELECT + 87 + + col0 FROM tab2
----
165
166
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + col0 * + tab1.col0 col0 FROM tab1
----
4136
49
6440
onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT ALL 27 DIV col2 FROM tab0 AS cor0
----
0
0
27
skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL 27 / col2 FROM tab0 AS cor0
----
0
0
27
query I rowsort
SELECT - + 65 * - col0 + col0 FROM tab1 AS cor0
----
198
4224
5280
query I rowsort
SELECT - col2 + + col1 * + col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL col0 * + ( col0 + col1 ) AS col0 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT + col2 - + ( 78 ) * + cor0.col2 FROM tab1 AS cor0
----
-4158
-4389
-7392
onlyif mysql # use DIV operator for integer division
query I rowsort label-2099
SELECT ALL - cor0.col2 DIV + 44 AS col2 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL - cor0.col2 / + 44 AS col2 FROM tab0 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col0 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT col0 + + col1 + col0 AS col1 FROM tab2
----
175
215
45
query I rowsort
SELECT DISTINCT + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col2 + 27 + + col1 AS col0 FROM tab0 AS cor0
----
125
146
200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT - 11 DIV col2 AS col2 FROM tab0
----
-11
0
0
skipif mysql # not compatible
query I rowsort label-2105
SELECT - 11 / col2 AS col2 FROM tab0
----
-11
0
0
query I rowsort
SELECT col1 * + col1 + col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
7458
8283
9471
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * 61 AS col2 FROM tab0 cor0
----
-1440
-2100
-5340
query I rowsort
SELECT + + cor0.col2 + + col1 * col2 + - col2 * col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col2 + - 40 * col1 AS col2 FROM tab1 AS cor0
----
-1094
-457
-616
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2110
SELECT + col2 + CAST( col0 AS SIGNED ) * + col0 + col2 FROM tab0 AS cor0
----
1227
642
8085
skipif mysql # not compatible
query I rowsort label-2110
SELECT + col2 + CAST ( col0 AS INTEGER ) * + col0 + col2 FROM tab0 AS cor0
----
1227
642
8085
query I rowsort
SELECT ALL - cor0.col2 * 62 FROM tab1 AS cor0
----
-3348
-3534
-5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT DISTINCT - col1 * 7 DIV col0 FROM tab2 AS cor0
----
-1
-31
-5
skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT - col1 * 7 / col0 FROM tab2 AS cor0
----
-1
-31
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT DISTINCT - 73 * col1 DIV - col2 + col2 * - col1 FROM tab0 AS cor0
----
-2648
-7381
6984
skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT - 73 * col1 / - col2 + col2 * - col1 FROM tab0 AS cor0
----
-2648
-7381
6984
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-2115
SELECT + + col0 DIV 7 FROM tab1 AS cor0
----
0
11
9
skipif mysql # not compatible
query I rowsort label-2115
SELECT + + col0 / 7 FROM tab1 AS cor0
----
0
11
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT DISTINCT 18 DIV col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT 18 / col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col0 * - col0 * col2 + col1 FROM tab0 AS cor0
----
-1128
-18922
-649431
query I rowsort
SELECT DISTINCT - 77 * col2 FROM tab1 cor0
----
-4158
-4389
-7392
query I rowsort
SELECT - ( 40 ) FROM tab0 AS cor0
----
-40
-40
-40
query I rowsort
SELECT ALL + tab0.col0 + ( - col0 ) FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 * - tab0.col1 + + col0 + + col1 FROM tab0
----
-7286
-8101
-9277
query I rowsort
SELECT - col0 * col1 + col0 AS col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT col0 + - tab1.col1 * - col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 AS col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT tab0.col0 + col2 * - col2 AS col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT + + cor0.col1 + col0 * col1 * col0 + cor0.col2 AS col0 FROM tab1 cor0
----
314
41027
83309
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 + col1 + col2 col0 FROM tab0
----
195
205
264
query I rowsort
SELECT col2 + col0 + col1 FROM tab0
----
133
143
262
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( col0 * + col0 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - col0 )
----
query I rowsort
SELECT ALL col2 + + col2 FROM tab0 WHERE NULL NOT IN ( + col1 )
----
query I rowsort
SELECT tab2.col0 * + col0 FROM tab2 WHERE NOT NULL < + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab0.col1 col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2134
SELECT ALL - cor0.col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL - cor0.col1 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + cor0.col0 + - col1 * - col2 AS col0 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT + - col1 + cor0.col0 * + col0 AS col1 FROM tab1 cor0
----
-17
4086
6387
query I rowsort
SELECT + tab2.col2 * + col1 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 * col2 * col0 AS col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT cor0.col1 + cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
106
122
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 - + cor0.col0 * col1 * - col1 col2 FROM tab2 AS cor0
----
22542
268037
5766
query I rowsort
SELECT DISTINCT - 56 + - col0 - - col2 * + col2 FROM tab0
----
-90
1009
6579
query I rowsort
SELECT DISTINCT - 42 * + col1 + - col0 FROM tab0 AS cor0
----
-3636
-3911
-4109
onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT ALL col2 * - col1 DIV - col1 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL col2 * - col1 / - col1 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - col0 + col0 * col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT tab1.col1 + tab1.col1 * col0 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT - - cor0.col2 + + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT + - col2 * - col2 + cor0.col1 * col0 FROM tab2 cor0
----
2787
5278
946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col0 col2 FROM tab0 cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT DISTINCT - col1 * col0 + col2 * + col0 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - col1 * col0 + col2 * + col0 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col2 FROM tab2, tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + col0 * - col0 - - col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT - + col1 * col0 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT - + col1 + + col0 + - col0 * + col1 FROM tab0 cor0
----
-2126
-3457
-8101
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 * cor0.col2 * - col0 col2 FROM tab2 AS cor0
----
-119711
-51051
-5890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2155
SELECT + ( col1 * - CAST( - col2 AS SIGNED ) ) + + col1 * + ( - col0 ) * - col2 + col1 FROM tab1
----
101101
37060
5642
skipif mysql # not compatible
query I rowsort label-2155
SELECT + ( col1 * - CAST ( - col2 AS INTEGER ) ) + + col1 * + ( - col0 ) * - col2 + col1 FROM tab1
----
101101
37060
5642
query I rowsort
SELECT - - col1 * col2 + + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col0 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL + 73 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + col2 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + cor0.col0 * cor0.col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT - + 52 * - col2 FROM tab2 AS cor0
----
1352
1404
1976
query I rowsort
SELECT + - 60 * col2 - + col1 AS col2 FROM tab1 cor0
----
-3266
-3430
-5773
query I rowsort
SELECT + - col0 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - 45 * col2 + ( - ( - col0 ) ) + col0 * + 90 FROM tab1 AS cor0
----
-2157
2960
3259
query I rowsort
SELECT - cor0.col1 + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + col2 col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + col1 * + col1 + col2 * - col0 FROM tab2 AS cor0
----
-2713
1453
772
query I rowsort
SELECT col2 * + ( col1 * + col2 ) + cor0.col0 FROM tab1 cor0
----
119888
32554
75819
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
query I rowsort
SELECT col1 * - ( cor0.col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col1 + - 59 FROM tab0 cor0
----
27
32
38
query I rowsort
SELECT 31 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1674
-1767
-2976
query I rowsort
SELECT + 69 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT - col2 * col1 * - col1 AS col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT DISTINCT ( - col0 ) + col1 * - 8 * + col2 FROM tab1
----
-10064
-11235
-4624
onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT ALL 62 DIV + 34 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL 62 / + 34 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL + - 85 AS col1 FROM tab2 cor0
----
-85
-85
-85
query I rowsort
SELECT + - col1 + cor0.col0 * 53 * col2 FROM tab1 AS cor0
----
193334
407027
8560
query I rowsort
SELECT ALL 94 * - col1 FROM tab2 AS cor0
----
-1598
-2914
-5546
query I rowsort
SELECT DISTINCT + - col0 * + col2 + col2 FROM tab1 cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT DISTINCT - 49 DIV cor0.col1 + 1 FROM tab2, tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT - 49 / cor0.col1 + 1 FROM tab2, tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) - tab2.col1 col1 FROM tab2
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT col0 DIV - col0 + col2 AS col2 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-2184
SELECT col0 / - col0 + col2 AS col2 FROM tab2
----
25
26
37
query I rowsort
SELECT tab0.col0 * col2 * + col2 + col1 * - col1 * col2 AS col2 FROM tab0
----
-217932
-80606
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * col0 * col1 - - 74 col0 FROM tab2
----
-119578
-50960
-5785
query I rowsort
SELECT ALL 34 + + col1 FROM tab1 AS cor0
----
44
47
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2188
SELECT + - col1 * + col0 - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-2188
SELECT + - col1 * + col0 - col0 / col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 26 + col2 FROM tab2
----
52
53
64
query I rowsort
SELECT ALL + 1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - cor0.col1 ) col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - col2 + col0 + 55 AS col1 FROM tab1 AS cor0
----
39
4
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT cor0.col2 DIV + CAST( 55 AS SIGNED ) + col0 col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2193
SELECT cor0.col2 / + CAST ( 55 AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col2 * - ( + 69 ) FROM tab1 AS cor0
----
-3726
-3933
-6624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + + cor0.col0 col2 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT ALL tab2.col1 + + 73 AS col0 FROM tab2
----
104
132
90
query I rowsort
SELECT ALL + 24 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT col2 + cor0.col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-2198
SELECT col2 + cor0.col1 / + col1 AS col2 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 98 col0 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT col2 + 24 FROM tab2 cor0
----
50
51
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2201
SELECT CAST( 80 * cor0.col2 AS SIGNED ) FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to f515d9c8a268d6963f99405785466cbb
skipif mysql # not compatible
query I rowsort label-2201
SELECT CAST ( 80 * cor0.col2 AS INTEGER ) FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to f515d9c8a268d6963f99405785466cbb
query I rowsort
SELECT ALL + 54 + col2 * col2 + + col1 * col0 FROM tab2 AS cor0
----
1000
2841
5332
query I rowsort
SELECT DISTINCT col2 + - 73 * col0 FROM tab2 AS cor0
----
-484
-5668
-5729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * - cor0.col0 * col2 col1 FROM tab1 AS cor0
----
116736
245760
5184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2205
SELECT + - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2205
SELECT + - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 cor2, tab1
----
13122 values hashing to 6ef261ddcaf76232f0cc2b090c6278a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2207
SELECT ALL + col2 + + CAST( - col0 * - col1 AS SIGNED ) FROM tab2
----
1381
244
4628
skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL + col2 + + CAST ( - col0 * - col1 AS INTEGER ) FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL 29 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL + + 76 * col1 + - col1 FROM tab1 AS cor0
----
1950
750
975
query I rowsort
SELECT ALL col2 + + tab0.col2 * - col1 AS col2 FROM tab0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2211
SELECT tab1.col1 * + 39 + col1 DIV col0 FROM tab1
----
1022
390
507
skipif mysql # not compatible
query I rowsort label-2211
SELECT tab1.col1 * + 39 + col1 / col0 FROM tab1
----
1022
390
507
query I rowsort
SELECT DISTINCT - col1 + - 14 * + col2 AS col1 FROM tab0
----
-111
-1239
-548
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 + - col0 ) col1 FROM tab0
----
0
query I rowsort
SELECT ALL - ( col1 ) * cor0.col2 * 72 AS col0 FROM tab2 AS cor0
----
-110448
-46512
-60264
query I rowsort
SELECT 94 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
onlyif mysql # use DIV operator for integer division
query I rowsort label-2216
SELECT ALL - 50 DIV - cor0.col0 FROM tab1 AS cor0
----
0
0
16
skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - 50 / - cor0.col0 FROM tab1 AS cor0
----
0
0
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2217
SELECT CAST( NULL AS SIGNED ) + col0 * - col0 / + 17 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2217
SELECT CAST ( NULL AS INTEGER ) + col0 * - col0 / + 17 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 51 * - tab2.col2 FROM tab2
----
1326
1377
1938
query I rowsort
SELECT ALL cor1.col1 + - ( 13 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eb97be51a4d08ab176a836b802540be7
query I rowsort
SELECT DISTINCT + 77 + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1611
723
914
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2221
SELECT ALL + CAST( NULL AS SIGNED ) + 93 * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + CAST ( NULL AS INTEGER ) + 93 * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + col0 + - col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - 88 - col0 * 66 AS col2 FROM tab1
----
-286
-4312
-5368
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2224
SELECT DISTINCT - ( col2 ) * - CAST( NULL AS SIGNED ) + 87 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT - ( col2 ) * - CAST ( NULL AS INTEGER ) + 87 AS col1 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2225
SELECT DISTINCT + col0 * col1 + + CAST( NULL AS SIGNED ) * - 97 AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + col0 * col1 + + CAST ( NULL AS INTEGER ) * - 97 AS col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + + 50 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT DISTINCT - col0 + + col2 * col2 * 35 FROM tab0 AS cor0
----
0
235251
38091
query I rowsort
SELECT DISTINCT 50 * col2 AS col1 FROM tab2 cor0
----
1300
1350
1900
query I rowsort
SELECT ALL + col1 + col0 + 45 * col2 * - col1 FROM tab2 AS cor0
----
-28974
-37627
-68893
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2230
SELECT - cor0.col2 * - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2230
SELECT - cor0.col2 * - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * - col2 * + col1 + col0 AS col0 FROM tab0 cor0
----
-244044
-678953
-9374
query I rowsort
SELECT col1 + 43 FROM tab2 AS cor0
----
102
60
74
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
113
196
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2234
SELECT ALL - col0 + CAST( - 27 * col0 + ( - 35 ) AS SIGNED ) FROM tab0 AS cor0
----
-1015
-2527
-707
skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL - col0 + CAST ( - 27 * col0 + ( - 35 ) AS INTEGER ) FROM tab0 AS cor0
----
-1015
-2527
-707
query I rowsort
SELECT ALL - cor0.col2 * 12 + col0 + - col1 FROM tab0 AS cor0
----
-458
-74
-986
query I rowsort
SELECT ALL + col2 - ( + cor0.col0 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - col0 * + 43 + - cor0.col0 AS col0 FROM tab0 cor0
----
-1056
-1540
-3916
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * col0 FROM tab2 cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - ( 17 ) col0 FROM tab0 AS cor0
----
103
108
114
query I rowsort
SELECT - - col1 - - col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + col0 * - 81 + + col1 FROM tab0 AS cor0
----
-1858
-2738
-7118
query I rowsort
SELECT DISTINCT + col0 * col2 + + col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT - col1 + + ( ( + col2 ) ) DIV 76 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-2243
SELECT - col1 + + ( ( + col2 ) ) / 76 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2244
SELECT DISTINCT + + col1 + - col2 DIV col0 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT + + col1 + - col2 / col0 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT DISTINCT tab2.col2 * - 63 FROM tab2
----
-1638
-1701
-2394
onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT + col1 DIV + 10 FROM tab2
----
1
3
5
skipif mysql # not compatible
query I rowsort label-2246
SELECT + col1 / + 10 FROM tab2
----
1
3
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2247
SELECT + tab2.col1 * + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2247
SELECT + tab2.col1 * + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NOT ( NULL ) <= NULL
----
query I rowsort
SELECT ALL + col1 + + col1 + col2 AS col2 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT ( + cor0.col1 ) * - col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + 53 * 47 * + col1 + 57 * - ( cor0.col1 + + 67 * ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-23545
-42935
-81715
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2252
SELECT + CAST( NULL AS SIGNED ) + col1 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2252
SELECT + CAST ( NULL AS INTEGER ) + col1 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 9 * - 89 + col0 FROM tab1 AS cor0
----
804
865
881
query I rowsort
SELECT col1 * + ( - col2 ) FROM tab2
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2255
SELECT col1 * CAST( col0 * - col2 AS SIGNED ) FROM tab2
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-2255
SELECT col1 * CAST ( col0 * - col2 AS INTEGER ) FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + - cor0.col0 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ( - col0 ) + ( + col2 ) * col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT + ( col1 ) * ( col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2259
SELECT DISTINCT - col2 DIV - col2 + + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT - col2 / - col2 + + col0 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + col0 col0 FROM tab2
----
134
135
63
query I rowsort
SELECT tab1.col1 * - col0 + col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT 95 * col2 FROM tab1 AS cor0
----
5130
5415
9120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2263
SELECT + + col2 + - CAST( col0 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif mysql # not compatible
query I rowsort label-2263
SELECT + + col2 + - CAST ( col0 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT + cor0.col0 + col1 DIV + 75 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-2264
SELECT + cor0.col0 + col1 / + 75 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - - ( - 68 ) * cor0.col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22be58c8ac2c049b044e2a620bec3ba5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2266
SELECT 22 DIV - 56 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2266
SELECT 22 / - 56 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + 45 FROM tab0, tab1 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 95 ) col0 FROM tab0
----
95
95
95
query I rowsort
SELECT - 29 - col2 AS col2 FROM tab2 AS cor0
----
-55
-56
-67
query I rowsort
SELECT col0 * - col0 * col0 AS col1 FROM tab2
----
-343
-474552
-493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-2271
SELECT - ( col1 + - col2 ) DIV 54 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2271
SELECT - ( col1 + - col2 ) / 54 FROM tab1
----
0
0
1
query I rowsort
SELECT - cor1.col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT + col1 + col2 * 76 * col2 FROM tab1
----
221642
246934
700429
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2274
SELECT - + 61 * - col0 + + CAST( 80 AS SIGNED ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
289
3994
4973
skipif mysql # not compatible
query I rowsort label-2274
SELECT - + 61 * - col0 + + CAST ( 80 AS INTEGER ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
289
3994
4973
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2275
SELECT DISTINCT - col1 * - col0 + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
2088
3430
8188
skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT - col1 * - col0 + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT DISTINCT + col2 + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT + col2 + col0 / + col0 AS col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT - + col0 * col1 * 81 - col2 AS col0 FROM tab0 AS cor0
----
-167217
-274996
-656101
onlyif mysql # use DIV operator for integer division
query I rowsort label-2278
SELECT - 94 + cor0.col0 DIV + ( col2 ) + + col2 * + 84 AS col0 FROM tab1 AS cor0
----
4442
4695
7970
skipif mysql # not compatible
query I rowsort label-2278
SELECT - 94 + cor0.col0 / + ( col2 ) + + col2 * + 84 AS col0 FROM tab1 AS cor0
----
4442
4695
7970
query I rowsort
SELECT 26 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ALL col2 * - ( 1 ) * - col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col1 * - 93 AS col2 FROM tab0 AS cor0
----
7998
8463
9021
query I rowsort
SELECT + - col1 + - 96 AS col0 FROM tab2 AS cor0
----
-113
-127
-155
query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab1, tab0 AS cor0
----
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2284
SELECT tab0.col2 + CAST( - col1 AS SIGNED ) FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-2284
SELECT tab0.col2 + CAST ( - col1 AS INTEGER ) FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) * col2 AS col1 FROM tab2
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2286
SELECT + CAST( col1 AS SIGNED ) FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2286
SELECT + CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2287
SELECT DISTINCT CAST( cor1.col1 AS SIGNED ) DIV - cor2.col0 FROM tab1, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT CAST ( cor1.col1 AS INTEGER ) / - cor2.col0 FROM tab1, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
-1
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2288
SELECT DISTINCT + col0 * + cor0.col2 + + cor0.col2 * - ( cor0.col0 * - col2 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT + col0 * + cor0.col2 + + cor0.col2 * - ( cor0.col0 * - col2 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + - 9 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
774
819
873
query I rowsort
SELECT + col0 * cor0.col1 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col0 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - + 92 FROM tab1 cor0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT 16 * - col2 AS col2 FROM tab2 cor0
----
-416
-432
-608
query I rowsort
SELECT ALL 56 + + col2 * + col2 * col2 FROM tab2 AS cor0
----
17632
19739
54928
query I rowsort
SELECT DISTINCT + - ( - ( - col0 ) ) * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2297
SELECT ALL - CAST( col0 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL - CAST ( col0 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + ( 37 ) FROM tab1 AS cor0
----
37
37
37
query I rowsort
SELECT + col2 + 6 FROM tab0 cor0
----
39
7
88
query I rowsort
SELECT ALL + + col2 * col0 + + col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT DISTINCT col1 + cor0.col2 DIV col1 AS col2 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT col1 + cor0.col2 / col1 AS col2 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT DISTINCT - col1 + - 26 AS col0 FROM tab2 cor0
----
-43
-57
-85
query I rowsort
SELECT DISTINCT + + col2 * - 74 FROM tab1 AS cor0
----
-3996
-4218
-7104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2304
SELECT - col2 + CAST( NULL AS SIGNED ) + + cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2304
SELECT - col2 + CAST ( NULL AS INTEGER ) + + cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + ( + ( - col2 ) ) * col0 + + col2 * + col1 FROM tab2 AS cor0
----
-2339
-435
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-2306
SELECT + col0 DIV - 78 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2306
SELECT + col0 / - 78 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - 24 * + col2 AS col0 FROM tab2
----
-624
-648
-912
query I rowsort
SELECT col1 + + 15 * col0 AS col2 FROM tab2
----
1202
1229
136
query I rowsort
SELECT col1 + 99 AS col1 FROM tab2
----
116
130
158
query I rowsort
SELECT DISTINCT col2 + ( - col2 + col0 ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - col0 * + 3 * - 87 + col1 FROM tab1 AS cor0
----
16714
20893
809
query I rowsort
SELECT + 87 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT + 54 * cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 08ffc5e1d45702513f859faaccb573d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT col0 + - 27 DIV col1 FROM tab2
----
7
78
78
skipif mysql # not compatible
query I rowsort label-2315
SELECT col0 + - 27 / col1 FROM tab2
----
7
78
78
query I rowsort
SELECT + tab0.col1 + + col0 * - ( + col2 ) FROM tab0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT col0 + - col0 DIV col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-2317
SELECT col0 + - col0 / col0 FROM tab2
----
6
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT + 46 * - cor0.col2 - cor0.col1 DIV col2 FROM tab1 AS cor0
----
-2484
-2622
-4416
skipif mysql # not compatible
query I rowsort label-2318
SELECT + 46 * - cor0.col2 - cor0.col1 / col2 FROM tab1 AS cor0
----
-2484
-2622
-4416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2319
SELECT DISTINCT - col1 * col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT - col1 * col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - 98 - col2 FROM tab1 cor0
----
2
41
44
query I rowsort
SELECT ALL 33 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT - 15 + col0 AS col1 FROM tab0
----
20
74
9
query I rowsort
SELECT DISTINCT 66 + - col1 FROM tab0
----
-20
-25
-31
query I rowsort
SELECT 80 + + 41 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to caef24c3af92e31c3c63f6930ea05b46
onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT DISTINCT 22 DIV + col1 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT 22 / + col1 FROM tab2
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + + col1 * - 65 * + col2 + col0 col0 FROM tab1 cor0
----
-37556
-82288
-92661
query I rowsort
SELECT ALL + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col2 + + col0 col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT col2 + - col1 * col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT 89 + + col2 AS col0 FROM tab1
----
143
146
185
query I rowsort
SELECT - tab1.col1 * col2 * - col2 AS col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT col2 - - ( 48 * col0 ) AS col1 FROM tab1
----
198
3129
3936
query I rowsort
SELECT - col1 + col0 * + col0 AS col2 FROM tab2
----
18
6025
6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT DISTINCT + tab0.col2 DIV 65 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT + tab0.col2 / 65 FROM tab0
----
0
1
query I rowsort
SELECT ALL 18 - + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a7f75b0a84f7287912ba7b770693785b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2336
SELECT DISTINCT + CAST( - col1 AS SIGNED ) - col0 * + col2 AS col2 FROM tab2 cor0
----
-2087
-220
-3019
skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) - col0 * + col2 AS col2 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT 38 * 97 + - col2 FROM tab2 AS cor0
----
3648
3659
3660
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2338
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - 66 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT + col1 * - col2 + + 44 FROM tab1
----
-1204
-1360
-526
onlyif mysql # use DIV operator for integer division
query I rowsort label-2341
SELECT ALL - 30 DIV + cor0.col2 + 9 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95856dbb9c464835459cc5bf5391faac
skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL - 30 / + cor0.col2 + 9 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95856dbb9c464835459cc5bf5391faac
query I rowsort
SELECT ALL - 26 * + col2 FROM tab0
----
-2132
-26
-858
query I rowsort
SELECT DISTINCT + 76 * - col0 + col0 FROM tab0 AS cor0
----
-1800
-2625
-6675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2344
SELECT + - CAST( - col1 AS SIGNED ) * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-2344
SELECT + - CAST ( - col1 AS INTEGER ) * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2, tab1 cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT DISTINCT - 46 * - ( + col2 ) AS col2 FROM tab0 AS cor0
----
1518
3772
46
query I rowsort
SELECT + + 86 FROM tab1 cor0
----
86
86
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2348
SELECT ALL + CAST( 76 AS SIGNED ) * cor0.col2 * + col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
511106
77
82797
skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL + CAST ( 76 AS INTEGER ) * cor0.col2 * + col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
511106
77
82797
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col1 * - 96 FROM tab1 AS cor0
----
-1248
-2496
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT ALL - col1 DIV cor0.col1 + + col1 * - ( col0 + col0 ) FROM tab0 AS cor0
----
-16199
-4129
-6791
skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - col1 / cor0.col1 + + col1 * - ( col0 + col0 ) FROM tab0 AS cor0
----
-16199
-4129
-6791
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2352
SELECT DISTINCT + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col1 * 59 FROM tab1 AS cor0
----
-1534
-590
-767
query I rowsort
SELECT - - ( + ( - col2 ) ) * - col2 * col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + col2 * 61 FROM tab2 cor0
----
1586
1647
2318
query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - + col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2358
SELECT DISTINCT + col2 + col0 * - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + col2 + col0 * - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * cor0.col1 col1 FROM tab2 cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - 8 * - col2 FROM tab2 AS cor0
----
208
216
304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab2 cor0
----
42
42
42
query I rowsort
SELECT DISTINCT 75 * 99 FROM tab2
----
7425
query I rowsort
SELECT - col1 + - ( + ( col0 ) ) FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT ALL + + col1 + col2 DIV cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
21
27
53
skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + + col1 + col2 / cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
21
27
53
query I rowsort
SELECT DISTINCT - + col1 * 67 - - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1240
-2419
-493
query I rowsort
SELECT col1 * - 82 + - col1 * - col2 FROM tab1 AS cor0
----
-250
-728
182
query I rowsort
SELECT ALL col2 + + 74 AS col0 FROM tab2 AS cor0
----
100
101
112
query I rowsort
SELECT ALL + - col2 + col0 * - 15 AS col2 FROM tab1 AS cor0
----
-1017
-1296
-99
query I rowsort
SELECT col1 * 24 * + ( tab2.col2 ) FROM tab2
----
15504
20088
36816
query I rowsort
SELECT - col1 * + 61 AS col2 FROM tab0 AS cor0
----
-5246
-5551
-5917
onlyif mysql # use DIV operator for integer division
query I rowsort label-2372
SELECT DISTINCT - cor0.col1 DIV - cor0.col0 col2 FROM tab2 AS cor0
----
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT - cor0.col1 / - cor0.col0 col2 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT DISTINCT col2 + ( col1 ) * - col1 * + col2 - col1 * col2 FROM tab1 AS cor0
----
-17376
-37854
-6213
query I rowsort
SELECT DISTINCT cor0.col0 * - ( col0 * col1 ) AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT col2 * - 22 + col0 AS col2 FROM tab2 AS cor0
----
-494
-587
-757
query I rowsort
SELECT ALL col1 + 68 FROM tab1 AS cor0
----
78
81
94
query I rowsort
SELECT - 21 * cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
13566
17577
32214
query I rowsort
SELECT - col0 * col0 + + col0 AS col1 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT - 66 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2380
SELECT + - cor0.col1 * CAST( col1 + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1352
-200
-338
skipif mysql # not compatible
query I rowsort label-2380
SELECT + - cor0.col1 * CAST ( col1 + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1352
-200
-338
query I rowsort
SELECT cor0.col1 + ( - cor0.col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL + - col1 + - col1 AS col1 FROM tab2 cor0
----
-118
-34
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 50 col2 FROM tab1 AS cor0
----
150
3200
4000
query I rowsort
SELECT ALL - col0 * - tab2.col1 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL 74 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to 1751d8ec783486b9121baa2709745253
onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT + col1 + col1 DIV 35 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2387
SELECT + col1 + col1 / 35 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - col0 * 15 FROM tab0 AS cor0
----
1335
360
525
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col2 col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - + col2 * - col1 + + col0 * + col0 FROM tab0 cor0
----
1322
15383
3414
query I rowsort
SELECT - + col2 + - col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + tab0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT col1 * col1 * col1 + + 60 * col1 AS col0 FROM tab1
----
1600
19136
2977
onlyif mysql # use DIV operator for integer division
query I rowsort label-2394
SELECT ALL - col2 + col1 DIV 4 FROM tab0
----
-12
-60
23
skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - col2 + col1 / 4 FROM tab0
----
-12
-60
23
query I rowsort
SELECT - col1 + - col0 * + col2 AS col2 FROM tab0 cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 + cor0.col0 col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + 9 * - col2 AS col0 FROM tab2 cor0
----
-234
-243
-342
query I rowsort
SELECT ALL - ( col1 ) + - col1 AS col0 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - + ( - 18 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18
query I rowsort
SELECT - col1 * + 67 + + col0 + col2 FROM tab2 AS cor0
----
-1022
-2043
-3849
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + - col0 * col2 + - col2 col1 FROM tab0 AS cor0
----
-15479
-2889
-3431
query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab0
----
-67
query I rowsort
SELECT - - col2 - - cor0.col1 * col0 * - 10 AS col1 FROM tab2 AS cor0
----
-13392
-2143
-45994
query I rowsort
SELECT - 59 + + cor0.col1 FROM tab0 AS cor0
----
27
32
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + col0 + + 49 * col2 FROM tab1 cor0
----
2649
2857
4784
query I rowsort
SELECT - + col2 * - 35 - - col1 FROM tab1 cor0
----
1916
2005
3373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col1 * 38 col2 FROM tab0 AS cor0
----
3292
3547
3721
query I rowsort
SELECT - - col0 * - col0 + 41 FROM tab2 cor0
----
-6043
-6200
-8
query I rowsort
SELECT ALL + + 63 * + col2 FROM tab1 AS cor0
----
3402
3591
6048
query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 * - col2 * col1 AS col1 FROM tab1 cor0
----
-121056
-33060
-77220
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - - 15 + + cor0.col2 * + ( + col1 ) FROM tab1 AS cor0
----
1263
1419
585
query I rowsort
SELECT DISTINCT + - 95 AS col1 FROM tab2 AS cor0
----
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2417
SELECT DISTINCT + + col0 * col0 + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
6143
6258
80
skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT + + col0 * col0 + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL 76 - col1 FROM tab2
----
17
45
59
query I rowsort
SELECT DISTINCT - 62 - col1 * tab0.col1 AS col2 FROM tab0
----
-7458
-8343
-9471
query I rowsort
SELECT ALL - ( - 7 * col0 ) FROM tab2
----
49
546
553
query I rowsort
SELECT ALL - 3 FROM tab1, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT ALL + + cor0.col0 + ( col2 ) * col0 * col0 + - col0 * - col2 AS col1 FROM tab1 AS cor0
----
237184
622160
651
onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT DISTINCT + col1 * + CAST( - col0 AS SIGNED ) * - col0 + col2 DIV col2 FROM tab1 AS cor0
----
235
40961
83201
skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + col1 * + CAST ( - col0 AS INTEGER ) * - col0 + col2 / col2 FROM tab1 AS cor0
----
235
40961
83201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col2 + ( col1 ) AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL cor0.col1 * + col0 + 19 * + col2 AS col0 FROM tab0 AS cor0
----
2691
3414
9657
query I rowsort
SELECT DISTINCT + - col0 + ( - col1 + col0 ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT col0 * 23 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT + col0 - col2 * - col2 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + - 69 * + col0 + + col0 AS col1 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT ALL - cor0.col2 + + col0 + cor0.col2 * col1 FROM tab1 AS cor0
----
1232
1353
577
query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab0, tab0 AS cor0
----
-71
query I rowsort
SELECT ALL - col0 * col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + col0 * - 65 AS col1 FROM tab0 cor0
----
-1560
-2275
-5785
query I rowsort
SELECT - ( 63 ) + + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to bebc0abe8644b7e85fca610a70098c2f
query I rowsort
SELECT ALL - 81 * + col2 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT DISTINCT - col0 + col1 - - col0 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + ( - col1 ) * + ( - col1 + + col2 ) FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT DISTINCT - + ( - cor0.col2 ) * col2 * 90 FROM tab2 AS cor0
----
129960
60840
65610
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * - 88 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f5bfcc0c5822ce6604e3fa141a9f0dbf
query I rowsort
SELECT + col1 + col2 + + col1 AS col0 FROM tab1 AS cor0
----
106
122
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT DISTINCT 99 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-14
skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT 99 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-14
query I rowsort
SELECT ALL col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL 2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL ( + col1 + + 74 ) FROM tab0
----
160
165
171
query I rowsort
SELECT tab0.col0 * col0 + + ( 17 + - col2 ) AS col2 FROM tab0
----
1241
560
7856
query I rowsort
SELECT + col1 * + tab2.col1 + col0 FROM tab2
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT + + col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-2449
SELECT + + col1 / - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2450
SELECT + + col0 DIV - col1 col2 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2450
SELECT + + col0 / - col1 col2 FROM tab2 AS cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2451
SELECT ALL - 75 DIV - col2 AS col0 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL - 75 / - col2 AS col0 FROM tab1
----
0
1
1
query I rowsort
SELECT - ( - tab0.col2 ) * + col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT 44 * ( - col0 ) * col2 + col0 FROM tab0
----
-1505
-321023
-34824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col2 * col2 col0 FROM tab2
----
-1461
-735
-760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT - ( - 15 ) DIV col0 col1 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2455
SELECT - ( - 15 ) / col0 col1 FROM tab2
----
0
0
2
query I rowsort
SELECT ALL - col0 * + 38 + - col2 FROM tab1 cor0
----
-168
-2489
-3136
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - cor0.col0 AS REAL ) * col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT 48 * + 96 + + col2 + + col0 FROM tab0
----
4644
4665
4779
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3
64
80
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
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 + + col0 + - col0 col2 FROM tab2 AS cor0
----
-64
-64
-64
query I rowsort
SELECT 73 * - col2 + col2 AS col0 FROM tab1 AS cor0
----
-3888
-4104
-6912
onlyif mysql # use DIV operator for integer division
query I rowsort label-2463
SELECT - 7 DIV + col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2463
SELECT - 7 / + col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col0 + + col0 col2 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT - col0 * + col0 + + col0 * col2 FROM tab1 AS cor0
----
-448
1280
153
query I rowsort
SELECT 73 * col2 + - col2 - + col2 AS col1 FROM tab1 AS cor0
----
3834
4047
6816
query I rowsort
SELECT - tab0.col1 + 81 AS col1 FROM tab0
----
-10
-16
-5
query I rowsort
SELECT DISTINCT col2 * + col0 + col2 AS col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT 40 + col2 * + col2 AS col1 FROM tab1
----
2956
3289
9256
query I rowsort
SELECT DISTINCT + ( col2 ) AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL 58 - 68 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT ALL - + col0 * col2 + + 66 + - 23 AS col2 FROM tab1 AS cor0
----
-119
-3605
-7637
query I rowsort
SELECT ALL 38 + + cor0.col0 FROM tab0 AS cor0
----
127
62
73
query I rowsort
SELECT DISTINCT + + col2 * col1 + ( ( - col2 ) ) * + cor0.col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - ( - col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + 7 * - col2 AS col2 FROM tab0 AS cor0
----
-231
-574
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT ALL - + col2 DIV col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL - + col2 / col0 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT DISTINCT - col1 - cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT - col1 - cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT ALL + - 4 * col0 + - col2 FROM tab1 AS cor0
----
-313
-416
-66
query I rowsort
SELECT DISTINCT - 22 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
-156
-206
-569
query I rowsort
SELECT DISTINCT + + 31 + + col0 FROM tab1 AS cor0
----
111
34
95
query I rowsort
SELECT - + col0 + - col1 * 58 + - col2 FROM tab1 AS cor0
----
-1565
-701
-930
query I rowsort
SELECT + + col2 * col2 + + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL - col1 + + 11 FROM tab1 AS cor0
----
-15
-2
1
query I rowsort
SELECT - - col1 - col2 * + 98 FROM tab0 AS cor0
----
-1
-3148
-7945
onlyif mysql # use DIV operator for integer division
query I rowsort label-2487
SELECT + - col1 DIV 24 AS col2 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-2487
SELECT + - col1 / 24 AS col2 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT 13 * - col1 AS col2 FROM tab0
----
-1118
-1183
-1261
query I rowsort
SELECT - col2 + - 95 + col0 * cor0.col0 AS col0 FROM tab0 cor0
----
1129
448
7744
query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab1, tab1 cor0
----
-10
query I rowsort
SELECT ALL 86 + 47 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8f0ca4cf97de794a4b9271d695e9d991
query I rowsort
SELECT ALL - - ( cor1.col2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2493
SELECT ALL + CAST( col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + CAST ( col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2494
SELECT DISTINCT tab1.col2 DIV + col0 + - col2 FROM tab1
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT tab1.col2 / + col0 + - col2 FROM tab1
----
-36
-57
-95
query I rowsort
SELECT - - col1 + - 97 AS col1 FROM tab1 AS cor0
----
-71
-84
-87
query I rowsort
SELECT ALL + 53 * cor0.col0 AS col0 FROM tab2 AS cor0
----
371
4134
4187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col1 col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2498
SELECT - ( + 44 ) DIV + col0 - col0 AS col1 FROM tab1 cor0
----
-17
-64
-80
skipif mysql # not compatible
query I rowsort label-2498
SELECT - ( + 44 ) / + col0 - col0 AS col1 FROM tab1 cor0
----
-17
-64
-80
query I rowsort
SELECT col0 + - col1 + col1 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col0 ) col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 81 - col1 FROM tab2 AS cor0
----
22
50
64
query I rowsort
SELECT DISTINCT - ( - col2 ) + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - - 88 AS col1 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT DISTINCT + 21 * 95 + col1 * 17 FROM tab0 AS cor0
----
3457
3542
3644
query I rowsort
SELECT ALL - + 1 + col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT ALL col2 - ( - col2 ) AS col2 FROM tab0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 98 + col1 col1 FROM tab1
----
165
178
207
query I rowsort
SELECT ALL 25 + + 93 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6b4d3df0dcb1d629d28745add31be2b9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2509
SELECT ALL - col1 + - CAST( col1 AS SIGNED ) FROM tab2
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - col1 + - CAST ( col1 AS INTEGER ) FROM tab2
----
-118
-34
-62
query I rowsort
SELECT DISTINCT col1 * col0 - + col2 * col2 FROM tab1
----
-2609
-2838
-8176
query I rowsort
SELECT ALL col2 * + col1 + 42 - tab2.col2 AS col2 FROM tab2
----
1550
650
852
query I rowsort
SELECT ALL col1 * - col1 - col2 AS col2 FROM tab0
----
-7429
-8363
-9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 * tab1.col2 col1 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ( col0 ) - col0 * 37 AS col0 FROM tab0
----
-1260
-3204
-864
query I rowsort
SELECT DISTINCT - 86 + - col0 * - col0 AS col1 FROM tab2 cor0
----
-37
5998
6155
query I rowsort
SELECT ALL + col0 + col2 * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - - 64 * - col2 FROM tab2 AS cor0
----
-1664
-1728
-2432
query I rowsort
SELECT - tab2.col0 * col1 + + col1 * + col0 + ( col1 ) FROM tab2
----
17
31
59
query I rowsort
SELECT ALL - 31 + col0 FROM tab0 AS cor0
----
-7
4
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2520
SELECT + CAST( NULL AS SIGNED ) * - col1 + col0 * - col0 * col2 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2520
SELECT + CAST ( NULL AS INTEGER ) * - col1 + col0 * - col0 * col2 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 31 * col2 AS col2 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT DISTINCT + - 5 + + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2069
-3400
-8104
query I rowsort
SELECT 80 + - col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-6004
-6161
31
query I rowsort
SELECT - ( col1 * col0 + col0 ) FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT 32 + tab1.col1 FROM tab1
----
42
45
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * col0 col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT 70 + - 29 FROM tab0, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT col2 + - ( + 14 ) AS col0 FROM tab1 AS cor0
----
40
43
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT ALL + col1 + CAST( + 24 + - col0 AS SIGNED ) DIV + ( col0 ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + col1 + CAST ( + 24 + - col0 AS INTEGER ) / + ( col0 ) FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col2 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab1, tab1 AS cor0
----
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2532
SELECT DISTINCT col1 + + 58 DIV col1 AS col0 FROM tab2 AS cor0
----
20
32
59
skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT col1 + + 58 / col1 AS col0 FROM tab2 AS cor0
----
20
32
59
query I rowsort
SELECT ALL - col2 + + 43 * - col1 AS col0 FROM tab0 AS cor0
----
-3731
-3995
-4172
query I rowsort
SELECT ALL - - col0 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - + col1 - + cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + col0 * - col1 + cor0.col2 * 49 AS col1 FROM tab0 AS cor0
----
-3346
-4081
-447
query I rowsort
SELECT DISTINCT - 10 * col1 FROM tab1 cor0
----
-100
-130
-260
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col1 FROM tab1, tab2 AS cor0
----
55
query I rowsort
SELECT ALL 47 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) * col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + 54 * col1 FROM tab0
----
4644
4914
5238
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) + - col1 col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - 95 + col0 AS col1 FROM tab1
----
-15
-31
-92
query I rowsort
SELECT col0 + col0 * - tab0.col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - - 69 * col0 FROM tab1 AS cor0
----
207
4416
5520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col0 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
query I rowsort
SELECT + col1 + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - + col0 + + 22 * col1 AS col0 FROM tab0 AS cor0
----
1868
1913
2099
query I rowsort
SELECT DISTINCT - ( 25 ) * + col0 + col2 FROM tab2 AS cor0
----
-148
-1924
-1937
query I rowsort
SELECT col0 * col0 * - col1 + + 64 AS col1 FROM tab2 AS cor0
----
-106033
-1455
-358892
onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT ALL + + 32 - - 16 * col1 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
48
76
89
skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + + 32 - - 16 * col1 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
48
76
89
query I rowsort
SELECT ALL - + ( - col1 ) - + col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 42 + + cor0.col2 FROM tab1 AS cor0
----
138
96
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT col0 * - col1 + - 94 FROM tab0 AS cor0
----
-2158
-3489
-8193
query I rowsort
SELECT DISTINCT - - col1 - + col2 * 72 FROM tab0 AS cor0
----
-2290
-5813
25
query I rowsort
SELECT + cor0.col1 * - col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 95 * + cor0.col0 + + 96 FROM tab2 AS cor0
----
-569
-7314
-7409
query I rowsort
SELECT DISTINCT - col1 + + col1 * 76 FROM tab0 AS cor0
----
6450
6825
7275
onlyif mysql # use DIV operator for integer division
query I rowsort label-2561
SELECT DISTINCT 30 * col2 DIV col1 + + col1 + col2 FROM tab0 AS cor0
----
130
200
98
skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT 30 * col2 / col1 + + col1 + col2 FROM tab0 AS cor0
----
130
200
98
query I rowsort
SELECT ALL 90 + col1 AS col0 FROM tab1
----
100
103
116
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2563
SELECT col1 * tab2.col2 + - col2 * CAST( NULL AS SIGNED ) * tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2563
SELECT col1 * tab2.col2 + - col2 * CAST ( NULL AS INTEGER ) * tab2.col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - ( tab2.col0 ) + + tab2.col1 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT col2 * tab0.col2 + col2 FROM tab0
----
1122
2
6806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2566
SELECT ALL - CAST( col0 AS SIGNED ) * col0 + + 58 * - col0 AS col1 FROM tab0
----
-13083
-1968
-3255
skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - CAST ( col0 AS INTEGER ) * col0 + + 58 * - col0 AS col1 FROM tab0
----
-13083
-1968
-3255
query I rowsort
SELECT + 24 + cor0.col2 FROM tab2 AS cor0
----
50
51
62
query I rowsort
SELECT - col1 * - col2 * col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - 87 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT - 50 + col2 FROM tab0 AS cor0
----
-17
-49
32
query I rowsort
SELECT + col0 * 97 + - col1 + col2 FROM tab0 cor0
----
2275
3299
8624
query I rowsort
SELECT + + col1 + ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL 28 * col0 FROM tab0
----
2492
672
980
query I rowsort
SELECT DISTINCT 36 * + col1 FROM tab1
----
360
468
936
query I rowsort
SELECT cor0.col2 * col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col2 - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT 79 * col1 FROM tab2 AS cor0
----
1343
2449
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-2578
SELECT - + col0 - col1 * col2 DIV col0 FROM tab1 AS cor0
----
-471
-72
-95
skipif mysql # not compatible
query I rowsort label-2578
SELECT - + col0 - col1 * col2 / col0 FROM tab1 AS cor0
----
-471
-72
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-2579
SELECT ALL - col1 DIV 57 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - col1 / 57 AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL + 47 AS col0 FROM tab2
----
47
47
47
query I rowsort
SELECT ALL 83 * - col2 + + col2 FROM tab1
----
-4428
-4674
-7872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 23 col1 FROM tab2
----
40
54
82
query I rowsort
SELECT ALL 56 AS col1 FROM tab2 cor0
----
56
56
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2584
SELECT CAST( NULL AS DECIMAL ) * + col0 + + cor0.col0 * - col0 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2584
SELECT CAST ( NULL AS REAL ) * + col0 + + cor0.col0 * - col0 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 * + col0 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - col2 * + 37 AS col1 FROM tab1 AS cor0
----
-1998
-2109
-3552
query I rowsort
SELECT + - col2 * col1 - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT - 53 * - col0 AS col2 FROM tab1
----
159
3392
4240
query I rowsort
SELECT ALL ( 12 ) FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT DISTINCT + + 64 FROM tab0 AS cor0
----
64
query I rowsort
SELECT 94 * + col2 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE col0 / col0 <> ( + col0 )
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2593
SELECT ALL - tab0.col1 DIV - tab0.col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - tab0.col1 / - tab0.col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NULL NOT IN ( col1 / col1 + col2 / col0 )
----
query I rowsort
SELECT col0 + + col0 FROM tab1 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT - col2 - + col2 AS col1 FROM tab0
----
-164
-2
-66
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT col2 DIV cor0.col0 + - col2 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-2598
SELECT col2 / cor0.col0 + - col2 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT DISTINCT - col0 * tab2.col1 * col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL <> ( + col1 - + col2 * col0 )
----
query I rowsort
SELECT col1 + + col0 * - col1 + + col2 FROM tab2
----
-1288
-159
-4517
query I rowsort
SELECT ALL + col2 * col1 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) NOT BETWEEN ( + tab2.col1 + col2 ) AND NULL
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT + col1 * + col0 + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT ALL + tab0.col2 * tab0.col1 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + col1 * + col1 - - col0 * + col0 AS col1 FROM tab0
----
10634
16202
7972
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2
----
query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT IN ( tab0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 - - col0 * - tab0.col2 col2 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT - col0 + + col1 * - col1 + - col1 AS col2 FROM tab2 cor0
----
-3618
-385
-999
query I rowsort
SELECT ALL - col1 + + col1 + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT tab1.col1 + + cor0.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 84399571d569498a87883affc46a156a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - col1 * + col2 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-10903
-25940
-90428
query I rowsort
SELECT cor0.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE col1 = + col1
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT DISTINCT cor0.col2 * + ( col1 ) * + col1 - col1 DIV - col1 FROM tab2 cor0
----
10983
25948
90507
skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT cor0.col2 * + ( col1 ) * + col1 - col1 / - col1 FROM tab2 cor0
----
10983
25948
90507
query I rowsort
SELECT - cor0.col2 * + ( col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col1 + ( 28 ) AS col0 FROM tab1 AS cor0
----
38
41
54
query I rowsort
SELECT ALL - col1 * 24 AS col0 FROM tab2 AS cor0
----
-1416
-408
-744
query I rowsort
SELECT DISTINCT col0 * + ( + 7 * - col2 ) AS col1 FROM tab2 AS cor0
----
-1323
-14196
-21014
query I rowsort
SELECT col0 * - 61 AS col0 FROM tab2 AS cor0
----
-427
-4758
-4819
query I rowsort
SELECT ALL col0 * 28 AS col2 FROM tab2 AS cor0
----
196
2184
2212
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2626
SELECT DISTINCT + col0 + CAST( 45 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
134
69
80
skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + col0 + CAST ( 45 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
134
69
80
query I rowsort
SELECT cor0.col2 * cor0.col1 + - 92 AS col2 FROM tab1 cor0
----
1156
1312
478
query I rowsort
SELECT ALL + + col2 * - 94 AS col1 FROM tab2 AS cor0
----
-2444
-2538
-3572
onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT - + cor0.col2 DIV col0 col0 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2629
SELECT - + cor0.col2 / col0 col0 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT DISTINCT col2 DIV col2 - + col2 DIV - tab1.col2 AS col2 FROM tab1
----
2
skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT col2 / col2 - + col2 / - tab1.col2 AS col2 FROM tab1
----
2
query I rowsort
SELECT DISTINCT + + 79 AS col0 FROM tab1 AS cor0
----
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2632
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2632
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col0 * - 45 FROM tab0 AS cor0
----
1080
1575
4005
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 * cor0.col0 col0 FROM tab1 cor0
----
-126
-2688
-3360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col2 + - col1 + col0 col2 FROM tab2 AS cor0
----
-1382
-657
-753
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab1 AS cor0
----
-39
-39
-39
query I rowsort
SELECT ALL col1 * col0 - col2 * col1 AS col1 FROM tab0
----
-774
3298
637
query I rowsort
SELECT DISTINCT - tab2.col0 + - col0 AS col1 FROM tab2 WHERE NULL IN ( col2 )
----
query I rowsort
SELECT ALL col2 * col1 * tab2.col0 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT col1 * + col0 * - tab1.col0 AS col2 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT - col0 + + col1 + col2 AS col2 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT + 60 + - col1 FROM tab1 AS cor0
----
34
47
50
query I rowsort
SELECT DISTINCT 6 * col2 + - col1 AS col1 FROM tab0 cor0
----
-91
112
401
query I rowsort
SELECT - - 76 + - col0 + - cor0.col1 AS col1 FROM tab2 cor0
----
-20
-61
38
query I rowsort
SELECT ALL - - 44 + col1 * col2 FROM tab0 AS cor0
----
141
2882
7506
query I rowsort
SELECT ALL - - 50 * 73 AS col0 FROM tab1 AS cor0
----
3650
3650
3650
query I rowsort
SELECT - + 76 AS col2 FROM tab1 AS cor0
----
-76
-76
-76
query I rowsort
SELECT ALL col2 + + col2 + - col2 FROM tab2
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2650
SELECT + CAST( NULL AS SIGNED ) * col1 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2650
SELECT + CAST ( NULL AS INTEGER ) * col1 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - tab0.col2 + 64 FROM tab0
----
-18
31
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * - col1 + - ( + col0 ) * col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + 42 * - col1 AS col0 FROM tab2
----
-1302
-2478
-714
query I rowsort
SELECT ALL - 43 * - col2 * - cor0.col2 FROM tab1 AS cor0
----
-125388
-139707
-396288
onlyif mysql # use DIV operator for integer division
query I rowsort label-2655
SELECT DISTINCT - 89 * 14 DIV + col0 col1 FROM tab0 AS cor0
----
-14
-35
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - 89 * 14 / + col0 col1 FROM tab0 AS cor0
----
-14
-35
-51
query I rowsort
SELECT col2 * ( col1 * - col0 + col0 ) FROM tab2 AS cor0
----
-117624
-48032
-5670
query I rowsort
SELECT - + 59 AS col1 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT ALL - - 97 * - col2 * ( + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-18333
-196716
-291194
query I rowsort
SELECT DISTINCT cor0.col0 + 34 FROM tab1, tab1 cor0
----
114
37
98
query I rowsort
SELECT + col1 + cor0.col1 * + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT - col2 + + ( 59 ) * - cor0.col0 * - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
11124
119626
177080
onlyif mysql # use DIV operator for integer division
query I rowsort label-2662
SELECT - col1 + 20 DIV col1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-2662
SELECT - col1 + 20 / col1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab0, tab0 AS cor0
----
28
query I rowsort
SELECT + + col2 + + 31 AS col2 FROM tab2 AS cor0
----
57
58
69
query I rowsort
SELECT + + col0 * - 44 + + 53 * + col2 + 46 * 31 AS col0 FROM tab2 AS cor0
----
-36
-628
2549
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2666
SELECT + - col2 + + CAST( + col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-4
35
92
skipif mysql # not compatible
query I rowsort label-2666
SELECT + - col2 + + CAST ( + col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-4
35
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2667
SELECT + + col1 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2667
SELECT + + col1 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 76 * col0 - + col1 FROM tab2 cor0
----
501
5869
5987
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2669
SELECT - ( 54 ) - - col2 * + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1194
1350
516
skipif mysql # not compatible
query I rowsort label-2669
SELECT - ( 54 ) - - col2 * + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1194
1350
516
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2670
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col2 FROM tab2 AS cor0
----
-45
-45
-45
query I rowsort
SELECT DISTINCT col2 + 49 AS col2 FROM tab0
----
131
50
82
query I rowsort
SELECT ALL + 98 + + col1 * - col2 AS col1 FROM tab1 cor0
----
-1150
-1306
-472
query I rowsort
SELECT - + 38 + + col2 + col2 AS col2 FROM tab1 AS cor0
----
154
70
76
query I rowsort
SELECT + 25 + cor0.col0 + col0 * - 62 AS col0 FROM tab2 AS cor0
----
-402
-4733
-4794
query I rowsort
SELECT ALL - col0 * - cor0.col1 * - col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - col0 + - col2 * + 89 * + 1 AS col1 FROM tab1 AS cor0
----
-4809
-5137
-8624
query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
69
query I rowsort
SELECT - + ( col1 ) * 16 AS col2 FROM tab1 AS cor0
----
-160
-208
-416
query I rowsort
SELECT - 25 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT ALL + 81 * - col1 + col1 FROM tab0 cor0
----
-6880
-7280
-7760
query I rowsort
SELECT ALL + + 59 + col0 FROM tab2 AS cor0
----
137
138
66
query I rowsort
SELECT DISTINCT 40 + - cor0.col0 * 98 * + cor0.col1 FROM tab1 AS cor0
----
-101880
-62680
-7604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - + col0 col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - col1 + - col2 * ( + 68 ) * + col1 FROM tab2 AS cor0
----
-104371
-43945
-56947
query I rowsort
SELECT + + col0 - - col1 * 35 AS col0 FROM tab0 AS cor0
----
3034
3274
3430
query I rowsort
SELECT ALL - 58 AS col2 FROM tab0 cor0
----
-58
-58
-58
query I rowsort
SELECT - cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2689
SELECT DISTINCT + 52 + tab1.col0 DIV col0 FROM tab1
----
53
skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + 52 + tab1.col0 / col0 FROM tab1
----
53
query I rowsort
SELECT ALL - col0 * col0 + - 2 AS col2 FROM tab1
----
-11
-4098
-6402
query I rowsort
SELECT DISTINCT col0 * + 2 * + tab1.col0 + - col1 + col0 FROM tab1
----
-5
12867
8246
query I rowsort
SELECT - col2 * - col2 * - col1 + + col2 FROM tab1 AS cor0
----
-119712
-32433
-75762
onlyif mysql # use DIV operator for integer division
query I rowsort label-2693
SELECT ALL + tab0.col0 DIV col2 + tab0.col0 * col2 + 83 DIV col1 AS col1 FROM tab0
----
70
7299
792
skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + tab0.col0 / col2 + tab0.col0 * col2 + 83 / col1 AS col1 FROM tab0
----
70
7299
792
query I rowsort
SELECT col1 + 97 FROM tab1
----
107
110
123
query I rowsort
SELECT DISTINCT - col0 + 81 FROM tab1
----
1
17
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 + - CAST ( + 57 AS REAL ) * - col2 + 36 col0 FROM tab0
----
190
2003
4801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 36 col1 FROM tab2 AS cor0
----
36
36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( ( col0 ) ) col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col2 + col0 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + ( 80 ) AS col1 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT + 3 + 79 FROM tab2 AS cor0
----
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT + 59 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2702
SELECT + 59 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - 42 FROM tab2 cor0
----
-42
-42
-42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2704
SELECT DISTINCT - CAST( 87 AS SIGNED ) FROM tab0 AS cor0
----
-87
skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT - CAST ( 87 AS INTEGER ) FROM tab0 AS cor0
----
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 * + 45 * + tab2.col0 col2 FROM tab2
----
-2205
-273780
-280845
query I rowsort
SELECT + ( + col1 ) + + col1 * - 68 FROM tab2
----
-1139
-2077
-3953
query I rowsort
SELECT DISTINCT col1 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL - - ( ( col2 ) ) * + col1 + col2 + + col1 FROM tab1 AS cor0
----
1357
1484
637
query I rowsort
SELECT DISTINCT 45 FROM tab1 cor0
----
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2710
SELECT ALL + col2 DIV + cor0.col0 + 88 AS col0 FROM tab2 cor0
----
88
88
91
skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL + col2 / + cor0.col0 + 88 AS col0 FROM tab2 cor0
----
88
88
91
query I rowsort
SELECT + + 20 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1180
340
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT ALL col2 DIV col1 - + 62 FROM tab0 cor0
----
-62
-62
-62
skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL col2 / col1 - + 62 FROM tab0 cor0
----
-62
-62
-62
query I rowsort
SELECT - 61 + col1 AS col1 FROM tab1
----
-35
-48
-51
query I rowsort
SELECT DISTINCT + col1 * col2 + ( - 82 ) * col0 + ( ( col2 ) ) * + col1 * col1 FROM tab1 cor0
----
1022
10912
37662
query I rowsort
SELECT - 46 * col0 FROM tab2 cor0
----
-322
-3588
-3634
query I rowsort
SELECT + - col1 * cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT col2 * col1 + col0 DIV + col2 + ( - col0 * col1 ) AS col1 FROM tab0 AS cor0
----
-3263
-636
774
skipif mysql # not compatible
query I rowsort label-2717
SELECT col2 * col1 + col0 / + col2 + ( - col0 * col1 ) AS col1 FROM tab0 AS cor0
----
-3263
-636
774
query I rowsort
SELECT cor0.col1 + 95 FROM tab1 AS cor0
----
105
108
121
query I rowsort
SELECT ALL + + col1 + + col1 * + 76 * + col2 AS col0 FROM tab0 AS cor0
----
215774
567203
7469
query I rowsort
SELECT ALL col0 * + 15 + col1 * + col0 FROM tab0 AS cor0
----
2424
3920
9434
query I rowsort
SELECT - - col0 * 1 + 16 * + col1 AS col0 FROM tab2 AS cor0
----
1022
351
503
query I rowsort
SELECT - col0 + + col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - - col0 + 54 * 82 FROM tab1 cor0
----
4431
4492
4508
query I rowsort
SELECT DISTINCT - col1 * 30 * - col1 FROM tab0 AS cor0
----
221880
248430
282270
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + 22 FROM tab1, tab2, tab2 AS cor0
----
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT DISTINCT col0 + + 8 DIV col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT col0 + + 8 / col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col0 * + col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT col2 * + 75 + + 44 + col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
2118
8078
9135
query I rowsort
SELECT ALL col2 - - col0 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2731
SELECT - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2731
SELECT - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + ( 55 ) AS col1 FROM tab1 AS cor0
----
109
112
151
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2733
SELECT DISTINCT + + col0 + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + + col0 + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( col2 ) + col0 col1 FROM tab1 cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2736
SELECT DISTINCT CAST( NULL AS SIGNED ) + 51 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 51 AS col0 FROM tab1 cor0
----
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT ALL col2 * tab1.col2 + col2 AS col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT + + 35 * col1 FROM tab0 AS cor0
----
3010
3185
3395
query I rowsort
SELECT + + 69 * + col0 + 58 FROM tab2 AS cor0
----
541
5440
5509
query I rowsort
SELECT DISTINCT - 38 + + col2 AS col1 FROM tab2 AS cor0
----
-11
-12
0
query I rowsort
SELECT - + cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * + col0 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - ( - col2 ) * + 87 FROM tab0
----
2871
7134
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT ALL 70 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL 70 / + col2 AS col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT - 54 * col0 * col0 + col1 AS col2 FROM tab1 AS cor0
----
-221174
-345587
-460
query I rowsort
SELECT col0 - - col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - col0 - - col2 * 35 FROM tab1 AS cor0
----
1887
1931
3280
query I rowsort
SELECT DISTINCT 32 * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-65
2533
970
query I rowsort
SELECT ALL 27 - - col2 * col2 * - 25 AS col2 FROM tab0 AS cor0
----
-168073
-27198
2
query I rowsort
SELECT - + ( cor0.col0 ) * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col2 * 22 FROM tab2 AS cor0
----
-572
-594
-836
onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT 84 + - col2 DIV col1 FROM tab1
----
77
79
82
skipif mysql # not compatible
query I rowsort label-2753
SELECT 84 + - col2 / col1 FROM tab1
----
77
79
82
query I rowsort
SELECT - cor0.col0 * + 56 + + 59 * cor0.col2 FROM tab0 cor0
----
-146
-1901
603
query I rowsort
SELECT ALL + 73 * cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 89e399c931a342dc3cad6415c954cd8b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 * - col1 col1 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT - ( - col2 ) * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2758
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 4 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 4 AS col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col1 ) col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col0 * 48 FROM tab2 AS cor0
----
336
3744
3792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2761
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 38 * 87 FROM tab0 AS cor0
----
-3306
-3306
-3306
query I rowsort
SELECT + 32 * + col0 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT DISTINCT + col2 * tab0.col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT 5 + + tab0.col1 FROM tab0
----
102
91
96
query I rowsort
SELECT - ( col1 ) + + col0 * + col0 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT 52 - + col0 AS col0 FROM tab0
----
-37
17
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT DISTINCT + tab2.col2 DIV tab2.col1 AS col2 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT + tab2.col2 / tab2.col1 AS col2 FROM tab2
----
0
2
query I rowsort
SELECT - 45 * + col0 * ( + 0 + - col2 ) AS col1 FROM tab2 cor0
----
135090
8505
91260
query I rowsort
SELECT 84 * + col0 AS col0 FROM tab2 AS cor0
----
588
6552
6636
onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT ALL col0 DIV - 4 FROM tab1
----
-16
-20
0
skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL col0 / - 4 FROM tab1
----
-16
-20
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT + + col0 DIV + 18 + col0 FROM tab0 cor0
----
25
36
93
skipif mysql # not compatible
query I rowsort label-2772
SELECT + + col0 / + 18 + col0 FROM tab0 cor0
----
25
36
93
query I rowsort
SELECT + - col1 + + cor0.col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2774
SELECT ALL - col2 * + ( col1 ) + + col0 * CAST( NULL AS SIGNED ) * - 26 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - col2 * + ( col1 ) + + col0 * CAST ( NULL AS INTEGER ) * - 26 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - col2 * - 98 + + col0 FROM tab2 AS cor0
----
2626
2653
3803
onlyif mysql # use DIV operator for integer division
query I rowsort label-2777
SELECT + cor0.col0 + + col0 DIV - col1 FROM tab1 cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-2777
SELECT + cor0.col0 + + col0 / - col1 FROM tab1 cor0
----
3
58
74
query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 + - col0 + 59 AS col1 FROM tab2 AS cor0
----
1424
657
781
query I rowsort
SELECT + col1 + + 86 FROM tab2
----
103
117
145
query I rowsort
SELECT + tab2.col0 * 62 FROM tab2
----
434
4836
4898
onlyif mysql # use DIV operator for integer division
query I rowsort label-2781
SELECT - col2 * ( col1 ) DIV - col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2781
SELECT - col2 * ( col1 ) / - col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col2 FROM tab0, tab1 cor0, tab1 cor1, tab2, tab2 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2
query I rowsort
SELECT DISTINCT col2 + 65 + col1 * col1 * 42 AS col2 FROM tab1 cor0
----
28511
4322
7259
query I rowsort
SELECT - cor0.col2 + 46 FROM tab2 AS cor0
----
19
20
8
query I rowsort
SELECT + col0 + ( col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT col1 + + 15 * - col0 FROM tab1 AS cor0
----
-1187
-19
-950
query I rowsort
SELECT ALL 77 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT DISTINCT - col2 + col1 + col1 AS col0 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT - col1 + - cor0.col2 * - col1 FROM tab2 cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2790
SELECT ALL - CAST( 74 AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
-222
-4736
-5920
skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - CAST ( 74 AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
-222
-4736
-5920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT DISTINCT + col1 + col2 * 6 DIV + 51 FROM tab1 AS cor0
----
16
24
32
skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + col1 + col2 * 6 / + 51 FROM tab1 AS cor0
----
16
24
32
query I rowsort
SELECT 62 * col2 FROM tab0
----
2046
5084
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2793
SELECT - + ( cor0.col0 ) + cor0.col2 DIV col0 col0 FROM tab0 AS cor0
----
-23
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2793
SELECT - + ( cor0.col0 ) + cor0.col2 / col0 col0 FROM tab0 AS cor0
----
-23
-35
-89
query I rowsort
SELECT DISTINCT + + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT col2 * cor0.col0 + + 21 + - col2 * - col2 * - 55 AS col2 FROM tab2 AS cor0
----
-35131
-39885
-76397
query I rowsort
SELECT - + cor0.col2 + + col0 AS col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL - - col1 * col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT + 93 FROM tab0, tab0 AS cor0
----
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( + col2 * - 83 ) col0 FROM tab2
----
15687
168324
249166
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 78 ) col0 FROM tab0
----
78
query I rowsort
SELECT + ( tab2.col2 ) - tab2.col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL col0 * - col2 + col2 AS col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT + 5 * col2 * - tab2.col0 - col2 AS col2 FROM tab2
----
-10166
-15048
-972
query I rowsort
SELECT DISTINCT col2 + + col1 + ( - 68 * + col0 ) AS col0 FROM tab1 cor0
----
-124
-4285
-5331
query I rowsort
SELECT 44 + col0 * + 1 FROM tab2 cor0
----
122
123
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col0 * - col1 * + 62 + - col0 FROM tab1 AS cor0
----
39616
4833
64400
query I rowsort
SELECT DISTINCT + - col2 + - col2 * col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT col1 * col1 + 56 * + col1 * col2 + - tab0.col2 FROM tab0
----
14840
166291
426071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - cor0.col2 * - cor0.col0 + 35 FROM tab2 AS cor0
----
2063
224
3037
query I rowsort
SELECT ALL + - col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT DISTINCT - + col2 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - + col2 / + cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + col0 * + ( - 38 ) AS col1 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT ALL cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT DISTINCT + col2 + + ( - col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT + - col2 + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + col1 * + col2 * col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2821
SELECT ALL - col1 * - CAST( - 64 + col2 AS SIGNED ) FROM tab1 AS cor0
----
-260
-70
416
skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - col1 * - CAST ( - 64 + col2 AS INTEGER ) FROM tab1 AS cor0
----
-260
-70
416
query I rowsort
SELECT col0 * col2 * + 34 AS col2 FROM tab2 AS cor0
----
102068
6426
68952
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 * col2 AS col0 FROM tab1 cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( col2 ) col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2825
SELECT + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2825
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
70
query I rowsort
SELECT - col0 - + 93 FROM tab1
----
-157
-173
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2828
SELECT - 56 * - 11 * col0 - - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2828
SELECT - 56 * - 11 * col0 - - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 67 + - 17 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT DISTINCT col0 - - 75 AS col0 FROM tab2 AS cor0
----
153
154
82
query I rowsort
SELECT - + 19 * 15 AS col2 FROM tab1 AS cor0
----
-285
-285
-285
query I rowsort
SELECT ALL 40 - col1 * col2 AS col1 FROM tab1 cor0
----
-1208
-1364
-530
query I rowsort
SELECT DISTINCT + col2 + - col0 AS col1 FROM tab1 cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2834
SELECT + cor0.col1 DIV col1 - - col2 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-2834
SELECT + cor0.col1 / col1 - - col2 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-34
-7297
-791
query I rowsort
SELECT ALL - col0 * cor0.col2 + col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT - + 13 + col1 FROM tab1 AS cor0
----
-3
0
13
query I rowsort
SELECT DISTINCT ( + col0 ) + - cor0.col2 + - col2 FROM tab0 AS cor0
----
-42
-75
33
query I rowsort
SELECT DISTINCT - col1 - - 23 FROM tab2 AS cor0
----
-36
-8
6
query I rowsort
SELECT DISTINCT ( - col2 ) * 65 AS col1 FROM tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT DISTINCT - + 53 * - col1 AS col2 FROM tab2 AS cor0
----
1643
3127
901
onlyif mysql # use DIV operator for integer division
query I rowsort label-2841
SELECT ALL col2 DIV cor0.col1 + - 34 DIV - 78 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL col2 / cor0.col1 + - 34 / - 78 AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL 43 + + col0 AS col1 FROM tab1 AS cor0
----
107
123
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2843
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 * - col0 - - col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - col1 - + col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - + col0 - + col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2848
SELECT ALL - CAST( 48 AS SIGNED ) FROM tab2
----
-48
-48
-48
skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - CAST ( 48 AS INTEGER ) FROM tab2
----
-48
-48
-48
query I rowsort
SELECT DISTINCT + - col2 * + 87 FROM tab1 AS cor0
----
-4698
-4959
-8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT + + ( ( - cor0.col2 ) ) DIV ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2850
SELECT + + ( ( - cor0.col2 ) ) / ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * 61 FROM tab0 AS cor0
----
1464
2135
5429
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2852
SELECT ALL + CAST( + 38 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
38
38
38
skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL + CAST ( + 38 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT col0 * col2 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - - cor0.col1 + - col0 * - col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT col2 * col2 * cor0.col0 AS col2 FROM tab2 cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT + + ( col0 ) DIV + ( - col0 * + col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2856
SELECT + + ( col0 ) / + ( - col0 * + col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2857
SELECT + col1 + - cor0.col0 DIV - 35 AS col1 FROM tab0 AS cor0
----
86
93
98
skipif mysql # not compatible
query I rowsort label-2857
SELECT + col1 + - cor0.col0 / - 35 AS col1 FROM tab0 AS cor0
----
86
93
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2858
SELECT ALL - col0 + + CAST( 83 AS SIGNED ) - - col0 AS col2 FROM tab2 cor0
----
83
83
83
skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL - col0 + + CAST ( 83 AS INTEGER ) - - col0 AS col2 FROM tab2 cor0
----
83
83
83
query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + + cor0.col0 * - col0 * - col1 AS col1 FROM tab0 AS cor0
----
118922
52374
728273
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2860
SELECT + CAST( NULL AS DECIMAL ) / 45 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2860
SELECT + CAST ( NULL AS REAL ) / 45 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 * col1 * col2 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL col2 + 66 * + col2 + + col0 FROM tab0 AS cor0
----
102
2235
5583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 69 col1 FROM tab1 cor0
----
-1794
-690
-897
query I rowsort
SELECT - + 74 AS col0 FROM tab1 cor0
----
-74
-74
-74
query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
-68
query I rowsort
SELECT 94 + - cor0.col1 FROM tab0 AS cor0
----
-3
3
8
query I rowsort
SELECT ( + 55 ) FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + cor0.col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT - ( cor1.col1 ) * cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1d6523d2f8b36687eb45e9eba8273957
query I rowsort
SELECT col2 + cor0.col2 AS col2 FROM tab2 cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT DISTINCT - - ( col0 ) DIV - cor0.col2 + 21 * - 58 FROM tab1 AS cor0
----
-1218
-1219
skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT - - ( col0 ) / - cor0.col2 + 21 * - 58 FROM tab1 AS cor0
----
-1218
-1219
query I rowsort
SELECT ALL + - col2 * - col1 - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + 63 + + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1597
709
900
query I rowsort
SELECT ALL + 67 + col0 AS col2 FROM tab1 AS cor0
----
131
147
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT ALL col1 + + col1 DIV ( col0 + col2 ) AS col1 FROM tab0 cor0
----
87
91
99
skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL col1 + + col1 / ( col0 + col2 ) AS col1 FROM tab0 cor0
----
87
91
99
query I rowsort
SELECT ALL - 70 + col2 FROM tab0 cor0
----
-37
-69
12
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
3645 values hashing to da83d3eeaeb9e24a3cb14bb7058757dd
query I rowsort
SELECT DISTINCT 88 + + cor0.col2 FROM tab2, tab1 AS cor0
----
142
145
184
query I rowsort
SELECT ALL 8 * + tab2.col1 + 7 FROM tab2
----
143
255
479
query I rowsort
SELECT - col2 + + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT - + col0 - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2882
SELECT - + col0 - col0 / col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col2 * 25 AS col2 FROM tab1
----
1350
1425
2400
query I rowsort
SELECT ALL col2 * col2 * - col1 FROM tab1
----
-119808
-32490
-75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( col0 ) * col0 col2 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT - col1 * - 64 AS col1 FROM tab2
----
1088
1984
3776
query I rowsort
SELECT ALL + col0 + 73 AS col1 FROM tab1
----
137
153
76
query I rowsort
SELECT + col0 + col0 * + col2 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT tab2.col1 * - col2 - col0 * + tab2.col2 AS col1 FROM tab2
----
-1026
-3562
-3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 + - col2 col1 FROM tab2
----
0
query I rowsort
SELECT ALL - col1 * + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - - col2 + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
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 cor0
----
-1326
-186
-4543
query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( - col2 + + col2 )
----
query I rowsort
SELECT ALL + col2 * col0 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----
query I rowsort
SELECT ALL col0 * - cor0.col1 * + col1 + col1 FROM tab2 cor0
----
-22814
-271459
-6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 * - col2 col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL col1 + - tab2.col2 * + col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT col0 * - cor0.col0 * + cor0.col2 FROM tab2 cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + cor0.col0 * col0 + col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - + cor0.col1 * - col2 - - col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col0 + + col0 + col0 AS col1 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT DISTINCT + + col0 * col2 * + cor0.col2 - col1 FROM tab2 AS cor0
----
114059
5072
52669
query I rowsort
SELECT DISTINCT col1 * - col2 + + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - col0 * col2 + + col1 * col1 FROM tab2 AS cor0
----
-2713
1453
772
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col0 * col0 - col1 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT ALL + col1 * - col2 + cor0.col2 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - - col0 + col2 * + col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-113997
-5096
-52650
query I rowsort
SELECT + col0 * col0 + + col2 * col2 AS col0 FROM tab1 cor0
----
15616
2925
7345
query I rowsort
SELECT ALL - + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + + col2 * + cor0.col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT ALL - col1 DIV col0 - + col0 col2 FROM tab2 AS cor0
----
-11
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - col1 / col0 - + col0 col2 FROM tab2 AS cor0
----
-11
-78
-79
query I rowsort
SELECT col0 + col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL col2 - tab2.col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL - col1 * + col2 * + col2 - col1 AS col0 FROM tab2
----
-22630
-24565
-39943
onlyif mysql # use DIV operator for integer division
query I rowsort label-2919
SELECT DISTINCT col0 DIV col0 - + col2 * - col2 AS col1 FROM tab0
----
1090
2
6725
skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT col0 / col0 - + col2 * - col2 AS col1 FROM tab0
----
1090
2
6725
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 * col2 col0 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT - - cor0.col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + 3 * col0 - col1 AS col1 FROM tab1 AS cor0
----
-17
182
227
query I rowsort
SELECT DISTINCT + 38 + cor0.col2 AS col0 FROM tab2 cor0
----
64
65
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT 55 + - col2 DIV - col1 FROM tab1 cor0
----
57
60
62
skipif mysql # not compatible
query I rowsort label-2924
SELECT 55 + - col2 / - col1 FROM tab1 cor0
----
57
60
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT DISTINCT col2 + col0 * + col1 + + col1 DIV col2 FROM tab0
----
2099
3493
8182
skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT col2 + col0 * + col1 + + col1 / col2 FROM tab0
----
2099
3493
8182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col1 * col0 col1 FROM tab0
----
3395
664118
68112
query III rowsort
SELECT * FROM tab0 WHERE ( + tab0.col2 - + col2 ) NOT IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT DISTINCT - tab0.col0 DIV + col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT - tab0.col0 / + col0 FROM tab0
----
-1
query I rowsort
SELECT ALL col1 * + col0 + col2 * col0 + + col1 FROM tab2
----
4362
437
6689
onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT DISTINCT + col2 DIV - col1 + col1 DIV col2 + col2 FROM tab0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + col2 / - col1 + col1 / col2 + col2 FROM tab0
----
35
83
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + ( col1 ) * col0 * 60 + col2 * col2 col2 FROM tab1
----
42289
72656
7674
query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ( + col2 ) * - col1 + + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT 21 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL - cor0.col2 * + col0 * col0 + - col2 FROM tab0 AS cor0
----
-1226
-19041
-649604
query I rowsort
SELECT DISTINCT - col1 * col0 + - 74 FROM tab0
----
-2138
-3469
-8173
query I rowsort
SELECT - col1 * + col1 + - 82 AS col0 FROM tab0
----
-7478
-8363
-9491
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + 3 + col2 col2 FROM tab1
----
132
135
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-2940
SELECT - col2 + col0 DIV + tab2.col1 - col1 FROM tab2
----
-51
-58
-84
skipif mysql # not compatible
query I rowsort label-2940
SELECT - col2 + col0 / + tab2.col1 - col1 FROM tab2
----
-51
-58
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + - col2 + - col1 col2 FROM tab1
----
2836
3182
9107
query I rowsort
SELECT DISTINCT col2 * col2 * col0 - - tab0.col2 * - col2 AS col1 FROM tab0
----
25047
34
591712
onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT tab0.col0 DIV + col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2943
SELECT tab0.col0 / + col2 AS col0 FROM tab0
----
0
1
35
query I rowsort
SELECT tab2.col1 + + col2 * - col1 AS col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE - col1 * col1 > NULL
----
query I rowsort
SELECT col1 * + col0 FROM tab2 WHERE NOT col0 <= NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL col2 + - col1 * + col2 + - col1 AS col0 FROM tab1
----
-1165
-1376
-523
query I rowsort
SELECT + tab1.col1 * - col0 * + tab1.col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT col0 + + col0 - - col1 * col2 AS col1 FROM tab0
----
167
2886
7640
query I rowsort
SELECT DISTINCT - tab1.col2 - col0 AS col2 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2952
SELECT - col1 DIV + col0 - - col1 col0 FROM tab0
----
83
90
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2952
SELECT - col1 / + col0 - - col1 col0 FROM tab0
----
83
90
95
query I rowsort
SELECT col1 * - col2 * col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT tab2.col0 * col0 + + col2 FROM tab2
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 + + col1 * col0 col0 FROM tab1
----
1136
132
697
query III rowsort
SELECT * FROM tab2 WHERE col0 <> ( col0 + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT tab2.col2 + + tab2.col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + + cor0.col0 * ( ( col1 ) ) * col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + col2 * 69 AS col0 FROM tab2 cor0
----
1794
1863
2622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2960
SELECT - cor0.col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2960
SELECT - cor0.col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 16 + 5 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT ALL + + 60 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT DISTINCT + + 4 FROM tab2, tab1, tab0 AS cor0
----
4
query I rowsort
SELECT + 89 * tab0.col1 AS col2 FROM tab0
----
7654
8099
8633
query I rowsort
SELECT col1 * 22 FROM tab2 cor0
----
1298
374
682
query I rowsort
SELECT ALL col2 + - ( - col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col1 * ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + 77 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT - cor0.col0 * col0 - col1 AS col0 FROM tab2 cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT ( + 93 ) FROM tab1 AS cor0
----
93
query I rowsort
SELECT ALL + 5 * col2 + - col0 * - col0 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
1485
158340
237386
query I rowsort
SELECT DISTINCT + 72 + + cor0.col1 FROM tab2 AS cor0
----
103
131
89
query I rowsort
SELECT ALL + 76 + - 30 FROM tab1 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT + - col2 + 20 FROM tab2 AS cor0
----
-18
-6
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2975
SELECT ALL - CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT 86 + col1 FROM tab2 AS cor0
----
103
117
145
query I rowsort
SELECT + 81 + - col2 AS col1 FROM tab1 cor0
----
-15
24
27
query I rowsort
SELECT 61 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 col2 FROM tab1
----
29
74
93
query I rowsort
SELECT - col1 * cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - 78 + - col0 AS col1 FROM tab2 AS cor0
----
-156
-157
-85
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
-10
-13
-26
query I rowsort
SELECT + + cor0.col2 * + col0 + col2 FROM tab1 cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT - col2 * - col1 + - col1 DIV col0 FROM tab1 AS cor0
----
1248
1396
570
skipif mysql # not compatible
query I rowsort label-2984
SELECT - col2 * - col1 + - col1 / col0 FROM tab1 AS cor0
----
1248
1396
570
query I rowsort
SELECT - col1 * + 59 + 61 FROM tab2 AS cor0
----
-1768
-3420
-942
onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT col0 DIV + cor0.col0 col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2986
SELECT col0 / + cor0.col0 col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - - 84 AS col2 FROM tab0 AS cor0
----
84
84
84
query I rowsort
SELECT - col0 + + col0 * tab1.col0 AS col2 FROM tab1
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT DISTINCT - col0 * col1 - + 36 AS col0 FROM tab1 AS cor0
----
-1076
-114
-676
query I rowsort
SELECT - 93 * tab1.col2 AS col0 FROM tab1
----
-5022
-5301
-8928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2992
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 * - col0 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 * - col0 AS col0 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2993
SELECT DISTINCT CAST( - col2 AS SIGNED ) col0 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT CAST ( - col2 AS INTEGER ) col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2995
SELECT - col1 * CAST( - col1 AS SIGNED ) + col0 + + cor0.col2 FROM tab0 AS cor0
----
7453
8452
9445
skipif mysql # not compatible
query I rowsort label-2995
SELECT - col1 * CAST ( - col1 AS INTEGER ) + col0 + + cor0.col2 FROM tab0 AS cor0
----
7453
8452
9445
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 93 col1 FROM tab2
----
-2418
-2511
-3534
query I rowsort
SELECT col2 * + 29 + col0 AS col2 FROM tab2
----
1181
790
832
query I rowsort
SELECT DISTINCT col0 + ( col1 ) + + col0 * col0 FROM tab2
----
6221
6337
87
query I rowsort
SELECT - ( - tab0.col0 * - col2 ) + col1 + col1 * col1 FROM tab0
----
1074
6690
9471
query I rowsort
SELECT - col1 + ( col2 ) AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT 25 * + col2 + + col2 * col2 FROM tab0
----
1914
26
8774
query I rowsort
SELECT 88 + + col0 AS col1 FROM tab0
----
112
123
177
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 + + ( + col1 ) * + tab1.col1 + + col2 col2 FROM tab1
----
185
727
93
query I rowsort
SELECT col1 + cor0.col0 + col0 * - 50 * - col0 FROM tab2 cor0
----
2488
304337
312146
onlyif mysql # use DIV operator for integer division
query I rowsort label-3005
SELECT DISTINCT - + col0 + col1 DIV + col1 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT - + col0 + col1 / + col1 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT + 29 + col1 * + col2 FROM tab0 AS cor0
----
126
2867
7491
query I rowsort
SELECT ( + col0 ) * col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + 28 FROM tab0 cor0
----
28
28
28
query I rowsort
SELECT ALL 89 AS col0 FROM tab1
----
89
89
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 col2 FROM tab1
----
109
67
80
query I rowsort
SELECT 23 + - col1 * + 34 AS col0 FROM tab1
----
-317
-419
-861
query I rowsort
SELECT 10 * col0 FROM tab1 AS cor0
----
30
640
800
query I rowsort
SELECT - cor0.col0 * 95 - + col1 FROM tab0 AS cor0
----
-2366
-3422
-8546
query I rowsort
SELECT DISTINCT col0 + + cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col1 * col0 - + 79 AS col1 FROM tab0 AS cor0
----
1985
3316
8020
query I rowsort
SELECT DISTINCT + + col1 + - cor0.col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col1 - col2 * - col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL - + col1 + 16 FROM tab2 cor0
----
-1
-15
-43
query I rowsort
SELECT cor0.col1 * + 89 * col0 + + col1 FROM tab1 AS cor0
----
56970
6968
92573
onlyif mysql # use DIV operator for integer division
query I rowsort label-3020
SELECT DISTINCT + ( col0 ) DIV - ( + 43 * col2 ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT + ( col0 ) / - ( + 43 * col2 ) FROM tab1
----
0
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab0, tab1, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT + col0 - col1 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT + col0 * col0 + 82 AS col2 FROM tab1 AS cor0
----
4178
6482
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3025
SELECT DISTINCT - + col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT - + col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col2 * 95 AS col2 FROM tab1 cor0
----
5130
5415
9120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3027
SELECT ALL - + col1 * 45 + col1 * - cor0.col2 + + CAST( NULL AS SIGNED ) / + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - + col1 * 45 + col1 * - cor0.col2 + + CAST ( NULL AS INTEGER ) / + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3028
SELECT ALL + col2 DIV ( 68 ) + + col2 AS col1 FROM tab0 AS cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL + col2 / ( 68 ) + + col2 AS col1 FROM tab0 AS cor0
----
1
33
83
query I rowsort
SELECT DISTINCT - col0 * col1 * + col2 + col0 * - col0 FROM tab1 AS cor0
----
-106240
-40576
-4221
query I rowsort
SELECT + + col0 - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT col1 - + 41 FROM tab2
----
-10
-24
18
query I rowsort
SELECT ALL + 20 * col0 + + col0 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT + ( 76 ) * col2 * + ( cor0.col1 ) + col0 FROM tab1 AS cor0
----
106707
43384
94928
query I rowsort
SELECT DISTINCT - 78 + + col2 AS col0 FROM tab2 AS cor0
----
-40
-51
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3035
SELECT DISTINCT - col2 + + ( + col0 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT - col2 + + ( + col0 ) / col1 AS col2 FROM tab2 AS cor0
----
-25
-27
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3036
SELECT ALL - CAST( - col1 AS SIGNED ) + + cor0.col0 - ( - col2 ) * - col0 * - 52 AS col2 FROM tab0 AS cor0
----
1952
379676
41294
skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - CAST ( - col1 AS INTEGER ) + + cor0.col0 - ( - col2 ) * - col0 * - 52 AS col2 FROM tab0 AS cor0
----
1952
379676
41294
query I rowsort
SELECT ALL tab2.col2 + - col1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL col1 - + ( col1 ) * col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT - ( + cor0.col2 ) * col2 + col0 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + + col1 * col2 + + col1 + - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + ( col1 ) * + col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT 62 * col2 AS col1 FROM tab1 AS cor0
----
3348
3534
5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-3043
SELECT DISTINCT - 34 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT - 34 / col1 AS col0 FROM tab1 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - 37 + col0 FROM tab0 AS cor0
----
-13
-2
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * + cor0.col2 col2 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT + 2 + + col1 DIV + 96 AS col2 FROM tab2 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-3046
SELECT + 2 + + col1 / + 96 AS col2 FROM tab2 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT - col0 * + col2 * - 27 FROM tab1 AS cor0
----
207360
4374
98496
query I rowsort
SELECT col2 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT 46 FROM tab0, tab0 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT DISTINCT + ( - 12 ) + + col1 * tab0.col0 AS col1 FROM tab0
----
2052
3383
8087
query I rowsort
SELECT ALL cor0.col0 * - col0 + + 68 AS col0 FROM tab0 AS cor0
----
-1157
-508
-7853
query I rowsort
SELECT DISTINCT + + col1 - + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col0 + 99 * + col1 AS col2 FROM tab0
----
8538
9098
9638
query I rowsort
SELECT ALL col0 - - col1 * ( col0 * col2 ) AS col2 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT - 63 * + col1 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT + 88 AS col1 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT ALL + 32 + + col0 AS col2 FROM tab0 AS cor0
----
121
56
67
query I rowsort
SELECT col2 * + col1 + col0 * col0 AS col2 FROM tab1
----
1413
4666
7648
query I rowsort
SELECT cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT + 98 + 17 AS col1 FROM tab1 AS cor0
----
115
115
115
query I rowsort
SELECT 46 - - col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1297
-171
-4556
query I rowsort
SELECT - + col0 * col2 + - 87 AS col1 FROM tab2 AS cor0
----
-2115
-276
-3089
query I rowsort
SELECT ALL ( tab1.col1 + tab1.col2 ) FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3064
SELECT CAST( - ( - col1 ) AS SIGNED ) FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3064
SELECT CAST ( - ( - col1 ) AS INTEGER ) FROM tab2
----
17
31
59
query I rowsort
SELECT + col0 + col0 * - 27 AS col2 FROM tab0 AS cor0
----
-2314
-624
-910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL - - col0 + + 27 FROM tab1 AS cor0
----
107
30
91
query I rowsort
SELECT - col0 * ( - col0 + + col2 ) * ( - 84 ) FROM tab1 cor0
----
-37632
107520
12852
onlyif mysql # use DIV operator for integer division
query I rowsort label-3069
SELECT DISTINCT + - col0 * + cor0.col1 DIV + col1 - - col1 FROM tab0 AS cor0
----
2
62
skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT + - col0 * + cor0.col1 / + col1 - - col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL - col2 * - 31 - - col1 FROM tab0 AS cor0
----
1109
128
2633
query I rowsort
SELECT + col1 * - col1 * col2 AS col2 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + col0 * - col0 - col1 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT col0 * - col0 + cor0.col2 * + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-448
1280
153
query I rowsort
SELECT col0 - col2 * + col2 FROM tab1
----
-2913
-3185
-9136
skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( 83 * - col2 AS REAL ) FROM tab0
----
-118
-2763
-6895
query I rowsort
SELECT + tab1.col1 * + 63 AS col1 FROM tab1
----
1638
630
819
query I rowsort
SELECT + col1 - - 30 FROM tab1
----
40
43
56
query I rowsort
SELECT + 42 + cor0.col2 * + col1 FROM tab0 cor0
----
139
2880
7504
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3080
SELECT CAST( + 59 AS SIGNED ) + col0 + cor0.col1 FROM tab0 AS cor0
----
169
191
239
skipif mysql # not compatible
query I rowsort label-3080
SELECT CAST ( + 59 AS INTEGER ) + col0 + cor0.col1 FROM tab0 AS cor0
----
169
191
239
query I rowsort
SELECT + ( col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - 23 * - cor0.col0 * col2 - + 81 AS col0 FROM tab2 AS cor0
----
4266
46563
68965
query I rowsort
SELECT + 26 * - col2 FROM tab1 AS cor0
----
-1404
-1482
-2496
query I rowsort
SELECT - 11 * 30 AS col2 FROM tab1 AS cor0
----
-330
-330
-330
query I rowsort
SELECT - + col2 + cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 49 * col1 + - col1 FROM tab0 AS cor0
----
4128
4368
4656
query I rowsort
SELECT 83 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 49 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-3089
SELECT - 34 DIV - col2 + ( col2 ) AS col0 FROM tab0 cor0
----
34
35
82
skipif mysql # not compatible
query I rowsort label-3089
SELECT - 34 / - col2 + ( col2 ) AS col0 FROM tab0 cor0
----
34
35
82
query I rowsort
SELECT - col2 * - col2 * ( 59 ) + col1 * col2 * + col1 AS col2 FROM tab0 cor0
----
1075758
308319
9468
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3091
SELECT col1 + - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3091
SELECT col1 + - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col1 + col0 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL + col0 + col2 * + 62 FROM tab0 AS cor0
----
2070
5173
97
query I rowsort
SELECT + + ( col2 ) + - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + + col1 + col1 * 8 * + cor0.col1 FROM tab2 AS cor0
----
2329
27907
7719
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col1 col0 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-3097
SELECT ALL + col0 - col1 * col2 DIV col0 FROM tab2 AS cor0
----
-112
59
71
skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + col0 - col1 * col2 / col0 FROM tab2 AS cor0
----
-112
59
71
query I rowsort
SELECT 79 * + col1 * 60 + 84 * col1 * 42 AS col2 FROM tab0 cor0
----
711048
752388
801996
query I rowsort
SELECT + 56 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
1017
345
3537
query I rowsort
SELECT ALL col2 * cor0.col0 - 82 AS col0 FROM tab2 AS cor0
----
107
1946
2920
query I rowsort
SELECT DISTINCT + + 2 FROM tab2 cor0
----
2
query I rowsort
SELECT DISTINCT - 45 * cor0.col1 FROM tab2 AS cor0
----
-1395
-2655
-765
query I rowsort
SELECT DISTINCT - ( col0 ) * - ( col2 * cor0.col1 ) - 45 AS col0 FROM tab2 AS cor0
----
119607
50989
5814
onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT ALL + col2 DIV col1 - 18 * ( col1 ) FROM tab2
----
-1062
-304
-558
skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + col2 / col1 - 18 * ( col1 ) FROM tab2
----
-1062
-304
-558
onlyif mysql # use DIV operator for integer division
query I rowsort label-3105
SELECT ALL + col1 DIV - 80 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + col1 / - 80 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + ( col1 ) - - 53 * col1 AS col1 FROM tab1
----
1404
540
702
query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + 23 + + cor0.col2 * - 32 AS col1 FROM tab0 AS cor0
----
-1033
-2601
-9
query I rowsort
SELECT + - col2 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - - 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 + col2 * col2 * col0 col0 FROM tab1 AS cor0
----
207861
737205
8673
query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab1, tab0 AS cor0
----
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 49 col1 FROM tab1 AS cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 21 col0 FROM tab0 AS cor0
----
1806
1911
2037
query I rowsort
SELECT DISTINCT col0 + col2 * - col2 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT + col2 * - 21 FROM tab2
----
-546
-567
-798
query I rowsort
SELECT col0 + + 64 AS col1 FROM tab2
----
142
143
71
query I rowsort
SELECT DISTINCT ( 73 ) * + col2 * tab1.col0 AS col1 FROM tab1
----
11826
266304
560640
query I rowsort
SELECT ALL 8 * + col2 AS col1 FROM tab2 cor0
----
208
216
304
query I rowsort
SELECT - + 43 * 2 AS col0 FROM tab0 AS cor0
----
-86
-86
-86
query I rowsort
SELECT ALL - 92 * 8 FROM tab1 AS cor0
----
-736
-736
-736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3122
SELECT - - CAST( col2 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-3122
SELECT - - CAST ( col2 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - 60 * col2 FROM tab1 AS cor0
----
-3240
-3420
-5760
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( + col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT 13 * ( cor0.col0 ) + col1 AS col0 FROM tab1 AS cor0
----
1053
65
842
query I rowsort
SELECT DISTINCT - ( 3 ) FROM tab1 AS cor0
----
-3
query I rowsort
SELECT + col0 * - col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col2 col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - cor0.col1 * - col2 * + col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT col0 * - 72 FROM tab0
----
-1728
-2520
-6408
query I rowsort
SELECT ALL col2 + ( + col2 ) FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3133
SELECT DISTINCT + col2 * + ( col0 ) - - col1 DIV - 28 FROM tab2 AS cor0
----
188
2026
3002
skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT + col2 * + ( col0 ) - - col1 / - 28 FROM tab2 AS cor0
----
188
2026
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT + col0 DIV + ( + col2 ) + col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-3134
SELECT + col0 / + ( + col2 ) + col1 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT ALL + col2 + col2 * + col2 FROM tab1
----
2970
3306
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 75 * 37 + tab1.col2 col0 FROM tab1
----
149904
158232
266496
query I rowsort
SELECT - col0 * 68 FROM tab0
----
-1632
-2380
-6052
query I rowsort
SELECT + col2 * - 66 + - col0 * + col1 AS col1 FROM tab0
----
-13511
-3461
-4242
query I rowsort
SELECT + - cor0.col1 + + ( + col1 * col2 ) FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + col1 * ( + col0 * - col2 ) + col1 * col1 * col1 AS col2 FROM tab0 AS cor0
----
567944
89453
909278
query I rowsort
SELECT - + col1 + - 40 FROM tab1 AS cor0
----
-50
-53
-66
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3144
SELECT DISTINCT - col2 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT - col2 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT col1 + col1 - col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col2 * col1 + + col1 * col1 FROM tab2 AS cor0
----
1798
5015
935
onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT + cor0.col2 DIV - cor0.col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3147
SELECT + cor0.col2 / - cor0.col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT + + ( + col2 ) + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL 54 * col1 + + cor0.col2 FROM tab0 AS cor0
----
4677
4996
5239
query I rowsort
SELECT + 91 * 22 FROM tab2 AS cor0
----
2002
2002
2002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3151
SELECT DISTINCT CAST( col2 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3152
SELECT - CAST( NULL AS SIGNED ) + + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3152
SELECT - CAST ( NULL AS INTEGER ) + + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT ALL - + col1 + + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL - + col1 + + col0 / + col0 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT 32 * - col2 + + col2 AS col2 FROM tab1 AS cor0
----
-1674
-1767
-2976
onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT - - col1 DIV cor0.col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3155
SELECT - - col1 / cor0.col2 FROM tab0 cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3156
SELECT + + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3156
SELECT + + col0 / col0 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col1 * 1 AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT DISTINCT - + col0 + 52 DIV col0 AS col2 FROM tab0 AS cor0
----
-22
-34
-89
skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - + col0 + 52 / col0 AS col2 FROM tab0 AS cor0
----
-22
-34
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3159
SELECT ALL - CAST( col2 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL - CAST ( col2 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL - + ( - 95 ) * + col1 + ( col1 ) FROM tab2 cor0
----
1632
2976
5664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3161
SELECT col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3161
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 35 + col0 * + col0 * - col2 AS col1 FROM tab0 cor0
----
-1190
-18973
-649487
query I rowsort
SELECT + 72 * 15 AS col1 FROM tab0 AS cor0
----
1080
1080
1080
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + CAST ( - col0 AS REAL ) FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL 5 + - col1 AS col2 FROM tab2 cor0
----
-12
-26
-54
query I rowsort
SELECT DISTINCT - 41 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-41
query I rowsort
SELECT + col1 - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * - col0 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1026
-3562
-3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + - cor0.col1 * + 91 + col2 FROM tab2 AS cor0
----
-1509
-2794
-5343
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3171
SELECT tab1.col2 * - col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3171
SELECT tab1.col2 * - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 37 + col1 AS col0 FROM tab0
----
49
54
60
query I rowsort
SELECT + 82 + + col1 * ( tab2.col2 ) + - tab2.col1 * - col1 AS col0 FROM tab2
----
1017
1880
5097
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + tab1.col1 + col2 col0 FROM tab1
----
124
134
205
query I rowsort
SELECT ALL - 74 FROM tab2 cor0
----
-74
-74
-74
query I rowsort
SELECT ( + col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col2 * 83 + - col1 AS col2 FROM tab1 AS cor0
----
4456
4721
7955
query I rowsort
SELECT DISTINCT - col0 * col2 + - col2 AS col2 FROM tab2 cor0
----
-2054
-216
-3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3179
SELECT ALL CAST( NULL AS SIGNED ) - - 34 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL CAST ( NULL AS INTEGER ) - - 34 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 - 86 AS col2 FROM tab1 AS cor0
----
-140
-143
-182
query I rowsort
SELECT col1 + col1 * + 38 FROM tab1
----
1014
390
507
query I rowsort
SELECT + 87 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
onlyif mysql # use DIV operator for integer division
query I rowsort label-3183
SELECT - col1 DIV col1 + 77 FROM tab1
----
76
76
76
skipif mysql # not compatible
query I rowsort label-3183
SELECT - col1 / col1 + 77 FROM tab1
----
76
76
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3184
SELECT - - CAST( NULL AS SIGNED ) * + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3184
SELECT - - CAST ( NULL AS INTEGER ) * + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 33 AS col1 FROM tab1 cor0
----
-33
-33
-33
query I rowsort
SELECT ALL + 44 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab0 AS cor0
----
87
query I rowsort
SELECT ALL - col0 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT ALL + - 71 + + cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-63
-71
-71
skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + - 71 + + cor0.col1 / + col0 FROM tab1 AS cor0
----
-63
-71
-71
query I rowsort
SELECT + 5 * - col1 FROM tab1 AS cor0
----
-130
-50
-65
query I rowsort
SELECT + col0 * + col2 + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - col0 * col1 + + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col1 + - 96 FROM tab1
----
-70
-83
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3194
SELECT - col0 * col0 DIV - col2 FROM tab1 AS cor0
----
0
66
71
skipif mysql # not compatible
query I rowsort label-3194
SELECT - col0 * col0 / - col2 FROM tab1 AS cor0
----
0
66
71
query I rowsort
SELECT + + ( cor0.col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + col1 * - 21 AS col0 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT ALL + - col0 - 65 FROM tab0 AS cor0
----
-100
-154
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3198
SELECT + - col0 + CAST( 32 AS SIGNED ) FROM tab2 AS cor0
----
-46
-47
25
skipif mysql # not compatible
query I rowsort label-3198
SELECT + - col0 + CAST ( 32 AS INTEGER ) FROM tab2 AS cor0
----
-46
-47
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3199
SELECT ALL - col2 - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 * - ( cor0.col0 ) FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 4 col2 FROM tab2
----
11
82
83
query I rowsort
SELECT ALL + - col1 + - col0 * + col0 * col2 AS col2 FROM tab2 AS cor0
----
-1354
-158243
-237175
query I rowsort
SELECT DISTINCT - col2 + col2 * - col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - - col1 * + col1 + cor0.col0 AS col1 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT col1 + - col1 * col0 - + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col1 - col1 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT + + col2 * + 56 FROM tab1 AS cor0
----
3024
3192
5376
query I rowsort
SELECT ALL + col1 * col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 + - col0 col2 FROM tab1 AS cor0
----
-3
13
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3210
SELECT ALL - CAST( + 10 AS SIGNED ) * col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-107
-416
-911
skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL - CAST ( + 10 AS INTEGER ) * col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-107
-416
-911
query I rowsort
SELECT ALL + cor0.col0 + + 19 FROM tab2 AS cor0
----
26
97
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT ALL - CAST( - col1 AS SIGNED ) DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - CAST ( - col1 AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + - 73 + col0 AS col1 FROM tab0 AS cor0
----
-38
-49
16
query I rowsort
SELECT ALL + ( + col1 ) + - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - cor0.col2 + - col2 * + col2 FROM tab1 cor0
----
-2970
-3306
-9312
query I rowsort
SELECT + - cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + col1 + tab2.col1 * + ( - col0 ) FROM tab2
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab1.col2 + col0 col1 FROM tab1
----
111
163
31
query I rowsort
SELECT ALL - col1 * + tab2.col1 * ( - col2 + col0 ) FROM tab2
----
-11849
-181012
19220
query I rowsort
SELECT DISTINCT 49 + - col0 * col1 FROM tab1
----
-29
-591
-991
query I rowsort
SELECT DISTINCT col0 * col1 * 69 + 33 AS col1 FROM tab2
----
15006
317571
92700
query I rowsort
SELECT 84 + col1 FROM tab2 AS cor0
----
101
115
143
query I rowsort
SELECT DISTINCT - 88 + col2 * col2 AS col0 FROM tab2
----
1356
588
641
query I rowsort
SELECT ALL + ( + 42 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT ALL + col2 * - 88 AS col0 FROM tab1
----
-4752
-5016
-8448
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + 74 col2 FROM tab1
----
128
131
170
query I rowsort
SELECT + 93 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT 24 FROM tab0, tab1, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad
query I rowsort
SELECT - cor0.col0 * 84 FROM tab2 AS cor0
----
-588
-6552
-6636
query I rowsort
SELECT DISTINCT + col0 * 76 AS col1 FROM tab0
----
1824
2660
6764
query I rowsort
SELECT + 40 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 - + ( col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1326
-208
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3233
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) - + 40 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) - + 40 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 + - col1 * col2 * + col1 FROM tab2
----
-11020
-25974
-90532
query I rowsort
SELECT + tab1.col0 * col1 - + col2 AS col2 FROM tab1
----
24
583
944
query I rowsort
SELECT DISTINCT col2 * - tab1.col1 - col1 * + col0 * - 81 AS col1 FROM tab1
----
4914
51270
82992
query I rowsort
SELECT ALL - ( tab2.col0 ) + + col1 - - col1 FROM tab2
----
-45
40
55
query I rowsort
SELECT DISTINCT + 70 + - col1 FROM tab0
----
-16
-21
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT DISTINCT + col2 DIV cor0.col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT + col2 / cor0.col0 FROM tab2 AS cor0
----
0
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3240
SELECT DISTINCT + CAST( 18 AS SIGNED ) FROM tab0 AS cor0
----
18
skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT + CAST ( 18 AS INTEGER ) FROM tab0 AS cor0
----
18
query I rowsort
SELECT - + col1 * - 5 FROM tab0 AS cor0
----
430
455
485
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3242
SELECT col0 * tab0.col0 + col1 * + CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3242
SELECT col0 * tab0.col0 + col1 * + CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + ( + col2 ) * col1 + + 38 AS col1 FROM tab0
----
100
2852
7411
query I rowsort
SELECT ALL col1 + - tab0.col0 + + col1 FROM tab0
----
148
159
93
query I rowsort
SELECT - col2 + col2 + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3246
SELECT - - 17 * - col2 + CAST( NULL AS SIGNED ) * col1 + - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3246
SELECT - - 17 * - col2 + CAST ( NULL AS INTEGER ) * col1 + - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 4 * - col1 AS col2 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT + + cor0.col0 + col2 * ( - col2 ) + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-10176
-2991
-3825
query I rowsort
SELECT 57 + + col0 + col1 FROM tab2 AS cor0
----
153
194
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3250
SELECT DISTINCT col1 * + col0 + CAST( 61 AS SIGNED ) FROM tab0 AS cor0
----
2125
3456
8160
skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT col1 * + col0 + CAST ( 61 AS INTEGER ) FROM tab0 AS cor0
----
2125
3456
8160
query I rowsort
SELECT ALL + 9 + + col2 * + col1 FROM tab1 AS cor0
----
1257
1413
579
query I rowsort
SELECT + + 59 + - col2 FROM tab0 cor0
----
-23
26
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - - 50 - + col2 FROM tab2 AS cor0
----
12
23
24
skipif mysql # not compatible
query I rowsort
SELECT col0 * - col2 + col1 * - 12 + col2 * CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-17052
-3390
-7017
query I rowsort
SELECT DISTINCT + col0 + + col2 + ( col2 + - col1 ) AS col1 FROM tab0 AS cor0
----
-60
162
4
query I rowsort
SELECT ALL - 47 AS col0 FROM tab0 AS cor0
----
-47
-47
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-3258
SELECT col2 DIV col0 + 96 * 65 + - col0 FROM tab1 AS cor0
----
6161
6176
6255
skipif mysql # not compatible
query I rowsort label-3258
SELECT col2 / col0 + 96 * 65 + - col0 FROM tab1 AS cor0
----
6161
6176
6255
query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + col1 * cor0.col1 + ( - cor0.col0 * + col0 ) AS col0 FROM tab0 AS cor0
----
360
6820
8184
query I rowsort
SELECT ALL + 23 * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
211968
67068
74727
query I rowsort
SELECT cor0.col0 - col1 * - col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT DISTINCT + - 36 DIV col0 AS col1 FROM tab2 AS cor0
----
-5
0
skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT + - 36 / col0 AS col1 FROM tab2 AS cor0
----
-5
0
query I rowsort
SELECT ALL tab2.col1 * tab2.col1 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 4a2f25e7025075a0ce048be425c35957
onlyif mysql # use DIV operator for integer division
query I rowsort label-3265
SELECT DISTINCT + CAST( col0 AS SIGNED ) DIV - col1 FROM tab1
----
-6
0
skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT + CAST ( col0 AS INTEGER ) / - col1 FROM tab1
----
-6
0
query I rowsort
SELECT + cor0.col1 + + 12 FROM tab2, tab2 cor0
----
9 values hashing to d9d7d9f39b273199fc550ef04591e9d3
query I rowsort
SELECT ALL - cor0.col1 + - col0 * + 58 AS col0 FROM tab1 cor0
----
-200
-3722
-4653
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col1 FROM tab1
----
-78
-78
-78
query I rowsort
SELECT - col2 + + col0 + col0 FROM tab0
----
15
69
96
query I rowsort
SELECT DISTINCT 13 * 4 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
52
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
3
64
80
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + 36 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT - cor0.col2 + 30 FROM tab1 AS cor0
----
-24
-27
-66
query I rowsort
SELECT DISTINCT cor0.col2 + ( col0 ) FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + + col0 * cor0.col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col2 * - col1 col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + cor0.col2 + + 97 AS col0 FROM tab0 AS cor0
----
130
179
98
query I rowsort
SELECT DISTINCT 24 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3280
SELECT + col2 DIV col0 + col2 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-3280
SELECT + col2 / col0 + col2 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT DISTINCT col0 + 98 AS col2 FROM tab2
----
105
176
177
query I rowsort
SELECT - + cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
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 ALL 18 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2082
3413
8117
query I rowsort
SELECT col0 * 67 AS col1 FROM tab0 cor0
----
1608
2345
5963
query I rowsort
SELECT + + ( col1 ) + col2 * col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT ALL - - col0 + col1 * col2 * + col1 FROM tab2 AS cor0
----
11061
25954
90584
query I rowsort
SELECT ALL + col0 * col1 + col0 + 35 FROM tab1 cor0
----
1155
116
739
query I rowsort
SELECT ALL 58 + cor0.col1 + col1 FROM tab2 AS cor0
----
120
176
92
query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - ( col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT ALL + + col0 DIV col1 + + ( + 61 ) * col1 AS col0 FROM tab2 cor0
----
1041
1891
3600
skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL + + col0 / col1 + + ( + 61 ) * col1 AS col0 FROM tab2 cor0
----
1041
1891
3600
query I rowsort
SELECT ALL col1 * - col1 + + col0 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 6 * col0 col1 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT DISTINCT - 57 * col1 FROM tab0 AS cor0
----
-4902
-5187
-5529
query I rowsort
SELECT DISTINCT - - 16 * col0 AS col0 FROM tab2 AS cor0
----
112
1248
1264
query I rowsort
SELECT DISTINCT + 58 * col0 FROM tab1 AS cor0
----
174
3712
4640
query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + 94 * cor0.col0 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT + col1 * col0 * - 48 FROM tab1 AS cor0
----
-30720
-3744
-49920
query I rowsort
SELECT ALL - col2 + + col2 + + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + 74 + col0 AS col1 FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT + - col2 + - ( - 73 ) * + cor0.col0 FROM tab0 AS cor0
----
1719
2554
6415
onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT + + col0 DIV - 37 + col2 AS col0 FROM tab0 AS cor0
----
1
33
80
skipif mysql # not compatible
query I rowsort label-3304
SELECT + + col0 / - 37 + col2 AS col0 FROM tab0 AS cor0
----
1
33
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col0 + col0 ) col0 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT + tab1.col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 70 * + col0 FROM tab1
----
210
4480
5600
query I rowsort
SELECT ALL - + 64 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT + col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col0 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT - + col1 - ( - 64 ) FROM tab2 cor0
----
33
47
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col0 ) * + cor0.col0 + - 21 col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to be7d0cab1b40a52b4bb1669c7d6581e2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3313
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 75 FROM tab2, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 75 FROM tab2, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col1 - 81 FROM tab2 AS cor0
----
-22
-50
-64
query I rowsort
SELECT + - col1 * - ( col1 ) * - col1 + + 20 FROM tab0 cor0
----
-636036
-753551
-912653
query I rowsort
SELECT ALL col2 + col2 + col2 AS col1 FROM tab0
----
246
3
99
query I rowsort
SELECT ALL + cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ( col1 * + 54 + col1 ) FROM tab1
----
1430
550
715
query I rowsort
SELECT ALL + 54 * + col0 AS col0 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT + tab0.col0 + - cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7fcac4667bd2efef5a729ddca0d236d9
skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 + + CAST ( col1 AS REAL ) * cor0.col1 FROM tab0 cor0
----
7310
8190
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3323
SELECT ALL - + col2 + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - + col2 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3324
SELECT ALL col2 + cor0.col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL col2 + cor0.col0 / - col1 AS col2 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT ALL + + col2 + - 7 * - col0 FROM tab0 AS cor0
----
201
246
705
query I rowsort
SELECT DISTINCT col0 * ( col1 * - col2 ) + - col2 * ( + col0 ) FROM tab1 AS cor0
----
-107520
-40128
-4374
onlyif mysql # use DIV operator for integer division
query I rowsort label-3327
SELECT - col1 + + 51 DIV - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3327
SELECT - col1 + + 51 / - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col1 * 26 AS col1 FROM tab1 AS cor0
----
-260
-338
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3329
SELECT - col1 + + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3329
SELECT - col1 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3330
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * 11 + - col2 AS col0 FROM tab0 AS cor0
----
10
330
820
onlyif mysql # use DIV operator for integer division
query I rowsort label-3332
SELECT DISTINCT col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT col1 / - col0 AS col1 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT + col0 * - 81 FROM tab1
----
-243
-5184
-6480
query I rowsort
SELECT + col1 * - cor0.col2 - - col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3335
SELECT + CAST( - ( col0 ) AS SIGNED ) * - 45 - + 4 AS col1 FROM tab1
----
131
2876
3596
skipif mysql # not compatible
query I rowsort label-3335
SELECT + CAST ( - ( col0 ) AS INTEGER ) * - 45 - + 4 AS col1 FROM tab1
----
131
2876
3596
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to f464d40c605db608927f2c4d66190a23
query I rowsort
SELECT DISTINCT - col0 + - col0 * - tab2.col0 FROM tab2
----
42
6006
6162
query I rowsort
SELECT ALL + col1 + - col2 * - cor0.col1 * + ( col1 ) FROM tab1 cor0
----
16237
36530
5710
onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT 26 DIV - cor0.col1 + - cor0.col2 + + col0 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-3339
SELECT 26 / - cor0.col1 + - cor0.col2 + + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - 59 * - 61 AS col1 FROM tab1 AS cor0
----
3599
3599
3599
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3341
SELECT + CAST( NULL AS SIGNED ) * - col2 + col0 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3341
SELECT + CAST ( NULL AS INTEGER ) * - col2 + col0 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3342
SELECT - CAST( NULL AS SIGNED ) + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3342
SELECT - CAST ( NULL AS INTEGER ) + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV - col0 + - col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT CAST ( col0 AS INTEGER ) / - col0 + - col1 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT ALL + 35 * + col2 - + col1 AS col0 FROM tab1 cor0
----
1864
1985
3347
onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT col0 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-3345
SELECT col0 + col1 / col0 AS col0 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT ALL + ( - col2 ) * - col2 * - col1 + + col1 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT + ( 48 ) AS col1 FROM tab1 AS cor0
----
48
48
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-3348
SELECT DISTINCT - + cor0.col0 * col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT - + cor0.col0 * col2 / - col2 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - - col0 + - cor0.col0 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
-185
-3594
-7613
query I rowsort
SELECT DISTINCT - 68 * - col0 + + col2 AS col2 FROM tab0 AS cor0
----
1665
2381
6134
query I rowsort
SELECT + col1 * col1 + cor0.col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT DISTINCT - + cor0.col1 + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT - + cor0.col1 + col1 / + col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT - col1 * col1 + ( + col1 ) + - col2 FROM tab1 AS cor0
----
-147
-252
-704
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3354
SELECT ALL CAST( NULL AS SIGNED ) - tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL CAST ( NULL AS INTEGER ) - tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL - 78 * - col2 FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT DISTINCT col0 * col0 + - col2 - + 26 FROM tab0 AS cor0
----
1198
517
7813
query I rowsort
SELECT ALL + + 42 + col0 AS col2 FROM tab2 AS cor0
----
120
121
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT DISTINCT - - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT - - col0 / col2 AS col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT col2 * - col2 * + ( - col1 ) + col1 AS col2 FROM tab0 AS cor0
----
194
611975
93740
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3361
SELECT - col0 / cor0.col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3361
SELECT - col0 / cor0.col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * col2 + 90 * col1 FROM tab1 cor0
----
-78
330
936
query I rowsort
SELECT 0 * col2 * - ( col0 * - col2 ) - + ( col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col1 * col0 * - 87 + col2 * col1 AS col2 FROM tab2 AS cor0
----
-116195
-18042
-398840
query I rowsort
SELECT + col1 + ( cor0.col0 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col2 * ( cor0.col2 ) + - col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT - col2 * 47 FROM tab2 cor0
----
-1222
-1269
-1786
query I rowsort
SELECT DISTINCT + - 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-66
query I rowsort
SELECT ALL cor0.col0 + cor0.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7ce85f3c0cc2feeac41619efbad0a8a1
query I rowsort
SELECT - 77 + 66 FROM tab2 AS cor0
----
-11
-11
-11
query I rowsort
SELECT ALL + - col1 * 41 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-3502
-3642
-3942
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08
query I rowsort
SELECT DISTINCT ( + col0 ) + col1 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT 82 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT col2 DIV col1 + tab1.col2 AS col2 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-3375
SELECT col2 / col1 + tab1.col2 AS col2 FROM tab1
----
103
56
62
query I rowsort
SELECT - 33 * col2 AS col2 FROM tab1
----
-1782
-1881
-3168
query I rowsort
SELECT DISTINCT + col2 * + col2 + - col1 AS col2 FROM tab2
----
1427
617
698
query I rowsort
SELECT ALL + col2 + ( tab0.col2 * col0 ) AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT col1 * - 53 + col2 AS col1 FROM tab0 AS cor0
----
-4525
-4741
-5140
query I rowsort
SELECT DISTINCT - ( col0 ) + - cor0.col1 * - col2 + col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3381
SELECT ALL + CAST( col2 AS SIGNED ) * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + CAST ( col2 AS INTEGER ) * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3382
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 * - col0 col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - + col0 * 56 AS col1 FROM tab2 AS cor0
----
-392
-4368
-4424
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3385
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + col0 * - 9 + - tab1.col1 * + col1 + + col0 FROM tab1
----
-612
-700
-809
query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + col0 * col2 * cor0.col0 + + 37 * col2 col0 FROM tab2 AS cor0
----
159163
2339
238581
query I rowsort
SELECT ALL col2 * - 54 AS col2 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT DISTINCT - 88 FROM tab0, tab1, tab2 AS cor0
----
-88
query I rowsort
SELECT DISTINCT col2 * - col0 * - tab0.col0 FROM tab0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT ALL - col0 DIV - col1 AS col0 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - col0 / - col1 AS col0 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT + 75 + + col1 AS col1 FROM tab2 AS cor0
----
106
134
92
query I rowsort
SELECT DISTINCT + 11 * cor0.col1 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT 15 + col1 FROM tab1 cor0
----
25
28
41
query I rowsort
SELECT + col2 + cor0.col0 * ( + col2 ) FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col1 col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + tab0.col0 * col1 - + col1 FROM tab0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - ( + 23 ) * + col1 + - col2 col0 FROM tab0 cor0
----
-1978
-2093
-2231
onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT - col1 + cor0.col1 + cor0.col0 * col0 DIV - cor0.col2 FROM tab0 cor0
----
-1225
-17
-96
skipif mysql # not compatible
query I rowsort label-3402
SELECT - col1 + cor0.col1 + cor0.col0 * col0 / - cor0.col2 FROM tab0 cor0
----
-1225
-17
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3403
SELECT ALL col0 * - col0 + 23 DIV + 92 FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL col0 * - col0 + 23 / + 92 FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort
SELECT + ( - col0 ) * - CAST ( col2 AS REAL ) + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col2 + - col2 + 45 AS col1 FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT col1 * col2 * 56 + cor0.col0 FROM tab0 cor0
----
158952
417961
5467
onlyif mysql # use DIV operator for integer division
query I rowsort label-3407
SELECT + col0 + - col2 DIV + col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3407
SELECT + col0 + - col2 / + col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col0 + ( - 93 ) FROM tab1 AS cor0
----
-13
-29
-90
query I rowsort
SELECT - col2 + + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-3410
SELECT DISTINCT col2 DIV 14 + + 21 AS col1 FROM tab2 AS cor0
----
22
23
skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT col2 / 14 + + 21 AS col1 FROM tab2 AS cor0
----
22
23
query I rowsort
SELECT ALL - + cor0.col1 * 45 FROM tab1 AS cor0
----
-1170
-450
-585
query I rowsort
SELECT col0 * col2 * + 86 + col0 FROM tab0 AS cor0
----
3045
627717
68136
query I rowsort
SELECT ALL + cor0.col0 * + 69 FROM tab0 AS cor0
----
1656
2415
6141
onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT + col0 DIV - col1 + col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-3414
SELECT + col0 / - col1 + col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col1 + - ( col0 ) FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - col2 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - + col0 * - ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + - col1 + cor0.col2 * col1 * + col2 AS col2 FROM tab1 AS cor0
----
119795
32480
75790
query I rowsort
SELECT col2 * - col2 + 72 AS col0 FROM tab1 AS cor0
----
-2844
-3177
-9144
query I rowsort
SELECT - ( + 90 ) AS col2 FROM tab0 cor0
----
-90
-90
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3421
SELECT + CAST( NULL AS SIGNED ) + + 23 * + col1 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3421
SELECT + CAST ( NULL AS INTEGER ) + + 23 * + col1 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col1 FROM tab2, tab2 AS cor0
----
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT DISTINCT - col0 + col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT - col0 + col1 / + col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT - + ( + 21 ) + col0 * + col2 FROM tab0 cor0
----
14
7277
771
query I rowsort
SELECT ALL 99 AS col0 FROM tab2 cor0
----
99
99
99
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col1 + + col2 * - col0 + - col2 FROM tab0 AS cor0
----
-7289
-739
61
query I rowsort
SELECT ALL - 24 + + col2 FROM tab0 AS cor0
----
-23
58
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col1 FROM tab1 AS cor0
----
25
25
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-3430
SELECT - col1 DIV col1 - + ( - col1 ) * - col2 FROM tab0 cor0
----
-2839
-7463
-98
skipif mysql # not compatible
query I rowsort label-3430
SELECT - col1 / col1 - + ( - col1 ) * - col2 FROM tab0 cor0
----
-2839
-7463
-98
query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 + 94 FROM tab2 cor0
----
-5990
-6147
45
query I rowsort
SELECT 2 + + col1 AS col1 FROM tab0 AS cor0
----
88
93
99
skipif mysql # not compatible
query I rowsort
SELECT ALL 94 + + col2 + CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
146
148
170
query I rowsort
SELECT DISTINCT + - 60 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-157
-2898
-7522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL + col1 * + 97 FROM tab1 AS cor0
----
1261
2522
970
query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab0 AS cor0
----
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT DISTINCT - col2 * col0 DIV + col1 FROM tab2 AS cor0
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - col2 * col0 / + col1 FROM tab2 AS cor0
----
-176
-34
-6
query I rowsort
SELECT - 96 * + col2 AS col1 FROM tab1 AS cor0
----
-5184
-5472
-9216
query I rowsort
SELECT ALL - ( - 38 ) AS col2 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT col2 * 58 + cor0.col0 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
1731
2800
4400
query I rowsort
SELECT ALL col1 + ( col2 ) - - col0 FROM tab0
----
133
143
262
query I rowsort
SELECT - col1 + + 42 - + col1 FROM tab0
----
-130
-140
-152
query I rowsort
SELECT + 10 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT 49 * + col1 - + col0 FROM tab2 AS cor0
----
1512
2813
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT DISTINCT - - 57 * 98 - + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
5568
5585
5586
skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT - - 57 * 98 - + col2 / col0 AS col1 FROM tab1 AS cor0
----
5568
5585
5586
query I rowsort
SELECT - col2 + + 95 FROM tab2 AS cor0
----
57
68
69
query I rowsort
SELECT - 95 + + col1 AS col1 FROM tab1 AS cor0
----
-69
-82
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3449
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 * col0 * - col1 + + 14 + 81 AS col2 FROM tab2 AS cor0
----
-22736
-271423
-6632
query I rowsort
SELECT ALL col0 - 22 AS col2 FROM tab2
----
-15
56
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) + - col2 + - col1 col1 FROM tab2
----
-134
-163
-65
query I rowsort
SELECT ALL - 12 FROM tab0, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT ALL - ( col1 ) + col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + col0 + + ( - tab1.col1 ) * - ( - ( tab1.col0 ) ) AS col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT DISTINCT 69 + + 28 * + col0 FROM tab2 AS cor0
----
2253
2281
265
query I rowsort
SELECT ALL - ( 52 ) * col1 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
1564
2729
8540
query I rowsort
SELECT DISTINCT + 96 - col1 FROM tab2 cor0
----
37
65
79
query I rowsort
SELECT DISTINCT - 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-3460
SELECT + 64 + - col0 * - col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3460
SELECT + 64 + - col0 * - col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 77 + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
233
235
91
query I rowsort
SELECT ALL - ( + col2 ) - + col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + + col1 + 81 FROM tab2 AS cor0
----
112
140
98
query I rowsort
SELECT ALL + 42 + - cor0.col2 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 5b4d7d54e03d807bb8b61005076f90eb
onlyif mysql # use DIV operator for integer division
query I rowsort label-3465
SELECT + col1 DIV col2 + + col2 DIV - col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3465
SELECT + col1 / col2 + + col2 / - col0 FROM tab1
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT + + ( cor0.col2 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3466
SELECT + + ( cor0.col2 ) / + col2 AS col1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3467
SELECT - col1 + col2 DIV - 70 AS col2 FROM tab0 AS cor0
----
-86
-92
-97
skipif mysql # not compatible
query I rowsort label-3467
SELECT - col1 + col2 / - 70 AS col2 FROM tab0 AS cor0
----
-86
-92
-97
query I rowsort
SELECT + - col0 * + 90 + col0 FROM tab1 AS cor0
----
-267
-5696
-7120
query I rowsort
SELECT + col0 + 98 FROM tab2 cor0
----
105
176
177
query I rowsort
SELECT ALL + col1 + - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col0 * - 24 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT DISTINCT 76 * + cor1.col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
1824
2660
6764
query I rowsort
SELECT DISTINCT 9 * tab0.col2 FROM tab0, tab1 AS cor0
----
297
738
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3475
SELECT DISTINCT - col0 + CAST( - col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT - col0 + CAST ( - col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT col2 * - ( - col0 ) DIV cor0.col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3476
SELECT col2 * - ( - col0 ) / cor0.col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - - cor0.col2 * + col0 + 49 AS col1 FROM tab0 AS cor0
----
7347
84
841
query I rowsort
SELECT ALL + col2 + ( col2 * cor0.col2 ) AS col0 FROM tab2 cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT ALL + col2 * 18 - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
1475
16
591
skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + col2 * 18 - col1 / col0 AS col2 FROM tab0 AS cor0
----
1475
16
591
query I rowsort
SELECT ALL - + col2 + + col2 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
611802
93621
96
query I rowsort
SELECT ( 86 ) - col1 FROM tab0 AS cor0
----
-11
-5
0
query I rowsort
SELECT + col0 + cor0.col2 + + col0 FROM tab0 cor0
----
260
71
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3483
SELECT + col0 * ( col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3483
SELECT + col0 * ( col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - ( col1 ) AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - + cor0.col1 FROM tab2, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL 24 * - col0 + col2 - + col2 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT DISTINCT col2 * col1 + - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - + 37 * + col0 FROM tab0 AS cor0
----
-1295
-3293
-888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - - col2 * - col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col0 * col2 + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT 72 * + col0 AS col0 FROM tab1 AS cor0
----
216
4608
5760
query I rowsort
SELECT - 71 + - col0 FROM tab0
----
-106
-160
-95
query I rowsort
SELECT + col2 - - col2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT - 85 * col2 FROM tab1
----
-4590
-4845
-8160
query I rowsort
SELECT - ( col0 * + col2 + tab1.col1 ) AS col0 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT + 86 + + col2 * - col2 FROM tab0
----
-1003
-6638
85
query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab1
----
94
query I rowsort
SELECT col2 + + col0 * col2 AS col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - + col1 + - ( cor0.col2 * - ( ( - col0 ) ) ) FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT - col1 + + 99 FROM tab1 AS cor0
----
73
86
89
query I rowsort
SELECT 37 * + col2 AS col1 FROM tab1
----
1998
2109
3552
query I rowsort
SELECT - ( + 82 ) + col2 + - 45 FROM tab1 AS cor0
----
-31
-70
-73
query I rowsort
SELECT 65 * col1 + col1 AS col0 FROM tab2 cor0
----
1122
2046
3894
query I rowsort
SELECT + 92 + - col1 FROM tab2 AS cor0
----
33
61
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3506
SELECT - col0 * + col1 * col2 + - CAST( - col2 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
-2808
-35910
-98592
skipif mysql # not compatible
query I rowsort label-3506
SELECT - col0 * + col1 * col2 + - CAST ( - col2 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
-2808
-35910
-98592
query I rowsort
SELECT - col0 + 21 AS col0 FROM tab2 AS cor0
----
-57
-58
14
query I rowsort
SELECT + col0 * col0 * + col2 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3509
SELECT ( col1 ) * + CAST( NULL AS SIGNED ) * + ( col1 + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3509
SELECT ( col1 ) * + CAST ( NULL AS INTEGER ) * + ( col1 + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 70 col0 FROM tab1
----
210
4480
5600
query I rowsort
SELECT ALL - - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + 85 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 82 col2 FROM tab2, tab2 AS cor0
----
82
query I rowsort
SELECT + - col0 * + col2 * + col1 + 27 * 99 FROM tab1 AS cor0
----
-1539
-33807
-97167
query I rowsort
SELECT ALL tab0.col0 + - ( - 6 + col1 ) * col2 AS col0 FROM tab0
----
-2616
-56
-6881
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 59 * col2 col1 FROM tab1 AS cor0
----
3189
3427
5744
onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT - col2 DIV + tab1.col2 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3517
SELECT - col2 / + tab1.col2 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT cor0.col2 - - 12 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2262c2f3e3d5cc56cd9d52c97ca1ab4a
query I rowsort
SELECT DISTINCT - - col2 + - cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - col1 * - col0 + col1 * col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
22859
3527
5694
query I rowsort
SELECT col1 + - cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - + col0 * 95 - col1 * + col2 FROM tab2 cor0
----
-1502
-8151
-8944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3523
SELECT ALL + CAST( - col0 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL + CAST ( - col0 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + 39 col2 FROM tab0 AS cor0
----
128
63
74
query I rowsort
SELECT DISTINCT + col1 + col2 * col0 AS col0 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT ALL + cor0.col1 * + col0 + + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col1 + - 51 * - tab1.col0 AS col2 FROM tab1
----
179
3274
4093
onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT 0 * + ( col0 ) + - col1 DIV col0 + + col2 AS col1 FROM tab1
----
46
57
96
skipif mysql # not compatible
query I rowsort label-3528
SELECT 0 * + ( col0 ) + - col1 / col0 + + col2 AS col1 FROM tab1
----
46
57
96
query I rowsort
SELECT ALL 32 + tab0.col0 FROM tab0
----
121
56
67
query I rowsort
SELECT ( - col2 * col1 ) + - col2 * col1 AS col1 FROM tab1
----
-1140
-2496
-2808
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT ALL - CAST( NULL AS SIGNED ) - 91 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL - CAST ( NULL AS INTEGER ) - 91 col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 34 - - ( col1 ) AS col2 FROM tab2
----
51
65
93
query I rowsort
SELECT - ( - col2 ) - - col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + col0 + + tab1.col1 * col2 AS col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL ( col0 ) + - col2 + col1 AS col0 FROM tab1
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT DISTINCT - ( - col2 ) DIV col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT - ( - col2 ) / col0 FROM tab2
----
0
3
query I rowsort
SELECT DISTINCT - col2 * - 62 AS col1 FROM tab2 AS cor0
----
1612
1674
2356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3538
SELECT - col1 + + CAST( 2 AS SIGNED ) * col1 * - col1 FROM tab0 AS cor0
----
-14878
-16653
-18915
skipif mysql # not compatible
query I rowsort label-3538
SELECT - col1 + + CAST ( 2 AS INTEGER ) * col1 * - col1 FROM tab0 AS cor0
----
-14878
-16653
-18915
query I rowsort
SELECT ALL + 4 * + tab2.col1 AS col1 FROM tab2
----
124
236
68
query I rowsort
SELECT - 41 + col0 FROM tab2 AS cor0
----
-34
37
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT ALL - col1 DIV - col0 + + col0 AS col1 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - col1 / - col0 + + col0 AS col1 FROM tab1
----
11
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3542
SELECT - 77 DIV tab2.col0 + - 15 * ( - tab2.col0 ) col0 FROM tab2
----
1170
1185
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3542
SELECT - 77 / tab2.col0 + - 15 * ( - tab2.col0 ) col0 FROM tab2
----
1170
1185
94
query I rowsort
SELECT ( col2 ) * col1 - + tab2.col2 * tab2.col0 FROM tab2
----
-2356
-494
648
query I rowsort
SELECT + - col2 * - 12 + col0 FROM tab2 cor0
----
331
390
535
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3545
SELECT ALL - col1 * - CAST( + 78 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
1309
2387
4543
skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL - col1 * - CAST ( + 78 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
1309
2387
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + col1 * + ( 10 ) FROM tab2 cor0
----
-170
-310
-590
query I rowsort
SELECT cor0.col2 * + 42 FROM tab1 AS cor0
----
2268
2394
4032
query I rowsort
SELECT DISTINCT + - col2 * ( col2 * col1 ) + col1 + - col2 * col1 FROM tab2 AS cor0
----
-23405
-25177
-41359
query I rowsort
SELECT DISTINCT + + cor0.col0 - + col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( + col2 ) col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col1 * ( + ( col1 ) ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col1 + + col1 * 61 * + col0 AS col0 FROM tab2 AS cor0
----
13206
280663
81906
query I rowsort
SELECT DISTINCT - 31 + col2 FROM tab2 AS cor0
----
-4
-5
7
query I rowsort
SELECT ALL + col0 + + col0 + + col0 * 66 FROM tab1
----
204
4352
5440
query I rowsort
SELECT ALL + - col1 - - col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL col1 * + col2 + + 68 * - col0 FROM tab1 AS cor0
----
-3782
-4192
1200
query I rowsort
SELECT + 22 * - col0 FROM tab2 AS cor0
----
-154
-1716
-1738
onlyif mysql # use DIV operator for integer division
query I rowsort label-3560
SELECT - - col0 + col1 - 50 DIV col2 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-3560
SELECT - - col0 + col1 - 50 / col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col0 + col1 + cor0.col1 AS col2 FROM tab2 cor0
----
113
196
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3562
SELECT - cor0.col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3562
SELECT - cor0.col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * 90 FROM tab1 AS cor0
----
270
5760
7200
query I rowsort
SELECT cor0.col0 * + col2 - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + + col2 * - col2 + - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-297
34
574
onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT DISTINCT col0 + - col1 DIV + 40 FROM tab0
----
22
33
87
skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT col0 + - col1 / + 40 FROM tab0
----
22
33
87
query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab1, tab2, tab2 AS cor0
----
7
query I rowsort
SELECT col1 + col0 + - col2 AS col1 FROM tab1
----
-25
-3
17
query I rowsort
SELECT DISTINCT - col1 * - tab1.col2 - + col1 AS col2 FROM tab1
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 + 81 col0 FROM tab0
----
7477
8362
9490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col1 FROM tab1 AS cor0
----
47
47
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT - + CAST( - 31 AS SIGNED ) FROM tab0 AS cor0
----
31
31
31
skipif mysql # not compatible
query I rowsort label-3572
SELECT - + CAST ( - 31 AS INTEGER ) FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT ALL - col0 + 27 FROM tab1 AS cor0
----
-37
-53
24
query I rowsort
SELECT ALL ( + cor0.col1 ) * + col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT DISTINCT + col2 DIV - 89 + - col1 DIV - 37 FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + col2 / - 89 + - col1 / - 37 FROM tab0 AS cor0
----
2
query I rowsort
SELECT DISTINCT - + col2 - + col1 * - col0 AS col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + 3 * 13 AS col1 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT + col1 * + col0 + - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + + col1 * 70 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT ALL + col0 + - 12 FROM tab0 AS cor0
----
12
23
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-3581
SELECT ALL + + 5 DIV col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL + + 5 / col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3582
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 57 * + col1 + - ( col1 + + col1 ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 57 * + col1 + - ( col1 + + col1 ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 48 * 27 FROM tab1 AS cor0
----
1296
1296
1296
query I rowsort
SELECT DISTINCT + + col0 * + 66 + col2 FROM tab0 AS cor0
----
1617
2311
5956
query I rowsort
SELECT ALL col0 + ( - tab0.col2 ) FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL col2 * col2 * + 65 + col0 FROM tab1
----
189543
211249
599120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 74 - + col0 FROM tab0 cor0
----
-15
39
50
query I rowsort
SELECT ALL - col1 * - 86 + - tab0.col2 FROM tab0
----
7363
7744
8341
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3590
SELECT - CAST( - 41 AS SIGNED ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3590
SELECT - CAST ( - 41 AS INTEGER ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL ( col0 ) * - col0 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-12800
-18
-8192
query I rowsort
SELECT + + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3593
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3593
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * 9 FROM tab1
----
27
576
720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 + + col2 ) * + col1 col2 FROM tab1
----
-70
1326
208
query I rowsort
SELECT - ( + 21 * tab2.col0 ) + - col1 FROM tab2
----
-1676
-1697
-178
query I rowsort
SELECT + tab0.col2 + cor0.col2 * + 46 AS col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 6b8a608fc429652aaf3ca9c93a52f115
query I rowsort
SELECT DISTINCT 74 * col1 AS col1 FROM tab2
----
1258
2294
4366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - col2 * + cor0.col2 * - 3 FROM tab0 AS cor0
----
20172
3
3267
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 * - col2 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT 38 * col2 FROM tab2 AS cor0
----
1026
1444
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-3603
SELECT ALL col0 DIV ( 22 ) FROM tab2
----
0
3
3
skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL col0 / ( 22 ) FROM tab2
----
0
3
3
query I rowsort
SELECT ALL + col1 + ( ( col2 ) ) FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3605
SELECT + col2 + + CAST( + 91 AS SIGNED ) * - col0 AS col0 FROM tab2 cor0
----
-610
-7072
-7151
skipif mysql # not compatible
query I rowsort label-3605
SELECT + col2 + + CAST ( + 91 AS INTEGER ) * - col0 AS col0 FROM tab2 cor0
----
-610
-7072
-7151
query I rowsort
SELECT DISTINCT + col1 * 5 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT - 55 + col0 AS col0 FROM tab0 AS cor0
----
-20
-31
34
query I rowsort
SELECT ( + 73 ) AS col2 FROM tab0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 col2 FROM tab0
----
-178
-48
-70
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) + + col2 * col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT col2 * - ( + ( col2 ) * - 22 ) FROM tab1 AS cor0
----
202752
64152
71478
onlyif mysql # use DIV operator for integer division
query I rowsort label-3612
SELECT - col1 DIV + 86 AS col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3612
SELECT - col1 / + 86 AS col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col2 * + ( - cor0.col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col1 col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + col2 * + col2 - - col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT + + col2 + - col2 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1423
-709
-733
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 82 + col2 col1 FROM tab1 AS cor0
----
-192
-5191
-6464
query I rowsort
SELECT ALL + - 83 * - col1 FROM tab1 AS cor0
----
1079
2158
830
query I rowsort
SELECT DISTINCT 93 + ( col1 ) * col0 FROM tab0 AS cor0
----
2157
3488
8192
onlyif mysql # use DIV operator for integer division
query I rowsort label-3620
SELECT ALL - col2 DIV col0 col1 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - col2 / col0 col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT + 24 * col1 AS col1 FROM tab1
----
240
312
624
query I rowsort
SELECT 49 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT - 43 * col0 + col0 FROM tab1 AS cor0
----
-126
-2688
-3360
query I rowsort
SELECT ( 20 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT + - col1 + ( 55 ) FROM tab0 AS cor0
----
-31
-36
-42
query I rowsort
SELECT + col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + + col2 * 25 + - col0 FROM tab1 AS cor0
----
1347
1361
2320
query I rowsort
SELECT + col1 * - 76 * col2 FROM tab2 cor0
----
-116584
-49096
-63612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3630
SELECT ALL + - col0 * CAST( col2 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL + - col0 * CAST ( col2 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT - col1 * ( col1 ) + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT - col0 * col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
0
query I rowsort
SELECT ALL + 32 * + col0 + col2 AS col2 FROM tab1 cor0
----
150
2105
2656
query I rowsort
SELECT ALL - col2 + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-104
-179
-82
query I rowsort
SELECT 52 * cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d6bf906dae7f7d9fd203ce81afb5fcd2
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT 60 * + col1 * - col0 FROM tab1
----
-38400
-4680
-62400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 - ( - 47 + - col1 ) * 99 col1 FROM tab1 cor0
----
5589
5873
7250
query I rowsort
SELECT ALL + + cor0.col1 * col2 + ( + cor0.col1 ) * col2 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT cor0.col2 + + col1 * 34 * + 86 AS col1 FROM tab0 AS cor0
----
251497
266166
283629
query I rowsort
SELECT ALL + col1 * col0 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) * + ( 31 ) - - cor0.col1 col2 FROM tab2 cor0
----
-1770
-510
-930
query I rowsort
SELECT + - 42 * + col2 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT DISTINCT + + 84 * - col1 AS col1 FROM tab1 cor0
----
-1092
-2184
-840
query I rowsort
SELECT + tab2.col1 * + 13 FROM tab2
----
221
403
767
query I rowsort
SELECT ALL - 46 + col1 * col1 AS col2 FROM tab1
----
123
54
630
query I rowsort
SELECT DISTINCT + 88 FROM tab2, tab1, tab1 AS cor0, tab0
----
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT ALL - ( + col1 ) DIV + col1 AS col2 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL - ( + col1 ) / + col1 AS col2 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT 34 * - 65 FROM tab0
----
-2210
-2210
-2210
query I rowsort
SELECT + col2 * - col1 + + 87 FROM tab0
----
-10
-2751
-7375
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col0 FROM tab2
----
64
query I rowsort
SELECT DISTINCT tab1.col1 * tab1.col1 * col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT + cor0.col1 * tab0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 1d94ea086ff4b04d01d3c46ff83c5c3d
query I rowsort
SELECT DISTINCT - col0 * - col1 * col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT col0 + + col0 * col2 * - col2 AS col0 FROM tab1
----
-207872
-737200
-8745
onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT ALL - + cor0.col0 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - + cor0.col0 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT + + col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT ALL + - col0 DIV col1 col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + - col0 / col1 col1 FROM tab2 AS cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT col2 + + col1 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3660
SELECT col2 + + col1 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT ALL + col0 * - col0 + cor0.col1 DIV cor0.col0 FROM tab0 AS cor0
----
-1223
-573
-7920
skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL + col0 * - col0 + cor0.col1 / cor0.col0 FROM tab0 AS cor0
----
-1223
-573
-7920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * + cor0.col1 + + col1 col2 FROM tab0 AS cor0
----
602
637
679
query I rowsort
SELECT ALL + col1 - col0 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
-22814
-271459
-6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * - col0 col1 FROM tab0 cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-3666
SELECT DISTINCT - - col2 DIV - col1 + cor0.col0 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT - - col2 / - col1 + cor0.col0 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + 11 * + col2 * col2 FROM tab0 AS cor0
----
11
11979
73964
onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT + + 48 DIV col1 + col0 * - col1 FROM tab1 AS cor0
----
-1037
-636
-77
skipif mysql # not compatible
query I rowsort label-3669
SELECT + + 48 / col1 + col0 * - col1 FROM tab1 AS cor0
----
-1037
-636
-77
query I rowsort
SELECT + + 67 AS col0 FROM tab1 AS cor0
----
67
67
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT DISTINCT - + col1 DIV - cor0.col2 + col1 * + cor0.col2 FROM tab0 AS cor0
----
194
2840
7463
skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT - + col1 / - cor0.col2 + col1 * + cor0.col2 FROM tab0 AS cor0
----
194
2840
7463
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3672
SELECT DISTINCT + CAST( 47 AS SIGNED ) FROM tab2
----
47
skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + CAST ( 47 AS INTEGER ) FROM tab2
----
47
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 * + col1 - - col1 FROM tab2 AS cor0
----
119711
51051
5890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - col2 - - col2 * + cor0.col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT 86 + + col2 FROM tab2 AS cor0
----
112
113
124
query I rowsort
SELECT DISTINCT + col1 + - col1 * + col0 * col1 AS col1 FROM tab0
----
-177418
-329218
-736918
query I rowsort
SELECT DISTINCT - col1 + + col1 + col2 * - col0 * + col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT - ( + col2 * - col1 ) + - col2 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT + col2 + - col0 - tab1.col0 FROM tab1
----
-64
-71
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT - col1 DIV - col2 + - col2 - + tab1.col0 FROM tab1
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-3681
SELECT - col1 / - col2 + - col2 - + tab1.col0 FROM tab1
----
-121
-176
-57
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col0 * col2 + col0 / col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT + col1 * - col1 DIV col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3684
SELECT + col1 * - col1 / col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL col1 * + col0 * - col1 AS col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT tab2.col2 * + col0 - col1 FROM tab2
----
158
1969
2985
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( tab1.col0 )
----
query I rowsort
SELECT ALL - tab0.col0 * - col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT col1 + col0 * tab0.col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT col0 * col1 * col0 + - col0 FROM tab2
----
106018
1512
358878
query I rowsort
SELECT col1 * col0 * col2 + col2 * col0 AS col0 FROM tab1
----
107520
40128
4374
query I rowsort
SELECT ALL - col0 * col2 * + col2 + - col0 FROM tab2
----
-114155
-5110
-52806
query I rowsort
SELECT ALL tab1.col2 + + tab1.col2 * + col0 * + col0 AS col1 FROM tab1
----
233529
540
614496
query I rowsort
SELECT DISTINCT col1 / + tab0.col0 + + col0 * col0 + - tab0.col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * - col1 + col2 col2 FROM tab0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-3696
SELECT ALL col1 * col1 DIV - col0 + col1 AS col0 FROM tab2
----
-106
14
15
skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL col1 * col1 / - col0 + col1 AS col0 FROM tab2
----
-106
14
15
query I rowsort
SELECT col1 - col2 * + col2 FROM tab2 cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * col1 col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE - col1 BETWEEN col0 AND NULL
----
query I rowsort
SELECT - col1 * col2 + col1 * + col0 AS col2 FROM tab1
----
-1326
-208
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3701
SELECT + col2 + tab1.col1 DIV col0 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-3701
SELECT + col2 + tab1.col1 / col0 FROM tab1
----
57
62
96
query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT + cor0.col2 - - col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT cor0.col0 - col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 + col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT DISTINCT + col0 DIV col0 + + 37 AS col0 FROM tab0 AS cor0
----
38
skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + col0 / col0 + + 37 AS col0 FROM tab0 AS cor0
----
38
query I rowsort
SELECT ALL 30 + + cor0.col2 + + cor0.col1 FROM tab1 AS cor0
----
110
139
97
query I rowsort
SELECT DISTINCT + 99 * cor0.col2 * 8 - - 63 AS col2 FROM tab1 AS cor0
----
42831
45207
76095
query I rowsort
SELECT DISTINCT col1 * col1 + - col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL + cor0.col1 - col0 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
1322
19094
649613
query I rowsort
SELECT - col0 * col1 + - ( + 78 ) FROM tab1 AS cor0
----
-1118
-156
-718
query I rowsort
SELECT DISTINCT 53 * - col0 FROM tab1 AS cor0
----
-159
-3392
-4240
query I rowsort
SELECT DISTINCT - 79 FROM tab0, tab2 AS cor0
----
-79
query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab2, tab0 cor0
----
41
query I rowsort
SELECT - 45 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT - tab0.col2 + tab0.col1 DIV col0 AS col1 FROM tab0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-3716
SELECT - tab0.col2 + tab0.col1 / col0 AS col1 FROM tab0
----
-30
-81
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3717
SELECT col1 DIV - 26 AS col2 FROM tab0 cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-3717
SELECT col1 / - 26 AS col2 FROM tab0 cor0
----
-3
-3
-3
query I rowsort
SELECT + ( + 50 ) * - col2 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT + - ( - col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + + 65 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-15
1
62
query I rowsort
SELECT ALL + ( + col2 ) * col2 + + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT + ( col1 ) * col0 + - ( + cor0.col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
-101
-512
3926
query I rowsort
SELECT ALL + 85 + - col0 * 77 AS col0 FROM tab2 AS cor0
----
-454
-5921
-5998
query I rowsort
SELECT DISTINCT - - 20 AS col2 FROM tab2 AS cor0
----
20
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 * col0 FROM tab0 cor0
----
118825
49536
720811
query I rowsort
SELECT ALL + 98 * + col0 + col2 FROM tab1 AS cor0
----
348
6329
7936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3727
SELECT DISTINCT + CAST( col0 AS SIGNED ) + - col0 * 2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - col0 * 2 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3728
SELECT DISTINCT - - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT - - col0 / + col0 AS col2 FROM tab2 AS cor0
----
1
query I rowsort
SELECT DISTINCT + - 2 * - col0 AS col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT + - cor0.col1 * col2 - + col2 * cor0.col0 DIV + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif mysql # not compatible
query I rowsort label-3730
SELECT + - cor0.col1 * col2 - + col2 * cor0.col0 / + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + - col2 * 91 FROM tab1 AS cor0
----
-4914
-5187
-8736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3732
SELECT ALL col0 + - col1 * col1 + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL col0 + - col1 * col1 + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT - cor0.col0 - + ( col0 ) DIV col0 FROM tab1 cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-3733
SELECT - cor0.col0 - + ( col0 ) / col0 FROM tab1 cor0
----
-4
-65
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3734
SELECT ALL - col2 DIV cor0.col2 - col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL - col2 / cor0.col2 - col0 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT ALL + - col1 * 50 + + col2 FROM tab2 AS cor0
----
-1523
-2924
-812
query I rowsort
SELECT ALL + col1 - cor0.col1 * - ( col1 ) * ( col2 ) FROM tab2 cor0
----
10999
25978
90565
onlyif mysql # use DIV operator for integer division
query I rowsort label-3737
SELECT cor0.col1 DIV cor0.col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3737
SELECT cor0.col1 / cor0.col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - tab0.col0 * 42 * col1 FROM tab0
----
-142590
-340158
-86688
onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT DISTINCT - col2 DIV + col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT - col2 / + col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ALL + 21 + + 33 AS col1 FROM tab2 AS cor0
----
54
54
54
query I rowsort
SELECT ALL - + 27 FROM tab1 cor0
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col2 ) col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col1 ) + col2 + - 43 col1 FROM tab0 AS cor0
----
-139
-52
-96
query I rowsort
SELECT ALL - + 1 * col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - col1 + + ( + col2 ) FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 + - tab2.col2 * 36 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e66d7b1ffc0d7fa8d95ee25e07e6ed53
query I rowsort
SELECT DISTINCT - cor0.col0 + cor1.col0 * + 4 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
9 values hashing to 4d814a4c3be27db36c4ad1ff6bfbcc64
query I rowsort
SELECT - + ( 42 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT DISTINCT - 94 * col0 + + ( col2 ) + tab0.col2 * - col2 FROM tab0
----
-15008
-3290
-3312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( + tab2.col2 ) col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col1 * col1 + - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1417
-2080
-670
query I rowsort
SELECT DISTINCT - col2 - + 59 FROM tab1 AS cor0
----
-113
-116
-155
query I rowsort
SELECT ALL + col0 + - 33 FROM tab2
----
-26
45
46
query I rowsort
SELECT - 56 + 29 AS col2 FROM tab1
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + + col2 col1 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT + col1 + 59 FROM tab0
----
145
150
156
onlyif mysql # use DIV operator for integer division
query I rowsort label-3758
SELECT - tab1.col0 - - col0 DIV col2 AS col2 FROM tab1
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-3758
SELECT - tab1.col0 - - col0 / col2 AS col2 FROM tab1
----
-3
-63
-80
query I rowsort
SELECT + col0 + - 9 + col2 * + col2 AS col1 FROM tab0
----
1104
27
6804
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3761
SELECT + CAST( NULL AS SIGNED ) + col2 * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3761
SELECT + CAST ( NULL AS INTEGER ) + col2 * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col0 + - col2 * + col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 * col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3765
SELECT ALL col0 * col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL col0 * col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 97 * col1 col0 FROM tab1 AS cor0
----
-1261
-2522
-970
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3767
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - ( col2 ) + ( col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - 60 * cor0.col0 AS col2 FROM tab2 cor0
----
-420
-4680
-4740
query I rowsort
SELECT col1 * col0 * + ( + col0 * col2 ) - col0 FROM tab1 cor0
----
12633
2334656
7987120
query I rowsort
SELECT DISTINCT - col0 + col0 + + 4 AS col0 FROM tab0 AS cor0
----
4
query I rowsort
SELECT - - col2 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - - col0 + + col2 * 97 FROM tab0 AS cor0
----
132
3225
8043
query I rowsort
SELECT + - col1 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * + col0 col1 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT DISTINCT col1 DIV col2 - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT col1 / col2 - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - + 19 * + col1 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT col0 - - cor0.col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT DISTINCT col2 DIV tab0.col0 AS col2 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT col2 / tab0.col0 AS col2 FROM tab0
----
0
1
query I rowsort
SELECT ALL 3 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT + col1 + + col0 * - col2 + - col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 99 * + cor0.col0 - - cor0.col0 FROM tab1 AS cor0
----
-294
-6272
-7840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT DISTINCT col2 + + cor0.col0 DIV - 44 FROM tab1 AS cor0
----
54
56
95
skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT col2 + + cor0.col0 / - 44 FROM tab1 AS cor0
----
54
56
95
query I rowsort
SELECT - - 51 AS col2 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT - cor0.col0 + col2 * - ( 81 ) FROM tab2 AS cor0
----
-2184
-2194
-3157
query I rowsort
SELECT cor0.col0 + - ( col1 ) * col0 + + 80 FROM tab0 AS cor0
----
-1960
-3280
-7930
query I rowsort
SELECT col2 + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT - col1 + 80 AS col0 FROM tab2 AS cor0
----
21
49
63
query I rowsort
SELECT ALL col0 + - col1 + 65 * - col1 AS col2 FROM tab2
----
-1043
-2039
-3816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT CAST( 16 AS SIGNED ) FROM tab1 cor0
----
16
16
16
skipif mysql # not compatible
query I rowsort label-3791
SELECT CAST ( 16 AS INTEGER ) FROM tab1 cor0
----
16
16
16
query I rowsort
SELECT + - ( 72 ) * col0 AS col1 FROM tab2 cor0
----
-504
-5616
-5688
onlyif mysql # use DIV operator for integer division
query I rowsort label-3793
SELECT ALL - + col0 * col1 DIV col2 FROM tab1 AS cor0
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - + col0 * col1 / col2 FROM tab1 AS cor0
----
-1
-10
-11
query I rowsort
SELECT ALL + cor0.col0 + cor0.col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + + col1 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL 25 * - col1 FROM tab1 AS cor0
----
-250
-325
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT - col2 * + col0 * col1 + col0 FROM tab0
----
-3360
-664029
-68088
query I rowsort
SELECT ALL 54 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * 2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 27b4e0878ffa5c5df119ac6cfa79ea07
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3801
SELECT ( - cor0.col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3801
SELECT ( - cor0.col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - cor0.col1 * - col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3803
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 - ( + 20 + col1 ) * + 62 * + col2 AS col1 FROM tab1 AS cor0
----
-105963
-153954
-196320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col2 FROM tab0
----
-16
query I rowsort
SELECT DISTINCT + - col1 + col1 - 87 FROM tab1 AS cor0
----
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3807
SELECT DISTINCT - - col1 * CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 71 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT - 11 * + cor0.col0 FROM tab1 AS cor0
----
-33
-704
-880
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab1 AS cor2, tab0
----
13122 values hashing to 87d51b786674e608ce36bc1e397c2d17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 26 - - col0 * col1 col1 FROM tab2
----
-485
355
3926
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
3645 values hashing to d47b3f87370e79c6978209440a41fac4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 * ( - 21 ) ) col0 FROM tab0
----
-1806
-1911
-2037
onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT ALL - col1 + + col1 DIV 13 FROM tab1
----
-10
-12
-24
skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL - col1 + + col1 / 13 FROM tab1
----
-10
-12
-24
query I rowsort
SELECT ALL tab1.col1 + - col2 * 29 AS col2 FROM tab1
----
-1540
-1643
-2771
query I rowsort
SELECT ALL + col0 + - tab0.col0 AS col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3817
SELECT cor0.col1 + 63 DIV 3 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f280abd89255e5e7ecc6b04ed0dca0d0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3817
SELECT cor0.col1 + 63 / 3 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f280abd89255e5e7ecc6b04ed0dca0d0
query I rowsort
SELECT DISTINCT - + col2 - col1 * - cor0.col0 * col2 FROM tab0 cor0
----
3394
664036
68079
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3819
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) * col1 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) * col1 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col2 ) * col2 - + col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL tab1.col2 AS col2 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT ( col1 ) + + ( 4 ) * col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3822
SELECT ( col1 ) + + ( 4 ) * col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3823
SELECT DISTINCT + col1 * CAST( 69 AS SIGNED ) FROM tab2
----
1173
2139
4071
skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT + col1 * CAST ( 69 AS INTEGER ) FROM tab2
----
1173
2139
4071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * + cor1.col1 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f9d8d88b990156e9be7d60a08ac88dc0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 24 col0 FROM tab2
----
41
55
83
query I rowsort
SELECT col2 + + 26 FROM tab0
----
108
27
59
query I rowsort
SELECT ALL - col2 + 81 AS col0 FROM tab1
----
-15
24
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3828
SELECT + col0 DIV - ( col2 ) + + col1 FROM tab0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-3828
SELECT + col0 / - ( col2 ) + + col1 FROM tab0
----
62
86
90
query I rowsort
SELECT DISTINCT col2 + - 25 AS col1 FROM tab2
----
1
13
2
query I rowsort
SELECT col0 + + col0 * - cor0.col2 + - cor0.col1 FROM tab0 AS cor0
----
-7300
-854
-97
query I rowsort
SELECT + cor0.col1 * col0 + + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - - col0 + + 56 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT ALL - 79 - tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e1cf0bbca346b77fe0f0c678099b8034
onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT ALL col2 + - col0 DIV 82 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL col2 + - col0 / 82 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - + col2 + + col2 + + cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + 62 * + col1 AS col1 FROM tab2 AS cor0
----
1054
1922
3658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3838
SELECT col0 - col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3838
SELECT col0 - col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 - cor0.col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col0 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * cor0.col1 col0 FROM tab1 AS cor0
----
1183
2366
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT DISTINCT ( col2 ) DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT ( col2 ) / col0 AS col2 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL + cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - col0 * cor0.col2 * col2 FROM tab1 cor0
----
-207936
-737280
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 * col1 + col0 col0 FROM tab2 AS cor0
----
1728
3014
5801
query I rowsort
SELECT ALL 14 * - 54 + col2 * 87 FROM tab1 AS cor0
----
3942
4203
7596
query I rowsort
SELECT + - col0 - cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL 74 + + col1 FROM tab2 AS cor0
----
105
133
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3849
SELECT + CAST( NULL AS SIGNED ) - - col1 * col2 / - cor0.col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3849
SELECT + CAST ( NULL AS INTEGER ) - - col1 * col2 / - cor0.col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 + + ( col1 + 99 ) AS col0 FROM tab1 AS cor0
----
16
52
71
query I rowsort
SELECT ALL 93 * - ( col2 ) FROM tab1 cor0
----
-5022
-5301
-8928
query I rowsort
SELECT - 74 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
109
2466
6157
query I rowsort
SELECT ALL - - ( 68 ) + - col0 AS col1 FROM tab2 AS cor0
----
-10
-11
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT ALL col1 DIV + ( col2 ) - + tab0.col1 FROM tab0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL col1 / + ( col2 ) - + tab0.col1 FROM tab0
----
-84
-90
0
query I rowsort
SELECT col2 * - 1 FROM tab0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3856
SELECT CAST( NULL AS DECIMAL ) + - col0 col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3856
SELECT CAST ( NULL AS REAL ) + - col0 col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT + 57 + col1 DIV cor0.col2 FROM tab1 AS cor0
----
57
57
57
skipif mysql # not compatible
query I rowsort label-3857
SELECT + 57 + col1 / cor0.col2 FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT ALL - col0 + + col2 * - col0 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT - - col0 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3860
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col2 + - ( + col2 * col2 ) FROM tab2 AS cor0
----
-1566
-2090
-2210
skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col2 + - ( + col2 * col2 ) FROM tab2 AS cor0
----
-1566
-2090
-2210
query I rowsort
SELECT + 8 * 45 + col1 * col1 FROM tab1 AS cor0
----
1036
460
529
query I rowsort
SELECT DISTINCT 94 * col0 * col2 + ( + 74 + + col0 ) * + 95 FROM tab0
----
13645
701497
83758
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 20 col2 FROM tab0
----
1720
1820
1940
query I rowsort
SELECT 33 * col2 * col1 + + 53 FROM tab2
----
21371
27674
50675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3865
SELECT ALL cor0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL cor0.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 * 58 * + col0 + cor0.col2 * col0 FROM tab2 AS cor0
----
-12366
-264829
-74875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 * - 60 col2 FROM tab0 cor0
----
5184
5549
5855
query I rowsort
SELECT - col2 + 64 FROM tab1 cor0
----
-32
10
7
query I rowsort
SELECT - 88 + col2 AS col2 FROM tab1
----
-31
-34
8
query I rowsort
SELECT DISTINCT - col1 - 57 FROM tab0 AS cor0
----
-143
-148
-154
query I rowsort
SELECT ALL - col2 + 54 * cor0.col0 FROM tab0 AS cor0
----
1263
1889
4724
query I rowsort
SELECT + col0 * 29 AS col1 FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT DISTINCT + col1 * 62 AS col2 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT DISTINCT col0 + 54 * col0 FROM tab2 AS cor0
----
385
4290
4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-3875
SELECT DISTINCT cor0.col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT cor0.col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL col2 * + 65 FROM tab2
----
1690
1755
2470
query I rowsort
SELECT ALL - 27 * - 32 FROM tab2, tab1 AS cor0
----
9 values hashing to 7866d328481fe2c4e3c4ff09a2d9bff9
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab1, tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + col1 * ( - tab0.col1 * col2 ) FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT ( + col1 ) * - col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + col1 * 10 + - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1378
1664
670
query I rowsort
SELECT + col1 * 40 FROM tab0 cor0
----
3440
3640
3880
query I rowsort
SELECT 40 AS col2 FROM tab2 cor0
----
40
40
40
query I rowsort
SELECT - cor0.col0 * - col2 - col2 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3885
SELECT - CAST( 44 AS SIGNED ) - + col2 FROM tab0 AS cor0
----
-126
-45
-77
skipif mysql # not compatible
query I rowsort label-3885
SELECT - CAST ( 44 AS INTEGER ) - + col2 FROM tab0 AS cor0
----
-126
-45
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 * col0 col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT col0 * col0 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ( cor0.col0 ) + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT 51 + col2 * - col1 FROM tab2 AS cor0
----
-1483
-595
-786
query I rowsort
SELECT - col2 * + col2 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT - 36 + + col1 AS col1 FROM tab1 AS cor0
----
-10
-23
-26
query I rowsort
SELECT DISTINCT - + col1 + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + cor0.col0 + - col1 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 + - 29 col0 FROM tab2 AS cor0
----
1505
617
808
query I rowsort
SELECT DISTINCT ( - col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + cor0.col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT - - col1 + - CAST( col2 AS SIGNED ) * col1 * col2 AS col0 FROM tab2 AS cor0
----
-22568
-24531
-39825
skipif mysql # not compatible
query I rowsort label-3899
SELECT - - col1 + - CAST ( col2 AS INTEGER ) * col1 * col2 AS col0 FROM tab2 AS cor0
----
-22568
-24531
-39825
onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT cor0.col0 DIV col0 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-3900
SELECT cor0.col0 / col0 col2 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + tab2.col1 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - col0 + - col0 + + ( 8 + + col1 ) FROM tab0
----
-79
35
46
query I rowsort
SELECT ALL + col1 * - col2 * + ( - tab1.col1 ) + + col2 FROM tab1
----
16320
36558
5757
query I rowsort
SELECT - + col2 - - cor0.col0 * ( cor0.col0 ) AS col2 FROM tab0 cor0
----
1224
543
7839
query I rowsort
SELECT col2 + ( + cor0.col0 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col0 * 17 AS col0 FROM tab1 AS cor0
----
1088
1360
51
query I rowsort
SELECT + col2 + ( + col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - 46 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
query I rowsort
SELECT cor0.col1 + ( + col0 + cor0.col2 ) FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT + col1 * - col1 + col0 + + col2 FROM tab0 AS cor0
----
-7339
-8110
-9373
query I rowsort
SELECT DISTINCT - + col1 * - 96 AS col0 FROM tab0 AS cor0
----
8256
8736
9312
query I rowsort
SELECT ALL - - col1 + 69 FROM tab0 AS cor0
----
155
160
166
onlyif mysql # use DIV operator for integer division
query I rowsort label-3913
SELECT - col2 DIV - ( ( col0 ) + - 82 ) AS col1 FROM tab1 AS cor0
----
-3
-48
0
skipif mysql # not compatible
query I rowsort label-3913
SELECT - col2 / - ( ( col0 ) + - 82 ) AS col1 FROM tab1 AS cor0
----
-3
-48
0
query I rowsort
SELECT ALL + col2 + 7 * 40 FROM tab0 AS cor0
----
281
313
362
query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL <> col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 col0 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - col0 / col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3918
SELECT + col2 DIV col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3918
SELECT + col2 / col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT col2 + col0 + + col1 AS col0 FROM tab2
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 + - col1 col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT ( NULL ) <= NULL
----
query I rowsort
SELECT + col0 + col1 * - col2 * + col1 FROM tab2
----
-10903
-25940
-90428
query I rowsort
SELECT ALL col0 * col0 - col1 * col1 FROM tab0
----
-360
-6820
-8184
query I rowsort
SELECT ALL col0 * + col2 - col0 * col1 * + col0 AS col0 FROM tab2
----
-103095
-1330
-356928
query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 )
----
query I rowsort
SELECT ALL + col2 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT 35 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT ( col1 ) * 18 + col0 AS col2 FROM tab1 AS cor0
----
244
314
471
query I rowsort
SELECT ALL col2 + + col2 * col2 FROM tab0 cor0
----
1122
2
6806
query I rowsort
SELECT ALL - tab0.col2 * - col2 - col0 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT + tab1.col1 + + col1 * - col0 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL col1 * col1 + col1 FROM tab2
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 - col1 * - col0 col1 FROM tab0
----
1272
3360
801
onlyif mysql # use DIV operator for integer division
query I rowsort label-3934
SELECT + col2 DIV col0 + - col2 FROM tab1
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-3934
SELECT + col2 / col0 + - col2 FROM tab1
----
-36
-57
-95
query I rowsort
SELECT DISTINCT + col2 + tab0.col1 * + tab0.col2 AS col0 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - 82 * col1 + + col0 * + col0 * - col0 FROM tab2 cor0
----
-2885
-479390
-494433
query I rowsort
SELECT ALL - col2 + + col1 * col2 * col0 FROM tab2 AS cor0
----
119626
50996
5832
query I rowsort
SELECT - 21 - col2 FROM tab2 AS cor0
----
-47
-48
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + col1 * col1 + - col0 * 27 col0 FROM tab0 AS cor0
----
11859
13977
8812
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3941
SELECT DISTINCT cor0.col1 + + cor0.col2 * - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT cor0.col1 + + cor0.col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3942
SELECT ALL + col2 * + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL + col2 * + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - col1 + col2 * + ( cor0.col2 ) FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT ALL - + 30 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - + 30 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * 67 FROM tab2 cor0
----
1156
2108
4012
query I rowsort
SELECT ALL - 85 + col2 * col0 FROM tab0 AS cor0
----
-50
707
7213
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3947
SELECT CAST( col2 AS SIGNED ) - col0 * col0 AS col1 FROM tab1
----
-4039
-6304
45
skipif mysql # not compatible
query I rowsort label-3947
SELECT CAST ( col2 AS INTEGER ) - col0 * col0 AS col1 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT ALL + ( 15 * - col2 ) FROM tab0
----
-1230
-15
-495
query I rowsort
SELECT ALL + cor0.col1 + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT col2 * col1 + 93 FROM tab0
----
190
2931
7555
query I rowsort
SELECT col2 * cor0.col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - 62 + + col0 * col2 FROM tab1 AS cor0
----
100
3586
7618
query I rowsort
SELECT DISTINCT + 55 * + col1 AS col2 FROM tab1 AS cor0
----
1430
550
715
query I rowsort
SELECT ALL + ( 8 ) FROM tab0 AS cor0
----
8
8
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 8 col2 FROM tab2 AS cor0
----
25
39
67
query I rowsort
SELECT ALL col1 + col2 + - col2 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - col0 - + col0 AS col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT + ( + 63 ) * col2 * + col2 + + col1 * - col1 FROM tab1
----
183032
204587
580439
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3959
SELECT - CAST( NULL AS SIGNED ) * col0 + col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3959
SELECT - CAST ( NULL AS INTEGER ) * col0 + col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 94 + - col2 FROM tab1
----
-2
37
40
query I rowsort
SELECT + ( tab2.col0 ) * col0 + + ( col2 ) FROM tab2
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col0 ) + cor0.col1 * - col0 col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - + 26 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-19
52
53
query I rowsort
SELECT ALL - cor0.col2 + - cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT col1 + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - - 79 * + 34 * col1 AS col2 FROM tab2 AS cor0
----
158474
45662
83266
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - tab2.col1 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col2 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT ALL col0 * cor0.col1 + - col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL 62 + - col1 AS col2 FROM tab1 AS cor0
----
36
49
52
query I rowsort
SELECT + 77 * + col0 FROM tab1 AS cor0
----
231
4928
6160
query I rowsort
SELECT - cor0.col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT ( col1 ) DIV + col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3973
SELECT ( col1 ) / + col1 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3974
SELECT DISTINCT - cor0.col0 + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - cor0.col0 + col2 / col1 AS col1 FROM tab1 AS cor0
----
-1
-59
-73
query I rowsort
SELECT ALL col2 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667
query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE NULL IN ( - cor0.col2 * - cor0.col2 )
----
query I rowsort
SELECT col2 + col1 * - col1 * - col2 AS col2 FROM tab0 AS cor0
----
244101
679124
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-3978
SELECT ALL tab0.col1 DIV + col1 + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL tab0.col1 / + col1 + col1 FROM tab0
----
87
92
98
query I rowsort
SELECT + - cor0.col0 * + col1 - + col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT + ( - ( cor0.col0 ) ) * col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab2 AS cor0
----
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3983
SELECT ALL + + CAST( ( col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL + + CAST ( ( col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + 32 * + col1 FROM tab1
----
320
416
832
query I rowsort
SELECT - tab1.col0 * + col0 + - tab1.col1 AS col2 FROM tab1
----
-35
-4106
-6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 2 * col1 * - col1 col0 FROM tab1 cor0
----
1352
200
338
query I rowsort
SELECT DISTINCT ( - 5 ) AS col1 FROM tab2
----
-5
query I rowsort
SELECT 77 + - col2 AS col0 FROM tab0
----
-5
44
76
query I rowsort
SELECT ( tab0.col0 + + col1 ) AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT tab1.col0 * - col1 * col2 + + col1 AS col0 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT col2 + + col1 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN cor0.col2 AND - col2 * - col1
----
query I rowsort
SELECT - cor0.col1 FROM tab1 cor0 WHERE NOT col1 * col1 <= col0 * col1 + - col1
----
-26
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT IN ( cor0.col0 + - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col2 + col2 AS col0 FROM tab2 WHERE NULL <> col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3995
SELECT col0 + - tab0.col2 DIV + tab0.col1 col2 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3995
SELECT col0 + - tab0.col2 / + tab0.col1 col2 FROM tab0
----
24
35
89
query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 <> - col1 * + col1 * col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab1 WHERE NOT tab1.col0 <> col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 WHERE col0 NOT IN ( + col1 )
----
24
35
89
query I rowsort
SELECT - col0 * col1 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col0 FROM tab1 WHERE NULL <= col1 AND tab1.col1 / col1 + col2 = + col0 * col2
----
query I rowsort
SELECT col0 * col2 * + col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT - col1 * col2 + - col0 + col1 FROM tab0 cor0
----
-2776
-35
-7460
query I rowsort
SELECT ALL + cor0.col0 - - col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - - 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 ALL - tab2.col1 * tab2.col2 * - col2 col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT col1 + - col0 * - col1 + col1 * col0 * col0 AS col1 FROM tab2 AS cor0
----
107457
1767
363617
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 + col2 col1 FROM tab2 AS cor0
----
130
155
61
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 cor0, tab1 cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT col0 * - 52 FROM tab0
----
-1248
-1820
-4628
query I rowsort
SELECT ALL - + 44 + 53 AS col2 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT col2 * - col2 + - col0 AS col1 FROM tab0 cor0
----
-1113
-36
-6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4012
SELECT - CAST( - col0 AS SIGNED ) + - col0 * + 69 AS col1 FROM tab1 AS cor0
----
-204
-4352
-5440
skipif mysql # not compatible
query I rowsort label-4012
SELECT - CAST ( - col0 AS INTEGER ) + - col0 * + 69 AS col1 FROM tab1 AS cor0
----
-204
-4352
-5440
query I rowsort
SELECT - col2 * - ( + col0 ) - + col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + col2 * + col2 + col0 * col1 FROM tab1 cor0
----
10256
2994
3889
query I rowsort
SELECT col1 + + 59 - + col1 FROM tab0
----
59
59
59
query I rowsort
SELECT + col0 * - ( col2 ) AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4018
SELECT - CAST( col2 AS SIGNED ) + - col0 FROM tab0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-4018
SELECT - CAST ( col2 AS INTEGER ) + - col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT + 75 AS col0 FROM tab1 AS cor0
----
75
75
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4020
SELECT CAST( NULL AS SIGNED ) / + col1 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4020
SELECT CAST ( NULL AS INTEGER ) / + col1 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - ( col1 ) + col0 FROM tab0 AS cor0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4022
SELECT col0 * - col0 + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-17
-4096
-6400
skipif mysql # not compatible
query I rowsort label-4022
SELECT col0 * - col0 + - col1 / col0 AS col1 FROM tab1 AS cor0
----
-17
-4096
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4023
SELECT ALL - CAST( - ( col1 ) AS SIGNED ) * + 13 FROM tab1 AS cor0
----
130
169
338
skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - CAST ( - ( col1 ) AS INTEGER ) * + 13 FROM tab1 AS cor0
----
130
169
338
query I rowsort
SELECT DISTINCT - ( col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col0 - + 82 AS col1 FROM tab0 AS cor0
----
-47
-58
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4026
SELECT - col0 + + 61 * + col0 DIV - col0 col2 FROM tab0 AS cor0
----
-150
-85
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4026
SELECT - col0 + + 61 * + col0 / - col0 col2 FROM tab0 AS cor0
----
-150
-85
-96
query I rowsort
SELECT + - 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4028
SELECT + CAST( + 82 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
skipif mysql # not compatible
query I rowsort label-4028
SELECT + CAST ( + 82 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT ALL - col2 * - col1 * + cor0.col1 + - col2 DIV 69 AS col1 FROM tab0 AS cor0
----
244068
679041
9409
skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL - col2 * - col1 * + cor0.col1 + - col2 / 69 AS col1 FROM tab0 AS cor0
----
244068
679041
9409
query I rowsort
SELECT DISTINCT - - cor0.col0 + + ( - col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT - 77 FROM tab2, tab2 AS cor0
----
-77
query I rowsort
SELECT DISTINCT - cor0.col1 + ( col0 ) * - cor0.col1 + ( - col0 + - col1 * - col0 ) AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + - col2 + cor0.col2 * 61 * - col2 FROM tab2 cor0
----
-41262
-44496
-88122
query I rowsort
SELECT + col0 * + 65 + col0 FROM tab1 AS cor0
----
198
4224
5280
onlyif mysql # use DIV operator for integer division
query I rowsort label-4036
SELECT DISTINCT + cor0.col2 DIV + 77 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + cor0.col2 / + 77 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col0 * col0 + - col0 + - col0 FROM tab2 AS cor0
----
35
5928
6083
query I rowsort
SELECT ALL - col2 + + 50 * ( + col0 + - col0 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + - cor0.col2 + - ( col1 ) * col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + col1 * - col0 + col0 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT + cor0.col2 + ( + 12 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 44a6653f50cc5c8372f15bda819d8fd4
query I rowsort
SELECT ALL + col1 * 30 AS col1 FROM tab2 AS cor0
----
1770
510
930
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) AS col2 FROM tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + 36 + col0 * col2 FROM tab1 AS cor0
----
198
3684
7716
query I rowsort
SELECT DISTINCT + 81 + col2 AS col1 FROM tab2 AS cor0
----
107
108
119
query I rowsort
SELECT ALL - + col0 + + cor0.col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - col0 - tab1.col1 AS col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + - col1 + - col0 * col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL tab0.col1 * col2 + + col1 * - tab0.col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col1 + + col2 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL tab0.col0 + + tab0.col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT 8 * - col0 FROM tab0
----
-192
-280
-712
onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT ALL - ( col0 ) DIV - 76 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - ( col0 ) / - 76 FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col1 FROM tab0, tab1, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 16 + - col0 AS col0 FROM tab2
----
-62
-63
9
query I rowsort
SELECT - ( + 25 ) * col2 FROM tab1 AS cor0
----
-1350
-1425
-2400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4057
SELECT DISTINCT + + 45 + col2 DIV - col0 FROM tab0 AS cor0
----
44
45
skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT + + 45 + col2 / - col0 FROM tab0 AS cor0
----
44
45
query I rowsort
SELECT ALL + ( + 11 ) FROM tab0 AS cor0
----
11
11
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4059
SELECT CAST( NULL AS SIGNED ) * + 40 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4059
SELECT CAST ( NULL AS INTEGER ) * + 40 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2, tab0 AS cor1, tab1 cor2
----
13122 values hashing to d3c77aa1ee7322767897d53332a29828
query I rowsort
SELECT ALL - col2 * col2 + 89 AS col0 FROM tab1 AS cor0
----
-2827
-3160
-9127
query I rowsort
SELECT ALL + col1 + col1 * - 85 * col2 + col1 FROM tab0 cor0
----
-241058
-634088
-8051
query I rowsort
SELECT + 39 * cor0.col1 FROM tab2 cor0
----
1209
2301
663
onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT ALL - + cor0.col1 DIV + 54 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - + cor0.col1 / + 54 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * col2 * - 34 col1 FROM tab0 AS cor0
----
-192372
-2346
-77418
query I rowsort
SELECT + col0 + - col1 * + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col2 * tab0.col0 * - col0 AS col0 FROM tab0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 43 col1 FROM tab0
----
-1419
-3526
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4069
SELECT + + col1 + - CAST( col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
104
1053
650
skipif mysql # not compatible
query I rowsort label-4069
SELECT + + col1 + - CAST ( col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + col2 * - ( col1 ) + col0 AS col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT + col0 * 25 FROM tab0
----
2225
600
875
onlyif mysql # use DIV operator for integer division
query I rowsort label-4072
SELECT - col2 DIV col1 - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4072
SELECT - col2 / col1 - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col2 + - ( + 36 ) FROM tab2 cor0
----
-62
-63
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4074
SELECT col2 + ( - ( cor0.col1 ) ) * + CAST( + col0 * + col0 AS SIGNED ) + cor0.col2 FROM tab0 cor0
----
-118823
-49470
-720647
skipif mysql # not compatible
query I rowsort label-4074
SELECT col2 + ( - ( cor0.col1 ) ) * + CAST ( + col0 * + col0 AS INTEGER ) + cor0.col2 FROM tab0 cor0
----
-118823
-49470
-720647
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL col0 * - 59 + + cor0.col2 FROM tab2 AS cor0
----
-386
-4576
-4623
query I rowsort
SELECT DISTINCT - 55 * cor0.col2 * - col1 FROM tab0 AS cor0
----
156090
410410
5335
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4078
SELECT + CAST( - col1 AS SIGNED ) * col2 + - col1 * 12 AS col1 FROM tab0 AS cor0
----
-1261
-3870
-8554
skipif mysql # not compatible
query I rowsort label-4078
SELECT + CAST ( - col1 AS INTEGER ) * col2 + - col1 * 12 AS col1 FROM tab0 AS cor0
----
-1261
-3870
-8554
query I rowsort
SELECT - + ( col0 ) * col1 + col2 FROM tab1 cor0
----
-24
-583
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4080
SELECT DISTINCT + 10 * + col2 * col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT + 10 * + col2 * col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - 23 - - col0 * + cor0.col1 FROM tab2 AS cor0
----
1320
194
4579
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col1 col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - 93 col1 FROM tab0 AS cor0
----
4092
4092
4092
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4084
SELECT - CAST( - col2 AS SIGNED ) + - cor0.col2 * ( - 23 ) AS col0 FROM tab0 AS cor0
----
1968
24
792
skipif mysql # not compatible
query I rowsort label-4084
SELECT - CAST ( - col2 AS INTEGER ) + - cor0.col2 * ( - 23 ) AS col0 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 34 + - col1 AS col0 FROM tab0 AS cor0
----
-52
-57
-63
query I rowsort
SELECT + 38 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT + col2 + - 29 FROM tab2 AS cor0
----
-2
-3
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT + + ( col1 ) DIV col2 + + 52 DIV 35 FROM tab0 AS cor0
----
2
3
98
skipif mysql # not compatible
query I rowsort label-4089
SELECT + + ( col1 ) / col2 + + 52 / 35 FROM tab0 AS cor0
----
2
3
98
query I rowsort
SELECT DISTINCT - 26 AS col0 FROM tab0, tab2 AS cor0
----
-26
query I rowsort
SELECT + cor0.col2 + - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ( 1 ) * cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 59 * - col2 AS col1 FROM tab1
----
-3186
-3363
-5664
query I rowsort
SELECT - - 60 * - col1 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT - 42 * + col2 FROM tab0 AS cor0
----
-1386
-3444
-42
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-86
-91
-97
query I rowsort
SELECT - col1 - cor0.col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT - col2 * + 78 - col1 AS col0 FROM tab1 cor0
----
-4238
-4456
-7501
query I rowsort
SELECT 72 + - col2 * + col0 FROM tab2
----
-117
-1956
-2930
query I rowsort
SELECT - cor0.col1 * - tab0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 116454f2268e21c1351daf3f5803c987
onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT + 20 + col1 DIV + 35 + + col2 * col2 * - col0 AS col0 FROM tab1
----
-207916
-737260
-8728
skipif mysql # not compatible
query I rowsort label-4101
SELECT + 20 + col1 / + 35 + + col2 * col2 * - col0 AS col0 FROM tab1
----
-207916
-737260
-8728
query I rowsort
SELECT DISTINCT col0 * - col1 + + 16 FROM tab0
----
-2048
-3379
-8083
query I rowsort
SELECT col0 + col1 * col0 AS col0 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4104
SELECT ALL + + col1 DIV 47 AS col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL + + col1 / 47 AS col0 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4105
SELECT + col2 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4105
SELECT + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + 90 AS col0 FROM tab1 AS cor0
----
154
170
93
query I rowsort
SELECT + 92 * col1 AS col2 FROM tab0 AS cor0
----
7912
8372
8924
onlyif mysql # use DIV operator for integer division
query I rowsort label-4108
SELECT ALL + ( col0 ) DIV - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + ( col0 ) / - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 56 AS col1 FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT ALL + ( + cor0.col2 ) * + ( - 56 ) * col2 + + 82 FROM tab2 AS cor0
----
-37774
-40742
-80782
onlyif mysql # use DIV operator for integer division
query I rowsort label-4111
SELECT ALL - 73 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL - 73 / + col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT ALL + col1 DIV 46 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + col1 / 46 col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4113
SELECT ALL + col1 DIV - col2 + col2 AS col1 FROM tab0 cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + col1 / - col2 + col2 AS col1 FROM tab0 cor0
----
-96
31
81
query I rowsort
SELECT - + col1 * col1 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-13507
-2002
-6390
query I rowsort
SELECT - cor0.col0 * col1 - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL - - col0 * ( ( + cor0.col2 ) ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - ( col2 + - 83 ) AS col2 FROM tab2
----
45
56
57
query I rowsort
SELECT + 28 - tab2.col1 AS col0 FROM tab2
----
-3
-31
11
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col0 + col1 * 55 AS col2 FROM tab1 AS cor0
----
-325
-90
1352
query I rowsort
SELECT DISTINCT 39 * + col1 + - col0 * cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-472251
-492376
866
onlyif mysql # use DIV operator for integer division
query I rowsort label-4121
SELECT ALL + cor0.col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + cor0.col1 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4122
SELECT - ( 98 ) * col1 + - 13 * col0 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1287
-2561
-993
skipif mysql # not compatible
query I rowsort label-4122
SELECT - ( 98 ) * col1 + - 13 * col0 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1287
-2561
-993
query I rowsort
SELECT ( col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4124
SELECT DISTINCT col0 * col1 + 74 DIV col2 AS col2 FROM tab1
----
1040
641
79
skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT col0 * col1 + 74 / col2 AS col2 FROM tab1
----
1040
641
79
query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab1, tab2, tab2 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + tab2.col2 + - ( tab2.col2 * col1 ) FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT 51 * + 64 * - col2 + - col1 FROM tab0
----
-107798
-267739
-3361
query I rowsort
SELECT 83 + - 88 FROM tab2
----
-5
-5
-5
query I rowsort
SELECT ( + ( col2 ) ) + + ( 70 ) FROM tab1 AS cor0
----
124
127
166
query I rowsort
SELECT 99 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT ALL + tab2.col1 * 4 + col1 FROM tab2
----
155
295
85
query I rowsort
SELECT ALL - col1 + 15 FROM tab0
----
-71
-76
-82
query I rowsort
SELECT DISTINCT - col1 + + 37 * + col0 FROM tab0
----
1198
3202
802
query I rowsort
SELECT - col0 * - 75 + col0 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
14062
2616
2695
query I rowsort
SELECT DISTINCT - ( - 41 ) AS col0 FROM tab1 AS cor0
----
41
query I rowsort
SELECT ALL ( + ( cor0.col1 ) ) + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - - col1 + cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT ALL 60 * tab1.col0 AS col1 FROM tab1
----
180
3840
4800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4139
SELECT DISTINCT - col1 * col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT - col1 * col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4140
SELECT DISTINCT - col2 * + col1 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - col2 * + col1 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 12 * col0 - 95 AS col1 FROM tab2 AS cor0
----
-1031
-1043
-179
query I rowsort
SELECT DISTINCT - col2 * col2 - - col0 * - 37 AS col1 FROM tab0 cor0
----
-10017
-1296
-1977
query I rowsort
SELECT + 81 * col1 AS col1 FROM tab1 AS cor0
----
1053
2106
810
query I rowsort
SELECT ALL - ( col0 ) * 69 AS col0 FROM tab2 AS cor0
----
-483
-5382
-5451
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 16 + col1 * col0 col0 FROM tab2 AS cor0
----
1327
201
4586
query I rowsort
SELECT DISTINCT - col2 * - col0 + cor0.col1 AS col2 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT 76 + col2 AS col1 FROM tab2 AS cor0
----
102
103
114
query I rowsort
SELECT ALL - 58 + - col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1306
-1462
-628
onlyif mysql # use DIV operator for integer division
query I rowsort label-4149
SELECT ALL 65 DIV - col0 - 71 DIV 79 AS col1 FROM tab2 AS cor0
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL 65 / - col0 - 71 / 79 AS col1 FROM tab2 AS cor0
----
-9
0
0
query I rowsort
SELECT ALL - cor0.col1 + - col1 * cor0.col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT col2 * col1 + col1 AS col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT + col1 + - col1 * cor0.col0 + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-1186
-3263
-710
query I rowsort
SELECT DISTINCT + col0 + ( 15 * col1 ) FROM tab0
----
1314
1454
1490
query I rowsort
SELECT DISTINCT - col1 * 62 AS col0 FROM tab1 cor0
----
-1612
-620
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4155
SELECT + col1 - CAST( 75 + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-103
-122
-158
skipif mysql # not compatible
query I rowsort label-4155
SELECT + col1 - CAST ( 75 + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-103
-122
-158
query I rowsort
SELECT DISTINCT + col0 * 61 FROM tab0 AS cor0
----
1464
2135
5429
query I rowsort
SELECT + col0 * cor0.col1 + + 42 + + col2 AS col2 FROM tab1 AS cor0
----
1178
174
739
query I rowsort
SELECT ALL + col0 * + ( - col0 ) + + col2 AS col0 FROM tab1 cor0
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4159
SELECT - col1 + - CAST( - 58 + cor0.col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-115
-40
-61
skipif mysql # not compatible
query I rowsort label-4159
SELECT - col1 + - CAST ( - 58 + cor0.col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-115
-40
-61
query I rowsort
SELECT - col2 * - col1 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 + - ( + ( + col1 ) + ( - col2 ) ) FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT DISTINCT - col2 + + col2 * 54 AS col0 FROM tab1 AS cor0
----
2862
3021
5088
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT + col2 + ( col2 ) + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1023
-6560
1
query I rowsort
SELECT + ( 77 ) * + col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
566
6032
6121
query I rowsort
SELECT DISTINCT ( ( col0 ) ) * ( + 95 ) + - col1 - col0 AS col2 FROM tab1 AS cor0
----
256
6006
7507
query I rowsort
SELECT DISTINCT + cor1.col1 * + 67 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
1139
2077
3953
query I rowsort
SELECT col1 * - tab1.col0 - - col1 AS col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT - - col0 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT col1 * ( col2 ) DIV + col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4172
SELECT col1 * ( col2 ) / + col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col0 + + col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1638
763
871
onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT ALL - - col2 - CAST( - 25 AS SIGNED ) DIV + cor0.col2 FROM tab0 AS cor0
----
26
33
82
skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL - - col2 - CAST ( - 25 AS INTEGER ) / + cor0.col2 FROM tab0 AS cor0
----
26
33
82
query I rowsort
SELECT - - col1 - cor0.col2 * + ( + col0 + col2 ) FROM tab0 AS cor0
----
-13931
-1795
61
query I rowsort
SELECT DISTINCT + col0 + col1 * col2 AS col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT col2 + - 13 FROM tab0
----
-12
20
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4178
SELECT CAST( NULL AS DECIMAL ) * ( col1 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4178
SELECT CAST ( NULL AS REAL ) * ( col1 ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT col0 + - col2 * 83 + + tab2.col2 AS col0 FROM tab2
----
-2054
-2207
-3037
query I rowsort
SELECT - ( - col2 ) * col2 * - col2 - + col1 AS col1 FROM tab0 AS cor0
----
-36023
-551459
-98
query I rowsort
SELECT DISTINCT - + col2 * - col2 + 23 AS col2 FROM tab2 AS cor0
----
1467
699
752
query I rowsort
SELECT DISTINCT + col2 - - col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + cor0.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 - + cor0.col2 * - col2 col1 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT ALL + col2 - + col1 * tab1.col1 FROM tab1
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT + + col2 DIV + col1 + col2 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4187
SELECT + + col2 / + col1 + col2 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + + col0 - col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT + ( 2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT - col1 * 60 + - col0 FROM tab2 AS cor0
----
-1099
-1867
-3618
query I rowsort
SELECT ALL - col1 * + 28 + + 27 AS col0 FROM tab2 AS cor0
----
-1625
-449
-841
query I rowsort
SELECT DISTINCT + 25 + cor0.col0 FROM tab1, tab1 cor0
----
105
28
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4193
SELECT cor0.col2 * CAST( NULL AS SIGNED ) - + 73 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-4193
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) - + 73 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( - cor0.col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4195
SELECT cor1.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4195
SELECT cor1.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col2 + - 78 AS col2 FROM tab0 AS cor0
----
-45
-77
4
query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT 27 * + col0 AS col0 FROM tab0 cor0
----
2403
648
945
query I rowsort
SELECT + 96 * + col2 AS col2 FROM tab0 cor0
----
3168
7872
96
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ( - col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 27 col0 FROM tab2
----
-189
-2106
-2133
query I rowsort
SELECT + col2 * col0 * - ( - col0 ) - 8 AS col2 FROM tab0
----
1217
19000
649514
query I rowsort
SELECT - col1 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL - 0 + 78 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to f0487ba81d377516702723e098c02ba1
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-4207
SELECT DISTINCT - + col1 DIV 65 AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - + col1 / 65 AS col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + col2 + - 64 FROM tab1 cor0
----
-10
-7
32
query I rowsort
SELECT ALL ( + col2 ) + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col1 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT + 5 * + 69 AS col2 FROM tab0 cor0
----
345
345
345
query I rowsort
SELECT ALL - - 47 + - col0 FROM tab2 AS cor0
----
-31
-32
40
query I rowsort
SELECT col2 + 54 AS col1 FROM tab2 AS cor0
----
80
81
92
query I rowsort
SELECT - ( - ( col2 ) ) * + 64 FROM tab1 AS cor0
----
3456
3648
6144
query I rowsort
SELECT ( - 86 ) * col0 AS col0 FROM tab1 AS cor0
----
-258
-5504
-6880
query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 + + col0 AS col2 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT col0 - cor0.col0 * col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL col2 + + 92 * + col0 FROM tab1 AS cor0
----
330
5945
7456
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col2 AS REAL ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col0 * col0 * - col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT tab0.col2 - + 43 FROM tab0
----
-10
-42
39
query I rowsort
SELECT ALL + 27 * 24 AS col0 FROM tab1 AS cor0
----
648
648
648
query I rowsort
SELECT DISTINCT - col0 + + col2 * cor0.col1 FROM tab1 cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4224
SELECT + + col0 * - col2 - CAST( + 80 * - col1 AS SIGNED ) FROM tab0 AS cor0
----
-18
6088
7725
skipif mysql # not compatible
query I rowsort label-4224
SELECT + + col0 * - col2 - CAST ( + 80 * - col1 AS INTEGER ) FROM tab0 AS cor0
----
-18
6088
7725
query I rowsort
SELECT DISTINCT - + 32 + col2 * - col2 FROM tab0 AS cor0
----
-1121
-33
-6756
query I rowsort
SELECT + col2 * + col2 + ( + col1 ) FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ( + col0 ) * - col0 AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT ( - col1 ) * - col0 + - col1 * + cor0.col1 FROM tab1 AS cor0
----
-598
540
871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT 31 + - col2 * + cor0.col0 FROM tab0 AS cor0
----
-4
-7267
-761
query I rowsort
SELECT ALL ( col0 ) + - col0 * cor0.col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2126
-3457
-8101
query I rowsort
SELECT DISTINCT + col2 * - col1 + col2 * col0 FROM tab1 AS cor0
----
-1242
3078
6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 15 col1 FROM tab2 cor0
----
-390
-405
-570
query I rowsort
SELECT DISTINCT 69 * col1 + col2 FROM tab1
----
1848
747
993
query I rowsort
SELECT - 25 + - cor0.col2 AS col2 FROM tab0 cor0
----
-107
-26
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT 94 - col2 DIV 55 AS col2 FROM tab2
----
94
94
94
skipif mysql # not compatible
query I rowsort label-4236
SELECT 94 - col2 / 55 AS col2 FROM tab2
----
94
94
94
query I rowsort
SELECT ALL cor0.col2 * 60 AS col1 FROM tab2 cor0
----
1560
1620
2280
onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT DISTINCT + col1 + + col1 * col2 DIV - col1 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT + col1 + + col1 * col2 / - col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL 90 + col1 FROM tab2
----
107
121
149
onlyif mysql # use DIV operator for integer division
query I rowsort label-4240
SELECT tab1.col2 + - col2 + + ( tab1.col2 ) DIV + col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4240
SELECT tab1.col2 + - col2 + + ( tab1.col2 ) / + col1 FROM tab1
----
2
5
7
query I rowsort
SELECT DISTINCT - 16 * col0 - + col0 FROM tab1
----
-1088
-1360
-51
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT DISTINCT - col2 + ( col2 ) + - col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL + + cor0.col0 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + col2 - cor0.col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + col0 + - 56 AS col1 FROM tab2 AS cor0
----
-49
22
23
query I rowsort
SELECT - 41 + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7e251700b0c8a6b8f6b60f1a11224de5
query I rowsort
SELECT col1 * + ( col0 ) + - col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-4249
SELECT ALL col2 + 42 DIV - col1 AS col2 FROM tab1 AS cor0
----
53
53
93
skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL col2 + 42 / - col1 AS col2 FROM tab1 AS cor0
----
53
53
93
query I rowsort
SELECT DISTINCT - cor0.col1 * + ( col0 ) - col0 * col0 FROM tab2 AS cor0
----
-10686
-266
-7584
query I rowsort
SELECT + ( + 80 ) FROM tab1
----
80
80
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 + tab2.col0 col0 FROM tab2, tab0 cor0
----
9 values hashing to ed2018dec6b071f154fd8cf9a42cc36c
query I rowsort
SELECT - col2 + - 39 * + col0 AS col1 FROM tab1 AS cor0
----
-171
-2553
-3216
query I rowsort
SELECT - col0 + 2 * + col1 AS col0 FROM tab1 AS cor0
----
-44
-54
49
query I rowsort
SELECT + 58 + col1 FROM tab1 AS cor0
----
68
71
84
query I rowsort
SELECT DISTINCT - 49 + col1 * + ( - 97 ) AS col2 FROM tab2 AS cor0
----
-1698
-3056
-5772
query I rowsort
SELECT ALL - col0 * + col1 + ( - col1 ) * col0 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1337
-210
-2176
query I rowsort
SELECT DISTINCT 12 + col1 AS col0 FROM tab1 AS cor0
----
22
25
38
query I rowsort
SELECT col0 * col1 - + col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL + - col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - + ( - col0 ) * + ( cor0.col2 ) AS col2 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + col2 col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + - 38 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-3268
-3458
-3686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col1 FROM tab2 cor0
----
-34
-34
-34
query I rowsort
SELECT ALL - 94 + col1 * col2 FROM tab1 AS cor0
----
1154
1310
476
onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT DISTINCT ( col1 ) DIV col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT ( col1 ) / col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT col1 * - 33 + - col0 FROM tab0 AS cor0
----
-2862
-3092
-3236
query I rowsort
SELECT ( col0 ) * col2 + ( + col0 ) + col2 FROM tab2 AS cor0
----
2132
223
3119
query I rowsort
SELECT - ( ( - col2 ) ) * col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4270
SELECT + 1 + ( col1 * ( cor0.col0 ) ) + - cor0.col1 DIV - 12 FROM tab0 AS cor0
----
2072
3404
8107
skipif mysql # not compatible
query I rowsort label-4270
SELECT + 1 + ( col1 * ( cor0.col0 ) ) + - cor0.col1 / - 12 FROM tab0 AS cor0
----
2072
3404
8107
query I rowsort
SELECT - ( + cor0.col2 ) + + cor0.col0 - 64 FROM tab0 AS cor0
----
-30
-57
-73
query I rowsort
SELECT - + col1 + col2 - col1 * - 44 FROM tab2 AS cor0
----
1360
2563
769
query I rowsort
SELECT - col1 * + col0 + + col1 * - col2 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT - + 9 * col1 - col2 AS col1 FROM tab1 AS cor0
----
-147
-213
-288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 66 col0 FROM tab0
----
-31
-42
23
query I rowsort
SELECT 3 - - col0 FROM tab0 AS cor0
----
27
38
92
query I rowsort
SELECT 51 + col0 * + col1 * 76 + 53 FROM tab2 AS cor0
----
102172
16596
349856
query I rowsort
SELECT + - col1 * 6 AS col0 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT cor0.col1 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + + col0 * col2 + 84 AS col1 FROM tab0 AS cor0
----
119
7382
876
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4281
SELECT - + 61 + - col2 * CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4281
SELECT - + 61 + - col2 * CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab0, tab1 AS cor0
----
-27
query I rowsort
SELECT DISTINCT cor0.col0 - 47 AS col1 FROM tab2, tab2 AS cor0
----
-40
31
32
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da
query I rowsort
SELECT DISTINCT - col2 + + ( 45 * col0 ) AS col2 FROM tab0 AS cor0
----
1047
1574
3923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 * col2 col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4287
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) * 15 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) * 15 AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT cor0.col1 FROM tab2, tab1 AS cor0 WHERE NULL <= ( NULL )
----
query I rowsort
SELECT - - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + col1 + + col0 * ( + col1 ) + ( 72 * col0 + col2 ) FROM tab0
----
14680
3911
6013
query I rowsort
SELECT ALL col0 + + 13 FROM tab0
----
102
37
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT col0 DIV + 8 FROM tab1
----
0
10
8
skipif mysql # not compatible
query I rowsort label-4292
SELECT col0 / + 8 FROM tab1
----
0
10
8
query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 FROM tab2
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-4294
SELECT DISTINCT - col2 * cor0.col1 DIV + col1 col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT - col2 * cor0.col1 / + col1 col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - col2 + + col1 + col2 AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4296
SELECT ALL - CAST( NULL AS SIGNED ) + 91 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - CAST ( NULL AS INTEGER ) + 91 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 33 * + 35 FROM tab2
----
1155
1155
1155
query I rowsort
SELECT - ( col2 ) + + col0 * col0 AS col2 FROM tab2
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-4299
SELECT - col0 DIV + 64 AS col0 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-4299
SELECT - col0 / + 64 AS col0 FROM tab2
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT + CAST( tab0.col2 AS SIGNED ) DIV col2 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4300
SELECT + CAST ( tab0.col2 AS INTEGER ) / col2 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT + cor0.col0 * + 23 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
130
1735
1800
query I rowsort
SELECT + 76 * col2 FROM tab2
----
1976
2052
2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT ALL + + col2 DIV - cor0.col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + + col2 / - cor0.col2 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4304
SELECT cor0.col2 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4304
SELECT cor0.col2 / col1 AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT col0 DIV + 75 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4305
SELECT col0 / + 75 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT col2 * 89 FROM tab1 AS cor0
----
4806
5073
8544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4307
SELECT col0 * + CAST( - 35 AS SIGNED ) FROM tab1 AS cor0
----
-105
-2240
-2800
skipif mysql # not compatible
query I rowsort label-4307
SELECT col0 * + CAST ( - 35 AS INTEGER ) FROM tab1 AS cor0
----
-105
-2240
-2800
query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab1, tab0 cor0, tab2 cor1, tab1 AS cor2
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 * 40 * + 21 AS col0 FROM tab2 AS cor0
----
-5880
-65520
-66360
onlyif mysql # use DIV operator for integer division
query I rowsort label-4310
SELECT ALL cor0.col2 DIV 12 + + 17 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1640
922
973
skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL cor0.col2 / 12 + + 17 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1640
922
973
query I rowsort
SELECT col1 * - col0 + 21 * col0 * col0 FROM tab0
----
10032
158242
22330
query I rowsort
SELECT DISTINCT - col1 - + col0 * cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT ALL - + cor0.col0 * col2 * cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + col2 * ( cor0.col1 ) * - col0 + + ( + col0 + col2 ) * 23 FROM tab0 AS cor0
----
-2567
-660185
-66801
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 * 15 AS col0 FROM tab0 cor0
----
1323
1447
1456
onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT col0 DIV tab2.col1 - col1 FROM tab2
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-4316
SELECT col0 / tab2.col1 - col1 FROM tab2
----
-13
-31
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT DISTINCT + col1 + col1 * col1 DIV + col0 - - col0 * - col2 FROM tab1
----
-3637
-7665
89
skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT + col1 + col1 * col1 / + col0 - - col0 * - col2 FROM tab1
----
-3637
-7665
89
query I rowsort
SELECT ( 1 ) - col2 AS col0 FROM tab0
----
-32
-81
0
query I rowsort
SELECT 43 * - tab2.col1 + col0 * - col2 AS col1 FROM tab2
----
-1522
-3733
-4565
query I rowsort
SELECT 26 * + 53 AS col0 FROM tab2 AS cor0
----
1378
1378
1378
query I rowsort
SELECT - 89 * - cor0.col2 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT DISTINCT + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 + col1 * + 1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + 37 + - cor0.col2 FROM tab2 AS cor0
----
-1
10
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-4325
SELECT DISTINCT col0 + col0 DIV 79 + col0 col1 FROM tab2 AS cor0
----
14
156
159
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT col0 + col0 / 79 + col0 col1 FROM tab2 AS cor0
----
14
156
159
query I rowsort
SELECT ALL - ( - col1 ) - 11 * col2 AS col0 FROM tab1 AS cor0
----
-1043
-568
-617
query I rowsort
SELECT ALL + - col1 + - col0 * 35 AS col2 FROM tab0 cor0
----
-1322
-3206
-926
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 0 * col0 col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + + col2 + cor0.col0 + - ( col2 * col2 ) FROM tab0 AS cor0
----
-1032
-6553
35
query I rowsort
SELECT DISTINCT - 57 + col0 FROM tab0 cor0
----
-22
-33
32
query I rowsort
SELECT ALL - col0 * 59 AS col0 FROM tab2
----
-413
-4602
-4661
query I rowsort
SELECT DISTINCT - tab0.col1 * + col1 * + col0 AS col2 FROM tab0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT + col2 DIV - 35 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4333
SELECT + col2 / - 35 FROM tab2
----
-1
0
0
query I rowsort
SELECT - + col2 * - col2 - 2 FROM tab0 AS cor0
----
-1
1087
6722
query I rowsort
SELECT DISTINCT - ( col0 ) - - col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4336
SELECT + col0 DIV col1 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-4336
SELECT + col0 / col1 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-75
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT + col2 + - col0 DIV - col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-4337
SELECT + col2 + - col0 / - col2 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * 65 AS col2 FROM tab1 AS cor0
----
-3510
-3705
-6240
query I rowsort
SELECT + + ( - col1 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - 66 + - tab2.col2 FROM tab2
----
-104
-92
-93
query I rowsort
SELECT col2 + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL - - 89 * + col1 AS col0 FROM tab2 AS cor0
----
1513
2759
5251
query I rowsort
SELECT + - col1 * - col2 + - 77 AS col1 FROM tab1 AS cor0
----
1171
1327
493
query I rowsort
SELECT - col1 * 94 * + col2 FROM tab2 cor0
----
-144196
-60724
-78678
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * cor0.col2 + col2 * col2 + - col2 col0 FROM tab2 AS cor0
----
2678
4408
891
query I rowsort
SELECT cor0.col2 + - col1 * 2 FROM tab0 AS cor0
----
-100
-139
-193
query I rowsort
SELECT - + col1 * col1 + 92 * cor0.col1 + ( col1 ) FROM tab2 AS cor0
----
1292
1922
2006
query I rowsort
SELECT DISTINCT col2 + col2 + - 89 * 11 * + col2 FROM tab0
----
-32241
-80114
-977
query I rowsort
SELECT ALL col1 * + col0 + - 99 * + tab2.col2 + - col0 AS col2 FROM tab2
----
-2463
-2498
1950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col1 FROM tab2
----
86
86
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 + + 18 col0 FROM tab2
----
-1516
-628
-819
onlyif mysql # use DIV operator for integer division
query I rowsort label-4352
SELECT ALL - 58 * col2 + col0 DIV - ( - 84 * col1 ) AS col2 FROM tab1 AS cor0
----
-3132
-3306
-5568
skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - 58 * col2 + col0 / - ( - 84 * col1 ) AS col2 FROM tab1 AS cor0
----
-3132
-3306
-5568
query I rowsort
SELECT - + col0 + + cor0.col1 * cor0.col0 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + ( col1 ) + - col0 * + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - + ( + col0 ) + - cor0.col2 * + 68 FROM tab2 AS cor0
----
-1843
-1846
-2663
query I rowsort
SELECT ALL + ( ( - col2 ) ) + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - col1 * - cor0.col2 - col0 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4358
SELECT ALL CAST( NULL AS SIGNED ) * + col0 + col0 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 + col0 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - 78 col2 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT ALL + - 49 + - 38 FROM tab0 AS cor0
----
-87
-87
-87
query I rowsort
SELECT - - col1 * + col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + col1 col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL col0 + - 66 * - tab2.col2 AS col2 FROM tab2
----
1789
1794
2587
query I rowsort
SELECT ALL - tab0.col0 + + 52 * - col0 AS col1 FROM tab0
----
-1272
-1855
-4717
query I rowsort
SELECT - col2 + - col2 * col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab1
----
95
query I rowsort
SELECT ALL - 68 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4368
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - ( col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col2 + 34 AS col2 FROM tab1 AS cor0
----
-20
-23
-62
query I rowsort
SELECT ALL - 72 AS col0 FROM tab0 AS cor0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT + cor0.col0 + 7 FROM tab2 AS cor0
----
14
85
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-4373
SELECT ALL + 83 + ( col0 ) + ( 41 ) DIV - col2 FROM tab0 cor0
----
106
172
77
skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + 83 + ( col0 ) + ( 41 ) / - col2 FROM tab0 cor0
----
106
172
77
query I rowsort
SELECT + ( + cor0.col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT ALL col1 * - ( 89 ) * tab2.col0 AS col1 FROM tab2
----
-119527
-19313
-409578
query I rowsort
SELECT - ( 44 ) AS col0 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT + + col1 * 19 FROM tab0 AS cor0
----
1634
1729
1843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + + col2 col0 FROM tab0 cor0
----
121
40
72
query I rowsort
SELECT + 11 + - col0 * + col1 FROM tab0 AS cor0
----
-2053
-3384
-8088
onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT - - col2 * + ( + col1 ) DIV cor0.col1 - - cor0.col0 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-4381
SELECT - - col2 * + ( + col1 ) / cor0.col1 - - cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + - col2 - + ( - col1 * + cor0.col0 + col0 * cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1239
3359
719
query I rowsort
SELECT - ( 36 ) + - col1 AS col0 FROM tab2 AS cor0
----
-53
-67
-95
query I rowsort
SELECT - - 43 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col1 FROM tab1 cor0
----
98
query I rowsort
SELECT ALL 11 * - col2 AS col1 FROM tab2 AS cor0
----
-286
-297
-418
query I rowsort
SELECT - + col0 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT + - col0 DIV col0 col2 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4388
SELECT + - col0 / col0 col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + ( col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + col0 + col2 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL 57 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * col0 col0 FROM tab1
----
186
3968
4960
query I rowsort
SELECT col0 + ( - col2 ) * col0 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + + col0 col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) + + col2 + + 1 AS col2 FROM tab0 cor0
----
1227
610
8004
query I rowsort
SELECT ALL - + cor0.col0 * - col1 + - 42 FROM tab1 AS cor0
----
36
598
998
query I rowsort
SELECT - col0 * - cor0.col1 * 63 + - col2 FROM tab2 AS cor0
----
13644
289900
84571
onlyif mysql # use DIV operator for integer division
query I rowsort label-4398
SELECT + col2 + - 70 * col0 DIV col0 FROM tab0 AS cor0
----
-37
-69
12
skipif mysql # not compatible
query I rowsort label-4398
SELECT + col2 + - 70 * col0 / col0 FROM tab0 AS cor0
----
-37
-69
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT ALL + col2 * ( - col0 ) DIV 6 AS col2 FROM tab2 AS cor0
----
-31
-338
-500
skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + col2 * ( - col0 ) / 6 AS col2 FROM tab2 AS cor0
----
-31
-338
-500
query I rowsort
SELECT ALL cor0.col1 * - 28 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2e8c1d1994713c57610ed36cfb68f612
query I rowsort
SELECT ALL col2 * + 19 AS col2 FROM tab2 cor0
----
494
513
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 + col1 col2 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT + - 85 * 56 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to dc9240b7c8e37ae48ca69e99f60ec52c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4405
SELECT + + 66 DIV + col0 + CAST( - cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-31
-82
0
skipif mysql # not compatible
query I rowsort label-4405
SELECT + + 66 / + col0 + CAST ( - cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-31
-82
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1 cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT - 64 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT - - 94 FROM tab2, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL + col2 * col1 + + col0 * tab0.col0 * col1 + col2 FROM tab0
----
118923
52407
728355
query I rowsort
SELECT DISTINCT ( - col2 ) + - ( + col1 ) FROM tab0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * 50 col0 FROM tab2
----
-1550
-2950
-850
query I rowsort
SELECT DISTINCT + ( 29 ) * col2 + 65 * - 19 AS col2 FROM tab0 AS cor0
----
-1206
-278
1143
query I rowsort
SELECT - + ( - 91 ) - cor0.col1 AS col1 FROM tab0 AS cor0
----
-6
0
5
query I rowsort
SELECT 43 * - col0 - - col0 * - col0 FROM tab0 AS cor0
----
-11748
-1608
-2730
query I rowsort
SELECT ALL - 74 * 43 + col2 * + ( + col2 ) FROM tab2 AS cor0
----
-1738
-2453
-2506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 - + col0 * cor0.col2 col0 FROM tab0 cor0
----
-696
-7202
61
query I rowsort
SELECT ALL + - 61 + 12 AS col0 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT + 14 + cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 05f0fcbd66fc6981f5f475e47dcdda25
query I rowsort
SELECT - + 59 - - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e2d574ccd8ed61fa02a5902364b397fb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) + - col2 * 91 col2 FROM tab2
----
-2288
-2450
-3379
query I rowsort
SELECT 39 * + col0 - - col0 FROM tab0
----
1400
3560
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT ALL col0 - col0 * col2 DIV + 49 AS col0 FROM tab2
----
18
37
4
skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL col0 - col0 * col2 / + 49 AS col0 FROM tab2
----
18
37
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4423
SELECT col0 DIV + 9 + col1 AS col1 FROM tab1
----
17
21
26
skipif mysql # not compatible
query I rowsort label-4423
SELECT col0 / + 9 + col1 AS col1 FROM tab1
----
17
21
26
query I rowsort
SELECT DISTINCT - cor1.col1 * cor1.col2 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
-1534
-646
-837
query I rowsort
SELECT ALL + ( col0 ) + + col2 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + cor0.col1 ) + cor0.col0 * + 38 col2 FROM tab0 AS cor0
----
1233
3291
826
query I rowsort
SELECT - 43 * - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-125388
-139707
-396288
onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT cor1.col1 DIV + 6 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to be2b64a21a269864dadb1f8e44365076
skipif mysql # not compatible
query I rowsort label-4428
SELECT cor1.col1 / + 6 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to be2b64a21a269864dadb1f8e44365076
query I rowsort
SELECT + - 11 + + cor0.col1 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 331d23ff65e00a449fa8af55400dfdd0
query I rowsort
SELECT DISTINCT - - col1 + ( + cor0.col1 ) FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + cor0.col0 * + col0 * - col2 col1 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT - col0 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - ( - 1 ) col2 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT DISTINCT - + col0 * - col2 * ( + col1 * ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
118825
1634688
59106502
query I rowsort
SELECT + col0 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT - col2 * - ( ( col0 ) ) + + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + - col2 * 5 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT ALL - col1 - - 93 * + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
116051
130546
53000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4440
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT DISTINCT + col0 * - col1 + - 57 DIV col0 AS col1 FROM tab0 AS cor0
----
-2066
-3396
-8099
skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + col0 * - col1 + - 57 / col0 AS col1 FROM tab0 AS cor0
----
-2066
-3396
-8099
query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
58
query I rowsort
SELECT DISTINCT col1 * - col2 * col2 AS col0 FROM tab0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 * + 77 col2 FROM tab0 AS cor0
----
-2695
-561946
-60984
query I rowsort
SELECT + + cor0.col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col1 * + 44 FROM tab2 AS cor0
----
-1364
-2596
-748
query I rowsort
SELECT ALL - + col2 - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - 48 * - col0 AS col2 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT ALL + ( - 58 ) + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1283
-634
-7979
onlyif mysql # use DIV operator for integer division
query I rowsort label-4450
SELECT DISTINCT - - 34 DIV 83 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT - - 34 / 83 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT 71 + 4 FROM tab2 AS cor0
----
75
75
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-4452
SELECT + 42 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4452
SELECT + 42 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4453
SELECT ALL + CAST( NULL AS SIGNED ) + + cor0.col1 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + CAST ( NULL AS INTEGER ) + + cor0.col1 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4454
SELECT + - CAST( NULL AS SIGNED ) + + col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4454
SELECT + - CAST ( NULL AS INTEGER ) + + col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 26 col0 FROM tab1 AS cor0
----
-260
-338
-676
query I rowsort
SELECT - - col0 * col0 + - 72 * - col0 AS col1 FROM tab1 AS cor0
----
12160
225
8704
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4457
SELECT DISTINCT + ( col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT + ( col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 62 FROM tab0 cor0
----
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4460
SELECT ALL - col2 DIV col0 + + col0 * + 31 FROM tab0 AS cor0
----
1085
2759
743
skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL - col2 / col0 + + col0 * + 31 FROM tab0 AS cor0
----
1085
2759
743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4461
SELECT DISTINCT + - ( + col0 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + - ( + col0 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + col0 col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT col1 * 97 FROM tab2
----
1649
3007
5723
query I rowsort
SELECT DISTINCT + - col1 + col0 * 41 AS col1 FROM tab1 cor0
----
2614
3267
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col2 FROM tab1 AS cor0
----
47
query I rowsort
SELECT ALL col2 * + col0 + - 31 AS col0 FROM tab0 AS cor0
----
4
7267
761
query I rowsort
SELECT + col2 * + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - cor0.col2 * - col1 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + 10 + - 43 * col1 FROM tab2
----
-1323
-2527
-721
query I rowsort
SELECT ALL + col2 * 42 FROM tab0
----
1386
3444
42
query I rowsort
SELECT ALL + tab0.col0 AS col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col1 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT + 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT + 68 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT + - ( + cor0.col0 ) + 59 AS col0 FROM tab2 AS cor0
----
-19
-20
52
query I rowsort
SELECT DISTINCT - 62 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2046
-5084
-62
query I rowsort
SELECT + col0 * + ( + col0 ) FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( cor0.col0 ) + + col0 col2 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT col1 * + 48 + col1 + col2 FROM tab0 AS cor0
----
4247
4541
4754
query I rowsort
SELECT ALL - - col0 + + ( ( col1 ) ) * col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT col2 * + 74 FROM tab1 AS cor0
----
3996
4218
7104
query I rowsort
SELECT DISTINCT - - col2 * - col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + 36 * col2 * - 53 col1 FROM tab2 AS cor0
----
-49582
-51489
-72466
query I rowsort
SELECT DISTINCT + col2 + - ( col2 ) FROM tab1
----
0
query I rowsort
SELECT - 79 * + col0 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT - ( - ( col1 ) ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT 31 + + col1 * col2 AS col2 FROM tab2 cor0
----
1565
677
868
query I rowsort
SELECT - - ( + col0 ) + + col2 * 65 + + col2 * cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
246237
684461
9509
query I rowsort
SELECT + 89 + + col0 + - col1 FROM tab2 AS cor0
----
108
151
65
query I rowsort
SELECT - ( - col2 ) * + col2 + 40 AS col1 FROM tab1 AS cor0
----
2956
3289
9256
query I rowsort
SELECT - - col1 + - col1 * + col1 AS col2 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT - ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 7 + - cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
155
3641
7673
query I rowsort
SELECT ALL - col1 * + col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col2 FROM tab2 AS cor0
----
-45
-45
-45
query I rowsort
SELECT ALL + + cor0.col0 - cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 04d1784671eb0e265e4009c8e6d0348b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 * + col2 col1 FROM tab0
----
297
738
9
query I rowsort
SELECT ( cor0.col0 ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + ( col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col0 * col2 + 2 + - col0 AS col0 FROM tab1 AS cor0
----
-163
-3710
-7758
query I rowsort
SELECT - col0 * col0 - 95 FROM tab0 AS cor0
----
-1320
-671
-8016
query I rowsort
SELECT + col0 * - 82 - + cor0.col0 AS col2 FROM tab1 cor0
----
-249
-5312
-6640
query I rowsort
SELECT col1 * cor0.col0 + 94 * col1 AS col0 FROM tab0 AS cor0
----
10148
12513
16653
query I rowsort
SELECT - col2 + - cor0.col1 AS col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT col2 * - col1 * - 53 + col1 * 86 + ( + col0 + - 69 ) FROM tab0 AS cor0
----
13449
157765
403332
query I rowsort
SELECT + cor0.col0 + - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c22e7a33a1d8d55a5f7224b3cf03e3bc
query I rowsort
SELECT DISTINCT col2 + 34 AS col2 FROM tab2 AS cor0
----
60
61
72
query I rowsort
SELECT - 48 + + col0 * - col0 FROM tab0 AS cor0
----
-1273
-624
-7969
query I rowsort
SELECT DISTINCT tab0.col1 - 23 AS col2 FROM tab0
----
63
68
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4510
SELECT - col2 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4510
SELECT - col2 / - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 61 * - cor0.col2 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT ALL - 77 * col1 AS col2 FROM tab0 cor0
----
-6622
-7007
-7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + + ( - col0 ) * 62 AS col0 FROM tab1 cor0
----
-186
-3968
-4960
query I rowsort
SELECT ALL 13 * + col0 AS col2 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT - + col2 * + col2 * - ( col1 ) FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + ( col0 ) * - ( - col2 ) * + cor0.col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + + col1 * col1 + + 33 * col2 AS col0 FROM tab2 cor0
----
1543
1852
4339
query I rowsort
SELECT DISTINCT - + col2 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT + col0 * col2 * col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT 52 * - col0 AS col2 FROM tab0 AS cor0
----
-1248
-1820
-4628
query I rowsort
SELECT cor0.col2 * col2 * col1 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL - - col2 - ( col0 ) FROM tab0 cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + + cor0.col2 * ( - 29 ) AS col2 FROM tab1 AS cor0
----
-1566
-1653
-2784
query I rowsort
SELECT + col2 + - col0 * - col1 - cor0.col1 AS col0 FROM tab0 AS cor0
----
2011
3299
8090
query I rowsort
SELECT ALL - col2 * - 9 AS col0 FROM tab2 AS cor0
----
234
243
342
query I rowsort
SELECT ALL + - 83 AS col2 FROM tab0 AS cor0
----
-83
-83
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4529
SELECT DISTINCT + - CAST( col0 AS SIGNED ) + cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) + cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4530
SELECT ALL - - CAST( ( + col2 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - - CAST ( ( + col2 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - ( col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT - + col1 + col0 * - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4532
SELECT - + col1 + col0 * - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 90 + col1 * col0 FROM tab1 AS cor0
----
-12
550
950
query I rowsort
SELECT ALL - 50 + 79 * + col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
2715
576492
62518
query I rowsort
SELECT ALL + 85 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT ALL + + cor0.col2 + cor0.col2 * col0 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col0 FROM tab1 AS cor0
----
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col0 col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab0, tab1, tab2 AS cor0, tab0 AS cor1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT DISTINCT col1 DIV - col1 AS col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT col1 / - col1 AS col2 FROM tab0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4541
SELECT ALL tab0.col1 DIV + col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL tab0.col1 / + col0 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL ( 72 ) AS col0 FROM tab1
----
72
72
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT + col2 + col0 DIV col0 col1 FROM tab1
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4543
SELECT + col2 + col0 / col0 col1 FROM tab1
----
55
58
97
query I rowsort
SELECT ( - 90 ) * col2 FROM tab1
----
-4860
-5130
-8640
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab1, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 53 + + col2 * + col1 FROM tab0
----
150
2891
7515
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col0 FROM tab0 cor0
----
94
94
94
query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4549
SELECT + - cor0.col2 * - col0 DIV col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4549
SELECT + - cor0.col2 * - col0 / col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + + col1 + + col1 + + 49 FROM tab2 AS cor0
----
111
167
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 80 + col0 col1 FROM tab1
----
-2077
-736
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4552
SELECT - CAST( 77 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
skipif mysql # not compatible
query I rowsort label-4552
SELECT - CAST ( 77 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT DISTINCT col2 + + ( col0 ) * col1 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT col2 + 91 FROM tab0
----
124
173
92
query I rowsort
SELECT col1 + + col2 * - 21 + tab1.col1 FROM tab1
----
-1082
-1177
-1990
query I rowsort
SELECT col0 + + ( col1 ) * + col0 AS col1 FROM tab1
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + - 35 - - col2 col0 FROM tab1
----
157
73
79
query I rowsort
SELECT ALL col1 + col0 * - col2 * col0 FROM tab0 AS cor0
----
-1128
-18922
-649431
query I rowsort
SELECT - col2 * + cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT col1 * 18 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1747
2637
8362
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab0, tab2 cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL col0 + 63 AS col0 FROM tab0
----
152
87
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4563
SELECT - col1 * col1 - col0 DIV col2 AS col2 FROM tab1 cor0
----
-101
-169
-676
skipif mysql # not compatible
query I rowsort label-4563
SELECT - col1 * col1 - col0 / col2 AS col2 FROM tab1 cor0
----
-101
-169
-676
query I rowsort
SELECT ALL - + ( ( col2 ) ) * - col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col2 * col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT + 15 * col0 AS col1 FROM tab1 AS cor0
----
1200
45
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4567
SELECT ALL - - 37 * col0 + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL - - 37 * col0 + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT DISTINCT CAST( NULL AS SIGNED ) + 43 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 43 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 84 * 30 FROM tab0
----
2520
2520
2520
query I rowsort
SELECT DISTINCT - 38 + - cor0.col2 * col0 FROM tab0 AS cor0
----
-73
-7336
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL - col1 + - 45 * col1 FROM tab2 AS cor0
----
-1426
-2714
-782
query I rowsort
SELECT + cor0.col1 * col0 + col2 * + col0 * col0 FROM tab2 AS cor0
----
1540
162786
238501
onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT DISTINCT col1 DIV 76 AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT col1 / 76 AS col1 FROM tab0
----
1
query I rowsort
SELECT ALL 94 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6
query I rowsort
SELECT + ( cor1.col0 ) AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + col1 * + 84 FROM tab2 AS cor0
----
1428
2604
4956
onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT col0 DIV - 62 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-4578
SELECT col0 / - 62 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab0 AS cor0
----
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4580
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 63 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 63 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col0 * 81 AS col1 FROM tab2 AS cor0
----
-567
-6318
-6399
query I rowsort
SELECT col2 + + ( 26 ) FROM tab2
----
52
53
64
query I rowsort
SELECT ALL + col1 * + ( 90 ) AS col2 FROM tab2
----
1530
2790
5310
query I rowsort
SELECT ( 2 ) + col2 AS col1 FROM tab2 AS cor0
----
28
29
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT CAST( + 23 AS SIGNED ) DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4585
SELECT CAST ( + 23 AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT + - col2 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT cor0.col2 + + col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - - col1 * col1 + col2 - col2 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT + 10 + col2 + cor0.col2 DIV ( - col1 ) AS col0 FROM tab1 cor0
----
62
62
99
skipif mysql # not compatible
query I rowsort label-4589
SELECT + 10 + col2 + cor0.col2 / ( - col1 ) AS col0 FROM tab1 cor0
----
62
62
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4590
SELECT ( + cor0.col2 ) DIV col2 - - 51 FROM tab1 AS cor0
----
52
52
52
skipif mysql # not compatible
query I rowsort label-4590
SELECT ( + cor0.col2 ) / col2 - - 51 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT + + 19 * - col0 AS col2 FROM tab1 AS cor0
----
-1216
-1520
-57
query I rowsort
SELECT - col2 * cor0.col0 + + col0 AS col1 FROM tab0 cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT col0 + - cor0.col1 DIV col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-4593
SELECT col0 + - cor0.col1 / col1 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT 69 + - col0 + - col2 DIV + col1 FROM tab1
----
-18
0
64
skipif mysql # not compatible
query I rowsort label-4594
SELECT 69 + - col0 + - col2 / + col1 FROM tab1
----
-18
0
64
query I rowsort
SELECT DISTINCT ( + 3 ) + col1 * + ( col0 ) * + col2 FROM tab1
----
36483
4215
99843
query I rowsort
SELECT + col2 * + col0 - + 20 FROM tab2 AS cor0
----
169
2008
2982
query I rowsort
SELECT - col1 + + 52 FROM tab2 AS cor0
----
-7
21
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT DISTINCT - + col0 * col2 + col1 * cor0.col1 - - 7 DIV - ( col1 ) FROM tab1 AS cor0
----
-3548
-7511
514
skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT - + col0 * col2 + col1 * cor0.col1 - - 7 / - ( col1 ) FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT col0 - 26 FROM tab1 cor0
----
-23
38
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT DISTINCT cor0.col2 DIV col1 + + col2 DIV col0 FROM tab2 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT cor0.col2 / col1 + + col2 / col0 FROM tab2 AS cor0
----
0
2
3
query I rowsort
SELECT - col2 + col1 - + col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - 71 + - tab2.col2 * col2 FROM tab2
----
-1515
-747
-800
query I rowsort
SELECT 17 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT ALL + 58 AS col2 FROM tab0
----
58
58
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col2 * col2 col2 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT + 39 + - col1 + col2 * col1 FROM tab2
----
1514
668
845
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4607
SELECT col1 + - CAST( - col1 AS SIGNED ) * col2 FROM tab1
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-4607
SELECT col1 + - CAST ( - col1 AS INTEGER ) * col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col2 + ( col2 * - col2 ) + col0 AS col0 FROM tab1 cor0
----
-2859
-3128
-9040
query I rowsort
SELECT col1 + col0 * 84 AS col0 FROM tab1
----
278
5386
6733
query I rowsort
SELECT DISTINCT - col1 + col1 * col2 FROM tab2
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4612
SELECT - - col0 * col1 + - col1 DIV - col1 FROM tab1 AS cor0
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-4612
SELECT - - col0 * col1 + - col1 / - col1 FROM tab1 AS cor0
----
1041
641
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4613
SELECT ALL + col2 * + CAST( - 9 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-208
-216
-304
skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + col2 * + CAST ( - 9 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT - col0 * 1 + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + + cor0.col0 - col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT cor0.col0 * + cor0.col2 + cor0.col0 AS col1 FROM tab1 cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) AS col1 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor1.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT 13 * col0 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT cor0.col1 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 22 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT ( + col1 ) * 10 AS col1 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - 10 + - col1 AS col2 FROM tab0 AS cor0
----
-101
-107
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4625
SELECT DISTINCT + + col1 * col1 + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + + col1 * col1 + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 20 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT + col1 * tab1.col2 + col2 * col2 * col1 + - col0 AS col0 FROM tab1
----
120976
32996
77217
query I rowsort
SELECT ALL - tab1.col0 * + tab1.col2 + + col1 AS col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL + col0 * tab2.col0 * - col0 AS col2 FROM tab2
----
-343
-474552
-493039
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col1 + col1 )
----
query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT col1 IN ( + col1 * + col1 - + col0 * col2 )
----
17
31
59
query I rowsort
SELECT + col2 * col1 * + tab2.col0 + - col0 * col2 FROM tab2
----
117624
48032
5670
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE col2 NOT IN ( col0 + col2 * + col0 )
----
86
91
97
query I rowsort
SELECT col0 * col1 + col2 AS col2 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-4635
SELECT DISTINCT - 61 DIV + col0 FROM tab1 AS cor0
----
-20
0
skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT - 61 / + col0 FROM tab1 AS cor0
----
-20
0
query I rowsort
SELECT ALL - col2 + col1 * - ( - ( + col1 ) ) FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT DISTINCT - col2 * col1 + - 94 AS col0 FROM tab0 AS cor0
----
-191
-2932
-7556
query I rowsort
SELECT DISTINCT - 7 * col2 FROM tab2
----
-182
-189
-266
query I rowsort
SELECT ALL - + col2 * col1 * + col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 79 ) + cor1.col1 col2 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to fa7f0b5ced7c5128280f681bea814f94
query I rowsort
SELECT DISTINCT - - 66 + col0 * col2 FROM tab1 AS cor0
----
228
3714
7746
onlyif mysql # use DIV operator for integer division
query I rowsort label-4642
SELECT DISTINCT col1 * - cor0.col2 * + 14 + 14 DIV col0 AS col1 FROM tab1 AS cor0
----
-17472
-19652
-7980
skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT col1 * - cor0.col2 * + 14 + 14 / col0 AS col1 FROM tab1 AS cor0
----
-17472
-19652
-7980
query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( NULL ) = - col0
----
query I rowsort
SELECT DISTINCT + col0 * tab0.col2 + + col1 * col0 - - col2 * col2 FROM tab0
----
22121
3431
3945
query I rowsort
SELECT + col2 * + col1 - col0 FROM tab0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT col0 * col0 DIV - tab2.col0 col2 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4646
SELECT col0 * col0 / - tab2.col0 col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + col2 + tab1.col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT + col2 * + tab0.col2 * + col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT col2 * col1 + col2 FROM tab2
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT col1 DIV col1 - col1 AS col0 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-4650
SELECT col1 / col1 - col1 AS col0 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT DISTINCT - col1 / cor0.col2 - + col0 * col1 FROM tab0 AS cor0 WHERE NOT col0 < ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) > ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( NULL ) >= NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN col2 / col1 AND - col1
----
query I rowsort
SELECT col2 + + col0 * + col2 AS col1 FROM tab1
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - + col2 + cor0.col2 - + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4659
SELECT DISTINCT col1 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT col1 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4660
SELECT col2 * col2 + - col1 DIV + 91 + 70 AS col0 FROM tab2 AS cor0
----
1514
746
799
skipif mysql # not compatible
query I rowsort label-4660
SELECT col2 * col2 + - col1 / + 91 + 70 AS col0 FROM tab2 AS cor0
----
1514
746
799
query I rowsort
SELECT ALL - + ( + col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT - + 15 * + 97 + col2 FROM tab1 AS cor0
----
-1359
-1398
-1401
query I rowsort
SELECT DISTINCT - 98 * col0 FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT DISTINCT - col2 + - col0 + cor0.col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 54 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT DISTINCT col2 + 25 AS col2 FROM tab1
----
121
79
82
query I rowsort
SELECT 63 + + col2 * - tab0.col0 * - 32 AS col1 FROM tab0
----
1183
233599
25407
query I rowsort
SELECT 10 FROM tab1, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT ALL + 97 + 42 * tab1.col1 FROM tab1
----
1189
517
643
query I rowsort
SELECT ALL + ( col0 ) * col0 AS col1 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 33 col0 FROM tab1 cor0
----
20
23
7
query I rowsort
SELECT ALL + ( col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4673
SELECT CAST( - col1 AS SIGNED ) * - tab2.col0 * - 14 AS col0 FROM tab2
----
-18802
-3038
-64428
skipif mysql # not compatible
query I rowsort label-4673
SELECT CAST ( - col1 AS INTEGER ) * - tab2.col0 * - 14 AS col0 FROM tab2
----
-18802
-3038
-64428
query I rowsort
SELECT + 55 + - col0 AS col1 FROM tab2
----
-23
-24
48
query I rowsort
SELECT DISTINCT col2 + - 94 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-37
-58
77
query I rowsort
SELECT + 52 + col2 AS col0 FROM tab0
----
134
53
85
query I rowsort
SELECT ALL - col0 * 74 + + col2 * + col1 + - col1 * 33 AS col0 FROM tab1 AS cor0
----
-4496
-5101
324
query I rowsort
SELECT DISTINCT - cor0.col2 + - ( 48 ) * cor0.col2 FROM tab1 AS cor0
----
-2646
-2793
-4704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 - ( col0 ) col0 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT col2 - + col1 DIV 81 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-4680
SELECT col2 - + col1 / 81 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + col0 + - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT col2 + col2 + + col0 * col0 FROM tab0 AS cor0
----
1227
642
8085
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 - + col2 col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT cor0.col2 + - ( cor0.col1 ) * col0 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - cor0.col1 * col1 + + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL ( col1 ) * + col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL tab2.col2 * 51 AS col1 FROM tab2
----
1326
1377
1938
onlyif mysql # use DIV operator for integer division
query I rowsort label-4688
SELECT + 43 DIV col0 FROM tab2
----
0
0
6
skipif mysql # not compatible
query I rowsort label-4688
SELECT + 43 / col0 FROM tab2
----
0
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - 33 - + col0 col1 FROM tab0 AS cor0
----
-1740
-1751
-1805
onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT 53 * + col0 + - col2 DIV col2 FROM tab1 AS cor0
----
158
3391
4239
skipif mysql # not compatible
query I rowsort label-4690
SELECT 53 * + col0 + - col2 / col2 FROM tab1 AS cor0
----
158
3391
4239
query I rowsort
SELECT + - 58 - + 76 FROM tab0 AS cor0
----
-134
-134
-134
query I rowsort
SELECT + - 53 + + col1 AS col2 FROM tab2 cor0
----
-22
-36
6
query I rowsort
SELECT 78 * cor0.col2 FROM tab2 AS cor0
----
2028
2106
2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 * cor0.col2 col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL + 99 * - 46 FROM tab0
----
-4554
-4554
-4554
onlyif mysql # use DIV operator for integer division
query I rowsort label-4696
SELECT + 2 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4696
SELECT + 2 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL + - 60 + col1 + - col1 FROM tab2 AS cor0
----
-60
-60
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * ( col1 ) col2 FROM tab1
----
1872
720
936
query I rowsort
SELECT + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT DISTINCT + col0 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT + col1 + + 18 FROM tab1 AS cor0
----
28
31
44
query I rowsort
SELECT ALL - + col0 + + ( col1 ) * cor0.col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - + col2 + 61 AS col1 FROM tab2 AS cor0
----
23
34
35
query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab0
----
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-4706
SELECT cor0.col0 DIV + 21 FROM tab1 cor0
----
0
3
3
skipif mysql # not compatible
query I rowsort label-4706
SELECT cor0.col0 / + 21 FROM tab1 cor0
----
0
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4707
SELECT - - col1 * ( + col1 + col0 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
184
365
394
skipif mysql # not compatible
query I rowsort label-4707
SELECT - - col1 * ( + col1 + col0 ) / + col0 AS col2 FROM tab0 AS cor0
----
184
365
394
query I rowsort
SELECT + + col1 * - 13 AS col1 FROM tab1 cor0
----
-130
-169
-338
query I rowsort
SELECT col1 * 5 + col2 FROM tab1
----
107
161
184
query I rowsort
SELECT ALL col1 + ( col0 * + col2 ) AS col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT 7 FROM tab2, tab0 AS cor0
----
7
query I rowsort
SELECT DISTINCT + col2 + col1 * col1 + - col0 AS col1 FROM tab0 cor0
----
7405
8274
9375
query I rowsort
SELECT DISTINCT + - col0 * col0 + col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4715
SELECT + cor0.col0 DIV - col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4715
SELECT + cor0.col0 / - col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL - + col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + col2 * - col2 + col1 * col2 FROM tab0 AS cor0
----
1749
738
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT ALL + col0 DIV - col0 + + col0 AS col1 FROM tab2 cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + col0 / - col0 + + col0 AS col1 FROM tab2 cor0
----
6
77
78
query I rowsort
SELECT ALL + col1 * col0 * tab0.col1 - - col2 AS col2 FROM tab0
----
177537
329316
737091
query I rowsort
SELECT ALL tab1.col2 - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * + col0 * col1 AS col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT - tab1.col0 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
-3
-64
-80
query I rowsort
SELECT ALL tab1.col0 * + col1 - tab1.col0 * - col2 * col2 FROM tab1
----
208576
738320
8826
query I rowsort
SELECT ALL + tab0.col2 * col1 * col2 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4725
SELECT DISTINCT - col2 * cor0.col1 DIV col0 + col2 * col1 AS col0 FROM tab0 cor0
----
2720
7379
95
skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - col2 * cor0.col1 / col0 + col2 * col1 AS col0 FROM tab0 cor0
----
2720
7379
95
query I rowsort
SELECT DISTINCT + tab2.col1 + - col2 * col0 * - col0 FROM tab2
----
1354
158243
237175
onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT ALL col2 DIV - tab1.col0 AS col1 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL col2 / - tab1.col0 AS col1 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 + + CAST ( col1 AS REAL ) col2 FROM tab2 cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT ALL + + col0 * 58 DIV - cor0.col0 FROM tab1 AS cor0
----
-58
-58
-58
skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + + col0 * 58 / - cor0.col0 FROM tab1 AS cor0
----
-58
-58
-58
query I rowsort
SELECT col1 * - cor0.col0 + - 64 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1945
-3775
-6266
onlyif mysql # use DIV operator for integer division
query I rowsort label-4731
SELECT + cor0.col1 DIV - col2 + + 79 AS col2 FROM tab1 AS cor0
----
79
79
79
skipif mysql # not compatible
query I rowsort label-4731
SELECT + cor0.col1 / - col2 + + 79 AS col2 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT - col1 * + 84 * - col2 FROM tab1 AS cor0
----
104832
117936
47880
query I rowsort
SELECT - - col0 * 7 + - col0 FROM tab1 AS cor0
----
18
384
480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 + + 7 AS col0 FROM tab0 AS cor0
----
-17
-28
-82
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 + - CAST ( 45 AS REAL ) * - col0 AS col1 FROM tab2 AS cor0
----
342
3536
3593
query I rowsort
SELECT DISTINCT - - cor0.col0 + 7 FROM tab0 AS cor0
----
31
42
96
query I rowsort
SELECT - 58 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT ALL - tab1.col1 * tab1.col1 + col0 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT col1 + col0 * - col1 FROM tab0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 + + col1 col2 FROM tab1
----
138
173
32
query I rowsort
SELECT + col2 + 80 FROM tab0
----
113
162
81
query I rowsort
SELECT 35 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT ( 55 ) AS col0 FROM tab0, tab0 cor0, tab2, tab1 AS cor1
----
55
query I rowsort
SELECT DISTINCT tab1.col2 * + 44 + - col0 AS col1 FROM tab1
----
2373
2444
4144
query I rowsort
SELECT ALL - col1 * + 57 + col0 * col2 AS col0 FROM tab0 AS cor0
----
-4110
-5494
2111
query I rowsort
SELECT ALL + + col0 + col1 AS col1 FROM tab2 cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4748
SELECT DISTINCT col2 DIV - 80 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT col2 / - 80 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col0 * 52 + + col0 AS col2 FROM tab0 AS cor0
----
1272
1855
4717
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query I rowsort
SELECT + 33 * + col2 - + col1 AS col0 FROM tab2 AS cor0
----
1237
799
860
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT ALL + col0 DIV + col2 + col1 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + col0 / + col2 + col1 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT + col2 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * + 76 col0 FROM tab1 AS cor0
----
4107
4396
7376
onlyif mysql # use DIV operator for integer division
query I rowsort label-4756
SELECT ALL - cor0.col1 - - col2 * 76 DIV + col2 FROM tab1 AS cor0
----
50
63
66
skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - cor0.col1 - - col2 * 76 / + col2 FROM tab1 AS cor0
----
50
63
66
query I rowsort
SELECT + + col0 * col0 + + 41 - - 17 FROM tab2 AS cor0
----
107
6142
6299
query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 * + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - 82 + col2 FROM tab2
----
-44
-55
-56
query I rowsort
SELECT ALL col0 * + col2 + + col1 - col0 * + col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL 96 * - col0 + 37 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-197
-6050
-7547
query I rowsort
SELECT - 14 + + col0 AS col0 FROM tab1 AS cor0
----
-11
50
66
query I rowsort
SELECT - - 62 + - col1 * col0 * 59 AS col2 FROM tab1 AS cor0
----
-37698
-4540
-61298
query I rowsort
SELECT DISTINCT + col2 + col2 + - ( - 19 ) FROM tab0 AS cor0
----
183
21
85
query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 * + 9 * col2 AS col1 FROM tab1 AS cor0
----
1512
32889
69216
query I rowsort
SELECT ALL + - 6 * col2 FROM tab0 AS cor0
----
-198
-492
-6
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4768
SELECT ALL col0 DIV col2 + 11 AS col0 FROM tab1 AS cor0
----
11
11
12
skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL col0 / col2 + 11 AS col0 FROM tab1 AS cor0
----
11
11
12
query I rowsort
SELECT DISTINCT - 99 + + col1 - - 97 FROM tab1 AS cor0
----
11
24
8
query I rowsort
SELECT DISTINCT ( + col1 ) + col0 - - col1 * col0 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT - 61 FROM tab2 cor0
----
-61
-61
-61
query I rowsort
SELECT - + col2 + 69 * col1 FROM tab1 AS cor0
----
1740
633
801
query I rowsort
SELECT col1 * 12 * 43 - col1 FROM tab0 AS cor0
----
44290
46865
49955
query I rowsort
SELECT ALL - col2 * + 48 - col1 * col0 AS col1 FROM tab1 cor0
----
-2670
-3376
-5648
query I rowsort
SELECT DISTINCT - col0 - - 23 AS col0 FROM tab0 AS cor0
----
-1
-12
-66
query I rowsort
SELECT + - 16 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT + col0 * + col0 - - 44 FROM tab2 AS cor0
----
6128
6285
93
query I rowsort
SELECT - col2 * 37 - - 43 FROM tab2 AS cor0
----
-1363
-919
-956
query I rowsort
SELECT ALL + + ( 61 ) + col1 * - 42 FROM tab0 AS cor0
----
-3551
-3761
-4013
query I rowsort
SELECT - - ( + ( - col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - cor2.col0 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
query I rowsort
SELECT - col2 + + col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT + col1 DIV 62 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4783
SELECT + col1 / 62 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col1 + 63 + col2 AS col1 FROM tab0
----
-33
10
54
query I rowsort
SELECT - cor1.col1 + - cor1.col1 + - 95 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 20e9e6a623bd68bdfc5467d732e66543
query I rowsort
SELECT - 22 * col1 * 79 AS col1 FROM tab0 AS cor0
----
-149468
-158158
-168586
onlyif mysql # use DIV operator for integer division
query I rowsort label-4787
SELECT - col1 * - 67 * col1 + col2 * 0 DIV col0 AS col2 FROM tab0
----
495532
554827
630403
skipif mysql # not compatible
query I rowsort label-4787
SELECT - col1 * - 67 * col1 + col2 * 0 / col0 AS col2 FROM tab0
----
495532
554827
630403
query I rowsort
SELECT - tab2.col0 + 58 * + col0 FROM tab2
----
399
4446
4503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col1 FROM tab0 cor0
----
12
12
12
query I rowsort
SELECT - + 52 * - col2 FROM tab0 AS cor0
----
1716
4264
52
query I rowsort
SELECT DISTINCT col2 * - 7 FROM tab2
----
-182
-189
-266
query I rowsort
SELECT + ( 90 ) AS col1 FROM tab2
----
90
90
90
query I rowsort
SELECT ALL - + 69 * 21 - + col0 AS col2 FROM tab1 cor0
----
-1452
-1513
-1529
query I rowsort
SELECT + + 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT col1 - - ( 85 ) DIV col1 FROM tab2
----
22
33
60
skipif mysql # not compatible
query I rowsort label-4795
SELECT col1 - - ( 85 ) / col1 FROM tab2
----
22
33
60
query I rowsort
SELECT ( 22 ) FROM tab2, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT DISTINCT + ( col2 ) - + tab1.col1 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 64 + col1 col0 FROM tab0
----
161
2198
5339
query I rowsort
SELECT + col1 + - tab2.col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + + tab1.col2 - col0 * tab1.col0 FROM tab1
----
-3975
-6224
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-4801
SELECT cor0.col2 DIV 94 - + col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-4801
SELECT cor0.col2 / 94 - + col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - 16 * + 85 AS col2 FROM tab1 AS cor0
----
-1360
-1360
-1360
query I rowsort
SELECT + - ( 95 ) + - col1 + + 77 FROM tab0 cor0
----
-104
-109
-115
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4804
SELECT + 37 * + col0 + - col1 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
235
2905
2985
skipif mysql # not compatible
query I rowsort label-4804
SELECT + 37 * + col0 + - col1 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
235
2905
2985
query I rowsort
SELECT ( + col1 ) * + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col2 FROM tab1
----
40
40
40
query I rowsort
SELECT - - 38 * + col0 AS col1 FROM tab1 AS cor0
----
114
2432
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4808
SELECT ALL - ( + col2 ) * + CAST( col0 AS SIGNED ) - + col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - ( + col2 ) * + CAST ( col0 AS INTEGER ) - + col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + + col1 + col1 * - col2 * + col2 AS col2 FROM tab2 cor0
----
-22568
-24531
-39825
query I rowsort
SELECT + + col1 * + 62 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT + + col2 + cor0.col2 * 82 FROM tab2 AS cor0
----
2158
2241
3154
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 - col1 AS col2 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab0, tab0 cor0
----
73
query I rowsort
SELECT + + col1 * + col1 * 72 AS col1 FROM tab1 AS cor0
----
12168
48672
7200
query I rowsort
SELECT + col2 * 83 FROM tab0 AS cor0
----
2739
6806
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT DISTINCT + col0 + 99 * 93 DIV - col0 AS col2 FROM tab0 AS cor0
----
-14
-228
-359
skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT + col0 + 99 * 93 / - col0 AS col2 FROM tab0 AS cor0
----
-14
-228
-359
query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + col0 * - ( - ( col2 ) ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - col0 + 30 * cor0.col1 AS col2 FROM tab2 cor0
----
1692
431
923
onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT DISTINCT col1 * col0 DIV + col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT col1 * col0 / + col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col2 + + 89 * col0 FROM tab0 cor0
----
2103
3114
7839
query I rowsort
SELECT DISTINCT + col2 * 93 * col2 AS col0 FROM tab1 AS cor0
----
271188
302157
857088
query I rowsort
SELECT DISTINCT + + col1 + - col2 AS col2 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4824
SELECT CAST( - 8 AS SIGNED ) FROM tab1 AS cor0
----
-8
-8
-8
skipif mysql # not compatible
query I rowsort label-4824
SELECT CAST ( - 8 AS INTEGER ) FROM tab1 AS cor0
----
-8
-8
-8
query I rowsort
SELECT ALL ( - col2 ) + - col1 + cor0.col2 * - 39 * cor0.col1 AS col0 FROM tab0 cor0
----
-110801
-291191
-3881
query I rowsort
SELECT DISTINCT + ( col1 ) * col0 - - ( col1 ) FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL col2 * + col2 + - col2 + + 17 AS col2 FROM tab0 AS cor0
----
1073
17
6659
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * col0 col1 FROM tab1 cor0
----
1792
2240
84
query I rowsort
SELECT - - 15 AS col2 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT - col0 + - 69 * col0 FROM tab0 AS cor0
----
-1680
-2450
-6230
query I rowsort
SELECT DISTINCT + - 63 + - col2 AS col0 FROM tab1 AS cor0
----
-117
-120
-159
query I rowsort
SELECT ALL + 1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT ALL - 73 + col0 + - col1 FROM tab2 AS cor0
----
-11
-54
-97
query I rowsort
SELECT 89 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
25
86
9
query I rowsort
SELECT DISTINCT - col0 * col2 * ( - col1 + + cor0.col1 ) AS col2 FROM tab2 cor0
----
0
query I rowsort
SELECT col0 + col2 * + 91 + col2 AS col2 FROM tab0 AS cor0
----
127
3060
7633
query I rowsort
SELECT + col2 * + cor0.col1 + cor0.col2 * 57 + col2 FROM tab1 AS cor0
----
3876
4536
6816
query I rowsort
SELECT col0 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT + ( col0 ) + col1 + cor0.col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT col1 * cor0.col2 + ( cor0.col1 ) FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - + 91 FROM tab2 AS cor0
----
-91
-91
-91
query I rowsort
SELECT ALL - col2 * + col0 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT + + 72 AS col2 FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT + 78 * tab0.col1 AS col0 FROM tab0
----
6708
7098
7566
onlyif mysql # use DIV operator for integer division
query I rowsort label-4845
SELECT ALL 85 DIV col0 AS col1 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL 85 / col0 AS col1 FROM tab0
----
0
2
3
query I rowsort
SELECT ( tab2.col0 + - tab2.col2 ) * col0 FROM tab2
----
-140
3239
4056
query I rowsort
SELECT ( + col2 ) - cor0.col1 * col1 FROM tab2 AS cor0
----
-251
-3455
-934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4848
SELECT ALL + + col1 + + col0 * cor0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL + + col1 + + col0 * cor0.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 91 * + col1 + cor0.col0 FROM tab0 AS cor0
----
7850
8370
8862
query I rowsort
SELECT DISTINCT col2 * ( - col0 + - 80 ) AS col0 FROM tab1 AS cor0
----
-15360
-4482
-8208
query I rowsort
SELECT DISTINCT col1 + + 74 FROM tab0 AS cor0
----
160
165
171
query I rowsort
SELECT DISTINCT ( ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - - ( col0 ) * col2 + + 81 + cor0.col0 FROM tab2 AS cor0
----
2187
277
3162
query I rowsort
SELECT ( col1 ) * - col2 + + 83 AS col0 FROM tab2 AS cor0
----
-1451
-563
-754
query I rowsort
SELECT - col2 * 53 + col0 + 80 FROM tab0 AS cor0
----
-1645
-4177
62
query I rowsort
SELECT ALL - 0 + col2 * + cor0.col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + + col0 * - col0 * - cor0.col0 FROM tab2 AS cor0
----
343
474552
493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT DISTINCT + + col2 DIV - 99 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT + + col2 / - 99 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4859
SELECT ALL - - CAST( - col2 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - - CAST ( - col2 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + 7 * + col2 + col0 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
1218
345
7347
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4861
SELECT - CAST( 92 AS SIGNED ) + tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c59df4d3d2d2155bd27dcfbd5e753dbe
skipif mysql # not compatible
query I rowsort label-4861
SELECT - CAST ( 92 AS INTEGER ) + tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c59df4d3d2d2155bd27dcfbd5e753dbe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT - col0 + col1 * col1 + - CAST( - 37 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
126
710
73
skipif mysql # not compatible
query I rowsort label-4862
SELECT - col0 + col1 * col1 + - CAST ( - 37 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
126
710
73
query I rowsort
SELECT + col2 + - 20 * col1 AS col2 FROM tab2 AS cor0
----
-1154
-302
-593
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * cor0.col1 col2 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT DISTINCT - tab2.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * col0 col0 FROM tab2
----
-105
-1170
-1185
query I rowsort
SELECT ALL + col2 * ( + 82 ) - col1 * + 17 FROM tab1 cor0
----
3986
4504
7651
query I rowsort
SELECT DISTINCT cor0.col2 + tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 842626f118cf89b4c73f66c187067e39
query I rowsort
SELECT DISTINCT tab0.col0 * - tab0.col2 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col0 * - col0 + - col1 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT col2 - - 23 FROM tab2
----
49
50
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-4872
SELECT tab1.col1 + ( col2 ) DIV + col1 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-4872
SELECT tab1.col1 + ( col2 ) / + col1 FROM tab1
----
15
20
28
query I rowsort
SELECT DISTINCT + col1 * - 2 + col0 FROM tab2 AS cor0
----
-40
-55
45
query I rowsort
SELECT DISTINCT - col2 * ( ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT + col0 * + col2 DIV col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4875
SELECT + col0 * + col2 / col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - 2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2
query I rowsort
SELECT - cor0.col1 * ( 89 ) + col2 AS col1 FROM tab1 AS cor0
----
-1061
-2260
-833
query I rowsort
SELECT ALL - - col2 + 43 FROM tab0 AS cor0
----
125
44
76
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
86
91
97
query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab1, tab0 AS cor0
----
44
query I rowsort
SELECT - 93 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * + col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4883
SELECT CAST( + col1 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-4883
SELECT CAST ( + col1 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ( col0 ) * - col1 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col1 + col0 * ( + cor0.col0 ) - col2 AS col2 FROM tab2 AS cor0
----
53
6117
6220
query I rowsort
SELECT - 36 * cor0.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7cf26ddbdbc6d62d1cca181828294a67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col2 FROM tab2, tab0, tab0 cor0, tab2 cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL - 46 * tab2.col1 FROM tab2
----
-1426
-2714
-782
query I rowsort
SELECT ALL 48 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT + col0 + col0 DIV + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4890
SELECT + col0 + col0 / + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT + ( + cor0.col0 ) * ( col2 ) + col0 + 34 AS col2 FROM tab2 AS cor0
----
2140
230
3115
query I rowsort
SELECT DISTINCT cor0.col0 * col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL + 20 * col1 - col0 FROM tab0 AS cor0
----
1696
1731
1905
query I rowsort
SELECT ALL - 82 * + col2 FROM tab1 AS cor0
----
-4428
-4674
-7872
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-4896
SELECT + cor0.col1 DIV - cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4896
SELECT + cor0.col1 / - cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - - col1 + - ( - 7 ) FROM tab0 AS cor0
----
104
93
98
query I rowsort
SELECT ALL col1 + col0 * + 33 FROM tab0
----
1252
3028
878
query I rowsort
SELECT ALL 21 + col1 AS col2 FROM tab1
----
31
34
47
query I rowsort
SELECT + + 20 * + col1 FROM tab0 AS cor0
----
1720
1820
1940
query I rowsort
SELECT ALL ( + col2 ) + + 61 AS col2 FROM tab0 AS cor0
----
143
62
94
query I rowsort
SELECT 11 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT ALL col2 * col2 DIV - col1 FROM tab2
----
-11
-23
-84
skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL col2 * col2 / - col1 FROM tab2
----
-11
-23
-84
query I rowsort
SELECT ALL - ( col2 ) * + tab2.col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT 68 - - col1 FROM tab2
----
127
85
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4906
SELECT - + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4906
SELECT - + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 + 25 + - ( + col2 ) * ( col0 ) FROM tab1
----
-111
-3613
-7642
onlyif mysql # use DIV operator for integer division
query I rowsort label-4908
SELECT col1 DIV 88 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4908
SELECT col1 / 88 FROM tab1
----
0
0
0
query I rowsort
SELECT + tab1.col0 * - 73 FROM tab1
----
-219
-4672
-5840
query I rowsort
SELECT 53 * + col1 AS col0 FROM tab1
----
1378
530
689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4911
SELECT - CAST( NULL AS SIGNED ) + col1 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4911
SELECT - CAST ( NULL AS INTEGER ) + col1 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 + 33 * + col2 FROM tab1 AS cor0
----
1808
1891
3181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4913
SELECT - - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4913
SELECT - - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + - 74 * col0 FROM tab2 AS cor0
----
-518
-5772
-5846
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT - CAST( NULL AS SIGNED ) * 85 + - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4915
SELECT - CAST ( NULL AS INTEGER ) * 85 + - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col1 * - tab1.col0 + + col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT - 16 + - col0 * col1 AS col2 FROM tab2
----
-1359
-233
-4618
query I rowsort
SELECT ALL ( + 48 ) + col0 AS col0 FROM tab0
----
137
72
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT ALL col2 DIV + col2 + - col2 col0 FROM tab0
----
-32
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL col2 / + col2 + - col2 col0 FROM tab0
----
-32
-81
0
query I rowsort
SELECT + 57 * col0 FROM tab1
----
171
3648
4560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4922
SELECT DISTINCT col1 * - col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT col1 * - col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 4 AS col1 FROM tab1 cor0
----
4
4
4
query I rowsort
SELECT ALL - col0 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL + + col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT cor0.col2 * - col1 + + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT col2 + - col1 * + ( + col2 ) FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + cor0.col2 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + - 85 * - col0 - - 84 AS col1 FROM tab1 AS cor0
----
339
5524
6884
query I rowsort
SELECT - ( 40 ) FROM tab0
----
-40
-40
-40
query I rowsort
SELECT ALL 54 * - 3 * - col1 FROM tab2
----
2754
5022
9558
query I rowsort
SELECT ALL - col1 + - col2 * - col0 AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - 39 * + col2 + - col1 + - 10 FROM tab1 AS cor0
----
-2142
-2243
-3767
query I rowsort
SELECT ALL + col2 * cor0.col0 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + col1 - col0 AS col0 FROM tab0 cor0
----
2
62
query I rowsort
SELECT ALL tab2.col0 + col0 * + 88 - col2 AS col2 FROM tab2
----
596
6916
6993
query I rowsort
SELECT DISTINCT + col1 * - 15 AS col0 FROM tab0 AS cor0
----
-1290
-1365
-1455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4938
SELECT + + col1 * - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4938
SELECT + + col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4939
SELECT ALL - col1 + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - col1 + 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-4940
SELECT ALL - - col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL - - col2 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT cor0.col1 * 12 AS col1 FROM tab0 AS cor0
----
1032
1092
1164
query I rowsort
SELECT - - col2 * 52 FROM tab0 AS cor0
----
1716
4264
52
query I rowsort
SELECT + col0 * 48 AS col0 FROM tab0 AS cor0
----
1152
1680
4272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4944
SELECT + CAST( col1 AS SIGNED ) - col0 AS col0 FROM tab0 cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-4944
SELECT + CAST ( col1 AS INTEGER ) - col0 AS col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab2 cor0
----
26
27
38
query I rowsort
SELECT - 72 + + cor0.col0 * col0 FROM tab1 AS cor0
----
-63
4024
6328
query I rowsort
SELECT ALL + 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT - col0 + - col2 * col0 FROM tab2 WHERE NULL NOT IN ( + tab2.col1 * + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT - col2 + - col2 DIV col1 FROM tab1
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-4949
SELECT - col2 + - col2 / col1 FROM tab1
----
-103
-56
-62
query I rowsort
SELECT - col1 + + tab0.col2 * col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT DISTINCT - col0 * + col1 * col2 - tab1.col2 * col2 FROM tab1
----
-109056
-39729
-7128
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 * - col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT col0 + + col1 * col1 + + col0 AS col1 FROM tab2 cor0
----
3637
447
975
query I rowsort
SELECT ALL col2 + col2 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND - col0 + col2
----
query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - cor0.col2 / col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 * - col2 )
----
query I rowsort
SELECT ALL col1 * - col2 - col0 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT tab2.col1 * col0 + + col1 FROM tab2
----
1360
248
4661
query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) = ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * + col0 - col1 * - tab1.col0 FROM tab1
----
4736
7440
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 * - col2 col1 FROM tab2 WHERE NOT + col0 IN ( + col1 * + col2 )
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT DISTINCT + col2 + col2 DIV col1 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + col2 + col2 / col1 FROM tab1
----
103
56
62
query III rowsort
SELECT * FROM tab0 WHERE col0 = - col1 + col1 * col1
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col0 - col0 )
----
query I rowsort
SELECT DISTINCT col1 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + tab1.col0 + col2 * col0 * col2 AS col1 FROM tab1
----
208000
737360
8751
query I rowsort
SELECT + col0 * + col2 + cor0.col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT col2 + + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT DISTINCT - - col0 DIV col2 + - cor0.col2 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT - - col0 / col2 + - cor0.col2 FROM tab0 AS cor0
----
-33
-81
34
query I rowsort
SELECT + + col1 * col0 * col1 + col2 AS col0 FROM tab0 AS cor0
----
177537
329316
737091
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 * + col0 * - col2 col0 FROM tab2 AS cor0
----
1350
158210
237196
query I rowsort
SELECT ALL col1 * cor0.col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + col0 * col1 FROM tab2 AS cor0 WHERE NULL = col2
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col0
----
query I rowsort
SELECT - col0 * - col2 * col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - - col2 + 87 * 42 AS col1 FROM tab2 AS cor0
----
3680
3681
3692
query I rowsort
SELECT + col0 + ( + col0 + col2 ) AS col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT cor0.col0 + + 11 AS col2 FROM tab1 AS cor0
----
14
75
91
query I rowsort
SELECT - col1 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4980
SELECT - col1 * CAST( NULL AS SIGNED ) + cor0.col1 * col2 / 82 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4980
SELECT - col1 * CAST ( NULL AS INTEGER ) + cor0.col1 * col2 / 82 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + 77 + - 82 AS col1 FROM tab1 AS cor0
----
1920
688
919
query I rowsort
SELECT ALL col1 * + col1 + + ( 94 + - col1 * - ( col1 ) ) AS col2 FROM tab2
----
2016
672
7056
query I rowsort
SELECT + 65 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT DISTINCT - col1 DIV - 37 FROM tab0
----
2
skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT - col1 / - 37 FROM tab0
----
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4985
SELECT - tab1.col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4985
SELECT - tab1.col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 * col0 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT col2 * CAST( NULL AS SIGNED ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4987
SELECT col2 * CAST ( NULL AS INTEGER ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4988
SELECT - col0 + - col1 DIV col2 AS col0 FROM tab0
----
-132
-26
-90
skipif mysql # not compatible
query I rowsort label-4988
SELECT - col0 + - col1 / col2 AS col0 FROM tab0
----
-132
-26
-90
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NULL IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4990
SELECT ALL + col1 + + col0 + col1 DIV tab1.col2 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL + col1 + + col0 + col1 / tab1.col2 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4991
SELECT - col0 * col1 DIV + col1 + + tab0.col1 FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-4991
SELECT - col0 * col1 / + col1 + + tab0.col1 FROM tab0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 * + col0 * - tab1.col1 col1 FROM tab1
----
-36480
-4212
-99840
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) = ( - col0 )
----
query I rowsort
SELECT - col0 * col1 * + tab2.col2 AS col2 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab1.col0 + - col2 col1 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT DISTINCT - col1 * - col0 + col1 AS col2 FROM tab1
----
104
1053
650
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + col0 <> ( NULL )
----
query I rowsort
SELECT - col1 * - col1 * - col2 AS col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + col1 col0 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT + tab1.col0 * + col2 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col2 - + col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - - 91 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-198
-3390
-870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 + + col1 * col0 col1 FROM tab0 AS cor0
----
2009
3340
8044
query I rowsort
SELECT DISTINCT - tab2.col1 + col2 + tab2.col0 AS col0 FROM tab2
----
100
3
45
query I rowsort
SELECT col0 * col1 + - cor0.col2 * - col0 * - col0 FROM tab1 AS cor0
----
-232832
-408
-613360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 81 col1 FROM tab2
----
112
140
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT - - col1 + + col0 * ( + col0 ) DIV col1 FROM tab2 AS cor0
----
162
32
384
skipif mysql # not compatible
query I rowsort label-5007
SELECT - - col1 + + col0 * ( + col0 ) / col1 FROM tab2 AS cor0
----
162
32
384
query I rowsort
SELECT ALL 81 * 74 FROM tab1 AS cor0
----
5994
5994
5994
query I rowsort
SELECT ALL - 21 + + col2 AS col1 FROM tab2 AS cor0
----
17
5
6
query I rowsort
SELECT ALL - 74 + + col1 AS col0 FROM tab2 AS cor0
----
-15
-43
-57
query I rowsort
SELECT - ( + 95 ) AS col2 FROM tab1 AS cor0
----
-95
-95
-95
query I rowsort
SELECT - col2 - col2 AS col0 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT + col1 * - col1 - + col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5014
SELECT + col0 * - col1 - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-1136
-132
-697
skipif mysql # not compatible
query I rowsort label-5014
SELECT + col0 * - col1 - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-1136
-132
-697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + col2 + col0 * + cor0.col2 col2 FROM tab1 AS cor0
----
-391
1376
207
query I rowsort
SELECT - - col2 + col2 + 56 FROM tab0 AS cor0
----
122
220
58
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT 90 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
90
query I rowsort
SELECT - + 31 - col2 * col1 FROM tab1 cor0
----
-1279
-1435
-601
query I rowsort
SELECT - 4 * + col1 AS col1 FROM tab0
----
-344
-364
-388
query I rowsort
SELECT + col0 * + col1 + 9 + - col0 AS col0 FROM tab1 AS cor0
----
585
84
969
query I rowsort
SELECT DISTINCT col2 + + 55 FROM tab2 AS cor0
----
81
82
93
query I rowsort
SELECT - col1 * - col2 * tab1.col0 AS col2 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT ALL + col2 + 28 DIV + col0 col2 FROM tab1 AS cor0
----
57
63
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL + col2 + 28 / + col0 col2 FROM tab1 AS cor0
----
57
63
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT + tab1.col1 DIV + col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-5025
SELECT + tab1.col1 / + col0 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT 10 * col0 * + 3 + 16 - - col0 * + col2 FROM tab2
----
415
4384
5388
query I rowsort
SELECT cor0.col0 * 47 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 08462efec61ad7595c77d42eb47b8c2e
query I rowsort
SELECT ALL - cor0.col0 * + col1 + + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - col2 * cor0.col1 + col2 * + col2 FROM tab0 AS cor0
----
-1749
-738
-96
query I rowsort
SELECT - col2 * cor0.col2 - - col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL col1 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + + col0 * cor0.col1 + - cor0.col2 + col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT DISTINCT + col1 * cor0.col0 + col1 DIV + cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
2090
3527
8189
skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT + col1 * cor0.col0 + col1 / + cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
2090
3527
8189
query I rowsort
SELECT ALL - - col2 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL col2 - + col2 * + col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT - col1 * + col2 * col2 - + col2 AS col1 FROM tab1
----
-119904
-32547
-75870
query I rowsort
SELECT DISTINCT col1 * col0 + + col1 AS col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT + col0 + col2 + col1 AS col0 FROM tab1
----
131
189
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 * col2 + tab0.col2 + + col0 * col2 col0 FROM tab0
----
133
619264
94479
query I rowsort
SELECT DISTINCT col0 + col1 * tab1.col0 AS col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT col2 * col2 + - tab2.col1 + col0 * tab2.col0 FROM tab2
----
6701
747
7668
query I rowsort
SELECT DISTINCT col1 + tab0.col1 * - col2 FROM tab0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 * col1 + + col1 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + col0 * col0 * - col2 + col1 + tab1.col1 * col0 FROM tab1
----
-232822
-382
-613347
onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT DISTINCT - - col1 + col0 DIV cor0.col2 FROM tab1 cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - - col1 + col0 / cor0.col2 FROM tab1 cor0
----
11
13
26
query I rowsort
SELECT ALL col1 + col0 * tab1.col1 AS col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 * col0 FROM tab2 AS cor0
----
-2603
-5952
912
query I rowsort
SELECT 22 * + col0 AS col1 FROM tab1 AS cor0
----
1408
1760
66
query I rowsort
SELECT ALL - ( - 43 ) AS col2 FROM tab2
----
43
43
43
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col2 * + col0 + col2 * col1 AS col2 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT DISTINCT - - col2 * col2 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
15616
2925
7345
query I rowsort
SELECT + - 0 * - col1 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT - 35 * col0 DIV + col1 FROM tab2 AS cor0
----
-162
-46
-7
skipif mysql # not compatible
query I rowsort label-5054
SELECT - 35 * col0 / + col1 FROM tab2 AS cor0
----
-162
-46
-7
query I rowsort
SELECT ALL - ( - 92 ) AS col2 FROM tab0
----
92
92
92
query I rowsort
SELECT - col0 + + ( col0 + + 66 ) FROM tab2
----
66
66
66
query I rowsort
SELECT 55 + + col1 AS col1 FROM tab0
----
141
146
152
query I rowsort
SELECT + 19 * col0 FROM tab1
----
1216
1520
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5059
SELECT + CAST( NULL AS SIGNED ) * - col1 + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5059
SELECT + CAST ( NULL AS INTEGER ) * - col1 + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 28 * col1 FROM tab2 cor0
----
1652
476
868
query I rowsort
SELECT ALL + + 67 * + cor0.col2 + + col0 FROM tab0 AS cor0
----
102
2235
5583
query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + col1 - - col1 FROM tab1 cor0
----
120
195
728
query I rowsort
SELECT ALL - 14 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 + + col2 AS col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT + - 66 + - col2 FROM tab2 AS cor0
----
-104
-92
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT ALL - - col2 + col2 DIV - col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL - - col2 + col2 / - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 69 + + col0 FROM tab1 AS cor0
----
133
149
72
query I rowsort
SELECT DISTINCT + col2 + + col0 * + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
1350
158210
237196
query I rowsort
SELECT ALL 99 AS col2 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT ALL - col0 + + 48 FROM tab1
----
-16
-32
45
query I rowsort
SELECT ALL col1 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5072
SELECT - col2 - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5072
SELECT - col2 - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col0 + - col0 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + + col1 + 95 FROM tab1 cor0
----
105
108
121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * - col2 * col1 col0 FROM tab0 cor0
----
-3394
-664036
-68079
query I rowsort
SELECT + col1 - ( col0 ) AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL col2 * col1 * - cor0.col0 + col1 + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1270
-33221
-90611
onlyif mysql # use DIV operator for integer division
query I rowsort label-5078
SELECT + col1 DIV 35 + ( - col1 * - ( + col1 ) ) col2 FROM tab2 AS cor0
----
289
3482
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5078
SELECT + col1 / 35 + ( - col1 * - ( + col1 ) ) col2 FROM tab2 AS cor0
----
289
3482
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5079
SELECT DISTINCT + col2 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT + col2 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5080
SELECT DISTINCT col1 * ( - 14 ) - col2 DIV ( col1 ) AS col1 FROM tab2 cor0
----
-240
-434
-826
skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT col1 * ( - 14 ) - col2 / ( col1 ) AS col1 FROM tab2 cor0
----
-240
-434
-826
query I rowsort
SELECT DISTINCT col2 * ( - col2 * - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5082
SELECT DISTINCT + cor0.col2 * ( col1 ) * + col0 + CAST( NULL AS DECIMAL ) * - 59 AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + cor0.col2 * ( col1 ) * + col0 + CAST ( NULL AS REAL ) * - 59 AS col1 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 50 + + col1 col2 FROM tab1 AS cor0
----
-1274
-490
-637
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5084
SELECT + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5084
SELECT + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col2 + - ( + col1 ) FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT ALL + - col0 DIV col0 - - col0 AS col2 FROM tab1 cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + - col0 / col0 - - col0 AS col2 FROM tab1 cor0
----
2
63
79
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 - - col1 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT - col2 DIV - ( - col1 ) - + col2 FROM tab1
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-5088
SELECT - col2 / - ( - col1 ) - + col2 FROM tab1
----
-103
-56
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 29 col2 FROM tab0 AS cor0
----
-2494
-2639
-2813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5090
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5091
SELECT ALL + CAST( + col0 AS SIGNED ) DIV col2 AS col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL + CAST ( + col0 AS INTEGER ) / col2 AS col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT + - ( + 72 ) FROM tab0 AS cor0
----
-72
-72
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col0 FROM tab1 AS cor0
----
-99
query I rowsort
SELECT ALL cor0.col2 * - col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col1 * - col1 - + col2 FROM tab0 cor0
----
-7429
-8363
-9410
query I rowsort
SELECT + col0 * + col1 + - col2 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * 82 FROM tab0 AS cor0
----
117
2730
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT DISTINCT - + col0 * col2 DIV - col1 + col0 FROM tab0 AS cor0
----
169
33
35
skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT - + col0 * col2 / - col1 + col0 FROM tab0 AS cor0
----
169
33
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5099
SELECT col1 * cor0.col1 DIV 76 FROM tab2 AS cor0
----
12
3
45
skipif mysql # not compatible
query I rowsort label-5099
SELECT col1 * cor0.col1 / 76 FROM tab2 AS cor0
----
12
3
45
query I rowsort
SELECT - tab2.col0 + col1 + col1 AS col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT DISTINCT + col0 + ( 3 * + tab1.col2 ) AS col0 FROM tab1
----
165
235
368
query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - col1 * - col0 + 17 * col1 * 87 FROM tab0
----
129258
142688
146858
query I rowsort
SELECT col2 * col0 * 23 FROM tab1
----
176640
3726
83904
query I rowsort
SELECT DISTINCT col2 + - 57 + col2 * + col1 AS col0 FROM tab2
----
1503
627
807
query I rowsort
SELECT DISTINCT - col1 + 49 + 72 AS col1 FROM tab1
----
108
111
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT ALL + col2 DIV 33 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + col2 / 33 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT ALL - col2 * ( col2 ) + + col1 FROM tab1
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col2 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 13 * + col2 * cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
16211
18226
7400
query I rowsort
SELECT - ( 39 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT col1 * 42 DIV - 81 + + col1 AS col1 FROM tab2 AS cor0
----
15
29
9
skipif mysql # not compatible
query I rowsort label-5112
SELECT col1 * 42 / - 81 + + col1 AS col1 FROM tab2 AS cor0
----
15
29
9
query I rowsort
SELECT + cor0.col0 * - 25 * col0 + + col0 * - 57 AS col1 FROM tab2 AS cor0
----
-156546
-160528
-1624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5114
SELECT + col0 + - ( - col0 + cor0.col0 ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5114
SELECT + col0 + - ( - col0 + cor0.col0 ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5115
SELECT tab2.col1 * - 51 + + 64 DIV col1 col1 FROM tab2
----
-1579
-3008
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5115
SELECT tab2.col1 * - 51 + + 64 / col1 col1 FROM tab2
----
-1579
-3008
-864
query I rowsort
SELECT ALL tab2.col2 + ( tab2.col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT + col1 * col0 + tab0.col1 * col1 FROM tab0
----
12804
16380
9460
query I rowsort
SELECT ALL col2 * - 56 FROM tab1 AS cor0
----
-3024
-3192
-5376
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 17 col0 FROM tab2 AS cor0
----
-43
-44
-55
query I rowsort
SELECT - col2 + ( col2 * - cor0.col0 ) FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL 1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703
query I rowsort
SELECT - cor0.col2 * col0 + 89 * col1 FROM tab2 AS cor0
----
-1489
2570
3223
query I rowsort
SELECT col0 + - ( tab0.col1 ) FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + col0 * 10 AS col1 FROM tab0 AS cor0
----
240
350
890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5126
SELECT - CAST( col1 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-5126
SELECT - CAST ( col1 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
1
33
82
query I rowsort
SELECT cor1.col2 FROM tab1, tab0 AS cor0, tab0 cor1, tab0 cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT + 59 + 63 FROM tab2 AS cor0
----
122
122
122
query I rowsort
SELECT + col0 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT col1 + + 63 * col1 AS col1 FROM tab1 AS cor0
----
1664
640
832
query I rowsort
SELECT - col1 + - col2 - + col2 FROM tab1 AS cor0
----
-124
-134
-205
query I rowsort
SELECT + 54 * - col2 AS col0 FROM tab2 cor0
----
-1404
-1458
-2052
query I rowsort
SELECT DISTINCT + - 91 * - col1 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT - col2 * - col0 + ( tab0.col0 + + col1 ) AS col2 FROM tab0
----
167
7478
902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * - col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 64 * + col2 + col0 * 8 + - tab1.col0 * 48 * col2 FROM tab1
----
-170944
-361856
-4296
query I rowsort
SELECT col1 + col1 + - col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - col1 * + 20 AS col2 FROM tab1 AS cor0
----
-200
-260
-520
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 5 col1 FROM tab2 cor0
----
35
390
395
query I rowsort
SELECT + 85 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT 60 + tab0.col2 FROM tab0
----
142
61
93
query I rowsort
SELECT - col0 + - 2 * col1 * + col0 FROM tab0 AS cor0
----
-16287
-4152
-6825
query I rowsort
SELECT ALL + - 43 AS col2 FROM tab2 AS cor0
----
-43
-43
-43
query I rowsort
SELECT + - ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + + ( + col0 ) * + cor0.col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT col2 * col1 * ( col2 ) AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT + ( col1 ) + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col2 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 60 ) * col0 col0 FROM tab1 AS cor0
----
-180
-3840
-4800
query I rowsort
SELECT DISTINCT ( + col2 ) + col2 * col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
119678
51072
5886
onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT ALL - col0 DIV - col1 + + cor0.col1 DIV ( - cor0.col2 ) + + col0 * ( + col1 ) FROM tab1 cor0
----
1046
646
78
skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL - col0 / - col1 + + cor0.col1 / ( - cor0.col2 ) + + col0 * ( + col1 ) FROM tab1 cor0
----
1046
646
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5154
SELECT col2 - CAST( col0 AS SIGNED ) * + col2 AS col2 FROM tab0
----
-34
-7216
-759
skipif mysql # not compatible
query I rowsort label-5154
SELECT col2 - CAST ( col0 AS INTEGER ) * + col2 AS col2 FROM tab0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + tab1.col2 col1 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL + col0 * col0 * + col1 AS col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT + 16 * + ( col1 ) FROM tab1 AS cor0
----
160
208
416
onlyif mysql # use DIV operator for integer division
query I rowsort label-5158
SELECT + + 85 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
85
skipif mysql # not compatible
query I rowsort label-5158
SELECT + + 85 / col2 AS col1 FROM tab0 AS cor0
----
1
2
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5159
SELECT + col0 DIV - 56 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5159
SELECT + col0 / - 56 FROM tab1 AS cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT cor0.col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5160
SELECT cor0.col2 / col2 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - col0 * + 11 AS col1 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT ALL + 43 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5163
SELECT + - 82 DIV + col1 FROM tab1 AS cor0
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-5163
SELECT + - 82 / + col1 FROM tab1 AS cor0
----
-3
-6
-8
query I rowsort
SELECT ALL + + col2 + + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT 62 - cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-27
27
38
query I rowsort
SELECT + - col0 * + 83 + + ( col0 ) FROM tab2 AS cor0
----
-574
-6396
-6478
query I rowsort
SELECT - - cor0.col2 * col1 + 33 FROM tab1 AS cor0
----
1281
1437
603
query I rowsort
SELECT + cor0.col2 * ( + col1 ) + - col0 * 7 + - 98 * - col2 FROM tab1 AS cor0
----
10096
5708
6675
skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * - ( + cor0.col2 ) * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT 4 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT - col1 * cor0.col1 + col1 - col2 FROM tab1 AS cor0
----
-147
-252
-704
query I rowsort
SELECT + col0 + ( col2 ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT tab0.col2 + 50 * col2 AS col2 FROM tab0
----
1683
4182
51
query I rowsort
SELECT - 59 * cor0.col2 * + col2 + + ( col1 ) FROM tab1 AS cor0
----
-172018
-191681
-543731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5176
SELECT ALL + col2 + CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 + col0 * + 62 AS col0 FROM tab2 AS cor0
----
465
4895
4915
query I rowsort
SELECT DISTINCT 63 FROM tab1, tab2 AS cor0, tab2 cor1
----
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5179
SELECT - + col0 * + col1 + ( - cor0.col2 ) + - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5179
SELECT - + col0 * + col1 + ( - cor0.col2 ) + - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 8 - col1 AS col1 FROM tab0 AS cor0
----
-105
-94
-99
query I rowsort
SELECT + 19 AS col0 FROM tab1 cor0
----
19
19
19
query I rowsort
SELECT + ( - col2 ) + - col1 AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - ( + 54 ) FROM tab2
----
-54
query I rowsort
SELECT 42 * - 20 + + col2 AS col0 FROM tab1
----
-744
-783
-786
query I rowsort
SELECT 31 + - tab0.col0 FROM tab0
----
-4
-58
7
query I rowsort
SELECT - 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT - 82 * col0 - + col1 * - col2 * - col1 FROM tab1 AS cor0
----
-10948
-22784
-36750
query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab0 AS cor0
----
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 77 * col0 - + col2 col1 FROM tab1 AS cor0
----
-285
-4985
-6256
query I rowsort
SELECT DISTINCT - col2 * col2 + + ( - 41 ) AS col1 FROM tab1 AS cor0
----
-2957
-3290
-9257
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * - cor0.col1 col1 FROM tab2 AS cor0
----
-1156
-2108
-4012
query I rowsort
SELECT ALL + 55 * + col1 AS col0 FROM tab2 AS cor0
----
1705
3245
935
query I rowsort
SELECT DISTINCT + - col2 + + col1 * + 86 AS col0 FROM tab1 AS cor0
----
1022
2182
803
query I rowsort
SELECT DISTINCT - - 66 AS col0 FROM tab1 AS cor0
----
66
query I rowsort
SELECT - - col0 - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col0 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT + col2 * - tab2.col0 + + 67 * ( tab2.col0 ) FROM tab2
----
2291
280
3198
query I rowsort
SELECT ALL tab0.col1 * col2 + + ( 20 ) FROM tab0
----
117
2858
7482
query I rowsort
SELECT ALL - 1 AS col1 FROM tab2
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5200
SELECT col0 * CAST( col2 * - col2 AS SIGNED ) + ( col2 ) AS col2 FROM tab1 AS cor0
----
-207879
-737184
-8694
skipif mysql # not compatible
query I rowsort label-5200
SELECT col0 * CAST ( col2 * - col2 AS INTEGER ) + ( col2 ) AS col2 FROM tab1 AS cor0
----
-207879
-737184
-8694
query I rowsort
SELECT + col1 + - ( - col0 ) + + cor0.col1 * - ( ( - col0 ) ) FROM tab0 AS cor0
----
2174
3527
8279
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT + col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5202
SELECT + col2 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * col1 + + 24 + col2 AS col2 FROM tab0 AS cor0
----
-7339
-8175
-9384
query I rowsort
SELECT + col1 + col2 * + col2 * + cor0.col0 FROM tab2 AS cor0
----
114093
5134
52787
query I rowsort
SELECT DISTINCT - 93 * + col1 FROM tab2 cor0
----
-1581
-2883
-5487
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5206
SELECT - CAST( col0 AS SIGNED ) * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5206
SELECT - CAST ( col0 AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ( col2 ) * col0 + col1 * col1 AS col0 FROM tab2 AS cor0
----
1150
3291
5509
query I rowsort
SELECT - - 45 * + col0 AS col0 FROM tab2 AS cor0
----
315
3510
3555
query I rowsort
SELECT DISTINCT + 95 * - col2 AS col0 FROM tab1 AS cor0
----
-5130
-5415
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * + col1 col0 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT DISTINCT - + 53 + col1 AS col1 FROM tab2 cor0
----
-22
-36
6
query I rowsort
SELECT - ( 73 ) AS col0 FROM tab1 AS cor0
----
-73
-73
-73
query I rowsort
SELECT ALL + ( 24 ) * + cor1.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cac8976e86a80df9f79fe0a19c4247fb
query I rowsort
SELECT DISTINCT 86 * col1 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT - 51 * + col0 AS col1 FROM tab1 cor0
----
-153
-3264
-4080
onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT ALL - + 95 DIV - cor0.col0 FROM tab1 AS cor0
----
1
1
31
skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - + 95 / - cor0.col0 FROM tab1 AS cor0
----
1
1
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT DISTINCT + - col0 + + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT + - col0 + + col1 / col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + + 35 FROM tab1 cor0
----
35
35
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT DISTINCT 55 DIV 20 FROM tab0 cor0
----
2
skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT 55 / 20 FROM tab0 cor0
----
2
query I rowsort
SELECT DISTINCT + + col0 * - 32 AS col2 FROM tab1 AS cor0
----
-2048
-2560
-96
query I rowsort
SELECT DISTINCT + col0 * col1 + col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5222
SELECT + CAST( col2 AS SIGNED ) * col1 col1 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5222
SELECT + CAST ( col2 AS INTEGER ) * col1 col1 FROM tab1
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5223
SELECT + CAST( NULL AS SIGNED ) * + 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5223
SELECT + CAST ( NULL AS INTEGER ) * + 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - ( 96 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT cor0.col1 * - ( col0 ) * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-5226
SELECT 13 DIV cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d7f03813050fab0932763694116f69ed
skipif mysql # not compatible
query I rowsort label-5226
SELECT 13 / cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d7f03813050fab0932763694116f69ed
query I rowsort
SELECT col1 * col2 * col1 + col1 FROM tab2
----
10999
25978
90565
query I rowsort
SELECT - tab2.col2 - col2 * col1 AS col1 FROM tab2
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 * col2 col2 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + + col2 * ( - col2 ) - col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT + col2 * + 70 + - col2 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT ALL - col0 * ( 61 ) + - col0 FROM tab2 AS cor0
----
-434
-4836
-4898
query I rowsort
SELECT ALL + - col2 + - col0 * - 98 FROM tab2 AS cor0
----
659
7618
7704
query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1, tab2 cor2
----
-2
query I rowsort
SELECT DISTINCT - ( 34 ) * - col2 FROM tab0 AS cor0
----
1122
2788
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT ALL - col2 DIV col0 + col1 * + col0 FROM tab0 AS cor0
----
2063
3395
8099
skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - col2 / col0 + col1 * + col0 FROM tab0 AS cor0
----
2063
3395
8099
query I rowsort
SELECT ALL col0 * - 89 AS col0 FROM tab1 AS cor0
----
-267
-5696
-7120
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2
query I rowsort
SELECT ALL - + cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 1d38a1a4aacea9827ed2338191291f0e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5240
SELECT ALL + - ( + col1 ) * col0 + - CAST( - col1 + col0 AS SIGNED ) FROM tab2 AS cor0
----
-1405
-193
-4621
skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + - ( + col1 ) * col0 + - CAST ( - col1 + col0 AS INTEGER ) FROM tab2 AS cor0
----
-1405
-193
-4621
query I rowsort
SELECT ALL - 90 * - col0 + - col2 * + 98 AS col1 FROM tab0 AS cor0
----
-1074
-26
3052
query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col0 + + col1 + + 83 AS col1 FROM tab2 AS cor0
----
121
179
220
query I rowsort
SELECT ALL + col0 * col1 + - col0 FROM tab2
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * - col1 col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT - - 47 AS col1 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT + col2 * + col2 + - col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT - col0 - col1 * ( + 72 ) * - col2 AS col2 FROM tab0 AS cor0
----
204312
537175
6949
skipif mysql # not compatible
query I rowsort
SELECT ALL + + 33 + cor0.col2 * + CAST ( col0 + + col0 AS REAL ) AS col1 FROM tab2 cor0
----
4089
411
6037
query I rowsort
SELECT + - col0 + col2 * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 - + col1 * - 38 col0 FROM tab1 AS cor0
----
380
494
988
query I rowsort
SELECT DISTINCT - - 38 + - col1 * col1 FROM tab1 cor0
----
-131
-62
-638
query I rowsort
SELECT ALL + col0 * 72 - ( cor0.col2 ) * col0 * 30 AS col0 FROM tab2 cor0
----
-5166
-55224
-84372
query I rowsort
SELECT - col2 + - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col0 + - col2 * col2 - col1 AS col0 FROM tab2 AS cor0
----
-1540
-767
-813
onlyif mysql # use DIV operator for integer division
query I rowsort label-5257
SELECT DISTINCT col0 * col2 + col2 DIV col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT col0 * col2 + col2 / col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - + col0 - - 82 FROM tab1 AS cor0
----
18
2
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL + col2 DIV col1 + + 40 AS col1 FROM tab1
----
42
45
47
skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + col2 / col1 + + 40 AS col1 FROM tab1
----
42
45
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT 21 - - col1 * CAST( + tab2.col1 * col1 AS SIGNED ) FROM tab2
----
205400
29812
4934
skipif mysql # not compatible
query I rowsort label-5260
SELECT 21 - - col1 * CAST ( + tab2.col1 * col1 AS INTEGER ) FROM tab2
----
205400
29812
4934
query I rowsort
SELECT DISTINCT 29 + - col0 * col2 + ( col2 * col2 ) FROM tab0
----
-5
-545
326
query I rowsort
SELECT - col1 - + col1 AS col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT col0 * + col0 * 98 FROM tab2
----
4802
596232
611618
query I rowsort
SELECT + col0 * + 96 + - cor0.col1 * + col1 FROM tab2 AS cor0
----
-289
4007
7295
query I rowsort
SELECT - - 41 - 87 FROM tab1 AS cor0
----
-46
-46
-46
query I rowsort
SELECT ALL - + 58 AS col1 FROM tab0 cor0
----
-58
-58
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5267
SELECT DISTINCT - 13 + col2 * col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT - 13 + col2 * col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + tab2.col2 AS col2 FROM tab2, tab0 cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5269
SELECT + CAST( + ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5269
SELECT + CAST ( + ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5270
SELECT - - CAST( NULL AS SIGNED ) + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5270
SELECT - - CAST ( NULL AS INTEGER ) + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * + cor0.col0 col2 FROM tab1, tab2 cor0
----
9 values hashing to a99aad3e0094b5be675580f56b55052d
query I rowsort
SELECT DISTINCT + ( 8 ) FROM tab1 AS cor0
----
8
query I rowsort
SELECT DISTINCT - 93 * - cor0.col0 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT DISTINCT - 66 * col0 - col2 * - col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2213
606010
92070
query I rowsort
SELECT - col2 * - col0 + - col2 * col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col0 col2 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * col0 + 3 col2 FROM tab1 cor0
----
-159
-3645
-7677
query I rowsort
SELECT ALL + 90 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
123
172
91
query I rowsort
SELECT ALL col0 * col2 + + col1 AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT + 79 + col2 FROM tab1
----
133
136
175
onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT col2 DIV 57 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5281
SELECT col2 / 57 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 + - 68 FROM tab2 AS cor0
----
-30
-41
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT + col2 * 84 DIV cor0.col1 FROM tab0 AS cor0
----
0
32
75
skipif mysql # not compatible
query I rowsort label-5283
SELECT + col2 * 84 / cor0.col1 FROM tab0 AS cor0
----
0
32
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT - col1 DIV ( - col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5284
SELECT - col1 / ( - col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + col0 * - 56 FROM tab1 AS cor0
----
-171
-3648
-4560
query I rowsort
SELECT DISTINCT + col1 + col2 * + 71 FROM tab2 AS cor0
----
1905
1948
2715
query I rowsort
SELECT - col1 * ( 33 ) FROM tab1 AS cor0
----
-330
-429
-858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5288
SELECT ALL col2 * CAST( col1 * + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840
skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL col2 * CAST ( col1 * + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + + col2 * + 84 * 92 FROM tab0 AS cor0
----
255024
633696
7728
query I rowsort
SELECT DISTINCT - 50 * col0 AS col0 FROM tab2
----
-350
-3900
-3950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col2 FROM tab1
----
14
14
14
query I rowsort
SELECT DISTINCT col1 * 14 * col0 FROM tab2
----
18802
3038
64428
onlyif mysql # use DIV operator for integer division
query I rowsort label-5293
SELECT - col2 * - col1 + - 85 DIV tab0.col2 FROM tab0
----
12
2836
7461
skipif mysql # not compatible
query I rowsort label-5293
SELECT - col2 * - col1 + - 85 / tab0.col2 FROM tab0
----
12
2836
7461
query I rowsort
SELECT - col1 + - ( - tab2.col2 ) FROM tab2
----
-33
-4
21
query I rowsort
SELECT 13 * cor0.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 3173f4c955714cd55e41fb27274aa6bb
query I rowsort
SELECT DISTINCT col1 + - ( cor0.col2 ) * cor0.col1 * + col1 FROM tab1 cor0
----
-16211
-36478
-5690
query I rowsort
SELECT col2 * + 62 AS col1 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT ALL - ( tab2.col1 ) AS col0 FROM tab2, tab0 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5299
SELECT col2 DIV 2 AS col1 FROM tab1 AS cor0
----
27
28
48
skipif mysql # not compatible
query I rowsort label-5299
SELECT col2 / 2 AS col1 FROM tab1 AS cor0
----
27
28
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT 68 DIV 5 AS col2 FROM tab1 AS cor0
----
13
13
13
skipif mysql # not compatible
query I rowsort label-5300
SELECT 68 / 5 AS col2 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT - 44 + col2 * col0 AS col0 FROM tab0 AS cor0
----
-9
7254
748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col0 col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - col1 * col0 * 64 + col2 AS col2 FROM tab1
----
-40903
-4938
-66464
query I rowsort
SELECT ALL - - 76 * col1 FROM tab2 AS cor0
----
1292
2356
4484
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5305
SELECT ALL col1 * - col1 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL col1 * - col1 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + 88 + col0 * + col1 FROM tab2 AS cor0
----
1431
305
4690
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT + + cor0.col2 / + cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5308
SELECT + + cor0.col2 / + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * - col1 + 69 * col2 FROM tab2 cor0
----
-2808
1279
1646
onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT - + col0 + col2 DIV + ( + col0 * col0 ) FROM tab1 cor0
----
-64
-80
3
skipif mysql # not compatible
query I rowsort label-5310
SELECT - + col0 + col2 / + ( + col0 * col0 ) FROM tab1 cor0
----
-64
-80
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col2 * + col0 - - 86 * - col2 AS col1 FROM tab2
----
-2511
-4264
-6270
query I rowsort
SELECT - ( cor0.col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT ( tab0.col0 ) * col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + 93 * col0 AS col1 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT DISTINCT - + ( - col0 ) * ( + col2 * col0 ) AS col2 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-5317
SELECT DISTINCT - col0 * col0 DIV + col1 FROM tab0 AS cor0
----
-12
-6
-87
skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT - col0 * col0 / + col1 FROM tab0 AS cor0
----
-12
-6
-87
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 + ( + col1 ) * + col0 * - ( cor0.col0 * - col1 ) AS col1 FROM tab0 AS cor0
----
11525955
4260048
65593623
query I rowsort
SELECT ALL ( col1 ) - + col2 * + cor0.col0 * + col1 FROM tab0 AS cor0
----
-3298
-664027
-68026
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 * cor0.col2 col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT 19 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT ALL - cor0.col1 + 14 * + col2 * + col0 AS col2 FROM tab1 AS cor0
----
107507
2242
51062
query I rowsort
SELECT 54 * - col1 - 30 AS col2 FROM tab2
----
-1704
-3216
-948
query I rowsort
SELECT + ( + 52 ) AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT + cor0.col2 DIV col1 + + col0 + - col2 FROM tab1 AS cor0
----
-49
-9
12
skipif mysql # not compatible
query I rowsort label-5325
SELECT + cor0.col2 / col1 + + col0 + - col2 FROM tab1 AS cor0
----
-49
-9
12
query I rowsort
SELECT DISTINCT ( + ( col0 ) ) * + 38 AS col2 FROM tab2
----
266
2964
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT DISTINCT - col2 DIV - 6 FROM tab2
----
4
6
skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - col2 / - 6 FROM tab2
----
4
6
query I rowsort
SELECT + + 79 * - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-50560
-6162
-82160
query I rowsort
SELECT ( + col0 * - col0 ) FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - col0 + tab1.col0 - col2 FROM tab1
----
-54
-57
-96
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 - ( cor0.col0 ) + cor0.col1 * col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL col0 + - 38 AS col1 FROM tab2
----
-31
40
41
query I rowsort
SELECT ALL - - cor0.col0 + - 23 * - 74 * + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 404732e6aa2d9f9a87f447f049c5b7d9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + - col1 col2 FROM tab2 AS cor0
----
-2
26
40
query I rowsort
SELECT ALL 42 * col1 AS col1 FROM tab1 AS cor0
----
1092
420
546
query I rowsort
SELECT ALL - 39 AS col0 FROM tab0
----
-39
-39
-39
query I rowsort
SELECT - 75 * - 23 FROM tab0 AS cor0
----
1725
1725
1725
query I rowsort
SELECT + col2 + col0 * + ( col2 ) AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL - col1 * - col1 + 18 FROM tab0 AS cor0
----
7414
8299
9427
onlyif mysql # use DIV operator for integer division
query I rowsort label-5341
SELECT - cor0.col2 * cor0.col0 DIV ( + col1 ) FROM tab0 AS cor0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort label-5341
SELECT - cor0.col2 * cor0.col0 / ( + col1 ) FROM tab0 AS cor0
----
-80
-9
0
query I rowsort
SELECT + 58 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT - col0 + col1 + col2 FROM tab2
----
-24
51
7
query I rowsort
SELECT tab0.col0 + - 76 + + col1 FROM tab0
----
104
34
56
query I rowsort
SELECT DISTINCT col0 + + col2 - - ( col0 ) FROM tab2
----
182
196
41
query I rowsort
SELECT ALL tab2.col1 - + tab2.col1 AS col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT col0 DIV + ( - col0 ) + + col1 + col2 FROM tab2
----
54
57
84
skipif mysql # not compatible
query I rowsort label-5347
SELECT col0 / + ( - col0 ) + + col1 + col2 FROM tab2
----
54
57
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT col2 DIV - 98 + - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5348
SELECT col2 / - 98 + - col2 FROM tab1
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5349
SELECT col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5349
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5350
SELECT + col1 * CAST( NULL AS DECIMAL ) 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-5350
SELECT + col1 * CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5351
SELECT DISTINCT - - CAST( col0 AS SIGNED ) + - col2 - ( - col0 ) FROM tab0 AS cor0
----
15
69
96
skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) + - col2 - ( - col0 ) FROM tab0 AS cor0
----
15
69
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5352
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col0 + col2 col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - + ( - 56 ) + cor0.col1 FROM tab2 AS cor0
----
115
73
87
query I rowsort
SELECT DISTINCT col0 + ( - col1 * + col2 ) FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT cor0.col1 * + cor0.col2 - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL - 52 * 66 * - cor0.col1 + + 65 * cor0.col2 FROM tab0 cor0
----
297297
317642
332969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5358
SELECT ALL + - CAST( + col0 AS SIGNED ) + - col1 * + 88 AS col0 FROM tab2 AS cor0
----
-1575
-2735
-5270
skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + - CAST ( + col0 AS INTEGER ) + - col1 * + 88 AS col0 FROM tab2 AS cor0
----
-1575
-2735
-5270
query I rowsort
SELECT DISTINCT - col1 * 29 + + col1 FROM tab2 AS cor0
----
-1652
-476
-868
query I rowsort
SELECT ALL 77 * - col0 + col0 - + col1 AS col0 FROM tab2 AS cor0
----
-563
-5987
-6021
query I rowsort
SELECT 73 * + 76 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
4508
4908
5470
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5362
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 + - col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 + - col1 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + 58 AS col2 FROM tab1 AS cor0
----
58
query I rowsort
SELECT - col2 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - cor0.col0 + - 33 * + col0 FROM tab1 AS cor0
----
-102
-2176
-2720
query I rowsort
SELECT DISTINCT - col0 * + col2 * - 99 FROM tab1 AS cor0
----
16038
361152
760320
query I rowsort
SELECT ALL ( + tab1.col0 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 * col0 col0 FROM tab2
----
140
1560
1580
onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT ALL + 13 DIV col0 AS col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + 13 / col0 AS col1 FROM tab2
----
0
0
1
query I rowsort
SELECT ALL + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + - ( + 30 ) * col2 * - col0 FROM tab2 AS cor0
----
5670
60840
90060
query I rowsort
SELECT + 86 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT DISTINCT - + 64 + col2 - 3 FROM tab0 AS cor0
----
-34
-66
15
query I rowsort
SELECT + 89 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT ALL - ( - cor0.col1 ) AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + - 58 * col2 + col2 FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT DISTINCT - col0 * + col2 - - col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT 35 * col0 + 9 AS col2 FROM tab2 cor0
----
254
2739
2774
query I rowsort
SELECT ALL 95 * - ( + cor0.col2 ) * cor0.col1 + + 12 FROM tab1, tab0 AS cor0
----
9 values hashing to 779eb38e06594fbb11e935315e209217
query I rowsort
SELECT + ( 4 ) AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT ALL + 92 DIV col0 FROM tab2 AS cor0
----
1
1
13
skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + 92 / col0 FROM tab2 AS cor0
----
1
1
13
query I rowsort
SELECT col1 * + 46 FROM tab1 AS cor0
----
1196
460
598
query I rowsort
SELECT DISTINCT + col0 * 43 AS col1 FROM tab1 AS cor0
----
129
2752
3440
query I rowsort
SELECT + col1 * 50 AS col0 FROM tab0 AS cor0
----
4300
4550
4850
onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT ALL + + col1 * 65 DIV col2 + + cor0.col2 FROM tab0 AS cor0
----
154
202
6306
skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL + + col1 * 65 / col2 + + cor0.col2 FROM tab0 AS cor0
----
154
202
6306
query I rowsort
SELECT DISTINCT + + col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT - col2 + 51 AS col2 FROM tab0 AS cor0
----
-31
18
50
query I rowsort
SELECT - tab0.col0 * 62 - - 73 * col2 FROM tab0
----
-2097
468
921
query I rowsort
SELECT ALL + col0 * ( col1 * col1 ) FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT col1 + col0 * - col1 AS col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT - col0 * 79 AS col0 FROM tab0 cor0
----
-1896
-2765
-7031
onlyif mysql # use DIV operator for integer division
query I rowsort label-5392
SELECT col0 DIV 95 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5392
SELECT col0 / 95 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 4 * col1 AS col2 FROM tab0 AS cor0
----
-344
-364
-388
onlyif mysql # use DIV operator for integer division
query I rowsort label-5394
SELECT DISTINCT - 75 + + 40 DIV - col1 FROM tab0 cor0
----
-75
skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT - 75 + + 40 / - col1 FROM tab0 cor0
----
-75
query I rowsort
SELECT + + 25 * col1 AS col2 FROM tab1 AS cor0
----
250
325
650
query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT ( col2 ) - + col2 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT - 1 + + 20 FROM tab0, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT col1 * - 51 FROM tab1
----
-1326
-510
-663
query I rowsort
SELECT - 31 + cor0.col2 * + col0 FROM tab2 AS cor0
----
158
1997
2971
query I rowsort
SELECT + + col1 + - col2 + col1 AS col1 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT col2 - col1 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT + 26 * + col2 + - 18 * col2 + col2 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT + col1 + cor0.col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - 74 + col0 AS col2 FROM tab0
----
-39
-50
15
query I rowsort
SELECT ALL - ( - cor0.col2 ) + + ( - 95 ) * - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c6e8f3e218516902f9a46892f3b7a077
onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT 32 DIV col0 col0 FROM tab2
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5407
SELECT 32 / col0 col0 FROM tab2
----
0
0
4
query I rowsort
SELECT ALL + 94 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT DISTINCT - col0 * col1 * + 57 AS col0 FROM tab0
----
-117648
-193515
-461643
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col0 FROM tab1
----
33
33
33
query I rowsort
SELECT + 59 * + cor0.col1 FROM tab1 AS cor0
----
1534
590
767
query I rowsort
SELECT ( + col2 ) * ( + col0 ) + col2 + 34 FROM tab2 AS cor0
----
2088
250
3074
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5413
SELECT DISTINCT CAST( - 30 AS SIGNED ) + + col1 FROM tab1
----
-17
-20
-4
skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT CAST ( - 30 AS INTEGER ) + + col1 FROM tab1
----
-17
-20
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5414
SELECT DISTINCT + 27 * - col0 DIV - col0 + 69 * 64 FROM tab2
----
4443
skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT + 27 * - col0 / - col0 + 69 * 64 FROM tab2
----
4443
query I rowsort
SELECT + col1 + + 44 FROM tab0
----
130
135
141
onlyif mysql # use DIV operator for integer division
query I rowsort label-5416
SELECT - - col2 * + col2 + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
1445
677
730
skipif mysql # not compatible
query I rowsort label-5416
SELECT - - col2 * + col2 + col0 / + col0 AS col0 FROM tab2 AS cor0
----
1445
677
730
query I rowsort
SELECT ALL ( - 13 ) + tab1.col0 FROM tab1
----
-10
51
67
query I rowsort
SELECT ALL + ( + 77 ) * col2 + col2 AS col0 FROM tab2
----
2028
2106
2964
query I rowsort
SELECT DISTINCT col0 * - col0 + col0 + - cor0.col1 * col0 FROM tab1 AS cor0
----
-4672
-7360
-84
query I rowsort
SELECT DISTINCT col0 + col2 + col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT - 78 * - col0 AS col0 FROM tab1 AS cor0
----
234
4992
6240
query I rowsort
SELECT ALL 90 * - col0 AS col0 FROM tab2 AS cor0
----
-630
-7020
-7110
query I rowsort
SELECT + col2 * + col1 + col0 * + cor0.col0 + col1 FROM tab2 AS cor0
----
6904
7677
917
query I rowsort
SELECT tab1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - col0 * col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT - - col0 - - col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT - col2 - - ( 98 ) * col0 FROM tab1 AS cor0
----
240
6215
7744
query I rowsort
SELECT - col0 + 20 FROM tab2 AS cor0
----
-58
-59
13
query I rowsort
SELECT col1 + ( col2 ) * tab0.col2 FROM tab0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 10 col2 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT DISTINCT col2 + - 31 FROM tab0 AS cor0
----
-30
2
51
query I rowsort
SELECT DISTINCT - col1 * ( ( - cor0.col2 ) ) + 11 FROM tab1 AS cor0
----
1259
1415
581
query I rowsort
SELECT ALL + col1 * col0 - - col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + col0 + + ( cor0.col1 ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col0 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT + + col0 * col0 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT - col1 - ( col1 ) FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + - 30 + + col1 FROM tab0 AS cor0
----
56
61
67
query I rowsort
SELECT + 35 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to ca814400b6361c20866ff8fe01717430
query I rowsort
SELECT ALL + + col2 * + 23 * + col2 FROM tab2 AS cor0
----
15548
16767
33212
query I rowsort
SELECT DISTINCT cor0.col2 - 80 FROM tab2 AS cor0
----
-42
-53
-54
query I rowsort
SELECT ALL - col1 - 84 * + col0 AS col0 FROM tab0
----
-2102
-3037
-7567
query I rowsort
SELECT - 23 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT DISTINCT + ( 15 ) FROM tab2 cor0
----
15
query I rowsort
SELECT DISTINCT + col1 * 72 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT ALL - 51 * 6 AS col2 FROM tab0 AS cor0
----
-306
-306
-306
query I rowsort
SELECT - cor0.col0 - + col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + 25 * + cor0.col1 - - col1 * - col1 AS col0 FROM tab0 AS cor0
----
-5246
-6006
-6984
query I rowsort
SELECT + + 92 * cor0.col2 FROM tab0 AS cor0
----
3036
7544
92
query I rowsort
SELECT ALL + 46 * - col0 AS col1 FROM tab1 AS cor0
----
-138
-2944
-3680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5451
SELECT + CAST( col2 AS SIGNED ) + col2 + col0 * cor0.col2 FROM tab2 AS cor0
----
2080
243
3078
skipif mysql # not compatible
query I rowsort label-5451
SELECT + CAST ( col2 AS INTEGER ) + col2 + col0 * cor0.col2 FROM tab2 AS cor0
----
2080
243
3078
query I rowsort
SELECT ALL + ( + cor1.col2 ) AS col2 FROM tab0, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 85 AS REAL ) FROM tab0 AS cor0
----
-85
query I rowsort
SELECT ALL 29 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1566
-1653
-2784
query I rowsort
SELECT cor0.col1 - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + + col1 + - 26 * - col1 FROM tab1 AS cor0
----
270
351
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 42 * col2 + + col0 col2 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT DISTINCT - + col1 + + 24 * + col0 AS col2 FROM tab1 AS cor0
----
1526
1907
46
query I rowsort
SELECT + cor0.col0 + col2 AS col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5461
SELECT - col1 * col1 DIV + col1 + + ( col1 * col1 ) AS col2 FROM tab2
----
272
3422
930
skipif mysql # not compatible
query I rowsort label-5461
SELECT - col1 * col1 / + col1 + + ( col1 * col1 ) AS col2 FROM tab2
----
272
3422
930
query I rowsort
SELECT 31 + + col0 * col2 AS col2 FROM tab0
----
66
7329
823
query I rowsort
SELECT - tab0.col1 * 41 * 60 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to af502e0fc8c54f752fbc55f83d4b46ac
onlyif mysql # use DIV operator for integer division
query I rowsort label-5464
SELECT DISTINCT col1 DIV 12 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT col1 / 12 FROM tab2
----
1
2
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5465
SELECT - col2 * tab1.col1 + col2 * - col0 * + CAST( - col0 AS SIGNED ) FROM tab1
----
-918
232902
613152
skipif mysql # not compatible
query I rowsort label-5465
SELECT - col2 * tab1.col1 + col2 * - col0 * + CAST ( - col0 AS INTEGER ) FROM tab1
----
-918
232902
613152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5466
SELECT + tab2.col1 * - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5466
SELECT + tab2.col1 * - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 FROM tab2 cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + col1 col0 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT 72 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT + col0 + - 27 * + tab0.col1 FROM tab0
----
-2298
-2368
-2584
onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT DISTINCT col1 DIV + ( 11 ) AS col1 FROM tab0
----
7
8
skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT col1 / + ( 11 ) AS col1 FROM tab0
----
7
8
query I rowsort
SELECT DISTINCT + + col2 * - 31 AS col2 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT ALL col0 * 61 FROM tab1 AS cor0
----
183
3904
4880
onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5474
SELECT col2 / cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5475
SELECT DISTINCT ( - tab0.col1 ) * CAST( col2 + col1 * col1 AS SIGNED ) FROM tab0
----
-638894
-761033
-912770
skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT ( - tab0.col1 ) * CAST ( col2 + col1 * col1 AS INTEGER ) FROM tab0
----
-638894
-761033
-912770
onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT ALL 11 DIV col1 col1 FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL 11 / col1 col1 FROM tab1
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5477
SELECT DISTINCT 1 DIV - col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT 1 / - col0 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 26 + col0 col0 FROM tab0 AS cor0
----
-2
63
9
query I rowsort
SELECT ALL 89 FROM tab2, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT - col1 + col2 * 51 FROM tab1
----
2728
2897
4883
onlyif mysql # use DIV operator for integer division
query I rowsort label-5481
SELECT tab1.col2 * tab1.col0 + col2 + - col2 DIV + ( + col2 ) FROM tab1
----
215
3704
7775
skipif mysql # not compatible
query I rowsort label-5481
SELECT tab1.col2 * tab1.col0 + col2 + - col2 / + ( + col2 ) FROM tab1
----
215
3704
7775
query I rowsort
SELECT DISTINCT + tab1.col2 + + 34 FROM tab1
----
130
88
91
query I rowsort
SELECT DISTINCT col2 + 55 AS col1 FROM tab1
----
109
112
151
query I rowsort
SELECT DISTINCT - col1 + + col1 * + col1 FROM tab2
----
272
3422
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - tab1.col2 col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT tab1.col2 * + 63 FROM tab1
----
3402
3591
6048
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 * + ( - col2 ) col0 FROM tab1
----
1344
1458
627
query I rowsort
SELECT col1 + + 30 * + tab1.col0 AS col1 FROM tab1
----
116
1930
2413
query I rowsort
SELECT ALL ( - 11 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT ALL col2 * - ( col2 ) + - col2 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT + col0 + 99 * - 69 AS col2 FROM tab1
----
-6751
-6767
-6828
query I rowsort
SELECT - tab2.col2 * - ( col0 ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT - cor0.col2 * col1 + col0 * + col0 FROM tab1 AS cor0
----
-1395
3526
5152
query I rowsort
SELECT + col1 * + 13 FROM tab0
----
1118
1183
1261
query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 AS col2 FROM tab0
----
-7429
-8363
-9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL 3 * col0 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * + col0 * + col0 FROM tab1 AS cor0
----
262208
30
512080
query I rowsort
SELECT - 29 + ( + col2 ) FROM tab0 AS cor0
----
-28
4
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT ALL cor0.col1 * col1 + col1 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
7397
8282
9410
skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL cor0.col1 * col1 + col1 / cor0.col1 AS col0 FROM tab0 AS cor0
----
7397
8282
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-5501
SELECT ALL + col0 DIV + 66 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + col0 / + 66 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) + 39 AS col2 FROM tab1 AS cor0
----
135
93
96
query I rowsort
SELECT + col0 + + 47 AS col2 FROM tab0 AS cor0
----
136
71
82
query I rowsort
SELECT DISTINCT - - cor0.col0 + + 58 FROM tab0 AS cor0
----
147
82
93
query I rowsort
SELECT col2 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT 34 * cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
3010
3185
3395
onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT - - cor0.col0 DIV - col0 + + col0 * 83 AS col0 FROM tab0 AS cor0
----
1991
2904
7386
skipif mysql # not compatible
query I rowsort label-5507
SELECT - - cor0.col0 / - col0 + + col0 * 83 AS col0 FROM tab0 AS cor0
----
1991
2904
7386
onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT DISTINCT col2 + 82 DIV - tab1.col1 FROM tab1
----
49
51
90
skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT col2 + 82 / - tab1.col1 FROM tab1
----
49
51
90
query I rowsort
SELECT DISTINCT + ( 94 ) * + col2 FROM tab0 AS cor0
----
3102
7708
94
query I rowsort
SELECT DISTINCT col0 + 40 FROM tab0 AS cor0
----
129
64
75
query I rowsort
SELECT 81 * col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
178
2759
6733
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5512
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 85 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - cor0.col2 col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + col1 + 5 AS col0 FROM tab0 AS cor0
----
102
91
96
query I rowsort
SELECT + + 10 * col0 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
2133
287
5382
onlyif mysql # use DIV operator for integer division
query I rowsort label-5517
SELECT 49 DIV col1 + - col0 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5517
SELECT 49 / col1 + - col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT 19 + col1 * 17 FROM tab0 AS cor0
----
1481
1566
1668
query I rowsort
SELECT - - cor0.col1 * cor0.col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - + 46 * col0 FROM tab0 AS cor0
----
-1104
-1610
-4094
query I rowsort
SELECT - - cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col1 FROM tab2 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5523
SELECT - - col1 + - cor0.col0 * CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5523
SELECT - - col1 + - cor0.col0 * CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * - ( 18 ) FROM tab0 cor0
----
-1476
-18
-594
query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - - cor0.col2 + 41 * - col1 FROM tab2 AS cor0
----
-1244
-2393
-659
query I rowsort
SELECT ALL col1 * 41 AS col1 FROM tab1 cor0
----
1066
410
533
query I rowsort
SELECT + col1 * 94 FROM tab0 cor0
----
8084
8554
9118
query I rowsort
SELECT DISTINCT + - 24 + - cor0.col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-106
-25
-57
query I rowsort
SELECT + col1 + - 48 * 24 + + col0 AS col2 FROM tab1 cor0
----
-1059
-1078
-1123
query I rowsort
SELECT ALL - - cor0.col1 * 80 + col0 FROM tab0 AS cor0
----
6904
7369
7795
query I rowsort
SELECT + - col0 + - col2 - - col2 * + col1 FROM tab2 AS cor0
----
1430
529
803
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5533
SELECT ALL - - col1 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - - col1 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 44 * col1 - tab0.col1 FROM tab0
----
3698
3913
4171
query I rowsort
SELECT tab1.col0 + + col1 * 32 AS col2 FROM tab1
----
384
496
835
query I rowsort
SELECT + 94 - + col2 * - tab1.col1 FROM tab1
----
1342
1498
664
query I rowsort
SELECT - tab1.col1 * - tab1.col0 * col2 AS col1 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT ALL + 17 DIV - 88 FROM tab2, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + 17 / - 88 FROM tab2, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + col2 + - col0 + col1 * - col1 AS col0 FROM tab1
----
-107
-153
-625
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + - CAST ( + col1 AS REAL ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - cor0.col1 + + col2 - + col1 AS col2 FROM tab1 AS cor0
----
2
37
70
query I rowsort
SELECT DISTINCT + col1 * - ( + col1 * col1 ) AS col2 FROM tab0 cor0
----
-636056
-753571
-912673
query I rowsort
SELECT + + col2 + col2 + ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT col1 * 92 + + col1 AS col0 FROM tab2 AS cor0
----
1581
2883
5487
query I rowsort
SELECT + ( col0 ) AS col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT ALL + cor0.col2 * cor0.col1 * - 26 + - 59 DIV + col1 AS col0 FROM tab1 AS cor0
----
-14825
-32452
-36506
skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + cor0.col2 * cor0.col1 * - 26 + - 59 / + col1 AS col0 FROM tab1 AS cor0
----
-14825
-32452
-36506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - col0 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + ( + col2 ) + ( col0 ) FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5549
SELECT ALL - col2 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - col2 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5550
SELECT ALL + col0 DIV col2 + + 22 * col0 AS col0 FROM tab1 cor0
----
1409
1760
66
skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL + col0 / col2 + + 22 * col0 AS col0 FROM tab1 cor0
----
1409
1760
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 + + col1 * 69 col1 FROM tab2 AS cor0
----
1168
2134
4066
query I rowsort
SELECT DISTINCT 29 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
29
query I rowsort
SELECT DISTINCT + 2 * + col1 + - col2 * + ( col0 ) * - col0 FROM tab2 AS cor0
----
1385
158302
237192
query I rowsort
SELECT ALL + - col0 * + col1 - + 36 * col1 AS col0 FROM tab2 AS cor0
----
-1333
-1955
-6726
query I rowsort
SELECT ALL - col1 + - col0 * col0 * - col0 + col2 * + ( col0 ) * col1 FROM tab1 AS cor0
----
298614
4213
611827
onlyif mysql # use DIV operator for integer division
query I rowsort label-5556
SELECT ALL col0 - col2 DIV - col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL col0 - col2 / - col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT ALL - ( + col2 ) + - col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + + 26 + col2 AS col2 FROM tab0 AS cor0
----
108
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 * - col2 + ( cor0.col0 + - cor0.col0 ) col0 FROM tab1 cor0
----
4320
4560
7680
query I rowsort
SELECT DISTINCT - cor0.col1 * 3 + 94 - cor0.col2 FROM tab0 AS cor0
----
-197
-198
-261
query I rowsort
SELECT cor0.col0 - - 93 AS col2 FROM tab2 AS cor0
----
100
171
172
query I rowsort
SELECT ALL - + col1 + col0 + - 43 AS col1 FROM tab1 AS cor0
----
-66
11
24
query I rowsort
SELECT ALL - col0 * + col1 + + cor0.col1 * col2 * col1 + col0 AS col2 FROM tab0 cor0
----
242028
6049
671032
query I rowsort
SELECT + col1 - + 82 FROM tab2 AS cor0
----
-23
-51
-65
query I rowsort
SELECT ALL + - col2 * - col0 * + 38 + col1 AS col0 FROM tab0 AS cor0
----
1427
277415
30182
query I rowsort
SELECT ALL - 47 * + ( - col1 ) FROM tab2 AS cor0
----
1457
2773
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5567
SELECT CAST( NULL AS SIGNED ) * 26 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5567
SELECT CAST ( NULL AS INTEGER ) * 26 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - 90 ) + col0 * + 13 * 41 AS col1 FROM tab2 AS cor0
----
3641
41484
42017
query I rowsort
SELECT DISTINCT + + 6 FROM tab1 AS cor0
----
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5570
SELECT ALL - 40 DIV + 45 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL - 40 / + 45 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 91 + - col1 FROM tab1 cor0
----
-101
-104
-117
query I rowsort
SELECT DISTINCT + 42 * col1 FROM tab0 cor0
----
3612
3822
4074
query I rowsort
SELECT DISTINCT + ( col1 ) + - col2 * + 74 FROM tab1 AS cor0
----
-3970
-4208
-7091
onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT - + ( + col1 ) DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5574
SELECT - + ( + col1 ) / col0 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5575
SELECT DISTINCT - + 59 DIV col1 AS col2 FROM tab2 cor0
----
-1
-3
skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT - + 59 / col1 AS col2 FROM tab2 cor0
----
-1
-3
query I rowsort
SELECT DISTINCT - 86 * 34 AS col2 FROM tab0
----
-2924
query I rowsort
SELECT ALL - col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 96 AS col0 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT - 34 * col1 FROM tab1
----
-340
-442
-884
query I rowsort
SELECT - ( + col0 ) * col1 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL 78 AS col1 FROM tab2
----
78
78
78
query I rowsort
SELECT + - ( + col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT 19 FROM tab0, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT ALL + 27 * col1 FROM tab0
----
2322
2457
2619
query I rowsort
SELECT DISTINCT col0 * 51 - col2 AS col1 FROM tab1 AS cor0
----
3207
3984
99
query I rowsort
SELECT ALL - - col0 - col1 * 30 FROM tab0 AS cor0
----
-2556
-2641
-2875
query I rowsort
SELECT - col1 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + - col0 + col2 AS col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + col1 * - 74 AS col0 FROM tab1
----
-1924
-740
-962
query I rowsort
SELECT - cor0.col0 + + 47 AS col2 FROM tab0 AS cor0
----
-42
12
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5591
SELECT col2 + - col2 DIV 47 FROM tab1 AS cor0
----
53
56
94
skipif mysql # not compatible
query I rowsort label-5591
SELECT col2 + - col2 / 47 FROM tab1 AS cor0
----
53
56
94
query I rowsort
SELECT + col0 + + 13 * + 21 AS col1 FROM tab0 AS cor0
----
297
308
362
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 94 col2 FROM tab0 cor0
----
127
176
95
query I rowsort
SELECT + col0 * + 43 AS col0 FROM tab1
----
129
2752
3440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col1 col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
-83
query I rowsort
SELECT DISTINCT cor1.col0 + 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12
73
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5598
SELECT CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5598
SELECT CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + ( + 78 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
onlyif mysql # use DIV operator for integer division
query I rowsort label-5600
SELECT DISTINCT - 49 DIV - col1 + - ( col2 ) * + col2 col2 FROM tab1
----
-2915
-3245
-9213
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - 49 / - col1 + - ( col2 ) * + col2 col2 FROM tab1
----
-2915
-3245
-9213
onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT + tab2.col0 DIV tab2.col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5601
SELECT + tab2.col0 / tab2.col1 AS col1 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5602
SELECT - tab0.col2 DIV col0 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5602
SELECT - tab0.col2 / col0 AS col2 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT ( + col2 * 98 ) + col0 * col2 FROM tab2
----
2835
4576
6726
query I rowsort
SELECT col0 * col2 + 99 * + col2 FROM tab1 AS cor0
----
17184
5508
9291
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT 10 FROM tab0, tab1, tab2 AS cor0
----
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT cor1.col2 * + 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1f939dc89697ad072dddfacfe2e2eebb
query I rowsort
SELECT - col2 * 87 - col2 FROM tab2 AS cor0
----
-2288
-2376
-3344
query I rowsort
SELECT DISTINCT col0 + ( + 92 ) - - col2 FROM tab0
----
128
149
263
query I rowsort
SELECT col1 + ( col1 * + col0 ) + + col2 AS col0 FROM tab2
----
1398
275
4687
query I rowsort
SELECT DISTINCT + col0 * ( + col2 + col2 ) AS col2 FROM tab0
----
14596
1584
70
query I rowsort
SELECT - col0 * ( + col0 ) AS col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT + 30 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT ALL - col0 * 51 AS col1 FROM tab0
----
-1224
-1785
-4539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 69 col0 FROM tab0
----
17
22
28
query I rowsort
SELECT - - cor0.col1 * - 52 + 57 AS col2 FROM tab2 AS cor0
----
-1555
-3011
-827
query I rowsort
SELECT - col1 - col2 * - 75 AS col0 FROM tab2 AS cor0
----
1891
1994
2833
query I rowsort
SELECT DISTINCT + 18 FROM tab1, tab2 cor0
----
18
query I rowsort
SELECT - cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - cor0.col2 FROM tab1, tab2 AS cor0 WHERE NOT NULL = tab1.col2
----
query I rowsort
SELECT - ( - ( - col0 ) * tab1.col0 ) AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ALL - 83 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843
query I rowsort
SELECT DISTINCT - 81 * cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT ALL col2 * - 97 FROM tab2
----
-2522
-2619
-3686
query I rowsort
SELECT - 3 AS col1 FROM tab1
----
-3
-3
-3
query I rowsort
SELECT + 10 * col1 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT - 78 * col1 FROM tab1 AS cor0
----
-1014
-2028
-780
onlyif mysql # use DIV operator for integer division
query I rowsort label-5629
SELECT col1 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5629
SELECT col1 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT - col1 + - col2 * + 70 FROM tab0 AS cor0
----
-167
-2396
-5831
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 61 col2 FROM tab1 AS cor0
----
-61
-61
-61
query I rowsort
SELECT + - 53 + col1 AS col1 FROM tab2 AS cor0
----
-22
-36
6
query I rowsort
SELECT ALL + 30 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
1023
2542
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + col0 col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - ( 89 ) FROM tab1 AS cor0
----
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 31 col1 FROM tab0 AS cor0
----
1085
2759
744
query I rowsort
SELECT 23 * + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 202726907282819ea6ae6c5f23d6f477
query I rowsort
SELECT ALL - 38 + col2 * col1 FROM tab1 cor0
----
1210
1366
532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5641
SELECT - CAST( NULL AS SIGNED ) + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5641
SELECT - CAST ( NULL AS INTEGER ) + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 29 * col0 * - col0 FROM tab1 AS cor0
----
-118784
-185600
-261
query I rowsort
SELECT ALL col2 + 22 FROM tab1 AS cor0
----
118
76
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 61 col1 FROM tab0 AS cor0
----
-61
-61
-61
query I rowsort
SELECT DISTINCT + + ( col0 ) * + 30 * + 8 AS col2 FROM tab1 AS cor0
----
15360
19200
720
query I rowsort
SELECT DISTINCT col0 * col2 + cor0.col0 AS col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab2, tab0, tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 * - 59 col1 FROM tab0 AS cor0
----
-167442
-440258
-5723
query I rowsort
SELECT ALL + col0 + cor0.col1 * ( - col1 * - col2 ) + 59 FROM tab1 AS cor0
----
16363
36566
5823
query I rowsort
SELECT DISTINCT + 48 - col2 FROM tab0 AS cor0
----
-34
15
47
query I rowsort
SELECT ALL + col1 * 77 FROM tab0
----
6622
7007
7469
query I rowsort
SELECT DISTINCT 70 * + col0 - tab2.col0 FROM tab2
----
483
5382
5451
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * - tab2.col1 col0 FROM tab2, tab2 cor0
----
-1674
-3186
-918
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT 63 DIV col2 col0 FROM tab0
----
0
1
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5655
SELECT 63 / col2 col0 FROM tab0
----
0
1
63
query I rowsort
SELECT tab2.col1 + - col0 - - col0 FROM tab2
----
17
31
59
query I rowsort
SELECT - ( col0 * tab1.col0 ) AS col2 FROM tab1
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5658
SELECT ALL - - col0 + - CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL - - col0 + - CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 45 * - col1 col2 FROM tab0 AS cor0
----
3956
4186
4462
onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT - col2 * ( cor0.col2 ) DIV - col0 FROM tab0 AS cor0
----
0
45
75
skipif mysql # not compatible
query I rowsort label-5660
SELECT - col2 * ( cor0.col2 ) / - col0 FROM tab0 AS cor0
----
0
45
75
query I rowsort
SELECT ALL + + col0 * 11 AS col2 FROM tab0 AS cor0
----
264
385
979
query I rowsort
SELECT DISTINCT tab0.col0 * + col2 + col0 * - col0 AS col2 FROM tab0
----
-1190
-623
216
query I rowsort
SELECT tab0.col2 + - 4 FROM tab0
----
-3
29
78
query I rowsort
SELECT + 20 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT col1 * + ( col0 + col1 ) FROM tab0 cor0
----
12804
16380
9460
query I rowsort
SELECT DISTINCT col2 * 53 + + col1 AS col1 FROM tab2 AS cor0
----
1437
1462
2031
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 71 col0 FROM tab2 AS cor0
----
-497
-5538
-5609
query I rowsort
SELECT - + 38 + col1 AS col0 FROM tab1 AS cor0
----
-12
-25
-28
query I rowsort
SELECT + col1 * col1 * col2 AS col2 FROM tab1 cor0
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT - col0 + + col2 DIV - col2 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-5670
SELECT - col0 + + col2 / - col2 FROM tab0
----
-25
-36
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5671
SELECT col0 DIV 29 + - col1 * - col2 AS col1 FROM tab2
----
1536
648
837
skipif mysql # not compatible
query I rowsort label-5671
SELECT col0 / 29 + - col1 * - col2 AS col1 FROM tab2
----
1536
648
837
query I rowsort
SELECT - 73 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT + - 63 DIV - col0 FROM tab2 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-5673
SELECT + - 63 / - col0 FROM tab2 AS cor0
----
0
0
9
query I rowsort
SELECT ( 81 ) + - col1 AS col2 FROM tab2 cor0
----
22
50
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5675
SELECT ALL - - CAST( NULL AS SIGNED ) * cor0.col1 + col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - - CAST ( NULL AS INTEGER ) * cor0.col1 + col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + + 49 * cor0.col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
33065
35690
70739
query I rowsort
SELECT + + ( + col1 ) * + col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col0 * + col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL + + col2 + + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - - col0 + + 93 FROM tab0 AS cor0
----
117
128
182
query I rowsort
SELECT ALL + col2 * - col0 + + col2 * cor0.col0 * 13 FROM tab1 AS cor0
----
1944
43776
92160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5682
SELECT DISTINCT col0 * col0 + col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT col0 * col0 + col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT DISTINCT - col0 + col1 DIV 82 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT - col0 + col1 / 82 FROM tab2
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5684
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5684
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ( - col0 ) - + 53 FROM tab2 AS cor0
----
-131
-132
-60
query I rowsort
SELECT DISTINCT - ( + col0 ) * ( 31 ) * col2 + + col2 FROM tab1 AS cor0
----
-113031
-237984
-4968
onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT - - cor0.col1 * col0 DIV + 16 + - 42 AS col0 FROM tab0 AS cor0
----
170
464
87
skipif mysql # not compatible
query I rowsort label-5688
SELECT - - cor0.col1 * col0 / + 16 + - 42 AS col0 FROM tab0 AS cor0
----
170
464
87
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT ALL + + 12 DIV cor0.col2 - 76 FROM tab0 AS cor0
----
-64
-76
-76
skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL + + 12 / cor0.col2 - 76 FROM tab0 AS cor0
----
-64
-76
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 + col2 * - col0 col1 FROM tab1 AS cor0
----
-252
-3738
-7770
onlyif mysql # use DIV operator for integer division
query I rowsort label-5692
SELECT DISTINCT - - 27 DIV col0 FROM tab1 cor0
----
0
9
skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - - 27 / col0 FROM tab1 cor0
----
0
9
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col1 * - col1 * col2 AS col1 FROM tab1 cor0
----
-16224
-36504
-5700
query I rowsort
SELECT - col1 * + 15 + 96 * cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
138369
64011
69519
query I rowsort
SELECT DISTINCT + col0 + - col2 * 28 AS col2 FROM tab1 AS cor0
----
-1509
-1532
-2608
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + col1 * CAST ( ( - col0 ) AS REAL ) col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + col0 + - 1 * col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 > ( NULL )
----
query I rowsort
SELECT col2 * col0 FROM tab0 WHERE NOT NULL >= col1
----
query I rowsort
SELECT ALL + col1 + tab2.col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + tab0.col1 FROM tab0 WHERE NOT NULL >= - col1
----
query I rowsort
SELECT DISTINCT col2 + + col2 + col0 * col2 AS col1 FROM tab1 AS cor0
----
270
3762
7872
query I rowsort
SELECT ALL + + col0 * col0 + + col0 AS col2 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT col0 * - col1 - cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT - col0 + col2 - col1 * col1 FROM tab0 AS cor0
----
-7387
-8288
-9443
query I rowsort
SELECT + tab1.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL col0 + tab1.col1 * col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT col1 - + col1 * col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 + + col1 col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND - col1
----
-1326
-186
-4543
query I rowsort
SELECT ALL + + col2 + col1 * col1 * col2 AS col1 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT col0 * + col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT - col1 DIV - col0 + + col2 AS col2 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-5714
SELECT - col1 / - col0 + + col2 AS col2 FROM tab0
----
3
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + tab0.col0 * + col0 col0 FROM tab0
----
1225
19008
649522
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 + col1 AND ( NULL ) OR NOT NULL > ( NULL )
----
query I rowsort
SELECT - tab0.col0 * - col2 + + col1 FROM tab0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5718
SELECT - + 57 * - cor0.col0 * CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
36480
4446
59280
skipif mysql # not compatible
query I rowsort label-5718
SELECT - + 57 * - cor0.col0 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
36480
4446
59280
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col1 NOT BETWEEN NULL AND + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 + + col1 col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT col0 + col0 * col0 * col1 AS col0 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT DISTINCT + - 87 * - cor0.col2 FROM tab0 AS cor0
----
2871
7134
87
query I rowsort
SELECT - + col2 * cor0.col2 * + 20 FROM tab2 AS cor0
----
-13520
-14580
-28880
onlyif mysql # use DIV operator for integer division
query I rowsort label-5724
SELECT ALL 53 * col0 DIV col1 FROM tab2 AS cor0
----
11
246
70
skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL 53 * col0 / col1 FROM tab2 AS cor0
----
11
246
70
query I rowsort
SELECT - 41 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT ALL - col2 * + tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - 81 * - cor0.col0 + + 46 + 69 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 2bba27118e7d8b99b947ad1e461e4f66
query I rowsort
SELECT ALL col0 * 32 - col2 FROM tab0 AS cor0
----
1119
2766
735
query I rowsort
SELECT ALL + col2 * + col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT 31 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 52 col2 FROM tab0 AS cor0
----
52
52
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5732
SELECT ALL col0 * col0 * CAST( - col2 * col0 AS SIGNED ) AS col0 FROM tab2
----
-12338352
-18735482
-9261
skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL col0 * col0 * CAST ( - col2 * col0 AS INTEGER ) AS col0 FROM tab2
----
-12338352
-18735482
-9261
query I rowsort
SELECT + col2 * - tab0.col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5734
SELECT ALL + col1 - - tab2.col2 DIV col0 AS col1 FROM tab2
----
17
34
59
skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + col1 - - tab2.col2 / col0 AS col1 FROM tab2
----
17
34
59
query I rowsort
SELECT - col0 * - col1 * + col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT - col0 - + col1 AS col1 FROM tab2
----
-137
-38
-96
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT ALL col0 + - tab0.col1 DIV tab0.col2 AS col1 FROM tab0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL col0 + - tab0.col1 / tab0.col2 AS col1 FROM tab0
----
-62
22
88
query I rowsort
SELECT DISTINCT col2 * - col1 * + col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col0 - - col2 AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT - col2 * col1 FROM tab2 WHERE NOT col1 + col0 NOT BETWEEN NULL AND col0 * col2 + + col2
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 * + tab1.col0 )
----
query I rowsort
SELECT DISTINCT tab2.col1 * col0 * tab2.col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT + col0 + col2 * + col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT + col2 * - col0 - col2 AS col1 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT + col1 + - col2 AS col1 FROM tab0 WHERE ( NULL ) IN ( col0 )
----
query I rowsort
SELECT ALL col1 * - col2 * col0 AS col0 FROM tab1
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col2 col1 FROM tab2
----
189
2028
3002
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col0 * - col2 )
----
query I rowsort
SELECT cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 55 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT ALL - cor0.col1 - + col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - col1 * 19 + col2 FROM tab1 AS cor0
----
-133
-151
-440
query I rowsort
SELECT ALL + - cor0.col2 + ( + col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * + ( ( col1 ) ) - col1 AS col2 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT col2 + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 + - CAST ( + ( + col2 ) AS REAL ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * - col0 + col2 AS col2 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT + ( col0 ) + + tab2.col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL cor0.col2 + 97 * col1 FROM tab1 AS cor0
----
1027
1357
2576
query I rowsort
SELECT + col2 + - 71 FROM tab2 cor0
----
-33
-44
-45
query I rowsort
SELECT + col2 + - 29 AS col0 FROM tab1 AS cor0
----
25
28
67
query I rowsort
SELECT DISTINCT + + 70 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1820
1890
2660
query I rowsort
SELECT - col1 * col1 + col1 * 1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 42 * col2 + col1 col2 FROM tab0 cor0
----
119282
313495
4171
query I rowsort
SELECT col2 + 48 AS col1 FROM tab1 cor0
----
102
105
144
query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab0, tab2 AS cor0
----
-20
query I rowsort
SELECT ALL + - 29 FROM tab0 AS cor0
----
-29
-29
-29
query I rowsort
SELECT + + 20 * cor0.col1 + - col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1667
1811
1844
query I rowsort
SELECT ALL - - col1 * + 79 FROM tab2 AS cor0
----
1343
2449
4661
query I rowsort
SELECT - cor0.col1 + + cor0.col1 * col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1553
708
813
query I rowsort
SELECT ALL + 50 * col1 FROM tab0 AS cor0
----
4300
4550
4850
query I rowsort
SELECT - 25 - + 42 AS col2 FROM tab2 AS cor0
----
-67
-67
-67
query I rowsort
SELECT DISTINCT + 31 * col1 + col1 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT ( 47 ) * col2 + 65 * 91 * col2 - col2 AS col1 FROM tab0
----
196713
488802
5961
query I rowsort
SELECT - - 74 + col0 AS col0 FROM tab1 AS cor0
----
138
154
77
query I rowsort
SELECT - + col2 * col2 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
22606
24627
39962
query I rowsort
SELECT 14 - col0 * col2 * + col0 FROM tab1
----
-233458
-472
-614386
query I rowsort
SELECT DISTINCT - 12 + - col1 AS col1 FROM tab2 AS cor0
----
-29
-43
-71
query I rowsort
SELECT + + 70 * col2 + - col0 FROM tab0 AS cor0
----
2286
35
5651
query I rowsort
SELECT ALL - 11 + + col0 AS col1 FROM tab2 cor0
----
-4
67
68
query I rowsort
SELECT + 5 * col2 FROM tab2
----
130
135
190
query I rowsort
SELECT 48 + + col2 * + col1 FROM tab1
----
1296
1452
618
query I rowsort
SELECT ALL 18 + ( col0 ) + + col2 FROM tab2
----
122
135
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + tab0.col1 + col2 * + col0 col1 FROM tab0
----
135
7392
881
query I rowsort
SELECT DISTINCT - 15 + - 10 * + tab1.col0 * + col0 AS col0 FROM tab1
----
-105
-40975
-64015
query I rowsort
SELECT DISTINCT + 63 + - 85 FROM tab0
----
-22
query I rowsort
SELECT + tab2.col0 + col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT + col1 + + col2 + - col1 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL ( + col2 ) * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col2 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - + 76 * col1 + cor0.col2 AS col1 FROM tab1 cor0
----
-1922
-703
-892
query I rowsort
SELECT col1 + 98 * col1 FROM tab1
----
1287
2574
990
query I rowsort
SELECT DISTINCT - col2 - 15 AS col0 FROM tab0
----
-16
-48
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5795
SELECT col2 DIV + 93 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5795
SELECT col2 / + 93 FROM tab0
----
0
0
0
query I rowsort
SELECT + 99 FROM tab0, tab2 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - col2 * col2 * + col2 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT DISTINCT + cor0.col0 + - ( col2 ) * - col2 AS col1 FROM tab2 cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5799
SELECT ALL - col0 + + 25 DIV cor0.col2 AS col1 FROM tab0 cor0
----
-10
-24
-89
skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL - col0 + + 25 / cor0.col2 AS col1 FROM tab0 cor0
----
-10
-24
-89
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT + - cor0.col2 * col1 + cor0.col1 * + col2 + - cor0.col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5802
SELECT ALL - - CAST( - col0 AS SIGNED ) * cor0.col0 + - col1 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
-10764
-273
-7663
skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - - CAST ( - col0 AS INTEGER ) * cor0.col0 + - col1 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
-10764
-273
-7663
query I rowsort
SELECT DISTINCT col2 * ( - cor0.col0 ) * - cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT col1 * 41 + - col0 + col2 DIV + col0 FROM tab1
----
1081
346
454
skipif mysql # not compatible
query I rowsort label-5804
SELECT col1 * 41 + - col0 + col2 / + col0 FROM tab1
----
1081
346
454
query I rowsort
SELECT ALL col2 + 63 + + col0 AS col2 FROM tab1
----
120
184
239
query I rowsort
SELECT ALL 17 - - col1 FROM tab1 cor0
----
27
30
43
query I rowsort
SELECT ALL 87 + + cor0.col2 + - cor0.col2 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT ALL + + ( + col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT + CAST( 50 AS SIGNED ) FROM tab0 AS cor0
----
50
50
50
skipif mysql # not compatible
query I rowsort label-5809
SELECT + CAST ( 50 AS INTEGER ) FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT + - ( - 83 ) - - cor0.col2 * col0 FROM tab1 cor0
----
245
3731
7763
query I rowsort
SELECT DISTINCT - + ( - 38 ) * - cor0.col1 FROM tab2 cor0
----
-1178
-2242
-646
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5812
SELECT DISTINCT + CAST( - cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT + CAST ( - cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col0 * - 10 + - cor0.col0 FROM tab2 AS cor0
----
-77
-858
-869
query I rowsort
SELECT DISTINCT - - col0 + + col2 + - col0 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * 2 - cor0.col1 col2 FROM tab1 AS cor0
----
152
165
168
query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + 41 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT DISTINCT col0 * ( + col1 * + col2 ) AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT col1 + ( - col0 ) FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT + + ( ( col1 ) ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT col0 * - 38 * - col1 FROM tab1
----
24320
2964
39520
query I rowsort
SELECT - ( - ( + col1 ) ) AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) AS col2 FROM tab2
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5824
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5824
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT + - col2 + cor0.col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-5825
SELECT + - col2 + cor0.col2 / - col0 AS col0 FROM tab2 AS cor0
----
-26
-30
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5826
SELECT DISTINCT CAST( - col0 + - col1 AS SIGNED ) * - CAST( col1 * col2 + + col1 AS SIGNED ) FROM tab0
----
1359540
25608
321640
skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT CAST ( - col0 + - col1 AS INTEGER ) * - CAST ( col1 * col2 + + col1 AS INTEGER ) FROM tab0
----
1359540
25608
321640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - 12 * tab2.col0 FROM tab2
----
-84
-936
-948
query I rowsort
SELECT tab1.col1 + - col1 * + col0 * + 98 FROM tab1
----
-101907
-62710
-7618
query I rowsort
SELECT 41 * tab0.col0 FROM tab0
----
1435
3649
984
query I rowsort
SELECT DISTINCT - - cor0.col2 - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col1 + ( + col2 ) FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL - 84 + + col0 AS col0 FROM tab2 AS cor0
----
-5
-6
-77
query I rowsort
SELECT + + 34 + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1006
-44
-606
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * col1 col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL - col1 * 40 FROM tab0
----
-3440
-3640
-3880
onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT ALL + col2 DIV col0 + - col1 FROM tab2
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL + col2 / col0 + - col1 FROM tab2
----
-17
-28
-59
query I rowsort
SELECT 88 * 90 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 889016441c4405410c7e46a5058ce00f
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab0 AS cor2, tab2
----
13122 values hashing to 2a50ca965fd1fa66a9fb176d2c16140a
query I rowsort
SELECT ALL + - col2 + - ( + cor0.col1 ) * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT col2 + - cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT - - col0 DIV 26 + + col1 AS col0 FROM tab1 AS cor0
----
12
16
26
skipif mysql # not compatible
query I rowsort label-5843
SELECT - - col0 / 26 + + col1 AS col0 FROM tab1 AS cor0
----
12
16
26
query I rowsort
SELECT - col0 + 9 AS col1 FROM tab0 AS cor0
----
-15
-26
-80
query I rowsort
SELECT - col1 * + 69 * + 20 + col1 FROM tab1 AS cor0
----
-13790
-17927
-35854
query I rowsort
SELECT + - col0 * + 57 AS col1 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT + + cor0.col0 * col2 + + col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT 4 * + ( col0 * - col0 ) + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-165
-24277
-24947
query I rowsort
SELECT - 25 - + col2 * col0 * + col1 AS col2 FROM tab1 AS cor0
----
-36505
-4237
-99865
query I rowsort
SELECT - - col0 * - col1 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT - col0 - - col0 * + col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT 88 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * cor0.col1 col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - + col0 * + ( - col0 ) + + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT - col2 * 34 FROM tab1 AS cor0
----
-1836
-1938
-3264
query I rowsort
SELECT ALL + col0 + 89 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
146
210
265
query I rowsort
SELECT ALL - col2 * 2 + - 2 * col0 * col0 FROM tab0 AS cor0
----
-1218
-16006
-2452
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab0, tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 25 + col0 * - col2 AS col0 FROM tab0
----
-10
-7273
-767
query I rowsort
SELECT + 56 * - col2 FROM tab1
----
-3024
-3192
-5376
query I rowsort
SELECT - 24 + col0 + tab2.col2 FROM tab2
----
10
80
93
query I rowsort
SELECT ALL + col2 * 82 * + col2 + - 72 + 59 FROM tab0
----
551355
69
89285
query I rowsort
SELECT ALL 54 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT col1 + - col1 * + 92 FROM tab0 AS cor0
----
-7826
-8281
-8827
query I rowsort
SELECT ALL + 87 * + col1 AS col2 FROM tab1
----
1131
2262
870
query I rowsort
SELECT DISTINCT col0 + cor0.col0 * + 90 FROM tab1 AS cor0
----
273
5824
7280
onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT ALL + col0 DIV + cor0.col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL + col0 / + cor0.col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT - + 67 * col2 FROM tab0 AS cor0
----
-2211
-5494
-67
query I rowsort
SELECT ALL + - col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col2 * + ( col0 ) AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL col0 - ( col2 ) FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT + tab0.col1 - tab0.col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT col2 + col1 + tab2.col0 * + col1 FROM tab2
----
1398
275
4687
onlyif mysql # use DIV operator for integer division
query I rowsort label-5877
SELECT DISTINCT + + col1 + - 59 * + col2 + col1 * CAST( col1 AS SIGNED ) DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-1416
-1531
-2208
skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT + + col1 + - 59 * + col2 + col1 * CAST ( col1 AS INTEGER ) / cor0.col1 AS col2 FROM tab2 AS cor0
----
-1416
-1531
-2208
query I rowsort
SELECT DISTINCT + col0 * 1 - + 6 * col2 AS col2 FROM tab2 cor0
----
-149
-155
-78
query I rowsort
SELECT + col0 * - 73 * cor0.col1 FROM tab2 AS cor0
----
-15841
-335946
-98039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - ( - 39 ) * col1 + col2 * + col1 col1 FROM tab1 AS cor0
----
-21660
-47424
-53352
query I rowsort
SELECT - col0 + col2 * + 98 FROM tab2
----
2470
2639
3645
onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT col2 * tab2.col0 DIV 27 col0 FROM tab2
----
111
7
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5882
SELECT col2 * tab2.col0 / 27 col0 FROM tab2
----
111
7
75
query I rowsort
SELECT ALL - 69 * col1 AS col2 FROM tab0 AS cor0
----
-5934
-6279
-6693
query I rowsort
SELECT + + 20 + col0 FROM tab2 AS cor0
----
27
98
99
query I rowsort
SELECT ALL - col2 * 61 AS col1 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT ALL + + 11 + cor0.col1 + col0 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
114104
5145
52798
query I rowsort
SELECT - ( - cor0.col2 ) + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + cor0.col0 col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - col2 * 24 + col0 * col1 AS col2 FROM tab1 AS cor0
----
-1218
-1264
-728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 6 ) + + col2 * col2 col1 FROM tab1 AS cor0
----
2922
3255
9222
query I rowsort
SELECT DISTINCT - + col1 + 94 * col2 AS col0 FROM tab0 AS cor0
----
-3
3016
7617
query I rowsort
SELECT DISTINCT - ( col0 ) * col2 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-5893
SELECT - col0 * col1 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-5893
SELECT - col0 * col1 + col0 / col0 AS col0 FROM tab1 AS cor0
----
-1039
-639
-77
query I rowsort
SELECT ALL - - ( col0 ) + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - - col2 + col1 * - col2 * 53 - - 63 AS col0 FROM tab0 cor0
----
-150318
-395341
-5077
query I rowsort
SELECT DISTINCT - + 32 * + cor0.col0 + - col0 AS col1 FROM tab2 AS cor0
----
-231
-2574
-2607
query I rowsort
SELECT 82 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT + 31 - - 94 AS col1 FROM tab0 AS cor0
----
125
125
125
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5899
SELECT ALL - CAST( - cor0.col0 AS SIGNED ) + cor0.col0 * 45 FROM tab2 AS cor0
----
322
3588
3634
skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL - CAST ( - cor0.col0 AS INTEGER ) + cor0.col0 * 45 FROM tab2 AS cor0
----
322
3588
3634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5900
SELECT + + CAST( NULL AS SIGNED ) + + 20 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5900
SELECT + + CAST ( NULL AS INTEGER ) + + 20 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 16 * + 36 AS col1 FROM tab0 AS cor0
----
576
query I rowsort
SELECT ALL + col2 * 58 AS col0 FROM tab0 cor0
----
1914
4756
58
query I rowsort
SELECT + 54 * - col2 - - col2 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT cor0.col2 - 0 AS col1 FROM tab0 cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5905
SELECT DISTINCT + col0 * col2 + + cor0.col0 * CAST( col0 + col0 AS SIGNED ) * 60 col2 FROM tab1 AS cor0
----
1242
495168
775680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT + col0 * col2 + + cor0.col0 * CAST ( col0 + col0 AS INTEGER ) * 60 col2 FROM tab1 AS cor0
----
1242
495168
775680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 51 + + col0 - col1 * + col0 col0 FROM tab2 AS cor0
----
-1213
-159
-4473
query I rowsort
SELECT + 91 * 5 + col1 FROM tab1 AS cor0
----
465
468
481
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 13 ) col2 FROM tab2
----
-13
-13
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT col0 - ( - cor0.col2 ) * CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1113
36
6813
skipif mysql # not compatible
query I rowsort label-5909
SELECT col0 - ( - cor0.col2 ) * CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT ( - cor0.col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - - cor0.col2 + - col0 * - col0 FROM tab1 cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT DISTINCT - ( 87 ) DIV + cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-1
-29
skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT - ( 87 ) / + cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-1
-29
query I rowsort
SELECT + 48 + - col1 AS col1 FROM tab2 AS cor0
----
-11
17
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5915
SELECT - col1 DIV - col2 - - ( cor0.col1 ) DIV + col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5915
SELECT - col1 / - col2 - - ( cor0.col1 ) / + col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT + 17 + + col1 DIV ( 20 ) FROM tab2 AS cor0
----
17
18
19
skipif mysql # not compatible
query I rowsort label-5916
SELECT + 17 + + col1 / ( 20 ) FROM tab2 AS cor0
----
17
18
19
query I rowsort
SELECT DISTINCT + 72 * 0 + tab0.col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - 21 * col1 + col1 * col0 + - col0 FROM tab0
----
1323
234
6099
query I rowsort
SELECT + col0 * - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col1 * ( - 65 ) AS col2 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT DISTINCT col2 * ( col1 ) - col0 * - col1 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT ALL - col2 * col0 * + 3 + - col2 + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
-14514
-9
429
onlyif mysql # use DIV operator for integer division
query I rowsort label-5923
SELECT DISTINCT + col1 DIV 42 - + col2 AS col0 FROM tab2 AS cor0
----
-25
-27
-38
skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT + col1 / 42 - + col2 AS col0 FROM tab2 AS cor0
----
-25
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5924
SELECT ALL col2 * - CAST( + 15 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1230
-15
-495
skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL col2 * - CAST ( + 15 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1230
-15
-495
query I rowsort
SELECT ALL - - col2 * col1 + + 90 AS col0 FROM tab0 AS cor0
----
187
2928
7552
query I rowsort
SELECT + tab1.col2 * col0 - 46 * tab1.col0 AS col2 FROM tab1
----
24
4000
704
query I rowsort
SELECT ALL - tab1.col0 * + tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
onlyif mysql # use DIV operator for integer division
query I rowsort label-5930
SELECT - cor0.col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5930
SELECT - cor0.col2 / col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - 73 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-219
-4672
-5840
query I rowsort
SELECT + col0 * + 41 * + tab1.col0 FROM tab1
----
167936
262400
369
query I rowsort
SELECT - - 32 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT ALL - 4 + - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 764bb96d0b0c5f99afc9491df4259538
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col0 * + col1 col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL + + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
3
64
80
query I rowsort
SELECT - 43 + + col2 AS col1 FROM tab0
----
-10
-42
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT ALL + cor0.col1 DIV 22 FROM tab2, tab0 cor0
----
9 values hashing to 68c2788fac590005713acc2534d95ea1
skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + cor0.col1 / 22 FROM tab2, tab0 cor0
----
9 values hashing to 68c2788fac590005713acc2534d95ea1
query I rowsort
SELECT 36 + cor0.col1 FROM tab2 AS cor0
----
53
67
95
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548
query I rowsort
SELECT DISTINCT + 56 AS col0 FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
56
query I rowsort
SELECT DISTINCT - tab1.col1 * col2 * - 52 FROM tab1
----
29640
64896
73008
query I rowsort
SELECT 90 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL col0 * + tab0.col2 * + col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + + col2 + 70 * cor0.col2 * col1 - + ( - col2 + - ( - cor0.col0 ) ) * - col0 * 91 AS col2 FROM tab0 AS cor0
----
115081
179037
579115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * + col0 col0 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT - - 14 * cor0.col1 + col2 + + col0 AS col1 FROM tab2 cor0
----
355
468
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT + col2 * + col2 + - col1 + - col0 DIV col0 FROM tab0 AS cor0
----
-97
1002
6632
skipif mysql # not compatible
query I rowsort label-5949
SELECT + col2 * + col2 + - col1 + - col0 / col0 FROM tab0 AS cor0
----
-97
1002
6632
query I rowsort
SELECT DISTINCT 82 FROM tab0, tab2 AS cor0
----
82
query I rowsort
SELECT 69 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT - col2 * - col2 - col1 * - ( 93 ) * col1 FROM tab2 cor0
----
28321
324409
90102
query I rowsort
SELECT 73 + + col2 FROM tab1 AS cor0
----
127
130
169
query I rowsort
SELECT col1 * 88 FROM tab0
----
7568
8008
8536
query I rowsort
SELECT ALL + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL tab2.col0 * col1 - - col0 AS col1 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT + 7 * col2 + col0 DIV 16 FROM tab2 AS cor0
----
186
189
270
skipif mysql # not compatible
query I rowsort label-5957
SELECT + 7 * col2 + col0 / 16 FROM tab2 AS cor0
----
186
189
270
query I rowsort
SELECT + tab0.col2 + + col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + 12 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + cor0.col0 * - cor0.col2 col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - 93 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT - + cor0.col1 + 77 AS col0 FROM tab2 AS cor0
----
18
46
60
query I rowsort
SELECT + col1 * 25 AS col0 FROM tab1 AS cor0
----
250
325
650
query I rowsort
SELECT 86 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 61 ) + - col2 col0 FROM tab1 AS cor0
----
-115
-118
-157
onlyif mysql # use DIV operator for integer division
query I rowsort label-5966
SELECT + col2 DIV + cor0.col2 + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-5966
SELECT + col2 / + cor0.col2 + col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - + 80 * + col1 + col1 AS col2 FROM tab1 cor0
----
-1027
-2054
-790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5968
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + col0 * col2 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT - + CAST ( NULL AS REAL ) + col0 * col2 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + + 11 * 89 FROM tab2 AS cor0
----
979
979
979
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5970
SELECT CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5970
SELECT CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 - - col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT 25 - - cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b2d979c4a52cc4d5a228ff01c06ee88
query I rowsort
SELECT ALL + - col1 * cor0.col0 + col2 + + col0 AS col1 FROM tab1 cor0
----
-21
-519
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( - 42 ) * col0 col2 FROM tab0
----
24192
332682
51450
query I rowsort
SELECT DISTINCT - col1 + - 18 FROM tab0 AS cor0
----
-104
-109
-115
query I rowsort
SELECT - col0 + cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT + + col1 - - ( - col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col0 - cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT - cor0.col2 * 54 FROM tab0 AS cor0
----
-1782
-4428
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT DISTINCT col1 * col1 - + col1 DIV col1 AS col2 FROM tab1
----
168
675
99
skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT col1 * col1 - + col1 / col1 AS col2 FROM tab1
----
168
675
99
query I rowsort
SELECT col2 - 59 FROM tab0
----
-26
-58
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5982
SELECT DISTINCT tab2.col2 DIV - 73 + - col0 AS col2 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT tab2.col2 / - 73 + - col0 AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT col0 + + ( + col0 ) DIV + tab0.col2 + + col2 FROM tab0
----
172
57
71
skipif mysql # not compatible
query I rowsort label-5984
SELECT col0 + + ( + col0 ) / + tab0.col2 + + col2 FROM tab0
----
172
57
71
query I rowsort
SELECT col0 + 7 * + 69 + + col0 AS col0 FROM tab1 AS cor0
----
489
611
643
query I rowsort
SELECT DISTINCT col0 + - 67 AS col1 FROM tab0 AS cor0
----
-32
-43
22
query I rowsort
SELECT ALL - col1 * 89 FROM tab2 AS cor0
----
-1513
-2759
-5251
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 - col2 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5989
SELECT DISTINCT col1 * + CAST( - col2 AS SIGNED ) + - col1 FROM tab0
----
-194
-2924
-7553
skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT col1 * + CAST ( - col2 AS INTEGER ) + - col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT 51 FROM tab1, tab1 cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to c9771396949659773ab2fa2a1ac228de
query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-24
query I rowsort
SELECT DISTINCT + 14 * - col0 FROM tab1 AS cor0
----
-1120
-42
-896
query I rowsort
SELECT ALL - 13 * - col2 AS col2 FROM tab1 AS cor0
----
1248
702
741
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + 33 col1 FROM tab2 AS cor0
----
6117
6274
82
query I rowsort
SELECT ALL col1 * + col1 * + col2 + + col0 AS col0 FROM tab0 cor0
----
244092
679131
9444
query I rowsort
SELECT - - 27 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
1619
497
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5998
SELECT ALL ( col0 ) * 37 DIV 81 AS col2 FROM tab0 AS cor0
----
10
15
40
skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL ( col0 ) * 37 / 81 AS col2 FROM tab0 AS cor0
----
10
15
40
query I rowsort
SELECT ALL - 9 + + col1 AS col1 FROM tab2 AS cor0
----
22
50
8
query I rowsort
SELECT DISTINCT + col1 * - col2 + ( cor0.col2 ) * col0 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT ALL - 12 + - cor0.col0 AS col1 FROM tab0 cor0
----
-101
-36
-47
query I rowsort
SELECT DISTINCT + cor0.col0 + tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
104
105
106
116
117
33
34
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6003
SELECT ALL 28 DIV col0 FROM tab1
----
0
0
9
skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL 28 / col0 FROM tab1
----
0
0
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 * 80 + - col1 col1 FROM tab0 AS cor0
----
-227126
-597051
-7857
query I rowsort
SELECT DISTINCT + + ( + col2 ) + + 52 FROM tab2 AS cor0
----
78
79
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col1 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col0 + 87 AS col1 FROM tab0 AS cor0
----
-2
52
63
query I rowsort
SELECT + col2 * + ( + 64 ) + col0 + + col2 FROM tab2 AS cor0
----
1762
1768
2549
query I rowsort
SELECT ALL col1 * col1 + - col2 * - col0 * - 82 AS col0 FROM tab2 AS cor0
----
-14537
-162815
-245875
query I rowsort
SELECT DISTINCT + - col2 * 97 FROM tab2 AS cor0
----
-2522
-2619
-3686
query I rowsort
SELECT DISTINCT + + cor0.col1 + - 32 FROM tab2 AS cor0
----
-1
-15
27
query I rowsort
SELECT - col1 * col1 + + col0 + col2 FROM tab0 AS cor0
----
-7339
-8110
-9373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - 12 col2 FROM tab1 AS cor0
----
-108
-66
-69
query I rowsort
SELECT ALL + col0 * 76 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
1791
2659
6682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT - col1 * CAST( NULL AS SIGNED ) + 57 * col2 * cor0.col0 + - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6015
SELECT - col1 * CAST ( NULL AS INTEGER ) + 57 * col2 * cor0.col0 + - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + 32 * 31 AS col2 FROM tab1 AS cor0
----
1002
1005
1018
query I rowsort
SELECT col0 + - col1 + + col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + cor0.col2 * + 60 FROM tab1 AS cor0
----
3240
3420
5760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6019
SELECT 29 + col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6019
SELECT 29 + col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL 30 + col1 FROM tab0 AS cor0
----
116
121
127
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 68 AS REAL ) * col0 AS col0 FROM tab1 AS cor0
----
-204
-4352
-5440
query I rowsort
SELECT ALL 63 * + col0 - - col1 FROM tab0 AS cor0
----
1598
2302
5698
query I rowsort
SELECT ALL + col2 - ( col0 ) AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6025
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + cor0.col2 * + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + cor0.col2 * + col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 91 * + col2 col0 FROM tab1 cor0
----
4860
5130
8640
query I rowsort
SELECT ALL + - 20 FROM tab1 cor0
----
-20
-20
-20
onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT DISTINCT + col1 DIV + col0 col2 FROM tab2 AS cor0
----
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT + col1 / + col0 col2 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT - 42 * col2 + + col0 FROM tab2 AS cor0
----
-1014
-1127
-1517
onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT DISTINCT + - cor0.col1 + 52 - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-35
-40
-46
skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT + - cor0.col1 + 52 - col2 / + col2 AS col2 FROM tab0 AS cor0
----
-35
-40
-46
query I rowsort
SELECT + - ( col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + + 39 + col2 AS col1 FROM tab1 AS cor0
----
135
93
96
query I rowsort
SELECT + col1 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL - 52 * 84 AS col1 FROM tab0 AS cor0
----
-4368
-4368
-4368
query I rowsort
SELECT DISTINCT 62 * + col1 FROM tab2 AS cor0
----
1054
1922
3658
query I rowsort
SELECT - + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 39 * col1 + col2 FROM tab0
----
3387
3631
3784
query I rowsort
SELECT DISTINCT - tab1.col2 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 * col0 - col1 AS col0 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT ALL col1 * col0 * col0 - - tab0.col0 FROM tab0
----
118860
49560
720900
onlyif mysql # use DIV operator for integer division
query I rowsort label-6041
SELECT ALL - col2 DIV - tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL - col2 / - tab0.col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6042
SELECT + + col2 + + col1 DIV col0 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-6042
SELECT + + col2 + + col1 / col0 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT + col0 * col2 * col2 + col1 AS col2 FROM tab2 cor0
----
114093
5134
52787
query I rowsort
SELECT col0 + cor0.col2 * - col1 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT - col2 FROM tab2 WHERE col1 <> - col2 AND NOT NULL NOT IN ( col0 * col2 + tab2.col0 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT col0 * col0 DIV col2 AS col2 FROM tab0 AS cor0
----
1225
17
96
skipif mysql # not compatible
query I rowsort label-6046
SELECT col0 * col0 / col2 AS col2 FROM tab0 AS cor0
----
1225
17
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT ALL - + col0 DIV col2 + + col1 AS col1 FROM tab0 AS cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - + col0 / col2 + + col1 AS col1 FROM tab0 AS cor0
----
62
86
90
query I rowsort
SELECT - + col1 + col0 * + col0 * - col1 FROM tab2 AS cor0
----
-106114
-1550
-359015
query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - + col0 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT col1 * - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-205379
-29791
-4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col0 * - col0 + cor0.col0 FROM tab1 AS cor0
----
-4032
-6
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 + - cor0.col0 col0 FROM tab1 AS cor0
----
-106
-29
-90
query I rowsort
SELECT ALL col1 * - ( col1 ) * + col1 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT - + 77 * col0 AS col0 FROM tab2 AS cor0
----
-539
-6006
-6083
query I rowsort
SELECT ALL + ( - col1 ) + + col2 AS col0 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT - - col1 DIV + col0 - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-6058
SELECT - - col1 / + col0 - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT - - col0 * col2 + - col0 - col0 FROM tab0 AS cor0
----
-35
7120
744
query I rowsort
SELECT + 40 * tab2.col0 FROM tab2
----
280
3120
3160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-6062
SELECT ALL tab1.col2 DIV col1 + col1 AS col1 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL tab1.col2 / col1 + col1 AS col1 FROM tab1
----
15
20
28
query I rowsort
SELECT + col1 - col0 AS col0 FROM tab2 WHERE ( col0 ) NOT IN ( + col2 )
----
-19
-62
24
query I rowsort
SELECT DISTINCT + col1 * col2 + + col1 * + col2 * - col1 AS col2 FROM tab1 WHERE NOT NULL IN ( col0 + col0 * + col0 / - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6065
SELECT - col0 + col1 DIV + col2 AS col1 FROM tab0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-6065
SELECT - col0 + col1 / + col2 AS col1 FROM tab0
----
-22
-88
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6066
SELECT DISTINCT - col1 DIV - col1 AS col0 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT - col1 / - col1 AS col0 FROM tab2
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT col0 DIV - tab2.col0 AS col2 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6067
SELECT col0 / - tab2.col0 AS col2 FROM tab2
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT ALL col2 + + col1 * col2 * + col0 + + col1 * - col1 DIV + col1 FROM tab1
----
36527
4240
99923
skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL col2 + + col1 * col2 * + col0 + + col1 * - col1 / + col1 FROM tab1
----
36527
4240
99923
onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT DISTINCT col2 + col1 DIV - col2 + + tab0.col0 FROM tab0
----
-61
170
55
skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT col2 + col1 / - col2 + + tab0.col0 FROM tab0
----
-61
170
55
query I rowsort
SELECT - col0 * - col1 + tab0.col1 * col0 AS col1 FROM tab0
----
16198
4128
6790
query I rowsort
SELECT ALL + col2 + col2 * col1 * - tab1.col0 FROM tab1
----
-36423
-4158
-99744
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 > ( NULL )
----
query I rowsort
SELECT DISTINCT tab0.col0 + col2 * col1 + col1 FROM tab0
----
229
2948
7642
query I rowsort
SELECT col1 * + col0 + col1 * - col1 * - col0 FROM tab0
----
179568
332710
745108
query I rowsort
SELECT ALL + col0 * col1 + - col1 - + col0 * col2 AS col0 FROM tab1
----
-110
-3018
-6653
query I rowsort
SELECT col2 * - col2 + + col0 FROM tab0
----
-1065
-6635
34
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col2 + + col2 )
----
query I rowsort
SELECT ALL col1 * col1 FROM tab0 WHERE NULL IN ( col2 )
----
query I rowsort
SELECT col0 * + col2 + + col2 FROM tab1
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-6080
SELECT ALL col1 DIV col0 + + tab0.col2 * + col2 + col1 AS col1 FROM tab0
----
100
1178
6816
skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL col1 / col0 + + tab0.col2 * + col2 + col1 AS col1 FROM tab0
----
100
1178
6816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT ALL - col0 DIV - col0 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - col0 / - col0 AS col1 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6082
SELECT - col0 * + col0 + col2 DIV col1 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-6082
SELECT - col0 * + col0 + col2 / col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT - col1 * + col2 * col0 AS col2 FROM tab1
----
-36480
-4212
-99840
query III rowsort
SELECT * FROM tab0 WHERE - col1 - col2 <> NULL
----
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 + - col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792
query III rowsort
SELECT * FROM tab0 WHERE col0 + col1 NOT BETWEEN + col2 AND tab0.col0 * + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * + col0 * - tab1.col0 col2 FROM tab1
----
-24
-262080
-511920
query I rowsort
SELECT tab0.col1 - + col0 FROM tab0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab0.col0 + + col2 col1 FROM tab0
----
260
71
81
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 - + col0 * - col0
----
query I rowsort
SELECT col2 * + col2 / col1 AS col1 FROM tab0 WHERE NOT col1 NOT IN ( col0 )
----
query I rowsort
SELECT + col2 + - col0 + tab0.col1 FROM tab0
----
63
84
95
query I rowsort
SELECT col1 * col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT + cor0.col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT ALL 43 DIV 27 + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL 43 / 27 + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT + col1 * tab0.col1 + - col2 FROM tab0
----
7363
8199
9408
query I rowsort
SELECT ALL 15 + cor0.col0 AS col1 FROM tab2 cor0
----
22
93
94
query I rowsort
SELECT DISTINCT + 89 * - col2 - + col1 FROM tab2 AS cor0
----
-2373
-2434
-3399
query I rowsort
SELECT DISTINCT - 11 + 8 * cor0.col0 + col0 FROM tab0 AS cor0
----
205
304
790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6101
SELECT ALL - CAST( - 91 AS SIGNED ) - cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1973
-3304
-8008
skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL - CAST ( - 91 AS INTEGER ) - cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1973
-3304
-8008
query I rowsort
SELECT + col0 + + 33 * + col2 FROM tab2 AS cor0
----
1333
898
936
query I rowsort
SELECT ALL + 60 * col2 * + cor0.col0 FROM tab1 AS cor0
----
218880
460800
9720
query I rowsort
SELECT - 10 + col0 FROM tab1 AS cor0
----
-7
54
70
query I rowsort
SELECT DISTINCT + col1 + 48 FROM tab2 AS cor0
----
107
65
79
query I rowsort
SELECT - + ( - col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 9 * + col2 + - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
106
3135
8200
query I rowsort
SELECT DISTINCT + - 75 - - col2 AS col0 FROM tab2 AS cor0
----
-37
-48
-49
query I rowsort
SELECT ALL - - 36 * col2 FROM tab2 cor0
----
1368
936
972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 * col0 col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT col2 + ( col1 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - col2 * 49 FROM tab0 AS cor0
----
-1617
-4018
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-6113
SELECT ALL col0 DIV - 6 FROM tab1 AS cor0
----
-10
-13
0
skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL col0 / - 6 FROM tab1 AS cor0
----
-10
-13
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT + - ( - col0 ) * col1 + cor0.col1 - - col2 DIV col0 AS col1 FROM tab0 AS cor0
----
2151
3492
8190
skipif mysql # not compatible
query I rowsort label-6114
SELECT + - ( - col0 ) * col1 + cor0.col1 - - col2 / col0 AS col1 FROM tab0 AS cor0
----
2151
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT ALL + + 45 * col0 + cor0.col0 * + col2 * - col0 + cor0.col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-1008
-154673
-233599
skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL + + 45 * col0 + cor0.col0 * + col2 * - col0 + cor0.col0 / col1 AS col0 FROM tab2 AS cor0
----
-1008
-154673
-233599
query I rowsort
SELECT DISTINCT + col2 + col0 * ( - col2 * - col0 + + col2 * cor0.col2 ) FROM tab1 AS cor0
----
1351776
441465
9288
query I rowsort
SELECT - col2 + + col0 * - 38 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1296
-3375
-921
onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT ALL - cor0.col1 * + cor0.col0 + col0 DIV col0 AS col2 FROM tab0 cor0
----
-2063
-3394
-8098
skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - cor0.col1 * + cor0.col0 + col0 / col0 AS col2 FROM tab0 cor0
----
-2063
-3394
-8098
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6119
SELECT + ( col0 ) + CAST( NULL AS SIGNED ) + + col1 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-6119
SELECT + ( col0 ) + CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + tab0.col0 + + tab0.col2 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT 37 - tab2.col0 AS col2 FROM tab2
----
-41
-42
30
query I rowsort
SELECT ALL - col0 * ( - col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + + 19 FROM tab1 AS cor0
----
2935
3268
9235
query I rowsort
SELECT DISTINCT - col0 + - 20 FROM tab1 AS cor0
----
-100
-23
-84
query I rowsort
SELECT - + col0 * + col1 + col1 * + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - - cor0.col2 * 26 + col2 FROM tab2 AS cor0
----
1026
702
729
query I rowsort
SELECT col1 * - ( + col0 ) AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + + col2 * 22 AS col0 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT - col1 * col0 + col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 96 + col0 FROM tab0 AS cor0
----
120
131
185
query I rowsort
SELECT ( + 97 ) + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-192
-3384
-864
query I rowsort
SELECT DISTINCT + ( tab1.col0 ) AS col1 FROM tab1, tab2 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - col1 * 29 AS col1 FROM tab2
----
-1711
-493
-899
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6136
SELECT + + CAST( + 77 AS SIGNED ) FROM tab0 AS cor0
----
77
77
77
skipif mysql # not compatible
query I rowsort label-6136
SELECT + + CAST ( + 77 AS INTEGER ) FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT + ( - cor0.col0 ) * - col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-6138
SELECT - 77 DIV + 25 FROM tab1 AS cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-6138
SELECT - 77 / + 25 FROM tab1 AS cor0
----
-3
-3
-3
query I rowsort
SELECT 95 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT DISTINCT ( ( + col2 ) + col2 ) FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6141
SELECT + col2 DIV 97 + + col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6141
SELECT + col2 / 97 + + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + ( 63 ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT + 10 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6144
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( col0 ) AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( col0 ) AS col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT tab2.col2 * tab2.col2 AS col1 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT DISTINCT - 0 * + col2 DIV ( - 53 * col2 ) + col0 * col1 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT - 0 * + col2 / ( - 53 * col2 ) + col0 * col1 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6147
SELECT col0 * - col2 + col0 + 41 DIV col0 AS col2 FROM tab0
----
-7209
-767
1
skipif mysql # not compatible
query I rowsort label-6147
SELECT col0 * - col2 + col0 + 41 / col0 AS col2 FROM tab0
----
-7209
-767
1
query I rowsort
SELECT ALL col0 * tab2.col2 + col1 * col1 + tab2.col0 * col0 AS col2 FROM tab2
----
11593
1199
9532
query I rowsort
SELECT 25 * col0 AS col2 FROM tab0
----
2225
600
875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + 63 + col2 * - col2 col1 FROM tab0
----
-1050
-6750
27
query I rowsort
SELECT - - col2 * - col1 - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT ( cor0.col2 ) * + col1 + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
1254
1404
576
skipif mysql # not compatible
query I rowsort label-6152
SELECT ( cor0.col2 ) * + col1 + col0 / + col1 AS col2 FROM tab1 AS cor0
----
1254
1404
576
onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT DISTINCT + + col1 * - col1 + 33 * 67 DIV - col2 AS col1 FROM tab0 AS cor0
----
-11620
-7463
-8307
skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT + + col1 * - col1 + 33 * 67 / - col2 AS col1 FROM tab0 AS cor0
----
-11620
-7463
-8307
onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT ALL - 66 + col1 + col0 DIV col0 AS col0 FROM tab0
----
21
26
32
skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL - 66 + col1 + col0 / col0 AS col0 FROM tab0
----
21
26
32
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT - - col0 + 57 * - 5 FROM tab0 AS cor0
----
-196
-250
-261
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6157
SELECT + - col2 + CAST( ( + col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6157
SELECT + - col2 + CAST ( ( + col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col2 * 34 AS col0 FROM tab0 AS cor0
----
1122
2788
34
query I rowsort
SELECT tab1.col1 * ( 8 ) * - col2 + + col1 AS col2 FROM tab1
----
-11206
-4550
-9971
query I rowsort
SELECT + col2 + - cor0.col1 AS col2 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT DISTINCT col2 DIV + ( col0 ) FROM tab2 cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT col2 / + ( col0 ) FROM tab2 cor0
----
0
3
query I rowsort
SELECT col0 + ( - ( + cor0.col0 ) ) + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 91 * col0 * - 29 FROM tab1
----
168896
211120
7917
query I rowsort
SELECT col0 * - cor0.col2 + col1 - - col1 * 54 AS col2 FROM tab0 AS cor0
----
-2293
3938
5300
query I rowsort
SELECT ALL - + col2 * + ( col1 ) AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - ( + tab1.col0 ) AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT 84 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT col1 * - col2 + col2 + col1 FROM tab1 AS cor0
----
-1139
-1324
-503
query I rowsort
SELECT DISTINCT cor1.col2 + cor1.col1 + 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
124
127
154
query I rowsort
SELECT + col1 - 27 AS col2 FROM tab0 AS cor0
----
59
64
70
query I rowsort
SELECT + col1 + 69 FROM tab2 AS cor0
----
100
128
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6172
SELECT - col2 * CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6172
SELECT - col2 * CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col0 + 19 + + col0 FROM tab2 AS cor0
----
175
177
33
query I rowsort
SELECT - - col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT ALL - - col1 DIV 72 + - col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL - - col1 / 72 + - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - col2 - + 14 FROM tab2 AS cor0
----
12
13
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6177
SELECT + - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6177
SELECT + - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col1 + - col1 AS col2 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6179
SELECT - col1 DIV col1 + - col0 * col2 DIV + col1 FROM tab2 AS cor0
----
-177
-35
-7
skipif mysql # not compatible
query I rowsort label-6179
SELECT - col1 / col1 + - col0 * col2 / + col1 FROM tab2 AS cor0
----
-177
-35
-7
query I rowsort
SELECT DISTINCT + 87 * + 98 + col2 FROM tab1 AS cor0
----
8580
8583
8622
onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT - 77 * col2 DIV CAST( 23 + + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-159
-50
-71
skipif mysql # not compatible
query I rowsort label-6181
SELECT - 77 * col2 / CAST ( 23 + + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-159
-50
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT - 98 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6182
SELECT - 98 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 42 * + col1 FROM tab1 AS cor0
----
1092
420
546
query I rowsort
SELECT ALL - 45 * + col2 FROM tab0 AS cor0
----
-1485
-3690
-45
query I rowsort
SELECT ALL + col1 + - 4 + 99 FROM tab0 AS cor0
----
181
186
192
query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
4
query I rowsort
SELECT DISTINCT col1 * 33 + + 31 * - col2 FROM tab2 AS cor0
----
-617
1141
186
query I rowsort
SELECT DISTINCT + col0 + + 31 AS col2 FROM tab0 cor0
----
120
55
66
query I rowsort
SELECT ALL - - 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT col2 * 85 FROM tab0 AS cor0
----
2805
6970
85
query I rowsort
SELECT ALL ( 82 ) FROM tab1, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT + ( + 92 * col0 ) AS col2 FROM tab2
----
644
7176
7268
query I rowsort
SELECT + 22 AS col2 FROM tab0
----
22
22
22
query I rowsort
SELECT + 21 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT 99 - col1 AS col0 FROM tab0
----
13
2
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6196
SELECT ALL col0 DIV - col2 + - col2 FROM tab0 cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL col0 / - col2 + - col2 FROM tab0 cor0
----
-33
-36
-83
query I rowsort
SELECT - col1 * 96 AS col2 FROM tab0 AS cor0
----
-8256
-8736
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6198
SELECT ALL + col2 * CAST( NULL AS SIGNED ) + cor0.col0 - - col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) + cor0.col0 - - col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * + col1 + + cor0.col1 AS col1 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT + - col2 + 30 AS col1 FROM tab2 AS cor0
----
-8
3
4
query I rowsort
SELECT ALL - - 97 * - col2 AS col2 FROM tab0 cor0
----
-3201
-7954
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6202
SELECT DISTINCT - ( + cor0.col0 ) DIV col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - ( + cor0.col0 ) / col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - 67 * + col2 FROM tab2 AS cor0
----
-1742
-1809
-2546
query I rowsort
SELECT DISTINCT + 39 FROM tab2, tab1 AS cor0
----
39
query I rowsort
SELECT ALL + - 63 + col1 FROM tab2 AS cor0
----
-32
-4
-46
query I rowsort
SELECT DISTINCT - col0 + col1 * cor0.col0 + - 49 * + col2 FROM tab0 AS cor0
----
3311
3992
423
query I rowsort
SELECT + - ( cor0.col0 ) + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * col0 + col0 * - col1 FROM tab2 AS cor0
----
-10686
-266
-7584
query I rowsort
SELECT 72 * - tab0.col0 + - col1 * + tab0.col1 * + col2 AS col2 FROM tab0
----
-11929
-245796
-685450
query I rowsort
SELECT - 89 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT col0 + col0 * col0 * - 32 AS col2 FROM tab2
----
-1561
-194610
-199633
query I rowsort
SELECT - - cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col0 - - col0 * ( col2 ) FROM tab1 cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL 43 + + col0 FROM tab0 AS cor0
----
132
67
78
query I rowsort
SELECT cor0.col2 * + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT cor1.col0 * - cor1.col2 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6218
SELECT ALL cor0.col2 * - CAST( NULL AS DECIMAL ) col1 FROM tab0, 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-6218
SELECT ALL cor0.col2 * - CAST ( NULL AS REAL ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6219
SELECT ALL - - col1 DIV 62 + - col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL - - col1 / 62 + - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - - col1 * 37 + cor0.col0 FROM tab1 AS cor0
----
434
561
965
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + + cor0.col2 col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + col1 * col1 + + 59 AS col1 FROM tab2 AS cor0
----
1020
348
3540
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 44 col2 FROM tab1 AS cor0
----
-132
-2816
-3520
skipif mysql # not compatible
query I rowsort
SELECT col2 + - CAST ( + col1 AS REAL ) * col2 AS col2 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT col2 * 52 FROM tab0 cor0
----
1716
4264
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6226
SELECT + col2 + + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6226
SELECT + col2 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 0 + col1 AS col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6228
SELECT DISTINCT ( + tab1.col1 ) * col2 DIV col0 + + col2 AS col1 FROM tab1
----
111
522
65
skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT ( + tab1.col1 ) * col2 / col0 + + col2 AS col1 FROM tab1
----
111
522
65
query I rowsort
SELECT + col2 + tab2.col0 * col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL - col2 * - tab2.col0 + 52 AS col0 FROM tab2
----
2080
241
3054
query I rowsort
SELECT DISTINCT - 85 + col2 AS col2 FROM tab2
----
-47
-58
-59
query I rowsort
SELECT DISTINCT col0 * col2 + tab0.col1 AS col0 FROM tab0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT + col2 + tab1.col1 DIV col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6233
SELECT + col2 + tab1.col1 / col2 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * - col2 - col0 col2 FROM tab0
----
-1113
-36
-6813
query I rowsort
SELECT 52 FROM tab2, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT 73 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT + - col1 + - col0 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1348
539
691
query I rowsort
SELECT ALL - - col2 * ( - ( + col0 ) ) - cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT + + col0 * + ( col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + col2 + 48 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
-354975
-397406
-451631
query I rowsort
SELECT col2 + col1 * - col0 FROM tab0 cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT + 85 DIV cor1.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6
skipif mysql # not compatible
query I rowsort label-6242
SELECT + 85 / cor1.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6
query I rowsort
SELECT ALL col0 * - tab2.col0 AS col2 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 col2 FROM tab0, tab2 AS cor0
----
17
query I rowsort
SELECT DISTINCT - ( + 8 * - col0 ) FROM tab2
----
56
624
632
query I rowsort
SELECT - 47 + + col1 * - col2 * 36 FROM tab0 AS cor0
----
-102215
-268679
-3539
query I rowsort
SELECT col2 * - col1 + col0 * + 95 FROM tab0 AS cor0
----
-558
3228
993
query I rowsort
SELECT - col2 * col2 + col2 + + col2 FROM tab1 AS cor0
----
-2808
-3135
-9024
query I rowsort
SELECT - col2 * col0 + + col0 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ( - col2 + col0 * + 69 ) AS col1 FROM tab2
----
456
5356
5413
query I rowsort
SELECT - tab1.col2 * + col2 * + ( col2 + + col2 ) FROM tab1
----
-1769472
-314928
-370386
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6252
SELECT + col2 * - tab0.col0 + CAST( 27 + - col0 AS SIGNED ) * - 97 FROM tab0
----
-1083
-1284
741
skipif mysql # not compatible
query I rowsort label-6252
SELECT + col2 * - tab0.col0 + CAST ( 27 + - col0 AS INTEGER ) * - 97 FROM tab0
----
-1083
-1284
741
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT DISTINCT col1 * col0 DIV - col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT col1 * col0 / - col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - 1 + + col0 + col0 FROM tab0 AS cor0
----
177
47
69
query I rowsort
SELECT DISTINCT - 21 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7375
8260
9388
query I rowsort
SELECT 71 + col1 * col0 * 41 + col0 AS col2 FROM tab1 AS cor0
----
26375
3272
42791
onlyif mysql # use DIV operator for integer division
query I rowsort label-6257
SELECT - - cor0.col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6257
SELECT - - cor0.col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 49 * col1 AS col1 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT - col0 + + col0 * col1 FROM tab1 cor0
----
576
75
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6260
SELECT + 30 + col2 * CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6260
SELECT + 30 + col2 * 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-6261
SELECT 74 - col2 * + CAST( NULL AS DECIMAL ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6261
SELECT 74 - col2 * + CAST ( NULL AS REAL ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 77 AS col1 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT + col2 * - cor0.col1 + - 96 FROM tab1 cor0
----
-1344
-1500
-666
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6264
SELECT - CAST( + col2 AS SIGNED ) + + col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756
skipif mysql # not compatible
query I rowsort label-6264
SELECT - CAST ( + col2 AS INTEGER ) + + col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6265
SELECT ALL + CAST( NULL AS SIGNED ) + col1 * - col0 + 97 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 * - col0 + 97 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 83 * + 15 AS col0 FROM tab2 AS cor0
----
-1245
-1245
-1245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col0 ) - col2 * + cor0.col0 * - col1 col1 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT - 24 FROM tab0, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT ALL + tab0.col2 * tab0.col2 AS col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT ALL + 71 * + tab0.col2 AS col1 FROM tab0
----
2343
5822
71
query I rowsort
SELECT - col0 + - 5 AS col0 FROM tab0 AS cor0
----
-29
-40
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT + col2 + cor0.col0 * col0 DIV col1 AS col1 FROM tab1 AS cor0
----
466
54
588
skipif mysql # not compatible
query I rowsort label-6273
SELECT + col2 + cor0.col0 * col0 / col1 AS col1 FROM tab1 AS cor0
----
466
54
588
query I rowsort
SELECT - + col0 * 55 + + cor0.col2 FROM tab2 AS cor0
----
-358
-4264
-4307
query I rowsort
SELECT col1 + 24 FROM tab0 AS cor0
----
110
115
121
query I rowsort
SELECT + + col0 * 28 FROM tab1 AS cor0
----
1792
2240
84
query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab1, tab2, tab0 AS cor0, tab0 AS cor1
----
86
query I rowsort
SELECT - col1 + 45 AS col0 FROM tab1
----
19
32
35
query I rowsort
SELECT tab2.col1 + 48 AS col1 FROM tab2
----
107
65
79
query I rowsort
SELECT DISTINCT col2 + col0 + 12 FROM tab2
----
116
129
46
query I rowsort
SELECT DISTINCT col1 + 3 AS col1 FROM tab0
----
100
89
94
query I rowsort
SELECT DISTINCT + 27 * - cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
-189
-2106
-2133
query I rowsort
SELECT - + col1 + + ( col1 ) * col0 FROM tab0 cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + 3 col0 FROM tab1 AS cor0
----
-10
-23
-7
query I rowsort
SELECT + ( + ( + col1 ) * col0 ) + col1 * col0 AS col1 FROM tab2
----
2686
434
9204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + ( cor0.col0 ) col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - 76 + 83 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT 67 + 89 AS col0 FROM tab1 AS cor0
----
156
156
156
query I rowsort
SELECT ALL - col2 * + 58 AS col1 FROM tab1 AS cor0
----
-3132
-3306
-5568
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6290
SELECT ALL - - CAST( NULL AS SIGNED ) * 42 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL - - CAST ( NULL AS INTEGER ) * 42 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6292
SELECT ALL CAST( NULL AS SIGNED ) + + col2 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 95 ) * cor0.col0 * - 99 + + 49 AS col2 FROM tab1 AS cor0
----
-28166
-601871
-752351
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6294
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 / col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 / col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + 20 * col2 AS col1 FROM tab1 AS cor0
----
-1080
-1140
-1920
query I rowsort
SELECT ALL + + ( 41 ) + + col0 FROM tab1 AS cor0
----
105
121
44
query I rowsort
SELECT 23 + 62 * + col2 FROM tab2 AS cor0
----
1635
1697
2379
query I rowsort
SELECT - col1 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT col2 * cor0.col0 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col0 * col2 + - col2 * + col1 FROM tab1 AS cor0
----
-1242
3078
6432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6301
SELECT ALL ( col1 ) * CAST( col1 AS SIGNED ) - - col0 FROM tab0
----
7420
8370
9444
skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL ( col1 ) * CAST ( col1 AS INTEGER ) - - col0 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT - + cor0.col1 - - col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 * - col2 * + ( + col0 ) + col1 col1 FROM tab1 AS cor0
----
-10018
-226166
-476147
query I rowsort
SELECT - col1 - - col2 AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col2 * + col1 + + ( 5 ) - + col0 AS col0 FROM tab1 AS cor0
----
1173
1406
511
query I rowsort
SELECT - + 38 AS col1 FROM tab2 AS cor0
----
-38
-38
-38
query I rowsort
SELECT - col1 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col2 * 75 col1 FROM tab0 AS cor0
----
-2442
-6068
-74
query I rowsort
SELECT ALL - col1 + col0 * col0 FROM tab0 cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT + - col2 + + col2 * + ( cor0.col1 * + col1 ) AS col0 FROM tab0 AS cor0
----
244035
678960
9408
query I rowsort
SELECT col2 + + col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
71
7469
849
query I rowsort
SELECT DISTINCT + 66 - + col2 * + col0 AS col1 FROM tab1
----
-3582
-7614
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6313
SELECT DISTINCT - col1 DIV - ( + 58 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT - col1 / - ( + 58 ) FROM tab0 AS cor0
----
1
query I rowsort
SELECT col0 + cor0.col2 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + ( col2 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col2 * - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT DISTINCT + 91 * cor0.col1 * 22 - + 6 FROM tab2, tab1 AS cor0
----
20014
26020
52046
query I rowsort
SELECT DISTINCT + 64 + + col0 * + col0 * + col2 + + col2 FROM tab0
----
1290
19105
649668
query I rowsort
SELECT col2 + col0 * col2 * 35 + 98 AS col0 FROM tab2
----
105206
6740
71104
query I rowsort
SELECT - 35 + - ( + col0 ) - col2 FROM tab1
----
-156
-211
-92
query I rowsort
SELECT DISTINCT 31 + col2 * + col2 AS col1 FROM tab1
----
2947
3280
9247
query I rowsort
SELECT - 6 + - ( - col0 ) FROM tab2
----
1
72
73
query I rowsort
SELECT ALL + col1 * + col0 AS col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT - col2 DIV - col0 + col2 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-6324
SELECT - col2 / - col0 + col2 FROM tab0 AS cor0
----
1
34
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6325
SELECT ALL col2 + + cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL col2 + + cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 5 - - col0 AS col2 FROM tab0 AS cor0
----
29
40
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col1 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col0 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT + col2 + + cor0.col0 * - col0 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT col1 + ( - 58 ) AS col2 FROM tab1
----
-32
-45
-48
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - col2 * + cor0.col0 + col0 * + col0 FROM tab0 AS cor0
----
-216
1190
623
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL tab1.col0 * - col1 + + ( - col0 ) FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - 60 * 79 FROM tab2, tab1 AS cor0
----
-4740
onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT ALL + + cor0.col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + + cor0.col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6338
SELECT ALL - CAST( 70 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
-490
-5460
-5530
skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - CAST ( 70 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
-490
-5460
-5530
query I rowsort
SELECT cor0.col0 - 68 FROM tab2 AS cor0
----
-61
10
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-6340
SELECT - col0 * col1 + - col1 DIV col0 + - col1 FROM tab2
----
-1360
-252
-4661
skipif mysql # not compatible
query I rowsort label-6340
SELECT - col0 * col1 + - col1 / col0 + - col1 FROM tab2
----
-1360
-252
-4661
query I rowsort
SELECT ALL ( 4 * - col0 ) + - 75 FROM tab2
----
-103
-387
-391
query I rowsort
SELECT col0 * + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6343
SELECT DISTINCT - + CAST( col2 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - + CAST ( col2 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT DISTINCT + cor0.col1 DIV - col0 AS col1 FROM tab2 cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + cor0.col1 / - col0 AS col1 FROM tab2 cor0
----
-4
0
query I rowsort
SELECT + + col2 - - cor0.col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col0 + + 49 FROM tab1 cor0
----
-15
-31
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 40 col0 FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT DISTINCT ( + col1 ) + + col1 * col2 AS col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - - 78 * col1 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT + - col2 * + cor0.col0 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + col1 + col2 * + 51 FROM tab0 AS cor0
----
148
1769
4273
onlyif mysql # use DIV operator for integer division
query I rowsort label-6352
SELECT ALL + + col0 * + col1 + - cor0.col2 DIV col1 FROM tab1 cor0
----
1033
635
76
skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + + col0 * + col1 + - cor0.col2 / col1 FROM tab1 cor0
----
1033
635
76
query I rowsort
SELECT + col2 + + cor0.col1 * 27 FROM tab1 cor0
----
327
447
756
query I rowsort
SELECT ALL 28 + - col1 FROM tab0
----
-58
-63
-69
query I rowsort
SELECT + col0 + col2 - + col2 * 18 FROM tab0 AS cor0
----
-1305
-537
18
query I rowsort
SELECT 11 * cor0.col0 - + 40 AS col0 FROM tab1 cor0
----
-7
664
840
query I rowsort
SELECT 21 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT + + col1 * col2 + + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL 81 * - col2 AS col2 FROM tab2
----
-2106
-2187
-3078
query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT + - cor0.col0 DIV 58 AS col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6361
SELECT + - cor0.col0 / 58 AS col2 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT - ( - ( cor0.col0 ) ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - ( 68 ) FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 90 AS REAL ) AS col1 FROM tab2, tab0 AS cor0
----
90
query I rowsort
SELECT + col0 * col1 + - ( + 30 + col0 ) FROM tab2 AS cor0
----
1234
180
4494
query I rowsort
SELECT tab0.col1 * + col2 * - tab0.col1 + col0 * col2 FROM tab0
----
-243276
-671744
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT DISTINCT + col0 + col2 DIV col1 FROM tab2
----
7
78
81
skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT + col0 + col2 / col1 FROM tab2
----
7
78
81
query I rowsort
SELECT DISTINCT - 39 + col1 AS col1 FROM tab2
----
-22
-8
20
query I rowsort
SELECT ALL 49 + - col1 * 97 FROM tab2
----
-1600
-2958
-5674
query I rowsort
SELECT DISTINCT + - col1 * + col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + - 75 * + col0 FROM tab0 AS cor0
----
-1800
-2625
-6675
query I rowsort
SELECT ALL - - 11 FROM tab2, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT ALL - - cor0.col0 + - 96 + - col1 FROM tab2 AS cor0
----
-120
-34
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6374
SELECT + + col2 * - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-6374
SELECT + + col2 * - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - cor0.col2 + col0 * col0 FROM tab2 cor0
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT col2 DIV + 84 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6376
SELECT col2 / + 84 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + tab1.col2 * + col1 * ( - col1 ) FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT - col0 * + col1 * - tab2.col0 AS col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT + 54 * col0 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT - ( - col2 ) * col2 * + col0 - + col0 FROM tab2 AS cor0
----
113997
5096
52650
query I rowsort
SELECT + + 19 * + col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
200
260
520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + cor0.col0 * cor0.col2 col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + - col0 * + 87 + + col2 FROM tab1 AS cor0
----
-207
-5511
-6864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col2 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 * col2 col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col0 + col2 + - col0 FROM tab2
----
26
27
38
query I rowsort
SELECT - 13 * col1 - - col2 FROM tab1 AS cor0
----
-284
-73
-73
query I rowsort
SELECT col0 * col1 + 70 AS col0 FROM tab2
----
1413
287
4672
query I rowsort
SELECT - col0 * - col2 + col2 * tab0.col1 AS col1 FROM tab0
----
132
14760
3630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-1
-33
-82
query I rowsort
SELECT - col1 - ( cor0.col0 ) FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + + col2 + 90 * col1 AS col2 FROM tab2 AS cor0
----
1568
2817
5336
query I rowsort
SELECT DISTINCT 2 * col0 AS col2 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6394
SELECT ALL col2 + - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL col2 + - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT 44 * - col2 + + col2 DIV col1 + col0 FROM tab1 AS cor0
----
-2371
-2439
-4137
skipif mysql # not compatible
query I rowsort label-6395
SELECT 44 * - col2 + + col2 / col1 + col0 FROM tab1 AS cor0
----
-2371
-2439
-4137
query I rowsort
SELECT DISTINCT - + 37 + + col2 AS col2 FROM tab0 AS cor0
----
-36
-4
45
query I rowsort
SELECT ALL + cor0.col0 - col2 AS col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL - - 76 * + col0 FROM tab2 AS cor0
----
532
5928
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-6399
SELECT + col2 * + col1 + - col1 DIV ( cor0.col0 ) FROM tab2 AS cor0
----
1534
646
833
skipif mysql # not compatible
query I rowsort label-6399
SELECT + col2 * + col1 + - col1 / ( cor0.col0 ) FROM tab2 AS cor0
----
1534
646
833
onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT DISTINCT - col0 + cor0.col0 * col1 DIV 51 FROM tab1 AS cor0
----
-2
-52
-60
skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT - col0 + cor0.col0 * col1 / 51 FROM tab1 AS cor0
----
-2
-52
-60
query I rowsort
SELECT + 13 + + col0 * - col2 + + col2 FROM tab0
----
-21
-7203
-746
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6402
SELECT col1 * col2 + + tab0.col1 * CAST( 30 * + col2 AS SIGNED ) FROM tab0
----
231322
3007
87978
skipif mysql # not compatible
query I rowsort label-6402
SELECT col1 * col2 + + tab0.col1 * CAST ( 30 * + col2 AS INTEGER ) FROM tab0
----
231322
3007
87978
query I rowsort
SELECT ALL col1 - - col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT 77 + + 44 - tab0.col2 AS col1 FROM tab0
----
120
39
88
query I rowsort
SELECT ( + col1 ) * col1 - 86 FROM tab1
----
14
590
83
query I rowsort
SELECT ALL + col2 + - 14 * - col0 - + col2 FROM tab2
----
1092
1106
98
query I rowsort
SELECT + 92 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT - tab0.col1 * col2 * col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - col2 + cor0.col1 * - col1 + + 61 AS col0 FROM tab1 cor0
----
-204
-669
-96
query I rowsort
SELECT ALL col1 + col0 + col2 AS col0 FROM tab1
----
131
189
83
query I rowsort
SELECT - - 60 * + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c9734eba2f2a847cabc27b2e30c79d72
query I rowsort
SELECT ALL 41 + cor0.col1 FROM tab0 cor0
----
127
132
138
onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT + 0 + col2 DIV - 74 + col0 AS col0 FROM tab1 AS cor0
----
3
64
79
skipif mysql # not compatible
query I rowsort label-6413
SELECT + 0 + col2 / - 74 + col0 AS col0 FROM tab1 AS cor0
----
3
64
79
query I rowsort
SELECT - - 47 * col2 AS col0 FROM tab0 AS cor0
----
1551
3854
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-6415
SELECT col2 * col1 + col1 * col1 DIV col2 + - col1 * - 42 FROM tab1 cor0
----
1795
2508
991
skipif mysql # not compatible
query I rowsort label-6415
SELECT col2 * col1 + col1 * col1 / col2 + - col1 * - 42 FROM tab1 cor0
----
1795
2508
991
query I rowsort
SELECT DISTINCT - col1 * + col2 * cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT col0 * - col1 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372
query I rowsort
SELECT + col2 + col2 * ( + col0 ) FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col0 FROM tab0 AS cor0
----
71
71
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-6421
SELECT + col0 DIV + cor0.col1 - + col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6421
SELECT + col0 / + cor0.col1 - + col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT DISTINCT - 4 + - tab2.col1 DIV col0 FROM tab2
----
-4
-8
skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT - 4 + - tab2.col1 / col0 FROM tab2
----
-4
-8
query I rowsort
SELECT DISTINCT tab2.col2 * 5 + + tab2.col0 * col2 AS col0 FROM tab2
----
2158
3192
324
query I rowsort
SELECT + - col1 + + col1 * col1 * 20 + 72 AS col1 FROM tab0 AS cor0
----
147906
165601
188155
query I rowsort
SELECT DISTINCT ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6426
SELECT ALL - col0 + - ( col1 ) * CAST( + 41 + + cor0.col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1114
-1147
-1653
skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL - col0 + - ( col1 ) * CAST ( + 41 + + cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1114
-1147
-1653
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 + cor0.col0 * - col2 col1 FROM tab0 AS cor0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT ALL + - col2 DIV - col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + - col2 / - col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - - col1 * ( col1 ) - - col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT col1 + - cor0.col1 DIV 64 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6430
SELECT col1 + - cor0.col1 / 64 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 97 col0 FROM tab2 AS cor0
----
679
7566
7663
onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT + + col1 DIV cor0.col0 - - col2 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-6432
SELECT + + col1 / cor0.col0 - - col2 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT DISTINCT col1 * ( + col2 ) + + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - - col1 + 7 * col2 AS col1 FROM tab0 AS cor0
----
104
317
665
query I rowsort
SELECT ALL + + col2 * ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + cor0.col1 - - ( col0 ) * + col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-6437
SELECT ALL cor0.col2 + - ( + col2 ) DIV col0 FROM tab2 cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL cor0.col2 + - ( + col2 ) / col0 FROM tab2 cor0
----
24
26
38
query I rowsort
SELECT col1 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + + col1 + + 41 FROM tab2 AS cor0
----
100
58
72
query I rowsort
SELECT - + col1 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col2 - + col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - + col0 - - col1 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + col0 * col2 + 98 * col0 AS col0 FROM tab2 AS cor0
----
10744
875
9672
query I rowsort
SELECT ALL col1 * + 89 - - 54 AS col1 FROM tab2 cor0
----
1567
2813
5305
query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) + + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL col2 - col1 * + 17 AS col0 FROM tab1 AS cor0
----
-113
-125
-388
query I rowsort
SELECT - - col2 * ( - 18 ) + col1 * + col2 AS col2 FROM tab2 AS cor0
----
-38
1066
351
query I rowsort
SELECT col2 + - ( cor0.col1 + col0 ) AS col0 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT + 77 FROM tab2, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b
query I rowsort
SELECT ALL + 90 FROM tab0, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - col0 + 64 AS col0 FROM tab0 AS cor0
----
-25
29
40
query I rowsort
SELECT - col2 + - tab2.col0 + 14 AS col1 FROM tab2
----
-103
-20
-90
query I rowsort
SELECT DISTINCT - ( + col0 ) * ( col1 ) - - col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL col0 + - col0 * + col0 AS col0 FROM tab0 cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL 37 * col1 + + col2 - col0 FROM tab0
----
3191
3360
3555
onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT DISTINCT col1 - + col2 DIV 20 AS col0 FROM tab0
----
85
87
97
skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT col1 - + col2 / 20 AS col0 FROM tab0
----
85
87
97
query I rowsort
SELECT - 43 + col1 AS col1 FROM tab2
----
-12
-26
16
query I rowsort
SELECT DISTINCT - 97 FROM tab2 cor0
----
-97
query I rowsort
SELECT DISTINCT - - col1 + col1 * + cor0.col1 * 37 AS col1 FROM tab1 AS cor0
----
25038
3710
6266
query I rowsort
SELECT ALL - 4 * - col1 AS col1 FROM tab1 AS cor0
----
104
40
52
query I rowsort
SELECT col1 * ( cor0.col2 ) + - col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT 98 * + col1 * 63 AS col2 FROM tab0 cor0
----
530964
561834
598878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col1 col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT col2 DIV - col1 AS col2 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6464
SELECT col2 / - col1 AS col2 FROM tab2
----
-2
0
0
query I rowsort
SELECT - col2 * + 73 FROM tab2
----
-1898
-1971
-2774
query I rowsort
SELECT - 46 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
query I rowsort
SELECT + + 78 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to d8a9a05ef9648304bbab29d7e33ea339
onlyif mysql # use DIV operator for integer division
query I rowsort label-6468
SELECT ALL 8 DIV - col0 AS col2 FROM tab1
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL 8 / - col0 AS col2 FROM tab1
----
-2
0
0
query I rowsort
SELECT DISTINCT ( 61 ) FROM tab0
----
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * cor0.col0 col1 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL 56 * - col2 + - col0 AS col2 FROM tab2 cor0
----
-1519
-1534
-2207
query I rowsort
SELECT DISTINCT - + col2 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - 39 + col0 FROM tab0 AS cor0
----
-15
-4
50
query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT ALL - 99 + + 32 * col0 FROM tab0 cor0
----
1021
2749
669
onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT col2 + col2 DIV col0 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-6476
SELECT col2 + col2 / col0 FROM tab1 AS cor0
----
57
72
97
query I rowsort
SELECT - cor0.col0 * + col0 + 64 FROM tab0 AS cor0
----
-1161
-512
-7857
query I rowsort
SELECT ALL + 86 + + col0 FROM tab2 AS cor0
----
164
165
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6479
SELECT DISTINCT + 57 DIV - col2 + cor0.col1 * - 64 FROM tab0 AS cor0
----
-5505
-5824
-6265
skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT + 57 / - col2 + cor0.col1 * - 64 FROM tab0 AS cor0
----
-5505
-5824
-6265
query I rowsort
SELECT ALL - 39 * - col0 AS col2 FROM tab1 AS cor0
----
117
2496
3120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6481
SELECT ALL 60 + + col0 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL 60 + + col0 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col2 + - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6483
SELECT - col1 * col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6483
SELECT - col1 * col0 / col1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - 28 FROM tab0, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT ( - col1 ) * - col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT - col0 + col2 + col2 FROM tab1 AS cor0
----
105
112
50
query I rowsort
SELECT - 19 * col1 + - col2 + + col1 FROM tab2 AS cor0
----
-1088
-344
-585
query I rowsort
SELECT DISTINCT - 29 * + ( col0 ) + + col2 - + col0 AS col1 FROM tab1
----
-1863
-2304
-36
query I rowsort
SELECT - ( + tab1.col0 ) * - tab1.col2 * - 8 + 4 AS col0 FROM tab1
----
-1292
-29180
-61436
query I rowsort
SELECT DISTINCT - col2 * - col2 + + 53 FROM tab2
----
1497
729
782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * col0 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 69 + col1 AS col2 FROM tab1 AS cor0
----
79
82
95
query I rowsort
SELECT ALL col2 * - ( tab0.col1 ) AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6495
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 52 * 86 + - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ed0c99f5901168cbf045847349175860
query I rowsort
SELECT + 33 * - 6 + cor0.col2 FROM tab1 AS cor0
----
-102
-141
-144
query I rowsort
SELECT col2 + ( col0 * + 64 ) AS col2 FROM tab1 cor0
----
246
4153
5216
query I rowsort
SELECT ALL + col0 * - ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col1 + - cor0.col0 * - cor0.col1 AS col0 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT - 32 + + 47 AS col1 FROM tab1 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT 17 + col2 AS col0 FROM tab1 AS cor0
----
113
71
74
query I rowsort
SELECT 9 - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-180
-2019
-2993
query I rowsort
SELECT ALL + col2 * col0 + col2 AS col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT + col1 * ( col0 ) * 64 AS col0 FROM tab0 cor0
----
132096
217280
518336
query I rowsort
SELECT ALL + 8 AS col0 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT - col1 * col0 * col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT + ( 16 ) FROM tab2, tab0 AS cor0
----
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 col2 FROM tab1 AS cor0
----
53
query I rowsort
SELECT DISTINCT + + 42 + 1 FROM tab0 cor0
----
43
query I rowsort
SELECT ALL - cor0.col1 + + col1 + + cor0.col0 * col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6512
SELECT - CAST( NULL AS SIGNED ) * - col2 + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6512
SELECT - CAST ( NULL AS INTEGER ) * - col2 + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * tab0.col2 + tab0.col2 * - ( - col0 + + tab0.col0 ) FROM tab0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 + tab1.col2 * ( 61 ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5d97a1e4023ed77edba0006dfc8eeced
query I rowsort
SELECT ALL + 39 - cor0.col2 FROM tab2 AS cor0
----
1
12
13
query I rowsort
SELECT DISTINCT + ( - col2 ) + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 46 * - cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
1518
3772
46
query I rowsort
SELECT DISTINCT col0 * col2 - col2 * col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT - ( tab0.col0 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6521
SELECT DISTINCT col0 + + col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT col0 + + col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
25
36
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6522
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * - col1 + col2 * - cor0.col0 * + col1 AS col0 FROM tab1 cor0
----
-2808
-35910
-98592
onlyif mysql # use DIV operator for integer division
query I rowsort label-6524
SELECT DISTINCT + col0 DIV + col0 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT + col0 / + col0 FROM tab0 cor0
----
1
query I rowsort
SELECT - + cor0.col0 + col1 + ( 79 ) FROM tab2 AS cor0
----
103
17
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - tab0.col1 * - col1 col1 FROM tab0
----
-7429
-8363
-9410
query I rowsort
SELECT cor0.col0 * + col1 + ( ( - col2 ) ) AS col0 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT ALL - col1 * col0 * col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6529
SELECT DISTINCT - col1 + cor0.col2 * + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT - col1 + cor0.col2 * + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col0 + cor0.col1 * 30 - - cor0.col0 FROM tab2 AS cor0
----
1926
668
944
query I rowsort
SELECT - - col2 * - col2 + ( col2 ) AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6532
SELECT ALL + col0 * col0 / + CAST( NULL AS SIGNED ) - col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL + col0 * col0 / + CAST ( NULL AS INTEGER ) - col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6533
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 7 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 7 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT ALL 4 * tab0.col1 * col2 + + col2 FROM tab0
----
11385
29930
389
query I rowsort
SELECT - ( - tab1.col0 ) + + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT - 25 * ( col2 * ( col2 ) ) + col0 * + col1 + col2 FROM tab0
----
-159919
-25128
3371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6537
SELECT + CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6537
SELECT + CAST ( NULL AS REAL ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6539
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col2 - tab2.col2 * col0 AS col2 FROM tab2
----
-2356
-494
648
skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col2 - tab2.col2 * col0 AS col2 FROM tab2
----
-2356
-494
648
query I rowsort
SELECT DISTINCT cor0.col1 + 10 FROM tab1 cor0
----
20
23
36
query I rowsort
SELECT DISTINCT + + col2 * - 57 + col1 AS col1 FROM tab1 AS cor0
----
-3052
-3239
-5459
query I rowsort
SELECT ALL col1 * + col2 + 3 AS col2 FROM tab0 cor0
----
100
2841
7465
query I rowsort
SELECT DISTINCT col1 * - 75 AS col0 FROM tab1 AS cor0
----
-1950
-750
-975
onlyif mysql # use DIV operator for integer division
query I rowsort label-6544
SELECT - + col0 DIV + 79 AS col0 FROM tab2 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6544
SELECT - + col0 / + 79 AS col0 FROM tab2 cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6545
SELECT DISTINCT - col1 DIV 17 FROM tab0 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT - col1 / 17 FROM tab0 AS cor0
----
-5
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + 48 + - tab1.col2 * + col0 FROM tab1
----
-114
-3600
-7632
query I rowsort
SELECT DISTINCT tab0.col1 * col2 + col1 + col1 AS col2 FROM tab0
----
291
3010
7644
query I rowsort
SELECT + col1 - col0 * col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT tab1.col0 * col0 + - col1 FROM tab1
----
-17
4086
6387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6551
SELECT ALL + tab0.col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + tab0.col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6553
SELECT cor0.col1 + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6553
SELECT cor0.col1 + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6554
SELECT - col1 * 86 + + col2 DIV tab0.col1 AS col2 FROM tab0
----
-7396
-7826
-8342
skipif mysql # not compatible
query I rowsort label-6554
SELECT - col1 * 86 + + col2 / tab0.col1 AS col2 FROM tab0
----
-7396
-7826
-8342
onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT DISTINCT + 40 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT + 40 / + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 * - col2 + + 44 AS col0 FROM tab2 AS cor0
----
-1490
-602
-793
query I rowsort
SELECT ALL + - col2 * - col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6558
SELECT ALL col0 + + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 * col2 FROM tab2 cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT ALL - - col2 * - cor0.col0 DIV col0 col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL - - col2 * - cor0.col0 / col0 col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col1 * ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6562
SELECT + col0 DIV + 90 - + col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6562
SELECT + col0 / + 90 - + col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - - col2 * - 84 FROM tab0 AS cor0
----
-2772
-6888
-84
query I rowsort
SELECT col2 * - ( + ( col0 ) ) - - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL + cor0.col0 + ( ( col2 ) ) AS col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - col0 + + ( 49 ) AS col2 FROM tab1 AS cor0
----
113
129
52
query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + + col0 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - + col0 + col1 * - col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-6570
SELECT ALL - cor0.col2 DIV col0 col2 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL - cor0.col2 / col0 col2 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT + + col1 DIV ( 86 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6571
SELECT + + col1 / ( 86 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6572
SELECT - col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6572
SELECT - col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT DISTINCT col2 * col1 - - tab2.col1 DIV + col1 FROM tab2
----
1535
647
838
skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT col2 * col1 - - tab2.col1 / + col1 FROM tab2
----
1535
647
838
query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN + col1 AND NULL
----
query I rowsort
SELECT + col2 + + col2 * col0 AS col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL col2 + - col2 * tab2.col1 AS col2 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT ALL col0 DIV - col2 - col0 * - col1 AS col2 FROM tab1
----
1040
639
78
skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL col0 / - col2 - col0 * - col1 AS col2 FROM tab1
----
1040
639
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT - col2 * col1 FROM tab1 WHERE col1 + + col1 / col2 NOT IN ( - col2 * col1 )
----
-1248
-1404
-570
query I rowsort
SELECT tab1.col0 * col0 + - col1 * - col2 + - col0 AS col2 FROM tab1
----
1410
4602
7568
query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT IN ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col2 FROM tab0 WHERE NOT col0 IN ( - col1 - - col2 / - col1 )
----
35
7298
792
query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL BETWEEN col0 AND NULL
----
query I rowsort
SELECT ALL - - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + tab0.col2 + - col2 * tab0.col0 AS col0 FROM tab0
----
-34
-7216
-759
query III rowsort
SELECT ALL * FROM tab2 WHERE col0 < NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) <= NULL
----
query I rowsort
SELECT col2 * col1 * col0 - tab0.col2 FROM tab0
----
3394
664036
68079
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < col1
----
query I rowsort
SELECT col0 * - tab0.col1 * col2 AS col0 FROM tab0 WHERE NOT ( - col1 ) IN ( col1 + - col1 )
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6591
SELECT DISTINCT col1 + - col2 DIV - col0 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT col1 + - col2 / - col0 FROM tab1
----
10
14
44
query I rowsort
SELECT + col0 + col0 * col1 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT + - 58 DIV col1 + col0 * - ( - col2 ) FROM tab2 cor0
----
188
2028
2999
skipif mysql # not compatible
query I rowsort label-6593
SELECT + - 58 / col1 + col0 * - ( - col2 ) FROM tab2 cor0
----
188
2028
2999
query I rowsort
SELECT - - 57 AS col0 FROM tab1 AS cor0
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT col1 + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6595
SELECT col1 + col2 / col2 AS col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT - col0 * - col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT ( 53 ) DIV - tab0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-6597
SELECT ( 53 ) / - tab0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - ( - 21 ) AS col2 FROM tab0
----
21
21
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6599
SELECT + 81 + col2 + + col2 * - CAST( - 76 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4239
4470
7473
skipif mysql # not compatible
query I rowsort label-6599
SELECT + 81 + col2 + + col2 * - CAST ( - 76 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4239
4470
7473
query I rowsort
SELECT DISTINCT - + col2 * + ( - cor0.col2 ) - - ( 35 + - col0 ) * + col1 FROM tab2 AS cor0
----
-1861
1597
696
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col0 AS REAL ) - col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT col1 + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + + col2 * col0 * + 86 - + col1 * - col0 AS col0 FROM tab2 cor0
----
16471
179010
259515
onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT + - col0 * - ( cor0.col1 ) - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
1039
60
640
skipif mysql # not compatible
query I rowsort label-6604
SELECT + - col0 * - ( cor0.col1 ) - col2 / col0 AS col1 FROM tab1 AS cor0
----
1039
60
640
query I rowsort
SELECT ALL - + 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6606
SELECT ALL col0 DIV col1 - col0 col1 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL col0 / col1 - col0 col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + - col1 + 60 AS col0 FROM tab0 AS cor0
----
-26
-31
-37
query I rowsort
SELECT col1 * + ( ( col1 ) + 26 ) AS col2 FROM tab1 AS cor0
----
1352
360
507
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT + + 27 AS col2 FROM tab1 AS cor0
----
27
27
27
query I rowsort
SELECT - 93 + 6 AS col2 FROM tab1 AS cor0
----
-87
-87
-87
query I rowsort
SELECT DISTINCT - + 31 AS col1 FROM tab2, tab1, tab2 AS cor0, tab0
----
-31
query I rowsort
SELECT ALL col1 * 10 FROM tab1
----
100
130
260
query I rowsort
SELECT - cor0.col1 * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col0 + + col0 * col0 AS col2 FROM tab1
----
12
4160
6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + + ( col2 ) * col2 col1 FROM tab0 AS cor0
----
1226
14645
1665
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * - col2 col0 FROM tab1 AS cor0
----
-2376
-2508
-4224
query I rowsort
SELECT DISTINCT 47 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1201
-1357
-523
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col0 col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + 32 * + col1 AS col2 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT - - 84 + col1 FROM tab0 AS cor0
----
170
175
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT col2 * + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6624
SELECT col2 * + col0 / col0 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + + col0 * 92 AS col0 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT ALL - col2 * + 33 FROM tab1 AS cor0
----
-1782
-1881
-3168
onlyif mysql # use DIV operator for integer division
query I rowsort label-6627
SELECT DISTINCT - col2 DIV 31 FROM tab1 AS cor0
----
-1
-3
skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - col2 / 31 FROM tab1 AS cor0
----
-1
-3
query I rowsort
SELECT + col0 * - ( - 47 ) AS col2 FROM tab0 AS cor0
----
1128
1645
4183
query I rowsort
SELECT col1 + 51 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
186058
391693
8288
query I rowsort
SELECT DISTINCT - col1 * - ( cor0.col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + cor0.col0 + 94 AS col1 FROM tab1 cor0
----
158
174
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + ( - 34 ) col0 FROM tab1 cor0
----
-114
-37
-98
query I rowsort
SELECT ALL - col0 * ( - cor0.col1 ) + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - - col0 * 32 FROM tab1 AS cor0
----
2048
2560
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col2 * col0 col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT cor0.col1 + col0 * col1 * - col2 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT - cor0.col2 + 66 FROM tab0 cor0
----
-16
33
65
query I rowsort
SELECT 91 + - 2 * + col2 FROM tab2 AS cor0
----
15
37
39
query I rowsort
SELECT ALL + + col0 * 91 + - col1 AS col2 FROM tab0 AS cor0
----
2098
3088
8008
query I rowsort
SELECT - 89 * + col1 + col1 FROM tab0 cor0
----
-7568
-8008
-8536
query I rowsort
SELECT DISTINCT + col2 * col0 + + col0 * 76 + col0 FROM tab2 cor0
----
728
8034
9085
query I rowsort
SELECT DISTINCT - + ( + 39 ) FROM tab2 cor0
----
-39
query I rowsort
SELECT - col0 * 76 + col0 FROM tab1 AS cor0
----
-225
-4800
-6000
query I rowsort
SELECT + col1 + + 66 AS col1 FROM tab0 AS cor0
----
152
157
163
query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + col1 * col2 * + col0 + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
3430
671416
68904
query I rowsort
SELECT col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6649
SELECT ALL + CAST( NULL AS DECIMAL ) + + 29 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL + CAST ( NULL AS REAL ) + + 29 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 - ( col0 ) FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT + ( - 61 ) * col2 + col2 * 86 AS col0 FROM tab0 cor0
----
2050
25
825
query I rowsort
SELECT ALL + 6 - + col1 FROM tab0 AS cor0
----
-80
-85
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT - col0 + ( - col1 ) DIV - cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-6653
SELECT - col0 + ( - col1 ) / - cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT ALL + ( 34 + col2 * - col2 ) AS col0 FROM tab2
----
-1410
-642
-695
query I rowsort
SELECT ALL - - col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT 74 + + 1 AS col1 FROM tab0
----
75
75
75
skipif mysql # not compatible
query I rowsort
SELECT - col2 * + CAST ( + col0 AS REAL ) + - col2 FROM tab2
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6658
SELECT + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6658
SELECT + col2 / + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT tab0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * + col1 col2 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT ( col2 ) * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT cor0.col2 * - 81 FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT DISTINCT - col2 * col1 * cor0.col0 FROM tab2 cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6664
SELECT - 17 DIV cor0.col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6664
SELECT - 17 / cor0.col1 FROM tab2 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6665
SELECT + CAST( + col1 AS SIGNED ) * + cor0.col1 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-6665
SELECT + CAST ( + col1 AS INTEGER ) * + cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - 69 + + 0 - + cor0.col2 FROM tab1 AS cor0
----
-123
-126
-165
query I rowsort
SELECT ALL + ( - 38 ) * col2 FROM tab1 AS cor0
----
-2052
-2166
-3648
query I rowsort
SELECT + ( - ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col2 + - col0 * 17 + col1 AS col0 FROM tab1
----
-1135
-1443
-79
query I rowsort
SELECT 73 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT DISTINCT + + 82 * - col1 FROM tab2 AS cor0
----
-1394
-2542
-4838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col0 col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + - ( - col1 ) * + 78 - col0 FROM tab0 AS cor0
----
6684
7009
7531
onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT - ( col2 ) DIV - ( + cor0.col0 ) + col0 AS col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-6674
SELECT - ( col2 ) / - ( + cor0.col0 ) + col0 AS col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT ALL + 45 + - col2 AS col0 FROM tab0 AS cor0
----
-37
12
44
query I rowsort
SELECT ALL 28 + col1 AS col2 FROM tab2 AS cor0
----
45
59
87
query I rowsort
SELECT DISTINCT - + 16 FROM tab1 AS cor0
----
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-6678
SELECT ( cor0.col1 ) DIV - col2 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-6678
SELECT ( cor0.col1 ) / - col2 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT ALL - cor0.col2 * - col1 + - ( 74 ) FROM tab1 cor0
----
1174
1330
496
query I rowsort
SELECT ALL - - col0 * - col1 + + ( - 87 ) FROM tab1 cor0
----
-1127
-165
-727
query I rowsort
SELECT ALL - - col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-6682
SELECT ALL - - col2 DIV 86 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL - - col2 / 86 AS col1 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6683
SELECT ALL - CAST( NULL AS SIGNED ) + cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - CAST ( NULL AS INTEGER ) + cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6684
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6684
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT + - cor0.col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-6685
SELECT + - cor0.col0 / col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT - - col1 + - col1 * 75 * + col2 FROM tab0 cor0
----
-212764
-559559
-7178
query I rowsort
SELECT col2 * col0 * 25 AS col2 FROM tab0 AS cor0
----
182450
19800
875
query I rowsort
SELECT DISTINCT col1 * + 8 + + col2 FROM tab1 AS cor0
----
137
200
262
query I rowsort
SELECT - col1 * - 56 + - 35 FROM tab1 AS cor0
----
1421
525
693
query I rowsort
SELECT DISTINCT col0 * + ( 5 ) AS col2 FROM tab2
----
35
390
395
query I rowsort
SELECT col2 + - 37 AS col2 FROM tab1 AS cor0
----
17
20
59
query I rowsort
SELECT + + col2 * col1 * 61 + - col2 AS col2 FROM tab0 cor0
----
173085
455100
5916
query I rowsort
SELECT 73 + - ( cor0.col2 ) * col1 + - 82 AS col0 FROM tab0 AS cor0
----
-106
-2847
-7471
query I rowsort
SELECT - cor0.col0 - - tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 346ecce5023d3440fcfb161aa071fa19
query I rowsort
SELECT + cor0.col1 - - col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + 25 FROM tab0 AS cor0
----
-61
-66
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col0 col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT + 8 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6698
SELECT + 8 / col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6699
SELECT DISTINCT - ( - col2 ) + - col0 DIV + col0 AS col0 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT - ( - col2 ) + - col0 / + col0 AS col0 FROM tab2
----
25
26
37
query I rowsort
SELECT DISTINCT + + 5 FROM tab2 cor0
----
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6701
SELECT + + CAST( NULL AS SIGNED ) * + col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6701
SELECT + + CAST ( NULL AS INTEGER ) * + col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT + 10 DIV col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6702
SELECT + 10 / col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT - + col0 * - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6703
SELECT - + col0 * - col2 / + col2 AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6704
SELECT col2 * 34 + col2 * + CAST( col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
2508
3240
4512
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6704
SELECT col2 * 34 + col2 * + CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
2508
3240
4512
onlyif mysql # use DIV operator for integer division
query I rowsort label-6705
SELECT DISTINCT 36 DIV col0 FROM tab1 AS cor0
----
0
12
skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT 36 / col0 FROM tab1 AS cor0
----
0
12
query I rowsort
SELECT DISTINCT col1 * - col0 + col1 * 26 FROM tab1 AS cor0
----
-380
-702
598
query I rowsort
SELECT ALL - + 83 * + col2 FROM tab1 cor0
----
-4482
-4731
-7968
query I rowsort
SELECT ALL + + ( 37 ) FROM tab1 cor0
----
37
37
37
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 * - col2 + ( - col2 ) FROM tab1 AS cor0
----
16128
36450
5643
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 * 30 + col2 * + col0 * - col2 col0 FROM tab2 AS cor0
----
-112426
-3453
-51078
query I rowsort
SELECT 95 * col1 + col1 FROM tab1 cor0
----
1248
2496
960
query I rowsort
SELECT DISTINCT col0 * cor0.col1 + 23 * 9 AS col0 FROM tab0 AS cor0
----
2271
3602
8306
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 - + col0 col2 FROM tab2 AS cor0
----
-122
-123
-51
query I rowsort
SELECT DISTINCT col2 * col2 + ( col1 ) * + col1 FROM tab0 cor0
----
15005
8485
9410
query I rowsort
SELECT ALL - col1 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + 75 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT ALL - 39 + col0 * col2 FROM tab0 AS cor0
----
-4
7259
753
query I rowsort
SELECT DISTINCT - + col2 + + col0 FROM tab0 cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col2 FROM tab2
----
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6720
SELECT + col1 * 16 - - col0 * CAST( + col0 + + col0 AS SIGNED ) FROM tab2
----
12754
13112
594
skipif mysql # not compatible
query I rowsort label-6720
SELECT + col1 * 16 - - col0 * CAST ( + col0 + + col0 AS INTEGER ) FROM tab2
----
12754
13112
594
query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT tab0.col1 * - col2 * + ( col0 * tab0.col1 ) FROM tab0
----
-329315
-5857632
-60434738
query I rowsort
SELECT DISTINCT tab0.col0 * ( col2 ) * - col1 AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT col1 - - 20 FROM tab0
----
106
111
117
query I rowsort
SELECT DISTINCT + col0 * col2 + 45 FROM tab0
----
7343
80
837
query I rowsort
SELECT - col1 - - 38 FROM tab1
----
12
25
28
query I rowsort
SELECT - col2 * cor0.col0 + + ( col2 ) FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-6728
SELECT col1 + col1 DIV - 66 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6728
SELECT col1 + col1 / - 66 FROM tab1
----
10
13
26
query I rowsort
SELECT col2 * col1 + col2 * col2 FROM tab1
----
10464
3819
4320
query I rowsort
SELECT - col0 * 13 FROM tab0 AS cor0
----
-1157
-312
-455
query I rowsort
SELECT ALL col0 * - tab0.col1 * + 64 + + col0 + - col2 AS col1 FROM tab0
----
-132105
-217246
-518329
query I rowsort
SELECT DISTINCT col2 * tab1.col1 + col1 + - col0 AS col2 FROM tab1
----
1181
1427
516
query I rowsort
SELECT - 59 + col2 FROM tab1
----
-2
-5
37
query I rowsort
SELECT ALL 70 AS col2 FROM tab0 cor0
----
70
70
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6735
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 73 col0 FROM tab0 AS cor0
----
73
query I rowsort
SELECT ALL - - 38 * col1 FROM tab0 cor0
----
3268
3458
3686
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * + cor0.col2 - + 78 AS col2 FROM tab1 AS cor0
----
2838
3171
9138
query I rowsort
SELECT DISTINCT col0 + col0 * + col2 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT ALL + 66 * cor0.col0 FROM tab2 cor0
----
462
5148
5214
query I rowsort
SELECT - 8 * cor0.col0 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 480ac444a7e5e585a9eba34b0b2280c5
query I rowsort
SELECT ALL 87 * - col1 + - col0 + - 41 * + col1 FROM tab0
----
-11032
-11737
-12451
query I rowsort
SELECT ALL - tab2.col2 + col0 - + col1 FROM tab2
----
-51
-7
24
query I rowsort
SELECT ALL - col1 - col0 * ( - col1 ) FROM tab0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT 19 - col0 AS col0 FROM tab2
----
-59
-60
12
query I rowsort
SELECT ALL col0 * col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6747
SELECT + - ( - cor0.col1 ) + + CAST( NULL AS SIGNED ) + col1 * cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6747
SELECT + - ( - cor0.col1 ) + + CAST ( NULL AS INTEGER ) + col1 * cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 33 - - col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1411
-643
-696
onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT DISTINCT 39 DIV cor0.col1 FROM tab1 cor0
----
1
3
skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT 39 / cor0.col1 FROM tab1 cor0
----
1
3
query I rowsort
SELECT - 67 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT DISTINCT - col1 + + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL 39 + col0 FROM tab0 AS cor0
----
128
63
74
query I rowsort
SELECT + + 54 * - col1 + 99 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-12277
-5236
-7383
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6754
SELECT DISTINCT col2 * + CAST( + col1 AS SIGNED ) * + cor0.col1 + ( col1 + col0 ) * col2 FROM tab0 AS cor0
----
247698
693802
9541
skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT col2 * + CAST ( + col1 AS INTEGER ) * + cor0.col1 + ( col1 + col0 ) * col2 FROM tab0 AS cor0
----
247698
693802
9541
onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT ALL - + col1 DIV 99 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - + col1 / 99 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6756
SELECT DISTINCT - + col1 * - CAST( NULL AS SIGNED ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT - + col1 * - CAST ( NULL AS INTEGER ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6757
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6757
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 AS col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - cor0.col0 + 70 AS col2 FROM tab0 cor0
----
-19
35
46
query I rowsort
SELECT + col0 * 53 FROM tab2 cor0
----
371
4134
4187
query I rowsort
SELECT DISTINCT + col1 * ( ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL cor0.col2 + 92 + + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1416
-516
-718
query I rowsort
SELECT - col1 * col2 + col0 + + col2 FROM tab1 AS cor0
----
-1072
-1347
-449
query I rowsort
SELECT + col0 - ( - col1 ) * + col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6765
SELECT DISTINCT + - col1 + + CAST( NULL AS SIGNED ) * ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT + - col1 + + CAST ( NULL AS INTEGER ) * ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6766
SELECT col1 + CAST( - col2 AS SIGNED ) + col1 * col2 FROM tab0 AS cor0
----
193
2891
7471
skipif mysql # not compatible
query I rowsort label-6766
SELECT col1 + CAST ( - col2 AS INTEGER ) + col1 * col2 FROM tab0 AS cor0
----
193
2891
7471
query I rowsort
SELECT ALL - - col0 + - col2 * 55 FROM tab1 AS cor0
----
-2967
-3071
-5200
query I rowsort
SELECT DISTINCT - + col0 * - 4 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT DISTINCT + + col1 + + 71 AS col2 FROM tab0 AS cor0
----
157
162
168
query I rowsort
SELECT - col2 - + 92 FROM tab2 AS cor0
----
-118
-119
-130
query I rowsort
SELECT col2 * col0 + + col2 + - col0 AS col0 FROM tab2 cor0
----
1976
209
2961
query I rowsort
SELECT ALL + col2 * col0 * ( cor0.col1 ) FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + - col1 - - col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
query I rowsort
SELECT DISTINCT - 11 * col2 FROM tab1 AS cor0
----
-1056
-594
-627
query I rowsort
SELECT - + 79 * cor0.col0 + col1 FROM tab2 AS cor0
----
-522
-6103
-6224
query I rowsort
SELECT DISTINCT + 13 - col2 AS col2 FROM tab2 AS cor0
----
-13
-14
-25
query I rowsort
SELECT + col1 * + col1 + col0 * col0 FROM tab1 cor0
----
4196
6569
685
query I rowsort
SELECT ALL + col0 * + col1 + col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT - 7 * + tab0.col1 FROM tab0
----
-602
-637
-679
query I rowsort
SELECT - col1 * + 8 + 79 * + col0 FROM tab2 AS cor0
----
305
5690
6105
query I rowsort
SELECT ALL 79 AS col0 FROM tab1
----
79
79
79
query I rowsort
SELECT DISTINCT - tab1.col1 * + 64 FROM tab1, tab1 AS cor0
----
-1664
-640
-832
onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT col1 DIV - col1 AS col1 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6784
SELECT col1 / - col1 AS col1 FROM tab2 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 + + col2 col0 FROM tab1 cor0
----
13
16
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 - col2 col0 FROM tab0
----
1
33
82
query I rowsort
SELECT + col1 - + col0 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT 37 - col2 AS col1 FROM tab0 AS cor0
----
-45
36
4
query I rowsort
SELECT - tab2.col1 + - 71 * col1 FROM tab2
----
-1224
-2232
-4248
query I rowsort
SELECT + col0 + - ( 87 ) AS col0 FROM tab0
----
-52
-63
2
query I rowsort
SELECT ALL col2 * - 78 FROM tab1
----
-4212
-4446
-7488
query I rowsort
SELECT ALL - 63 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT DISTINCT - 92 * - tab0.col2 AS col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
3036
7544
92
query I rowsort
SELECT DISTINCT ( col0 * col1 ) + col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL - 30 * - 22 + col0 * - cor0.col2 FROM tab0 AS cor0
----
-132
-6638
625
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6796
SELECT CAST( NULL AS SIGNED ) * + col2 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-6796
SELECT CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT DISTINCT + col1 + - col1 DIV cor0.col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + col1 + - col1 / cor0.col1 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6798
SELECT ALL CAST( col1 AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL CAST ( col1 AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT cor0.col2 - + cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 + cor0.col0 * col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT + col0 + + col1 * col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT + + 18 * - col1 - cor0.col0 AS col0 FROM tab0 cor0
----
-1572
-1727
-1781
query I rowsort
SELECT DISTINCT + 64 + - col2 * col1 FROM tab0 AS cor0
----
-2774
-33
-7398
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * + cor0.col2 col0 FROM tab1 cor0
----
157464
185193
884736
onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT ALL - - ( + col1 ) - cor0.col1 DIV cor0.col1 AS col1 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL - - ( + col1 ) - cor0.col1 / cor0.col1 AS col1 FROM tab1 cor0
----
12
25
9
query I rowsort
SELECT - - col1 * col1 + col0 * ( + col1 ) FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT DISTINCT 60 * + 91 AS col1 FROM tab0
----
5460
query I rowsort
SELECT + tab1.col2 * - 76 FROM tab1
----
-4104
-4332
-7296
query I rowsort
SELECT DISTINCT col2 * - 74 AS col2 FROM tab0
----
-2442
-6068
-74
query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab2 AS cor0
----
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT ALL - 16 + + cor0.col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-16
-16
-16
skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - 16 + + cor0.col0 / col1 AS col2 FROM tab0 AS cor0
----
-16
-16
-16
query I rowsort
SELECT - 11 * col1 FROM tab0
----
-1001
-1067
-946
query I rowsort
SELECT - 14 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT + 56 AS col1 FROM tab1
----
56
56
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT DISTINCT 13 * col1 - col0 DIV col1 FROM tab2
----
217
403
766
skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT 13 * col1 - col0 / col1 FROM tab2
----
217
403
766
query I rowsort
SELECT + col0 + col1 * 2 + 78 FROM tab0 AS cor0
----
274
307
349
query I rowsort
SELECT 1 * - col1 + 55 FROM tab0 AS cor0
----
-31
-36
-42
query I rowsort
SELECT - ( - col1 ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 77 + - col2 FROM tab2 AS cor0
----
39
50
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6820
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) * - 44 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) * - 44 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT - - col1 * ( col0 * + col0 ) AS col2 FROM tab2 cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT - + col2 DIV 74 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6823
SELECT - + col2 / 74 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + ( 17 ) + col1 FROM tab2 AS cor0
----
34
48
76
query I rowsort
SELECT 7 * - col1 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT - - ( - col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6827
SELECT DISTINCT - tab0.col2 + tab0.col2 * tab0.col0 + - col2 DIV col0 FROM tab0
----
34
7216
758
skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT - tab0.col2 + tab0.col2 * tab0.col0 + - col2 / col0 FROM tab0
----
34
7216
758
query I rowsort
SELECT - 33 * tab2.col2 AS col1 FROM tab2
----
-1254
-858
-891
query I rowsort
SELECT ALL - 40 + + col1 AS col2 FROM tab2
----
-23
-9
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col2 + - col1 col0 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT + 25 AS col2 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT col1 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-6833
SELECT - 62 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
20
skipif mysql # not compatible
query I rowsort label-6833
SELECT - 62 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-6834
SELECT ( - col0 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6834
SELECT ( - col0 ) / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT + col0 + col2 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT + - col0 * - col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
234
40960
83200
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 WHERE NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * col2 col1 FROM tab0
----
-3036
-7544
-92
query I rowsort
SELECT ALL 40 * + col0 AS col2 FROM tab0
----
1400
3560
960
query I rowsort
SELECT col2 + - col2 * col2 * col1 AS col0 FROM tab2 AS cor0
----
-22572
-24510
-39858
query I rowsort
SELECT DISTINCT + col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT DISTINCT col0 * col2 DIV - col1 AS col0 FROM tab0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT col0 * col2 / - col1 AS col0 FROM tab0
----
-80
-9
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT 99 * col2 DIV col2 - - col1 AS col2 FROM tab1 AS cor0
----
109
112
125
skipif mysql # not compatible
query I rowsort label-6843
SELECT 99 * col2 / col2 - - col1 AS col2 FROM tab1 AS cor0
----
109
112
125
query I rowsort
SELECT + 9 - col1 FROM tab0 AS cor0
----
-77
-82
-88
query I rowsort
SELECT + ( col0 ) * - col0 + col0 * + col2 FROM tab1 AS cor0
----
-448
1280
153
query I rowsort
SELECT + - 67 * + 12 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-69111
-73082
-77987
query I rowsort
SELECT + 0 - 19 AS col0 FROM tab0 AS cor0
----
-19
-19
-19
query I rowsort
SELECT + 87 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6849
SELECT ALL - CAST( col1 AS SIGNED ) * col1 + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL - CAST ( col1 AS INTEGER ) * col1 + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + 24 + cor0.col1 * col2 * + col2 AS col0 FROM tab0 AS cor0
----
121
611908
93678
query I rowsort
SELECT + col0 * - 84 AS col2 FROM tab1
----
-252
-5376
-6720
query I rowsort
SELECT 32 * - col2 FROM tab2
----
-1216
-832
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * - col0 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT 33 + col2 FROM tab0 AS cor0
----
115
34
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6855
SELECT + + ( cor0.col2 ) DIV cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-6855
SELECT + + ( cor0.col2 ) / cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
7
78
81
query I rowsort
SELECT DISTINCT col2 * col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + ( + col1 ) + + col1 * col0 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-6858
SELECT DISTINCT + col0 + - col1 * col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + col0 + - col1 * col0 / col1 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col2 * + col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - - 77 * col0 + col0 AS col1 FROM tab1 AS cor0
----
234
4992
6240
query I rowsort
SELECT ALL col2 - 6 * + col0 FROM tab2
----
-15
-436
-442
query I rowsort
SELECT col0 * tab1.col1 * col0 + col0 AS col2 FROM tab1
----
237
41024
83280
query I rowsort
SELECT ( col2 ) * - col1 * - col2 + col1 AS col1 FROM tab1
----
119821
32500
75842
query I rowsort
SELECT DISTINCT - col2 - + 61 * + col2 FROM tab2
----
-1612
-1674
-2356
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 AS col1 FROM tab1, tab0, tab2 AS cor0
----
-1343
-217
-4602
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - cor0.col0 + - cor0.col0 <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 col2 FROM tab0 cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT DISTINCT + col2 DIV - cor0.col0 - + col0 * col1 * col0 FROM tab2 cor0
----
-106097
-1522
-358956
skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + col2 / - cor0.col0 - + col0 * col1 * col0 FROM tab2 cor0
----
-106097
-1522
-358956
query I rowsort
SELECT col1 + + col1 * col2 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-6870
SELECT ALL col0 * col1 - + col0 DIV col0 FROM tab0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL col0 * col1 - + col0 / col0 FROM tab0
----
2063
3394
8098
query I rowsort
SELECT col2 * col2 * + col2 + col2 AS col1 FROM tab2
----
17602
19710
54910
onlyif mysql # use DIV operator for integer division
query I rowsort label-6872
SELECT + col2 DIV - col1 - - col1 * + col2 AS col1 FROM tab2
----
1534
644
837
skipif mysql # not compatible
query I rowsort label-6872
SELECT + col2 / - col1 - - col1 * + col2 AS col1 FROM tab2
----
1534
644
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT DISTINCT col1 * col2 DIV col0 - + col1 FROM tab0
----
-8
-95
32
skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT col1 * col2 / col0 - + col1 FROM tab0
----
-8
-95
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT - col1 + col0 DIV col1 + + col0 col0 FROM tab2
----
-24
20
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6874
SELECT - col1 + col0 / col1 + + col0 col0 FROM tab2
----
-24
20
66
query I rowsort
SELECT ALL - tab2.col1 * tab2.col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + tab2.col0 * tab2.col2 + - col2 + + col1 FROM tab2
----
193
2061
2981
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 + + col0 ) >= NULL
----
query I rowsort
SELECT ALL tab2.col2 * + col0 * col2 AS col1 FROM tab2
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-6879
SELECT - col2 + + col1 + col0 DIV col0 FROM tab2
----
-20
34
5
skipif mysql # not compatible
query I rowsort label-6879
SELECT - col2 + + col1 + col0 / col0 FROM tab2
----
-20
34
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 * + col2 - + col0 * col1 col0 FROM tab2
----
-115419
-5320
-57330
onlyif mysql # use DIV operator for integer division
query I rowsort label-6881
SELECT ALL + col0 + col2 * + col1 + col1 DIV - col0 AS col0 FROM tab1
----
1328
1399
634
skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + col0 + col2 * + col1 + col1 / - col0 AS col0 FROM tab1
----
1328
1399
634
query I rowsort
SELECT ALL col1 * col0 - - col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-3008
-6640
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * col2 col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL col2 * + tab2.col2 + col0 FROM tab2
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 WHERE col0 + - col0 * + col2 = col2
----
query I rowsort
SELECT col1 * - col2 * + col1 + + col2 * - col2 FROM tab1
----
-25440
-39420
-8949
query I rowsort
SELECT DISTINCT tab0.col0 * tab0.col2 - tab0.col1 AS col1 FROM tab0, tab0 cor0
----
-62
706
7207
query I rowsort
SELECT - col1 * col2 - + col0 * + col2 AS col0 FROM tab0
----
-132
-14760
-3630
query I rowsort
SELECT - col2 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-6890
SELECT DISTINCT col0 + col1 DIV cor0.col1 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT col0 + col1 / cor0.col1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL + col2 * col0 * - col2 AS col0 FROM tab0
----
-26136
-35
-598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab2.col1 * - col0 col2 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT ALL - col2 + + col0 * - col2 + col2 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * + col1 FROM tab1 AS cor0
----
1168
1401
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT cor0.col0 DIV col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-6896
SELECT cor0.col0 / col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT - col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT ALL col0 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL col0 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col2 + + col1 * col2 * - col1 AS col2 FROM tab2 cor0
----
-10944
-25920
-90480
query I rowsort
SELECT ALL + col1 + + cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 + + ( + col1 ) + - col2 FROM tab1 AS cor0
----
-2
-37
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6903
SELECT - - col2 * - col0 + col0 * - col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6903
SELECT - - col2 * - col0 + col0 * - col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * 26 + + col0 + - col2 AS col1 FROM tab2
----
-624
-722
-947
onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT + col2 DIV 92 - - col2 col0 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6905
SELECT + col2 / 92 - - col2 col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT col2 + + ( - ( - col1 ) ) * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6907
SELECT + CAST( NULL AS SIGNED ) * - 50 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6907
SELECT + CAST ( NULL AS INTEGER ) * - 50 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6908
SELECT DISTINCT + col2 * CAST( col0 AS SIGNED ) + tab1.col1 * 12 FROM tab1
----
3768
474
7836
skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT + col2 * CAST ( col0 AS INTEGER ) + tab1.col1 * 12 FROM tab1
----
3768
474
7836
query I rowsort
SELECT DISTINCT + col1 + - col0 * col2 AS col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT col1 + 79 AS col1 FROM tab0
----
165
170
176
onlyif mysql # use DIV operator for integer division
query I rowsort label-6911
SELECT tab1.col0 DIV - col2 AS col1 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6911
SELECT tab1.col0 / - col2 AS col1 FROM tab1
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 3 col0 FROM tab2
----
-114
-78
-81
query I rowsort
SELECT - col1 * - 78 FROM tab1
----
1014
2028
780
query I rowsort
SELECT - col0 * col1 + col0 + col1 AS col2 FROM tab1
----
-49
-566
-947
onlyif mysql # use DIV operator for integer division
query I rowsort label-6915
SELECT DISTINCT tab0.col1 + + 39 * + col0 + + col1 DIV ( + col1 ) FROM tab0
----
1023
1463
3563
skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT tab0.col1 + + 39 * + col0 + + col1 / ( + col1 ) FROM tab0
----
1023
1463
3563
query I rowsort
SELECT DISTINCT - 16 + - cor0.col2 FROM tab1 AS cor0
----
-112
-70
-73
query I rowsort
SELECT ALL + - col1 - - col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT DISTINCT - - col1 + col2 DIV ( 74 ) AS col2 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - - col1 + col2 / ( 74 ) AS col2 FROM tab0 AS cor0
----
86
92
97
query I rowsort
SELECT - 81 * - col0 AS col0 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT DISTINCT + col1 + + col1 + - 27 FROM tab1 AS cor0
----
-1
-7
25
query I rowsort
SELECT ALL + cor0.col2 * col0 * - ( + col0 ) FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT + - col2 * + col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 51 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 + col2 col0 FROM tab0
----
143
62
94
query I rowsort
SELECT ALL - ( 56 * col1 ) FROM tab1
----
-1456
-560
-728
query I rowsort
SELECT ( col0 ) + - col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 - + col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + 31 * - col0 AS col2 FROM tab0 AS cor0
----
-1085
-2759
-744
query I rowsort
SELECT col0 + col1 * col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT ( - col2 ) AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + - col0 * + 14 FROM tab2 cor0
----
-1092
-1106
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col0 FROM tab0
----
23
query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab1 cor0, tab0, tab0 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT 32 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT - col2 * + 94 FROM tab2 AS cor0
----
-2444
-2538
-3572
query I rowsort
SELECT - + col0 * - 83 AS col0 FROM tab0 AS cor0
----
1992
2905
7387
query I rowsort
SELECT 14 * + tab0.col0 AS col0 FROM tab0
----
1246
336
490
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT - ( - col0 ) * + col1 + tab1.col0 AS col0 FROM tab1
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6940
SELECT CAST( col1 AS SIGNED ) * col2 + col0 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort label-6940
SELECT CAST ( col1 AS INTEGER ) * col2 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - ( cor0.col1 ) * + col2 + + 31 AS col2 FROM tab2 AS cor0
----
-1503
-615
-806
query I rowsort
SELECT ALL - 43 FROM tab0 cor0
----
-43
-43
-43
query I rowsort
SELECT - + ( + cor0.col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL ( + col0 ) + - col1 * - col2 * + col0 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT + + 0 * + col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * - 11 FROM tab0
----
-1001
-1067
-946
query I rowsort
SELECT ALL ( 32 ) * col1 AS col1 FROM tab1
----
320
416
832
query I rowsort
SELECT - 40 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-37
24
40
query I rowsort
SELECT + cor0.col0 * - col0 + ( - cor0.col1 ) FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT - - 57 + cor0.col2 FROM tab1 AS cor0
----
111
114
153
query I rowsort
SELECT - ( + col1 ) * ( + col1 ) + col1 + + col2 AS col2 FROM tab0 AS cor0
----
-7277
-8108
-9311
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL 96 + + col0 * col1 FROM tab1 AS cor0
----
1136
174
736
query I rowsort
SELECT + col1 + col0 + col1 * - ( + 37 ) AS col2 FROM tab1
----
-296
-388
-933
query I rowsort
SELECT ALL 2 * - col0 + + tab0.col1 FROM tab0
----
-87
27
38
query I rowsort
SELECT ( + col0 ) + tab1.col1 FROM tab1
----
29
74
93
query I rowsort
SELECT tab0.col0 - 89 FROM tab0
----
-54
-65
0
query I rowsort
SELECT ALL - 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT DISTINCT + 59 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1189
-1345
-511
query I rowsort
SELECT ALL cor0.col1 - - col2 AS col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT - + col0 DIV col0 + col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6961
SELECT - + col0 / col0 + col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL - 85 + col2 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-118
-64
-89
query I rowsort
SELECT ALL + 63 * col1 AS col2 FROM tab0 cor0
----
5418
5733
6111
onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT + col1 DIV col1 + cor0.col0 * + ( - col1 ) FROM tab1 AS cor0
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-6964
SELECT + col1 / col1 + cor0.col0 * + ( - col1 ) FROM tab1 AS cor0
----
-1039
-639
-77
query I rowsort
SELECT 44 + cor0.col2 FROM tab0 AS cor0
----
126
45
77
query I rowsort
SELECT DISTINCT + col1 * - col2 + 12 + + 90 * col2 FROM tab2 AS cor0
----
1605
2786
818
query I rowsort
SELECT cor0.col0 + col1 * col0 FROM tab2 cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 + col2 col2 FROM tab0 AS cor0
----
-47
-79
2
query I rowsort
SELECT - - 17 - col0 * col1 * 63 FROM tab2 AS cor0
----
-13654
-289909
-84592
query I rowsort
SELECT DISTINCT - col2 * + ( - col2 ) - col0 * col0 FROM tab0 cor0
----
-1197
-1224
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - cor0.col2 * col0 col1 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6972
SELECT ALL 62 * - col1 * - col2 + - 14 DIV + col1 FROM tab1
----
35339
77375
87048
skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL 62 * - col1 * - col2 + - 14 / + col1 FROM tab1
----
35339
77375
87048
query I rowsort
SELECT - 29 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-56
-67
query I rowsort
SELECT ALL - cor0.col2 + 75 * col2 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT DISTINCT col1 * - col1 - - col0 FROM tab1 AS cor0
----
-36
-673
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6976
SELECT - + CAST( 55 AS SIGNED ) + - col2 col0 FROM tab0 AS cor0
----
-137
-56
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6976
SELECT - + CAST ( 55 AS INTEGER ) + - col2 col0 FROM tab0 AS cor0
----
-137
-56
-88
query I rowsort
SELECT + col0 - + 72 * col0 FROM tab0 AS cor0
----
-1704
-2485
-6319
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6978
SELECT + CAST( + col2 AS SIGNED ) - col1 AS col0 FROM tab1 cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-6978
SELECT + CAST ( + col2 AS INTEGER ) - col1 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL + - col0 * 16 FROM tab2 cor0
----
-112
-1248
-1264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * 23 col1 FROM tab0 AS cor0
----
-2116
-2116
-2116
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6981
SELECT - CAST( NULL AS SIGNED ) + - cor0.col0 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-6981
SELECT - CAST ( NULL AS INTEGER ) + - cor0.col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6982
SELECT ALL + 3 + + col0 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
4
4
4
skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + 3 + + col0 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
4
4
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT ALL + col1 DIV - col2 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL + col1 / - col2 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 + 73 AS col0 FROM tab1 AS cor0
----
127
130
169
query I rowsort
SELECT DISTINCT 59 * - cor0.col1 + cor0.col0 FROM tab0 cor0
----
-5050
-5280
-5688
query I rowsort
SELECT cor0.col1 * col1 + + col1 + - ( col0 + col2 ) AS col1 FROM tab0 AS cor0
----
7425
8201
9470
query I rowsort
SELECT DISTINCT + 43 + + col0 + 77 AS col2 FROM tab2 cor0
----
127
198
199
onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT - col0 * + cor0.col0 - ( - 30 ) DIV col0 AS col1 FROM tab2 AS cor0
----
-45
-6084
-6241
skipif mysql # not compatible
query I rowsort label-6988
SELECT - col0 * + cor0.col0 - ( - 30 ) / col0 AS col1 FROM tab2 AS cor0
----
-45
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6989
SELECT ALL + + col0 DIV - col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + + col0 / - col2 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT + + col2 + - col2 * + ( 14 + col2 ) FROM tab0 AS cor0
----
-14
-1518
-7790
query I rowsort
SELECT DISTINCT col0 + + 97 FROM tab1
----
100
161
177
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
13122 values hashing to c1b9938defc47a3398976ae0c746bef5
query I rowsort
SELECT ALL + col1 + + ( - 83 ) AS col2 FROM tab1 AS cor0
----
-57
-70
-73
query I rowsort
SELECT ALL - + col2 + + 63 AS col0 FROM tab0 AS cor0
----
-19
30
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT 97 AS col1 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT DISTINCT - col1 * 55 + col0 FROM tab0 AS cor0
----
-4706
-4916
-5300
query I rowsort
SELECT ALL col1 * col0 + - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT cor0.col0 + 85 AS col1 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT DISTINCT + cor0.col2 * - ( col1 ) FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 * col2 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT + - 3 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 0982dc7d0db8187bbb77550a76766104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + 11 col0 FROM tab1 cor0
----
33
704
880
query I rowsort
SELECT + col2 + - 27 * cor0.col1 FROM tab0 AS cor0
----
-2289
-2375
-2618
query I rowsort
SELECT DISTINCT + tab0.col1 * 17 AS col0 FROM tab0
----
1462
1547
1649
query I rowsort
SELECT 92 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT - + col0 * col2 - col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-162
-3649
-7680
skipif mysql # not compatible
query I rowsort label-7007
SELECT - + col0 * col2 - col0 / col2 AS col1 FROM tab1 AS cor0
----
-162
-3649
-7680
query I rowsort
SELECT - - cor0.col1 + + col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7009
SELECT - CAST( - 52 AS SIGNED ) * col0 FROM tab2 AS cor0
----
364
4056
4108
skipif mysql # not compatible
query I rowsort label-7009
SELECT - CAST ( - 52 AS INTEGER ) * col0 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT DISTINCT + col1 * + col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + cor0.col0 + - col1 * - col1 * 51 FROM tab0 AS cor0
----
377220
422420
479894
query I rowsort
SELECT DISTINCT - ( 11 ) FROM tab0 AS cor0
----
-11
query I rowsort
SELECT + 79 * + col2 AS col2 FROM tab0 AS cor0
----
2607
6478
79
query I rowsort
SELECT + ( - col2 ) * + 64 FROM tab1 AS cor0
----
-3456
-3648
-6144
query I rowsort
SELECT + - 57 * col0 AS col2 FROM tab0 AS cor0
----
-1368
-1995
-5073
query I rowsort
SELECT + col2 * + 2 + - col0 AS col1 FROM tab0
----
-33
42
75
query I rowsort
SELECT - col2 * col1 + col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL + col0 * + 74 * tab1.col0 FROM tab1
----
303104
473600
666
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * + ( + tab1.col0 ) col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT + 37 + - col2 * + 36 AS col1 FROM tab0 AS cor0
----
-1151
-2915
1
query I rowsort
SELECT DISTINCT - + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT - col1 DIV 71 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7023
SELECT - col1 / 71 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 * ( col2 ) * - col0 AS col0 FROM tab2 cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT col0 + + 2 AS col2 FROM tab1 AS cor0
----
5
66
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT DISTINCT col2 * col2 DIV - 97 AS col2 FROM tab1
----
-30
-33
-95
skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT col2 * col2 / - 97 AS col2 FROM tab1
----
-30
-33
-95
query I rowsort
SELECT + 79 AS col1 FROM tab0
----
79
79
79
query I rowsort
SELECT + + cor0.col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT cor0.col2 DIV + 3 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 58a39d10ede7d766bf81598b0b5d768d
skipif mysql # not compatible
query I rowsort label-7029
SELECT cor0.col2 / + 3 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 58a39d10ede7d766bf81598b0b5d768d
query I rowsort
SELECT 35 * - col1 FROM tab2 AS cor0
----
-1085
-2065
-595
query I rowsort
SELECT ( col1 ) + col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + - 48 * - col1 FROM tab1 AS cor0
----
1248
480
624
query I rowsort
SELECT + + col1 + - col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + col2 + 23 * + col0 * - col2 FROM tab1
----
-176544
-3672
-83847
query I rowsort
SELECT col1 * 33 AS col1 FROM tab0
----
2838
3003
3201
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7036
SELECT + col0 * CAST( col2 AS SIGNED ) + + col2 * col0 * - col0 FROM tab0
----
-1190
-18216
-642224
skipif mysql # not compatible
query I rowsort label-7036
SELECT + col0 * CAST ( col2 AS INTEGER ) + + col2 * col0 * - col0 FROM tab0
----
-1190
-18216
-642224
query I rowsort
SELECT ( 78 ) + cor0.col0 FROM tab2 AS cor0
----
156
157
85
query I rowsort
SELECT col2 * - 73 - + col0 * 44 FROM tab0 AS cor0
----
-1613
-3465
-9902
onlyif mysql # use DIV operator for integer division
query I rowsort label-7039
SELECT ALL 74 DIV 71 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL 74 / 71 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT + col1 * 26 FROM tab2
----
1534
442
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT DISTINCT - col1 + cor0.col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT - col1 + cor0.col2 / + col0 AS col2 FROM tab1 AS cor0
----
-10
-12
-8
query I rowsort
SELECT - col2 + 86 FROM tab0 AS cor0
----
4
53
85
query I rowsort
SELECT ALL + + col0 * ( 23 * - col0 ) AS col0 FROM tab0 AS cor0
----
-13248
-182183
-28175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7044
SELECT DISTINCT + - cor0.col0 * CAST( 8 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-192
-280
-712
skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + - cor0.col0 * CAST ( 8 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-192
-280
-712
query I rowsort
SELECT DISTINCT col2 * ( - 91 ) + col2 FROM tab0 AS cor0
----
-2970
-7380
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7046
SELECT ALL + col1 + - col0 + col0 DIV - col0 FROM tab0 AS cor0
----
1
61
61
skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL + col1 + - col0 + col0 / - col0 FROM tab0 AS cor0
----
1
61
61
query I rowsort
SELECT + col0 + - ( col1 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - + cor0.col2 * 73 + + col2 * col0 FROM tab1 AS cor0
----
-3780
-513
672
query I rowsort
SELECT ALL - + cor0.col0 + + col0 * cor0.col2 - - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT ALL + col0 DIV ( - col1 ) + col2 + - 99 AS col1 FROM tab1 AS cor0
----
-45
-48
-9
skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL + col0 / ( - col1 ) + col2 + - 99 AS col1 FROM tab1 AS cor0
----
-45
-48
-9
query I rowsort
SELECT DISTINCT cor0.col1 + - 90 * + col1 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT DISTINCT col0 + - tab1.col1 - + col1 FROM tab1
----
-49
44
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - col1 + 89 AS col0 FROM tab2 AS cor0
----
30
58
72
query I rowsort
SELECT DISTINCT 80 + - 9 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
71
query I rowsort
SELECT DISTINCT 4 + col2 AS col1 FROM tab0 AS cor0
----
37
5
86
query I rowsort
SELECT 34 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT DISTINCT + + 69 * + col0 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT - 89 * col0 AS col2 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT DISTINCT 5 * col2 AS col1 FROM tab0
----
165
410
5
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT ALL - 56 * - col0 * ( + col0 + col1 ) AS col0 FROM tab1
----
265216
416640
4872
query I rowsort
SELECT ALL cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - - 32 * - col1 FROM tab0 AS cor0
----
-2752
-2912
-3104
query I rowsort
SELECT 11 * col0 * ( - 97 ) AS col0 FROM tab1 AS cor0
----
-3201
-68288
-85360
query I rowsort
SELECT DISTINCT + col1 * - col1 * - ( + col1 ) FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT - 2 AS col0 FROM tab2 cor0
----
-2
-2
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT DISTINCT + col0 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT + col0 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab1
----
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT ALL + 26 DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL + 26 / col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT col0 + + 44 * - col0 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT DISTINCT + + col1 * ( - col0 ) + + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - col2 + ( col2 ) AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL - 76 * + col1 * col1 FROM tab0
----
-562096
-629356
-715084
onlyif mysql # use DIV operator for integer division
query I rowsort label-7076
SELECT DISTINCT - col2 * 7 * - col2 + - col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
47067
5
7620
skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - col2 * 7 * - col2 + - col1 / + col0 AS col0 FROM tab0 AS cor0
----
47067
5
7620
query I rowsort
SELECT ALL + col1 * - ( + col0 ) FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 75 * cor0.col0 + col0 FROM tab1 AS cor0
----
228
4864
6080
query I rowsort
SELECT DISTINCT 87 + - col2 * col1 FROM tab1
----
-1161
-1317
-483
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7080
SELECT DISTINCT 2 * ( - col1 ) + CAST( + tab1.col0 AS SIGNED ) col0 FROM tab1
----
-49
44
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT 2 * ( - col1 ) + CAST ( + tab1.col0 AS INTEGER ) col0 FROM tab1
----
-49
44
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-7081
SELECT ALL + col1 + + col2 DIV tab1.col0 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + col1 + + col2 / tab1.col0 FROM tab1
----
10
14
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT ALL + col2 + + col0 DIV + col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL + col2 + + col0 / + col2 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT ALL + + 12 * + ( col2 ) + + col2 AS col2 FROM tab0 AS cor0
----
1066
13
429
onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT - 92 DIV 13 AS col2 FROM tab0 AS cor0
----
-7
-7
-7
skipif mysql # not compatible
query I rowsort label-7084
SELECT - 92 / 13 AS col2 FROM tab0 AS cor0
----
-7
-7
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT ALL - + col2 DIV col0 + col2 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - + col2 / col0 + col2 FROM tab2 AS cor0
----
24
26
38
query I rowsort
SELECT DISTINCT + + 37 AS col0 FROM tab1 AS cor0
----
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + - col1 + - col1 col2 FROM tab2 AS cor0
----
-177
-51
-93
query I rowsort
SELECT DISTINCT tab0.col0 * - col0 + + col1 + + col2 AS col2 FROM tab0
----
-1127
-457
-7748
onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT DISTINCT - col2 + + col2 DIV + ( col1 * col0 ) AS col0 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT - col2 + + col2 / + ( col1 * col0 ) AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + 45 * col2 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT + 96 + - col2 FROM tab2 AS cor0
----
58
69
70
query I rowsort
SELECT ALL col0 * - 63 + col2 FROM tab0
----
-1479
-2204
-5525
query I rowsort
SELECT ( - col2 ) * col1 + + col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT + ( ( col2 ) ) - + tab2.col2 FROM tab2
----
0
0
0
query I rowsort
SELECT 68 + col1 AS col0 FROM tab1
----
78
81
94
query I rowsort
SELECT - + col1 * - 61 AS col1 FROM tab2 cor0
----
1037
1891
3599
query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1 WHERE NULL IN ( cor0.col1 )
----
query I rowsort
SELECT 8 * 62 FROM tab2, tab1 AS cor0
----
9 values hashing to 3c53f62cc5b472d2670be88b79077127
query I rowsort
SELECT + tab1.col1 * + 40 + + 16 AS col1 FROM tab1
----
1056
416
536
query I rowsort
SELECT DISTINCT ( col1 * col2 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT + ( + 38 ) FROM tab0
----
38
38
38
query I rowsort
SELECT ALL + 72 * col0 AS col1 FROM tab0 AS cor0
----
1728
2520
6408
query I rowsort
SELECT ALL ( - cor0.col2 ) * - col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 37 AS col1 FROM tab1 cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT - 29 * - col0 + - col2 FROM tab2
----
176
2236
2253
query I rowsort
SELECT DISTINCT ( tab0.col1 ) FROM tab0, tab2, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - tab1.col0 + - col2 + - 73 AS col2 FROM tab1
----
-130
-194
-249
query I rowsort
SELECT - col2 * - tab1.col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT 84 + - col0 + - ( col2 ) FROM tab0 AS cor0
----
-87
27
48
query I rowsort
SELECT - col2 * 73 * col1 FROM tab2 AS cor0
----
-111982
-47158
-61101
query I rowsort
SELECT DISTINCT + + cor0.col1 * 11 AS col1 FROM tab1 AS cor0
----
110
143
286
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col2 * - col2 col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7113
SELECT ALL + col0 + + ( + col1 ) - - cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL + col0 + + ( + col1 ) - - cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 85 + - ( + col2 ) col2 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT col2 + - 31 FROM tab1 AS cor0
----
23
26
65
query I rowsort
SELECT ALL - col2 + col1 + col1 * col1 FROM tab0 cor0
----
7449
8290
9505
query I rowsort
SELECT - col1 * + cor0.col2 + + col1 * col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 4 * - 83 AS col1 FROM tab1, tab1 AS cor0
----
-332
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7119
SELECT ALL + tab2.col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + tab2.col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * 23 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-168
-1872
-1896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7121
SELECT + col2 + - CAST( NULL AS DECIMAL ) - 65 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7121
SELECT + col2 + - CAST ( NULL AS REAL ) - 65 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + cor0.col1 + 58 * - col0 * - col1 FROM tab1 AS cor0
----
37120
4524
60320
query I rowsort
SELECT - cor0.col2 + + col1 + - ( col2 * + 29 ) AS col1 FROM tab2 AS cor0
----
-1123
-721
-779
query I rowsort
SELECT 12 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-1056
-1181
-1199
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT + col2 + - col2 DIV + col1 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7125
SELECT + col2 + - col2 / + col1 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 3 col2 FROM tab2 cor0
----
21
234
237
query I rowsort
SELECT + + ( col1 ) * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7128
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 50 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 50 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 7 FROM tab0 cor0
----
7
query I rowsort
SELECT cor0.col1 * col2 + col1 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT - + 26 + + col2 * + col0 FROM tab2 AS cor0
----
163
2002
2976
query I rowsort
SELECT - col2 * - col2 * cor0.col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT + cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7134
SELECT - - col1 DIV + col1 col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7134
SELECT - - col1 / + col1 col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col1 * 54 * + col2 col1 FROM tab2 cor0
----
34963
45205
82914
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col0 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT + col2 + col1 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT 78 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT DISTINCT + col1 + ( - col1 ) * cor0.col0 + - 34 FROM tab1 AS cor0
----
-1061
-664
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT ALL - 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT DISTINCT 86 * col1 DIV + col0 AS col1 FROM tab0
----
238
308
87
skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT 86 * col1 / + col0 AS col1 FROM tab0
----
238
308
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7143
SELECT ALL 9 * - col0 DIV col0 AS col0 FROM tab1
----
-9
-9
-9
skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL 9 * - col0 / col0 AS col0 FROM tab1
----
-9
-9
-9
query I rowsort
SELECT - col2 + + 54 * - col2 FROM tab0 AS cor0
----
-1815
-4510
-55
query I rowsort
SELECT ALL - - 83 * + 91 FROM tab0 AS cor0
----
7553
7553
7553
query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab0, tab0 AS cor0
----
90
query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + ( + 94 ) AS col2 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT 24 * col1 AS col1 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT DISTINCT 12 + + col1 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-36468
-4200
-99828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col2 * + col2 col0 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT ALL - col2 + - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - col2 + - col1 / col1 AS col1 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT 9 + + col0 FROM tab1
----
12
73
89
query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT ( - 6 ) AS col0 FROM tab1
----
-6
query I rowsort
SELECT ALL + cor0.col1 * - 20 FROM tab2 AS cor0
----
-1180
-340
-620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7157
SELECT cor0.col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7157
SELECT cor0.col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7158
SELECT DISTINCT + col1 + + CAST( 23 AS SIGNED ) FROM tab0 AS cor0
----
109
114
120
skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + col1 + + CAST ( 23 AS INTEGER ) FROM tab0 AS cor0
----
109
114
120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7159
SELECT ALL - + col2 / CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - + col2 / CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * col0 + 66 FROM tab2 AS cor0
----
2094
255
3068
query I rowsort
SELECT + + col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + - col2 * - 89 + 84 AS col0 FROM tab2 AS cor0
----
2398
2487
3466
query I rowsort
SELECT - col1 * + ( cor0.col2 ) + - cor0.col1 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT - col1 + 78 FROM tab0 cor0
----
-13
-19
-8
query I rowsort
SELECT - + col1 * ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - cor0.col0 + - 0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col1 + ( + 57 ) AS col1 FROM tab0 AS cor0
----
-29
-34
-40
query I rowsort
SELECT ALL + - col0 + - 21 + col0 * - col2 FROM tab0 AS cor0
----
-7408
-837
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT - col0 DIV - col1 + 88 * - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
-2261
-2349
-3302
skipif mysql # not compatible
query I rowsort label-7169
SELECT - col0 / - col1 + 88 * - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
-2261
-2349
-3302
onlyif mysql # use DIV operator for integer division
query I rowsort label-7170
SELECT col0 DIV 12 AS col0 FROM tab0 AS cor0
----
2
2
7
skipif mysql # not compatible
query I rowsort label-7170
SELECT col0 / 12 AS col0 FROM tab0 AS cor0
----
2
2
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7171
SELECT ALL + - col1 + CAST( NULL AS SIGNED ) / + 37 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL + - col1 + CAST ( NULL AS INTEGER ) / + 37 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7172
SELECT DISTINCT - + col1 DIV ( + col1 + - col2 ) FROM tab2 cor0
----
-1
-7
0
skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT - + col1 / ( + col1 + - col2 ) FROM tab2 cor0
----
-1
-7
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7173
SELECT - 76 DIV + cor0.col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-7173
SELECT - 76 / + cor0.col0 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT ALL col1 * - col1 + + col2 + col1 FROM tab1
----
-33
-596
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + + col2 col2 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + + col2 col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col0 + - col0 * + cor0.col1 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col2 * col2 + col2 * + col0 * tab1.col0 AS col1 FROM tab1
----
-2430
230223
605184
query I rowsort
SELECT + col0 + - col1 + col0 AS col2 FROM tab1
----
-20
118
147
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * tab0.col2 col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT col1 * col0 - tab1.col1 AS col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 AS col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT col0 * col0 * - col0 AS col1 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - + col1 * col2 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - - col1 * col1 + col0 * cor0.col1 + + col1 AS col0 FROM tab2 AS cor0
----
1209
1649
8142
query I rowsort
SELECT ALL - cor0.col2 + + col2 * cor0.col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT ALL + col0 * cor0.col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + col2 * - col0 + col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + col0 * col1 - - col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT + col0 * - cor0.col1 - + cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT ALL + col1 DIV - col0 - col2 * col0 FROM tab1
----
-170
-3648
-7680
skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + col1 / - col0 - col2 * col0 FROM tab1
----
-170
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7194
SELECT DISTINCT + col2 * col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + col2 * col1 / + col1 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT 41 + col1 FROM tab1
----
51
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + - col1 + col1 col0 FROM tab2
----
26
27
38
query I rowsort
SELECT + col2 + col0 * - col0 + - col0 FROM tab2 cor0
----
-29
-6136
-6282
query I rowsort
SELECT DISTINCT tab1.col1 + col1 * + col1 AS col2 FROM tab1
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-7199
SELECT tab0.col2 * + col2 + col2 * + col1 + tab0.col2 DIV - col0 AS col2 FROM tab0
----
14186
3926
98
skipif mysql # not compatible
query I rowsort label-7199
SELECT tab0.col2 * + col2 + col2 * + col1 + tab0.col2 / - col0 AS col2 FROM tab0
----
14186
3926
98
query I rowsort
SELECT ALL + col0 - - col0 FROM tab2 cor0
----
14
156
158
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
query I rowsort
SELECT col2 - col1 * - col0 AS col1 FROM tab1 cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-7203
SELECT DISTINCT + col1 + col0 * col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT + col1 + col0 * col1 / - col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + 76 * col1 + + col1 AS col0 FROM tab0 cor0
----
6622
7007
7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-7205
SELECT col0 DIV cor0.col0 col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7205
SELECT col0 / cor0.col0 col0 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7206
SELECT + col1 + - col0 DIV 84 AS col2 FROM tab0 AS cor0
----
86
90
97
skipif mysql # not compatible
query I rowsort label-7206
SELECT + col1 + - col0 / 84 AS col2 FROM tab0 AS cor0
----
86
90
97
query I rowsort
SELECT + col0 * + cor0.col2 + col2 * - col0 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - ( + cor0.col0 ) + 11 FROM tab2 AS cor0
----
-67
-68
4
query I rowsort
SELECT - ( + col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - col0 + - cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + col0 * ( + cor0.col1 ) FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7212
SELECT + + col2 * col1 DIV col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7212
SELECT + + col2 * col1 / col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( 44 AS REAL ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-12716
-153164
-42284
onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT - + cor0.col1 DIV + col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7214
SELECT - + cor0.col1 / + col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - 19 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT ALL + 15 * 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cc364d2df4024f0a990ece7b404016fe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ( - 98 ) * - col0 AS col1 FROM tab2 AS cor0
----
686
7644
7742
query I rowsort
SELECT + cor0.col1 - - cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT DISTINCT + col1 * col2 + tab1.col1 AS col1 FROM tab1
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-7222
SELECT 13 DIV - 64 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7222
SELECT 13 / - 64 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 62 col1 FROM tab0
----
-2046
-5084
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7224
SELECT + tab1.col0 * col0 DIV + col2 FROM tab1
----
0
66
71
skipif mysql # not compatible
query I rowsort label-7224
SELECT + tab1.col0 * col0 / + col2 FROM tab1
----
0
66
71
query I rowsort
SELECT ALL + ( col0 ) + col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT 92 * tab2.col1 + col0 FROM tab2
----
1643
2859
5506
query I rowsort
SELECT - 47 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7228
SELECT 3 DIV col0 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7228
SELECT 3 / col0 AS col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7229
SELECT + col2 * col2 DIV tab0.col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7229
SELECT + col2 * col2 / tab0.col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 * col1 * 5 + cor0.col1 FROM tab2 AS cor0
----
1116
23069
6732
onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT - col2 * col1 - col2 DIV + col0 FROM tab1 AS cor0
----
-1249
-1422
-570
skipif mysql # not compatible
query I rowsort label-7231
SELECT - col2 * col1 - col2 / + col0 FROM tab1 AS cor0
----
-1249
-1422
-570
query I rowsort
SELECT DISTINCT col2 * cor0.col1 - - 58 FROM tab0 AS cor0
----
155
2896
7520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-98
query I rowsort
SELECT + ( + col0 ) * 58 - + col2 AS col0 FROM tab2
----
379
4498
4544
query I rowsort
SELECT ALL + col1 - col1 * - col0 AS col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - col2 - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL + 72 * col1 + col2 FROM tab0
----
6225
6634
6985
query I rowsort
SELECT cor0.col0 - - 83 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 228804e0e067777ecfe5c0bff9232326
query I rowsort
SELECT DISTINCT col1 * + 96 * + col2 AS col2 FROM tab0
----
272448
716352
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * + CAST ( + 69 AS REAL ) col1 FROM tab2
----
483
5382
5451
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7241
SELECT tab2.col0 - CAST( - col0 AS SIGNED ) FROM tab2
----
14
156
158
skipif mysql # not compatible
query I rowsort label-7241
SELECT tab2.col0 - CAST ( - col0 AS INTEGER ) FROM tab2
----
14
156
158
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT 39 * + 18 AS col1 FROM tab1 AS cor0
----
702
702
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 + col1 col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL - col0 * 17 + cor0.col2 * 47 FROM tab2 AS cor0
----
-104
1150
443
query I rowsort
SELECT + + 72 * col0 AS col1 FROM tab2 AS cor0
----
504
5616
5688
query I rowsort
SELECT DISTINCT + - col0 - - ( + col1 ) FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7248
SELECT + + ( col1 ) DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7248
SELECT + + ( col1 ) / - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7249
SELECT col0 DIV + 99 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7249
SELECT col0 / + 99 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + tab2.col2 * 58 + col0 col2 FROM tab2
----
1580
1664
2362
query I rowsort
SELECT ALL tab2.col1 * + col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col1 * ( tab0.col1 ) * + tab0.col0 + - col2 FROM tab0
----
177471
329314
736927
query I rowsort
SELECT 0 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - + col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col2 * ( col0 ) + tab0.col1 AS col0 FROM tab0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-7256
SELECT + col0 DIV 8 - col0 col0 FROM tab1
----
-3
-56
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7256
SELECT + col0 / 8 - col0 col0 FROM tab1
----
-3
-56
-70
query I rowsort
SELECT + col0 + + 16 AS col1 FROM tab0
----
105
40
51
query I rowsort
SELECT - col0 * + col0 * - ( + col0 ) FROM tab0
----
13824
42875
704969
query I rowsort
SELECT - tab1.col0 * col2 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col1 + - 23 + col1 * + col1 AS col0 FROM tab0
----
7459
8349
9483
query I rowsort
SELECT 42 * - 75 AS col1 FROM tab2 AS cor0
----
-3150
-3150
-3150
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7262
SELECT ALL + CAST( 3 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + CAST ( 3 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
3
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7263
SELECT DISTINCT - ( + ( col0 ) ) + - CAST( - 15 AS SIGNED ) * col2 FROM tab1 AS cor0
----
1360
791
807
skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT - ( + ( col0 ) ) + - CAST ( - 15 AS INTEGER ) * col2 FROM tab1 AS cor0
----
1360
791
807
query I rowsort
SELECT DISTINCT col2 * 31 AS col1 FROM tab2 AS cor0
----
1178
806
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7265
SELECT ALL CAST( NULL AS SIGNED ) + cor0.col0 / - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col0 / - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 61 * col1 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT - col2 + - 87 AS col2 FROM tab1 AS cor0
----
-141
-144
-183
onlyif mysql # use DIV operator for integer division
query I rowsort label-7268
SELECT DISTINCT + 94 DIV + col0 - - col1 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT + 94 / + col0 - - col1 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT + col1 + + 62 * col2 AS col1 FROM tab1 AS cor0
----
3374
3544
5965
query I rowsort
SELECT ALL - - 87 * + 12 - - col0 FROM tab1 AS cor0
----
1047
1108
1124
query I rowsort
SELECT - + ( + 75 ) AS col2 FROM tab1 AS cor0
----
-75
-75
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7272
SELECT ALL ( - ( col2 ) ) * col1 * - col1 + - col1 * - CAST( NULL AS SIGNED ) + 20 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL ( - ( col2 ) ) * col1 * - col1 + - col1 * - CAST ( NULL AS INTEGER ) + 20 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * - cor1.col1 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 737dbb26f65dd374aa3c71dabdd3903c
query I rowsort
SELECT ALL - - ( 67 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7275
SELECT 76 * col1 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7275
SELECT 76 * col1 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 79 col2 FROM tab2 AS cor0
----
-79
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT DISTINCT cor0.col2 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT cor0.col2 / + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + col0 + col0 + + col2 AS col2 FROM tab2 cor0
----
182
196
41
query I rowsort
SELECT - col0 * - col2 + col0 - col1 AS col0 FROM tab2 AS cor0
----
165
2047
3064
query I rowsort
SELECT DISTINCT - + col1 * + col2 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL + 95 + - col1 FROM tab2 AS cor0
----
36
64
78
query I rowsort
SELECT - col2 + + col1 + col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + cor0.col1 + - col1 - - 71 * + 16 FROM tab0 AS cor0
----
1136
1136
1136
onlyif mysql # use DIV operator for integer division
query I rowsort label-7284
SELECT + col2 DIV 42 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7284
SELECT + col2 / 42 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - col0 * + 12 AS col2 FROM tab2 AS cor0
----
-84
-936
-948
query I rowsort
SELECT DISTINCT 67 - tab2.col2 * - 71 FROM tab2
----
1913
1984
2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT ALL - cor0.col0 + + cor0.col0 * col0 DIV - col0 - + col2 * 35 FROM tab2 AS cor0
----
-1066
-1488
-959
skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - cor0.col0 + + cor0.col0 * col0 / - col0 - + col2 * 35 FROM tab2 AS cor0
----
-1066
-1488
-959
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7288
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) + col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) + col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col2 * ( 71 ) AS col0 FROM tab2 AS cor0
----
1846
1917
2698
query I rowsort
SELECT + col2 * - col0 + 49 * col0 FROM tab0 cor0
----
-2937
1680
384
onlyif mysql # use DIV operator for integer division
query I rowsort label-7291
SELECT ALL - - col2 + col0 DIV - col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - - col2 + col0 / - col2 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT DISTINCT - col0 - - col2 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT col0 - 25 AS col0 FROM tab2 AS cor0
----
-18
53
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 * tab1.col2 ) - + col0 * + col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - col0 * cor0.col2 + 47 AS col2 FROM tab2 AS cor0
----
-142
-1981
-2955
onlyif mysql # use DIV operator for integer division
query I rowsort label-7296
SELECT + + col1 DIV - CAST( + col1 AS SIGNED ) col2 FROM tab2 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7296
SELECT + + col1 / - CAST ( + col1 AS INTEGER ) col2 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 41 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - tab2.col0 + + ( col1 ) FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-7300
SELECT 68 DIV + 2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
skipif mysql # not compatible
query I rowsort label-7300
SELECT 68 / + 2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT + col1 + + ( col0 ) + + tab1.col1 AS col1 FROM tab1
----
106
55
84
query I rowsort
SELECT - 41 * col2 AS col2 FROM tab0 cor0
----
-1353
-3362
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7303
SELECT DISTINCT + col0 * col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT + col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 * - col2 + ( col1 ) - - col1 FROM tab1 AS cor0
----
2968
3269
9242
onlyif mysql # use DIV operator for integer division
query I rowsort label-7305
SELECT col1 * - col0 + - tab1.col0 * col1 DIV col0 AS col0 FROM tab1
----
-104
-1053
-650
skipif mysql # not compatible
query I rowsort label-7305
SELECT col1 * - col0 + - tab1.col0 * col1 / col0 AS col0 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT ALL tab1.col1 * col0 + + ( col1 ) * - col2 FROM tab1
----
-1326
-208
70
query I rowsort
SELECT ALL col0 * col2 - 30 AS col1 FROM tab2
----
159
1998
2972
query I rowsort
SELECT col1 * col0 + col2 * - col0 + + col2 AS col0 FROM tab1
----
-2951
-30
-6544
query I rowsort
SELECT ALL + col0 * + cor0.col1 + + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT 34 * col0 AS col2 FROM tab0 cor0
----
1190
3026
816
query I rowsort
SELECT ALL + 64 * cor0.col0 AS col2 FROM tab2 AS cor0
----
448
4992
5056
onlyif mysql # use DIV operator for integer division
query I rowsort label-7312
SELECT DISTINCT cor0.col0 + + col2 DIV col1 + col0 FROM tab2 cor0
----
14
156
160
skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT cor0.col0 + + col2 / col1 + col0 FROM tab2 cor0
----
14
156
160
query I rowsort
SELECT DISTINCT - 68 - + col1 AS col1 FROM tab1 AS cor0
----
-78
-81
-94
query I rowsort
SELECT ALL 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 - + col2 col2 FROM tab0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + tab1.col2 col2 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col0 col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 * col2 + col2 * - col0 col0 FROM tab0
----
243276
671744
9374
query I rowsort
SELECT col2 + - col2 + tab2.col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7320
SELECT ALL tab0.col2 DIV - col0 AS col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL tab0.col2 / - col0 AS col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT col0 + col0 + - col2 AS col2 FROM tab0
----
15
69
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7322
SELECT DISTINCT col2 + - col0 DIV col0 - + col2 AS col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT col2 + - col0 / col0 - + col2 AS col0 FROM tab1
----
-1
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT IN ( col1 + + col1 )
----
query I rowsort
SELECT DISTINCT + col2 * tab2.col0 + col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7325
SELECT + col2 DIV col0 + + col1 AS col2 FROM tab2
----
17
34
59
skipif mysql # not compatible
query I rowsort label-7325
SELECT + col2 / col0 + + col1 AS col2 FROM tab2
----
17
34
59
query I rowsort
SELECT - 97 AS col0 FROM tab0 cor0
----
-97
-97
-97
query I rowsort
SELECT col1 + col1 + + 48 * 94 FROM tab1 AS cor0
----
4532
4538
4564
query I rowsort
SELECT ALL + 59 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT + + 93 + col1 * ( col1 ) + - col1 AS col2 FROM tab2 AS cor0
----
1023
3515
365
query I rowsort
SELECT - col1 * - tab0.col1 * - col2 AS col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT - col1 + col0 * col1 * col0 FROM tab0
----
118728
49450
720720
query I rowsort
SELECT + col0 * col2 * + tab2.col1 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT 61 * + col1 + col2 AS col0 FROM tab1 cor0
----
1640
667
889
query I rowsort
SELECT ALL + col2 + col1 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 + col0 * col0 + + col2 NOT IN ( - cor0.col1 * + col2 * col2 )
----
query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL > NULL
----
query I rowsort
SELECT ALL col0 * - col0 - - col0 AS col1 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT col0 * - col1 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col1 * col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 + - col2 + col1 col2 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * - tab1.col2 col1 FROM tab1
----
-2913
-3185
-9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col0 col0 FROM tab0
----
2
62
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT ( - col1 ) < ( col1 )
----
query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----
query I rowsort
SELECT + col1 / + col2 AS col1 FROM tab2 WHERE NOT col1 * - col1 >= NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7344
SELECT DISTINCT CAST( + col1 AS SIGNED ) * + cor0.col1 + - col0 FROM tab2 cor0
----
210
3403
954
skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * + cor0.col1 + - col0 FROM tab2 cor0
----
210
3403
954
query I rowsort
SELECT ALL - 52 + 93 AS col0 FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT DISTINCT - 1 - col1 AS col1 FROM tab0 AS cor0
----
-87
-92
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7347
SELECT DISTINCT - ( ( cor0.col2 ) ) DIV 97 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT - ( ( cor0.col2 ) ) / 97 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 26 AS col2 FROM tab2
----
-26
-26
-26
query I rowsort
SELECT - 27 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7350
SELECT ALL - + 66 + col0 DIV col0 FROM tab0 AS cor0
----
-65
-65
-65
skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - + 66 + col0 / col0 FROM tab0 AS cor0
----
-65
-65
-65
query I rowsort
SELECT 24 * 63 AS col2 FROM tab0
----
1512
1512
1512
query I rowsort
SELECT + 36 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5
query I rowsort
SELECT cor0.col2 + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-7354
SELECT DISTINCT - col0 DIV - 16 AS col0 FROM tab0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT - col0 / - 16 AS col0 FROM tab0
----
1
2
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7355
SELECT ALL - ( col2 + col0 ) DIV col1 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL - ( col2 + col0 ) / col1 AS col2 FROM tab0
----
-1
0
0
query I rowsort
SELECT ( - 70 ) - + col2 FROM tab0
----
-103
-152
-71
query I rowsort
SELECT - 95 + col0 FROM tab2
----
-16
-17
-88
query I rowsort
SELECT DISTINCT + 49 * + col0 AS col1 FROM tab1
----
147
3136
3920
query I rowsort
SELECT + ( + col1 ) * + col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 * ( + cor0.col0 + - col0 ) AS col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7362
SELECT ALL col2 + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL col2 + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 63 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7364
SELECT ALL - col2 * + tab1.col2 * CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
119808
32490
75816
skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL - col2 * + tab1.col2 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
119808
32490
75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7365
SELECT + + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7365
SELECT + + col0 + 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-7366
SELECT ALL + + 47 + col2 DIV + 59 FROM tab0 AS cor0
----
47
47
48
skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + + 47 + col2 / + 59 FROM tab0 AS cor0
----
47
47
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-7367
SELECT DISTINCT + + 74 DIV - col1 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT + + 74 / - col1 FROM tab2 AS cor0
----
-1
-2
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7368
SELECT + CAST( NULL AS SIGNED ) * + 83 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7368
SELECT + CAST ( NULL AS INTEGER ) * + 83 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 47 * + 63 AS col1 FROM tab0
----
2961
2961
2961
query I rowsort
SELECT - 26 + + col2 FROM tab0 AS cor0
----
-25
56
7
query I rowsort
SELECT DISTINCT + tab2.col0 + tab2.col0 AS col2 FROM tab2
----
14
156
158
query I rowsort
SELECT + col0 * + tab2.col2 * + 60 + col0 FROM tab2
----
11347
121758
180199
query I rowsort
SELECT - col1 * col0 + - ( + col1 * col0 ) + col2 * col2 AS col2 FROM tab1
----
1969
2760
7136
query I rowsort
SELECT ALL col1 * col2 + col1 AS col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT - 55 + + col1 AS col0 FROM tab0
----
31
36
42
query I rowsort
SELECT DISTINCT 96 * col0 FROM tab2
----
672
7488
7584
query I rowsort
SELECT col0 + + col1 * col2 FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 * 67 col2 FROM tab1 AS cor0
----
1745
734
951
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + - 5 col2 FROM tab2
----
-194
-2033
-3007
query I rowsort
SELECT ALL + col2 + tab0.col1 * - col1 * + col1 FROM tab0
----
-636023
-753489
-912672
query I rowsort
SELECT + 30 + tab0.col2 + - col1 AS col1 FROM tab0
----
-23
-66
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7382
SELECT DISTINCT - - 48 * - col1 + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT - - 48 * - col1 + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7383
SELECT DISTINCT - - col1 DIV 7 + col0 AS col1 FROM tab2 AS cor0
----
11
81
86
skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT - - col1 / 7 + col0 AS col1 FROM tab2 AS cor0
----
11
81
86
query I rowsort
SELECT ALL + 55 * ( - col2 ) - - col1 * 35 AS col2 FROM tab2 AS cor0
----
-1495
-400
635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT col0 + + ( 66 ) FROM tab0
----
101
155
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT cor0.col1 + col2 * - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7387
SELECT cor0.col1 + col2 * - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( + ( col1 ) ) - - ( + ( + col0 ) ) * col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - - 74 + ( - col2 ) * 64 FROM tab1 AS cor0
----
-3382
-3574
-6070
query I rowsort
SELECT 53 + - col2 AS col1 FROM tab1
----
-1
-4
-43
query I rowsort
SELECT ALL + 21 + ( + col1 ) FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT ALL + 25 + cor0.col1 * - col0 FROM tab1 AS cor0
----
-1015
-53
-615
query I rowsort
SELECT DISTINCT 46 * col0 - + col1 FROM tab0 AS cor0
----
1018
1513
4003
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + + col1 - - col2 FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT DISTINCT + 29 * ( col1 ) + - col2 + col0 FROM tab2 AS cor0
----
1763
534
879
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 55 - col1 col0 FROM tab1 AS cor0
----
139
3510
4387
query I rowsort
SELECT ALL 40 + - col0 * col0 FROM tab0 AS cor0
----
-1185
-536
-7881
query I rowsort
SELECT ALL col1 + 56 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
130
149
85
query I rowsort
SELECT ( - col2 + - col2 ) FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT + 54 FROM tab0, tab0 AS cor0
----
54
query I rowsort
SELECT ALL + ( - col0 * - col2 + col0 ) AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT - - col2 + 26 * + col1 FROM tab1 AS cor0
----
317
434
730
query I rowsort
SELECT DISTINCT + ( + 33 ) * col0 + - col1 AS col0 FROM tab0 AS cor0
----
1058
2846
706
query I rowsort
SELECT ALL col2 * + 78 FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT ( col2 + tab2.col2 * col2 ) AS col0 FROM tab2
----
1482
702
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7406
SELECT DISTINCT CAST( col0 AS SIGNED ) * col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387
skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387
onlyif mysql # use DIV operator for integer division
query I rowsort label-7407
SELECT - ( + cor0.col2 ) DIV - col0 - col1 FROM tab0 AS cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-7407
SELECT - ( + cor0.col2 ) / - col0 - col1 FROM tab0 AS cor0
----
-85
-91
-97
query I rowsort
SELECT + 95 * col0 + - col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1502
8151
8944
query I rowsort
SELECT ALL col1 * + col1 * ( - 34 ) AS col2 FROM tab0 AS cor0
----
-251464
-281554
-319906
query I rowsort
SELECT 20 * cor0.col2 AS col2 FROM tab2 AS cor0
----
520
540
760
query I rowsort
SELECT - 19 * col2 - - cor0.col2 * - col0 FROM tab0 cor0
----
-1419
-54
-8856
query I rowsort
SELECT ALL col1 * - cor0.col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + col0 - + cor0.col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + cor0.col2 + + col0 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT 0 - + col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7416
SELECT + 13 DIV col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7416
SELECT + 13 / col1 FROM tab1 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + cor0.col0 * ( + col1 ) col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + - col1 + - col0 * 80 AS col0 FROM tab1 AS cor0
----
-266
-5130
-6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-7419
SELECT + + col1 + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-7419
SELECT + + col1 + col1 / col0 AS col2 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT ALL - col1 * + col2 + + ( cor0.col1 ) * ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-10234
-15743
-9506
query I rowsort
SELECT - col1 * - col0 * - 31 AS col2 FROM tab1 AS cor0
----
-19840
-2418
-32240
query I rowsort
SELECT col2 * cor0.col1 + + col1 AS col2 FROM tab0 cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-7423
SELECT ALL col2 DIV - 60 + col0 + col1 * + col1 FROM tab1 AS cor0
----
164
248
679
skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL col2 / - 60 + col0 + col1 * + col1 FROM tab1 AS cor0
----
164
248
679
query I rowsort
SELECT DISTINCT - col1 + - 58 FROM tab1 AS cor0
----
-68
-71
-84
query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT tab1.col1 + - 43 AS col2 FROM tab1
----
-17
-30
-33
query I rowsort
SELECT DISTINCT - + col0 * + 59 AS col1 FROM tab1 AS cor0
----
-177
-3776
-4720
query I rowsort
SELECT col1 + col1 * col2 * - col2 FROM tab1 AS cor0
----
-119795
-32480
-75790
query I rowsort
SELECT + - col1 * - ( cor0.col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT - - col1 * ( - col2 ) * - col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - col2 * 60 FROM tab1 AS cor0
----
-3240
-3420
-5760
query I rowsort
SELECT 87 * 33 AS col1 FROM tab2 AS cor0
----
2871
2871
2871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 41 col0 FROM tab0 AS cor0
----
-3526
-3731
-3977
query I rowsort
SELECT ALL + + cor0.col0 * + 10 FROM tab2 AS cor0
----
70
780
790
query I rowsort
SELECT - + 13 * col0 * col2 AS col2 FROM tab0 cor0
----
-10296
-455
-94874
query I rowsort
SELECT + col2 + 84 AS col1 FROM tab1
----
138
141
180
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 17 + + col2 col0 FROM tab0 AS cor0
----
-17
-17
-17
query I rowsort
SELECT DISTINCT col0 * col1 - - col0 AS col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab2, tab0, tab1 AS cor0
----
22
query I rowsort
SELECT DISTINCT + col1 - 86 FROM tab2
----
-27
-55
-69
query I rowsort
SELECT ALL - 6 FROM tab2, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT + col0 + - col1 DIV col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-7444
SELECT + col0 + - col1 / col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT col1 * - 81 - + col0 FROM tab0
----
-6990
-7460
-7892
query I rowsort
SELECT DISTINCT + 67 FROM tab0, tab0 AS cor0
----
67
query I rowsort
SELECT - 77 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to a4b782d7c3e9c22c8343c69c156c0bdd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7448
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 - col1 * col2 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 - col1 * col2 AS col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col2 FROM tab2 AS cor0
----
-9
-9
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7450
SELECT ALL col2 DIV 59 col2 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL col2 / 59 col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT 80 + ( + col2 ) FROM tab2 AS cor0
----
106
107
118
query I rowsort
SELECT + tab0.col1 * + 53 * + tab0.col0 FROM tab0
----
109392
179935
429247
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
-3
-64
-80
query I rowsort
SELECT + 16 AS col2 FROM tab2 cor0
----
16
16
16
query I rowsort
SELECT DISTINCT 39 FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
39
query I rowsort
SELECT + + col2 * - col1 + ( + ( + col2 ) + 91 ) * col0 FROM tab2 AS cor0
----
-11
7592
9545
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 37 + col1 * col0 col0 FROM tab1 AS cor0
----
1077
115
677
query I rowsort
SELECT ALL + 88 * + col1 AS col1 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT + - cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + + 28 * + col1 FROM tab2 AS cor0
----
1652
476
868
query I rowsort
SELECT - col1 + 61 * cor0.col2 FROM tab2 AS cor0
----
1527
1616
2301
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + 38 col1 FROM tab1 AS cor0
----
134
92
95
query I rowsort
SELECT ALL - + col0 + col2 * col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
22592
24469
39806
query I rowsort
SELECT - col2 * - 20 FROM tab2 AS cor0
----
520
540
760
query I rowsort
SELECT ALL + col1 * col0 - ( - col2 * 86 ) AS col2 FROM tab2 AS cor0
----
2539
4611
6838
onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT + 25 DIV col1 - col1 FROM tab2 AS cor0
----
-16
-31
-59
skipif mysql # not compatible
query I rowsort label-7466
SELECT + 25 / col1 - col1 FROM tab2 AS cor0
----
-16
-31
-59
query I rowsort
SELECT ( col2 ) * col1 + ( col2 + col0 ) AS col1 FROM tab1 AS cor0
----
1424
1461
691
onlyif mysql # use DIV operator for integer division
query I rowsort label-7468
SELECT ( - col2 ) * - col0 DIV - col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7468
SELECT ( - col2 ) * - col0 / - col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7469
SELECT DISTINCT - cor0.col2 + - 17 * col2 DIV - ( 63 ) FROM tab0 cor0
----
-1
-25
-60
skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT - cor0.col2 + - 17 * col2 / - ( 63 ) FROM tab0 cor0
----
-1
-25
-60
query I rowsort
SELECT + col1 * + col1 - + col2 FROM tab1 AS cor0
----
43
622
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7471
SELECT - ( - col1 ) DIV col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7471
SELECT - ( - col1 ) / col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + 43 * - col1 * 12 + col2 AS col1 FROM tab1 AS cor0
----
-13362
-5103
-6612
query I rowsort
SELECT - col1 * col1 * col2 AS col2 FROM tab1
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 * col0 + col2 col2 FROM tab2 AS cor0
----
503
5330
5410
query I rowsort
SELECT col1 * col2 - - ( + col2 ) * - ( - 19 ) * + cor0.col1 FROM tab0 AS cor0
----
149240
1940
56760
onlyif mysql # use DIV operator for integer division
query I rowsort label-7476
SELECT ALL + - col1 DIV 92 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL + - col1 / 92 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col0 + + col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col1 * - 36 AS col0 FROM tab0 AS cor0
----
-3096
-3276
-3492
onlyif mysql # use DIV operator for integer division
query I rowsort label-7479
SELECT - col2 + + tab0.col2 DIV col0 + - col1 * 83 FROM tab0
----
-7170
-7635
-8052
skipif mysql # not compatible
query I rowsort label-7479
SELECT - col2 + + tab0.col2 / col0 + - col1 * 83 FROM tab0
----
-7170
-7635
-8052
query I rowsort
SELECT DISTINCT - + col1 * col0 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col2 + ( + ( + cor0.col0 ) * col2 ) + - col0 FROM tab1 AS cor0
----
213
3641
7696
query I rowsort
SELECT ALL - - col0 - col2 AS col2 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7483
SELECT + - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7483
SELECT + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7484
SELECT DISTINCT - cor0.col1 + - CAST( + 59 AS SIGNED ) * - col1 FROM tab2 cor0
----
1798
3422
986
skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT - cor0.col1 + - CAST ( + 59 AS INTEGER ) * - col1 FROM tab2 cor0
----
1798
3422
986
onlyif mysql # use DIV operator for integer division
query I rowsort label-7485
SELECT DISTINCT + col1 - + 25 DIV - col1 AS col1 FROM tab2
----
18
31
59
skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT + col1 - + 25 / - col1 AS col1 FROM tab2
----
18
31
59
query I rowsort
SELECT ALL - col2 - - 70 * - ( - col0 ) FROM tab0
----
1647
2449
6148
query I rowsort
SELECT DISTINCT - - col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - ( - cor0.col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - ( + cor0.col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + 7 + 51 FROM tab0 AS cor0
----
58
58
58
query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab1 AS cor0
----
-68
query I rowsort
SELECT col1 - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT + - ( - col1 ) * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - cor0.col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT ( col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - tab2.col2 + tab2.col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT + col1 * - 21 + col0 * col2 + col2 FROM tab1
----
-330
3495
7503
query I rowsort
SELECT DISTINCT + col1 * col2 - + col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT - + col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL col2 + col0 * 10 FROM tab2 AS cor0
----
806
828
97
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + - cor0.col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT ALL 69 + col1 * 4 - col0 FROM tab0 AS cor0
----
344
389
422
onlyif mysql # use DIV operator for integer division
query I rowsort label-7503
SELECT DISTINCT 39 + - col2 DIV col2 AS col1 FROM tab1 cor0
----
38
skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT 39 + - col2 / col2 AS col1 FROM tab1 cor0
----
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + + 93 * + cor0.col0 + - ( col0 + - col2 ) * ( col0 ) AS col1 FROM tab2 AS cor0
----
3198
4108
791
query I rowsort
SELECT 60 + col2 FROM tab2 AS cor0
----
86
87
98
query I rowsort
SELECT DISTINCT + col1 + + col0 * 95 - - col0 FROM tab1 AS cor0
----
314
6154
7693
query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7509
SELECT CAST( col2 AS SIGNED ) + col0 FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-7509
SELECT CAST ( col2 AS INTEGER ) + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col2 - - 38 FROM tab0
----
120
39
71
query I rowsort
SELECT col0 * col2 + col2 AS col2 FROM tab1
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7512
SELECT ALL - cor0.col1 DIV 33 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL - cor0.col1 / 33 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
onlyif mysql # use DIV operator for integer division
query I rowsort label-7513
SELECT ALL + - 12 + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-13
-13
-13
skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + - 12 + col0 / - col0 AS col1 FROM tab2 AS cor0
----
-13
-13
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT 97 AS col1 FROM tab1
----
97
query I rowsort
SELECT ( col2 * col0 ) + 84 FROM tab2
----
2112
273
3086
query I rowsort
SELECT ALL 14 AS col2 FROM tab1
----
14
14
14
query I rowsort
SELECT ALL 94 + + cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to b845622e270ba97544e233e744199f29
onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT DISTINCT + col2 DIV 5 + + 63 FROM tab2 AS cor0
----
68
70
skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + col2 / 5 + + 63 FROM tab2 AS cor0
----
68
70
query I rowsort
SELECT + col0 + + col2 * cor0.col2 AS col0 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + cor0.col1 * 41 FROM tab2 cor0
----
1271
2419
697
query I rowsort
SELECT ALL - col0 + + col0 + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - cor0.col0 + col2 * 20 FROM tab2 AS cor0
----
442
533
681
onlyif mysql # use DIV operator for integer division
query I rowsort label-7525
SELECT DISTINCT col1 + ( 72 ) DIV col0 FROM tab0 AS cor0
----
89
91
99
skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT col1 + ( 72 ) / col0 FROM tab0 AS cor0
----
89
91
99
query I rowsort
SELECT DISTINCT + 77 + - ( col2 ) + col1 * col0 AS col0 FROM tab2
----
1382
267
4653
query I rowsort
SELECT ALL col0 + col1 + - col2 FROM tab1
----
-25
-3
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7528
SELECT - CAST( NULL AS SIGNED ) + - 40 * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7528
SELECT - CAST ( NULL AS INTEGER ) + - 40 * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( 48 AS REAL ) * col0 AS col1 FROM tab1 AS cor0
----
144
3072
3840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 89 * cor0.col0 col1 FROM tab0 AS cor0
----
-2103
-3114
-7839
query I rowsort
SELECT ALL + col1 + 17 FROM tab0 AS cor0
----
103
108
114
query I rowsort
SELECT - col2 * col2 + col0 * ( col1 * - col0 ) - 46 AS col2 FROM tab1 AS cor0
----
-3196
-44255
-92462
query I rowsort
SELECT DISTINCT + - 31 AS col1 FROM tab2 AS cor0
----
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7534
SELECT CAST( NULL AS SIGNED ) * + cor0.col0 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7534
SELECT CAST ( NULL AS INTEGER ) * + cor0.col0 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * 30 * cor0.col2 col2 FROM tab1 AS cor0
----
-17100
-37440
-42120
query I rowsort
SELECT ALL col2 + - col0 + - cor0.col1 * col0 FROM tab0 AS cor0
----
-2055
-3429
-8106
query I rowsort
SELECT ALL - 86 + + col1 FROM tab1 AS cor0
----
-60
-73
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7538
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - ( + col2 * col0 + col2 * - col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( - col2 ) + - col2 * - cor0.col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL 36 * col1 AS col1 FROM tab1 AS cor0
----
360
468
936
query I rowsort
SELECT 32 * col0 AS col2 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT ( + 57 ) * col0 FROM tab2
----
399
4446
4503
query I rowsort
SELECT 24 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT + + col1 * cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT cor0.col0 + cor0.col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col2 + 20 AS col0 FROM tab0 cor0
----
-13
-62
19
query I rowsort
SELECT - 27 * col1 FROM tab0 AS cor0
----
-2322
-2457
-2619
query I rowsort
SELECT - - col2 * + col0 + - col2 + ( 43 ) FROM tab0 AS cor0
----
7259
77
802
query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT 14 + col1 + col2 * - col1 FROM tab1 cor0
----
-1221
-1364
-546
query I rowsort
SELECT + tab0.col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-7553
SELECT + CAST( 4 AS SIGNED ) DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7553
SELECT + CAST ( 4 AS INTEGER ) / - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 44 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7555
SELECT DISTINCT col2 + col1 DIV + 40 FROM tab2
----
27
38
skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT col2 + col1 / + 40 FROM tab2
----
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7556
SELECT ALL - col0 * 55 - ( + col1 + col0 ) DIV col0 col2 FROM tab0 cor0
----
-1324
-1928
-4897
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - col0 * 55 - ( + col1 + col0 ) / col0 col2 FROM tab0 cor0
----
-1324
-1928
-4897
query I rowsort
SELECT - col0 - - 98 AS col0 FROM tab2
----
19
20
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7558
SELECT DISTINCT CAST( 37 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
370
481
962
skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT CAST ( 37 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
370
481
962
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - tab1.col2 * + CAST ( 71 AS REAL ) col1 FROM tab1
----
-3834
-4047
-6816
query I rowsort
SELECT DISTINCT - col0 * + ( + col2 ) * col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + col1 + 30 AS col1 FROM tab2
----
47
61
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col1 * + cor0.col1 col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT + 19 * col2 FROM tab0
----
1558
19
627
query I rowsort
SELECT DISTINCT col0 + 96 FROM tab2
----
103
174
175
query I rowsort
SELECT DISTINCT + 25 + col1 AS col1 FROM tab1
----
35
38
51
query I rowsort
SELECT DISTINCT ( 0 ) AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + ( + 90 ) * col1 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT ALL + 98 + + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 61481cc21ab8ffa67fff983b096c0ee3
query I rowsort
SELECT ALL - 17 + 70 AS col0 FROM tab1 AS cor0
----
53
53
53
query I rowsort
SELECT ALL 3 * + col1 AS col0 FROM tab1
----
30
39
78
query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-7574
SELECT col1 DIV - tab1.col2 - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7574
SELECT col1 / - tab1.col2 - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7576
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 + - col1 * col2 + - col2 FROM tab0 AS cor0
----
-1
-2785
-7453
query I rowsort
SELECT + + col0 - 77 * col2 FROM tab2 AS cor0
----
-1924
-2072
-2847
query I rowsort
SELECT ALL + col2 + 3 * + 33 AS col2 FROM tab1 cor0
----
153
156
195
query I rowsort
SELECT - + col0 * cor0.col1 * col2 + col1 + col2 FROM tab1 AS cor0
----
-36413
-4132
-99731
onlyif mysql # use DIV operator for integer division
query I rowsort label-7581
SELECT DISTINCT - col1 DIV + ( - col2 + col0 ) FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT - col1 / + ( - col2 + col0 ) FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT col2 * + col1 * + 88 - + col2 FROM tab1 AS cor0
----
109728
123498
50103
query I rowsort
SELECT col2 - - 55 * + cor0.col0 FROM tab1 AS cor0
----
219
3577
4496
query I rowsort
SELECT + cor0.col2 + 82 FROM tab1, tab0 AS cor0
----
9 values hashing to 7580259294bb2b390b901bc647717b53
query I rowsort
SELECT DISTINCT - tab0.col1 * - col1 AS col1 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7586
SELECT ALL - - col2 DIV CAST( col1 AS SIGNED ) + - col1 FROM tab1 cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - - col2 / CAST ( col1 AS INTEGER ) + - col1 FROM tab1 cor0
----
-24
-5
-6
query I rowsort
SELECT col0 + + ( - ( col1 ) ) * 42 + col0 FROM tab0 AS cor0
----
-3564
-3644
-4004
query I rowsort
SELECT + col2 * 94 * 23 AS col1 FROM tab1 AS cor0
----
116748
123234
207552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + 35 col1 FROM tab0 AS cor0
----
132
2873
7497
query I rowsort
SELECT 41 * tab0.col1 AS col2 FROM tab0
----
3526
3731
3977
query I rowsort
SELECT DISTINCT + 3 * col2 - - col1 AS col0 FROM tab2 AS cor0
----
112
131
137
query I rowsort
SELECT ALL - + ( - col1 ) + 86 AS col2 FROM tab2 AS cor0
----
103
117
145
query I rowsort
SELECT ALL + 25 + col1 + + 16 FROM tab0 AS cor0
----
127
132
138
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 - + col0 col0 FROM tab0 cor0
----
-1260
-600
-8010
query I rowsort
SELECT + 69 * col1 AS col0 FROM tab2 cor0
----
1173
2139
4071
query I rowsort
SELECT ALL - + ( col0 ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - 47 + col1 * + col2 FROM tab1 AS cor0
----
1201
1357
523
query I rowsort
SELECT DISTINCT + col2 * col0 * - col0 + + col1 FROM tab2 AS cor0
----
-1292
-158125
-237141
onlyif mysql # use DIV operator for integer division
query I rowsort label-7599
SELECT DISTINCT col2 + 52 DIV - ( col1 ) AS col2 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT col2 + 52 / - ( col1 ) AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - - col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + col1 * col2 * - col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - 94 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7603
SELECT ALL col1 + + CAST( col1 AS SIGNED ) * col2 * col0 FROM tab2 AS cor0
----
119711
51051
5890
skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL col1 + + CAST ( col1 AS INTEGER ) * col2 * col0 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT + - col2 * - 11 AS col1 FROM tab2 AS cor0
----
286
297
418
onlyif mysql # use DIV operator for integer division
query I rowsort label-7605
SELECT DISTINCT col2 * col0 DIV col1 FROM tab0 AS cor0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT col2 * col0 / col1 FROM tab0 AS cor0
----
0
80
9
query I rowsort
SELECT + col1 * ( + 92 ) AS col1 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT - 54 * - cor0.col2 + col0 + col2 FROM tab2 AS cor0
----
1492
1508
2169
onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT - 9 DIV col0 AS col2 FROM tab1 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-7608
SELECT - 9 / col0 AS col2 FROM tab1 AS cor0
----
-3
0
0
query I rowsort
SELECT col2 + - ( tab0.col0 ) * - 58 AS col0 FROM tab0
----
1425
2031
5244
query I rowsort
SELECT col1 * + 41 FROM tab1
----
1066
410
533
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7611
SELECT col2 + col1 * - col2 + - CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7611
SELECT col2 + col1 * - col2 + - CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + tab1.col1 * + col2 col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7614
SELECT DISTINCT ( + col2 ) DIV - cor0.col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT ( + col2 ) / - cor0.col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT ALL + ( - 37 ) + col0 * 35 AS col1 FROM tab2 AS cor0
----
208
2693
2728
query I rowsort
SELECT ALL + 61 * col0 FROM tab1 cor0
----
183
3904
4880
query I rowsort
SELECT ALL + + 63 * cor0.col1 FROM tab1 AS cor0
----
1638
630
819
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28
query I rowsort
SELECT DISTINCT ( col0 ) * col2 + - 18 AS col0 FROM tab1 AS cor0
----
144
3630
7662
query I rowsort
SELECT - 33 + - 84 + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
1911
2885
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7621
SELECT ALL - - CAST( - col0 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - - CAST ( - col0 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + cor0.col1 * col2 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - 6 * - cor0.col1 * col2 FROM tab0 AS cor0
----
17028
44772
582
query I rowsort
SELECT ALL + 95 + col0 FROM tab1 cor0
----
159
175
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT ( - col0 ) * 37 * + col2 AS col1 FROM tab2 AS cor0
----
-111074
-6993
-75036
query I rowsort
SELECT ALL + + cor0.col2 + col1 * + ( + col2 + + col0 ) FROM tab1 AS cor0
----
1267
1536
2384
query I rowsort
SELECT DISTINCT + + 10 * - cor0.col2 AS col2 FROM tab0 cor0
----
-10
-330
-820
query I rowsort
SELECT DISTINCT 22 * col1 + col2 AS col2 FROM tab1
----
277
382
626
query I rowsort
SELECT + col0 * 65 + - col1 FROM tab1
----
169
4150
5187
query I rowsort
SELECT - 58 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-20
-31
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col0 FROM tab1 AS cor0
----
30
30
30
query I rowsort
SELECT + 19 * - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-138662
-15048
-665
query I rowsort
SELECT - 74 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7635
SELECT ( col2 + - CAST( col1 AS SIGNED ) ) * - col2 FROM tab1
----
-1512
-2679
-7968
skipif mysql # not compatible
query I rowsort label-7635
SELECT ( col2 + - CAST ( col1 AS INTEGER ) ) * - col2 FROM tab1
----
-1512
-2679
-7968
query I rowsort
SELECT ALL - col0 * + tab2.col1 * ( + 57 ) FROM tab2
----
-12369
-262314
-76551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7637
SELECT - col2 + CAST( NULL AS SIGNED ) * 33 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7637
SELECT - col2 + CAST ( NULL AS INTEGER ) * 33 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7638
SELECT + col2 * cor0.col2 DIV - col0 FROM tab2 AS cor0
----
-104
-18
-8
skipif mysql # not compatible
query I rowsort label-7638
SELECT + col2 * cor0.col2 / - col0 FROM tab2 AS cor0
----
-104
-18
-8
query I rowsort
SELECT ALL - ( col2 ) * ( col0 * + col2 ) FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7641
SELECT 98 + col2 DIV + cor0.col1 FROM tab0 AS cor0
----
98
98
98
skipif mysql # not compatible
query I rowsort label-7641
SELECT 98 + col2 / + cor0.col1 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT - 24 + col0 AS col0 FROM tab0 AS cor0
----
0
11
65
query I rowsort
SELECT - col1 + + ( col1 ) AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - tab1.col0 + - col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT ALL - - col2 * + col2 + col0 * ( - col2 + + cor0.col0 * col2 ) FROM tab0 AS cor0
----
1191
19305
648948
query I rowsort
SELECT DISTINCT - - ( - col0 ) * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-7647
SELECT DISTINCT + - 49 DIV col2 AS col0 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + - 49 / col2 AS col0 FROM tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7648
SELECT CAST( + col2 AS SIGNED ) - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-7648
SELECT CAST ( + col2 AS INTEGER ) - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + 32 + 6 FROM tab2 AS cor0
----
38
query I rowsort
SELECT + - cor0.col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7651
SELECT 32 * 42 DIV - col0 - - 78 * - cor0.col0 FROM tab1 AS cor0
----
-5013
-6256
-682
skipif mysql # not compatible
query I rowsort label-7651
SELECT 32 * 42 / - col0 - - 78 * - cor0.col0 FROM tab1 AS cor0
----
-5013
-6256
-682
query I rowsort
SELECT + ( - col1 ) * col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - col1 - + 2 FROM tab0 AS cor0
----
-88
-93
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7654
SELECT ALL + CAST( - col1 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + CAST ( - col1 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - col2 * 59 + cor0.col0 - col1 FROM tab0 AS cor0
----
-121
-2009
-4840
query I rowsort
SELECT - 39 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
1017
454
587
query I rowsort
SELECT ALL + ( cor0.col1 ) + col0 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 AS col0 FROM tab2 cor0
----
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - tab1.col2 + + col1 AS col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE + col0 * col0 * col0 NOT IN ( - col0 )
----
26
27
38
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) <= + col2 + + col0 - - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7664
SELECT ALL + col2 DIV + col1 + - col0 FROM tab1
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL + col2 / + col1 + - col0 FROM tab1
----
-1
-59
-73
query I rowsort
SELECT + col1 * tab2.col2 FROM tab2 WHERE ( col2 ) NOT IN ( col0 * col0 )
----
1534
646
837
query I rowsort
SELECT ALL col1 - - col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT - col1 + col1 * - col0 FROM tab2
----
-1360
-248
-4661
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) IN ( + col0 + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL col0 + col2 * + col1 AS col1 FROM tab0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 - tab2.col1 * col0 col2 FROM tab2
----
-1054
-1989
-6136
query I rowsort
SELECT + tab0.col0 * col2 - + col1 * - col1 AS col2 FROM tab0
----
15579
8188
9444
query I rowsort
SELECT + col2 * cor0.col1 * col0 - - col2 AS col1 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT - col2 + + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * + col0 * col2 AS col0 FROM tab2
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col0 * - tab2.col1 + col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT col2 * cor0.col0 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 * col2 ) > ( + cor0.col2 + cor0.col0 * + col2 * col0 + + cor0.col2 )
----
1
33
82
query I rowsort
SELECT - col1 FROM tab2 WHERE col2 * col2 >= ( col0 )
----
-17
-31
-59
query I rowsort
SELECT + col1 * col1 * col2 AS col0 FROM tab1
----
16224
36504
5700
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + col2 + col2 = ( NULL )
----
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 ALL col2 * tab2.col1 * tab2.col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT ALL + - col1 * - 23 + col0 * col0 + - 67 AS col0 FROM tab1 AS cor0
----
4259
540
6632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7686
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 * col2 + col0 * - cor0.col2 FROM tab1 AS cor0
----
-3078
-6432
1242
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7688
SELECT col0 - + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7688
SELECT col0 - + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7689
SELECT - + col1 DIV - col2 + - col0 * col2 + + 84 AS col1 FROM tab1 AS cor0
----
-3564
-7596
-78
skipif mysql # not compatible
query I rowsort label-7689
SELECT - + col1 / - col2 + - col0 * col2 + + 84 AS col1 FROM tab1 AS cor0
----
-3564
-7596
-78
query I rowsort
SELECT ALL - col1 + + 10 AS col1 FROM tab1 AS cor0
----
-16
-3
0
query I rowsort
SELECT - col0 + - col1 + - 21 FROM tab0 cor0
----
-131
-153
-201
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7692
SELECT ALL col0 * CAST( + col2 * + col2 AS SIGNED ) + 26 FROM tab2 AS cor0
----
114102
5129
52754
skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL col0 * CAST ( + col2 * + col2 AS INTEGER ) + 26 FROM tab2 AS cor0
----
114102
5129
52754
onlyif mysql # use DIV operator for integer division
query I rowsort label-7693
SELECT DISTINCT col0 DIV + tab1.col1 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT col0 / + tab1.col1 FROM tab1
----
0
6
query I rowsort
SELECT DISTINCT - col2 + - col2 * col2 + cor0.col0 * + 16 FROM tab2 AS cor0
----
-218
-644
546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7695
SELECT - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7695
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + + 24 FROM tab1 AS cor0
----
34
37
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-7697
SELECT ALL + + col2 DIV - 2 AS col1 FROM tab2 AS cor0
----
-13
-13
-19
skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL + + col2 / - 2 AS col1 FROM tab2 AS cor0
----
-13
-13
-19
query I rowsort
SELECT DISTINCT ( 2 ) AS col0 FROM tab1, tab2 AS cor0
----
2
query I rowsort
SELECT + tab2.col0 * - ( tab2.col1 ) + col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT ALL col2 * col1 + + col0 + + col1 FROM tab1
----
1341
1433
644
query I rowsort
SELECT - col0 + col1 + col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL col1 * col0 + col2 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL - 72 * - tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6ea840cdf2b42247db0ed404945b7aa1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 38 + col2 col2 FROM tab0
----
1287
3198
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7705
SELECT ALL col0 DIV col1 + tab1.col0 * col0 * - col2 FROM tab1
----
-233466
-486
-614394
skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL col0 / col1 + tab1.col0 * col0 * - col2 FROM tab1
----
-233466
-486
-614394
query I rowsort
SELECT + col2 + col2 * tab2.col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT + 94 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT DISTINCT + 21 + + col0 * col0 * + 12 FROM tab1 AS cor0
----
129
49173
76821
query I rowsort
SELECT ALL + 25 + - col1 FROM tab0 AS cor0
----
-61
-66
-72
query I rowsort
SELECT DISTINCT col0 * - tab1.col2 + col1 * + col2 AS col2 FROM tab1
----
-3078
-6432
1242
query I rowsort
SELECT - col1 * tab0.col0 + col1 + + col1 * tab0.col1 FROM tab0
----
273
5418
6111
onlyif mysql # use DIV operator for integer division
query I rowsort label-7712
SELECT DISTINCT col1 + + col1 DIV col0 FROM tab2
----
17
35
59
skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT col1 + + col1 / col0 FROM tab2
----
17
35
59
query I rowsort
SELECT ALL + tab0.col1 FROM tab0 WHERE NOT col1 + - col1 * col2 = NULL
----
query I rowsort
SELECT - col2 FROM tab0 WHERE NULL NOT IN ( + col0 * col0 + - tab0.col0 * - col0 )
----
query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE col1 + - tab1.col0 < NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - col2 - col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col1 + col1 <> NULL
----
query I rowsort
SELECT col2 + col1 * col0 + - tab1.col2 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7719
SELECT DISTINCT col1 DIV col1 + + col2 AS col1 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT col1 / col1 + + col2 AS col1 FROM tab1
----
55
58
97
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + tab1.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT - col0 + - col2 * - col1 + - tab1.col1 DIV + col2 AS col2 FROM tab1
----
1168
1401
506
skipif mysql # not compatible
query I rowsort label-7721
SELECT - col0 + - col2 * - col1 + - tab1.col1 / + col2 AS col2 FROM tab1
----
1168
1401
506
query I rowsort
SELECT DISTINCT cor0.col2 + + 33 FROM tab0, tab2 AS cor0
----
59
60
71
query I rowsort
SELECT ALL ( - col1 * + col2 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 * 77 + - col1 FROM tab0 AS cor0
----
-44438
-610008
-94422
query I rowsort
SELECT col0 * col2 - - col1 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL - col2 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT - col1 * + col1 + + col0 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT ALL - 44 * + col1 + - col0 - col0 FROM tab2 AS cor0
----
-1378
-2752
-906
query I rowsort
SELECT tab1.col0 * - 20 + col1 * 32 AS col2 FROM tab1
----
-1184
-960
772
query I rowsort
SELECT - + ( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col1 AS REAL ) + col2 * col0 * col1 AS col2 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT - col2 * - 15 AS col1 FROM tab0 AS cor0
----
1230
15
495
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + 13 AS REAL ) + + cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4
4083
6387
query I rowsort
SELECT ALL 16 + - col0 FROM tab0
----
-19
-73
-8
query I rowsort
SELECT ALL - tab0.col0 - - col2 * - 34 * 38 AS col2 FROM tab0
----
-106033
-1327
-42660
query I rowsort
SELECT + + 99 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609
query I rowsort
SELECT - col0 * + cor0.col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + ( - col1 ) + 8 * - col2 + col2 FROM tab0
----
-104
-317
-665
query I rowsort
SELECT DISTINCT + + col2 * 15 AS col2 FROM tab0 cor0
----
1230
15
495
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7742
SELECT - col0 + CAST( NULL AS SIGNED ) / - col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7742
SELECT - col0 + CAST ( NULL AS INTEGER ) / - col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 + - ( - 15 ) * col0 * col2 FROM tab0 AS cor0
----
109559
11904
560
query I rowsort
SELECT ALL - - col2 * 72 FROM tab2 AS cor0
----
1872
1944
2736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 56 col0 FROM tab2 AS cor0
----
-392
-4368
-4424
query I rowsort
SELECT ALL - + col1 * + ( + 78 ) * cor0.col0 + col2 + col1 AS col0 FROM tab0 AS cor0
----
-160873
-264712
-631549
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7747
SELECT + - col0 + + CAST( NULL AS DECIMAL ) / - 6 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7747
SELECT + - col0 + + CAST ( NULL AS REAL ) / - 6 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - ( + 6 ) FROM tab2 AS cor0
----
20
21
32
query I rowsort
SELECT DISTINCT + col2 + ( - 97 ) - col1 AS col2 FROM tab0 AS cor0
----
-106
-150
-193
query I rowsort
SELECT DISTINCT col0 - + col0 * - cor0.col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - + col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + col0 + + 12 FROM tab0 AS cor0
----
-2052
-3383
-8087
query I rowsort
SELECT ALL + cor0.col2 * + ( col2 * - col0 ) AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + + col1 + + col2 + - col0 AS col2 FROM tab1 AS cor0
----
29
3
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7755
SELECT DISTINCT - - col0 * + CAST( NULL AS SIGNED ) * - cor0.col0 + - col1 + ( 34 ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT - - col0 * + CAST ( NULL AS INTEGER ) * - cor0.col0 + - col1 + ( 34 ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 87 * col1 - + 98 * 33 AS col1 FROM tab2
----
-1755
-537
1899
query I rowsort
SELECT DISTINCT + - cor0.col2 + col0 * col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT + + col1 * + col2 + ( col0 ) + + 26 AS col1 FROM tab2 AS cor0
----
1638
751
870
query I rowsort
SELECT ALL - - col2 * 54 AS col1 FROM tab2 AS cor0
----
1404
1458
2052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - ( col0 ) * col1 col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT col1 * 6 FROM tab0 cor0
----
516
546
582
query I rowsort
SELECT ALL cor0.col1 + - 52 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 099152650f7a4637cbc508ed7e80cfb0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7763
SELECT DISTINCT col0 * col1 DIV ( + col2 * 85 ) AS col1 FROM tab0 cor0
----
0
1
39
skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT col0 * col1 / ( + col2 * 85 ) AS col1 FROM tab0 cor0
----
0
1
39
query I rowsort
SELECT DISTINCT col0 * col1 + 62 FROM tab2 AS cor0
----
1405
279
4664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + 81 + - col2 * col2 col1 FROM tab1 AS cor0
----
-2781
-3111
-9039
query I rowsort
SELECT - col2 * 41 * col0 AS col0 FROM tab2
----
-123082
-7749
-83148
query I rowsort
SELECT + cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - + col1 - - 52 FROM tab1 AS cor0
----
26
39
42
query I rowsort
SELECT DISTINCT col0 + + 70 AS col0 FROM tab0 AS cor0
----
105
159
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7770
SELECT ALL col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * + col1 + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-1010
-6530
-9565
query I rowsort
SELECT ALL - col2 * - col2 * - ( + col0 ) + + col0 * col0 * + col2 + 38 * + 58 FROM tab2 AS cor0
----
-1576
107660
125286
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7773
SELECT + CAST( NULL AS SIGNED ) * col2 + col2 * ( - col1 ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7773
SELECT + CAST ( NULL AS INTEGER ) * col2 + col2 * ( - col1 ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 75 + - cor0.col0 FROM tab2 AS cor0
----
-3
-4
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * + col1 + col0 col2 FROM tab0 AS cor0
----
-730
-750
-838
query I rowsort
SELECT DISTINCT col0 * ( col0 ) + col2 AS col1 FROM tab0
----
1226
609
8003
query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab1, tab1 AS cor0
----
2
query I rowsort
SELECT + tab1.col0 * ( + col0 ) FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 54 + cor0.col2 + - col2 col0 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT + + ( col2 ) + + col0 * - cor0.col1 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7781
SELECT ALL - + 1 DIV col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - + 1 / col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + col0 + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - cor0.col1 * - col1 + - col2 AS col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL - + 99 * col2 + - col1 FROM tab1 AS cor0
----
-5372
-5653
-9517
query I rowsort
SELECT - 0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT 80 + - col1 FROM tab1
----
54
67
70
query I rowsort
SELECT - col0 * + tab1.col1 * + col0 - 77 AS col1 FROM tab1
----
-311
-41037
-83277
query I rowsort
SELECT col2 + - tab0.col2 * col0 AS col0 FROM tab0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-7789
SELECT col0 * + ( + col0 ) DIV - ( + col0 ) + col0 * + ( col1 ) AS col1 FROM tab1
----
576
75
960
skipif mysql # not compatible
query I rowsort label-7789
SELECT col0 * + ( + col0 ) / - ( + col0 ) + col0 * + ( col1 ) AS col1 FROM tab1
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 4 * - col2 ) col0 FROM tab2
----
104
108
152
query I rowsort
SELECT - 57 * col1 FROM tab2 AS cor0
----
-1767
-3363
-969
query I rowsort
SELECT 43 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1419
-3526
-43
query I rowsort
SELECT DISTINCT 61 + + 92 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
153
query I rowsort
SELECT - 78 * - col2 AS col1 FROM tab1
----
4212
4446
7488
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7796
SELECT DISTINCT col1 + col1 DIV - 61 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT col1 + col1 / - 61 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 46 * cor0.col0 + col1 FROM tab0 AS cor0
----
1190
1707
4185
query I rowsort
SELECT DISTINCT + tab2.col0 * 93 AS col0 FROM tab2
----
651
7254
7347
query I rowsort
SELECT 94 * col2 + ( - col1 + col1 ) FROM tab1 AS cor0
----
5076
5358
9024
query I rowsort
SELECT - col1 * - cor0.col2 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - + ( + col1 ) * + 89 AS col2 FROM tab2 AS cor0
----
-1513
-2759
-5251
query I rowsort
SELECT 25 * cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4eb0abec54c1f4b900ce137796f96cee
query I rowsort
SELECT col0 * - 30 * col0 AS col2 FROM tab1 AS cor0
----
-122880
-192000
-270
query I rowsort
SELECT DISTINCT + col0 * - ( 34 ) AS col0 FROM tab2 AS cor0
----
-238
-2652
-2686
query I rowsort
SELECT - 78 * 69 FROM tab1 AS cor0
----
-5382
-5382
-5382
query I rowsort
SELECT + - 32 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1888
-544
-992
query I rowsort
SELECT ALL - col1 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - cor0.col1 * 29 + col2 AS col1 FROM tab1 AS cor0
----
-233
-281
-700
query I rowsort
SELECT ALL - + 48 * ( - col1 ) FROM tab0 AS cor0
----
4128
4368
4656
onlyif mysql # use DIV operator for integer division
query I rowsort label-7810
SELECT ALL + cor0.col2 * + col2 + col1 DIV + cor0.col1 FROM tab1 cor0
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL + cor0.col2 * + col2 + col1 / + cor0.col1 FROM tab1 cor0
----
2917
3250
9217
query I rowsort
SELECT DISTINCT 24 * + cor0.col2 FROM tab1 AS cor0
----
1296
1368
2304
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7812
SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 + + col1 - col1 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col1 + - cor0.col0 * col2 FROM tab1 AS cor0
----
-188
-3658
-7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 + + 47 * - col2 col2 FROM tab2
----
-1196
-1242
-1748
query I rowsort
SELECT DISTINCT + + col0 * col0 * col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT DISTINCT col1 * col2 + + col2 * + cor0.col1 FROM tab0 cor0
----
14924
194
5676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7819
SELECT CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif mysql # not compatible
query I rowsort label-7819
SELECT CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + 95 * col0 * 68 AS col1 FROM tab0
----
155040
226100
574940
query I rowsort
SELECT DISTINCT + 64 FROM tab2, tab1 AS cor0, tab2 cor1
----
64
query I rowsort
SELECT + tab1.col1 * col0 + 59 FROM tab1
----
1099
137
699
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7823
SELECT + CAST( NULL AS SIGNED ) + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7823
SELECT + CAST ( NULL AS INTEGER ) + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-7825
SELECT col1 + col0 DIV col0 col2 FROM tab1
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7825
SELECT col1 + col0 / col0 col2 FROM tab1
----
11
14
27
query I rowsort
SELECT - col1 * - col2 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col2 * + tab0.col1 + + tab0.col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT col0 + - 33 FROM tab1
----
-30
31
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT DISTINCT col0 DIV 31 + + col0 FROM tab1
----
3
66
82
skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT col0 / 31 + + col0 FROM tab1
----
3
66
82
query I rowsort
SELECT - col1 + 85 AS col0 FROM tab1
----
59
72
75
query I rowsort
SELECT ALL - col1 + - 27 FROM tab0
----
-113
-118
-124
query I rowsort
SELECT DISTINCT + + ( - col2 ) * + 51 + + col1 FROM tab1 AS cor0
----
-2728
-2897
-4883
query I rowsort
SELECT - col1 + col0 - col1 AS col1 FROM tab2 AS cor0
----
-40
-55
45
query I rowsort
SELECT - ( - col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col1 + cor0.col2 + + 57 FROM tab2 AS cor0
----
112
115
142
query I rowsort
SELECT DISTINCT - + 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col2 col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + 15 + + 47 - col0 FROM tab0
----
-27
27
38
query I rowsort
SELECT ALL - 35 - col1 AS col2 FROM tab1
----
-45
-48
-61
query I rowsort
SELECT - col2 * col2 + + 41 + 99 AS col2 FROM tab1 AS cor0
----
-2776
-3109
-9076
query I rowsort
SELECT - - col0 + + col0 * 64 - + 94 * col1 FROM tab1 AS cor0
----
-2249
3220
3978
onlyif mysql # use DIV operator for integer division
query I rowsort label-7842
SELECT col2 DIV + col0 + + col1 col2 FROM tab2 AS cor0
----
17
34
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7842
SELECT col2 / + col0 + + col1 col2 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT + + col2 + cor0.col2 AS col0 FROM tab0 cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7844
SELECT ALL 39 + col0 DIV col1 FROM tab0
----
39
39
39
skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL 39 + col0 / col1 FROM tab0
----
39
39
39
query I rowsort
SELECT + col0 + + col2 * col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT - - cor0.col2 * ( 47 ) * col0 AS col2 FROM tab1 AS cor0
----
171456
360960
7614
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0, tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col0 + col0 + ( col0 ) FROM tab1
----
192
240
9
query I rowsort
SELECT ALL 95 + + col0 + col0 FROM tab2
----
109
251
253
query I rowsort
SELECT tab0.col1 * - 83 FROM tab0, tab1 AS cor0
----
9 values hashing to 6560b5b008015bf020187c9e23ec2354
query I rowsort
SELECT - ( + 99 ) AS col1 FROM tab1 AS cor0
----
-99
-99
-99
query I rowsort
SELECT DISTINCT + col1 * + col1 + cor0.col0 * col2 * - col0 FROM tab2 AS cor0
----
-154703
-236869
-362
query I rowsort
SELECT ALL + - col0 * + col0 + - col1 FROM tab0 cor0
----
-1322
-662
-8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-7854
SELECT - - 44 DIV - 80 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
skipif mysql # not compatible
query I rowsort label-7854
SELECT - - 44 / - 80 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
onlyif mysql # use DIV operator for integer division
query I rowsort label-7855
SELECT 0 DIV + 5 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7855
SELECT 0 / + 5 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 2 FROM tab2, tab2 AS cor0
----
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 + - 42 * - col0 + - col1 col0 FROM tab2
----
190
3144
3228
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7858
SELECT ALL + 9 * cor0.col2 * col0 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL + 9 * cor0.col2 * col0 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 66 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
187308
492492
6402
query I rowsort
SELECT + ( + 89 ) AS col1 FROM tab1 AS cor0
----
89
89
89
query I rowsort
SELECT DISTINCT col2 * 36 + + col1 AS col0 FROM tab2 AS cor0
----
1003
1385
995
query I rowsort
SELECT - 98 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( - 48 AS REAL ) + - col2 FROM tab1 AS cor0
----
-48
-6
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT - 53 DIV col1 FROM tab1
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-7866
SELECT - 53 / col1 FROM tab1
----
-2
-4
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab1.col2 + 92 ) col2 FROM tab1
----
146
149
188
query I rowsort
SELECT + 96 + + col2 AS col1 FROM tab1 AS cor0
----
150
153
192
query I rowsort
SELECT - col2 * - col0 - ( + col0 ) AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT 98 * - col2 - + ( 13 ) * + col1 AS col2 FROM tab2 AS cor0
----
-3049
-3315
-3945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT col1 DIV + ( - ( col0 ) ) FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7872
SELECT col1 / + ( - ( col0 ) ) FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL col2 * 25 FROM tab1 AS cor0
----
1350
1425
2400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT ALL + col1 + + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + col1 + + col1 / col0 AS col2 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT ALL col0 * + ( - col1 ) FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) + col1 * cor0.col0 + col0 FROM tab1 AS cor0
----
107
1133
714
query I rowsort
SELECT ALL + 98 - cor0.col0 FROM tab1 AS cor0
----
18
34
95
query I rowsort
SELECT col1 * - 14 + col2 FROM tab0 AS cor0
----
-1171
-1192
-1357
query I rowsort
SELECT - col2 + 79 FROM tab0
----
-3
46
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7880
SELECT cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7880
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col1 + + 6 * - col1 AS col1 FROM tab0 AS cor0
----
-602
-637
-679
query I rowsort
SELECT DISTINCT + cor0.col0 * 20 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-697
26
934
query I rowsort
SELECT ALL col2 + - 97 AS col0 FROM tab0 AS cor0
----
-15
-64
-96
query I rowsort
SELECT ALL + col0 * - ( - 71 ) * col0 + col1 FROM tab2 AS cor0
----
3510
432023
443128
onlyif mysql # use DIV operator for integer division
query I rowsort label-7885
SELECT + 4 * + tab0.col0 + cor1.col0 DIV 78 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bf435191eeedd2c7cab9a44b827cf21b
skipif mysql # not compatible
query I rowsort label-7885
SELECT + 4 * + tab0.col0 + cor1.col0 / 78 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bf435191eeedd2c7cab9a44b827cf21b
query I rowsort
SELECT ALL + - 50 + col1 AS col1 FROM tab2 AS cor0
----
-19
-33
9
query I rowsort
SELECT DISTINCT ( - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col1 * + ( col1 ) FROM tab2
----
289
3481
961
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
query I rowsort
SELECT col2 * - 65 AS col0 FROM tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT ALL col0 * + ( - col1 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT col2 * - col0 + col1 AS col0 FROM tab2
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + col1 col2 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL - tab1.col2 * - 82 + - 41 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4cb8828fa3cc7df7f45d43b1be5537c2
query I rowsort
SELECT ALL + - col2 * + col0 + + 69 AS col0 FROM tab1 AS cor0
----
-3579
-7611
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7896
SELECT DISTINCT - + ( col0 ) * col2 + - col2 + + cor0.col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT - + ( col0 ) * col2 + - col2 + + cor0.col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 92 AS col2 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 95b4f8d1f8c6430076327dcc6092a86c
query I rowsort
SELECT + - 2 + - col2 AS col0 FROM tab1 AS cor0
----
-56
-59
-98
query I rowsort
SELECT ( + col2 ) + + col1 * col1 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7900
SELECT ALL - tab0.col2 * col1 + - CAST( NULL AS SIGNED ) / + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - tab0.col2 * col1 + - CAST ( NULL AS INTEGER ) / + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 75 * col0 * col2 + 94 FROM tab1
----
12244
273694
576094
query I rowsort
SELECT + col0 * col2 - - ( - 19 ) * col0 AS col0 FROM tab1
----
105
2432
6160
query I rowsort
SELECT tab0.col1 * + tab0.col1 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT 38 FROM tab1, tab2, tab0 cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col1 * - col0 - 78 AS col0 FROM tab1
----
-1118
-156
-718
query I rowsort
SELECT ALL + col1 * - ( + 34 ) + cor0.col0 * + ( 0 ) AS col2 FROM tab0 AS cor0
----
-2924
-3094
-3298
query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 * col1 + + cor0.col1 * col1 FROM tab1 AS cor0
----
100009
36580
4888
query I rowsort
SELECT DISTINCT - - col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col2 + 68 FROM tab2 AS cor0
----
30
41
42
query I rowsort
SELECT ALL col2 + - ( + ( cor0.col1 ) ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7912
SELECT DISTINCT - col0 + + CAST( col1 AS SIGNED ) DIV + col1 AS col2 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT - col0 + + CAST ( col1 AS INTEGER ) / + col1 AS col2 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - - col0 * + 91 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT DISTINCT + col0 + + 61 * + col0 FROM tab0 AS cor0
----
1488
2170
5518
query I rowsort
SELECT DISTINCT + + cor0.col1 + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col0 * col2 * - cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT - col1 * col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT DISTINCT + - col1 * + 64 * col2 + + col2 FROM tab0 AS cor0
----
-181599
-477486
-6207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 28 col2 FROM tab2 cor0
----
-1064
-728
-756
query I rowsort
SELECT DISTINCT tab2.col1 + col0 + col0 * + col0 * col1 FROM tab2
----
106193
1557
359093
query I rowsort
SELECT - col2 * + col1 - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT + + cor0.col0 + + 47 + - col1 AS col0 FROM tab1 AS cor0
----
101
114
24
query I rowsort
SELECT col1 - col2 * tab0.col0 * ( col2 * + tab0.col0 ) AS col2 FROM tab0
----
-1128
-53260713
-627178
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7926
SELECT ALL + - CAST( NULL AS SIGNED ) + - 97 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 97 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col0 AS REAL ) col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 84 * - col1 col1 FROM tab0 cor0
----
-7224
-7644
-8148
query I rowsort
SELECT col1 * col1 + + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT + ( 21 ) FROM tab0 AS cor0
----
21
query I rowsort
SELECT ALL - ( col0 ) * col0 * col1 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT col0 * + col2 + col2 * - col1 + cor0.col1 AS col1 FROM tab0 cor0
----
-1960
-73
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-7933
SELECT DISTINCT 17 DIV + col2 FROM tab0 AS cor0
----
0
17
skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT 17 / + col2 FROM tab0 AS cor0
----
0
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * - col0 col1 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT DISTINCT - ( + col1 ) + + col2 AS col1 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7936
SELECT DISTINCT + ( col1 ) DIV + col1 - - col0 col0 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT + ( col1 ) / + col1 - - col0 col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL cor0.col0 + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7938
SELECT col1 + + col1 DIV col1 AS col2 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7938
SELECT col1 + + col1 / col1 AS col2 FROM tab2
----
18
32
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7939
SELECT + CAST( + col0 AS SIGNED ) * + col2 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-7939
SELECT + CAST ( + col0 AS INTEGER ) * + col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL tab2.col1 * ( ( + col0 ) ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL - + cor0.col0 * + 97 AS col1 FROM tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT ALL + col2 * - col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT + col2 * + 96 * col0 FROM tab1 AS cor0
----
15552
350208
737280
onlyif mysql # use DIV operator for integer division
query I rowsort label-7944
SELECT + + col2 DIV - 61 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7944
SELECT + + col2 / - 61 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - col0 * ( - 86 ) FROM tab2 cor0
----
602
6708
6794
onlyif mysql # use DIV operator for integer division
query I rowsort label-7946
SELECT + col1 + col2 DIV + 47 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-7946
SELECT + col1 + col2 / + 47 FROM tab0 AS cor0
----
86
92
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7947
SELECT DISTINCT + col2 + CAST( col0 AS SIGNED ) * + cor0.col2 * + col0 FROM tab2 AS cor0
----
1350
158210
237196
skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT + col2 + CAST ( col0 AS INTEGER ) * + cor0.col2 * + col0 FROM tab2 AS cor0
----
1350
158210
237196
query I rowsort
SELECT + 11 - - col2 FROM tab0 AS cor0
----
12
44
93
query I rowsort
SELECT DISTINCT cor0.col2 - + 49 AS col2 FROM tab1 AS cor0
----
47
5
8
query I rowsort
SELECT - + 50 + - col1 FROM tab2 cor0
----
-109
-67
-81
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL - col2 - - 65 FROM tab0
----
-17
32
64
query I rowsort
SELECT DISTINCT - - col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + + 9 * - col0 + + col0 AS col2 FROM tab0 cor0
----
-192
-280
-712
query I rowsort
SELECT - col1 * col2 * + col0 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - 89 FROM tab1, tab2 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7957
SELECT ALL + 54 DIV cor0.col2 + - 61 FROM tab1 AS cor0
----
-60
-61
-61
skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL + 54 / cor0.col2 + - 61 FROM tab1 AS cor0
----
-60
-61
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-7958
SELECT DISTINCT + - col1 * col2 DIV 49 + + cor0.col0 * - col2 + - col0 FROM tab0 cor0
----
-71
-7539
-873
skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT + - col1 * col2 / 49 + + cor0.col0 * - col2 + - col0 FROM tab0 cor0
----
-71
-7539
-873
query I rowsort
SELECT DISTINCT + 43 * - col0 AS col2 FROM tab1
----
-129
-2752
-3440
query I rowsort
SELECT + ( + col0 ) - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT 70 * col1 + col1 AS col0 FROM tab1
----
1846
710
923
onlyif mysql # use DIV operator for integer division
query I rowsort label-7962
SELECT DISTINCT - col1 * col1 DIV ( - col0 * col2 ) FROM tab1
----
0
4
skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - col1 * col1 / ( - col0 * col2 ) FROM tab1
----
0
4
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT col1 + + 99 * col1 FROM tab0 AS cor0
----
8600
9100
9700
query I rowsort
SELECT - tab2.col2 + + col0 * + 59 FROM tab2
----
386
4576
4623
query I rowsort
SELECT ALL + col0 * tab2.col2 AS col2 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7967
SELECT 36 * - col1 + - 26 DIV - col2 FROM tab1
----
-360
-468
-936
skipif mysql # not compatible
query I rowsort label-7967
SELECT 36 * - col1 + - 26 / - col2 FROM tab1
----
-360
-468
-936
query I rowsort
SELECT ALL col2 * - col1 * - col2 AS col1 FROM tab2
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-7969
SELECT DISTINCT - tab2.col1 * col1 DIV col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT - tab2.col1 * col1 / col1 FROM tab2
----
-17
-31
-59
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 AS cor0 WHERE NOT ( NULL ) IN ( cor0.col1 )
----
query I rowsort
SELECT ALL col0 * - col0 * tab1.col2 FROM tab1
----
-233472
-486
-614400
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 <> NULL AND NOT NULL > NULL
----
query I rowsort
SELECT - - col1 + - col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT 95 * - 94 FROM tab1
----
-8930
-8930
-8930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 + 96 col1 FROM tab2
----
126
query I rowsort
SELECT DISTINCT + ( tab1.col0 ) + + col0 * col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL - ( - 13 ) * + col1 + col0 FROM tab1
----
194
249
341
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 col2 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 + + col2 + + col0 col1 FROM tab0 cor0
----
7453
8452
9445
query I rowsort
SELECT - - 97 AS col0 FROM tab0 AS cor0
----
97
97
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7982
SELECT ALL CAST( NULL AS DECIMAL ) * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL CAST ( NULL AS REAL ) * col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 85 * - col2 FROM tab0
----
-2805
-6970
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7984
SELECT - tab1.col2 DIV + col2 col1 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7984
SELECT - tab1.col2 / + col2 col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col2 + col1 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1208
6897
99
query I rowsort
SELECT ALL - col1 * col1 + - col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT - 48 * col2 + + col1 FROM tab2 AS cor0
----
-1189
-1265
-1807
query I rowsort
SELECT + 14 * + col1 FROM tab0 AS cor0
----
1204
1274
1358
query I rowsort
SELECT DISTINCT - col2 * - col1 + + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - - 49 + - col2 AS col2 FROM tab0 AS cor0
----
-33
16
48
query I rowsort
SELECT DISTINCT col2 * cor0.col1 + + col2 * cor0.col0 FROM tab1 AS cor0
----
1566
4218
8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-7992
SELECT ALL 87 DIV + cor0.col0 + col0 - - col0 AS col2 FROM tab1 AS cor0
----
129
161
35
skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL 87 / + cor0.col0 + col0 - - col0 AS col2 FROM tab1 AS cor0
----
129
161
35
query I rowsort
SELECT - 95 * - col1 AS col0 FROM tab1 AS cor0
----
1235
2470
950
query I rowsort
SELECT - 46 + col0 * col0 FROM tab0 AS cor0
----
1179
530
7875
onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT cor1.col2 DIV - 12 + 12 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9c32f3163cd21c85e575c9dc20a1cf11
skipif mysql # not compatible
query I rowsort label-7995
SELECT cor1.col2 / - 12 + 12 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9c32f3163cd21c85e575c9dc20a1cf11
query I rowsort
SELECT - ( + 76 ) * - col0 AS col0 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT - + col1 + col1 * col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT 13 * col1 AS col1 FROM tab1
----
130
169
338
query I rowsort
SELECT - 29 + col2 AS col0 FROM tab0
----
-28
4
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col0 FROM tab2 AS cor0
----
43
query I rowsort
SELECT ALL + - ( - col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - 94 * col0 AS col0 FROM tab2 AS cor0
----
-658
-7332
-7426
query I rowsort
SELECT ALL col1 + col2 * + 50 AS col2 FROM tab2 AS cor0
----
1359
1381
1917
query I rowsort
SELECT ALL + + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + 84 * cor0.col0 FROM tab0 AS cor0
----
2016
2940
7476
query I rowsort
SELECT DISTINCT 73 * col0 AS col0 FROM tab0
----
1752
2555
6497
query I rowsort
SELECT - col2 + col0 * - col2 * + col0 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT + col0 * cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + + cor0.col1 + - cor0.col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + 38 * - col2 AS col2 FROM tab1
----
-2052
-2166
-3648
query I rowsort
SELECT DISTINCT + 32 * + col2 FROM tab0
----
1056
2624
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - cor0.col2 col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8013
SELECT DISTINCT + col1 DIV + col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT + col1 / + col1 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - cor0.col2 col2 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + 11 col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 51 + ( cor0.col2 ) col1 FROM tab2 cor0
----
1608
3035
905
query I rowsort
SELECT + + col1 + - ( - col1 ) FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 + + 56 col1 FROM tab2 AS cor0
----
87
query I rowsort
SELECT ALL col0 + 9 * + col0 FROM tab0 cor0
----
240
350
890
query I rowsort
SELECT DISTINCT 89 + col0 FROM tab1 AS cor0
----
153
169
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col1 col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + col0 * col2 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT cor0.col1 + - 36 * col1 FROM tab1 AS cor0
----
-350
-455
-910
query I rowsort
SELECT DISTINCT col2 * - cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT + - 89 * cor0.col1 + + col2 * col2 FROM tab0 cor0
----
-1375
-6565
-8632
query I rowsort
SELECT 5 + - ( col0 * - cor0.col2 ) FROM tab1 AS cor0
----
167
3653
7685
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8027
SELECT - CAST( - col0 AS SIGNED ) * - cor0.col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
skipif mysql # not compatible
query I rowsort label-8027
SELECT - CAST ( - col0 AS INTEGER ) * - cor0.col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-8028
SELECT DISTINCT + col2 * - ( col1 ) DIV - col1 + + col1 * + col2 FROM tab1
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT + col2 * - ( col1 ) / - col1 + + col1 * + col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT col1 + col0 * + 10 FROM tab2
----
101
807
839
query I rowsort
SELECT ALL col2 + 54 AS col1 FROM tab1
----
108
111
150
query I rowsort
SELECT ALL - col2 + 99 * col2 AS col1 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT + col2 * 85 + col0 * - ( col2 + cor0.col0 ) FROM tab2 AS cor0
----
-5902
-6013
2057
query I rowsort
SELECT ALL ( col2 ) + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT ALL + + col1 + cor0.col0 * col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - 78 * 58 * col0 FROM tab1 AS cor0
----
-13572
-289536
-361920
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - col2 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT 13 + + 55 FROM tab1 AS cor0
----
68
68
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT ALL + col0 * - col2 + col2 + col0 DIV - 3 FROM tab2 cor0
----
-164
-2028
-2990
skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + col0 * - col2 + col2 + col0 / - 3 FROM tab2 cor0
----
-164
-2028
-2990
query I rowsort
SELECT DISTINCT + + 85 * + ( - col1 ) - col0 FROM tab0 AS cor0
----
-7334
-7824
-8280
query I rowsort
SELECT DISTINCT - 6 * col0 AS col0 FROM tab2
----
-42
-468
-474
query I rowsort
SELECT - col0 * - col1 + 10 FROM tab0
----
2074
3405
8109
skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col0 + + CAST ( 45 AS REAL ) AS col0 FROM tab1 cor0
----
-19
-35
42
query I rowsort
SELECT + col0 * col0 + - cor0.col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT + - col1 - 30 AS col2 FROM tab1 cor0
----
-40
-43
-56
query I rowsort
SELECT DISTINCT col0 * - 55 - - col2 FROM tab1 AS cor0
----
-111
-3463
-4304
query I rowsort
SELECT - col2 - - 78 FROM tab0 AS cor0
----
-4
45
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT - col1 + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-15
-20
-28
skipif mysql # not compatible
query I rowsort label-8048
SELECT - col1 + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-15
-20
-28
query I rowsort
SELECT - col1 + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL col2 * col1 * - ( ( - col2 ) ) FROM tab2
----
22599
24548
39884
query I rowsort
SELECT - 47 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT ALL - 6 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8053
SELECT ALL + ( col2 * - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL + ( col2 * - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col1 * col1 * col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-8055
SELECT ALL col0 + - ( - cor0.col1 ) DIV - col1 AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL col0 + - ( - cor0.col1 ) / - col1 AS col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT 17 AS col1 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 27 * + col2 col0 FROM tab1 AS cor0
----
-1432
-1529
-2579
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 ALL + + 18 + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
53
7316
810
query I rowsort
SELECT ALL - 1 * + cor0.col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT 24 - 10 * col0 AS col2 FROM tab0 AS cor0
----
-216
-326
-866
onlyif mysql # use DIV operator for integer division
query I rowsort label-8062
SELECT ALL - col1 + - ( + col0 ) DIV - 57 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-188
-3657
-7692
skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL - col1 + - ( + col0 ) / - 57 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-188
-3657
-7692
query I rowsort
SELECT ALL + 29 AS col2 FROM tab1 AS cor0
----
29
29
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * 81 col1 FROM tab1 cor0
----
243
5184
6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * + col2 + col2 * + 46 col1 FROM tab2 cor0
----
2782
2889
4066
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + + 11 col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
-49
query I rowsort
SELECT DISTINCT - ( col2 ) * + ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT 43 + + col2 AS col0 FROM tab0 cor0
----
125
44
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8069
SELECT - col1 * col1 + CAST( - 55 AS SIGNED ) * + col2 * 2 FROM tab2 AS cor0
----
-3931
-4469
-6341
skipif mysql # not compatible
query I rowsort label-8069
SELECT - col1 * col1 + CAST ( - 55 AS INTEGER ) * + col2 * 2 FROM tab2 AS cor0
----
-3931
-4469
-6341
onlyif mysql # use DIV operator for integer division
query I rowsort label-8070
SELECT - + col2 DIV col0 AS col0 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8070
SELECT - + col2 / col0 AS col0 FROM tab0 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + 72 col0 FROM tab0 AS cor0
----
169
2910
7534
query I rowsort
SELECT - - col2 * - 31 AS col1 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT ALL 24 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - col2 * + ( + 80 ) AS col1 FROM tab0 AS cor0
----
-2640
-6560
-80
query I rowsort
SELECT + cor0.col1 * 73 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 80f1b3b22d8186ddc93cf5245cbd6b38
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT 42 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8078
SELECT + CAST( NULL AS SIGNED ) - + 30 / - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8078
SELECT + CAST ( NULL AS INTEGER ) - + 30 / - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8079
SELECT DISTINCT + - 95 * + col1 DIV col1 FROM tab0 AS cor0
----
-95
skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT + - 95 * + col1 / col1 FROM tab0 AS cor0
----
-95
query I rowsort
SELECT ALL 87 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT + tab1.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - ( col2 + tab0.col0 ) AS col0 FROM tab0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * cor0.col1 + - 85 + 6 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a066ea652fcc073e326b1cea22e2af11
query I rowsort
SELECT - - 91 + cor0.col0 AS col2 FROM tab1 cor0
----
155
171
94
query I rowsort
SELECT 28 * tab2.col2 FROM tab2
----
1064
728
756
query I rowsort
SELECT DISTINCT + ( + col0 ) * + col0 + col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL - - ( + col2 ) * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT cor0.col2 + col2 * + col2 + + 21 FROM tab1 AS cor0
----
2991
3327
9333
query I rowsort
SELECT + col0 * 59 - col2 AS col2 FROM tab2 AS cor0
----
386
4576
4623
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + - tab2.col1 * cor0.col1 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cae2a1a7ed489eab6dd26029b17cfaf3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8092
SELECT ALL - col1 DIV 91 FROM tab0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL - col1 / 91 FROM tab0
----
-1
-1
0
query I rowsort
SELECT ALL 63 + - tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ca0c5230e2be2956c652f0ed5128397d
query I rowsort
SELECT ( + 66 ) * col1 AS col2 FROM tab0
----
5676
6006
6402
query I rowsort
SELECT DISTINCT col1 + - 76 AS col2 FROM tab0
----
10
15
21
query I rowsort
SELECT col1 + col2 * - col1 + - col2 AS col1 FROM tab1
----
-1331
-1432
-617
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8097
SELECT col1 * col1 / - col2 + + col1 * + CAST( NULL AS DECIMAL ) 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-8097
SELECT col1 * col1 / - col2 + + col1 * + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 * + ( 67 ) + - col2 + - col1 FROM tab2 AS cor0
----
411
5141
5238
query I rowsort
SELECT - col0 - 97 AS col1 FROM tab2 AS cor0
----
-104
-175
-176
query I rowsort
SELECT DISTINCT col0 + + 39 FROM tab1
----
103
119
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8101
SELECT tab0.col1 * - col2 * col0 + + 19 * 15 DIV + tab0.col0 FROM tab0
----
-3387
-664115
-68101
skipif mysql # not compatible
query I rowsort label-8101
SELECT tab0.col1 * - col2 * col0 + + 19 * 15 / + tab0.col0 FROM tab0
----
-3387
-664115
-68101
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL + 35 * col2 * col2 + ( - tab0.col1 ) * + col1 + - ( col1 * + tab0.col1 ) AS col1 FROM tab0
----
-18783
218778
23323
query I rowsort
SELECT + tab0.col2 * + col2 + tab0.col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT - col2 * + 63 * - col1 AS col1 FROM tab0
----
178794
470106
6111
query I rowsort
SELECT + ( + col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT DISTINCT CAST( NULL AS SIGNED ) * 17 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 17 AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8108
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8109
SELECT ALL col0 - - col0 / CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL col0 - - col0 / CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 92 - col0 FROM tab1
----
12
28
89
query I rowsort
SELECT - 94 * col0 FROM tab2 cor0
----
-658
-7332
-7426
query I rowsort
SELECT DISTINCT cor0.col0 + col2 AS col0 FROM tab2 cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * CAST ( col2 AS REAL ) - + col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT col2 * - col0 + - cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
-238
-8112
-9243
onlyif mysql # use DIV operator for integer division
query I rowsort label-8115
SELECT DISTINCT - col1 * col2 * - col2 + cor0.col2 DIV 91 AS col1 FROM tab1 AS cor0
----
119809
32490
75816
skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT - col1 * col2 * - col2 + cor0.col2 / 91 AS col1 FROM tab1 AS cor0
----
119809
32490
75816
query I rowsort
SELECT - col1 + + 21 FROM tab0 AS cor0
----
-65
-70
-76
query I rowsort
SELECT ALL - cor0.col0 - + col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT - col2 * - ( col2 ) + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + col2 - + col2 * col0 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT col1 * - 25 + col0 FROM tab0 AS cor0
----
-2126
-2186
-2390
query I rowsort
SELECT - + col0 - + 81 FROM tab2 AS cor0
----
-159
-160
-88
query I rowsort
SELECT ALL + 26 * col0 FROM tab1
----
1664
2080
78
query I rowsort
SELECT 92 * + col1 * col1 AS col0 FROM tab1
----
15548
62192
9200
query I rowsort
SELECT 13 * + col2 FROM tab0
----
1066
13
429
query I rowsort
SELECT DISTINCT - - col0 * 9 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT ALL col1 - + col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT 23 * col1 FROM tab1
----
230
299
598
query I rowsort
SELECT col0 * 53 + 39 + cor0.col1 FROM tab0 AS cor0
----
1397
1991
4847
query I rowsort
SELECT + col2 - + 28 * - col1 FROM tab0 cor0
----
2441
2630
2717
query I rowsort
SELECT DISTINCT - + col2 * col2 + 47 AS col1 FROM tab0 AS cor0
----
-1042
-6677
46
query I rowsort
SELECT col0 + col0 * col1 * - col2 FROM tab2 AS cor0
----
-119574
-50955
-5852
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8132
SELECT ALL + col2 / + CAST( NULL AS SIGNED ) + col2 * - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL + col2 / + CAST ( NULL AS INTEGER ) + col2 * - col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( 86 ) + + col2 * 93 * - 35 col0 FROM tab0
----
-104577
-259858
-3169
query I rowsort
SELECT ALL col2 * 13 AS col0 FROM tab2 AS cor0
----
338
351
494
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8135
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) / - cor0.col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) / - cor0.col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 * - col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL col2 * cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 61 + + col2 col2 FROM tab1 AS cor0
----
-1532
-553
-697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 + 69 - + col0 * + col0 col1 FROM tab2
----
-5956
-6155
51
query I rowsort
SELECT DISTINCT col1 + col0 * col2 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + - 7 * - col1 AS col0 FROM tab1 cor0
----
182
70
91
query I rowsort
SELECT ALL + + cor0.col0 - 47 FROM tab2 AS cor0
----
-40
31
32
query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab0 cor0
----
34
query I rowsort
SELECT DISTINCT - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT 36 * - col1 AS col0 FROM tab1 AS cor0
----
-360
-468
-936
query I rowsort
SELECT + col2 + - 72 + col1 AS col2 FROM tab2
----
-14
-17
13
query I rowsort
SELECT ALL col0 + - col2 + + tab2.col1 AS col1 FROM tab2
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-8149
SELECT DISTINCT + col0 DIV col0 + - tab1.col2 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + col0 / col0 + - tab1.col2 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT ALL - col0 * + 66 - + col1 AS col1 FROM tab0
----
-1670
-2407
-5965
query I rowsort
SELECT ALL tab1.col2 + 35 AS col1 FROM tab1
----
131
89
92
query I rowsort
SELECT ALL col2 * col2 + col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT ALL + col0 + 25 + - col1 * + col0 * tab2.col1 FROM tab2
----
-22727
-271415
-6695
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab2, tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 + 54 AS col2 FROM tab0 AS cor0
----
107
150
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8156
SELECT col1 + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8156
SELECT col1 + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + cor0.col2 * col1 * + ( + 72 ) FROM tab0 AS cor0
----
204336
537264
6984
query I rowsort
SELECT DISTINCT + - col0 + col1 * - 64 AS col1 FROM tab0 AS cor0
----
-5528
-5913
-6243
query I rowsort
SELECT + 41 + - col2 * + col0 FROM tab0 cor0
----
-7257
-751
6
query I rowsort
SELECT ALL + col0 * + col2 * + cor0.col2 FROM tab2 cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-8162
SELECT + - col1 + col1 * col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-8162
SELECT + - col1 + col1 * col1 / - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - cor1.col0 * + 54 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-1296
-1890
-4806
query I rowsort
SELECT ALL 40 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d70c4f8bf8832b181754c1f39fe31834
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 86 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-5998
-6155
37
query I rowsort
SELECT col0 * + col1 + col1 AS col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - - ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8171
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 71 + + cor0.col0 FROM tab2 AS cor0
----
149
150
78
query I rowsort
SELECT + ( 49 ) + + col1 + col2 FROM tab1 cor0
----
116
129
158
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8175
SELECT col2 DIV ( col0 ) AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8175
SELECT col2 / ( col0 ) AS col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT col2 + + ( - col2 ) FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8177
SELECT col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8177
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + col1 + col2 FROM tab2
----
111
85
93
query I rowsort
SELECT DISTINCT col0 * col2 * col1 + col2 * + col1 FROM tab1
----
101088
37050
5616
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + CAST ( 35 + + col0 AS REAL ) AS col0 FROM tab2
----
131
172
73
query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab0, tab1 AS cor0
----
-24
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT + 65 + + col1 FROM tab0 AS cor0
----
151
156
162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8184
SELECT DISTINCT 72 + - col1 * + col2 + + CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1384
-495
-758
skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT 72 + - col1 * + col2 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1384
-495
-758
query I rowsort
SELECT + col0 * - col2 + cor0.col2 * 55 AS col2 FROM tab1 AS cor0
----
-2400
-513
2808
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8186
SELECT ALL - - CAST( + col2 AS SIGNED ) + col1 AS col0 FROM tab2 cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - - CAST ( + col2 AS INTEGER ) + col1 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - cor0.col1 * - col0 + - col1 * col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * + 76 + - col2 FROM tab2 AS cor0
----
1950
2025
2850
query I rowsort
SELECT ( + col2 * col0 ) + + col2 AS col2 FROM tab2
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8190
SELECT - CAST( + 61 AS SIGNED ) col0 FROM tab2
----
-61
-61
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8190
SELECT - CAST ( + 61 AS INTEGER ) col0 FROM tab2
----
-61
-61
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-8191
SELECT DISTINCT - col0 DIV col2 + - col1 AS col2 FROM tab0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT - col0 / col2 + - col1 AS col2 FROM tab0
----
-132
-86
-92
query I rowsort
SELECT + col0 - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT - col0 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + - col2 * - col2 - - col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL + - col0 * - 89 + + 22 * col2 * + ( + col0 ) AS col2 FROM tab2 cor0
----
4781
51558
73075
query I rowsort
SELECT + col1 - ( - col0 * + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + cor0.col2 - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 48 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col0 col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + - col1 * - col2 + col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + - col1 * ( 29 ) - col1 FROM tab1 AS cor0
----
-300
-390
-780
query I rowsort
SELECT ALL - col2 * ( col0 ) AS col0 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8204
SELECT + - col2 + 89 DIV col2 FROM tab1 AS cor0
----
-53
-56
-96
skipif mysql # not compatible
query I rowsort label-8204
SELECT + - col2 + 89 / col2 FROM tab1 AS cor0
----
-53
-56
-96
query I rowsort
SELECT + col2 * - 67 - col1 FROM tab1 AS cor0
----
-3644
-3829
-6445
query I rowsort
SELECT + - ( + ( col0 ) ) * col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + + cor0.col2 + 87 FROM tab2, tab0 AS cor0
----
9 values hashing to ce23701de365575718a5e1e526d5ab2b
query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab2, tab0 cor0
----
48
query I rowsort
SELECT - col2 - col0 * col2 * - cor0.col2 FROM tab0 cor0
----
26103
34
598354
query I rowsort
SELECT DISTINCT - + 81 + col1 AS col2 FROM tab0 AS cor0
----
10
16
5
query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + 11 + - col2 AS col0 FROM tab2 AS cor0
----
-15
-16
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8213
SELECT ALL + CAST( NULL AS DECIMAL ) * - ( col0 + - ( - col2 ) ) * tab1.col1 col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL + CAST ( NULL AS REAL ) * - ( col0 + - ( - col2 ) ) * tab1.col1 col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8214
SELECT 50 DIV col2 FROM tab0 AS cor0
----
0
1
50
skipif mysql # not compatible
query I rowsort label-8214
SELECT 50 / col2 FROM tab0 AS cor0
----
0
1
50
query I rowsort
SELECT + col2 * cor0.col1 - - col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col0 - - ( col1 * + col2 ) AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - - col2 - - col0 * cor0.col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - - col0 * col2 * - col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - - 30 * - col0 + ( 84 ) - + col0 AS col0 FROM tab0 AS cor0
----
-1001
-2675
-660
query I rowsort
SELECT ALL col0 + col1 + + col2 FROM tab2 cor0
----
134
163
65
query I rowsort
SELECT ALL + 88 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2, tab2 cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT ALL tab2.col0 * - tab2.col2 + + 11 + col0 FROM tab2
----
-171
-1939
-2912
query I rowsort
SELECT + 57 + - tab1.col0 FROM tab1
----
-23
-7
54
query I rowsort
SELECT ALL 16 - col2 AS col0 FROM tab2
----
-10
-11
-22
query I rowsort
SELECT ALL - - col1 * - col1 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8227
SELECT - col1 + col0 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-17
141
97
skipif mysql # not compatible
query I rowsort label-8227
SELECT - col1 + col0 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT + 29 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-6
-7269
-763
onlyif mysql # use DIV operator for integer division
query I rowsort label-8229
SELECT + col0 + col0 DIV 42 col1 FROM tab2 AS cor0
----
7
79
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8229
SELECT + col0 + col0 / 42 col1 FROM tab2 AS cor0
----
7
79
80
query I rowsort
SELECT - 43 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT ALL - 83 FROM tab2, tab1 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT + cor0.col2 * 35 * - col2 FROM tab1 AS cor0
----
-102060
-113715
-322560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8233
SELECT - CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8233
SELECT - CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - + 75 AS col2 FROM tab1 AS cor0
----
-75
-75
-75
query I rowsort
SELECT ( - col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 + col2 + + col2 AS col0 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT ( - ( col0 ) ) * + 17 FROM tab0 cor0
----
-1513
-408
-595
query I rowsort
SELECT + 86 * + 8 FROM tab1 AS cor0
----
688
688
688
query I rowsort
SELECT col0 + col2 * + cor0.col1 FROM tab1 cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT DISTINCT + col1 DIV - col0 + + col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + col1 / - col0 + + col0 FROM tab2 AS cor0
----
3
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT 99 DIV col0 + tab1.col2 AS col1 FROM tab1
----
58
87
97
skipif mysql # not compatible
query I rowsort label-8241
SELECT 99 / col0 + tab1.col2 AS col1 FROM tab1
----
58
87
97
query I rowsort
SELECT col1 + + tab2.col0 * + col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT - 44 FROM tab1, tab0 AS cor0
----
-44
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL + + 38 * - 1 FROM tab1 AS cor0
----
-38
-38
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8246
SELECT ALL + CAST( 32 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1888
544
992
skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + CAST ( 32 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT ALL col0 - cor0.col2 * col1 * col2 AS col2 FROM tab2 cor0
----
-22592
-24469
-39806
query I rowsort
SELECT ALL + col1 * + col0 + ( 99 ) - + col2 AS col2 FROM tab1 AS cor0
----
1043
123
682
query I rowsort
SELECT DISTINCT + - 39 * + col2 FROM tab1 AS cor0
----
-2106
-2223
-3744
query I rowsort
SELECT ALL cor0.col1 + cor0.col2 * 71 AS col0 FROM tab2 AS cor0
----
1905
1948
2715
query I rowsort
SELECT ALL + col1 * + col0 * ( col1 ) + + col2 FROM tab1 cor0
----
13616
2082
6457
query I rowsort
SELECT DISTINCT - 64 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
-3430
-3638
-6131
query I rowsort
SELECT ALL 97 * col0 + 21 FROM tab1 AS cor0
----
312
6229
7781
query I rowsort
SELECT DISTINCT + + 93 * col0 + + ( - 92 ) FROM tab0 AS cor0
----
2140
3163
8185
query I rowsort
SELECT DISTINCT + tab1.col1 * tab1.col1 AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT - - cor0.col1 + + col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT col0 * - 8 FROM tab1 AS cor0
----
-24
-512
-640
query I rowsort
SELECT col2 * - col0 * col2 FROM tab0 cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-8259
SELECT - + col0 + - col1 DIV + ( col0 ) FROM tab2 AS cor0
----
-11
-78
-79
skipif mysql # not compatible
query I rowsort label-8259
SELECT - + col0 + - col1 / + ( col0 ) FROM tab2 AS cor0
----
-11
-78
-79
query I rowsort
SELECT DISTINCT - + col2 + + ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT - + col2 + ( - col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8262
SELECT col1 + CAST( + 19 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
1720
1820
1940
skipif mysql # not compatible
query I rowsort label-8262
SELECT col1 + CAST ( + 19 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
1720
1820
1940
query I rowsort
SELECT - + col0 * - col0 + - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
-2816
-2907
847
onlyif mysql # use DIV operator for integer division
query I rowsort label-8264
SELECT + col2 + + cor0.col2 DIV 14 AS col0 FROM tab2 AS cor0
----
27
28
40
skipif mysql # not compatible
query I rowsort label-8264
SELECT + col2 + + cor0.col2 / 14 AS col0 FROM tab2 AS cor0
----
27
28
40
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - ( col2 ) col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + 25 * 99 * - col0 AS col2 FROM tab1 AS cor0
----
-158343
-197904
-7371
query I rowsort
SELECT + cor0.col0 * + 31 + + col0 * + col1 FROM tab2 AS cor0
----
3792
434
7020
query I rowsort
SELECT ALL + + col1 + col1 * + 99 AS col1 FROM tab2 AS cor0
----
1700
3100
5900
query I rowsort
SELECT DISTINCT - + col1 + col2 * + 96 FROM tab1 AS cor0
----
5158
5462
9203
query I rowsort
SELECT + - col2 + - cor0.col0 AS col1 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT ALL col1 * + 3 AS col0 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT DISTINCT ( - 94 ) + col0 * - 91 * - 81 + - col1 AS col1 FROM tab2 AS cor0
----
51472
574785
582198
query I rowsort
SELECT DISTINCT - - 54 AS col1 FROM tab0 AS cor0
----
54
query I rowsort
SELECT col2 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT + col1 - 98 * tab1.col2 AS col1 FROM tab1
----
-5266
-5576
-9395
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # use DIV operator for integer division
query I rowsort label-8278
SELECT - 96 DIV - col2 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8278
SELECT - 96 / - col2 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT cor0.col1 * col2 * col2 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-8280
SELECT cor0.col1 * - col2 + - col1 DIV + 45 + - col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
skipif mysql # not compatible
query I rowsort label-8280
SELECT cor0.col1 * - col2 + - col1 / + 45 + - col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL col1 * col0 + ( 57 ) FROM tab1 AS cor0
----
1097
135
697
query I rowsort
SELECT - col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col0 + - 53 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
30274
66224
74415
query I rowsort
SELECT + - col2 * col0 + + col1 * - col1 * col2 + col0 FROM tab2 cor0
----
-13905
-26129
-92456
query I rowsort
SELECT - ( - col1 ) + 12 FROM tab1
----
22
25
38
query I rowsort
SELECT col0 * col1 * + ( 15 ) AS col2 FROM tab1
----
1170
15600
9600
query I rowsort
SELECT + + col1 * + cor0.col2 + col0 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT + - col0 * 34 FROM tab1 AS cor0
----
-102
-2176
-2720
query I rowsort
SELECT ALL - ( 70 ) + col0 FROM tab0 AS cor0
----
-35
-46
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT ALL col1 + col1 DIV - col0 FROM tab0 cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL col1 + col1 / - col0 FROM tab0 cor0
----
83
90
95
query I rowsort
SELECT DISTINCT + col2 * + col1 * + col2 AS col1 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT col2 + - 44 AS col2 FROM tab0
----
-11
-43
38
query I rowsort
SELECT + + ( col0 ) AS col1 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8295
SELECT - col1 + col1 DIV col0 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-8295
SELECT - col1 + col1 / col0 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT DISTINCT 72 + - 42 * col1 FROM tab1
----
-1020
-348
-474
query I rowsort
SELECT - - col2 * + col2 - col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-8298
SELECT - - col2 * col1 - + col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8298
SELECT - - col2 * col1 - + col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col1 * + col2 - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT col0 * col1 + + cor0.col1 * 51 FROM tab1 AS cor0
----
1150
1404
1703
query I rowsort
SELECT ALL - - 74 * - 80 AS col1 FROM tab1 AS cor0
----
-5920
-5920
-5920
query I rowsort
SELECT - ( - col0 + - col1 ) AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT + 49 * col2 FROM tab0
----
1617
4018
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * - col2 col1 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT + - cor0.col1 + - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + col2 col0 FROM tab1 cor0
----
127
85
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col1 * - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT col1 * - col0 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL ( - col2 + + col0 * - col0 ) AS col1 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT col2 + + col1 + cor0.col1 * col0 * col0 FROM tab2 AS cor0
----
106152
1577
359041
query I rowsort
SELECT + col0 * - col1 + + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1945
-3297
-7926
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8313
SELECT + + col0 * CAST( NULL AS SIGNED ) + - ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8313
SELECT + + col0 * CAST ( NULL AS INTEGER ) + - ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 - + 39 FROM tab2 AS cor0
----
-1
-12
-13
query I rowsort
SELECT col1 * col0 * ( - col1 ) FROM tab2 cor0
----
-22831
-271518
-6727
query I rowsort
SELECT - col1 + + 62 AS col2 FROM tab0 AS cor0
----
-24
-29
-35
query I rowsort
SELECT 96 * ( + cor0.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 40abdfefbb76d43d86389529789c402d
query I rowsort
SELECT - 50 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT 20 AS col0 FROM tab2
----
20
20
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - cor0.col0 * 42 AS col2 FROM tab0 cor0
----
-1008
-1470
-3738
query I rowsort
SELECT - + col2 * + ( col1 ) FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col1 * - 29 FROM tab2 AS cor0
----
-1711
-493
-899
query I rowsort
SELECT ALL + + col0 * col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + - col0 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT + col1 + 96 * cor0.col1 AS col0 FROM tab0 AS cor0
----
8342
8827
9409
query I rowsort
SELECT DISTINCT + col2 * 17 AS col2 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT - + col0 + + col2 * 28 FROM tab0 AS cor0
----
-7
2207
900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8329
SELECT ALL - col2 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - col2 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col0 * ( + ( col0 ) ) FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + cor0.col0 col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + cor0.col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL - - ( col0 ) + col0 FROM tab1 cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT ALL + ( - col2 ) DIV + cor0.col1 - col0 FROM tab2 AS cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL + ( - col2 ) / + cor0.col1 - col0 FROM tab2 AS cor0
----
-7
-78
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8335
SELECT ALL - CAST( col0 AS SIGNED ) * col2 col2 FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - CAST ( col0 AS INTEGER ) * col2 col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - 74 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
1983
2029
2829
onlyif mysql # use DIV operator for integer division
query I rowsort label-8337
SELECT DISTINCT col1 DIV col0 + + col0 AS col2 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT col1 / col0 + + col0 AS col2 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT - 31 * + ( col0 ) - + 93 * - cor0.col0 FROM tab2 AS cor0
----
434
4836
4898
query I rowsort
SELECT DISTINCT col2 + col1 * col0 - ( + col2 ) * + col1 FROM tab2 AS cor0
----
-593
3094
735
query I rowsort
SELECT 60 * - 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 6e1c114e648d44a5d5feff6de49c7203
query I rowsort
SELECT - + 63 * + col1 AS col2 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT 86 + - col0 * + col0 * - 74 FROM tab1 AS cor0
----
303190
473686
752
onlyif mysql # use DIV operator for integer division
query I rowsort label-8343
SELECT ALL + - col0 + + col2 DIV + col2 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL + - col0 + + col2 / + col2 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT + 51 * col1 AS col2 FROM tab1
----
1326
510
663
query I rowsort
SELECT cor1.col2 AS col2 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab0.col2 col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ( col2 ) + - 92 FROM tab1
----
-35
-38
4
query I rowsort
SELECT DISTINCT - 97 * + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-291
-6208
-7760
query I rowsort
SELECT DISTINCT + col0 + col0 + tab1.col0 * col2 * + tab1.col0 AS col0 FROM tab1
----
233600
492
614560
query I rowsort
SELECT + col2 * 23 FROM tab0 cor0
----
1886
23
759
query I rowsort
SELECT + 16 * + cor0.col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 99e649ce62cd6d43c9819f506dba3c86
query I rowsort
SELECT ALL 15 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
243 values hashing to 81e3dd730ac65459b3cfedb9321b6b6e
query I rowsort
SELECT + col0 + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT 20 + tab2.col1 AS col0 FROM tab2
----
37
51
79
query I rowsort
SELECT ALL + 3 FROM tab0, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-8356
SELECT ALL col0 DIV 83 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL col0 / 83 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT col1 * col0 + 18 * + col2 + - ( + cor0.col0 ) * + col1 FROM tab0 AS cor0
----
1476
18
594
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 84 col1 FROM tab1 AS cor0
----
1092
2184
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 + - col1 * - col0 col0 FROM tab2
----
1323
197
4582
query I rowsort
SELECT ( + col2 * col1 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + + 29 + col1 FROM tab2 AS cor0
----
46
60
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8362
SELECT - CAST( NULL AS SIGNED ) - - ( cor0.col1 ) * 91 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8362
SELECT - CAST ( NULL AS INTEGER ) - - ( cor0.col1 ) * 91 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col2 FROM tab2 AS cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT + 85 + col1 AS col0 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT ALL - 98 * col1 + + col0 FROM tab0 AS cor0
----
-8404
-8829
-9471
query I rowsort
SELECT DISTINCT + + 21 AS col2 FROM tab1 AS cor0
----
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + col1 col2 FROM tab1 AS cor0
----
56
59
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8368
SELECT DISTINCT - cor0.col0 * + col2 * ( + 50 ) + + col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT - cor0.col0 * + col2 * ( + 50 ) + + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col2 * + col2 + - 67 FROM tab2 AS cor0
----
1377
609
662
query I rowsort
SELECT DISTINCT + 79 + col1 AS col1 FROM tab0 AS cor0
----
165
170
176
query I rowsort
SELECT + + 51 - col0 AS col2 FROM tab0 AS cor0
----
-38
16
27
query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL - 67 * col1 + + ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-5729
-6015
-6498
onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT DISTINCT - + 46 DIV + cor0.col0 - 50 AS col2 FROM tab1 cor0
----
-50
-65
skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT - + 46 / + cor0.col0 - 50 AS col2 FROM tab1 cor0
----
-50
-65
query I rowsort
SELECT ( + col2 ) * - 16 + - col2 AS col1 FROM tab2 cor0
----
-442
-459
-646
query I rowsort
SELECT ALL cor0.col1 + + cor0.col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + tab2.col1 + tab2.col0 * + col1 FROM tab2
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-8378
SELECT ALL + col2 DIV col0 + col2 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL + col2 / col0 + col2 FROM tab1
----
57
72
97
query I rowsort
SELECT ( cor0.col0 ) + col2 * 26 FROM tab1 AS cor0
----
1407
1546
2576
query I rowsort
SELECT - - 35 AS col2 FROM tab2 cor0
----
35
35
35
query I rowsort
SELECT 8 + 37 * - col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
23910
30977
56766
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 * + cor0.col2 + 67 * + col2 col2 FROM tab0 AS cor0
----
11972
146
4818
onlyif mysql # use DIV operator for integer division
query I rowsort label-8383
SELECT DISTINCT + ( - col1 ) DIV col0 FROM tab2 cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT + ( - col1 ) / col0 FROM tab2 cor0
----
-4
0
query I rowsort
SELECT + col0 - cor0.col2 * ( - 30 * col2 + - 57 ) AS col0 FROM tab2 AS cor0
----
21840
23416
45565
query I rowsort
SELECT + + ( col2 ) * + 25 FROM tab2 AS cor0
----
650
675
950
query I rowsort
SELECT DISTINCT ( cor0.col2 ) * 30 + - col1 * col1 FROM tab2 AS cor0
----
-151
-2701
851
onlyif mysql # use DIV operator for integer division
query I rowsort label-8387
SELECT ALL - ( + col1 ) DIV - 84 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - ( + col1 ) / - 84 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 8 * col0 + - 12 FROM tab0 cor0
----
180
268
700
query I rowsort
SELECT ALL + - 39 * + col1 AS col0 FROM tab2 cor0
----
-1209
-2301
-663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8390
SELECT - + 18 * col0 - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8390
SELECT - + 18 * col0 - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * + cor0.col2 + - 86 * - ( col2 + + 74 ) AS col1 FROM tab1 AS cor0
----
5404
8017
8092
query I rowsort
SELECT + - 59 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-123
-139
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8393
SELECT - col0 + CAST( NULL AS SIGNED ) * col1 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8393
SELECT - col0 + CAST ( NULL AS INTEGER ) * col1 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * + ( ( + col2 ) ) FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8395
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8396
SELECT + col1 * col0 DIV col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8396
SELECT + col1 * col0 / col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8397
SELECT col0 DIV + 47 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8397
SELECT col0 / + 47 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT col2 * + col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1242
3078
6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * 36 col0 FROM tab1 cor0
----
1944
2052
3456
query I rowsort
SELECT - col0 + - col0 * + cor0.col0 * + col2 FROM tab1 AS cor0
----
-233536
-489
-614480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col1 + + 47 col0 FROM tab0 AS cor0
----
144
2885
7509
query I rowsort
SELECT DISTINCT + 95 FROM tab0, tab1 cor0
----
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 * - cor0.col2 col1 FROM tab0 AS cor0
----
198
492
6
query I rowsort
SELECT - + 11 AS col0 FROM tab1 AS cor0
----
-11
-11
-11
query I rowsort
SELECT + col0 + ( col2 ) * col2 AS col1 FROM tab0
----
1113
36
6813
query I rowsort
SELECT ALL + col1 * + col2 AS col2 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( col2 ) col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - col2 + col1 * cor0.col2 * ( cor0.col0 * - col1 ) AS col0 FROM tab1 AS cor0
----
-109458
-1297824
-364743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8409
SELECT + - CAST( - col2 AS SIGNED ) + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
skipif mysql # not compatible
query I rowsort label-8409
SELECT + - CAST ( - col2 AS INTEGER ) + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col0 * + 84 AS col1 FROM tab2
----
588
6552
6636
query I rowsort
SELECT + col2 * + 20 + col1 AS col1 FROM tab1 AS cor0
----
1106
1150
1933
query I rowsort
SELECT DISTINCT + 42 - + col2 * ( 70 ) AS col1 FROM tab0 AS cor0
----
-2268
-28
-5698
query I rowsort
SELECT ALL + col2 * - col2 + + 76 * col1 AS col0 FROM tab2 cor0
----
-152
1627
3808
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 * - col1 AS col2 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + - 41 * cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-1066
-410
-533
query I rowsort
SELECT + col1 * 93 AS col1 FROM tab0 cor0
----
7998
8463
9021
query I rowsort
SELECT cor0.col2 * + 27 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1f939dc89697ad072dddfacfe2e2eebb
query I rowsort
SELECT ALL + tab2.col0 * + 27 * - tab2.col1 FROM tab2
----
-124254
-36261
-5859
query I rowsort
SELECT ALL tab0.col0 * + 65 AS col0 FROM tab0
----
1560
2275
5785
query I rowsort
SELECT + - 55 - - cor0.col1 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 4c05625dd2280bacbaaa683e1865e538
query I rowsort
SELECT + col2 + col1 * - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT + - col0 + col0 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col0 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-8425
SELECT ALL - col1 DIV + col0 + - col0 * col2 + tab1.col0 * col1 AS col0 FROM tab1
----
-3008
-6640
-92
skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - col1 / + col0 + - col0 * col2 + tab1.col0 * col1 AS col0 FROM tab1
----
-3008
-6640
-92
query I rowsort
SELECT ALL col1 + - col1 * col1 * - col0 FROM tab1
----
13533
2054
6410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + - col2 * col1 col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT + col1 * + col0 + + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN cor0.col1 * col1 * + col1 AND ( - col0 * - col0 ) OR NOT ( + col1 + + cor0.col1 - - col2 ) NOT IN ( + cor0.col2 )
----
query I rowsort
SELECT ALL - cor0.col2 + + col0 * col1 * + col0 FROM tab0 AS cor0
----
118824
49503
720729
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 * + col0 )
----
query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL cor0.col0 - + col0 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col2 + + col1 + - col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1357
1484
637
onlyif mysql # use DIV operator for integer division
query I rowsort label-8435
SELECT + col0 * col0 + col2 * col0 DIV - col1 - cor0.col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
1226
568
7842
skipif mysql # not compatible
query I rowsort label-8435
SELECT + col0 * col0 + col2 * col0 / - col1 - cor0.col1 / - col1 AS col2 FROM tab0 AS cor0
----
1226
568
7842
onlyif mysql # use DIV operator for integer division
query I rowsort label-8436
SELECT ALL col2 + - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL col2 + - col2 / - col2 AS col1 FROM tab1 AS cor0
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8437
SELECT col1 + col2 * cor0.col2 + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
skipif mysql # not compatible
query I rowsort label-8437
SELECT col1 + col2 * cor0.col2 + col1 / + col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT + col2 * col0 + col1 AS col0 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT ALL + cor0.col2 * - col1 * col1 + col0 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT DISTINCT col1 - col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT col1 * col2 + col2 * + col0 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT ALL - col2 - col0 * - col0 FROM tab1 AS cor0
----
-45
4039
6304
onlyif mysql # use DIV operator for integer division
query I rowsort label-8443
SELECT ALL col1 + col2 DIV col2 + + col0 FROM tab0
----
111
133
181
skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL col1 + col2 / col2 + + col0 FROM tab0
----
111
133
181
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8445
SELECT 59 DIV col0 FROM tab1 AS cor0
----
0
0
19
skipif mysql # not compatible
query I rowsort label-8445
SELECT 59 / col0 FROM tab1 AS cor0
----
0
0
19
query I rowsort
SELECT DISTINCT + - cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8447
SELECT DISTINCT cor0.col0 + - col2 DIV CAST( 1 AS SIGNED ) AS col2 FROM tab2 cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT cor0.col0 + - col2 / CAST ( 1 AS INTEGER ) AS col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL col1 * col2 + - col0 * + tab2.col1 * col0 + + col0 AS col1 FROM tab2
----
-105372
-357344
-675
query I rowsort
SELECT DISTINCT + col1 + tab1.col2 + col1 FROM tab1
----
106
122
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 + col2 col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL col0 + col1 + col1 AS col1 FROM tab2
----
113
196
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-8452
SELECT ALL - col1 * col0 DIV + col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL - col1 * col0 / + col0 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 - col0 col1 FROM tab2
----
-26
-3
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-8454
SELECT DISTINCT - col2 + col2 DIV col2 + - col0 FROM tab0
----
-170
-35
-56
skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT - col2 + col2 / col2 + - col0 FROM tab0
----
-170
-35
-56
query I rowsort
SELECT ALL + col2 - col1 AS col1 FROM tab2 WHERE + col0 * col1 - + col0 BETWEEN NULL AND ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8456
SELECT - col1 - + col2 DIV + col2 AS col0 FROM tab1
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-8456
SELECT - col1 - + col2 / + col2 AS col0 FROM tab1
----
-11
-14
-27
query I rowsort
SELECT + 73 * col2 AS col1 FROM tab2
----
1898
1971
2774
query I rowsort
SELECT ALL + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col1 * col0 * + ( 15 * - col1 ) + ( cor0.col0 ) AS col0 FROM tab0 cor0
----
11055224
2662584
4939760
query I rowsort
SELECT ALL - 62 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-3
-31
-45
query I rowsort
SELECT + 22 + - col2 AS col1 FROM tab2
----
-16
-4
-5
query I rowsort
SELECT DISTINCT + 42 * - col2 FROM tab2
----
-1092
-1134
-1596
onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT DISTINCT col1 DIV col0 AS col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT col1 / col0 AS col0 FROM tab0
----
1
2
3
query III rowsort
SELECT * FROM tab0 WHERE ( - col1 / - col1 ) IN ( col2 )
----
35
97
1
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - col1 / + col2
----
query I rowsort
SELECT DISTINCT col2 + tab2.col0 FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL <> + col1 * - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT + tab1.col2 - col2 * - col1 * col1 FROM tab1
----
16320
36558
5757
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 IN ( + col1 * + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL + col0 * col0 * col2 + - col0 FROM tab2
----
1316
158106
237079
onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT DISTINCT col2 * - col0 * tab1.col2 + col2 DIV - tab1.col0 AS col0 FROM tab1
----
-207936
-737281
-8766
skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT col2 * - col0 * tab1.col2 + col2 / - tab1.col0 AS col0 FROM tab1
----
-207936
-737281
-8766
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 + + col2 + - col2 ) NOT BETWEEN + col2 AND NULL
----
query I rowsort
SELECT ALL - col2 + col0 + + col0 FROM tab0
----
15
69
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8476
SELECT + col2 DIV + col2 + col2 AS col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8476
SELECT + col2 / + col2 + col2 AS col2 FROM tab1
----
55
58
97
query I rowsort
SELECT col2 * col1 * col2 - tab1.col2 AS col1 FROM tab1
----
119712
32433
75762
onlyif mysql # use DIV operator for integer division
query I rowsort label-8478
SELECT + col2 * - col0 DIV col0 + col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8478
SELECT + col2 * - col0 / col0 + col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8479
SELECT + tab1.col1 * + col0 DIV - col0 + - col0 AS col2 FROM tab1
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-8479
SELECT + tab1.col1 * + col0 / - col0 + - col0 AS col2 FROM tab1
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8480
SELECT + 11 * col1 * 3 + - col2 DIV col0 AS col1 FROM tab0
----
2837
3003
3201
skipif mysql # not compatible
query I rowsort label-8480
SELECT + 11 * col1 * 3 + - col2 / col0 AS col1 FROM tab0
----
2837
3003
3201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8482
SELECT ALL col2 DIV col1 col1 FROM tab1
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL col2 / col1 col1 FROM tab1
----
2
5
7
query I rowsort
SELECT ALL 77 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT DISTINCT 74 FROM tab1, tab1 AS cor0, tab1 cor1
----
74
query I rowsort
SELECT - cor0.col1 + - col0 * - 77 FROM tab1 cor0
----
205
4918
6147
query I rowsort
SELECT ALL + tab2.col2 * - tab2.col1 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * tab1.col0 col0 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col0 FROM tab1
----
78
query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab2, tab1 AS cor0
----
-41
query I rowsort
SELECT + - 33 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
query I rowsort
SELECT DISTINCT - 38 FROM tab0, tab1 AS cor0
----
-38
query I rowsort
SELECT - + col1 + 70 FROM tab0 AS cor0
----
-16
-21
-27
query I rowsort
SELECT - 33 * - ( - col2 * - col1 ) + + tab0.col0 * - col1 FROM tab0
----
-194
238147
91590
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col2 FROM tab2
----
40
query I rowsort
SELECT ( 95 ) + + col1 + - col1 AS col0 FROM tab2
----
95
95
95
query I rowsort
SELECT + 37 * - col1 * - ( col2 ) FROM tab1 AS cor0
----
21090
46176
51948
query I rowsort
SELECT DISTINCT ( col2 ) * col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT 41 + col0 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
1266
617
7962
onlyif mysql # use DIV operator for integer division
query I rowsort label-8499
SELECT - 89 DIV - col0 + - col1 FROM tab1 AS cor0
----
-12
-9
3
skipif mysql # not compatible
query I rowsort label-8499
SELECT - 89 / - col0 + - col1 FROM tab1 AS cor0
----
-12
-9
3
query I rowsort
SELECT + 29 * col2 AS col0 FROM tab1 cor0
----
1566
1653
2784
query I rowsort
SELECT + 29 + col2 AS col1 FROM tab1 AS cor0
----
125
83
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-8502
SELECT ALL col0 DIV col1 + + col2 * col1 DIV - col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL col0 / col1 + + col2 * col1 / - col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL ( + col1 ) + + col2 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT + col1 * 46 * col0 + cor0.col2 * - 21 AS col1 FROM tab2 AS cor0
----
211146
60980
9415
onlyif mysql # use DIV operator for integer division
query I rowsort label-8505
SELECT - cor0.col1 DIV - 8 + + col1 FROM tab0 AS cor0
----
102
109
96
skipif mysql # not compatible
query I rowsort label-8505
SELECT - cor0.col1 / - 8 + + col1 FROM tab0 AS cor0
----
102
109
96
query I rowsort
SELECT ALL - cor0.col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - col1 * cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + - col0 + - col1 + col2 AS col0 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT ALL - col1 * 96 + col1 + col0 AS col2 FROM tab2 AS cor0
----
-1536
-2938
-5527
query I rowsort
SELECT - col2 + + 57 FROM tab0 AS cor0
----
-25
24
56
query I rowsort
SELECT DISTINCT + - col2 * 74 FROM tab0 AS cor0
----
-2442
-6068
-74
query I rowsort
SELECT ALL cor0.col0 + + col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT + col2 * 44 FROM tab0 AS cor0
----
1452
3608
44
query I rowsort
SELECT col2 + - col2 * - col1 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT col2 - + col0 * col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT + ( 45 ) * + col0 FROM tab1 AS cor0
----
135
2880
3600
query I rowsort
SELECT + 42 + 28 * - col0 FROM tab0 AS cor0
----
-2450
-630
-938
query I rowsort
SELECT 88 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e
query I rowsort
SELECT DISTINCT + tab2.col0 * 10 + - col0 * col0 * + col2 - + col1 FROM tab2
----
-1284
-157463
-236385
query I rowsort
SELECT - cor0.col2 * - col1 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col2 * + 2 FROM tab1
----
-108
-114
-192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8522
SELECT + CAST( NULL AS SIGNED ) + - ( col2 ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8522
SELECT + CAST ( NULL AS INTEGER ) + - ( col2 ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * 93 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT + 48 * col1 FROM tab2 AS cor0
----
1488
2832
816
query I rowsort
SELECT DISTINCT ( - 52 ) FROM tab1 AS cor0
----
-52
query I rowsort
SELECT col1 + ( cor0.col1 + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
195
205
264
onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT + + col0 + 35 DIV col0 AS col2 FROM tab1 AS cor0
----
14
64
80
skipif mysql # not compatible
query I rowsort label-8527
SELECT + + col0 + 35 / col0 AS col2 FROM tab1 AS cor0
----
14
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8528
SELECT DISTINCT col0 DIV - ( + 33 ) FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT col0 / - ( + 33 ) FROM tab2
----
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT ALL + col2 * 45 DIV col2 - + col2 AS col1 FROM tab0
----
-37
12
44
skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL + col2 * 45 / col2 - + col2 AS col1 FROM tab0
----
-37
12
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT ALL col0 * 89 + + col2 * - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
596
6916
6993
skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL col0 * 89 + + col2 * - col0 / col0 AS col0 FROM tab2 AS cor0
----
596
6916
6993
query I rowsort
SELECT DISTINCT 94 + cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
129
7392
886
query I rowsort
SELECT DISTINCT + col2 * ( cor0.col1 ) FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8533
SELECT ALL - - 60 DIV col1 FROM tab1 AS cor0
----
2
4
6
skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL - - 60 / col1 FROM tab1 AS cor0
----
2
4
6
query I rowsort
SELECT ALL - cor0.col2 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL col2 * 66 AS col0 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT col2 + ( + tab2.col2 ) * col0 AS col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT + col0 - 94 FROM tab2
----
-15
-16
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * col1 + - col0 * - 34 * col1 col0 FROM tab1
----
21917
3382
35625
query I rowsort
SELECT DISTINCT col0 + col2 * - col0 + col2 AS col2 FROM tab0
----
-7127
-735
1
query I rowsort
SELECT ALL + tab1.col1 * + col2 + + col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL col1 + 95 AS col2 FROM tab1
----
105
108
121
onlyif mysql # use DIV operator for integer division
query I rowsort label-8542
SELECT DISTINCT + + col0 DIV col1 col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT + + col0 / col1 col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8543
SELECT ALL col2 + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL col2 + col2 / col2 AS col2 FROM tab1 AS cor0
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8544
SELECT - 61 * col1 DIV + col1 FROM tab1 AS cor0
----
-61
-61
-61
skipif mysql # not compatible
query I rowsort label-8544
SELECT - 61 * col1 / + col1 FROM tab1 AS cor0
----
-61
-61
-61
query I rowsort
SELECT + ( col0 ) + + cor0.col1 FROM tab1 cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8546
SELECT DISTINCT CAST( col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT CAST ( col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + - col2 * col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-8548
SELECT - col1 * col1 DIV - 97 AS col2 FROM tab0 AS cor0
----
76
85
97
skipif mysql # not compatible
query I rowsort label-8548
SELECT - col1 * col1 / - 97 AS col2 FROM tab0 AS cor0
----
76
85
97
query I rowsort
SELECT ALL - col0 + - ( - col1 ) * col1 AS col2 FROM tab1 AS cor0
----
36
673
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8550
SELECT cor0.col2 - + CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-8550
SELECT cor0.col2 - + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - + col1 * - col2 + col2 + col0 * + col0 FROM tab0 cor0
----
1323
15465
3447
query I rowsort
SELECT DISTINCT + col2 + + col0 * col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - - col0 + 92 FROM tab0 AS cor0
----
116
127
181
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + - col1 + col1 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + 26 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT + col1 * 24 - - col2 FROM tab0 AS cor0
----
2097
2266
2329
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8557
SELECT DISTINCT cor0.col0 + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT cor0.col0 + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - col1 + + 69 * + col1 FROM tab1 cor0
----
1820
700
910
query I rowsort
SELECT ALL col2 + + ( - 49 ) FROM tab1 AS cor0
----
47
5
8
query I rowsort
SELECT + col1 * - col2 - + col0 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT - + cor0.col2 + ( col0 ) AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL col0 * col2 - + col0 FROM tab2 AS cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-8563
SELECT DISTINCT col0 * col1 DIV col0 + col0 AS col2 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT col0 * col1 / col0 + col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT - col1 * - 25 AS col2 FROM tab2 AS cor0
----
1475
425
775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + col2 + 86 * - col0 FROM tab0 AS cor0
----
-2031
-3009
-7572
query I rowsort
SELECT + col2 + 49 FROM tab2 AS cor0
----
75
76
87
query I rowsort
SELECT DISTINCT + col2 + - col0 * col1 - col2 FROM tab0 cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 36 col2 FROM tab2 AS cor0
----
114
115
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col2 + + ( cor0.col1 ) * cor0.col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT 48 + col1 FROM tab2 AS cor0
----
107
65
79
query I rowsort
SELECT - 41 FROM tab1 cor0
----
-41
-41
-41
query I rowsort
SELECT ALL + col2 - - col0 * col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - - 90 * + cor0.col2 - - col2 * col2 FROM tab2 AS cor0
----
3016
3159
4864
query I rowsort
SELECT col1 + col0 * col0 * + col2 FROM tab2
----
1354
158243
237175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col1 ) * + col0 * - col1 col0 FROM tab1
----
-13600
-2031
-6464
query I rowsort
SELECT 46 FROM tab1 cor0
----
46
46
46
query I rowsort
SELECT ALL + ( - cor0.col1 ) * 17 FROM tab1 cor0
----
-170
-221
-442
query I rowsort
SELECT DISTINCT col2 + + col0 * 97 FROM tab2 AS cor0
----
706
7592
7701
onlyif mysql # use DIV operator for integer division
query I rowsort label-8581
SELECT ALL + 20 DIV - col2 FROM tab0 AS cor0
----
-20
0
0
skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL + 20 / - col2 FROM tab0 AS cor0
----
-20
0
0
query I rowsort
SELECT - 11 * - col0 FROM tab0 AS cor0
----
264
385
979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col0 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 - - col1 * + col0 col2 FROM tab0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-8585
SELECT - col0 * cor0.col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-8585
SELECT - col0 * cor0.col1 / - col2 AS col0 FROM tab0 AS cor0
----
3395
62
98
query I rowsort
SELECT DISTINCT + 14 * cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
1120
42
896
query I rowsort
SELECT - + cor0.col0 * + 8 FROM tab1 AS cor0
----
-24
-512
-640
query I rowsort
SELECT ALL + + col1 * 48 AS col0 FROM tab2 AS cor0
----
1488
2832
816
query I rowsort
SELECT ALL - 23 - + 12 * col1 AS col0 FROM tab1 cor0
----
-143
-179
-335
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8590
SELECT - - CAST( col0 AS SIGNED ) * - cor0.col0 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8590
SELECT - - CAST ( col0 AS INTEGER ) * - cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8591
SELECT + CAST( col0 AS SIGNED ) * col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-8591
SELECT + CAST ( col0 AS INTEGER ) * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 18 * tab2.col2 AS col2 FROM tab2
----
468
486
684
query I rowsort
SELECT - 16 AS col0 FROM tab1
----
-16
-16
-16
query I rowsort
SELECT + col0 * + ( tab2.col0 ) + col2 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ( 73 ) * col0 FROM tab1
----
219
4672
5840
query I rowsort
SELECT ALL 63 + col1 + col2 AS col0 FROM tab1
----
130
143
172
query I rowsort
SELECT ALL 99 + - col1 AS col1 FROM tab0
----
13
2
8
query I rowsort
SELECT col2 + + cor0.col1 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - col2 + + col0 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT tab0.col1 * col0 + 73 + - 22 AS col0 FROM tab0
----
2115
3446
8150
query I rowsort
SELECT DISTINCT + tab0.col2 * + 88 AS col0 FROM tab0, tab2 AS cor0
----
2904
7216
88
query I rowsort
SELECT ALL + 39 + - col2 AS col0 FROM tab1
----
-15
-18
-57
query I rowsort
SELECT ALL + + col2 * 73 FROM tab0 cor0
----
2409
5986
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT DISTINCT + - col1 DIV col2 + + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT + - col1 / col2 + + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 * + col1 + col2 * col0 col1 FROM tab1 AS cor0
----
138
3065
6736
query I rowsort
SELECT col2 * + ( col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT col0 * 28 AS col2 FROM tab1 AS cor0
----
1792
2240
84
query I rowsort
SELECT - - col2 + col2 + + col2 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT ALL - col2 + col1 * 23 AS col2 FROM tab1 AS cor0
----
173
203
544
query I rowsort
SELECT - + col0 + - ( 11 ) AS col0 FROM tab0 AS cor0
----
-100
-35
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-8611
SELECT ALL 38 DIV - 73 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL 38 / - 73 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8612
SELECT DISTINCT CAST( NULL AS SIGNED ) + 42 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 42 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 * 58 AS col0 FROM tab0 AS cor0
----
1392
2030
5162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8614
SELECT ALL + 99 * 1 - col1 * - CAST( + 33 * col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
244167
273372
310596
skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + 99 * 1 - col1 * - CAST ( + 33 * col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
244167
273372
310596
query I rowsort
SELECT DISTINCT 51 FROM tab0, tab2 AS cor0
----
51
query I rowsort
SELECT tab0.col0 + col2 * tab0.col0 + tab0.col0 AS col2 FROM tab0
----
105
7476
840
query I rowsort
SELECT - - col2 + 19 FROM tab0 AS cor0
----
101
20
52
query I rowsort
SELECT + tab2.col1 * - 42 FROM tab2
----
-1302
-2478
-714
onlyif mysql # use DIV operator for integer division
query I rowsort label-8619
SELECT 77 DIV col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8619
SELECT 77 / col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + tab0.col2 FROM tab0, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT - - ( col2 ) * - col0 + 18 FROM tab2 AS cor0
----
-171
-2010
-2984
query I rowsort
SELECT + 79 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1010
-6645
78
query I rowsort
SELECT DISTINCT + - col2 * 55 + - col2 AS col1 FROM tab0 AS cor0
----
-1848
-4592
-56
query I rowsort
SELECT ( col0 ) * + col0 - col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT + - cor0.col1 * + 48 + - col0 AS col2 FROM tab0 AS cor0
----
-4152
-4457
-4691
query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - 66 * col2 FROM tab1 cor0
----
-3564
-3762
-6336
query I rowsort
SELECT + - 29 * col2 AS col0 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT - 94 * col1 FROM tab2 cor0
----
-1598
-2914
-5546
query I rowsort
SELECT - col0 * col1 - col2 * - col2 FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + cor0.col0 - - 1 * - cor0.col2 * col1 AS col1 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT + 15 + + col1 AS col2 FROM tab1 cor0
----
25
28
41
query I rowsort
SELECT ALL + col2 + col0 * + ( col1 ) FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + - 70 - col1 AS col0 FROM tab2 cor0
----
-101
-129
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + - col1 col2 FROM tab1 AS cor0
----
111
163
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + - 65 col0 FROM tab1 AS cor0
----
3583
7615
97
query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 + col2 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - col1 * + ( col2 ) col0 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-8640
SELECT DISTINCT - + col2 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT - + col2 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL + ( + cor0.col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col1 - ( + col2 ) AS col1 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * cor0.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 458b4c13e6825f9686b15a38663930f4
query I rowsort
SELECT col2 + + col0 + - col2 * - col0 FROM tab1 cor0
----
219
3769
7856
query I rowsort
SELECT DISTINCT 25 + col2 FROM tab2
----
51
52
63
query I rowsort
SELECT DISTINCT col0 - - tab2.col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - - col1 - - col0 * + col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT - + col0 + + 46 FROM tab1 AS cor0
----
-18
-34
43
query I rowsort
SELECT ALL - ( - 23 ) AS col2 FROM tab2 AS cor0
----
23
23
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8651
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT cor0.col2 * - 51 AS col1 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT + 75 - col1 AS col2 FROM tab1
----
49
62
65
query I rowsort
SELECT ALL - col0 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8655
SELECT CAST( - col2 AS SIGNED ) * + col2 DIV col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8655
SELECT CAST ( - col2 AS INTEGER ) * + col2 / col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8656
SELECT ( col2 ) + - col0 DIV 59 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-8656
SELECT ( col2 ) + - col0 / 59 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT ALL + cor0.col1 + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 AS REAL ) * + col1 + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - ( + 80 ) FROM tab1 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + - ( col2 ) + + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 92 + ( - cor0.col1 * + col2 ) AS col0 FROM tab1 AS cor0
----
-1156
-1312
-478
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8663
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col0 - - col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col0 - - col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT 3 * - 40 AS col2 FROM tab2 AS cor0
----
-120
onlyif mysql # use DIV operator for integer division
query I rowsort label-8665
SELECT - col0 DIV 83 + - col0 FROM tab0
----
-24
-35
-90
skipif mysql # not compatible
query I rowsort label-8665
SELECT - col0 / 83 + - col0 FROM tab0
----
-24
-35
-90
query I rowsort
SELECT ALL 36 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab2
----
-51
query I rowsort
SELECT ALL + + col0 * col1 * cor0.col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT + + 97 + col0 AS col0 FROM tab0 AS cor0
----
121
132
186
query I rowsort
SELECT DISTINCT col1 + + cor0.col1 + 38 AS col2 FROM tab2 AS cor0
----
100
156
72
query I rowsort
SELECT 47 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8672
SELECT DISTINCT cor0.col1 + - col1 * CAST( + col1 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-7334
-8279
-9347
skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT cor0.col1 + - col1 * CAST ( + col1 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-7334
-8279
-9347
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8673
SELECT DISTINCT - + col2 * col1 + + CAST( - 95 * + col0 AS SIGNED ) FROM tab1 AS cor0
----
-1689
-6650
-8848
skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT - + col2 * col1 + + CAST ( - 95 * + col0 AS INTEGER ) FROM tab1 AS cor0
----
-1689
-6650
-8848
query I rowsort
SELECT DISTINCT - 94 * col2 + col2 * col2 AS col1 FROM tab2 AS cor0
----
-1768
-1809
-2128
query I rowsort
SELECT DISTINCT - col1 + 64 - col1 FROM tab2 AS cor0
----
-54
2
30
query I rowsort
SELECT + + col0 * + col2 * - 66 AS col1 FROM tab2 AS cor0
----
-12474
-133848
-198132
query I rowsort
SELECT ALL + col0 * - ( col2 + + col0 ) FROM tab2 AS cor0
----
-238
-8112
-9243
query I rowsort
SELECT + col1 + 86 FROM tab0
----
172
177
183
query I rowsort
SELECT DISTINCT col0 + col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - 15 AS REAL ) col2 FROM tab2 AS cor0
----
-15
-15
-15
query I rowsort
SELECT ALL - col2 + col0 * - col0 FROM tab1 cor0
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT + - 69 AS col1 FROM tab0 AS cor0
----
-69
query I rowsort
SELECT ALL - 55 * + col0 FROM tab0 AS cor0
----
-1320
-1925
-4895
query I rowsort
SELECT DISTINCT + 58 * + 10 AS col1 FROM tab2 AS cor0
----
580
query I rowsort
SELECT ALL 79 + ( col0 ) AS col0 FROM tab2 AS cor0
----
157
158
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-8686
SELECT + + col2 + - cor0.col0 DIV col1 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-8686
SELECT + + col2 + - cor0.col0 / col1 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT ALL - + 93 + + col2 FROM tab0 AS cor0
----
-11
-60
-92
query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col0 * + 55 AS col2 FROM tab2 AS cor0
----
385
4290
4345
query I rowsort
SELECT DISTINCT - col0 * - 56 AS col2 FROM tab2 AS cor0
----
392
4368
4424
query I rowsort
SELECT ALL - ( - 21 ) + - col2 FROM tab2 AS cor0
----
-17
-5
-6
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL col0 + - col1 * - col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT col0 + + 80 FROM tab0
----
104
115
169
query I rowsort
SELECT ALL - col0 * col2 + col0 * - col0 * + col1 FROM tab1
----
-396
-44608
-90880
query I rowsort
SELECT ALL - tab2.col2 + - ( col0 ) * + col2 FROM tab2
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-8697
SELECT ALL + tab1.col1 * 5 + + col1 DIV - col0 FROM tab1
----
122
50
65
skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + tab1.col1 * 5 + + col1 / - col0 FROM tab1
----
122
50
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8698
SELECT cor0.col1 DIV 60 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8698
SELECT cor0.col1 / 60 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT col1 * 38 FROM tab2
----
1178
2242
646
query I rowsort
SELECT - - col1 * ( + cor0.col0 ) - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-8701
SELECT col1 DIV 55 + + 66 AS col1 FROM tab0 AS cor0
----
67
67
67
skipif mysql # not compatible
query I rowsort label-8701
SELECT col1 / 55 + + 66 AS col1 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT + + col2 - + 41 AS col1 FROM tab2 AS cor0
----
-14
-15
-3
query I rowsort
SELECT ALL col1 * cor0.col2 + col2 * col0 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT + col1 + ( col1 ) * col1 AS col2 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT ALL + + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab0, tab2 AS cor0
----
13
query I rowsort
SELECT DISTINCT col0 + - 53 AS col1 FROM tab2
----
-46
25
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8708
SELECT ALL col0 DIV col2 + + col0 * col2 DIV + col1 FROM tab1
----
365
590
6
skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL col0 / col2 + + col0 * col2 / + col1 FROM tab1
----
365
590
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 91 col2 FROM tab1 AS cor0
----
101
104
117
query I rowsort
SELECT + + cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT + + col2 + cor0.col1 * col2 AS col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL - col0 + col0 + col1 * 76 AS col0 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT - ( - col2 ) * ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 * + col1 + + 18 FROM tab2 AS cor0
----
1552
664
855
query I rowsort
SELECT cor0.col1 * + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908
query I rowsort
SELECT 73 + - 71 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
query I rowsort
SELECT - - col0 * 94 FROM tab1 AS cor0
----
282
6016
7520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8719
SELECT - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8719
SELECT - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - 52 AS col0 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT + col1 * col1 + 89 * + col1 FROM tab0 AS cor0
----
15050
16380
18042
query I rowsort
SELECT ALL + col2 + + 58 FROM tab1 AS cor0
----
112
115
154
query I rowsort
SELECT DISTINCT col2 + col2 * - col1 * - col2 AS col2 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT - col0 * - 14 FROM tab0 AS cor0
----
1246
336
490
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8725
SELECT - tab2.col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8725
SELECT - tab2.col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col1 * + tab2.col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT - ( cor0.col2 ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + 58 * + col0 AS col0 FROM tab0 AS cor0
----
1392
2030
5162
query I rowsort
SELECT - col1 * + 7 FROM tab2
----
-119
-217
-413
query I rowsort
SELECT DISTINCT + col2 * + col0 * - col2 - - col1 * + col1 FROM tab0
----
-18740
-590155
9374
query I rowsort
SELECT DISTINCT col2 - 78 FROM tab1
----
-21
-24
18
query I rowsort
SELECT col0 - - 82 AS col2 FROM tab0
----
106
117
171
query I rowsort
SELECT - col2 + - 23 AS col0 FROM tab2
----
-49
-50
-61
query I rowsort
SELECT DISTINCT col1 * 19 AS col1 FROM tab2
----
1121
323
589
onlyif mysql # use DIV operator for integer division
query I rowsort label-8735
SELECT ALL + 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-8735
SELECT ALL + col2 / - col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 * - tab1.col0 * col1 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT DISTINCT 72 DIV - tab1.col0 col1 FROM tab1
----
-1
-24
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT 72 / - tab1.col0 col1 FROM tab1
----
-1
-24
0
query I rowsort
SELECT DISTINCT - 18 * + col2 AS col2 FROM tab1 AS cor0
----
-1026
-1728
-972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8739
SELECT ALL col1 * + col0 * CAST( 78 AS SIGNED ) + col2 * col0 AS col0 FROM tab1 AS cor0
----
53568
6246
88800
skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL col1 * + col0 * CAST ( 78 AS INTEGER ) + col2 * col0 AS col0 FROM tab1 AS cor0
----
53568
6246
88800
query I rowsort
SELECT ALL - - col0 * col0 + - cor0.col0 + ( col1 + ( - col1 ) ) FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT - col2 * ( tab2.col1 * + ( + col1 ) ) FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT ALL 8 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT ALL - 73 + 88 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
onlyif mysql # use DIV operator for integer division
query I rowsort label-8744
SELECT + - 70 * col2 DIV + 66 AS col1 FROM tab2 AS cor0
----
-27
-28
-40
skipif mysql # not compatible
query I rowsort label-8744
SELECT + - 70 * col2 / + 66 AS col1 FROM tab2 AS cor0
----
-27
-28
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT - - cor0.col2 DIV col1 + - 45 + + col1 DIV col0 AS col0 FROM tab1 cor0
----
-35
-38
-40
skipif mysql # not compatible
query I rowsort label-8745
SELECT - - cor0.col2 / col1 + - 45 + + col1 / col0 AS col0 FROM tab1 cor0
----
-35
-38
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT - col2 * col0 * col0 + col2 DIV + col0 FROM tab2
----
-1320
-158184
-237158
skipif mysql # not compatible
query I rowsort label-8746
SELECT - col2 * col0 * col0 + col2 / + col0 FROM tab2
----
-1320
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-8747
SELECT + col1 DIV tab1.col1 + tab1.col1 AS col0 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-8747
SELECT + col1 / tab1.col1 + tab1.col1 AS col0 FROM tab1
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8748
SELECT DISTINCT + + col0 DIV - col0 + cor0.col1 * - col2 + + col1 * - col2 FROM tab1 AS cor0
----
-1141
-2497
-2809
skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + + col0 / - col0 + cor0.col1 * - col2 + + col1 * - col2 FROM tab1 AS cor0
----
-1141
-2497
-2809
query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - + col0 * col1 * - col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 * col0 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
32832
4050
92160
query I rowsort
SELECT DISTINCT + - col0 + col1 * + cor0.col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-8753
SELECT col0 DIV + cor0.col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8753
SELECT col0 / + cor0.col2 FROM tab1 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8754
SELECT DISTINCT - + col1 + col2 DIV + col1 - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT - + col1 + col2 / + col1 - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col2 * - col1 + col0 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT + + col0 * cor0.col1 - col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-8757
SELECT col1 + + col2 DIV col1 FROM tab2
----
19
31
59
skipif mysql # not compatible
query I rowsort label-8757
SELECT col1 + + col2 / col1 FROM tab2
----
19
31
59
query I rowsort
SELECT tab0.col2 - col1 * col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT col0 + - col1 + + col0 FROM tab2 cor0
----
-17
141
97
query I rowsort
SELECT - col1 + + col0 * col0 FROM tab0
----
1128
490
7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 - + col0 col2 FROM tab1 AS cor0
----
-58
-74
3
query I rowsort
SELECT - - col2 * - col1 * col1 + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
-10693
-24986
-87025
query I rowsort
SELECT ALL + col2 * + col1 + + col2 * + col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-33099
-543906
96
query I rowsort
SELECT ( cor0.col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - 81 AS col1 FROM tab0 cor0
----
-81
-81
-81
query I rowsort
SELECT DISTINCT col1 * 85 AS col2 FROM tab0
----
7310
7735
8245
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8767
SELECT + CAST( ( - col2 ) + + col1 AS SIGNED ) * + col1 AS col2 FROM tab2
----
-357
124
1947
skipif mysql # not compatible
query I rowsort label-8767
SELECT + CAST ( ( - col2 ) + + col1 AS INTEGER ) * + col1 AS col2 FROM tab2
----
-357
124
1947
query I rowsort
SELECT - 82 * col0 + - col1 * - col1 FROM tab0 AS cor0
----
5428
6539
983
query I rowsort
SELECT DISTINCT col2 * - col2 * col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + col2 + col2 * cor0.col2 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 * col2 + col1 col0 FROM tab0 AS cor0
----
174
2627
6405
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab1.col2 ) * col2 + col1 col0 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT 13 + col2 AS col1 FROM tab1
----
109
67
70
query I rowsort
SELECT ALL tab0.col1 * col0 - + col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT col1 + col2 * - tab0.col1 + - tab0.col0 FROM tab0
----
-2776
-35
-7460
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL - col2 FROM tab2 WHERE col0 + - col0 * col0 <> NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + + col0 <= col1 * col1
----
query I rowsort
SELECT - tab1.col2 * col2 - - col0 FROM tab1
----
-2913
-3185
-9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + col2 * - col2 * col2 FROM tab0
----
-1
-35937
-551368
query I rowsort
SELECT ALL + tab0.col1 * + col1 AS col2 FROM tab0
----
7396
8281
9409
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 * + col0 + col0 * col2 )
----
query I rowsort
SELECT DISTINCT col2 - col2 * col0 AS col0 FROM tab1
----
-108
-3591
-7584
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col2 / + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8786
SELECT DISTINCT - col1 - - col0 DIV tab0.col2 FROM tab0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT - col1 - - col0 / tab0.col2 FROM tab0
----
-62
-86
-90
query I rowsort
SELECT ALL + tab0.col0 AS col1 FROM tab0 WHERE ( col2 ) BETWEEN + col0 AND col2 * col0
----
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8788
SELECT DISTINCT col1 + + col1 DIV col0 col1 FROM tab1
----
10
13
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT col1 + + col1 / col0 col1 FROM tab1
----
10
13
34
query I rowsort
SELECT col2 - - tab2.col1 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + col0 + - tab1.col1 * + tab1.col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT - cor0.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL col1 + col0 * col2 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL col0 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-8795
SELECT + + col1 * + cor0.col1 + col2 DIV + col1 col2 FROM tab1 AS cor0
----
105
176
678
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8795
SELECT + + col1 * + cor0.col1 + col2 / + col1 col2 FROM tab1 AS cor0
----
105
176
678
query I rowsort
SELECT + col2 / col0 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT DISTINCT col2 DIV col1 + col2 + - col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT col2 / col1 + col2 + - col2 FROM tab0
----
0
query I rowsort
SELECT col2 + - col0 + - tab1.col2 * col2 FROM tab1
----
-2865
-3256
-9200
query I rowsort
SELECT + tab0.col0 - - col1 * - col1 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT col2 * - col0 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + col2 - col2 * col1 * col0 AS col0 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT ALL - tab2.col1 * - tab2.col0 - col0 AS col2 FROM tab2
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col1 col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8804
SELECT DISTINCT CAST( col0 + + col2 AS SIGNED ) AS col0 FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT CAST ( col0 + + col2 AS INTEGER ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT - 52 - + cor0.col0 * - cor0.col1 AS col2 FROM tab1 cor0
----
26
588
988
query I rowsort
SELECT + 91 + col0 AS col2 FROM tab1 AS cor0
----
155
171
94
query I rowsort
SELECT DISTINCT - 97 + - col1 FROM tab2 AS cor0
----
-114
-128
-156
query I rowsort
SELECT col0 * col1 * ( col2 ) + + cor0.col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
119770
51068
5921
query I rowsort
SELECT ( + col1 ) * col0 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8810
SELECT 23 * col1 + - col2 * + col1 * + col2 - col1 DIV ( col0 ) FROM tab1 AS cor0
----
-119509
-32260
-75226
skipif mysql # not compatible
query I rowsort label-8810
SELECT 23 * col1 + - col2 * + col1 * + col2 - col1 / ( col0 ) FROM tab1 AS cor0
----
-119509
-32260
-75226
query I rowsort
SELECT + + col2 * col2 + - col2 + col1 * col0 * col0 FROM tab1 AS cor0
----
3096
44152
92320
query I rowsort
SELECT ALL + col2 * - 39 FROM tab2
----
-1014
-1053
-1482
query I rowsort
SELECT col1 * ( + col1 ) FROM tab1
----
100
169
676
query I rowsort
SELECT - col2 * 56 + + col2 AS col2 FROM tab1 AS cor0
----
-2970
-3135
-5280
onlyif mysql # use DIV operator for integer division
query I rowsort label-8815
SELECT DISTINCT cor0.col2 * - col2 - col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT cor0.col2 * - col2 - col2 / + col2 AS col0 FROM tab1 AS cor0
----
-2917
-3250
-9217
query I rowsort
SELECT ALL 79 FROM tab1, tab0 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT - 71 * - col2 - col1 * col0 AS col1 FROM tab1
----
3407
3756
5776
query I rowsort
SELECT tab1.col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 24 ) col1 FROM tab0
----
-24
query I rowsort
SELECT ALL 21 * col1 AS col2 FROM tab0
----
1806
1911
2037
query I rowsort
SELECT - ( - col1 ) + col2 FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8822
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8823
SELECT + CAST( col0 AS SIGNED ) * + col1 col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8823
SELECT + CAST ( col0 AS INTEGER ) * + col1 col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8824
SELECT DISTINCT + ( - col0 ) * col0 / + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + ( - col0 ) * col0 / + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8825
SELECT + ( - ( col0 ) ) * CAST( - 20 AS SIGNED ) FROM tab0 AS cor0
----
1780
480
700
skipif mysql # not compatible
query I rowsort label-8825
SELECT + ( - ( col0 ) ) * CAST ( - 20 AS INTEGER ) FROM tab0 AS cor0
----
1780
480
700
query I rowsort
SELECT ALL 59 * + col0 + ( - col2 + col0 ) * col0 AS col2 FROM tab1 AS cor0
----
24
3440
4224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8827
SELECT DISTINCT - col1 * + cor0.col2 - - CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT - col1 * + cor0.col2 - - CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col2 * + col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT ALL - - col2 + + col2 + col1 DIV cor0.col0 FROM tab0 AS cor0
----
165
4
69
skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL - - col2 + + col2 + col1 / cor0.col0 FROM tab0 AS cor0
----
165
4
69
query I rowsort
SELECT DISTINCT 33 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT - - 28 AS col0 FROM tab0 AS cor0
----
28
28
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col0 FROM tab2 AS cor0
----
37
37
37
query I rowsort
SELECT col0 + col1 * 20 AS col1 FROM tab1 AS cor0
----
264
340
523
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT ALL - + col0 + - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - + col0 + - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 62 * - 4 AS col0 FROM tab0
----
-248
-248
-248
query I rowsort
SELECT ALL ( - col0 ) * - col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT 49 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to e587c122dea39a2488ff88b884cea462
query I rowsort
SELECT DISTINCT ( col2 + + col0 * ( col2 ) ) AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL ( 21 ) FROM tab1
----
21
21
21
query I rowsort
SELECT ALL + ( + tab2.col1 ) FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT col2 * cor0.col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-8842
SELECT + + col2 DIV + 65 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8842
SELECT + + col2 / + 65 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col1 + col2 + + 15 FROM tab0 AS cor0
----
113
134
188
query I rowsort
SELECT + col2 * col2 + col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - col1 * + tab2.col1 * 2 AS col1 FROM tab2
----
-1922
-578
-6962
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col2 FROM tab0, tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8847
SELECT DISTINCT - 18 DIV - 58 FROM tab0, tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT - 18 / - 58 FROM tab0, tab2 cor0
----
0
query I rowsort
SELECT col2 * ( - col0 * col2 ) FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT - col1 * + col2 * + col0 - col0 AS col2 FROM tab2
----
-119730
-51113
-5866
query I rowsort
SELECT ALL 67 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT DISTINCT + 38 FROM tab1, tab2 cor0
----
38
query I rowsort
SELECT ALL col1 + col0 + col1 * + 36 AS col2 FROM tab2
----
1154
2261
708
query I rowsort
SELECT DISTINCT + col0 + - tab1.col2 * + col0 + col2 FROM tab1
----
-105
-3527
-7504
query I rowsort
SELECT ALL + col2 * - col0 + - col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT - 99 + col0 AS col0 FROM tab0 AS cor0
----
-10
-64
-75
query I rowsort
SELECT ALL - ( col0 ) * col0 * - col1 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + + ( - col2 ) - + col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT - col1 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 72 * - col2 col1 FROM tab1 AS cor0
----
101088
41040
89856
query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 * 79 AS col2 FROM tab1 AS cor0
----
2000
733
931
query I rowsort
SELECT DISTINCT col0 * 96 AS col1 FROM tab0 cor0
----
2304
3360
8544
query I rowsort
SELECT ALL col1 + + col0 + - 34 AS col2 FROM tab2 AS cor0
----
103
4
62
query I rowsort
SELECT + ( cor0.col1 ) * tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ae10dfda2508149d338269366c35c584
query I rowsort
SELECT ALL - col0 + - 13 AS col2 FROM tab2 AS cor0
----
-20
-91
-92
query I rowsort
SELECT DISTINCT + col1 + 73 * - cor0.col0 * col1 FROM tab0 AS cor0
----
-150586
-247738
-591136
query I rowsort
SELECT DISTINCT - cor0.col2 * 20 AS col2 FROM tab1 AS cor0
----
-1080
-1140
-1920
onlyif mysql # use DIV operator for integer division
query I rowsort label-8867
SELECT DISTINCT - col2 DIV col2 + 69 * col1 FROM tab1 AS cor0
----
1793
689
896
skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT - col2 / col2 + 69 * col1 FROM tab1 AS cor0
----
1793
689
896
query I rowsort
SELECT ALL - col1 * + col1 * - col2 + + col1 AS col1 FROM tab2 AS cor0
----
10999
25978
90565
onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT ALL + col0 DIV + 75 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1342
-217
-4601
skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL + col0 / + 75 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1342
-217
-4601
query I rowsort
SELECT DISTINCT - col1 + + col0 * - col2 * - col0 FROM tab0 AS cor0
----
1128
18922
649431
query I rowsort
SELECT ALL - cor0.col0 * + ( cor0.col0 ) + col2 * + 5 + 88 FROM tab1 AS cor0
----
-3723
-5832
349
onlyif mysql # use DIV operator for integer division
query I rowsort label-8872
SELECT - CAST( col2 AS SIGNED ) DIV + col0 + - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-793
skipif mysql # not compatible
query I rowsort label-8872
SELECT - CAST ( col2 AS INTEGER ) / + col0 + - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-793
query I rowsort
SELECT col1 + col0 * col0 * ( + 75 * - tab1.col1 ) + col2 AS col0 FROM tab1
----
-17470
-3071933
-6239891
query I rowsort
SELECT DISTINCT + col0 * ( col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 98 + col0 * col2 FROM tab0 AS cor0
----
133
7396
890
query I rowsort
SELECT DISTINCT + + 94 * + 41 AS col1 FROM tab2 cor0
----
3854
query I rowsort
SELECT + col1 * cor0.col1 - + col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL + ( col2 ) * + col2 AS col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT 5 * + 73 + col2 FROM tab0 AS cor0
----
366
398
447
query I rowsort
SELECT ALL - col2 + 95 AS col1 FROM tab2 AS cor0
----
57
68
69
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( ( col2 ) AS REAL ) * + cor0.col0 + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - col0 * + col1 - col0 * + col0 FROM tab0 AS cor0
----
-16020
-2640
-4620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col1 - + col2 col2 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8884
SELECT - CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8884
SELECT - CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col0 + + col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + + col1 * + col1 + 49 * - 7 AS col0 FROM tab2 AS cor0
----
-54
3138
618
query I rowsort
SELECT + 92 - col0 * - 86 AS col0 FROM tab2 AS cor0
----
6800
6886
694
query I rowsort
SELECT ALL - col0 + + col0 * 73 AS col0 FROM tab0 cor0
----
1728
2520
6408
onlyif mysql # use DIV operator for integer division
query I rowsort label-8890
SELECT DISTINCT 74 * col0 DIV ( - col2 ) - - col2 col0 FROM tab0 AS cor0
----
-20
-2589
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT 74 * col0 / ( - col2 ) - - col2 col0 FROM tab0 AS cor0
----
-20
-2589
2
query I rowsort
SELECT DISTINCT cor0.col1 + col1 - cor0.col0 * + 73 * + col2 AS col0 FROM tab2 AS cor0
----
-13735
-147926
-219112
query I rowsort
SELECT col2 + - col2 * col1 * + 28 FROM tab1 AS cor0
----
-15903
-34848
-39258
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col2 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT ALL - CAST( NULL AS SIGNED ) + - 52 * + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL - CAST ( NULL AS INTEGER ) + - 52 * + cor0.col1 FROM tab2 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 DISTINCT + + col2 * + col0 col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 - + ( - col0 + col1 ) FROM tab2 AS cor0
----
165
2047
3064
query I rowsort
SELECT + cor0.col1 + - col2 * - ( - col2 ) FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - ( col0 ) - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT 74 * + col0 + + col1 * + ( col0 ) FROM tab2 AS cor0
----
10374
7189
735
query I rowsort
SELECT + 63 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-3585
-7617
-99
query I rowsort
SELECT DISTINCT + col2 * + col1 + + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL - 42 + - col0 * 97 FROM tab1
----
-333
-6250
-7802
query I rowsort
SELECT col1 * col1 + col0 AS col0 FROM tab2
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-8905
SELECT col0 * col1 + - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
2062
3298
8098
skipif mysql # not compatible
query I rowsort label-8905
SELECT col0 * col1 + - col1 / col2 AS col0 FROM tab0 AS cor0
----
2062
3298
8098
query I rowsort
SELECT + col1 * - col1 + 82 AS col2 FROM tab0
----
-7314
-8199
-9327
query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 82 ) + - col1 col1 FROM tab2 AS cor0
----
23
51
65
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT DISTINCT - - 26 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1674
2093
query I rowsort
SELECT ALL ( 52 ) + - tab2.col2 * 20 FROM tab2
----
-468
-488
-708
query I rowsort
SELECT ( 34 ) * col2 * - col2 AS col2 FROM tab2
----
-22984
-24786
-49096
query I rowsort
SELECT ALL - col1 * - 6 + tab2.col1 AS col1 FROM tab2
----
119
217
413
query I rowsort
SELECT 64 * - col1 FROM tab0
----
-5504
-5824
-6208
query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab1, tab2 AS cor0
----
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8916
SELECT ALL col2 + col0 DIV + col1 AS col2 FROM tab2
----
27
27
42
skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL col2 + col0 / + col1 AS col2 FROM tab2
----
27
27
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8917
SELECT ALL col2 * - col0 DIV - cor0.col0 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL col2 * - col0 / - cor0.col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + + cor0.col1 + 0 AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8919
SELECT - + cor0.col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8919
SELECT - + cor0.col1 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col1 * 43 * 64 AS col2 FROM tab0 AS cor0
----
236672
250432
266944
query I rowsort
SELECT - + cor0.col1 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8922
SELECT - - col0 + - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8922
SELECT - - col0 + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
73
query I rowsort
SELECT ALL - + col0 + - cor0.col2 * - col1 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-8926
SELECT DISTINCT - col1 DIV + col1 AS col2 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - col1 / + col1 AS col2 FROM tab1 cor0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8927
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8927
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) col2 FROM tab1, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + + 55 * col2 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT - cor1.col2 * - tab0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1a327f2a52a0a35b577f58109ee147a4
query I rowsort
SELECT ALL 93 * col2 AS col0 FROM tab1
----
5022
5301
8928
query I rowsort
SELECT ALL 7 * col2 FROM tab0
----
231
574
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8933
SELECT ALL + 12 DIV col2 col2 FROM tab0
----
0
0
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + 12 / col2 col2 FROM tab0
----
0
0
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8934
SELECT DISTINCT col2 * col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT col2 * col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
query I rowsort
SELECT + 37 * col2 + 49 FROM tab0 cor0
----
1270
3083
86
query I rowsort
SELECT + 65 - col0 FROM tab2
----
-13
-14
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + + col2 col0 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT - col1 * + col0 + col2 AS col0 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + col0 * col1 + 22 + col2 * - col1 AS col0 FROM tab2
----
-598
3090
719
query I rowsort
SELECT tab2.col0 + col1 * + 33 * - tab2.col1 + col0 AS col2 FROM tab2
----
-114717
-31699
-9379
onlyif mysql # use DIV operator for integer division
query I rowsort label-8941
SELECT DISTINCT - col1 DIV col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT - col1 / col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT col0 * 77 FROM tab2
----
539
6006
6083
query I rowsort
SELECT ALL - + col0 * 75 FROM tab2 AS cor0
----
-525
-5850
-5925
query I rowsort
SELECT ALL - + col1 * 72 * col2 AS col2 FROM tab1 AS cor0
----
-101088
-41040
-89856
query I rowsort
SELECT - cor0.col2 + cor0.col0 * - cor0.col0 FROM tab0 cor0
----
-1226
-609
-8003
query I rowsort
SELECT - col2 * 94 FROM tab2 AS cor0
----
-2444
-2538
-3572
query I rowsort
SELECT ( + 76 ) + - col0 * - col2 - col1 AS col1 FROM tab1
----
212
3714
7743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8948
SELECT DISTINCT col0 - - col2 * col0 * CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
26160
598525
70
skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT col0 - - col2 * col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
26160
598525
70
query I rowsort
SELECT + 82 * 47 AS col2 FROM tab2
----
3854
3854
3854
query I rowsort
SELECT DISTINCT - 15 * ( tab2.col1 ) AS col0 FROM tab2
----
-255
-465
-885
query I rowsort
SELECT col0 + col2 + + col0 * ( 17 ) AS col2 FROM tab1
----
108
1209
1536
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col1 * - 17 col0 FROM tab2 AS cor0
----
210
520
925
onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT + + 62 DIV col1 - col0 FROM tab2 cor0
----
-5
-76
-77
skipif mysql # not compatible
query I rowsort label-8953
SELECT + + 62 / col1 - col0 FROM tab2 cor0
----
-5
-76
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8954
SELECT DISTINCT 25 DIV col1 + col1 AS col2 FROM tab1 AS cor0
----
12
14
26
skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT 25 / col1 + col1 AS col2 FROM tab1 AS cor0
----
12
14
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8955
SELECT - col0 DIV - col1 + col0 AS col1 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-8955
SELECT - col0 / - col1 + col0 AS col1 FROM tab2 AS cor0
----
7
79
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8956
SELECT + 67 DIV + col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8956
SELECT + 67 / + col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT col2 * cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT 62 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT - 77 * + col1 FROM tab2
----
-1309
-2387
-4543
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 * - col2 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col0 col2 FROM tab1 cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8962
SELECT 16 - + cor0.col0 DIV cor0.col1 col0 FROM tab0 AS cor0
----
16
16
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8962
SELECT 16 - + cor0.col0 / cor0.col1 col0 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT ALL + - col1 * cor0.col1 + + col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT + - 41 * col1 + + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-3880
-688
3731
query I rowsort
SELECT ALL - col0 + + 98 FROM tab1 AS cor0
----
18
34
95
skipif mysql # not compatible
query I rowsort
SELECT 28 * + 62 + col2 + CAST ( + col0 * col0 AS REAL ) AS col1 FROM tab0 cor0
----
2345
2962
9739
query I rowsort
SELECT DISTINCT - col1 * 76 + + col2 FROM tab0 AS cor0
----
-6503
-6834
-7371
query I rowsort
SELECT ALL col0 + - 8 FROM tab1
----
-5
56
72
query I rowsort
SELECT - col1 * + col1 + col1 AS col1 FROM tab0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8970
SELECT CAST( - ( - col0 ) + - 80 AS SIGNED ) * col1 AS col2 FROM tab0
----
-4365
-4816
819
skipif mysql # not compatible
query I rowsort label-8970
SELECT CAST ( - ( - col0 ) + - 80 AS INTEGER ) * col1 AS col2 FROM tab0
----
-4365
-4816
819
query I rowsort
SELECT - ( col0 ) + + col1 * + cor0.col2 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT col2 + - 60 * col2 * + col1 FROM tab0 AS cor0
----
-170247
-447638
-5819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8973
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT 59 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT + 59 * col0 - col1 AS col1 FROM tab2
----
382
4543
4644
query I rowsort
SELECT DISTINCT - - col1 + + 53 * col1 FROM tab1 AS cor0
----
1404
540
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT col1 DIV 68 - col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8977
SELECT col1 / 68 - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + - col0 + ( col2 ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col0 + + 43 + col0 AS col0 FROM tab0 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT col0 + - cor0.col2 + col1 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT DISTINCT - col0 + 1 * col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL 18 * + col1 FROM tab2
----
1062
306
558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col0 FROM tab0
----
9
9
9
query I rowsort
SELECT + col2 * col0 - + col1 * col1 * col2 AS col0 FROM tab1 AS cor0
----
-2052
-36342
-8544
query I rowsort
SELECT - col2 + 68 * - col1 * col1 AS col2 FROM tab0 AS cor0
----
-502961
-563190
-639813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 69 col2 FROM tab0 AS cor0
----
1656
2415
6141
query I rowsort
SELECT DISTINCT - cor0.col0 * 27 FROM tab2 AS cor0
----
-189
-2106
-2133
query I rowsort
SELECT - cor0.col1 * 36 + col0 FROM tab2 AS cor0
----
-1109
-2046
-533
query I rowsort
SELECT + + col1 + - col2 + col1 FROM tab0 AS cor0
----
100
139
193
query I rowsort
SELECT DISTINCT + + col0 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col2 * + 36 AS col1 FROM tab0 AS cor0
----
1188
2952
36
query I rowsort
SELECT col2 * + 70 + col2 + + col1 AS col2 FROM tab2 AS cor0
----
1905
1948
2715
query I rowsort
SELECT + 86 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 91 ) + cor0.col0 + 77 * - 8 col2 FROM tab0, tab2 AS cor0
----
-446
-447
-518
onlyif mysql # use DIV operator for integer division
query I rowsort label-8995
SELECT ALL + col2 + ( 95 ) DIV col2 FROM tab1
----
55
58
96
skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL + col2 + ( 95 ) / col2 FROM tab1
----
55
58
96
query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab2, tab0 AS cor0
----
-56
query I rowsort
SELECT + ( - 61 ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT ALL + col1 + col1 + 3 * col1 AS col0 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT ALL + col1 + + col0 * cor0.col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col2 + col0 * - col0 - 33 FROM tab1 AS cor0
----
-4072
-6337
12
query I rowsort
SELECT ( 14 ) * col0 + - ( 5 ) FROM tab2 AS cor0
----
1087
1101
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT col1 DIV ( - col0 * + ( + ( + col1 ) ) ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9002
SELECT col1 / ( - col0 * + ( + ( + col1 ) ) ) FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 * - ( + col0 ) * 64 FROM tab1 AS cor0
----
40960
4992
66560
query I rowsort
SELECT ALL + - 98 + 24 FROM tab0 AS cor0
----
-74
-74
-74
query I rowsort
SELECT - - 46 AS col1 FROM tab2 cor0
----
46
46
46
query I rowsort
SELECT DISTINCT - + ( col0 ) + + cor0.col0 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT - + col1 + - 53 AS col1 FROM tab2 AS cor0
----
-112
-70
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9008
SELECT - col1 DIV ( col2 * CAST( + cor0.col1 AS SIGNED ) ) + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9008
SELECT - col1 / ( col2 * CAST ( + cor0.col1 AS INTEGER ) ) + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9009
SELECT col0 DIV 46 AS col1 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9009
SELECT col0 / 46 AS col1 FROM tab2
----
0
1
1
query I rowsort
SELECT col2 + col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
29
3
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-9011
SELECT - col1 + + col1 - - col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9011
SELECT - col1 + + col1 - - col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9012
SELECT - col1 / - col0 + cor0.col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9012
SELECT - col1 / - col0 + cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * col1 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * cor0.col2 + + 3 * col2 FROM tab1 AS cor0
----
-3477
-7392
0
query I rowsort
SELECT DISTINCT + 59 * cor0.col1 AS col2 FROM tab0 AS cor0
----
5074
5369
5723
query I rowsort
SELECT DISTINCT 50 * col2 AS col1 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT - col1 * - col0 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL - 12 * + col0 FROM tab0 AS cor0
----
-1068
-288
-420
query I rowsort
SELECT DISTINCT + col2 * col2 + + 62 AS col1 FROM tab0 AS cor0
----
1151
63
6786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 + col1 * + ( col1 ) col0 FROM tab1 AS cor0
----
181
250
757
query I rowsort
SELECT DISTINCT - + col0 + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 - cor0.col1 * + col1 col1 FROM tab2 AS cor0
----
-232
-2805
1155
query I rowsort
SELECT - cor0.col2 + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col1 + col0 * col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 * - cor0.col0 + col2 FROM tab1 cor0
----
-36423
-4158
-99744
query I rowsort
SELECT ALL + col0 * 64 + - 53 FROM tab2 cor0
----
395
4939
5003
query I rowsort
SELECT col0 * - ( 77 ) AS col1 FROM tab1 AS cor0
----
-231
-4928
-6160
onlyif mysql # use DIV operator for integer division
query I rowsort label-9029
SELECT - ( - col2 ) DIV col0 + - 37 FROM tab0 AS cor0
----
-36
-37
-37
skipif mysql # not compatible
query I rowsort label-9029
SELECT - ( - col2 ) / col0 + - 37 FROM tab0 AS cor0
----
-36
-37
-37
query I rowsort
SELECT + col2 + - col0 * + col1 * 10 AS col2 FROM tab1 cor0
----
-10304
-6343
-726
query I rowsort
SELECT - col0 * ( + col0 ) AS col2 FROM tab1
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9032
SELECT - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9032
SELECT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9033
SELECT + + CAST( + col2 AS SIGNED ) * - cor0.col1 + ( col0 ) * col1 + col0 FROM tab1 AS cor0
----
-128
-1323
134
skipif mysql # not compatible
query I rowsort label-9033
SELECT + + CAST ( + col2 AS INTEGER ) * - cor0.col1 + ( col0 ) * col1 + col0 FROM tab1 AS cor0
----
-128
-1323
134
query I rowsort
SELECT + ( col1 ) * col2 * col0 + - 42 * col1 * col1 FROM tab0 AS cor0
----
-242520
-391783
316316
query I rowsort
SELECT - 96 * + col1 AS col1 FROM tab0 AS cor0
----
-8256
-8736
-9312
query I rowsort
SELECT DISTINCT cor0.col2 * + 65 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
1690
1755
2470
query I rowsort
SELECT 47 * cor0.col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 96207e973724f9e470eb0c4ee6c5aaea
query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9039
SELECT CAST( NULL AS SIGNED ) * + col1 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9039
SELECT CAST ( NULL AS INTEGER ) * + col1 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - 23 ) FROM tab0
----
-23
-23
-23
query I rowsort
SELECT - + 12 * cor0.col1 + - col2 FROM tab1 AS cor0
----
-177
-252
-366
query I rowsort
SELECT DISTINCT - col0 + + col1 * 98 FROM tab1
----
1194
2545
916
query I rowsort
SELECT + col0 * 54 FROM tab0
----
1296
1890
4806
query I rowsort
SELECT + - col1 * - 31 + - col1 + col1 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT + col0 * 62 - col2 FROM tab1 AS cor0
----
132
3911
4864
query I rowsort
SELECT DISTINCT - col2 * col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT tab1.col1 * col0 * + col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT col0 * + 50 FROM tab0
----
1200
1750
4450
query I rowsort
SELECT + + cor0.col1 + + ( + cor0.col0 ) - - col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT DISTINCT ( 85 ) * col1 AS col2 FROM tab2 AS cor0
----
1445
2635
5015
onlyif mysql # use DIV operator for integer division
query I rowsort label-9051
SELECT DISTINCT - - ( - col2 ) + - col0 DIV + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-172
-57
-71
skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT - - ( - col2 ) + - col0 / + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-172
-57
-71
query I rowsort
SELECT ALL 84 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT 78 * col2 DIV col0 - col1 * col1 * - col0 AS col0 FROM tab2
----
22868
271544
7027
skipif mysql # not compatible
query I rowsort label-9053
SELECT 78 * col2 / col0 - col1 * col1 * - col0 AS col0 FROM tab2
----
22868
271544
7027
onlyif mysql # use DIV operator for integer division
query I rowsort label-9054
SELECT DISTINCT + col2 + + col1 + - tab1.col2 DIV - col2 FROM tab1
----
110
68
81
skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT + col2 + + col1 + - tab1.col2 / - col2 FROM tab1
----
110
68
81
query I rowsort
SELECT DISTINCT ( + 12 + + col0 ) AS col1 FROM tab2
----
19
90
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9056
SELECT ALL ( + col1 ) + + tab0.col2 * col2 DIV tab0.col0 + col0 * - col0 FROM tab0
----
-1128
-445
-7755
skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL ( + col1 ) + + tab0.col2 * col2 / tab0.col0 + col0 * - col0 FROM tab0
----
-1128
-445
-7755
query I rowsort
SELECT DISTINCT + col1 + ( + col1 ) FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9058
SELECT 64 DIV col0 - col0 AS col2 FROM tab2
----
-78
-79
2
skipif mysql # not compatible
query I rowsort label-9058
SELECT 64 / col0 - col0 AS col2 FROM tab2
----
-78
-79
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9059
SELECT + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9059
SELECT + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col1 + col2 * + col0 + + col2 FROM tab0
----
133
7471
911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9061
SELECT CAST( + 94 AS SIGNED ) + - col0 * - tab1.col1 FROM tab1
----
1134
172
734
skipif mysql # not compatible
query I rowsort label-9061
SELECT CAST ( + 94 AS INTEGER ) + - col0 * - tab1.col1 FROM tab1
----
1134
172
734
query I rowsort
SELECT ALL 23 + + col1 AS col0 FROM tab2
----
40
54
82
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db
query I rowsort
SELECT - ( + tab1.col2 ) - 27 AS col2 FROM tab1
----
-123
-81
-84
query I rowsort
SELECT 95 + col2 FROM tab0
----
128
177
96
query I rowsort
SELECT col0 + + 71 AS col1 FROM tab0 cor0
----
106
160
95
query I rowsort
SELECT ALL col2 * 64 * - col2 - col0 FROM tab2
----
-43342
-46663
-92495
query I rowsort
SELECT - col1 + + cor0.col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT ALL - col1 * 81 + - col2 * + col1 FROM tab0 AS cor0
----
-14833
-7954
-9804
query I rowsort
SELECT DISTINCT + col1 * + ( 91 ) AS col1 FROM tab2 cor0
----
1547
2821
5369
query I rowsort
SELECT ALL cor0.col0 + + 30 AS col1 FROM tab1 AS cor0
----
110
33
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT - col1 * + 85 FROM tab2 AS cor0
----
-1445
-2635
-5015
query I rowsort
SELECT + col2 * - 84 AS col0 FROM tab1 cor0
----
-4536
-4788
-8064
query I rowsort
SELECT ALL + cor0.col2 + 67 FROM tab0 AS cor0
----
100
149
68
query I rowsort
SELECT DISTINCT col1 * 37 AS col2 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT ALL + col1 + 29 AS col0 FROM tab1 AS cor0
----
39
42
55
query I rowsort
SELECT ALL - 54 * + col1 AS col2 FROM tab1 AS cor0
----
-1404
-540
-702
query I rowsort
SELECT ALL col0 + - col0 - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - + 20 * cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
-1687
-1738
-1939
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9081
SELECT ALL col2 * + cor0.col0 * - CAST( NULL AS SIGNED ) + col2 * - col0 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL col2 * + cor0.col0 * - CAST ( NULL AS INTEGER ) + col2 * - col0 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9083
SELECT ALL + + col2 DIV cor0.col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL + + col2 / cor0.col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL + col0 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9085
SELECT DISTINCT - col0 + col2 * - ( + 71 ) * - cor0.col2 - col2 DIV 18 FROM tab0 AS cor0
----
36
477311
77294
skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT - col0 + col2 * - ( + 71 ) * - cor0.col2 - col2 / 18 FROM tab0 AS cor0
----
36
477311
77294
query I rowsort
SELECT DISTINCT - + col1 + - cor0.col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + col1 * ( ( + col0 ) * - col2 ) AS col1 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT 46 + + col2 FROM tab0
----
128
47
79
query I rowsort
SELECT DISTINCT + col1 + - col0 * col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT + col0 * + col1 - - col0 * col2 AS col1 FROM tab2
----
406
4345
6630
query I rowsort
SELECT - col1 * cor0.col0 + ( - col0 ) * + 74 FROM tab1 AS cor0
----
-300
-5376
-6960
query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 + + 32 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
2145
33
9348
query I rowsort
SELECT ALL + col0 - + ( col1 ) * col2 AS col1 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + col0 * + ( + 66 ) - - col1 FROM tab0 AS cor0
----
1670
2407
5965
query I rowsort
SELECT DISTINCT - + col2 * ( - ( + cor0.col1 ) ) * col0 + col0 FROM tab1 cor0
----
36544
4215
99920
query I rowsort
SELECT ALL + col2 + - col2 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - - cor0.col0 * tab2.col1 AS col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 7ccaf24f2c8d9f29787f37bd29e709d9
query I rowsort
SELECT ALL + - 6 + + col0 AS col1 FROM tab2 AS cor0
----
1
72
73
query I rowsort
SELECT ALL + 79 * 25 FROM tab0 AS cor0
----
1975
1975
1975
query I rowsort
SELECT + + col1 + 96 * col1 AS col0 FROM tab2 cor0
----
1649
3007
5723
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9101
SELECT ALL CAST( NULL AS SIGNED ) * + col2 * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 3 * 47 FROM tab2 AS cor0
----
141
141
141
query I rowsort
SELECT - + col2 * - 9 FROM tab0 AS cor0
----
297
738
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( + col2 ) * - col1 col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT cor0.col1 * + 66 AS col0 FROM tab2 AS cor0
----
1122
2046
3894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - tab0.col1 * ( + 53 ) + + col2 AS col1 FROM tab0
----
-4525
-4741
-5140
onlyif mysql # use DIV operator for integer division
query I rowsort label-9109
SELECT col2 DIV + col2 + ( - col0 + - 30 ) FROM tab1
----
-109
-32
-93
skipif mysql # not compatible
query I rowsort label-9109
SELECT col2 / + col2 + ( - col0 + - 30 ) FROM tab1
----
-109
-32
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9110
SELECT ALL - col1 DIV - col1 col1 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL - col1 / - col1 col1 FROM tab1
----
1
1
1
query I rowsort
SELECT 38 + + col1 * + col1 AS col0 FROM tab2
----
327
3519
999
query I rowsort
SELECT ALL - ( + 24 ) AS col1 FROM tab0 AS cor0
----
-24
-24
-24
query I rowsort
SELECT ALL + col1 * - 65 FROM tab2 AS cor0
----
-1105
-2015
-3835
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9114
SELECT CAST( NULL AS DECIMAL ) * - ( - col2 ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9114
SELECT CAST ( NULL AS REAL ) * - ( - col2 ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 60 + col1 * cor0.col0 FROM tab0 AS cor0
----
2124
3455
8159
query I rowsort
SELECT DISTINCT col1 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT - col2 * - 25 FROM tab1 AS cor0
----
1350
1425
2400
query I rowsort
SELECT 76 * 7 FROM tab1 AS cor0
----
532
532
532
query I rowsort
SELECT DISTINCT + 81 * ( col0 ) * ( col1 ) FROM tab1
----
51840
6318
84240
query I rowsort
SELECT + 13 + + col2 AS col2 FROM tab1 AS cor0
----
109
67
70
query I rowsort
SELECT 13 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT + ( - col0 ) + - col1 AS col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - col1 * - col2 + + col0 AS col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL 42 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT DISTINCT 48 * + 11 AS col2 FROM tab0
----
528
onlyif mysql # use DIV operator for integer division
query I rowsort label-9126
SELECT - - 47 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-9126
SELECT - - 47 / col0 AS col0 FROM tab2 AS cor0
----
0
0
6
query I rowsort
SELECT ALL - cor0.col1 + - cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - + ( - col0 ) + 97 AS col1 FROM tab2 AS cor0
----
104
175
176
query I rowsort
SELECT - - col0 * - col1 * 27 FROM tab2 AS cor0
----
-124254
-36261
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9130
SELECT ALL cor0.col2 DIV - col0 + col2 FROM tab1 AS cor0
----
36
57
95
skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL cor0.col2 / - col0 + col2 FROM tab1 AS cor0
----
36
57
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9131
SELECT - cor0.col2 * + ( col2 ) DIV col2 + 93 FROM tab1 AS cor0
----
-3
36
39
skipif mysql # not compatible
query I rowsort label-9131
SELECT - cor0.col2 * + ( col2 ) / col2 + 93 FROM tab1 AS cor0
----
-3
36
39
query I rowsort
SELECT DISTINCT col2 * + 80 + + col2 FROM tab0 AS cor0
----
2673
6642
81
query I rowsort
SELECT DISTINCT + col2 + - 39 FROM tab1 AS cor0
----
15
18
57
query I rowsort
SELECT - col0 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + col2 col1 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-9136
SELECT DISTINCT - col1 + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT - col1 + col2 / col2 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT ALL - + col1 * - cor0.col0 + col1 + + col0 FROM tab0 AS cor0
----
2174
3527
8279
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9138
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT cor0.col0 + - col0 * - col0 * 13 AS col2 FROM tab0 AS cor0
----
103062
15960
7512
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col2 + - col0 col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + 98 + + col2 * - cor0.col2 FROM tab0 AS cor0
----
-6626
-991
97
query I rowsort
SELECT ALL + ( 34 ) + col2 * + col0 FROM tab1 AS cor0
----
196
3682
7714
query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col2 FROM tab1 AS cor0
----
8
query I rowsort
SELECT DISTINCT cor1.col0 + 62 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
126
142
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-9146
SELECT - - col2 * col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9146
SELECT - - col2 * col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col1 * + 76 + col2 FROM tab1 AS cor0
----
1084
2030
817
query I rowsort
SELECT 35 * + col1 + + col2 + - col1 FROM tab0 AS cor0
----
2957
3176
3299
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9149
SELECT + 55 + 39 - + col2 * + CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9149
SELECT + 55 + 39 - + col2 * + CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 + + 94 * col2 col2 FROM tab0 AS cor0
----
176
3184
7790
query I rowsort
SELECT DISTINCT - col2 - - col0 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT - col1 * col1 * 40 + col1 + - col1 * + col2 FROM tab1
----
-28418
-4560
-7995
query I rowsort
SELECT col1 * ( + col2 ) AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - tab2.col2 * 54 * + col0 AS col1 FROM tab2
----
-10206
-109512
-162108
query I rowsort
SELECT DISTINCT col2 + col0 - col1 AS col1 FROM tab1
----
111
163
31
query I rowsort
SELECT DISTINCT tab1.col0 * - 3 FROM tab1
----
-192
-240
-9
query I rowsort
SELECT + col1 + - 38 + - col0 * - col1 FROM tab2
----
1322
210
4623
query I rowsort
SELECT 14 + cor0.col0 AS col0 FROM tab0 AS cor0
----
103
38
49
query I rowsort
SELECT - cor0.col0 * + col2 + col0 * + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 * + 88 * cor0.col1 FROM tab2 AS cor0
----
-118184
-19096
-404976
onlyif mysql # use DIV operator for integer division
query I rowsort label-9161
SELECT + + ( col1 ) DIV - col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9161
SELECT + + ( col1 ) / - col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * - col2 + + col0 AS col0 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT ( - 52 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-52
query I rowsort
SELECT ALL cor0.col0 + cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 727cf91885da1564b9eb8c57fe9a5d27
query I rowsort
SELECT 91 + cor0.col2 AS col2 FROM tab0 AS cor0
----
124
173
92
query I rowsort
SELECT + - col0 - - ( cor0.col2 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col1 * - 85 * col1 - col0 FROM tab2 AS cor0
----
24486
295807
81678
query I rowsort
SELECT DISTINCT - - 5 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
5
query I rowsort
SELECT DISTINCT tab2.col1 * - 10 FROM tab2, tab1 AS cor0
----
-170
-310
-590
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9170
SELECT col2 + + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-9170
SELECT col2 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9171
SELECT ALL col2 + + ( + cor0.col0 ) DIV col1 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL col2 + + ( + cor0.col0 ) / col1 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT col0 + col1 * col0 * col0 FROM tab1 AS cor0
----
237
41024
83280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * 16 col1 FROM tab2 AS cor0
----
272
496
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + col2 * col1 ) col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + col0 + + 37 * - 34 AS col2 FROM tab1 cor0
----
-1178
-1194
-1255
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + 65 - + col0 col1 FROM tab1 AS cor0
----
-63
-95
59
query I rowsort
SELECT DISTINCT cor0.col1 * 5 + cor0.col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT ALL + - col1 * - 38 * col0 - col0 FROM tab0 AS cor0
----
128975
307673
78408
query I rowsort
SELECT ALL col2 * 79 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 + col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 - 1 AS col1 FROM tab1 AS cor0
----
-1249
-1405
-571
query I rowsort
SELECT ALL + + col1 + ( + col1 ) * + cor0.col2 AS col0 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - - col2 * ( + 92 ) + + col0 FROM tab2 AS cor0
----
2470
2491
3575
query I rowsort
SELECT cor0.col1 - + col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - + ( - col0 ) * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9186
SELECT CAST( NULL AS SIGNED ) - ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9186
SELECT CAST ( NULL AS INTEGER ) - ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9187
SELECT ALL + + col0 + 62 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
23
64
80
skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL + + col0 + 62 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
23
64
80
query I rowsort
SELECT DISTINCT + - 94 * + col1 FROM tab0 AS cor0
----
-8084
-8554
-9118
query I rowsort
SELECT + ( + 6 ) - - col0 AS col0 FROM tab1 AS cor0
----
70
86
9
query I rowsort
SELECT ALL - ( col1 ) * - col2 - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT - + ( col1 ) * - cor0.col1 + col2 * cor0.col2 - cor0.col1 FROM tab0 AS cor0
----
14914
8399
9313
onlyif mysql # use DIV operator for integer division
query I rowsort label-9192
SELECT ALL + + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + + col2 / col0 AS col1 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + ( + cor0.col2 ) * ( col2 ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + 43 + - col2 * col1 FROM tab1 AS cor0
----
-1205
-1361
-527
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT ALL + ( cor0.col1 ) + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - 76 - col0 * - 86 FROM tab1 AS cor0
----
182
5428
6804
query I rowsort
SELECT DISTINCT + - 44 FROM tab0, tab1, tab0 AS cor0
----
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9199
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9200
SELECT + CAST( - 15 AS SIGNED ) + col2 * col2 col1 FROM tab1 AS cor0
----
2901
3234
9201
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9200
SELECT + CAST ( - 15 AS INTEGER ) + col2 * col2 col1 FROM tab1 AS cor0
----
2901
3234
9201
onlyif mysql # use DIV operator for integer division
query I rowsort label-9201
SELECT ALL + ( col0 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + ( col0 ) / + col2 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - - col1 * col0 + - col1 * cor0.col1 + + cor0.col0 FROM tab0 AS cor0
----
-5308
-5979
-93
query I rowsort
SELECT DISTINCT col2 * + 64 + + col0 * + 9 FROM tab2 AS cor0
----
1791
2366
3143
query I rowsort
SELECT + + 98 * 93 FROM tab0 AS cor0
----
9114
9114
9114
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - - cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c345857bb273aa2639457b7deb30fe90
query I rowsort
SELECT ALL - 32 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08
query I rowsort
SELECT ALL + + 70 * col2 + col0 * - 37 AS col1 FROM tab0 AS cor0
----
-1225
1422
2447
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * 33 + 34 col2 FROM tab2 AS cor0
----
-197
-2540
-2573
query I rowsort
SELECT DISTINCT - 89 * col1 * - col0 FROM tab1
----
56960
6942
92560
query I rowsort
SELECT DISTINCT - 96 + + cor0.col1 * - 53 AS col1 FROM tab1 AS cor0
----
-1474
-626
-785
onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT + 35 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9211
SELECT + 35 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - col2 + + cor0.col0 * - cor0.col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-26169
-36
-598518
query I rowsort
SELECT ALL + ( cor0.col0 ) * 46 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e3418c634c37baedb9576c442b9ee00e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT DISTINCT col0 * ( - ( - col2 ) + + col2 ) AS col2 FROM tab1
----
15360
324
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-9216
SELECT DISTINCT + col2 DIV - 83 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + col2 / - 83 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT - col2 * - 30 * - 18 + - col2 AS col0 FROM tab0
----
-17853
-44362
-541
query I rowsort
SELECT ALL - col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - col1 * + 69 AS col2 FROM tab1 cor0
----
-1794
-690
-897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 * col2 * + col1 col1 FROM tab2 AS cor0
----
10982
14229
26078
query I rowsort
SELECT DISTINCT col0 + + 83 * - col1 AS col2 FROM tab2 AS cor0
----
-1332
-2566
-4819
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( + 23 AS REAL ) + + col2 AS col0 FROM tab2 AS cor0
----
49
50
61
query I rowsort
SELECT ALL + ( - col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 52 + + col1 * col0 FROM tab0 AS cor0
----
2012
3343
8047
query I rowsort
SELECT - + 2 * - col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL - col1 + - col0 * - col2 * col2 FROM tab1 cor0
----
207926
737267
8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-9227
SELECT ALL - col0 * + col1 + - col2 + col2 DIV col0 FROM tab2 AS cor0
----
-1381
-241
-4628
skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL - col0 * + col1 + - col2 + col2 / col0 FROM tab2 AS cor0
----
-1381
-241
-4628
query I rowsort
SELECT DISTINCT + 55 + + col1 * col0 * + 91 FROM tab2 AS cor0
----
122268
19802
418837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9229
SELECT ALL - col0 + - CAST( - col1 AS SIGNED ) FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - col0 + - CAST ( - col1 AS INTEGER ) FROM tab0
----
2
62
62
query I rowsort
SELECT ALL tab2.col2 + - ( - col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + cor0.col2 * - 87 AS col0 FROM tab0, tab2 AS cor0
----
-2262
-2349
-3306
query I rowsort
SELECT + - 11 * - col2 * + col1 FROM tab1 AS cor0
----
13728
15444
6270
query I rowsort
SELECT ALL - + col1 * - col2 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - 56 + + 34 FROM tab2 cor0
----
-22
-22
-22
query I rowsort
SELECT ( - col2 ) * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9237
SELECT CAST( 90 * + col1 AS SIGNED ) + - 84 FROM tab0
----
7656
8106
8646
skipif mysql # not compatible
query I rowsort label-9237
SELECT CAST ( 90 * + col1 AS INTEGER ) + - 84 FROM tab0
----
7656
8106
8646
query I rowsort
SELECT + cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL - ( ( col1 ) + tab1.col2 ) FROM tab1
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab0, tab2 AS cor0
----
-16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( col0 ) * col1 col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + + col0 + + col2 + col1 AS col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT col2 + + col1 + col1 AS col0 FROM tab2 AS cor0
----
144
72
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9244
SELECT - col0 + - cor0.col1 * - 46 * col1 + - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
13198
159989
44168
skipif mysql # not compatible
query I rowsort label-9244
SELECT - col0 + - cor0.col1 * - 46 * col1 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
13198
159989
44168
query I rowsort
SELECT - col0 + ( col0 ) * + cor0.col0 - 88 FROM tab1 AS cor0
----
-82
3944
6232
query I rowsort
SELECT ALL col0 + - tab1.col1 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-9247
SELECT ALL tab1.col1 * col0 + ( + col0 ) DIV + col2 + + col0 FROM tab1
----
1120
705
81
skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL tab1.col1 * col0 + ( + col0 ) / + col2 + + col0 FROM tab1
----
1120
705
81
query I rowsort
SELECT ALL - 19 + col0 AS col1 FROM tab2
----
-12
59
60
query I rowsort
SELECT DISTINCT + col0 + col2 + ( col2 ) AS col2 FROM tab0
----
253
37
90
query I rowsort
SELECT DISTINCT col0 * + ( + ( + col1 ) ) AS col2 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT ALL + col2 DIV 66 col0 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL + col2 / 66 col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL cor0.col0 - - col2 AS col2 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 19 * + col2 col0 FROM tab1 cor0
----
1029
1147
1904
query I rowsort
SELECT 43 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1032
1505
3827
query I rowsort
SELECT - + 66 * col1 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
101244
42636
55242
onlyif mysql # use DIV operator for integer division
query I rowsort label-9256
SELECT - col1 DIV col1 col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9256
SELECT - col1 / col1 col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - ( + col0 ) + + col0 * - col2 AS col2 FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL + cor1.col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9259
SELECT ALL col0 DIV - 13 FROM tab0
----
-1
-2
-6
skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL col0 / - 13 FROM tab0
----
-1
-2
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9260
SELECT cor0.col0 - + col1 DIV + col0 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-9260
SELECT cor0.col0 - + col1 / + col0 FROM tab0 AS cor0
----
21
33
88
query I rowsort
SELECT + + 50 - + col1 FROM tab2 AS cor0
----
-9
19
33
query I rowsort
SELECT - cor0.col1 * col1 - cor0.col2 * ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-6604
-9374
-983
query I rowsort
SELECT 25 + - tab2.col0 * col1 + col0 FROM tab2
----
-1239
-185
-4499
query I rowsort
SELECT + cor0.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-9265
SELECT DISTINCT + + col1 DIV 34 + col1 * col0 + + ( col0 * - col0 ) AS col1 FROM tab2 AS cor0
----
-1481
-4898
168
skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT + + col1 / 34 + col1 * col0 + + ( col0 * - col0 ) AS col1 FROM tab2 AS cor0
----
-1481
-4898
168
query I rowsort
SELECT col0 + col1 * + 87 FROM tab0 cor0
----
7506
8006
8474
query I rowsort
SELECT - col1 * - cor0.col1 + col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + + col2 + 50 FROM tab2 cor0
----
76
77
88
query I rowsort
SELECT col2 * 26 FROM tab2
----
676
702
988
query I rowsort
SELECT - - ( 69 ) FROM tab1 AS cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9271
SELECT DISTINCT + col2 DIV + ( col0 ) FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + col2 / + ( col0 ) FROM tab0
----
0
1
query I rowsort
SELECT ( + tab0.col1 ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - col1 * - col0 - - tab2.col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT + col2 + + col1 * + col0 AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT 22 * col1 AS col1 FROM tab2 AS cor0
----
1298
374
682
query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT 47 + 47 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 - + col1 col2 FROM tab1 cor0
----
-53
-56
-69
query I rowsort
SELECT ALL ( - 90 ) * - col1 + 42 FROM tab1 AS cor0
----
1212
2382
942
query I rowsort
SELECT + 9 + col0 FROM tab1 AS cor0
----
12
73
89
query I rowsort
SELECT + + ( + ( + col0 ) ) * - 21 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580
query I rowsort
SELECT DISTINCT 38 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
255
4640
query I rowsort
SELECT DISTINCT - ( + col1 ) * - 24 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT - - 93 * - col2 FROM tab0 cor0
----
-3069
-7626
-93
query I rowsort
SELECT + ( + col2 ) + 58 * cor0.col0 FROM tab2 AS cor0
----
433
4550
4620
query I rowsort
SELECT DISTINCT - + col1 * col1 + ( col1 ) * col1 * + ( - 27 + col1 ) AS col1 FROM tab0 AS cor0
----
428968
521703
649221
query I rowsort
SELECT DISTINCT col2 * + col0 * - col2 + + col0 FROM tab2
----
-113997
-5096
-52650
onlyif mysql # use DIV operator for integer division
query I rowsort label-9289
SELECT + col2 * col1 - + col1 * cor0.col2 DIV - col1 FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-9289
SELECT + col2 * col1 - + col1 * cor0.col2 / - col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL col0 * + col2 + col0 * col2 + + cor0.col1 FROM tab1 cor0
----
15373
350
7306
query I rowsort
SELECT DISTINCT + + col1 * - col2 + cor0.col1 AS col1 FROM tab1 cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-9292
SELECT ALL + col0 DIV 94 + - col0 - - col2 * + col1 * + cor0.col1 FROM tab1 AS cor0
----
16144
36501
5636
skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + col0 / 94 + - col0 - - col2 * + col1 * + cor0.col1 FROM tab1 AS cor0
----
16144
36501
5636
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - 28 col2 FROM tab0 AS cor0
----
-2296
-2296
-2296
query I rowsort
SELECT tab0.col2 + 48 FROM tab0, tab1 AS cor0
----
9 values hashing to 713963ab4dfecf424d719d05d75b961d
query I rowsort
SELECT DISTINCT + col0 + 94 * + col0 - col1 FROM tab2 AS cor0
----
634
7351
7488
query I rowsort
SELECT DISTINCT 6 * ( - col1 * + col2 ) + 81 FROM tab1 cor0
----
-3339
-7407
-8343
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - 45 col0 FROM tab2 AS cor0
----
71
72
83
query I rowsort
SELECT DISTINCT 15 * + 5 + col1 FROM tab1 AS cor0
----
101
85
88
query I rowsort
SELECT ALL + col1 + + col2 * tab2.col2 AS col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT ALL - col0 + - ( + col1 * col2 ) FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT ALL col0 + col0 * - 96 AS col1 FROM tab1
----
-285
-6080
-7600
query I rowsort
SELECT tab2.col2 * + col0 * - 22 FROM tab2
----
-4158
-44616
-66044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9303
SELECT ALL - col1 + - CAST( + 19 AS SIGNED ) AS col1 FROM tab2
----
-36
-50
-78
skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - col1 + - CAST ( + 19 AS INTEGER ) AS col1 FROM tab2
----
-36
-50
-78
query I rowsort
SELECT DISTINCT col0 + - col0 + + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT tab1.col0 + tab1.col0 AS col1 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 7 col0 FROM tab0
----
602
637
679
query I rowsort
SELECT DISTINCT - 92 FROM tab0, tab1 AS cor0
----
-92
query I rowsort
SELECT ALL col1 * col0 * 22 FROM tab2
----
101244
29546
4774
query I rowsort
SELECT ALL 36 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL + col0 + col1 * 13 FROM tab0 AS cor0
----
1142
1272
1296
query I rowsort
SELECT 58 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ALL + 26 + + col0 AS col0 FROM tab0
----
115
50
61
query I rowsort
SELECT - tab2.col0 * + ( - col1 + - ( 52 ) ) AS col2 FROM tab2
----
5451
581
8658
query I rowsort
SELECT col2 - + 19 AS col0 FROM tab0
----
-18
14
63
query I rowsort
SELECT ALL - 60 + col2 * col0 FROM tab0
----
-25
7238
732
query I rowsort
SELECT DISTINCT - col0 + 80 FROM tab2 AS cor0
----
1
2
73
query I rowsort
SELECT ALL - - cor0.col2 + col2 - + col2 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * + col1 + - col2 col1 FROM tab2 AS cor0
----
-1265
-395
-678
query I rowsort
SELECT DISTINCT 19 * - col0 AS col1 FROM tab0 AS cor0
----
-1691
-456
-665
query I rowsort
SELECT DISTINCT + 91 + + col2 AS col1 FROM tab2 AS cor0
----
117
118
129
query I rowsort
SELECT - col1 * col2 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9322
SELECT - + cor0.col0 * col2 + CAST( col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9322
SELECT - + cor0.col0 * col2 + CAST ( col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9323
SELECT DISTINCT - 44 DIV + col0 AS col2 FROM tab2 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT - 44 / + col0 AS col2 FROM tab2 AS cor0
----
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9324
SELECT ALL 9 + col1 DIV - col1 AS col0 FROM tab1 cor0
----
8
8
8
skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL 9 + col1 / - col1 AS col0 FROM tab1 cor0
----
8
8
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9325
SELECT ALL 1 + - col1 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL 1 + - col1 / + cor0.col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT col0 + + col0 * + 99 AS col0 FROM tab0 AS cor0
----
2400
3500
8900
onlyif mysql # use DIV operator for integer division
query I rowsort label-9327
SELECT DISTINCT ( - col1 ) DIV tab1.col2 - 21 * tab1.col2 AS col1 FROM tab1
----
-1134
-1197
-2016
skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT ( - col1 ) / tab1.col2 - 21 * tab1.col2 AS col1 FROM tab1
----
-1134
-1197
-2016
query I rowsort
SELECT - + 94 + - cor0.col2 * 28 AS col1 FROM tab0 AS cor0
----
-1018
-122
-2390
query I rowsort
SELECT + + 79 + + col1 * col2 FROM tab1 cor0
----
1327
1483
649
query I rowsort
SELECT - col2 * col1 * + cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL - col1 * + cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + - 1 + + col0 AS col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT DISTINCT 40 * - col1 + 6 * - col2 AS col0 FROM tab0 AS cor0
----
-3638
-3886
-4132
onlyif mysql # use DIV operator for integer division
query I rowsort label-9334
SELECT - 70 DIV col0 AS col1 FROM tab2
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-9334
SELECT - 70 / col0 AS col1 FROM tab2
----
-10
0
0
query I rowsort
SELECT ( col2 ) + + cor0.col2 * + col1 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col1 - col2 col1 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9337
SELECT ALL - - col2 / - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL - - col2 / - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + col2 col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col2 * - 77 FROM tab1 AS cor0
----
-4158
-4389
-7392
query I rowsort
SELECT + col0 + ( cor0.col1 * - col2 ) AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT + col0 + - 37 AS col2 FROM tab0 AS cor0
----
-13
-2
52
query I rowsort
SELECT - 65 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT DISTINCT - 65 * - col0 * 14 + col1 * + tab0.col2 FROM tab0
----
24678
31947
88452
query I rowsort
SELECT - - ( 48 ) * - col0 FROM tab1 AS cor0
----
-144
-3072
-3840
query I rowsort
SELECT cor0.col1 * col2 * col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - 93 * 37 + + col0 FROM tab0 cor0
----
-3352
-3406
-3417
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col2 FROM tab1 AS cor0
----
-36
-36
-36
query I rowsort
SELECT ALL - col1 * col0 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - + 83 FROM tab1 cor0
----
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9350
SELECT CAST( NULL AS SIGNED ) * cor0.col0 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-9350
SELECT CAST ( NULL AS INTEGER ) * cor0.col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * + ( + col1 ) + - col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT - + col2 * + 23 FROM tab1 AS cor0
----
-1242
-1311
-2208
query I rowsort
SELECT col0 + - 66 * + col2 AS col1 FROM tab0 cor0
----
-2154
-31
-5323
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + tab1.col1 * - 6 AS col0 FROM tab1
----
-156
-60
-78
query I rowsort
SELECT + + col2 + - col1 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
-10944
-25920
-90480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9357
SELECT DISTINCT col0 DIV + cor0.col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT col0 / + cor0.col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT ALL - col0 + col0 * + col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL - cor0.col0 * ( col1 ) + col0 * col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - col1 + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT - - col2 * - col1 + + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL + 47 + col0 AS col1 FROM tab1 AS cor0
----
111
127
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT 79 + 91 AS col2 FROM tab2 AS cor0
----
170
170
170
query I rowsort
SELECT ALL - + col0 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT + + 44 * + col0 FROM tab2 AS cor0
----
308
3432
3476
query I rowsort
SELECT ALL - 12 * - 90 + - col0 FROM tab0 AS cor0
----
1045
1056
991
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 34 ) col2 FROM tab0 cor0
----
-34
-34
-34
query I rowsort
SELECT + ( col2 ) + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-13800
-42840
-704880
query I rowsort
SELECT DISTINCT + 81 + - 45 + col1 * 96 FROM tab0 AS cor0
----
8292
8772
9348
query I rowsort
SELECT ALL 96 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # use DIV operator for integer division
query I rowsort label-9373
SELECT DISTINCT - + col0 DIV + cor0.col1 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT - + col0 / + cor0.col1 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT 42 + col2 * 25 FROM tab2 AS cor0
----
692
717
992
query I rowsort
SELECT 66 * - col0 AS col0 FROM tab2
----
-462
-5148
-5214
query I rowsort
SELECT - + 41 + - col1 * - col0 FROM tab2 AS cor0
----
1302
176
4561
query I rowsort
SELECT col1 + ( col0 ) * col0 AS col2 FROM tab1 cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-9378
SELECT ALL col2 + - cor0.col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL col2 + - cor0.col0 / - col2 AS col0 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT DISTINCT col2 * + col2 + - col0 AS col0 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT col2 + + col0 * 72 AS col0 FROM tab2
----
531
5642
5726
onlyif mysql # use DIV operator for integer division
query I rowsort label-9381
SELECT DISTINCT - + col2 DIV 75 AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - + col2 / 75 AS col0 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT col1 + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - + col2 + + 38 * - col0 FROM tab2 AS cor0
----
-293
-2990
-3040
query I rowsort
SELECT + col1 * - 78 FROM tab2 AS cor0
----
-1326
-2418
-4602
query I rowsort
SELECT DISTINCT cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + tab1.col2 + col0 col2 FROM tab1
----
111
178
272
query I rowsort
SELECT 45 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT - tab2.col2 + col2 * tab2.col2 - + col0 AS col1 FROM tab2
----
1327
572
695
onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT tab2.col2 DIV + col1 + + col0 AS col0 FROM tab2
----
7
78
81
skipif mysql # not compatible
query I rowsort label-9389
SELECT tab2.col2 / + col1 + + col0 AS col0 FROM tab2
----
7
78
81
query I rowsort
SELECT ALL - col0 + col2 * - 19 FROM tab1
----
-1029
-1147
-1904
query I rowsort
SELECT DISTINCT cor0.col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-9392
SELECT ALL - tab1.col2 DIV - col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL - tab1.col2 / - col0 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT col0 * + 32 + + col2 FROM tab2 AS cor0
----
251
2522
2566
query I rowsort
SELECT ALL - cor0.col1 + - col1 * + 38 AS col1 FROM tab1 AS cor0
----
-1014
-390
-507
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9395
SELECT DISTINCT - col0 / - CAST( NULL AS SIGNED ) + 97 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT - col0 / - CAST ( NULL AS INTEGER ) + 97 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - cor0.col2 * col2 * - col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT - + cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - + cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 97 * + 54 * col1 + - col1 AS col2 FROM tab2
----
-162409
-309101
-89063
query I rowsort
SELECT ALL - tab1.col2 * + 3 AS col1 FROM tab1
----
-162
-171
-288
query I rowsort
SELECT col0 + - cor0.col0 + + 44 AS col2 FROM tab1 cor0
----
44
44
44
query I rowsort
SELECT DISTINCT + col2 + col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + - ( + col1 ) + - col1 * cor0.col2 col1 FROM tab0 AS cor0
----
-15015
-291
-5762
query I rowsort
SELECT ALL + 82 + + col0 FROM tab0 AS cor0
----
106
117
171
query I rowsort
SELECT ALL tab0.col0 + col0 + - col2 * col1 * + col1 FROM tab0
----
-244020
-678864
-9339
query I rowsort
SELECT - col1 * col1 + + col2 - col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - + 88 * + col0 AS col2 FROM tab1 cor0
----
-264
-5632
-7040
query I rowsort
SELECT ALL - 47 * - col0 AS col1 FROM tab0 AS cor0
----
1128
1645
4183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9410
SELECT ALL - + col2 + col1 + col2 DIV + col0 FROM tab1 AS cor0
----
-10
-47
-82
skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL - + col2 + col1 + col2 / + col0 FROM tab1 AS cor0
----
-10
-47
-82
query I rowsort
SELECT ALL ( - col0 ) + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9412
SELECT ALL + - col0 DIV col2 - col0 FROM tab0 cor0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + - col0 / col2 - col0 FROM tab0 cor0
----
-24
-70
-90
query I rowsort
SELECT ALL - col2 + col2 - - col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - ( + 6 ) AS col0 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT DISTINCT + 23 + col0 FROM tab2 cor0
----
101
102
30
query I rowsort
SELECT ALL - - col0 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 * col0 col1 FROM tab0 AS cor0
----
-2314
-624
-910
query I rowsort
SELECT ALL - ( col1 ) - - col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - ( - col1 ) + col0 * - 48 FROM tab2 AS cor0
----
-305
-3685
-3775
query I rowsort
SELECT + 53 * - col1 + + col1 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT - - ( col2 ) - + col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL col0 * + 80 + - 97 FROM tab1
----
143
5023
6303
onlyif mysql # use DIV operator for integer division
query I rowsort label-9423
SELECT DISTINCT col1 + - ( 39 + col1 ) DIV + tab0.col1 AS col0 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT col1 + - ( 39 + col1 ) / + tab0.col1 AS col0 FROM tab0
----
85
90
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9424
SELECT - - CAST( NULL AS SIGNED ) + - ( col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9424
SELECT - - CAST ( NULL AS INTEGER ) + - ( col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 11 * + col1 FROM tab2 AS cor0
----
187
341
649
query I rowsort
SELECT - col0 * - ( col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT ( col2 + + col0 ) * ( col1 ) FROM tab2
----
1054
1989
6136
query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab2
----
-24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9429
SELECT cor0.col2 + CAST( NULL AS SIGNED ) * + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9429
SELECT cor0.col2 + CAST ( NULL AS INTEGER ) * + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT + - 32 + - 87 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 889c1e493d5975e9cd2cf41f90342a92
query I rowsort
SELECT ALL - col2 + + 43 FROM tab0
----
-39
10
42
query I rowsort
SELECT ALL col0 + col2 * col0 AS col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT col2 * 32 FROM tab2
----
1216
832
864
query I rowsort
SELECT DISTINCT + col1 + 51 * - col2 AS col2 FROM tab1
----
-2728
-2897
-4883
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9436
SELECT col0 * CAST( NULL AS SIGNED ) - col1 * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9436
SELECT col0 * CAST ( NULL AS INTEGER ) - col1 * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 * 44 - col2 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT - col2 + ( - 88 + col2 ) FROM tab1 AS cor0
----
-88
-88
-88
query I rowsort
SELECT + col2 - + col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 4 col2 FROM tab2 AS cor0
----
11
82
83
query I rowsort
SELECT + col0 + - tab2.col0 * col1 + col0 AS col2 FROM tab2
----
-1185
-203
-4446
query I rowsort
SELECT ALL + col2 * + 46 * col0 + - col1 AS col0 FROM tab1
----
167798
353267
7426
query I rowsort
SELECT DISTINCT - 11 * 1 + + col1 - col1 * tab1.col0 AS col1 FROM tab1
----
-1038
-63
-641
query I rowsort
SELECT ALL col0 - ( col2 ) * - ( 9 ) * col1 FROM tab0
----
25566
67247
908
query I rowsort
SELECT 51 * + col1 * + col0 AS col2 FROM tab2
----
11067
234702
68493
query I rowsort
SELECT - 44 + + 26 FROM tab2 AS cor0
----
-18
-18
-18
query I rowsort
SELECT + + 32 * + col1 - + col2 FROM tab2 AS cor0
----
1862
506
965
query I rowsort
SELECT + col2 * col0 + col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT 9 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT tab1.col2 * - tab1.col0 * 3 FROM tab1
----
-10944
-23040
-486
query I rowsort
SELECT ALL - col2 + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + 0 + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9453
SELECT DISTINCT + cor0.col1 * col0 DIV 20 + + col2 * ( col1 ) FROM tab0 cor0
----
266
2941
7866
skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT + cor0.col1 * col0 / 20 + + col2 * ( col1 ) FROM tab0 cor0
----
266
2941
7866
query I rowsort
SELECT - col1 + 15 * 69 AS col0 FROM tab0 AS cor0
----
938
944
949
query I rowsort
SELECT + 68 + - col2 FROM tab0
----
-14
35
67
query I rowsort
SELECT DISTINCT 21 * + cor0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
1722
21
693
query I rowsort
SELECT + ( - col2 ) * - tab1.col2 + col0 + + col0 AS col0 FROM tab1
----
2922
3377
9376
query I rowsort
SELECT ALL ( + col0 ) + 38 AS col1 FROM tab0
----
127
62
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-9459
SELECT + col0 * col0 + - col0 DIV + 32 AS col1 FROM tab0 AS cor0
----
1224
576
7919
skipif mysql # not compatible
query I rowsort label-9459
SELECT + col0 * col0 + - col0 / + 32 AS col1 FROM tab0 AS cor0
----
1224
576
7919
query I rowsort
SELECT DISTINCT col0 * 7 + - 75 AS col2 FROM tab0 AS cor0
----
170
548
93
query I rowsort
SELECT + col1 * 21 FROM tab1 AS cor0
----
210
273
546
query I rowsort
SELECT + cor0.col0 + + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - col1 + + col2 * 80 AS col1 FROM tab1 AS cor0
----
4294
4550
7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9464
SELECT + col2 * CAST( 67 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2211
5494
67
skipif mysql # not compatible
query I rowsort label-9464
SELECT + col2 * CAST ( 67 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2211
5494
67
query I rowsort
SELECT + - cor0.col1 + + 42 * 43 + col1 AS col1 FROM tab0 AS cor0
----
1806
1806
1806
query I rowsort
SELECT DISTINCT col2 * cor0.col0 * + 54 + - col0 FROM tab2 AS cor0
----
10199
109434
162029
query I rowsort
SELECT DISTINCT - - col2 + 47 FROM tab1 AS cor0
----
101
104
143
query I rowsort
SELECT + col2 * col1 * ( col1 ) FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + cor0.col2 + + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT col2 + + 30 AS col0 FROM tab1 AS cor0
----
126
84
87
query I rowsort
SELECT ALL + col0 * - ( - 19 ) AS col0 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT - tab1.col2 * - tab1.col2 * col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT col2 * col1 + col2 + - col1 AS col1 FROM tab1
----
1331
1432
617
query I rowsort
SELECT tab0.col1 * - col2 + + col2 * - col0 AS col0 FROM tab0
----
-132
-14760
-3630
query I rowsort
SELECT tab1.col1 * - col1 * col2 AS col0 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT col1 FROM tab1 WHERE ( NULL ) IN ( - tab1.col2 + - col1 * - col0 * + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9477
SELECT + col0 DIV col0 + + col1 DIV - col0 AS col2 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-9477
SELECT + col0 / col0 + + col1 / - col0 AS col2 FROM tab0
----
-1
-2
0
query I rowsort
SELECT DISTINCT col1 * col0 + - col2 - - col0 FROM tab2
----
1384
197
4654
onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT ALL - col1 DIV col2 + + col2 + col1 AS col2 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - col1 / col2 + + col2 + col1 AS col2 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 * tab1.col1 col2 FROM tab1 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT + tab1.col0 * tab1.col1 * - col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT + tab0.col1 + + col2 * - col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT ALL - col2 + col2 - + col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 + + tab2.col2 * col1 + col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - 46 * + col1 AS col0 FROM tab2 AS cor0
----
-1426
-2714
-782
query I rowsort
SELECT ALL + col1 + col1 + col2 * + col0 FROM tab0 WHERE NULL >= + col1
----
query I rowsort
SELECT DISTINCT + 25 + - col1 * col1 FROM tab1 cor0
----
-144
-651
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9488
SELECT DISTINCT + + col0 DIV cor0.col1 + 91 * + col0 + + col2 FROM tab0 cor0
----
2217
3186
8181
skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT + + col0 / cor0.col1 + 91 * + col0 + + col2 FROM tab0 cor0
----
2217
3186
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-9489
SELECT - col0 DIV col0 + col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-9489
SELECT - col0 / col0 + col2 FROM tab1
----
53
56
95
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 = ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND col1 + col0
----
query I rowsort
SELECT DISTINCT tab2.col0 * col0 + col0 AS col2 FROM tab2
----
56
6162
6320
query I rowsort
SELECT ALL - col2 + - col0 * col0 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT 50 + - col1 * col2 FROM tab1 AS cor0
----
-1198
-1354
-520
query I rowsort
SELECT - col0 * - col2 - col0 * + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * + col1 + col0 col0 FROM tab2 AS cor0
----
1133
1929
3736
query I rowsort
SELECT - 28 + + col2 AS col0 FROM tab1 AS cor0
----
26
29
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9498
SELECT CAST( NULL AS SIGNED ) / ( col0 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9498
SELECT CAST ( NULL AS INTEGER ) / ( col0 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * col2 - - col2 * tab1.col1 AS col1 FROM tab1
----
10464
3819
4320
query I rowsort
SELECT ALL - 72 * col2 - col2 FROM tab1 AS cor0
----
-3942
-4161
-7008
query I rowsort
SELECT ALL - 94 * col1 + - col2 AS col2 FROM tab0 AS cor0
----
-8117
-8636
-9119
query I rowsort
SELECT DISTINCT col1 * col1 - + ( + col2 + col1 ) FROM tab0 AS cor0
----
7277
8108
9311
query I rowsort
SELECT DISTINCT 70 * - col0 FROM tab2 AS cor0
----
-490
-5460
-5530
query I rowsort
SELECT - - 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9505
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - 25 * + col2 AS col2 FROM tab1
----
-1350
-1425
-2400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9507
SELECT - - col2 + - col0 DIV col0 AS col1 FROM tab2 cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-9507
SELECT - - col2 + - col0 / col0 AS col1 FROM tab2 cor0
----
25
26
37
query I rowsort
SELECT DISTINCT - ( + 99 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-99
query I rowsort
SELECT DISTINCT 77 * - col1 + col1 FROM tab1
----
-1976
-760
-988
query I rowsort
SELECT - 35 * col2 + - 41 * + tab2.col1 FROM tab2
----
-2027
-2216
-3329
query I rowsort
SELECT ( + col0 ) * - 17 * - col0 FROM tab1
----
108800
153
69632
query I rowsort
SELECT DISTINCT ( + col1 ) + col0 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT + + ( col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9515
SELECT + 35 DIV col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9515
SELECT + 35 / col0 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT ALL - 86 * col0 AS col1 FROM tab1 AS cor0
----
-258
-5504
-6880
query I rowsort
SELECT - col1 + + 52 * + col1 AS col0 FROM tab0
----
4386
4641
4947
query I rowsort
SELECT DISTINCT + col2 * - 54 FROM tab0
----
-1782
-4428
-54
query I rowsort
SELECT + 83 + + col1 AS col0 FROM tab1
----
109
93
96
query I rowsort
SELECT DISTINCT + col0 - 65 FROM tab2
----
-58
13
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT + col1 * col0 - col0 DIV col0 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-9521
SELECT + col1 * col0 - col0 / col0 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT DISTINCT + + 54 * + col1 + col1 * cor0.col2 FROM tab2 AS cor0
----
1564
2511
4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9523
SELECT DISTINCT col2 + tab2.col0 DIV col1 AS col1 FROM tab2
----
27
42
skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT col2 + tab2.col0 / col1 AS col1 FROM tab2
----
27
42
query I rowsort
SELECT ALL 89 + col2 AS col1 FROM tab1
----
143
146
185
query I rowsort
SELECT 90 * - col2 FROM tab0
----
-2970
-7380
-90
query I rowsort
SELECT ALL - 19 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1362
-236
-4621
query I rowsort
SELECT DISTINCT col0 * + col1 * col2 + - col2 FROM tab2 AS cor0
----
119626
50996
5832
query I rowsort
SELECT - 43 + - cor0.col2 FROM tab2 AS cor0
----
-69
-70
-81
query I rowsort
SELECT ALL - + ( col1 ) * - col2 - cor0.col2 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9530
SELECT + 60 + - col2 - col0 DIV + col0 FROM tab2 AS cor0
----
21
32
33
skipif mysql # not compatible
query I rowsort label-9530
SELECT + 60 + - col2 - col0 / + col0 FROM tab2 AS cor0
----
21
32
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-9531
SELECT col1 - col1 DIV cor0.col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-9531
SELECT col1 - col1 / cor0.col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT DISTINCT cor0.col2 * - col2 + - col2 * col0 + col1 FROM tab2 AS cor0
----
-2645
-4429
-887
query I rowsort
SELECT - - col1 - + col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 * col2 + col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT - - col0 * col0 - col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT - tab2.col2 + + col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL - 18 * col2 FROM tab0 AS cor0
----
-1476
-18
-594
query I rowsort
SELECT - col1 * 13 AS col1 FROM tab0 AS cor0
----
-1118
-1183
-1261
query I rowsort
SELECT - - col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col2 * + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL cor0.col0 * + cor0.col0 + col2 * col2 + + col2 FROM tab2 AS cor0
----
6786
7723
805
query I rowsort
SELECT DISTINCT + - col2 * 12 + col2 FROM tab2 AS cor0
----
-286
-297
-418
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 63 ) * col0 col1 FROM tab2 AS cor0
----
441
4914
4977
query I rowsort
SELECT - 83 - tab0.col2 AS col2 FROM tab0
----
-116
-165
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9546
SELECT 70 DIV - 96 + col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9546
SELECT 70 / - 96 + col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + ( col2 * - col0 ) + - col1 * + col0 FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT 37 * cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 6e2d8808bd4257c36cb5fc1462c54827
query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT + col1 + - col1 * - col2 AS col2 FROM tab1
----
1261
1430
580
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( col2 * + tab1.col1 + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9552
SELECT ALL - col0 - - col0 DIV tab2.col0 col1 FROM tab2
----
-6
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL - col0 - - col0 / tab2.col0 col1 FROM tab2
----
-6
-77
-78
query I rowsort
SELECT tab0.col2 - + col0 * col1 FROM tab0
----
-2031
-3394
-8017
query III rowsort
SELECT * FROM tab2 WHERE col2 <= ( NULL )
----
query I rowsort
SELECT + col2 + tab0.col1 * + col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL col2 + col2 * col1 * col2 FROM tab1 AS cor0
----
119904
32547
75870
query I rowsort
SELECT col0 * tab0.col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + col2 + col0 + - col2 AS col2 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT - - cor0.col2 * col2 + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
2916
3255
9222
skipif mysql # not compatible
query I rowsort label-9559
SELECT - - cor0.col2 * col2 + + col0 / col1 AS col1 FROM tab1 AS cor0
----
2916
3255
9222
onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT - col1 * - col2 DIV col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9560
SELECT - col1 * - col2 / col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col1 * + col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
1150
3291
5509
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT col1 + col2 * + col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + col1 * col0 * + col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT col0 DIV + col2 col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9565
SELECT col0 / + col2 col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 + - col0 col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL 89 AS col2 FROM tab2 AS cor0
----
89
89
89
query I rowsort
SELECT + - 19 + cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
170
2009
2983
query I rowsort
SELECT - 48 - - 54 AS col1 FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT ALL - + 32 + - 9 FROM tab1 AS cor0
----
-41
-41
-41
query I rowsort
SELECT ALL col2 - col0 * - col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT + tab0.col1 * + cor0.col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to a8042fcd365197f4ce80520ccb46287c
query I rowsort
SELECT ALL + ( 77 ) + + col0 AS col2 FROM tab1
----
141
157
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9574
SELECT + col1 * col0 DIV + col2 + + col2 * - 44 AS col1 FROM tab0
----
-1390
-3510
3351
skipif mysql # not compatible
query I rowsort label-9574
SELECT + col1 * col0 / + col2 + + col2 * - 44 AS col1 FROM tab0
----
-1390
-3510
3351
query I rowsort
SELECT ALL + 11 + + tab2.col0 * + col2 AS col0 FROM tab2
----
200
2039
3013
query I rowsort
SELECT - ( col0 * col1 ) AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT col2 - 89 FROM tab0
----
-56
-7
-88
query I rowsort
SELECT ALL - col1 + col1 * col1 AS col1 FROM tab0
----
7310
8190
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 - - 40 col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT 4 - col2 FROM tab2 AS cor0
----
-22
-23
-34
query I rowsort
SELECT DISTINCT - 8 FROM tab2 cor0
----
-8
query I rowsort
SELECT ALL 38 * col2 AS col1 FROM tab2
----
1026
1444
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-9583
SELECT ALL - col2 DIV tab2.col0 AS col1 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - col2 / tab2.col0 AS col1 FROM tab2
----
-3
0
0
query I rowsort
SELECT DISTINCT tab1.col1 AS col2 FROM tab1, tab0 cor0
----
10
13
26
query I rowsort
SELECT col2 * col0 + 83 * ( tab1.col0 + + col0 ) AS col1 FROM tab1
----
14272
20960
660
query I rowsort
SELECT 46 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9587
SELECT col2 * + CAST( NULL AS DECIMAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9587
SELECT col2 * + CAST ( NULL AS REAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - 79 FROM tab1 AS cor0
----
-4266
-4503
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - 44 col1 FROM tab0 cor0
----
-3784
-4004
-4268
query I rowsort
SELECT ALL col2 * 87 FROM tab2 AS cor0
----
2262
2349
3306
query I rowsort
SELECT DISTINCT + - col1 * 96 FROM tab1 cor0
----
-1248
-2496
-960
query I rowsort
SELECT DISTINCT + cor0.col0 + 39 * col1 * col2 AS col2 FROM tab1 AS cor0
----
22294
48752
54759
query I rowsort
SELECT DISTINCT col0 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + 1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
1
query I rowsort
SELECT col2 * ( 51 * + col1 ) + - 40 AS col0 FROM tab1
----
29030
63608
71564
onlyif mysql # use DIV operator for integer division
query I rowsort label-9596
SELECT col1 DIV col1 col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9596
SELECT col1 / col1 col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col0 * - ( + 28 ) AS col2 FROM tab1 cor0
----
-1792
-2240
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9598
SELECT ALL - - col2 DIV ( + col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL - - col2 / ( + col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
-52
-52
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9599
SELECT + CAST( NULL AS SIGNED ) * + 1 + col2 - - ( - 43 + col1 ) * 97 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9599
SELECT + CAST ( NULL AS INTEGER ) * + 1 + col2 - - ( - 43 + col1 ) * 97 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - - ( + col2 ) + cor0.col2 AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL + ( col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col1 + - col1 AS col0 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL + + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 82 * col0 AS col2 FROM tab1 cor0
----
246
5248
6560
query I rowsort
SELECT ALL + - 35 * + col2 AS col2 FROM tab0 AS cor0
----
-1155
-2870
-35
query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab1 AS cor0
----
-85
query I rowsort
SELECT + - col1 * - col1 + col1 * + ( - col1 ) - + col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + - 84 + 79 FROM tab2 cor0
----
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 + + col1 + col0 * + ( cor0.col0 ) col1 FROM tab1 AS cor0
----
1439
4676
7661
query I rowsort
SELECT - ( - cor0.col0 ) * + col2 - 96 AS col1 FROM tab1 AS cor0
----
3552
66
7584
query I rowsort
SELECT DISTINCT + ( + 95 ) AS col0 FROM tab0 cor0
----
95
query I rowsort
SELECT col0 + ( - col1 ) AS col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + col1 - + 86 FROM tab0
----
0
11
5
query I rowsort
SELECT ( - ( col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL col2 + + col1 + cor0.col1 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT + + 8 * + col0 FROM tab1 cor0
----
24
512
640
query I rowsort
SELECT + ( - col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 + - col0 * col2 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9620
SELECT DISTINCT + col1 * col2 + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT + col1 * col2 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 - col2 * col1 * - col0 FROM tab2 cor0
----
119678
51072
5886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9622
SELECT ALL + - col0 * col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + - col0 * col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 * - col0 + - col0 * cor0.col1 * col2 FROM tab1 AS cor0
----
-32384
-4203
-93440
query I rowsort
SELECT DISTINCT + + col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL 12 * - col1 + - col1 * - col1 FROM tab1 AS cor0
----
-20
13
364
query I rowsort
SELECT DISTINCT - - ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 33 + + col0 * - ( col0 ) * + col1 + - 14 FROM tab0 AS cor0
----
-118872
-49583
-720858
query I rowsort
SELECT + col1 * - col1 + ( + 14 ) * + col2 AS col2 FROM tab2 AS cor0
----
-3117
-583
243
query I rowsort
SELECT ALL + 19 * + col0 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT + col1 + - col2 + 40 AS col0 FROM tab0 AS cor0
----
136
49
93
query I rowsort
SELECT - col1 * cor0.col2 + - 5 AS col1 FROM tab2 AS cor0
----
-1539
-651
-842
query I rowsort
SELECT DISTINCT - col2 * + col1 + - 85 * - col0 AS col0 FROM tab0 AS cor0
----
-798
103
2878
onlyif mysql # use DIV operator for integer division
query I rowsort label-9633
SELECT DISTINCT - col2 DIV col2 + 40 * - col1 FROM tab1 AS cor0
----
-1041
-401
-521
skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT - col2 / col2 + 40 * - col1 FROM tab1 AS cor0
----
-1041
-401
-521
query I rowsort
SELECT DISTINCT - col2 * ( col1 ) * - col0 + 10 * cor0.col2 FROM tab0 AS cor0
----
3405
664938
68442
query I rowsort
SELECT - + col1 + col2 * col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + + cor0.col0 + - 11 FROM tab2 AS cor0
----
-4
67
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-9637
SELECT ALL + ( col0 ) DIV - col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + ( col0 ) / - col0 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab2, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - ( + 54 ) AS col0 FROM tab0
----
-54
-54
-54
query I rowsort
SELECT + tab0.col1 + tab0.col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT - 91 * col0 FROM tab2 cor0
----
-637
-7098
-7189
query I rowsort
SELECT ALL - 91 * + col0 AS col2 FROM tab2 AS cor0
----
-637
-7098
-7189
query I rowsort
SELECT + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col0 * + 52 AS col0 FROM tab2
----
364
4056
4108
query I rowsort
SELECT DISTINCT + col2 * 54 FROM tab1 AS cor0
----
2916
3078
5184
skipif mysql # not compatible
query I rowsort
SELECT - - cor0.col0 + + CAST ( + ( - col0 ) AS REAL ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 * + 30 + col1 AS col1 FROM tab2 AS cor0
----
-1123
-721
-779
query I rowsort
SELECT col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-9649
SELECT ALL - col0 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - col0 / col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + CAST ( col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col0 * 51 * - col2 + + col2 AS col1 FROM tab1 AS cor0
----
186105
391776
8316
query I rowsort
SELECT DISTINCT - - col2 + + col2 * 0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - - col2 * + 40 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT ALL col1 + cor0.col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-9655
SELECT - col2 * col2 DIV col1 FROM tab0 AS cor0
----
-12
-73
0
skipif mysql # not compatible
query I rowsort label-9655
SELECT - col2 * col2 / col1 FROM tab0 AS cor0
----
-12
-73
0
query I rowsort
SELECT + - cor0.col2 * + 33 FROM tab1 cor0
----
-1782
-1881
-3168
query I rowsort
SELECT col0 + col1 * + 97 AS col0 FROM tab1
----
1034
1341
2525
query I rowsort
SELECT DISTINCT - col0 + ( + col0 * - ( ( - tab2.col1 ) ) ) FROM tab2
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9659
SELECT + - ( + cor0.col0 ) DIV cor0.col2 + 29 FROM tab1 AS cor0
----
28
29
29
skipif mysql # not compatible
query I rowsort label-9659
SELECT + - ( + cor0.col0 ) / cor0.col2 + 29 FROM tab1 AS cor0
----
28
29
29
query I rowsort
SELECT - - ( 27 ) + col2 * - ( col2 ) * - col2 FROM tab0 AS cor0
----
28
35964
551395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9661
SELECT + CAST( col1 AS SIGNED ) * col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
skipif mysql # not compatible
query I rowsort label-9661
SELECT + CAST ( col1 AS INTEGER ) * col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9662
SELECT CAST( 53 AS SIGNED ) + - col2 col1 FROM tab1 AS cor0
----
-1
-4
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9662
SELECT CAST ( 53 AS INTEGER ) + - col2 col1 FROM tab1 AS cor0
----
-1
-4
-43
query I rowsort
SELECT DISTINCT - 64 * - col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
246
4153
5216
query I rowsort
SELECT ALL cor0.col0 * col2 * - cor0.col2 + - col2 * + col1 FROM tab1 AS cor0
----
-10152
-208506
-738528
query I rowsort
SELECT ALL - col1 + col2 * col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT + ( + cor0.col0 ) * ( col2 * col2 ) FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9667
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 / - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 / - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9668
SELECT + - col1 * + CAST( NULL AS SIGNED ) + + ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9668
SELECT + - col1 * + CAST ( NULL AS INTEGER ) + + ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 - col1 * + cor0.col2 * col2 FROM tab2 AS cor0
----
-22630
-24565
-39943
query I rowsort
SELECT 82 - - cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 7580259294bb2b390b901bc647717b53
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( cor0.col0 AS REAL ) FROM tab1, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col1 + - col1 * - col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col1 * + 16 FROM tab2
----
272
496
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col2 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 48 + + col2 * ( + ( col1 ) ) AS col1 FROM tab1 cor0
----
1296
1452
618
query I rowsort
SELECT DISTINCT 31 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
31
query I rowsort
SELECT + cor0.col0 + 29 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 2e1187fac64777965ccb66d3b8a93c9a
query I rowsort
SELECT DISTINCT - col2 + + 6 * col2 FROM tab1 AS cor0
----
270
285
480
query I rowsort
SELECT ALL + cor0.col0 + - 78 * - col1 AS col2 FROM tab2 AS cor0
----
1405
2425
4680
query I rowsort
SELECT ALL - - col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + + col0 + + col1 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-9682
SELECT 44 + col2 * col0 DIV col1 + col2 AS col0 FROM tab0
----
206
45
86
skipif mysql # not compatible
query I rowsort label-9682
SELECT 44 + col2 * col0 / col1 + col2 AS col0 FROM tab0
----
206
45
86
query I rowsort
SELECT DISTINCT + col2 - - tab0.col0 * col0 AS col0 FROM tab0
----
1226
609
8003
query I rowsort
SELECT ALL 53 - - col2 FROM tab0
----
135
54
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT - 2 DIV + col1 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9685
SELECT - 2 / + col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 82 * - col1 AS col0 FROM tab2 AS cor0
----
-1394
-2542
-4838
query I rowsort
SELECT ALL 93 FROM tab0, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9688
SELECT - CAST( 57 AS SIGNED ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
skipif mysql # not compatible
query I rowsort label-9688
SELECT - CAST ( 57 AS INTEGER ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT + col0 * col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT + - 20 * + col2 FROM tab0 AS cor0
----
-1640
-20
-660
onlyif mysql # use DIV operator for integer division
query I rowsort label-9691
SELECT ALL 51 DIV + 43 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL 51 / + 43 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - col2 * + 48 + - col1 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-2133
-2470
-2782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 44 * - col1 col1 FROM tab1 AS cor0
----
1144
440
572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col2 FROM tab2 AS cor0
----
-15
query I rowsort
SELECT + 97 * 12 AS col1 FROM tab0 AS cor0
----
1164
1164
1164
query I rowsort
SELECT - 26 * col1 AS col1 FROM tab0 AS cor0
----
-2236
-2366
-2522
query I rowsort
SELECT - - col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + 99 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT + ( 21 ) * col0 FROM tab0 cor0
----
1869
504
735
query I rowsort
SELECT + col2 * col0 * + col0 + - col1 AS col0 FROM tab0
----
1128
18922
649431
query I rowsort
SELECT ALL - 88 AS col1 FROM tab2
----
-88
-88
-88
query I rowsort
SELECT ALL 20 * col2 + - col0 * - col0 * col0 FROM tab1 AS cor0
----
1107
263284
513920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT + ( col2 ) + + col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT ( + col0 ) * + tab0.col0 + col1 * - tab0.col0 AS col0 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT ALL - 77 * - col0 FROM tab0 AS cor0
----
1848
2695
6853
query I rowsort
SELECT ALL + - col2 * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9708
SELECT + - 30 DIV - cor0.col2 FROM tab0 AS cor0
----
0
0
30
skipif mysql # not compatible
query I rowsort label-9708
SELECT + - 30 / - cor0.col2 FROM tab0 AS cor0
----
0
0
30
query I rowsort
SELECT ALL 62 * - col1 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-9710
SELECT - ( - col0 ) DIV col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9710
SELECT - ( - col0 ) / col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - ( col0 ) + col1 + col2 * col2 AS col0 FROM tab0 cor0
----
1151
63
6726
query I rowsort
SELECT - 6 * col2 * - col1 FROM tab2 AS cor0
----
3876
5022
9204
query I rowsort
SELECT DISTINCT + + 3 * col2 FROM tab2 cor0
----
114
78
81
query I rowsort
SELECT 99 + col2 * 58 AS col0 FROM tab1 cor0
----
3231
3405
5667
query I rowsort
SELECT - + 1 * + col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col2 + cor0.col1 * - 0 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9718
SELECT DISTINCT + - 89 DIV - col2 + col0 + + col2 * - col1 col0 FROM tab1 AS cor0
----
-1168
-1400
-505
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT + - 89 / - col2 + col0 + + col2 * - col1 col0 FROM tab1 AS cor0
----
-1168
-1400
-505
query I rowsort
SELECT ALL - + 30 * col1 AS col2 FROM tab1 AS cor0
----
-300
-390
-780
onlyif mysql # use DIV operator for integer division
query I rowsort label-9720
SELECT - - col1 + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-9720
SELECT - - col1 + col1 / col0 AS col2 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT + 60 FROM tab1 cor0
----
60
60
60
query I rowsort
SELECT DISTINCT 8 + col1 FROM tab1 AS cor0
----
18
21
34
query I rowsort
SELECT - cor0.col1 + - 35 FROM tab1, tab0 AS cor0
----
9 values hashing to 278a5b9b48b342a4e4a8979a116175e1
query I rowsort
SELECT + 87 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT cor0.col2 DIV + cor0.col2 + col2 * col2 FROM tab0 cor0
----
1090
2
6725
skipif mysql # not compatible
query I rowsort label-9725
SELECT cor0.col2 / + cor0.col2 + col2 * col2 FROM tab0 cor0
----
1090
2
6725
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
46
query I rowsort
SELECT DISTINCT col1 + 82 FROM tab2
----
113
141
99
query I rowsort
SELECT - col2 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-327
-3507
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + col2 * col0 col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + - col2 * + col1 + - 76 AS col1 FROM tab0 AS cor0
----
-173
-2914
-7538
query I rowsort
SELECT ALL + col2 * ( - col1 ) AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col2 * ( - 35 ) - - col1 AS col0 FROM tab2 AS cor0
----
-1313
-851
-914
query I rowsort
SELECT DISTINCT + - col2 + - 56 AS col1 FROM tab1 AS cor0
----
-110
-113
-152
query I rowsort
SELECT ALL + + col0 + - ( - 72 ) AS col2 FROM tab2 AS cor0
----
150
151
79
query I rowsort
SELECT + + ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - col0 * + col2 * - col0 + col1 FROM tab1 AS cor0
----
233482
512
614413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9737
SELECT - CAST( - col0 AS SIGNED ) * - col2 * 22 AS col1 FROM tab1 cor0
----
-168960
-3564
-80256
skipif mysql # not compatible
query I rowsort label-9737
SELECT - CAST ( - col0 AS INTEGER ) * - col2 * 22 AS col1 FROM tab1 cor0
----
-168960
-3564
-80256
onlyif mysql # use DIV operator for integer division
query I rowsort label-9738
SELECT + cor0.col1 DIV + col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9738
SELECT + cor0.col1 / + col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT col0 * - ( col1 + col1 ) AS col0 FROM tab1 AS cor0
----
-1280
-156
-2080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col0 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT 69 + - col0 FROM tab0 AS cor0
----
-20
34
45
query I rowsort
SELECT - col2 + - 79 * col0 FROM tab2 AS cor0
----
-580
-6188
-6279
query I rowsort
SELECT ALL - cor0.col1 + 64 FROM tab0 cor0
----
-22
-27
-33
query I rowsort
SELECT DISTINCT + col0 * + 81 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT DISTINCT col1 - 22 AS col2 FROM tab2 AS cor0
----
-5
37
9
query I rowsort
SELECT + col0 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT col1 * + ( ( col2 ) ) FROM tab2 AS cor0
----
1534
646
837
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 AS cor2, tab1
----
13122 values hashing to db1bb55c95034fb7c7b55378ecc213b9
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col2 + - ( + 73 ) * col2 FROM tab1 AS cor0
----
-3996
-4218
-7104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9752
SELECT ALL - col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9753
SELECT ALL + col2 DIV col0 - + 18 AS col1 FROM tab2 AS cor0
----
-15
-18
-18
skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + col2 / col0 - + 18 AS col1 FROM tab2 AS cor0
----
-15
-18
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-9754
SELECT DISTINCT + - col1 + - ( + ( col2 DIV 32 ) ) * cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-306
-31
-59
skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT + - col1 + - ( + ( col2 / 32 ) ) * cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-306
-31
-59
query I rowsort
SELECT ALL col0 + + 53 FROM tab2 cor0
----
131
132
60
query I rowsort
SELECT - 96 + - col0 AS col0 FROM tab0 AS cor0
----
-120
-131
-185
query I rowsort
SELECT col2 + + col0 + col0 FROM tab2
----
182
196
41
query I rowsort
SELECT DISTINCT 36 * col0 FROM tab2
----
252
2808
2844
query I rowsort
SELECT ALL - cor0.col1 + + col2 * - col0 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT cor0.col2 * - cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 309d8ba6d1ea89e6795c82dda466e1ce
query I rowsort
SELECT DISTINCT + ( col1 * + col0 ) AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ( + col0 + - col2 ) * + tab2.col1 AS col0 FROM tab2
----
-620
3068
697
query I rowsort
SELECT + ( - col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - 44 AS col0 FROM tab2 AS cor0
----
-44
-44
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT + + 93 * + cor0.col0 + + col0 DIV ( + cor0.col1 ) FROM tab1 cor0
----
279
5958
7446
skipif mysql # not compatible
query I rowsort label-9765
SELECT + + 93 * + cor0.col0 + + col0 / ( + cor0.col1 ) FROM tab1 cor0
----
279
5958
7446
onlyif mysql # use DIV operator for integer division
query I rowsort label-9766
SELECT - col2 * cor0.col1 + - 68 DIV - col1 FROM tab1 AS cor0
----
-1243
-1402
-564
skipif mysql # not compatible
query I rowsort label-9766
SELECT - col2 * cor0.col1 + - 68 / - col1 FROM tab1 AS cor0
----
-1243
-1402
-564
query I rowsort
SELECT + - col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9768
SELECT + col1 DIV + 83 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9768
SELECT + col1 / + 83 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col0 * ( cor0.col2 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col2 + 26 AS col2 FROM tab0 cor0
----
108
27
59
query I rowsort
SELECT DISTINCT 12 * - col1 + + col1 + - col2 FROM tab2 cor0
----
-225
-368
-675
query I rowsort
SELECT + + 78 * - col0 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT ALL + 78 * - cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 18c0c4f7115a498d3647b74f028370dc
query I rowsort
SELECT - 51 FROM tab1, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
onlyif mysql # use DIV operator for integer division
query I rowsort label-9776
SELECT - 42 * + col0 - 2 DIV + 51 FROM tab1 cor0
----
-126
-2688
-3360
skipif mysql # not compatible
query I rowsort label-9776
SELECT - 42 * + col0 - 2 / + 51 FROM tab1 cor0
----
-126
-2688
-3360
query I rowsort
SELECT + + ( - col0 ) + + ( 3 ) FROM tab0 AS cor0
----
-21
-32
-86
query I rowsort
SELECT + + 77 * + col0 AS col1 FROM tab0 AS cor0
----
1848
2695
6853
query I rowsort
SELECT col2 - - col0 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col2 + 96 FROM tab0
----
129
178
97
query I rowsort
SELECT ALL - col1 + + tab0.col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 + ( col1 ) + + col0 FROM tab1
----
138
173
32
query I rowsort
SELECT ALL col2 * tab2.col0 - - col2 AS col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT tab0.col0 * - col2 + + col2 * + col0 + + col0 * col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE ( col0 * + col0 ) > NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 / col2 NOT BETWEEN + col2 + col2 / + col1 AND NULL
----
query I rowsort
SELECT DISTINCT col0 * col1 + col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT ALL + 49 AS col0 FROM tab1 cor0
----
49
49
49
query I rowsort
SELECT DISTINCT 69 * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
514
5441
5468
query I rowsort
SELECT DISTINCT + 31 * + col1 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT + - cor0.col1 * col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + col0 + col0 * col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT 5 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9
query I rowsort
SELECT DISTINCT + 55 + - col1 AS col2 FROM tab0 cor0
----
-31
-36
-42
query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN col0 AND ( col2 * col2 + col2 )
----
query I rowsort
SELECT - col2 + tab1.col2 + - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL + col2 * col1 - cor0.col1 FROM tab2 AS cor0 WHERE NULL > col2
----
query I rowsort
SELECT col0 * col0 * + col0 AS col0 FROM tab2
----
343
474552
493039
query I rowsort
SELECT ALL - col1 * - col0 AS col1 FROM tab0 AS cor0 WHERE ( + col0 ) IN ( col1 * - col2 - col0 )
----
query I rowsort
SELECT - col0 + col0 * col0 + col1 AS col0 FROM tab2
----
6065
6179
73
query I rowsort
SELECT ALL - col1 * - col1 * tab0.col0 AS col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT - tab2.col0 + + col1 * col0 AS col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 * col1 - - col0 AS col2 FROM tab2
----
-21
-2496
1738
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * cor0.col2 + 40 AS col2 FROM tab2 AS cor0
----
1574
686
877
query I rowsort
SELECT DISTINCT 85 - 14 AS col0 FROM tab1 AS cor0
----
71
query I rowsort
SELECT ALL ( - ( col2 ) ) AS col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + 77 + col2 * - col0 FROM tab0 AS cor0
----
-715
-7221
42
query I rowsort
SELECT ALL col1 + - 7 * col1 AS col0 FROM tab0
----
-516
-546
-582
query I rowsort
SELECT ALL 55 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT + col0 + + col0 - - 83 * + col1 AS col1 FROM tab0
----
7186
7731
8121
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 col1 + 42 AS col2 FROM tab0
----
128
133
139
query I rowsort
SELECT + 1 + col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT - 82 * - 39 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d07a4823297b2970e554865283eee65b
query I rowsort
SELECT ALL ( col1 ) * col2 + col1 * - col1 FROM tab0
----
-4558
-819
-9312
query I rowsort
SELECT - col2 - + ( tab0.col0 + - col1 ) AS col1 FROM tab0
----
-80
29
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-9819
SELECT DISTINCT + 90 + - col0 DIV col2 + 41 FROM tab0 AS cor0
----
130
131
96
skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + 90 + - col0 / col2 + 41 FROM tab0 AS cor0
----
130
131
96
query I rowsort
SELECT col0 + - tab1.col0 * + 49 FROM tab1
----
-144
-3072
-3840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9821
SELECT + tab1.col0 + col2 + ( + col1 + col1 ) * - CAST( col1 AS SIGNED ) FROM tab1
----
-1295
-162
-79
skipif mysql # not compatible
query I rowsort label-9821
SELECT + tab1.col0 + col2 + ( + col1 + col1 ) * - CAST ( col1 AS INTEGER ) FROM tab1
----
-1295
-162
-79
query I rowsort
SELECT 95 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 - + CAST ( col2 AS REAL ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col1 * ( col1 ) + cor0.col2 * - 95 FROM tab0 AS cor0
----
4261
491
9314
query I rowsort
SELECT col1 * - col0 - 61 * 31 FROM tab2
----
-2108
-3234
-6493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + tab0.col1 col2 FROM tab0
----
172
182
194
query I rowsort
SELECT + 44 + + col2 FROM tab2
----
70
71
82
query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1, tab2 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 37 * - col0 * - col0 AS col2 FROM tab1
----
151552
236800
333
query I rowsort
SELECT 26 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT col0 - + 75 FROM tab2 AS cor0
----
-68
3
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9832
SELECT ALL cor0.col1 DIV 57 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL cor0.col1 / 57 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col1 - + 3 FROM tab1 AS cor0
----
-13
-16
-29
query I rowsort
SELECT DISTINCT + col0 * 74 * col0 FROM tab2 cor0
----
3626
450216
461834
query I rowsort
SELECT ALL - col1 + ( col2 ) * col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT + col0 - - 41 AS col1 FROM tab1 AS cor0
----
105
121
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-9837
SELECT DISTINCT - + col0 DIV + col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT - + col0 / + col2 FROM tab1 AS cor0
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9838
SELECT - CAST( col2 AS SIGNED ) * + col1 FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-9838
SELECT - CAST ( col2 AS INTEGER ) * + col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9839
SELECT ALL CAST( NULL AS SIGNED ) * 75 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL CAST ( NULL AS INTEGER ) * 75 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT DISTINCT + col0 DIV 44 AS col2 FROM tab0
----
0
2
skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + col0 / 44 AS col2 FROM tab0
----
0
2
query I rowsort
SELECT + 83 * col2 AS col1 FROM tab2
----
2158
2241
3154
query I rowsort
SELECT ALL cor0.col2 * col2 + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-3926
101
512
query I rowsort
SELECT 9 * - ( tab1.col1 * + col1 ) FROM tab1
----
-1521
-6084
-900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9844
SELECT ALL CAST( NULL AS SIGNED ) * + col0 * + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 * + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 82 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1616
728
919
query I rowsort
SELECT + cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col2 + - ( - cor0.col0 ) * + col1 AS col2 FROM tab1 cor0
----
24
583
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9848
SELECT - col2 + + CAST( 24 AS SIGNED ) FROM tab1 AS cor0
----
-30
-33
-72
skipif mysql # not compatible
query I rowsort label-9848
SELECT - col2 + + CAST ( 24 AS INTEGER ) FROM tab1 AS cor0
----
-30
-33
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-9849
SELECT ALL - col1 DIV 95 + 32 + col0 * + col1 FROM tab0 AS cor0
----
2096
3426
8131
skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - col1 / 95 + 32 + col0 * + col1 FROM tab0 AS cor0
----
2096
3426
8131
query I rowsort
SELECT DISTINCT - col0 + ( + tab2.col1 ) FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9851
SELECT - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9851
SELECT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - col0 + 7 FROM tab0
----
-17
-28
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9853
SELECT DISTINCT col1 * col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT col1 * col0 / - col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + cor0.col0 - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + + col1 * col0 * cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009
query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 - col2 * col1 FROM tab2
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + col2 + - col1 col2 FROM tab0 AS cor0
----
-34
53
9
query I rowsort
SELECT - 36 * col2 * col1 AS col1 FROM tab2 AS cor0
----
-23256
-30132
-55224
onlyif mysql # use DIV operator for integer division
query I rowsort label-9862
SELECT ALL + col0 DIV tab2.col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + col0 / tab2.col1 AS col0 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26
query I rowsort
SELECT col1 * - col0 + - col0 * tab2.col2 FROM tab2
----
-406
-4345
-6630
query I rowsort
SELECT DISTINCT col1 * tab1.col0 * col0 AS col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT DISTINCT - col0 * - tab0.col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - col0 * col2 - col2 * col0 * + col1 FROM tab0
----
-3430
-671416
-68904
query I rowsort
SELECT - col2 + col2 * - col2 FROM tab2 cor0
----
-1482
-702
-756
query I rowsort
SELECT cor0.col2 + + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - + col2 + cor0.col2 * + col0 AS col0 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT ALL + 25 * - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e355f1314e550ddd0c7740ff16769d7e
query I rowsort
SELECT + col1 + - col2 * - ( - col0 + cor0.col2 ) FROM tab1 AS cor0
----
-389
1549
2780
query I rowsort
SELECT - cor0.col1 * 30 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 444e87c0ff22be40825ef4f7f48b9eb8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT + col2 * col2 * col1 AS col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT + + 59 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT - 0 + - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL - col1 * col0 * 6 AS col0 FROM tab2
----
-1302
-27612
-8058
onlyif mysql # use DIV operator for integer division
query I rowsort label-9880
SELECT DISTINCT - col0 DIV ( col0 ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - col0 / ( col0 ) FROM tab0 AS cor0
----
-1
query I rowsort
SELECT col0 * - ( + col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT col1 * - 46 AS col0 FROM tab0 AS cor0
----
-3956
-4186
-4462
query I rowsort
SELECT DISTINCT - - col0 * 91 AS col0 FROM tab2 AS cor0
----
637
7098
7189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9884
SELECT + col1 * CAST( + col2 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
22599
24548
39884
skipif mysql # not compatible
query I rowsort label-9884
SELECT + col1 * CAST ( + col2 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - col2 + col2 - - col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - col2 - - 83 AS col2 FROM tab0
----
1
50
82
query I rowsort
SELECT ALL - ( - tab1.col0 ) * col2 - col1 FROM tab1
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-9888
SELECT col2 * 23 DIV - tab0.col2 AS col1 FROM tab0
----
-23
-23
-23
skipif mysql # not compatible
query I rowsort label-9888
SELECT col2 * 23 / - tab0.col2 AS col1 FROM tab0
----
-23
-23
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 col0 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9890
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col1 * col0 col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col1 * col0 col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL + 47 * - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a565c3c2e53b1ae3ae641b4bae242e0c
onlyif mysql # use DIV operator for integer division
query I rowsort label-9892
SELECT - col2 DIV + 58 + + col2 - - 16 * col1 AS col0 FROM tab0 AS cor0
----
1409
1537
1553
skipif mysql # not compatible
query I rowsort label-9892
SELECT - col2 / + 58 + + col2 - - 16 * col1 AS col0 FROM tab0 AS cor0
----
1409
1537
1553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 + cor0.col1 + col0 col0 FROM tab1 AS cor0
----
104
149
168
query I rowsort
SELECT cor0.col2 + col1 - 90 AS col1 FROM tab1 AS cor0
----
-10
-23
19
query I rowsort
SELECT - - ( col0 ) * 44 + 49 * - col2 * cor0.col0 FROM tab2 AS cor0
----
-143622
-8953
-95940
query I rowsort
SELECT ALL - col2 * + col2 + col2 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-9897
SELECT - 72 DIV col2 + col0 AS col0 FROM tab1 AS cor0
----
2
63
80
skipif mysql # not compatible
query I rowsort label-9897
SELECT - 72 / col2 + col0 AS col0 FROM tab1 AS cor0
----
2
63
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT + + 82 DIV cor0.col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9898
SELECT + + 82 / cor0.col2 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT DISTINCT + col1 + + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT + col1 + + col2 / + col1 AS col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT + ( - col0 ) + col1 + col1 AS col2 FROM tab2 AS cor0
----
-45
40
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9901
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT + + 2 * col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL col1 * + col2 + col2 * + col0 * col0 FROM tab2 cor0
----
159718
2160
237804
query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-9905
SELECT DISTINCT cor0.col2 + + cor0.col2 DIV CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT cor0.col2 + + cor0.col2 / CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
1
32
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 - col2 col0 FROM tab1 cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-9907
SELECT ALL - - col1 DIV col0 + - col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - - col1 / col0 + - col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-88
query I rowsort
SELECT ALL + + col0 + col0 * - 18 * col2 FROM tab2 cor0
----
-3395
-36426
-53957
query I rowsort
SELECT DISTINCT - 25 * col2 * 13 + col1 * col1 * 25 AS col0 FROM tab2 AS cor0
----
-5125
15250
78575
query I rowsort
SELECT ALL - + col2 + col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - 9 - + col1 AS col0 FROM tab1 AS cor0
----
-19
-22
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-9912
SELECT cor0.col1 DIV col0 - + 45 * + col1 FROM tab0 AS cor0
----
-3867
-4094
-4363
skipif mysql # not compatible
query I rowsort label-9912
SELECT cor0.col1 / col0 - + 45 * + col1 FROM tab0 AS cor0
----
-3867
-4094
-4363
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - cor0.col0 col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9914
SELECT ALL + 23 DIV cor0.col1 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + 23 / cor0.col1 FROM tab1 AS cor0
----
0
1
2
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + cor0.col0 * col1 col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + - col0 - - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 - col0 * - 81 AS col2 FROM tab1
----
269
5194
6493
query I rowsort
SELECT DISTINCT - 28 * tab2.col0 + ( col0 ) * tab2.col2 AS col1 FROM tab2
----
-156
-7
790
query I rowsort
SELECT ALL - 64 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT DISTINCT 67 + col2 AS col0 FROM tab2
----
105
93
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col1 + col0 + col2 col2 FROM tab1 AS cor0
----
221
345
733
query I rowsort
SELECT - col2 - + ( - col1 + - col2 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 84 + - col0 + - col0 * col2 FROM tab1
----
-3628
-7676
-81
query I rowsort
SELECT DISTINCT col0 * tab0.col1 + + tab0.col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL 16 + - tab1.col1 FROM tab1
----
-10
3
6
query I rowsort
SELECT DISTINCT - col0 * col2 * - col2 + - ( 57 ) - col2 AS col2 FROM tab2 AS cor0
----
113981
5019
52645
query I rowsort
SELECT ALL - cor0.col2 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( 39 ) FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT + 26 * + col1 * - col2 FROM tab0 AS cor0
----
-194012
-2522
-73788
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9931
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 15 col2 FROM tab1 cor0
----
-15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9933
SELECT ALL + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL 84 + + cor0.col2 FROM tab2 cor0
----
110
111
122
query I rowsort
SELECT ALL + cor0.col0 - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 7 * - col1 - + cor0.col1 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT DISTINCT - col1 * col1 * + cor0.col0 + - col1 * - 25 FROM tab0 AS cor0
----
-175354
-326890
-734734
query I rowsort
SELECT col0 * + 7 FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT ALL + cor0.col2 + + cor0.col1 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - 60 * col1 AS col0 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT DISTINCT 22 + 4 * - col1 AS col1 FROM tab0 AS cor0
----
-322
-342
-366
query I rowsort
SELECT ALL tab2.col0 * ( col1 ) * col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT - cor1.col2 * - cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489
query I rowsort
SELECT 36 - ( col1 ) FROM tab0
----
-50
-55
-61
query I rowsort
SELECT ALL - - 17 * 83 FROM tab0 AS cor0
----
1411
1411
1411
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9946
SELECT DISTINCT + ( - col0 ) + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT + ( - col0 ) + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 3 - - col1 AS col0 FROM tab0 AS cor0
----
100
89
94
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 * + cor0.col1 + + col2 AS col1 FROM tab2 cor0
----
-119626
-50996
-5832
query I rowsort
SELECT DISTINCT col2 * col0 + - col1 AS col1 FROM tab0 cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-9950
SELECT ALL + col1 + col0 DIV - col0 - - 98 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-8343
-8828
-9410
skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + col1 + col0 / - col0 - - 98 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-8343
-8828
-9410
query I rowsort
SELECT ALL - + ( - 55 ) * + col2 AS col2 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT ALL - 36 * - tab2.col0 FROM tab2
----
252
2808
2844
query I rowsort
SELECT col0 * tab0.col2 * - 93 FROM tab0
----
-3255
-678714
-73656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 16 * + col0 col2 FROM tab0
----
129584
33024
54320
onlyif mysql # use DIV operator for integer division
query I rowsort label-9955
SELECT ALL + col0 DIV ( col2 * col1 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL + col0 / ( col2 * col1 ) FROM tab1
----
0
0
0
query I rowsort
SELECT ALL ( + 7 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT DISTINCT + col2 + tab0.col1 * col1 + col1 * col2 FROM tab0
----
10267
15825
9507
query I rowsort
SELECT ALL tab2.col0 * + ( col1 ) + + tab2.col1 + + 4 AS col1 FROM tab2
----
1364
252
4665
query I rowsort
SELECT + col2 * 64 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT ALL col0 + + ( - cor0.col1 ) + col2 FROM tab1 cor0
----
111
163
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col0 ) col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9962
SELECT ( 38 + - col1 ) DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9962
SELECT ( 38 + - col1 ) / col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 87 * - 37 + col1 AS col2 FROM tab0 AS cor0
----
-3122
-3128
-3133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9964
SELECT col0 * col1 + col1 + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9964
SELECT col0 * col1 + col1 + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * - col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT + + col1 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT col2 + + col0 * - col0 - col2 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 + + col2 col2 FROM tab1 AS cor0
----
104
179
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9969
SELECT ALL + col2 * col0 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL + col2 * col0 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + 14 + + col2 * + ( - cor0.col2 ) AS col1 FROM tab0 cor0
----
-1075
-6710
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - col2 + col2 col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT 99 * col1 AS col0 FROM tab2 AS cor0
----
1683
3069
5841
query I rowsort
SELECT DISTINCT col0 * col2 + col0 - cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9976
SELECT col2 DIV - 44 AS col1 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-9976
SELECT col2 / - 44 AS col1 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT + tab2.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ( tab1.col2 ) * col0 + + 71 * col0 FROM tab1
----
13360
375
8192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9979
SELECT DISTINCT - col2 DIV 42 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT - col2 / 42 AS col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT col2 * - col0 * col0 + 83 AS col1 FROM tab0 AS cor0
----
-1142
-18925
-649439
query I rowsort
SELECT - - 30 AS col2 FROM tab2 AS cor0
----
30
30
30
query I rowsort
SELECT ALL - 4 + col2 FROM tab1 AS cor0
----
50
53
92
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237
query I rowsort
SELECT 27 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9985
SELECT - - col0 * - col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9985
SELECT - - col0 * - col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 1 * - col0 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - - cor1.col1 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - 31 FROM tab0, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT - 97 * col0 AS col0 FROM tab2 AS cor0
----
-679
-7566
-7663
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * col0 col0 FROM tab2 AS cor0
----
-357
-3978
-4029
query I rowsort
SELECT ALL col0 * - 50 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-539
-5928
-6952
query I rowsort
SELECT DISTINCT - - cor0.col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + - 49 * + col2 AS col1 FROM tab1 AS cor0
----
-2646
-2793
-4704
query I rowsort
SELECT ALL + ( + col2 ) + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9997
SELECT DISTINCT + CAST( - 58 AS SIGNED ) DIV col0 + cor0.col1 FROM tab2 AS cor0
----
17
23
59
skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT + CAST ( - 58 AS INTEGER ) / col0 + cor0.col1 FROM tab2 AS cor0
----
17
23
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9998
SELECT DISTINCT CAST( + col2 AS SIGNED ) + cor0.col2 * ( + 2 ) AS col1 FROM tab0 AS cor0
----
246
3
99
skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + cor0.col2 * ( + 2 ) AS col1 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT ALL + 50 FROM tab1 cor0
----
50
50
50