sqllogictest
Artifact Content
Not logged in

Artifact 15e3c7ce8e96781852dda3af32d61843bda6e75e:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(89,91,82)

statement ok
INSERT INTO tab0 VALUES(35,97,1)

statement ok
INSERT INTO tab0 VALUES(24,86,33)

statement ok
INSERT INTO tab1 VALUES(64,10,57)

statement ok
INSERT INTO tab1 VALUES(3,26,54)

statement ok
INSERT INTO tab1 VALUES(80,13,96)

statement ok
INSERT INTO tab2 VALUES(7,31,27)

statement ok
INSERT INTO tab2 VALUES(79,17,38)

statement ok
INSERT INTO tab2 VALUES(78,59,26)

query I rowsort
SELECT + - col2 * col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2
SELECT ALL - - col2 DIV + col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL - - col2 / + col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT ALL - cor0.col1 DIV col0 + col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - cor0.col1 / col0 + col0 FROM tab0 AS cor0
----
21
33
88

query I rowsort
SELECT ALL + - 62 FROM tab2 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - col2 * col2 * col1 + col1 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + cor0.col1 col1 FROM tab2 AS cor0
----
55
58
85

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57

query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-10
SELECT ALL + col0 * - CAST( col1 + col1 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
-212194
-3038
-717912

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + col0 * - CAST ( col1 + col1 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
-212194
-3038
-717912

query I rowsort
SELECT col2 * - 39 AS col2 FROM tab2 cor0
----
-1014
-1053
-1482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - + col1 + + 69 * + col1 * - col1 FROM tab0 AS cor0
----
-510410
-571480
-649318

query I rowsort
SELECT col2 + - 71 AS col1 FROM tab2 AS cor0
----
-33
-44
-45

query I rowsort
SELECT + col2 * + col1 + 13 FROM tab0 AS cor0
----
110
2851
7475

query I rowsort
SELECT ALL col0 + 58 FROM tab1 AS cor0
----
122
138
61

query I rowsort
SELECT col0 + 71 + 93 * col2 AS col0 FROM tab1 AS cor0
----
5096
5436
9079

query I rowsort
SELECT - col2 * col2 + 48 + - col2 FROM tab2 AS cor0
----
-1434
-654
-708

query I rowsort
SELECT ALL + ( + cor0.col2 ) * + ( - col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 + col1 col0 FROM tab0 AS cor0
----
182
187
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-21
SELECT + col0 * + col2 + - col1 DIV - 68 + col1 AS col0 FROM tab0 cor0
----
133
7390
879

skipif mysql # not compatible
query I rowsort label-21
SELECT + col0 * + col2 + - col1 / - 68 + col1 AS col0 FROM tab0 cor0
----
133
7390
879

query I rowsort
SELECT DISTINCT + - 98 * - col1 AS col1 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT + cor0.col0 + col0 + + 25 FROM tab0 AS cor0
----
203
73
95

query I rowsort
SELECT + + col0 + col0 * col0 * col1 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT ALL - col2 - col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - col0 - col1 * + col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT col1 * - col1 + - col1 * - tab1.col1 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL tab1.col1 + tab1.col1 * col2 + col0 AS col0 FROM tab1
----
1341
1433
644

query I rowsort
SELECT + 52 * + col2 FROM tab0
----
1716
4264
52

query I rowsort
SELECT ( col2 + - ( col1 ) ) * col1 AS col2 FROM tab2
----
-124
-1947
357

query I rowsort
SELECT 52 + col2 AS col1 FROM tab1
----
106
109
148

query I rowsort
SELECT ALL + col2 + tab1.col1 * + ( + col2 ) * - col0 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT + tab0.col0 * - col1 AS col2 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-34
SELECT DISTINCT - col0 + - tab1.col2 + col1 DIV + 58 AS col2 FROM tab1
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - col0 + - tab1.col2 + col1 / + 58 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT col2 * col1 + - col2 AS col1 FROM tab2
----
1508
608
810

query I rowsort
SELECT + - ( + col2 ) + col1 * - col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT col0 + col1 + 6 AS col0 FROM tab2 AS cor0
----
102
143
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-39
SELECT col0 DIV col1 + - 62 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-59
24
8

skipif mysql # not compatible
query I rowsort label-39
SELECT col0 / col1 + - 62 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-59
24
8

query I rowsort
SELECT DISTINCT col2 + tab2.col1 * - ( + col2 + col2 ) FROM tab2
----
-1254
-1647
-3042

query I rowsort
SELECT + tab0.col2 * + 17 * - 89 FROM tab0
----
-124066
-1513
-49929

query I rowsort
SELECT ALL + - col0 + + 21 FROM tab0 AS cor0
----
-14
-3
-68

query I rowsort
SELECT + 99 + - 67 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-44
SELECT DISTINCT - tab1.col0 DIV 30 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT - tab1.col0 / 30 FROM tab1
----
-2
0

query I rowsort
SELECT ALL col1 * 69 FROM tab2
----
1173
2139
4071

onlyif mysql # use DIV operator for integer division
query I rowsort label-46
SELECT col0 DIV col1 + col2 * col1 + col2 * - 8 FROM tab2 AS cor0
----
1327
346
621

skipif mysql # not compatible
query I rowsort label-46
SELECT col0 / col1 + col2 * col1 + col2 * - 8 FROM tab2 AS cor0
----
1327
346
621

query I rowsort
SELECT ALL - cor0.col0 * ( + ( col0 ) ) FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - 63 AS col1 FROM tab1
----
-63

query I rowsort
SELECT 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * 57 + col0 AS col2 FROM tab1 AS cor0
----
3081
3313
5552

query I rowsort
SELECT + 39 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
-1263
-3109
-4

query I rowsort
SELECT + 69 FROM tab1, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL + - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - + ( col0 ) * + col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL ( + col2 ) + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - 99 + + col2 AS col0 FROM tab2 AS cor0
----
-61
-72
-73

query I rowsort
SELECT ALL - + cor0.col2 + + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT col0 - - col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - + col0 + + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT - 48 FROM tab1 cor0
----
-48

query I rowsort
SELECT col2 + - col0 * + 63 FROM tab2 AS cor0
----
-414
-4888
-4939

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab0
----
-73

query I rowsort
SELECT + col2 + ( col1 ) FROM tab2
----
55
58
85

query I rowsort
SELECT + - 31 FROM tab2 cor0
----
-31
-31
-31

query I rowsort
SELECT col0 + - col1 AS col2 FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT + 12 * col0 DIV + ( - col2 ) FROM tab1 AS cor0
----
-10
-13
0

skipif mysql # not compatible
query I rowsort label-66
SELECT + 12 * col0 / + ( - col2 ) FROM tab1 AS cor0
----
-10
-13
0

query I rowsort
SELECT DISTINCT col2 * + ( + col2 * col1 ) FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL - cor1.col0 * + 21 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 20b5bbe97c2e8407f3025bb8755b2ba0

query I rowsort
SELECT DISTINCT tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - ( cor2.col2 ) FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT + col0 + + 58 DIV + 63 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-71
SELECT + col0 + + 58 / + 63 AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT - - cor0.col0 DIV 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-72
SELECT - - cor0.col0 / 96 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1, tab0 AS cor0
----
23

query I rowsort
SELECT - ( col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-75
SELECT cor0.col0 DIV 47 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-75
SELECT cor0.col0 / 47 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - ( + col2 + tab0.col0 ) AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT col2 + - col1 * col1 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + ( 14 ) FROM tab2 AS cor0
----
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT DISTINCT 59 + col2 DIV col2 AS col0 FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT 59 + col2 / col2 AS col0 FROM tab0 cor0
----
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-81
SELECT - CAST( NULL AS SIGNED ) + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT - CAST ( NULL AS INTEGER ) + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * ( col2 ) AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT 23 + - col0 - - 72 AS col1 FROM tab2
----
16
17
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-84
SELECT DISTINCT col1 - + tab1.col1 DIV - col0 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT col1 - + tab1.col1 / - col0 FROM tab1
----
10
13
34

query I rowsort
SELECT ALL - col2 * - tab2.col0 + + col1 AS col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT tab2.col0 * cor0.col1 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to b6acab70a8764f2ad4b9f9f8e9265ffe

query I rowsort
SELECT ALL + 73 AS col2 FROM tab1
----
73
73
73

query I rowsort
SELECT + 57 * col0 + + col1 FROM tab1 AS cor0
----
197
3658
4573

query I rowsort
SELECT + + 3 AS col2 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT - col0 + + 25 FROM tab0 AS cor0
----
-10
-64
1

query I rowsort
SELECT + col0 * 94 * col2 + - col0 FROM tab0 cor0
----
3255
685923
74424

query I rowsort
SELECT DISTINCT + - col0 + + col0 * - 41 AS col2 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - - col1 * ( col1 + col1 ) FROM tab0 cor0
----
14792
16562
18818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + + ( - 53 ) * - col0 col1 FROM tab2 AS cor0
----
402
4193
4204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * 37 col1 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT + + col0 * cor0.col2 * cor0.col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
26103
34
598354

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab0
----
44

query I rowsort
SELECT + 98 * tab2.col2 * col0 AS col0 FROM tab2
----
18522
198744
294196

query I rowsort
SELECT DISTINCT col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + - col2 * + col0 + col2 * - cor0.col0 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT col2 + 39 FROM tab2 AS cor0
----
65
66
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-103
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) - 56 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + - col2 * CAST ( NULL AS INTEGER ) - 56 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 AS col1 FROM tab2
----
26
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-105
SELECT ALL + col0 * 41 * 70 + + col0 * + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + col0 * 41 * 70 + + col0 * + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * cor0.col0 FROM tab1 cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-108
SELECT ALL + + col0 + - col0 * 54 DIV + col0 FROM tab2 AS cor0
----
-47
24
25

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL + + col0 + - col0 * 54 / + col0 FROM tab2 AS cor0
----
-47
24
25

query I rowsort
SELECT + 4 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT DISTINCT + col2 + 92 AS col0 FROM tab2
----
118
119
130

query I rowsort
SELECT - col0 + col2 * + 72 * col2 AS col1 FROM tab1 AS cor0
----
209949
233864
663472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col2 + col2 * + col0 col0 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT + col1 + + col0 * - 28 AS col0 FROM tab2 cor0
----
-165
-2125
-2195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + - 45 * + col2 col1 FROM tab2 AS cor0
----
-1026
1292
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-115
SELECT - col0 + + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-115
SELECT - col0 + + col1 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + 23 + 49 * - col2 FROM tab2 AS cor0
----
-1251
-1300
-1839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-117
SELECT + - CAST( NULL AS DECIMAL ) * - col0 + + col2 * + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT + - CAST ( NULL AS REAL ) * - col0 + + col2 * + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + ( - col2 ) FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL - col0 * - col2 + - col0 * 94 FROM tab0 AS cor0
----
-1068
-1464
-3255

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + 1 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * + ( + col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + ( - col2 ) + + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + col0 * cor0.col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT col2 + - 73 AS col1 FROM tab2 AS cor0
----
-35
-46
-47

query I rowsort
SELECT ALL - col2 + 85 * col0 + - col2 AS col1 FROM tab1 cor0
----
147
5326
6608

query I rowsort
SELECT - cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-129
SELECT DISTINCT + col0 * col0 - + col1 DIV col0 AS col1 FROM tab0 cor0
----
1223
573
7920

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT + col0 * col0 - + col1 / col0 AS col1 FROM tab0 cor0
----
1223
573
7920

query I rowsort
SELECT ALL + col2 * + col1 + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT - 74 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
47360
5772
76960

query I rowsort
SELECT + + col0 + cor0.col1 - - col0 * - col2 FROM tab2 cor0
----
-151
-1891
-2906

query I rowsort
SELECT ALL - + col1 * - col2 + + 28 FROM tab2 AS cor0
----
1562
674
865

query I rowsort
SELECT DISTINCT - 83 * + col0 AS col1 FROM tab0 AS cor0
----
-1992
-2905
-7387

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - 85 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col1 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + 61 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT - col0 + - col2 * col1 * col1 AS col0 FROM tab0
----
-244092
-679131
-9444

query I rowsort
SELECT 99 + - col0 * col1 AS col0 FROM tab1
----
-541
-941
21

query I rowsort
SELECT ALL - cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 57 FROM tab0, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL - 36 AS col1 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT + col1 * + col0 + + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT 81 + col0 FROM tab0 AS cor0
----
105
116
170

query I rowsort
SELECT ( + col1 * ( - col1 ) ) AS col1 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT ALL 41 * tab1.col0 DIV col2 + col2 FROM tab1
----
103
130
56

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL 41 * tab1.col0 / col2 + col2 FROM tab1
----
103
130
56

query I rowsort
SELECT DISTINCT col2 * col0 + - tab1.col2 AS col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT ALL - 52 + 85 + + tab0.col2 AS col1 FROM tab0
----
115
34
66

query I rowsort
SELECT + 21 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - 35 FROM tab2, tab1 AS cor0
----
-35

query I rowsort
SELECT ALL col0 + + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
110
132
180

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

query I rowsort
SELECT DISTINCT - - col2 + 60 AS col0 FROM tab0 AS cor0
----
142
61
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-158
SELECT 23 * col1 DIV col0 AS col2 FROM tab2
----
101
17
4

skipif mysql # not compatible
query I rowsort label-158
SELECT 23 * col1 / col0 AS col2 FROM tab2
----
101
17
4

query I rowsort
SELECT + 17 * - 21 AS col0 FROM tab0
----
-357
-357
-357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 79 * - col1 col1 FROM tab0 AS cor0
----
6794
7189
7663

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 AS col1 FROM tab0 cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-162
SELECT - col2 + col2 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-162
SELECT - col2 + col2 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 + col0 * col0 AS col1 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT - - col2 * col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT cor1.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ( cor0.col0 ) + 26 AS col1 FROM tab1 AS cor0
----
106
29
90

query I rowsort
SELECT + 69 + col2 FROM tab1 AS cor0
----
123
126
165

query I rowsort
SELECT - 84 + col0 FROM tab1
----
-20
-4
-81

query I rowsort
SELECT + - col1 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - 83 FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT col2 * + col2 + ( + col0 ) FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col2 * col2 + - col1 col1 FROM tab2 AS cor0
----
1465
643
725

query I rowsort
SELECT col2 * + col0 + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

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-176
SELECT col0 + - tab2.col2 DIV + 34 FROM tab2
----
7
78
78

skipif mysql # not compatible
query I rowsort label-176
SELECT col0 + - tab2.col2 / + 34 FROM tab2
----
7
78
78

query I rowsort
SELECT ALL col2 + 86 * + cor0.col0 * - col1 FROM tab0 AS cor0
----
-177471
-291969
-696432

query I rowsort
SELECT DISTINCT + col0 * 26 AS col1 FROM tab1 AS cor0
----
1664
2080
78

query I rowsort
SELECT - + col0 + - 48 FROM tab2 AS cor0
----
-126
-127
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-180
SELECT ALL - + col0 - - CAST( + col2 * - col2 + - col1 AS SIGNED ) FROM tab1 AS cor0
----
-2945
-3323
-9309

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL - + col0 - - CAST ( + col2 * - col2 + - col1 AS INTEGER ) FROM tab1 AS cor0
----
-2945
-3323
-9309

query I rowsort
SELECT col2 * ( 20 ) FROM tab2 cor0
----
520
540
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT ALL + - col2 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + - col2 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT cor0.col2 * + col2 + 27 * col2 AS col2 FROM tab2 AS cor0
----
1378
1458
2470

onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT 75 DIV + 55 + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-184
SELECT 75 / + 55 + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-185
SELECT + ( col1 ) * + cor0.col0 - - col0 DIV col2 FROM tab0 AS cor0
----
2064
3430
8100

skipif mysql # not compatible
query I rowsort label-185
SELECT + ( col1 ) * + cor0.col0 - - col0 / col2 FROM tab0 AS cor0
----
2064
3430
8100

query I rowsort
SELECT + ( 24 ) + + col1 * + col0 * + col1 AS col2 FROM tab2 AS cor0
----
22855
271542
6751

query I rowsort
SELECT ALL + - col1 + + col1 * - col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - 8 + col2 FROM tab0 AS cor0
----
-7
25
74

query I rowsort
SELECT ALL + ( - 39 ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL - - col0 * + col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-191
SELECT + col0 * - ( 48 ) + + col2 + + CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT + col0 * - ( 48 ) + + col2 + + CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - tab0.col1 AS col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - 91 * cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
131404
61516
66339

query I rowsort
SELECT + - ( col2 ) + + col1 * col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT 62 * col1 FROM tab2 AS cor0
----
1054
1922
3658

query I rowsort
SELECT col2 + - col0 * - col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + ( 55 ) FROM tab1 cor0
----
55
55
55

query I rowsort
SELECT - col1 * + col2 * + col0 + col0 AS col0 FROM tab2
----
-119574
-50955
-5852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-199
SELECT - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-199
SELECT - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + 97 * - col0 FROM tab1 AS cor0
----
-291
-6208
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-201
SELECT DISTINCT 65 DIV cor0.col2 FROM tab1, tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT 65 / cor0.col2 FROM tab1, tab1 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-202
SELECT DISTINCT - - cor0.col1 DIV + col1 + - col1 DIV col2 FROM tab0 cor0
----
-1
-96
0

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT - - cor0.col1 / + col1 + - col1 / col2 FROM tab0 cor0
----
-1
-96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col1 + - col2 col1 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT ALL col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1, tab1 cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT - ( 17 ) DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-206
SELECT - ( 17 ) / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 88 FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + col2 + 11 AS col0 FROM tab0 cor0
----
12
44
93

query I rowsort
SELECT DISTINCT ( tab1.col1 * + col0 ) FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col0 ) - + cor0.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to daf01be24671583522e54ae801342b76

query I rowsort
SELECT ALL - col0 * col0 AS col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col1 * + col1 * - 69 AS col2 FROM tab1
----
-11661
-46644
-6900

onlyif mysql # use DIV operator for integer division
query I rowsort label-213
SELECT DISTINCT col1 DIV - col1 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT col1 / - col1 AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL - cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-215
SELECT - - col2 * - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-215
SELECT - - col2 * - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + cor0.col0 * + 82 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT cor0.col0 * cor0.col2 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT ALL + col2 * + col1 * col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT - col0 + col0 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col0 * col1 + - cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= col1
----

query I rowsort
SELECT - col1 + col1 * tab0.col0 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT col0 * - tab1.col2 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col2 - col0 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col0 * + col0 FROM tab2 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col1 NOT IN ( - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT ALL col2 + + tab2.col2 DIV col0 AS col0 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL col2 + + tab2.col2 / col0 AS col0 FROM tab2
----
26
30
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( + tab0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col0 * + col1 * + col1 FROM tab0
----
177504
329315
737009

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( + col0 * - col0 + + col2 - col2 )
----

query I rowsort
SELECT + col0 * col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT + - cor0.col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-232
SELECT + - cor0.col0 / - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-234
SELECT tab0.col0 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-234
SELECT tab0.col0 / col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - tab0.col1 - - col2 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT - cor0.col2 * cor0.col1 + + cor0.col0 + + col0 DIV + col2 FROM tab0 AS cor0
----
-27
-2814
-7372

skipif mysql # not compatible
query I rowsort label-236
SELECT - cor0.col2 * cor0.col1 + + cor0.col0 + + col0 / + col2 FROM tab0 AS cor0
----
-27
-2814
-7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + col2 col1 FROM tab2
----
6110
6279
76

query I rowsort
SELECT + + col1 - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-239
SELECT + cor0.col2 DIV + cor0.col0 - col1 * col1 FROM tab0 AS cor0
----
-7395
-8281
-9409

skipif mysql # not compatible
query I rowsort label-239
SELECT + cor0.col2 / + cor0.col0 - col1 * col1 FROM tab0 AS cor0
----
-7395
-8281
-9409

query I rowsort
SELECT ALL cor0.col1 + - cor0.col1 * + col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - 34 + - tab1.col1 AS col0 FROM tab1
----
-44
-47
-60

query I rowsort
SELECT DISTINCT col0 - col2 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL 21 - col0 * col2 FROM tab1
----
-141
-3627
-7659

query I rowsort
SELECT ALL + col1 * col1 - col1 FROM tab1
----
156
650
90

query I rowsort
SELECT + 67 * col2 + - col0 FROM tab1 AS cor0
----
3615
3755
6352

onlyif mysql # use DIV operator for integer division
query I rowsort label-247
SELECT DISTINCT col0 * col0 + - col1 DIV col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT col0 * col0 + - col1 / col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-248
SELECT ALL - + col1 + + ( col2 ) + + col2 DIV CAST( + 98 AS SIGNED ) FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL - + col1 + + ( col2 ) + + col2 / CAST ( + 98 AS INTEGER ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - + cor0.col0 * col1 - - 1 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

query I rowsort
SELECT - col2 + ( - col0 ) * col0 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT DISTINCT col1 * ( + col2 * col1 ) FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-252
SELECT DISTINCT + col0 + - CAST( - col0 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
138
173
32

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT + col0 + - CAST ( - col0 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT - col2 * - col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL tab1.col0 * + col1 * 37 - ( col2 ) FROM tab1
----
23623
2832
38384

query I rowsort
SELECT ALL + col0 + 49 AS col1 FROM tab1 AS cor0
----
113
129
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-257
SELECT DISTINCT - - cor0.col0 * CAST( col2 AS SIGNED ) + col2 - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
2080
243
3078

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - - cor0.col0 * CAST ( col2 AS INTEGER ) + col2 - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
2080
243
3078

query I rowsort
SELECT col2 + - col0 * col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT col1 + col0 + + col1 AS col2 FROM tab1
----
106
55
84

query I rowsort
SELECT DISTINCT + tab2.col0 + tab2.col0 * col1 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-261
SELECT ALL col1 DIV - col0 + + col1 AS col0 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL col1 / - col0 + + col1 AS col0 FROM tab2
----
17
27
59

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col0 - - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT DISTINCT col0 DIV + col2 + col1 * + tab0.col0 AS col1 FROM tab0
----
2064
3430
8100

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT col0 / + col2 + col1 * + tab0.col0 AS col1 FROM tab0
----
2064
3430
8100

query I rowsort
SELECT ALL col0 * col0 + col2 AS col2 FROM tab0
----
1226
609
8003

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 < ( NULL )
----

query I rowsort
SELECT ALL + tab2.col0 + + tab2.col2 AS col0 FROM tab2
----
104
117
34

query III rowsort
SELECT * FROM tab1 WHERE - col1 * col0 BETWEEN col1 + - col0 AND - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-268
SELECT - col1 + col0 * col0 DIV col2 AS col0 FROM tab0
----
-69
1128
5

skipif mysql # not compatible
query I rowsort label-268
SELECT - col1 + col0 * col0 / col2 AS col0 FROM tab0
----
-69
1128
5

query I rowsort
SELECT ALL col0 + + col2 * tab1.col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL - col0 + col2 * - col2 AS col1 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT + col2 - col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col0 * col0 + col1 * - col0 FROM tab2
----
-168
1482
4898

query I rowsort
SELECT ALL + 16 * col1 FROM tab0 AS cor0
----
1376
1456
1552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-274
SELECT ALL + 15 + cor0.col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + 15 + cor0.col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 + + col2 * + col2 + 53 AS col1 FROM tab1 AS cor0
----
2966
3238
9189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col2 + - col2 + + col0 )
----

query I rowsort
SELECT - col2 + + col1 + - col0 AS col2 FROM tab0
----
-80
29
61

query I rowsort
SELECT + col2 + col2 + col0 AS col0 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL - col0 + col2 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL NOT IN ( tab1.col1 / + col2 )
----

query I rowsort
SELECT DISTINCT + col0 + + tab0.col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col0 + - col0 - + 68 * tab1.col2 FROM tab1
----
-3672
-3876
-6528

query I rowsort
SELECT DISTINCT + col0 - - col2 * - col0 * + col2 FROM tab2
----
-113997
-5096
-52650

onlyif mysql # use DIV operator for integer division
query I rowsort label-284
SELECT 35 * - col0 DIV ( + tab1.col0 ) FROM tab1
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-284
SELECT 35 * - col0 / ( + tab1.col0 ) FROM tab1
----
-35
-35
-35

query I rowsort
SELECT DISTINCT ( + tab2.col2 ) - col0 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL - 15 * col0 + 49 * col1 - - col2 FROM tab0
----
3206
3887
4229

query I rowsort
SELECT - cor0.col0 + - 78 + col0 FROM tab0 cor0
----
-78
-78
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-288
SELECT + col1 + 98 DIV + col1 AS col1 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-288
SELECT + col1 + 98 / + col1 AS col1 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT - 38 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT col2 * col2 + + col2 * - col0 FROM tab2
----
-1352
-1558
540

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-291
SELECT col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col1 - col2 * col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT + + col1 * cor0.col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL - col0 * + cor0.col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + + col1 * + col2 + col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-298
SELECT ALL - cor0.col1 * CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - cor0.col1 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-299
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-300
SELECT CAST( col0 AS SIGNED ) + - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-300
SELECT CAST ( col0 AS INTEGER ) + - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL ( col0 ) + - col1 * 55 - + cor0.col2 * - col2 * - col2 FROM tab0 AS cor0
----
-40643
-5301
-556284

query I rowsort
SELECT DISTINCT - - col1 * col1 + col0 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - 21 * cor0.col2 + + col0 FROM tab2 AS cor0
----
-468
-560
-719

query I rowsort
SELECT DISTINCT cor0.col0 * - 76 + cor0.col1 + col2 * col1 FROM tab2 AS cor0
----
-4335
-5341
336

query I rowsort
SELECT ALL - 21 AS col2 FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-306
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 45 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 45 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 49 FROM tab1 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT - - 11 + cor0.col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1332
-206
-4591

query I rowsort
SELECT 76 AS col0 FROM tab1 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT DISTINCT - + cor0.col0 + - cor0.col0 AS col0 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + 44 AS col0 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT + 45 * col2 FROM tab0 cor0
----
1485
3690
45

query I rowsort
SELECT ALL + ( - col2 ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT tab2.col2 * col1 * - col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - col1 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - col1 * + cor0.col2 * - col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + - 46 + + col1 * col1 FROM tab2 AS cor0
----
243
3435
915

query I rowsort
SELECT - 68 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT - col2 + - col1 * col1 FROM tab2 cor0
----
-327
-3507
-988

query I rowsort
SELECT - cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 87 * - col1 FROM tab1
----
-1131
-2262
-870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-325
SELECT - CAST( col0 AS SIGNED ) + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif mysql # not compatible
query I rowsort label-325
SELECT - CAST ( col0 AS INTEGER ) + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-326
SELECT DISTINCT - + CAST( col1 AS SIGNED ) + col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1364
213
4569

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) + col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1364
213
4569

query I rowsort
SELECT - + col1 * + col2 * + col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL cor0.col1 + col0 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - col1 + + 22 + col2 * col0 FROM tab1
----
158
3660
7689

query I rowsort
SELECT DISTINCT col0 + - col0 * + col2 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-331
SELECT col1 + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-331
SELECT col1 + + col1 / col1 AS col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-333
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-333
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-334
SELECT - ( 11 ) + col2 DIV - col0 AS col2 FROM tab1
----
-11
-12
-29

skipif mysql # not compatible
query I rowsort label-334
SELECT - ( 11 ) + col2 / - col0 AS col2 FROM tab1
----
-11
-12
-29

query I rowsort
SELECT DISTINCT + 71 * + col1 FROM tab0
----
6106
6461
6887

onlyif mysql # use DIV operator for integer division
query I rowsort label-336
SELECT 31 * - col0 + + col0 DIV col0 FROM tab1
----
-1983
-2479
-92

skipif mysql # not compatible
query I rowsort label-336
SELECT 31 * - col0 + + col0 / col0 FROM tab1
----
-1983
-2479
-92

query I rowsort
SELECT DISTINCT ( ( col2 ) ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + ( - ( - col1 ) ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL ( 52 ) FROM tab1
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-340
SELECT DISTINCT + + ( col0 ) * - col0 + + col1 + col2 DIV col1 FROM tab1 AS cor0
----
-4081
-6380
19

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT + + ( col0 ) * - col0 + + col1 + col2 / col1 FROM tab1 AS cor0
----
-4081
-6380
19

query I rowsort
SELECT - col0 * + col1 - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 54 + col2 * + cor0.col2 col2 FROM tab2 AS cor0
----
1498
730
783

query I rowsort
SELECT ALL - 1 * cor0.col1 FROM tab1, tab2 cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL + col2 * cor0.col1 + col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT col2 - + 71 * + col2 AS col1 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + col1 * col0 + cor0.col0 + 26 * col0 * cor0.col1 FROM tab1 AS cor0
----
17344
2109
28160

query I rowsort
SELECT ALL - col2 + col1 - + col0 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT DISTINCT - + 94 FROM tab2 AS cor0
----
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-350
SELECT ALL ( col0 ) DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL ( col0 ) / + cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 24 + col2 FROM tab0 AS cor0
----
106
25
57

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT - - col1 + - col2 * col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-354
SELECT DISTINCT col2 * col1 + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT col2 * col1 + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 39 + + col1 FROM tab0 AS cor0
----
47
52
58

query I rowsort
SELECT ALL 61 - - col0 AS col1 FROM tab0
----
150
85
96

query I rowsort
SELECT ALL ( - 94 ) - tab0.col0 * 26 * - col1 AS col1 FROM tab0
----
210480
53570
88176

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL 74 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT cor0.col1 * 98 FROM tab2 AS cor0
----
1666
3038
5782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * col1 col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - ( 31 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT col1 * + 6 FROM tab0
----
516
546
582

query I rowsort
SELECT ALL col2 * - 16 FROM tab2
----
-416
-432
-608

query I rowsort
SELECT ALL ( col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT DISTINCT col2 DIV 93 - - cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT col2 / 93 - - cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col2 - - col0 * + 48 FROM tab0
----
1185
1681
4354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-369
SELECT - col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-369
SELECT - col0 * CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT col1 * - ( - ( + col0 ) ) AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col0 + - 87 FROM tab1
----
-151
-167
-90

query I rowsort
SELECT cor1.col0 AS col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col2 FROM tab2, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 52 + 55 * col0 FROM tab2 cor0
----
333
4238
4293

query I rowsort
SELECT ALL - 95 FROM tab0, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # use DIV operator for integer division
query I rowsort label-378
SELECT col2 DIV col1 + - tab2.col2 FROM tab2
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-378
SELECT col2 / col1 + - tab2.col2 FROM tab2
----
-26
-27
-36

query I rowsort
SELECT ALL + col1 * 15 FROM tab2
----
255
465
885

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + 28 + cor0.col1 + - ( + 98 ) AS col2 FROM tab1, tab0 cor0
----
16
21
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-382
SELECT CAST( NULL AS SIGNED ) * col1 / + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT CAST ( NULL AS INTEGER ) * col1 / + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 45 + col2 FROM tab1
----
102
141
99

query I rowsort
SELECT + 89 * + tab2.col1 FROM tab2
----
1513
2759
5251

query I rowsort
SELECT DISTINCT + 93 * col1 + cor0.col2 FROM tab1 AS cor0
----
1305
2472
987

query I rowsort
SELECT ALL 93 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT - + 37 AS col1 FROM tab1 AS cor0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 + - col1 col1 FROM tab1 AS cor0
----
-101
-104
-117

query I rowsort
SELECT ALL - 42 AS col0 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + + ( - 24 ) + col2 AS col0 FROM tab1 AS cor0
----
30
33
72

query I rowsort
SELECT ALL - 94 * - tab1.col1 + + col1 FROM tab1
----
1235
2470
950

query I rowsort
SELECT ALL - col0 + + col1 + 60 FROM tab0
----
122
122
62

query I rowsort
SELECT ALL + col2 * col2 + col0 * + 49 AS col0 FROM tab0
----
11085
1716
2265

query I rowsort
SELECT + col0 * col0 + - col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT ALL - col0 * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col2 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-398
SELECT + col2 DIV ( + cor0.col1 ) col0 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-398
SELECT + col2 / ( + cor0.col1 ) col0 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + col2 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT + col1 * cor0.col2 DIV cor0.col0 col1 FROM tab0 AS cor0
----
118
2
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-400
SELECT + col1 * cor0.col2 / cor0.col0 col1 FROM tab0 AS cor0
----
118
2
83

query I rowsort
SELECT DISTINCT - - col1 + 27 * - 69 FROM tab1 AS cor0
----
-1837
-1850
-1853

query I rowsort
SELECT ALL - col1 * 96 AS col0 FROM tab2 AS cor0
----
-1632
-2976
-5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT ALL + col2 DIV 33 + + 99 AS col1 FROM tab0 AS cor0
----
100
101
99

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + col2 / 33 + + 99 AS col1 FROM tab0 AS cor0
----
100
101
99

query I rowsort
SELECT DISTINCT - col0 + - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL + - col0 * + 24 * col2 + col1 * - col1 FROM tab1 AS cor0
----
-184489
-4564
-87652

query I rowsort
SELECT DISTINCT - + col2 * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col0 * - 23 + col1 FROM tab1 AS cor0
----
-1462
-1827
-43

query I rowsort
SELECT DISTINCT - col0 * - 52 AS col2 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT ALL col1 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + + col0 * ( col0 ) FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-412
SELECT ALL + col1 * - col2 + + 6 * - col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-103
-2844
-7468

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL + col1 * - col2 + + 6 * - col1 / + col1 AS col1 FROM tab0 AS cor0
----
-103
-2844
-7468

query I rowsort
SELECT ALL + col2 + - 61 FROM tab1 AS cor0
----
-4
-7
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-414
SELECT col0 DIV col1 + + col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-414
SELECT col0 / col1 + + col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT col0 + col1 * 29 FROM tab0 AS cor0
----
2518
2728
2848

query I rowsort
SELECT DISTINCT + - 76 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-12
-73
4

query I rowsort
SELECT - + 79 AS col1 FROM tab1 cor0
----
-79
-79
-79

query I rowsort
SELECT - + 42 * col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT - - col1 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL 58 AS col1 FROM tab2
----
58
58
58

query I rowsort
SELECT + - col1 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - 96 + - col1 FROM tab2 AS cor0
----
-113
-127
-155

query I rowsort
SELECT DISTINCT + + 34 + - 92 AS col0 FROM tab1 AS cor0
----
-58

query I rowsort
SELECT ALL + 27 AS col0 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT - + cor0.col0 * + col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-427
SELECT ALL col0 * - col1 + + ( + col2 ) DIV - tab2.col1 + tab2.col0 FROM tab2
----
-1266
-210
-4524

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL col0 * - col1 + + ( + col2 ) / - tab2.col1 + tab2.col0 FROM tab2
----
-1266
-210
-4524

query I rowsort
SELECT + col2 + - 50 AS col2 FROM tab1
----
4
46
7

query I rowsort
SELECT - col0 * 54 + col2 + - col2 FROM tab1
----
-162
-3456
-4320

query I rowsort
SELECT col1 + tab0.col0 - col2 FROM tab0
----
131
77
98

query I rowsort
SELECT ALL + col1 + ( + col2 ) FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 82 col0 FROM tab2 AS cor0
----
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-433
SELECT - col2 * - col1 * col1 + ( 8 ) * cor0.col2 + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT - col2 * - col1 * col1 + ( 8 ) * cor0.col2 + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 68 * 98 FROM tab2 AS cor0
----
6664
6664
6664

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - + 65 + cor0.col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-18
-37
18

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * + col0 * - 87 FROM tab2 cor0
----
-4263
-529308
-542967

query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 * - col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col2 * + 13 FROM tab2 AS cor0
----
338
351
494

query I rowsort
SELECT + ( tab1.col1 ) * tab1.col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + ( 47 ) * tab0.col0 FROM tab0
----
1128
1645
4183

query I rowsort
SELECT col1 * 16 FROM tab1
----
160
208
416

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 * + col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + ( + col2 ) + + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + - 85 + col0 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-134
-6169
-6326

query I rowsort
SELECT - col2 * - 84 FROM tab1
----
4536
4788
8064

query I rowsort
SELECT ALL ( - col1 * + col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + ( 96 ) * + col1 AS col1 FROM tab0
----
8256
8736
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT col0 * - tab1.col1 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-451
SELECT ( - col2 ) + col0 DIV - col1 + col1 AS col1 FROM tab1 cor0
----
-28
-53
-89

skipif mysql # not compatible
query I rowsort label-451
SELECT ( - col2 ) + col0 / - col1 + col1 AS col1 FROM tab1 cor0
----
-28
-53
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-452
SELECT col0 + col0 + CAST( + col0 AS SIGNED ) DIV col1 AS col1 FROM tab1 cor0
----
134
166
6

skipif mysql # not compatible
query I rowsort label-452
SELECT col0 + col0 + CAST ( + col0 AS INTEGER ) / col1 AS col1 FROM tab1 cor0
----
134
166
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col2 ) + + cor0.col1 col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-455
SELECT + col2 * - CAST( - col2 AS SIGNED ) - col1 * - 19 AS col1 FROM tab0 AS cor0
----
1844
2723
8453

skipif mysql # not compatible
query I rowsort label-455
SELECT + col2 * - CAST ( - col2 AS INTEGER ) - col1 * - 19 AS col1 FROM tab0 AS cor0
----
1844
2723
8453

query I rowsort
SELECT - cor0.col1 - - col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - - col1 * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT - + col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col2 + ( col2 + cor0.col2 ) * + ( - 96 ) AS col1 FROM tab1 AS cor0
----
-10314
-10887
-18336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - ( + col2 ) col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - 16 * ( col2 ) + 1 + 88 AS col0 FROM tab0 AS cor0
----
-1223
-439
73

query I rowsort
SELECT + - 16 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ( 94 ) FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT col0 * col1 * + 33 FROM tab1
----
21120
2574
34320

onlyif mysql # use DIV operator for integer division
query I rowsort label-466
SELECT + 2 - col1 DIV + col0 FROM tab0 AS cor0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-466
SELECT + 2 - col1 / + col0 FROM tab0 AS cor0
----
-1
0
1

query I rowsort
SELECT DISTINCT - 0 + + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-468
SELECT - col1 * col2 DIV + 39 AS col0 FROM tab2 AS cor0
----
-16
-21
-39

skipif mysql # not compatible
query I rowsort label-468
SELECT - col1 * col2 / + 39 AS col0 FROM tab2 AS cor0
----
-16
-21
-39

query I rowsort
SELECT + + col2 + col2 + 74 AS col1 FROM tab2 cor0
----
126
128
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-470
SELECT + - col2 * - 79 * ( - col2 ) + CAST( 88 AS SIGNED ) DIV - col0 + - cor0.col0 DIV + col1 FROM tab0 AS cor0
----
-531196
-81
-86034

skipif mysql # not compatible
query I rowsort label-470
SELECT + - col2 * - 79 * ( - col2 ) + CAST ( 88 AS INTEGER ) / - col0 + - cor0.col0 / + col1 FROM tab0 AS cor0
----
-531196
-81
-86034

query I rowsort
SELECT ALL col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-472
SELECT ALL - col2 * 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-472
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + 68 AS col0 FROM tab0 AS cor0
----
101
150
69

query I rowsort
SELECT ALL + cor0.col2 * 35 * ( + col0 ) + 18 FROM tab2 AS cor0
----
105088
6633
70998

query I rowsort
SELECT 68 + - col2 FROM tab0 AS cor0
----
-14
35
67

query I rowsort
SELECT col1 * col2 + + col1 * 93 FROM tab2 cor0
----
2227
3720
7021

query I rowsort
SELECT ( + col0 * col2 ) FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-478
SELECT DISTINCT + 47 * cor0.col0 + + col1 DIV - 38 FROM tab0 AS cor0
----
1126
1643
4181

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT + 47 * cor0.col0 + + col1 / - 38 FROM tab0 AS cor0
----
1126
1643
4181

query I rowsort
SELECT - col1 + + ( + col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - cor0.col1 + - col1 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col2 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-482
SELECT DISTINCT cor0.col1 * - col2 + + ( + 83 ) * col1 + - CAST( + col0 + col0 AS SIGNED ) FROM tab0 cor0
----
-87
4252
7884

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT cor0.col1 * - col2 + + ( + 83 ) * col1 + - CAST ( + col0 + col0 AS INTEGER ) FROM tab0 cor0
----
-87
4252
7884

query I rowsort
SELECT - 57 + col0 FROM tab2 AS cor0
----
-50
21
22

query I rowsort
SELECT ALL + 98 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT 81 AS col1 FROM tab2 cor0
----
81
81
81

query I rowsort
SELECT DISTINCT - - 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-487
SELECT DISTINCT + CAST( cor0.col2 AS SIGNED ) AS col2 FROM tab2, tab0, tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT + CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab2, tab0, tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + + col1 col0 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL 91 AS col0 FROM tab2
----
91
91
91

query I rowsort
SELECT ALL col1 * - ( col2 + + col0 ) * col1 FROM tab0
----
-1416051
-338724
-421572

query I rowsort
SELECT ALL col1 + - col0 * col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 40 - cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 606d21d3b8be4708c378f8c0aecc4e6e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col0 ) - - ( col0 ) * col2 col2 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - + 60 AS col1 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT col0 + - col0 + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - 21 + + cor0.col1 * 99 FROM tab2 AS cor0
----
1662
3048
5820

query I rowsort
SELECT + 62 - col1 * - col1 FROM tab1
----
162
231
738

query I rowsort
SELECT + col2 + col0 * - ( col1 ) * - tab1.col0 AS col1 FROM tab1
----
288
41017
83296

query I rowsort
SELECT + 23 * col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT DISTINCT + + col2 * col2 + col1 * + 97 - - cor0.col2 FROM tab2 AS cor0
----
3131
3763
6425

query I rowsort
SELECT - col2 + + tab2.col1 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT col0 * - col2 * - 34 FROM tab1
----
124032
261120
5508

query I rowsort
SELECT DISTINCT col2 + col2 - col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - tab0.col2 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL + - 36 * ( col1 ) FROM tab1 AS cor0
----
-360
-468
-936

query I rowsort
SELECT cor0.col2 * + cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT cor0.col2 + col2 + col1 FROM tab1 AS cor0
----
124
134
205

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-509
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 77 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 77 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-510
SELECT - - CAST( + col2 AS SIGNED ) DIV + col2 + col0 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
1129
491
7831

skipif mysql # not compatible
query I rowsort label-510
SELECT - - CAST ( + col2 AS INTEGER ) / + col2 + col0 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
1129
491
7831

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-511
SELECT ALL - CAST( 45 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-315
-3510
-3555

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL - CAST ( 45 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT tab0.col0 + + ( - col1 ) + - col1 AS col1 FROM tab0
----
-148
-159
-93

query I rowsort
SELECT DISTINCT + tab2.col2 - - col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT + 15 * - col2 * + col1 + ( - 40 ) * + col2 AS col0 FROM tab2
----
-11210
-13635
-24050

query I rowsort
SELECT ALL + 19 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT + 88 * + 63 + col0 AS col1 FROM tab1 AS cor0
----
5547
5608
5624

query I rowsort
SELECT + col1 + - cor0.col0 * col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - + ( col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + 37 + col1 AS col0 FROM tab1 cor0
----
-11
-24
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-520
SELECT DISTINCT + + col2 DIV - col1 + col1 AS col0 FROM tab2 cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT + + col2 / - col1 + col1 AS col0 FROM tab2 cor0
----
15
31
59

query I rowsort
SELECT ALL - 40 * col2 FROM tab0 AS cor0
----
-1320
-3280
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-522
SELECT ALL + CAST( col1 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - ( col0 ) * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col1 * + col0 + col0 + - col1 FROM tab1 cor0
----
-101
-586
-973

query I rowsort
SELECT ALL + col1 * + 51 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1608
3035
905

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col2 * - col2 - + col0 * col2 FROM tab1 AS cor0
----
-16896
-3078
-6897

query I rowsort
SELECT col0 * - ( col0 ) * + cor0.col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * cor0.col2 col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT + col2 + - 26 FROM tab0 AS cor0
----
-25
56
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT - col2 * + 1 + 86 DIV - cor0.col0 FROM tab0 AS cor0
----
-3
-36
-82

skipif mysql # not compatible
query I rowsort label-531
SELECT - col2 * + 1 + 86 / - cor0.col0 FROM tab0 AS cor0
----
-3
-36
-82

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

query I rowsort
SELECT + 80 * cor0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 22b9425e09ee8bd0a2a63c6f914fa897

query I rowsort
SELECT + ( + 65 ) AS col0 FROM tab2 cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT col1 * + 95 FROM tab2
----
1615
2945
5605

query I rowsort
SELECT - 21 + 16 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + ( + cor0.col1 ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT col2 + 31 AS col2 FROM tab0
----
113
32
64

query I rowsort
SELECT - col1 * col2 + + tab0.col2 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL 54 * - col1 + ( cor0.col1 + col2 ) FROM tab0 AS cor0
----
-4525
-4741
-5140

query I rowsort
SELECT DISTINCT - + col2 + col2 - - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 46 + col2 * - ( col2 ) * col2 FROM tab0 AS cor0
----
-35983
-47
-551414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col2 FROM tab2 AS cor0
----
60

query I rowsort
SELECT ALL - 87 * - col2 AS col0 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT + + 39 + - col2 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT ALL - + ( - cor0.col2 ) * + ( - cor0.col2 ) - cor0.col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col0 col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL - + col1 + cor0.col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + + 44 + cor0.col1 * + col0 FROM tab2 AS cor0
----
1387
261
4646

query I rowsort
SELECT - col2 * - col1 + col2 * 32 AS col0 FROM tab2 AS cor0
----
1701
1862
2366

query I rowsort
SELECT - col1 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT - + col0 * - col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col0 * - col2 * - tab2.col2 + + 55 * - col1 AS col0 FROM tab2
----
113141
3398
49483

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-556
SELECT col0 * + CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-556
SELECT col0 * + CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col0 + - 53 FROM tab2 AS cor0
----
-46
25
26

query I rowsort
SELECT + col2 + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col2 * + 77 AS col0 FROM tab2 AS cor0
----
-2002
-2079
-2926

query I rowsort
SELECT DISTINCT - 54 * col2 AS col1 FROM tab2
----
-1404
-1458
-2052

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-561
SELECT col1 * - CAST( NULL AS SIGNED ) + col2 + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT col1 * - CAST ( NULL AS INTEGER ) + col2 + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col0 + ( + col1 + - col2 ) FROM tab1 AS cor0
----
-111
-163
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-564
SELECT + col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT + col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + ( - ( + cor0.col2 ) ) AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 78 * + col1 AS col2 FROM tab2
----
1326
2418
4602

query I rowsort
SELECT DISTINCT + + col2 + - ( + col1 ) FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-568
SELECT col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-568
SELECT col1 / + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + ( - 93 ) AS col0 FROM tab1 cor0
----
-93

query I rowsort
SELECT DISTINCT + - 44 FROM tab2 AS cor0
----
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-571
SELECT DISTINCT + col1 DIV col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT + col1 / col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT col0 DIV col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-572
SELECT col0 / col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + col1 - ( + col1 + col0 ) col0 FROM tab0 AS cor0
----
-17
-28
-82

query I rowsort
SELECT ALL - 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-575
SELECT tab0.col0 DIV col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-575
SELECT tab0.col0 / col0 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 48 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
48

query I rowsort
SELECT + col0 * col0 + + ( 92 ) FROM tab0 AS cor0
----
1317
668
8013

query I rowsort
SELECT + 50 * - col1 AS col1 FROM tab0 cor0
----
-4300
-4550
-4850

query I rowsort
SELECT + + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col2 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT + col2 + + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col0 * col0 + cor0.col2 * col0 FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col1 * - col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - col0 * - cor0.col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - cor0.col2 + col2 * + col0 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT ALL tab2.col2 * col0 + + col0 + col1 AS col1 FROM tab2
----
2165
227
3098

query I rowsort
SELECT ALL col1 + - tab1.col2 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT ALL - col2 DIV col1 + col0 + + tab2.col2 AS col0 FROM tab2
----
104
115
34

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - col2 / col1 + col0 + + tab2.col2 AS col0 FROM tab2
----
104
115
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab1.col2 + col1 + col0 * + col0 * tab1.col1 col2 FROM tab1
----
1664
41540
84461

query I rowsort
SELECT ALL - col0 * col2 * col1 + + col1 AS col0 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT ALL tab0.col1 * + col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - col2 * + col1 * - col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL - col0 + cor0.col0 * + col1 * - col2 FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + + col0 * col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col0 * tab0.col1 + + col1 * - tab0.col1 + - col1 FROM tab0 WHERE NULL BETWEEN NULL AND col0 * - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT - cor0.col0 DIV cor1.col1 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b16904ec1ec3947256afae299aa3ba3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-601
SELECT - cor0.col0 / cor1.col1 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b16904ec1ec3947256afae299aa3ba3

query I rowsort
SELECT ALL + 81 + - tab1.col0 AS col2 FROM tab1
----
1
17
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-603
SELECT ALL - col1 DIV - tab1.col0 AS col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL - col1 / - tab1.col0 AS col0 FROM tab1
----
0
0
8

query I rowsort
SELECT col2 + col2 * - col2 AS col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT + 82 * - cor0.col0 + - col0 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT + col1 * + col2 + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - - cor0.col0 * col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab1.col1 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL + col1 * - col2 + + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT col1 + col0 * - col2 AS col1 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 + col1 + col1 col2 FROM tab1 cor0
----
1274
1456
590

query I rowsort
SELECT + cor0.col1 * + col2 + col1 + col2 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT + - col0 * col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + col1 col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-615
SELECT DISTINCT + col0 DIV + col1 col1 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT + col0 / + col1 col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL + - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL < col2
----

query I rowsort
SELECT DISTINCT - col0 * col2 + col2 * col1 AS col1 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT ALL - tab2.col2 * - col0 + + col0 * tab2.col0 FROM tab2
----
238
8112
9243

query I rowsort
SELECT - col0 * + tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-622
SELECT DISTINCT col2 DIV col1 + tab0.col0 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT col2 / col1 + tab0.col0 AS col1 FROM tab0
----
24
35
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-624
SELECT ALL + tab1.col1 * col2 + tab1.col2 DIV - col0 AS col2 FROM tab1
----
1247
1386
570

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL + tab1.col1 * col2 + tab1.col2 / - col0 AS col2 FROM tab1
----
1247
1386
570

query I rowsort
SELECT tab1.col1 * + col0 + - col2 FROM tab1 WHERE NULL NOT IN ( - col1 * - col0 )
----

query I rowsort
SELECT col0 + tab2.col2 * - col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT - col1 * + col0 + col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col0 * tab0.col2 * - col2 AS col0 FROM tab0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-629
SELECT ALL col0 * + col2 DIV col2 - col0 DIV + col1 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL col0 * + col2 / col2 - col0 / + col1 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL + col0 * col1 + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT col2 * + col0 * - col2 - + col0 FROM tab2
----
-114155
-5110
-52806

query I rowsort
SELECT + tab2.col1 * + tab2.col2 * - col2 - col1 FROM tab2
----
-22630
-24565
-39943

query I rowsort
SELECT col2 * - tab1.col2 + - col0 FROM tab1
----
-2919
-3313
-9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - + col2 + + col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT tab1.col2 * - col0 - tab1.col1 FROM tab1
----
-188
-3658
-7693

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT col2 * col1 - col0 AS col2 FROM tab2 WHERE NULL NOT IN ( + col2 * - col2 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 * - col0 col2 FROM tab1
----
234
40960
83200

query I rowsort
SELECT + tab0.col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 78 * + col1 + col0 FROM tab1 AS cor0
----
1094
2031
844

query I rowsort
SELECT col1 + - col1 AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 * col1 - col1 AND - col1 * - cor0.col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT DISTINCT col0 + col1 * - col2 DIV + col2 + col1 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT col0 + col1 * - col2 / + col2 + col1 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + cor0.col0 + + col2 FROM tab0 AS cor0 WHERE ( col2 ) IN ( col2 + + col2 )
----

query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 AS col2 FROM tab1
----
-262144
-27
-512000

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL NOT BETWEEN cor0.col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-650
SELECT col2 * col1 + - col2 * tab1.col2 DIV col2 AS col2 FROM tab1
----
1152
1350
513

skipif mysql # not compatible
query I rowsort label-650
SELECT col2 * col1 + - col2 * tab1.col2 / col2 AS col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT DISTINCT col1 * col0 + col2 + col2 FROM tab0
----
2130
3397
8263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab2.col2 * col1 col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL - col2 + col2 + col2 * - col0 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-654
SELECT col2 * tab2.col1 DIV col1 + + col0 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-654
SELECT col2 * tab2.col1 / col1 + + col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-655
SELECT - col2 DIV tab1.col1 + + col2 * + col2 AS col2 FROM tab1
----
2914
3244
9209

skipif mysql # not compatible
query I rowsort label-655
SELECT - col2 / tab1.col1 + + col2 * + col2 AS col2 FROM tab1
----
2914
3244
9209

query I rowsort
SELECT col2 * col2 * col2 FROM tab2
----
17576
19683
54872

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-658
SELECT ALL col2 DIV + col0 + + tab0.col0 DIV tab0.col0 AS col2 FROM tab0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL col2 / + col0 + + tab0.col0 / tab0.col0 AS col2 FROM tab0
----
1
1
2

query I rowsort
SELECT - col1 * + col0 + col0 * col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 * + tab0.col1 + - col1 AS col2 FROM tab0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-661
SELECT ALL + col0 DIV - col2 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL + col0 / - col2 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 + col2 * - tab0.col2 FROM tab0 WHERE - col2 * col2 / - col0 - col1 * col0 NOT BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT DISTINCT col2 + - col1 - - col1 * tab0.col2 FROM tab0
----
1
2785
7453

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL >= ( col1 )
----

query I rowsort
SELECT ALL col2 * + tab0.col2 + tab0.col0 * col1 * - tab0.col1 + + col2 FROM tab0
----
-176382
-329313
-730203

query I rowsort
SELECT tab1.col0 - - col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + col2 + - col1 - col0 FROM tab0
----
-131
-77
-98

query I rowsort
SELECT tab0.col2 * + col1 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 + col0 + tab2.col0 AS col2 FROM tab2
----
21
234
237

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab2, tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT 96 FROM tab1, tab0, tab0 AS cor0
----
96

query I rowsort
SELECT ALL + 45 FROM tab2
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-673
SELECT DISTINCT col0 DIV + col0 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT col0 / + col0 AS col2 FROM tab1
----
1

query I rowsort
SELECT - 57 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 * col0 col0 FROM tab1
----
1088
1360
51

query I rowsort
SELECT 55 * + tab0.col2 AS col0 FROM tab0
----
1815
4510
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 13 * cor0.col1 col0 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 + + col2 * + ( col1 ) * col0 + + col2 AS col0 FROM tab0 AS cor0
----
3493
664291
68231

query I rowsort
SELECT DISTINCT 66 FROM tab0, tab2 cor0, tab2 AS cor1
----
66

query I rowsort
SELECT - col1 * col0 + - cor0.col0 * + col0 + + col1 FROM tab2 AS cor0
----
-10627
-235
-7567

query I rowsort
SELECT 57 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT col1 + col2 + col1 AS col0 FROM tab0 cor0
----
195
205
264

query I rowsort
SELECT col2 + + 42 FROM tab2
----
68
69
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT ALL - col1 + 64 DIV col2 + - col1 AS col1 FROM tab0 AS cor0
----
-130
-171
-182

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL - col1 + 64 / col2 + - col1 AS col1 FROM tab0 AS cor0
----
-130
-171
-182

query I rowsort
SELECT + col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-687
SELECT ALL - col1 * - CAST( + cor0.col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL - col1 * - CAST ( + cor0.col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-688
SELECT DISTINCT col2 * ( - 78 ) DIV col2 + + 76 * col2 AS col0 FROM tab1 AS cor0
----
4026
4254
7218

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT col2 * ( - 78 ) / col2 + + 76 * col2 AS col0 FROM tab1 AS cor0
----
4026
4254
7218

query I rowsort
SELECT DISTINCT - 14 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT + col0 * 96 AS col1 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT - col2 + + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-693
SELECT - 71 DIV cor0.col1 + cor0.col1 FROM tab2 cor0
----
13
29
58

skipif mysql # not compatible
query I rowsort label-693
SELECT - 71 / cor0.col1 + cor0.col1 FROM tab2 cor0
----
13
29
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-694
SELECT + col0 DIV 84 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-694
SELECT + col0 / 84 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 87 FROM tab2, tab0 AS cor0
----
87

query I rowsort
SELECT - col0 + tab0.col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + + ( col2 ) * col2 + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - col2 + - col2 - + cor0.col1 FROM tab1 AS cor0
----
-124
-134
-205

query I rowsort
SELECT ( col2 ) * col2 + + 60 AS col2 FROM tab2 AS cor0
----
1504
736
789

query I rowsort
SELECT + ( - col2 ) + col1 AS col0 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-701
SELECT DISTINCT 8 DIV col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT 8 / col0 FROM tab2
----
0
1

query I rowsort
SELECT + 82 + - col1 FROM tab0
----
-15
-4
-9

query I rowsort
SELECT ALL 85 + col0 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT col2 + col2 + + col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT ALL col0 + - col1 * cor0.col1 + - col2 * + col2 FROM tab1 AS cor0
----
-3285
-3589
-9305

query I rowsort
SELECT ALL + + cor0.col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 76 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
50
63
66

query I rowsort
SELECT ALL - 8 + + col0 FROM tab0 AS cor0
----
16
27
81

query I rowsort
SELECT ALL - col1 * col1 + col0 AS col2 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT 22 * cor0.col0 + - col0 * - cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
147
2112
2880

query I rowsort
SELECT + 0 - - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + ( tab1.col1 + col0 ) FROM tab1
----
29
74
93

query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col1 FROM tab0
----
41
41
41

query I rowsort
SELECT 86 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # use DIV operator for integer division
query I rowsort label-717
SELECT - + col1 DIV - 18 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-717
SELECT - + col1 / - 18 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 60 col0 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT + col0 + + 5 * col2 FROM tab0 AS cor0
----
189
40
499

query I rowsort
SELECT 42 * + col0 + ( + 82 ) AS col0 FROM tab0
----
1090
1552
3820

query I rowsort
SELECT 91 AS col2 FROM tab2
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * col1 col0 FROM tab1
----
1690
650
845

query I rowsort
SELECT - - col1 * col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - 43 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
3
64
80

query I rowsort
SELECT + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-727
SELECT ALL + col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL + col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + col1 * col0 col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + - cor0.col2 + - 5 AS col2 FROM tab2 cor0
----
-31
-32
-43

query I rowsort
SELECT + col0 + 85 AS col1 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT DISTINCT - cor0.col0 * 86 - - col0 AS col2 FROM tab0 AS cor0
----
-2040
-2975
-7565

query I rowsort
SELECT DISTINCT + - cor0.col0 AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT col0 + 48 FROM tab1 AS cor0
----
112
128
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( col1 ) col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 + 10 * + col2 col0 FROM tab0 AS cor0
----
-2508
-6642
-87

query I rowsort
SELECT DISTINCT + col0 + + col2 * - col0 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
-2944
-6560
-81

query I rowsort
SELECT ALL + cor0.col1 + - col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-738
SELECT - col2 + CAST( + col2 * cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
1406
650
702

skipif mysql # not compatible
query I rowsort label-738
SELECT - col2 + CAST ( + col2 * cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT col1 + + col0 + ( col2 ) FROM tab1 AS cor0
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col2 - ( - col0 ) FROM tab0
----
171
36
57

query I rowsort
SELECT col1 - col1 * - col1 AS col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-745
SELECT - CAST( NULL AS SIGNED ) / col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT - CAST ( NULL AS INTEGER ) / col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * 14 AS col2 FROM tab1
----
140
182
364

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL < tab1.col0 + cor0.col2 * + cor0.col1
----

query I rowsort
SELECT - - 89 + col1 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT ALL 95 FROM tab0, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT + col0 * col1 + col0 * col0 FROM tab1
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-751
SELECT ALL - col0 + col1 + - col2 DIV col1 FROM tab1
----
-59
-74
21

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - col0 + col1 + - col2 / col1 FROM tab1
----
-59
-74
21

query I rowsort
SELECT - tab2.col1 * tab2.col0 * col1 - + ( - col1 ) * ( tab2.col0 * - col1 ) FROM tab2
----
-13454
-45662
-543036

query I rowsort
SELECT - cor0.col0 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT ALL + tab0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 col1 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 * tab2.col1 ) - - 20 col0 FROM tab2
----
-1514
-626
-817

onlyif mysql # use DIV operator for integer division
query I rowsort label-757
SELECT - ( + col1 ) + + CAST( + ( - col0 ) AS SIGNED ) DIV col0 - + col2 FROM tab0
----
-120
-174
-99

skipif mysql # not compatible
query I rowsort label-757
SELECT - ( + col1 ) + + CAST ( + ( - col0 ) AS INTEGER ) / col0 - + col2 FROM tab0
----
-120
-174
-99

query I rowsort
SELECT + 41 * tab0.col1 AS col2 FROM tab0
----
3526
3731
3977

query I rowsort
SELECT - - col0 * + col0 + ( col2 + + col2 ) AS col2 FROM tab1 cor0
----
117
4210
6592

query I rowsort
SELECT DISTINCT + - 63 + + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
-28
-39
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-761
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-761
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - - col1 - + ( + col2 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col2 * - col0 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + 71 * + col1 - - col2 AS col0 FROM tab2 AS cor0
----
1245
2228
4215

query I rowsort
SELECT ALL + col2 + col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT - - 0 * col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT ( col2 ) * col2 + 51 AS col2 FROM tab2
----
1495
727
780

query I rowsort
SELECT col0 + - cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - col1 * 16 AS col1 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT tab1.col1 * - 77 FROM tab1
----
-1001
-2002
-770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-772
SELECT DISTINCT - + cor0.col1 * CAST( col0 AS SIGNED ) + - col1 * - cor0.col0 * 64 FROM tab0 AS cor0
----
130032
213885
510237

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT - + cor0.col1 * CAST ( col0 AS INTEGER ) + - col1 * - cor0.col0 * 64 FROM tab0 AS cor0
----
130032
213885
510237

query I rowsort
SELECT ALL col1 * + 73 FROM tab1 AS cor0
----
1898
730
949

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-774
SELECT - + col1 + CAST( col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-774
SELECT - + col1 + CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-775
SELECT ALL col1 DIV 65 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL col1 / 65 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + + 3 FROM tab1 AS cor0
----
13
16
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-777
SELECT - + col2 * - CAST( col0 AS SIGNED ) + col0 * cor0.col0 col1 FROM tab1 AS cor0
----
14080
171
7744

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-777
SELECT - + col2 * - CAST ( col0 AS INTEGER ) + col0 * cor0.col0 col1 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + + 61 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT ALL - + cor0.col2 DIV 54 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL - + cor0.col2 / 54 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 55 AS col0 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + col0 * + col1 - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + col1 * - 68 FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT + 74 AS col1 FROM tab1 cor0
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-785
SELECT DISTINCT - - 10 + col2 * + 20 + col2 DIV cor0.col0 FROM tab1 AS cor0
----
1108
1150
1931

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT - - 10 + col2 * + 20 + col2 / cor0.col0 FROM tab1 AS cor0
----
1108
1150
1931

query I rowsort
SELECT + + col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - 39 * + cor0.col2 FROM tab0 AS cor0
----
-1287
-3198
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-788
SELECT DISTINCT - col2 DIV cor0.col0 col1 FROM tab0 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT - col2 / cor0.col0 col1 FROM tab0 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col0 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT col1 DIV - col0 AS col0 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-790
SELECT col1 / - col0 AS col0 FROM tab1 cor0
----
-8
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-791
SELECT + CAST( NULL AS SIGNED ) * col0 + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-791
SELECT + CAST ( NULL AS INTEGER ) * col0 + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL 64 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL - col0 * cor0.col1 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + - col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 0 * - col0 + + col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-797
SELECT - + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-797
SELECT - + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - 36 * col1 AS col0 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT - 53 FROM tab0, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL + ( + col1 ) + - tab0.col2 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col2 FROM tab0, tab1 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-802
SELECT 43 DIV + col0 AS col2 FROM tab2
----
0
0
6

skipif mysql # not compatible
query I rowsort label-802
SELECT 43 / + col0 AS col2 FROM tab2
----
0
0
6

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab0
----
76

query I rowsort
SELECT DISTINCT + 53 + + col2 AS col2 FROM tab1 AS cor0
----
107
110
149

query I rowsort
SELECT 5 + + col1 AS col2 FROM tab2
----
22
36
64

query I rowsort
SELECT - 25 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT + col1 + col1 * + 84 FROM tab1 AS cor0
----
1105
2210
850

onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT DISTINCT + col0 DIV col2 col1 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT + col0 / col2 col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT col0 * 95 AS col2 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT DISTINCT col1 * ( - col0 + col1 ) FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT + col1 + col2 * + 35 FROM tab2 AS cor0
----
1347
969
976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-812
SELECT + - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT + - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 8 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT ALL - + col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col1 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT - col1 * + 57 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT - + cor0.col2 * - col1 + col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT - 72 DIV - 79 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-819
SELECT - 72 / - 79 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + ( - 83 ) + col0 FROM tab1 AS cor0
----
147
163
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT + col2 DIV + ( + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-821
SELECT + col2 / + ( + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - - cor0.col2 + + col0 * - col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort
SELECT ALL 65 * - 36 + + cor0.col2 + - CAST ( col2 AS REAL ) * - col2 FROM tab1 AS cor0
----
630
6972
966

onlyif mysql # use DIV operator for integer division
query I rowsort label-824
SELECT ALL + - col2 DIV + col2 + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + - col2 / + col2 + col1 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-825
SELECT col2 DIV ( - cor0.col2 * + col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-825
SELECT col2 / ( - cor0.col2 * + col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + col2 ) + - col2 * + col2 FROM tab1 cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL col0 + cor0.col2 * + col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - 93 AS col1 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT col1 * + col2 * + col0 + 77 FROM tab1 AS cor0
----
36557
4289
99917

onlyif mysql # use DIV operator for integer division
query I rowsort label-830
SELECT ALL - col2 DIV - col0 + + col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL - col2 / - col0 + + col0 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT + - 6 AS col1 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL + + 48 FROM tab2 cor0
----
48
48
48

query I rowsort
SELECT + 98 * col1 AS col1 FROM tab0 AS cor0
----
8428
8918
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-834
SELECT col1 * col2 + 0 DIV col2 FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-834
SELECT col1 * col2 + 0 / col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT cor0.col2 * col0 * 35 AS col1 FROM tab2 AS cor0
----
105070
6615
70980

query I rowsort
SELECT - col0 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT + 30 + - col0 * - 95 FROM tab0 AS cor0
----
2310
3355
8485

query I rowsort
SELECT + + ( - col0 ) * + col0 * col2 + + col0 FROM tab0 cor0
----
-1190
-18984
-649433

query I rowsort
SELECT - - col0 + ( ( col2 ) ) FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-840
SELECT - col0 DIV - col1 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-840
SELECT - col0 / - col1 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - 13 - - cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
-3
0
13

query I rowsort
SELECT ALL + 2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-843
SELECT DISTINCT tab1.col2 - + CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT tab1.col2 - + CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT DISTINCT col2 DIV col0 + + col2 + col1 FROM tab0
----
120
173
98

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT col2 / col0 + + col2 + col1 FROM tab0
----
120
173
98

query I rowsort
SELECT ALL 11 + col1 FROM tab2
----
28
42
70

query I rowsort
SELECT col2 * col0 + col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT - ( - col2 * col0 ) + 74 * + 61 FROM tab0
----
11812
4549
5306

query I rowsort
SELECT ALL 39 * 70 + col2 AS col1 FROM tab2
----
2756
2757
2768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - col0 * col1 col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - 10 + + 8 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT - - ( + col2 ) * - col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + + 88 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT - ( 4 ) AS col0 FROM tab0, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to df0306664dfa9962994889ea8d5edc5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 * col1 + - 48 * + col1 + + ( - col1 ) col2 FROM tab0 cor0
----
-14162
-248282
-683501

query I rowsort
SELECT + 93 * - col1 FROM tab2 AS cor0
----
-1581
-2883
-5487

onlyif mysql # use DIV operator for integer division
query I rowsort label-856
SELECT ALL col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + 98 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL col1 * - col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + + col2 + - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 18 AS col1 FROM tab0 AS cor0
----
-18
-18
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT DISTINCT + col2 - - col2 DIV col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT + col2 - - col2 / col1 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + ( 74 ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT DISTINCT - + col1 + col1 * + 0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 63 * + col2 FROM tab2 AS cor0
----
-1638
-1701
-2394

query I rowsort
SELECT + 99 + + col1 * 6 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-421
59
8

query I rowsort
SELECT DISTINCT - - 34 * - col0 + - col0 FROM tab0 AS cor0
----
-1225
-3115
-840

query I rowsort
SELECT ALL + - col1 + col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col1 * + col2 - + 2 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-2040
-7670
403

query I rowsort
SELECT ALL + + col1 + + cor0.col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-871
SELECT ALL + + col2 DIV - col0 + cor0.col1 * + col1 FROM tab1 AS cor0
----
100
168
658

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + + col2 / - col0 + cor0.col1 * + col1 FROM tab1 AS cor0
----
100
168
658

query I rowsort
SELECT ALL + col1 * col1 + - 78 FROM tab1 cor0
----
22
598
91

query I rowsort
SELECT DISTINCT + col2 * col2 * - 93 - col1 FROM tab1 AS cor0
----
-271214
-302167
-857101

query I rowsort
SELECT DISTINCT - col1 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL cor0.col0 * ( - 52 ) AS col0 FROM tab2 AS cor0
----
-364
-4056
-4108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 * - col1 col0 FROM tab2
----
1479
2697
5133

query I rowsort
SELECT ALL + col2 * - ( + col1 ) + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - col1 * - 16 AS col2 FROM tab2 cor0
----
272
496
944

query I rowsort
SELECT ALL cor0.col0 + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL + cor0.col0 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col2 + + col0 * 3 FROM tab0 AS cor0
----
105
106
349

query I rowsort
SELECT + cor0.col0 + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col0 * 21 * + cor0.col0 + ( ( col1 ) + col2 * 29 ) AS col2 FROM tab0 AS cor0
----
13139
168810
25851

query I rowsort
SELECT - ( + col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-886
SELECT - CAST( - col0 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-886
SELECT - CAST ( - col0 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 96 * - col2 FROM tab0 AS cor0
----
-3168
-7872
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-889
SELECT DISTINCT + CAST( 0 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + CAST ( 0 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 * + col2 * + col0 + + col2 + + 46 AS col0 FROM tab1 AS cor0
----
36583
4312
99982

query I rowsort
SELECT ALL - - ( - col0 ) * col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT - + ( + cor0.col0 ) + + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col0 + tab0.col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT - col0 * col0 * - 40 + col2 * col2 * col0 FROM tab0
----
49035
49176
915276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + + col1 * - col0 col2 FROM tab0
----
182
5332
6014

query I rowsort
SELECT - col0 + + ( 81 ) * col0 AS col1 FROM tab0
----
1920
2800
7120

query I rowsort
SELECT 15 FROM tab0, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL + 80 - col0 FROM tab1
----
0
16
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-899
SELECT ALL + 81 DIV - col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + 81 / - col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT ( col1 ) + + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - 95 + + col2 FROM tab0
----
-13
-62
-94

query I rowsort
SELECT - 1 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 * - col0 col1 FROM tab2
----
497
5538
5609

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-904
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-904
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 86 + + col1 AS col0 FROM tab0
----
0
11
5

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde

query I rowsort
SELECT ALL tab2.col1 * tab2.col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL - - col1 * - col1 + + 19 AS col0 FROM tab2 AS cor0
----
-270
-3462
-942

query I rowsort
SELECT - 52 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT ALL - col2 * cor0.col2 * col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT - + col2 * + col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT + tab2.col2 AS col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-914
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor0.col0 * ( col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col0 * - 54 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1263
-1889
-4724

query I rowsort
SELECT ALL - col1 + col2 * col0 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-918
SELECT + col2 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-918
SELECT + col2 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-919
SELECT DISTINCT col2 * CAST( col1 + - col1 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT col2 * CAST ( col1 + - col1 AS INTEGER ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col1 FROM tab2
----
68
68
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-921
SELECT ( cor0.col1 ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT ( cor0.col1 ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 50 + + col0 FROM tab2 AS cor0
----
-43
28
29

query I rowsort
SELECT + col2 * col1 + + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT - + col2 * ( - col0 ) + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - 40 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT ALL - 75 FROM tab2
----
-75
-75
-75

query I rowsort
SELECT + ( - col1 ) + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + + col1 * + 44 - col1 * 64 AS col0 FROM tab2 AS cor0
----
-1180
-340
-620

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - 85 * 91 + + col1 * + ( - 69 ) AS col1 FROM tab0 AS cor0
----
-13669
-14014
-14428

query I rowsort
SELECT DISTINCT + col0 * col0 + col0 AS col2 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL 7 FROM tab1, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + col0 * - ( col0 ) * 5 AS col0 FROM tab1
----
-20480
-32000
-45

query I rowsort
SELECT DISTINCT + - 1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 86 * + col2 AS col0 FROM tab0 AS cor0
----
-2838
-7052
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - - col2 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col1 * col1 + ( + col2 ) * - col1 FROM tab1 AS cor0
----
-1417
-2080
-670

query I rowsort
SELECT + col2 + + col0 * 73 + 40 AS col0 FROM tab0 AS cor0
----
1825
2596
6619

query I rowsort
SELECT ALL + col2 - - col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL cor0.col1 * + col0 + - col0 + + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + tab1.col0 + col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL 2 + col0 AS col1 FROM tab2
----
80
81
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT - tab2.col2 + tab2.col1 DIV + col1 AS col2 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-944
SELECT - tab2.col2 + tab2.col1 / + col1 AS col2 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT ALL tab0.col1 * + 87 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8ca7861657245b119c7ce2b8cb1688b3

query I rowsort
SELECT + 19 AS col0 FROM tab1
----
19
19
19

query I rowsort
SELECT + - 19 * + col0 AS col1 FROM tab0 AS cor0
----
-1691
-456
-665

query I rowsort
SELECT DISTINCT ( + tab1.col1 * cor0.col2 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e15c44d5a431966f2851e6bf4041b374

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - cor0.col0 + 84 FROM tab2, tab1 AS cor0
----
9 values hashing to bf5d0e7c34b1788fc36c183cfca1f155

query I rowsort
SELECT + col2 * + 35 AS col2 FROM tab1
----
1890
1995
3360

query I rowsort
SELECT - col1 * 72 AS col0 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT tab1.col1 * ( + tab1.col1 ) AS col1 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-954
SELECT col1 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-954
SELECT col1 / - col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + tab0.col2 - col1 * - col1 AS col2 FROM tab0
----
15579
8188
9444

query I rowsort
SELECT - cor0.col1 + col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col0 + + col1 * - col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( col1 ) + + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT - col0 + - 7 * - col0 AS col2 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT 5 + - col0 FROM tab0 AS cor0
----
-19
-30
-84

query I rowsort
SELECT ALL - 9 FROM tab0 cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + - ( - ( cor0.col1 ) ) * 44 * col2 AS col1 FROM tab2 AS cor0
----
28424
36828
67496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-965
SELECT + ( + ( col0 ) ) * col1 - ( col2 * - CAST( 36 AS SIGNED ) + - col0 ) AS col1 FROM tab1 AS cor0
----
2025
2756
4576

skipif mysql # not compatible
query I rowsort label-965
SELECT + ( + ( col0 ) ) * col1 - ( col2 * - CAST ( 36 AS INTEGER ) + - col0 ) AS col1 FROM tab1 AS cor0
----
2025
2756
4576

query I rowsort
SELECT - 26 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-52
-53
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-967
SELECT - 96 + col0 DIV col1 FROM tab1 AS cor0
----
-90
-90
-96

skipif mysql # not compatible
query I rowsort label-967
SELECT - 96 + col0 / col1 FROM tab1 AS cor0
----
-90
-90
-96

query I rowsort
SELECT ALL - col2 * + tab0.col2 * + col0 AS col0 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + cor0.col2 + + tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ff97f0e49eabfc1639146101800f3386

query I rowsort
SELECT - 6 AS col0 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT ( - col2 ) * + ( col1 ) + col1 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL + col2 * col0 + + cor0.col2 * - col0 + + 46 * + col0 AS col1 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT - 62 * + col2 + + ( - 34 + + col2 ) FROM tab1
----
-3328
-3511
-5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-974
SELECT col0 * col0 DIV col0 - + col2 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-974
SELECT col0 * col0 / col0 - + col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT 60 + + col0 AS col2 FROM tab1
----
124
140
63

query I rowsort
SELECT - col1 + - col0 * 4 * ( col2 ) FROM tab2
----
-12025
-787
-8171

query I rowsort
SELECT + col1 - + tab2.col0 * + 55 * - col2 AS col2 FROM tab2
----
10426
111599
165127

query I rowsort
SELECT + col1 + - 1 FROM tab2
----
16
30
58

query I rowsort
SELECT + col2 * 7 * + cor0.col1 FROM tab0 cor0
----
19866
52234
679

query I rowsort
SELECT DISTINCT - col2 * - ( 85 ) + + cor0.col2 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT + - col1 - 42 * + col0 * + cor0.col1 FROM tab0 AS cor0
----
-142687
-340249
-86774

query I rowsort
SELECT - col2 * + 32 - + 54 FROM tab2 AS cor0
----
-1270
-886
-918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-983
SELECT DISTINCT - - col0 * CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT - - col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + tab0.col0 AS col0 FROM tab0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT DISTINCT tab0.col1 DIV ( + ( + col1 ) ) + 83 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT tab0.col1 / ( + ( + col1 ) ) + 83 FROM tab0
----
84

query I rowsort
SELECT DISTINCT + col2 + + ( col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL col0 * + 42 * col0 AS col1 FROM tab1 cor0
----
172032
268800
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 51 + col2 col0 FROM tab0 AS cor0
----
17
44
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-989
SELECT DISTINCT + col1 DIV - 35 AS col2 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT + col1 / - 35 AS col2 FROM tab2 cor0
----
-1
0

query I rowsort
SELECT + cor0.col0 + + ( + 9 ) * - col1 FROM tab0 AS cor0
----
-730
-750
-838

query I rowsort
SELECT + cor0.col1 - + ( - col0 ) * cor0.col1 * + col0 FROM tab2 AS cor0
----
106114
1550
359015

query I rowsort
SELECT DISTINCT - + col2 + 62 FROM tab0 AS cor0
----
-20
29
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - - col1 * + col0 * - col2 + + col1 AS col0 FROM tab1 cor0
----
-36470
-4186
-99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-995
SELECT - col2 * + col0 + + col1 DIV col1 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-995
SELECT - col2 * + col0 + + col1 / col1 FROM tab1 AS cor0
----
-161
-3647
-7679

query I rowsort
SELECT ALL col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col1 * cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT - + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col1 * + 31 + col1 AS col1 FROM tab0
----
2752
2912
3104

onlyif mysql # use DIV operator for integer division
query I rowsort label-1001
SELECT ALL 58 * col0 DIV - 97 + + col2 AS col2 FROM tab1 AS cor0
----
19
49
53

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL 58 * col0 / - 97 + + col2 AS col2 FROM tab1 AS cor0
----
19
49
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-1002
SELECT + col0 DIV - col0 + + ( + ( col1 ) ) FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-1002
SELECT + col0 / - col0 + + ( + ( col1 ) ) FROM tab0 cor0
----
85
90
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1003
SELECT ALL + col1 * - col1 + CAST( NULL AS SIGNED ) * - 81 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL + col1 * - col1 + CAST ( NULL AS INTEGER ) * - 81 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 23 + cor0.col2 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1557
669
860

query I rowsort
SELECT ALL - 73 + + col2 * col2 * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
207863
737207
8675

query I rowsort
SELECT ALL + ( col0 ) + cor0.col2 + col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT DISTINCT - 84 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT ALL - + 17 * col1 FROM tab0 AS cor0
----
-1462
-1547
-1649

onlyif mysql # use DIV operator for integer division
query I rowsort label-1009
SELECT ALL + ( + col0 ) DIV + 98 + col2 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-1009
SELECT ALL + ( + col0 ) / + 98 + col2 col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col0 * col0 * + ( col0 + col0 ) FROM tab0 AS cor0
----
-1409938
-27648
-85750

query I rowsort
SELECT DISTINCT + - 27 - cor0.col2 * + 24 FROM tab0 AS cor0
----
-1995
-51
-819

query I rowsort
SELECT - + 61 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 * - cor0.col0 * - col2 + col1 * ( - col0 * cor0.col2 ) FROM tab1 cor0
----
-3700
197002
514573

onlyif mysql # use DIV operator for integer division
query I rowsort label-1014
SELECT - col0 DIV + col0 + - ( col1 ) FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-1014
SELECT - col0 / + col0 + - ( col1 ) FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT ALL + ( + cor0.col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + + ( + cor0.col1 ) * + 29 FROM tab2 AS cor0
----
1711
493
899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1017
SELECT + col0 + - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-1017
SELECT + col0 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - col2 - col0 * col0 * - col1 FROM tab2 AS cor0
----
106059
1492
358930

query I rowsort
SELECT ALL - 46 + + col0 FROM tab0 AS cor0
----
-11
-22
43

query I rowsort
SELECT DISTINCT - col2 - - cor0.col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 35 ) col2 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT ALL + - col1 - - col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL - - 53 + - col2 * col0 FROM tab2 AS cor0
----
-136
-1975
-2949

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac

query I rowsort
SELECT + 32 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT col0 * + col0 * col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT 28 AS col0 FROM tab0
----
28
28
28

query I rowsort
SELECT DISTINCT + cor0.col1 * ( + col2 * cor0.col1 + col0 ) AS col2 FROM tab2 AS cor0
----
12325
26164
95108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1029
SELECT + CAST( NULL AS SIGNED ) + + cor0.col0 * + col2 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT + CAST ( NULL AS INTEGER ) + + cor0.col0 * + col2 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1030
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 18 ) * col1 AS col2 FROM tab1 AS cor0
----
-180
-234
-468

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1032
SELECT - CAST( NULL AS SIGNED ) + - col0 + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT - CAST ( NULL AS INTEGER ) + - col0 + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 54 + cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3c4109757b862d7ca1eff7555ff515b6

query I rowsort
SELECT 36 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - col2 + 40 * col2 FROM tab1 AS cor0
----
2106
2223
3744

query I rowsort
SELECT ALL col1 * + 82 + col2 FROM tab2 AS cor0
----
1432
2569
4864

query I rowsort
SELECT DISTINCT + col2 + + col0 + col2 * cor0.col2 FROM tab2 AS cor0
----
1561
763
780

query I rowsort
SELECT cor0.col1 * 64 + 90 AS col0 FROM tab2 cor0
----
1178
2074
3866

query I rowsort
SELECT col2 + - ( - col0 + col2 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col1 * + col1 + + col0 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL - col2 * ( - col0 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - col0 * col0 + cor0.col0 AS col2 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT 63 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - + ( - col1 ) * col0 + 74 FROM tab0 AS cor0
----
2138
3469
8173

query I rowsort
SELECT - + ( - col1 ) * col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + col1 + - col1 * col0 FROM tab2 cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1049
SELECT CAST( + col0 AS SIGNED ) * col1 + col1 FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-1049
SELECT CAST ( + col0 AS INTEGER ) * col1 + col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT - col0 DIV ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1050
SELECT - col0 / ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - ( col0 ) + - col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + cor0.col0 + - col1 * col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1053
SELECT - col0 * - col1 + ( col2 ) DIV + cor0.col1 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-1053
SELECT - col0 * - col1 + ( col2 ) / + cor0.col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - 1 * - col1 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT 51 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT + + col0 * + col2 - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - 53 * + cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT DISTINCT 36 * + 49 FROM tab1, tab0 cor0
----
1764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col2 + col1 col1 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT + col1 * cor0.col1 + 36 * - col2 FROM tab0 AS cor0
----
5329
6208
9373

query I rowsort
SELECT - cor0.col2 + + 41 FROM tab2 AS cor0
----
14
15
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1062
SELECT col2 + - CAST( col1 * col2 AS SIGNED ) + + 25 * - col0 AS col0 FROM tab0 AS cor0
----
-3405
-9605
-971

skipif mysql # not compatible
query I rowsort label-1062
SELECT col2 + - CAST ( col1 * col2 AS INTEGER ) + + 25 * - col0 AS col0 FROM tab0 AS cor0
----
-3405
-9605
-971

query I rowsort
SELECT - + col2 * 49 + + cor0.col2 FROM tab0 AS cor0
----
-1584
-3936
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-1064
SELECT DISTINCT - - col0 * col0 + - col1 DIV col2 + col2 FROM tab0 AS cor0
----
1129
607
8002

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT - - col0 * col0 + - col1 / col2 + col2 FROM tab0 AS cor0
----
1129
607
8002

query I rowsort
SELECT col2 * col0 + + 92 FROM tab2 cor0
----
2120
281
3094

query I rowsort
SELECT ALL + col0 * 70 FROM tab1 cor0
----
210
4480
5600

query I rowsort
SELECT + + col1 * 0 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - cor0.col1 + 8 AS col2 FROM tab0 AS cor0
----
-78
-83
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col2 + - ( + ( col1 ) ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + col1 - 64 AS col1 FROM tab1 cor0
----
-38
-51
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-1072
SELECT ALL - col2 DIV col2 + col1 - col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL - col2 / col2 + col1 - col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0, tab1 AS cor0
----
53

query I rowsort
SELECT ALL + ( - cor0.col1 ) AS col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT col1 + - cor0.col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col0 + col1 AS col1 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1077
SELECT + + col2 * col2 DIV col1 FROM tab2 AS cor0
----
11
23
84

skipif mysql # not compatible
query I rowsort label-1077
SELECT + + col2 * col2 / col1 FROM tab2 AS cor0
----
11
23
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1078
SELECT ALL - CAST( - cor0.col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL - CAST ( - cor0.col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT DISTINCT - ( + col0 ) DIV col0 + 91 DIV 62 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT - ( + col0 ) / col0 + 91 / 62 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1080
SELECT ALL tab0.col1 + - col1 * col1 DIV - col0 FROM tab0
----
184
365
394

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL tab0.col1 + - col1 * col1 / - col0 FROM tab0
----
184
365
394

query I rowsort
SELECT DISTINCT - col2 * col1 + 56 AS col0 FROM tab0
----
-2782
-41
-7406

query I rowsort
SELECT DISTINCT - col0 * + col2 + tab2.col2 * col1 AS col1 FROM tab2
----
-2356
-494
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-1083
SELECT + col0 DIV 51 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1083
SELECT + col0 / 51 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL col2 + + ( col2 ) FROM tab0
----
164
2
66

query I rowsort
SELECT ALL + - 80 * col0 + - col2 FROM tab0 AS cor0
----
-1953
-2801
-7202

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * + 67 - - col0 AS col0 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT ALL + col2 + + col0 * - 84 FROM tab2 AS cor0
----
-561
-6526
-6598

onlyif mysql # use DIV operator for integer division
query I rowsort label-1088
SELECT - + col2 DIV + col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1088
SELECT - + col2 / + col0 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * + col0 col2 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL tab2.col0 * + col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL 0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1092
SELECT - col1 * col2 DIV ( col1 ) FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1092
SELECT - col1 * col2 / ( col1 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL + 78 AS col0 FROM tab0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col0 col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 * + cor0.col1 + + 92 col0 FROM tab1 AS cor0
----
1366
582
729

query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 + - 62 * col1 FROM tab2 AS cor0
----
-2111
-4056
-5686

query I rowsort
SELECT - cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + - 96 + - col2 FROM tab1 AS cor0
----
-150
-153
-192

query I rowsort
SELECT 65 * col2 * + ( - col1 * + col0 ) + - col0 * - col2 AS col0 FROM tab2
----
-3314208
-380646
-7775352

query I rowsort
SELECT - col2 + + col2 * col1 AS col0 FROM tab2
----
1508
608
810

query I rowsort
SELECT ALL 7 - col0 * + col1 * + col2 FROM tab1 AS cor0
----
-36473
-4205
-99833

query I rowsort
SELECT ALL - + col2 * col2 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + 26 FROM tab1
----
26

query I rowsort
SELECT - 34 + col1 FROM tab1
----
-21
-24
-8

query I rowsort
SELECT 71 + + col0 AS col2 FROM tab2
----
149
150
78

query I rowsort
SELECT + col0 * + col1 * 74 FROM tab1
----
47360
5772
76960

query I rowsort
SELECT ALL - 18 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1108
SELECT DISTINCT col1 * - 81 - col0 DIV - tab0.col2 FROM tab0
----
-6966
-7370
-7822

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT col1 * - 81 - col0 / - tab0.col2 FROM tab0
----
-6966
-7370
-7822

query I rowsort
SELECT DISTINCT + - ( - col1 ) AS col2 FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1110
SELECT col0 * col1 + col0 DIV CAST( col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
1046
646
78

skipif mysql # not compatible
query I rowsort label-1110
SELECT col0 * col1 + col0 / CAST ( col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
1046
646
78

query I rowsort
SELECT 0 + col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - tab0.col2 * + 89 * + col2 + - col0 + col0 AS col0 FROM tab0
----
-598436
-89
-96921

query I rowsort
SELECT ALL - 63 - 43 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 39dd8c4f60f98325f31b33e4c0f3945d

query I rowsort
SELECT col1 * + col1 + - col2 AS col2 FROM tab1
----
43
622
73

query I rowsort
SELECT DISTINCT ( 27 ) FROM tab1, tab0 AS cor0
----
27

query I rowsort
SELECT - tab0.col0 * + ( + ( - col1 ) ) - col1 * col1 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT DISTINCT - col1 + - col1 * col1 AS col2 FROM tab1
----
-110
-182
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1118
SELECT CAST( NULL AS DECIMAL ) * col1 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT CAST ( NULL AS REAL ) * col1 * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - 92 AS col1 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT + 39 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
3354
3549
3783

query I rowsort
SELECT ALL 4 + - col2 AS col0 FROM tab1 AS cor0
----
-50
-53
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1123
SELECT - + col0 + - 25 DIV + col0 + + col2 FROM tab0 AS cor0
----
-34
-7
8

skipif mysql # not compatible
query I rowsort label-1123
SELECT - + col0 + - 25 / + col0 + + col2 FROM tab0 AS cor0
----
-34
-7
8

query I rowsort
SELECT DISTINCT - + ( col1 ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col2 * 41 FROM tab2 AS cor0
----
1066
1107
1558

query I rowsort
SELECT + + ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - 30 + 12 * - col0 AS col1 FROM tab2 AS cor0
----
-114
-966
-978

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + 58 + col2 * col1 FROM tab1 AS cor0
----
1306
1462
628

query I rowsort
SELECT + ( col0 ) * col1 * col2 + 70 * col1 FROM tab1 AS cor0
----
100750
37180
6032

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1131
SELECT ALL CAST( NULL AS SIGNED ) + + col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 34 - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1006
-44
-606

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1133
SELECT - + CAST( + col0 AS SIGNED ) + col1 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-1133
SELECT - + CAST ( + col0 AS INTEGER ) + col1 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) FROM tab2
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1135
SELECT ALL CAST( NULL AS DECIMAL ) * + ( - tab0.col2 ) + 42 * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL CAST ( NULL AS REAL ) * + ( - tab0.col2 ) + 42 * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + col1 + - col2 AS col1 FROM tab0
----
100
139
193

query I rowsort
SELECT DISTINCT + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1138
SELECT + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1139
SELECT DISTINCT ( col0 ) DIV col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT ( col0 ) / col0 FROM tab2
----
1

query I rowsort
SELECT ALL col1 * 55 FROM tab0
----
4730
5005
5335

query I rowsort
SELECT ALL + + col0 * col1 * 73 + + ( col1 ) - - col2 * - ( cor0.col0 + col2 ) AS col0 FROM tab2 AS cor0
----
14954
333301
93610

query I rowsort
SELECT ALL + col1 * + col0 * col0 AS col0 FROM tab1 cor0
----
234
40960
83200

query I rowsort
SELECT ( col1 ) + - 8 FROM tab1 AS cor0
----
18
2
5

query I rowsort
SELECT DISTINCT + tab2.col1 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
17
31
59

query I rowsort
SELECT ALL 73 FROM tab2 cor0
----
73
73
73

query I rowsort
SELECT + 15 + - col1 FROM tab0 AS cor0
----
-71
-76
-82

query I rowsort
SELECT + col1 + - col2 * col2 + col1 * col2 FROM tab0 AS cor0
----
1835
193
829

onlyif mysql # use DIV operator for integer division
query I rowsort label-1148
SELECT + + 97 * col1 + 39 + + col0 DIV col0 FROM tab0 AS cor0
----
8382
8867
9449

skipif mysql # not compatible
query I rowsort label-1148
SELECT + + 97 * col1 + 39 + + col0 / col0 FROM tab0 AS cor0
----
8382
8867
9449

query I rowsort
SELECT col1 * cor0.col1 + - 36 + + col0 * + col1 FROM tab0 AS cor0
----
12768
16344
9424

query I rowsort
SELECT 67 + col1 * - col1 FROM tab1 AS cor0
----
-102
-33
-609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1152
SELECT ALL + col0 + + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + col0 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col0 + 94 AS col0 FROM tab2 AS cor0
----
101
172
173

query I rowsort
SELECT col1 + col2 * 99 FROM tab0 AS cor0
----
196
3353
8209

query I rowsort
SELECT ALL cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT DISTINCT + cor0.col1 + ( - 85 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-2
12
9

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT + cor0.col1 + ( - 85 ) / + col0 AS col0 FROM tab1 AS cor0
----
-2
12
9

query I rowsort
SELECT DISTINCT + cor0.col1 + + ( 91 ) AS col1 FROM tab2 AS cor0
----
108
122
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-1159
SELECT DISTINCT col0 * + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT col0 * + col0 / + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1160
SELECT ALL + - CAST( NULL AS SIGNED ) * + col0 + - cor0.col0 * - 18 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col0 + - cor0.col0 * - 18 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + ( col0 ) * col1 AS col0 FROM tab0
----
2150
3492
8190

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to b8435223668db186a5012e4112253f28

query I rowsort
SELECT - - col0 + col1 * 3 FROM tab1 cor0
----
119
81
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + - col1 * - 39 col1 FROM tab1 AS cor0
----
333
411
960

query I rowsort
SELECT - - col1 - + 96 FROM tab2 AS cor0
----
-37
-65
-79

query I rowsort
SELECT DISTINCT - col0 * col1 - col0 * col1 FROM tab1 cor0
----
-1280
-156
-2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-1167
SELECT - + col0 + + col0 DIV 78 AS col2 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-1167
SELECT - + col0 + + col0 / 78 AS col2 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT - - col0 + 96 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-2418
-2585
-3569

query I rowsort
SELECT - col0 + + ( - 68 ) FROM tab1 AS cor0
----
-132
-148
-71

query I rowsort
SELECT + 51 * col0 FROM tab1
----
153
3264
4080

query I rowsort
SELECT ALL + col0 * - tab1.col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM tab0, tab0 cor0
----
-78

query I rowsort
SELECT + col2 + 66 AS col0 FROM tab1 AS cor0
----
120
123
162

onlyif mysql # use DIV operator for integer division
query I rowsort label-1174
SELECT + col1 DIV col1 FROM tab1 WHERE NOT col1 IN ( col1 * + tab1.col0 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1174
SELECT + col1 / col1 FROM tab1 WHERE NOT col1 IN ( col1 * + tab1.col0 )
----
1
1
1

query I rowsort
SELECT ALL + col0 + col0 * - col2 AS col1 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT col1 - - col0 DIV col1 col1 FROM tab2
----
21
31
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1176
SELECT col1 - - col0 / col1 col1 FROM tab2
----
21
31
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT DISTINCT tab2.col1 DIV tab2.col0 + col1 FROM tab2
----
17
35
59

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT tab2.col1 / tab2.col0 + col1 FROM tab2
----
17
35
59

query I rowsort
SELECT DISTINCT col2 / col1 FROM tab1 WHERE NOT ( - col0 * col1 * - col1 ) = NULL
----

query I rowsort
SELECT ALL - col2 + - col2 * col1 AS col1 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT col2 + - col0 FROM tab1 WHERE NOT ( NULL ) = col2 * col1
----

query I rowsort
SELECT col1 + + col2 * col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL col2 + col2 * col0 * col2 FROM tab2
----
114114
5130
52754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1183
SELECT ALL - col1 + + col0 DIV - col2 FROM tab1
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - col1 + + col0 / - col2 FROM tab1
----
-11
-13
-26

query I rowsort
SELECT DISTINCT + 14 FROM tab0, tab2, tab0 AS cor0
----
14

query I rowsort
SELECT ALL - 32 * col0 FROM tab1
----
-2048
-2560
-96

query I rowsort
SELECT ALL + 99 * - col0 AS col2 FROM tab1
----
-297
-6336
-7920

query I rowsort
SELECT + cor0.col2 + - col0 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
-118824
-49503
-720729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1188
SELECT + - col1 + + col1 * CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1188
SELECT + - col1 + + col1 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 72 + + cor0.col1 FROM tab1 AS cor0
----
82
85
98

query I rowsort
SELECT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT 78 AS col2 FROM tab1
----
78
78
78

query I rowsort
SELECT 41 * - col1 FROM tab2 cor0
----
-1271
-2419
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-1193
SELECT DISTINCT + col2 + + 23 DIV - 83 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT + col2 + + 23 / - 83 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT cor0.col1 * 93 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT + + cor0.col2 + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT col1 + col0 * + 70 FROM tab0 AS cor0
----
1766
2547
6321

onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT ALL col2 + - ( + cor0.col1 ) DIV + col0 AS col1 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL col2 + - ( + cor0.col1 ) / + col0 AS col1 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT DISTINCT + col1 * + 59 FROM tab0 AS cor0
----
5074
5369
5723

query I rowsort
SELECT + + col0 * - col1 * + col1 + - col0 FROM tab1 AS cor0
----
-13600
-2031
-6464

query I rowsort
SELECT + col1 - - col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 + 46 AS col2 FROM tab0 AS cor0
----
-40
-45
-51

query I rowsort
SELECT - col1 * + col0 + - col1 AS col1 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL + 30 AS col2 FROM tab2
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col1 ) + + col0 * 56 col1 FROM tab0 AS cor0
----
1430
2057
5075

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1206
SELECT + CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1206
SELECT + CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + + 45 AS col2 FROM tab0 AS cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1209
SELECT DISTINCT + 6 DIV + col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT + 6 / + col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - ( - cor0.col2 ) * + 68 AS col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT ALL + col2 * - col1 + - ( + 86 ) * - col2 AS col1 FROM tab1 AS cor0
----
3240
4332
7008

query I rowsort
SELECT - 56 + col2 FROM tab0 AS cor0
----
-23
-55
26

query I rowsort
SELECT 80 AS col1 FROM tab1 cor0
----
80
80
80

query I rowsort
SELECT DISTINCT - 12 + col0 AS col1 FROM tab1 AS cor0
----
-9
52
68

query I rowsort
SELECT 79 FROM tab1, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + cor0.col1 col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + - col2 + - 20 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
11343
24864
28026

query I rowsort
SELECT DISTINCT - + col1 * - 77 - col2 FROM tab2 AS cor0
----
1271
2360
4517

query I rowsort
SELECT + - col1 - col1 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT ALL - col0 * - col1 + + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + + col1 + col2 - + col2 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + + col0 * + 57 + ( - col1 ) FROM tab1 AS cor0
----
145
3638
4547

query I rowsort
SELECT col0 + 68 FROM tab2 cor0
----
146
147
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - ( - col0 ) col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 + + 39 * - 18 AS col2 FROM tab1 AS cor0
----
-705
-766
-782

query I rowsort
SELECT ALL col2 * - 24 + 40 + col2 FROM tab2
----
-558
-581
-834

query I rowsort
SELECT DISTINCT + 17 + + col0 * + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-233455
-469
-614383

query I rowsort
SELECT ALL - col0 + + ( col2 ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + col1 + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1231
SELECT ( + ( + cor0.col0 ) ) + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT ( + ( + cor0.col0 ) ) + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1232
SELECT DISTINCT - cor0.col0 * + col2 + col0 DIV + 75 FROM tab2 AS cor0
----
-189
-2027
-3001

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT - cor0.col0 * + col2 + col0 / + 75 FROM tab2 AS cor0
----
-189
-2027
-3001

query I rowsort
SELECT + - col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT 11 + ( cor0.col2 ) FROM tab1 AS cor0
----
107
65
68

query I rowsort
SELECT ALL col0 * - col0 + + col1 * col0 FROM tab0
----
1488
178
2170

query I rowsort
SELECT ALL - col1 + col1 * - 83 AS col1 FROM tab1
----
-1092
-2184
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-1237
SELECT DISTINCT col2 * + col1 + col1 DIV + col2 AS col1 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT col2 * + col1 + col1 / + col2 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + cor0.col2 + + 95 FROM tab2, tab1 AS cor0
----
9 values hashing to 6dd2a79a8389715cd5d45ab6791c551f

query I rowsort
SELECT ALL - col2 + + 96 FROM tab2
----
58
69
70

query I rowsort
SELECT - 40 + + 97 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - 31 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT - + col1 - - col2 * + col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT - cor0.col1 + col0 * - col1 * - 5 AS col2 FROM tab2 cor0
----
1054
22951
6698

query I rowsort
SELECT col2 * + col1 - col1 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
-3298
-637
774

onlyif mysql # use DIV operator for integer division
query I rowsort label-1245
SELECT DISTINCT + - cor0.col0 DIV cor0.col1 + 55 AS col2 FROM tab1 AS cor0
----
49
55

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT + - cor0.col0 / cor0.col1 + 55 AS col2 FROM tab1 AS cor0
----
49
55

query I rowsort
SELECT DISTINCT - - col0 * + cor0.col0 + - ( ( cor0.col1 ) ) FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL + col2 * + col2 - + col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col1 col0 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - + col1 * + col0 + 95 FROM tab0 AS cor0
----
-1969
-3300
-8004

query I rowsort
SELECT ALL + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - ( - cor0.col0 ) * + col1 + col2 * - col0 + - cor0.col1 FROM tab1 cor0
----
-110
-3018
-6653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col2 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ( - col2 ) + col1 * - col2 AS col0 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT - 37 - col2 * - col0 FROM tab1 AS cor0
----
125
3611
7643

onlyif mysql # use DIV operator for integer division
query I rowsort label-1256
SELECT ALL col0 + + col0 DIV + col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL col0 + + col0 / + col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1257
SELECT CAST( col1 AS SIGNED ) + - col2 AS col1 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-1257
SELECT CAST ( col1 AS INTEGER ) + - col2 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1259
SELECT ALL - col1 - col1 DIV col1 AS col0 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL - col1 - col1 / col1 AS col0 FROM tab2
----
-18
-32
-60

query I rowsort
SELECT ALL - col0 - + col1 AS col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL tab0.col0 * 27 FROM tab0, tab1 AS cor0
----
9 values hashing to 279bd4cfe7bb93189cfd25e32dc885e3

query I rowsort
SELECT - ( + col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1263
SELECT - - ( col1 ) - CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1263
SELECT - - ( col1 ) - CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 56 AS col2 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-1265
SELECT - col2 DIV col2 - col1 * cor0.col2 FROM tab1 cor0
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-1265
SELECT - col2 / col2 - col1 * cor0.col2 FROM tab1 cor0
----
-1249
-1405
-571

query I rowsort
SELECT tab2.col2 + tab2.col1 AS col2 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1267
SELECT col2 - + CAST( cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-1267
SELECT col2 - + CAST ( cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT 32 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1268
SELECT 32 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( + 41 ) AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT + col0 * + col0 + 87 FROM tab2
----
136
6171
6328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + col0 * + col0 col2 FROM tab0 AS cor0
----
-513
1197
1224

query I rowsort
SELECT + col2 - 32 AS col1 FROM tab1 cor0
----
22
25
64

query I rowsort
SELECT tab2.col0 * - col1 + 48 * - tab2.col0 AS col2 FROM tab2
----
-5135
-553
-8346

query I rowsort
SELECT ALL + + col2 + + col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - col1 * + col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT + cor0.col2 DIV 36 + - 50 FROM tab0 AS cor0
----
-48
-50
-50

skipif mysql # not compatible
query I rowsort label-1276
SELECT + cor0.col2 / 36 + - 50 FROM tab0 AS cor0
----
-48
-50
-50

query I rowsort
SELECT - - col1 - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1279
SELECT + + cor0.col1 + - 2 DIV col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1279
SELECT + + cor0.col1 + - 2 / col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col1 * - 12 FROM tab0 cor0
----
-1032
-1092
-1164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * - col0 col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col1 + - 25 FROM tab0 cor0
----
-111
-116
-122

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1285
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 / - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 / - col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - ( 64 ) * + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1503
-2239
-5614

query I rowsort
SELECT DISTINCT + 14 + col1 FROM tab2 AS cor0
----
31
45
73

query I rowsort
SELECT ALL - + 70 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL ( col1 ) * col2 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - 4 + + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1347
-221
-4606

query I rowsort
SELECT ALL ( + col2 ) + - col0 * - col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL 80 AS col0 FROM tab0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1293
SELECT + 18 DIV - col0 AS col2 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1293
SELECT + 18 / - col0 AS col2 FROM tab2 cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT ALL - col0 * + col0 + + col0 + - col1 DIV + cor0.col1 FROM tab1 AS cor0
----
-4033
-6321
-7

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL - col0 * + col0 + + col0 + - col1 / + cor0.col1 FROM tab1 AS cor0
----
-4033
-6321
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1295
SELECT cor0.col1 DIV 41 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-1295
SELECT cor0.col1 / 41 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ( col2 ) + + tab0.col0 * + 76 * + col1 AS col2 FROM tab0
----
156897
258021
615606

query I rowsort
SELECT + + col2 + - col2 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1298
SELECT + CAST( + col0 AS SIGNED ) * col1 - col0 AS col1 FROM tab1 AS cor0
----
576
75
960

skipif mysql # not compatible
query I rowsort label-1298
SELECT + CAST ( + col0 AS INTEGER ) * col1 - col0 AS col1 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1299
SELECT - 14 DIV - col0 + + col2 AS col1 FROM tab1 AS cor0
----
57
58
96

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 14 / - col0 + + col2 AS col1 FROM tab1 AS cor0
----
57
58
96

query I rowsort
SELECT + - col1 * + 33 AS col2 FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT - 3 + + ( - col2 * col0 ) AS col1 FROM tab0 AS cor0
----
-38
-7301
-795

query I rowsort
SELECT + - 54 + - col0 AS col0 FROM tab0 AS cor0
----
-143
-78
-89

query I rowsort
SELECT ALL - 9 + col0 * - col2 FROM tab1 AS cor0
----
-171
-3657
-7689

onlyif mysql # use DIV operator for integer division
query I rowsort label-1304
SELECT DISTINCT + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT + col0 / col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 + - col1 - + 12 AS col1 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT + - col2 * 49 AS col1 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT DISTINCT - cor0.col1 * - ( + 85 ) FROM tab1, tab2 cor0, tab1 AS cor1, tab1 AS cor2
----
1445
2635
5015

onlyif mysql # use DIV operator for integer division
query I rowsort label-1308
SELECT - col1 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1308
SELECT - col1 / cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - + 48 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT 67 FROM tab2, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 90 col1 FROM tab0 AS cor0
----
114
125
179

query I rowsort
SELECT ALL + 97 FROM tab0, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT - col2 + 93 * col0 AS col0 FROM tab0
----
2199
3254
8195

onlyif mysql # use DIV operator for integer division
query I rowsort label-1315
SELECT - cor0.col1 * - col2 + + col1 * col0 DIV ( + 87 ) FROM tab0 AS cor0
----
136
2861
7555

skipif mysql # not compatible
query I rowsort label-1315
SELECT - cor0.col1 * - col2 + + col1 * col0 / ( + 87 ) FROM tab0 AS cor0
----
136
2861
7555

query I rowsort
SELECT ALL - 5 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) - + col1 col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL - ( - 9 ) * + col1 FROM tab0 cor0
----
774
819
873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1319
SELECT + - CAST( NULL AS SIGNED ) + - 20 / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT + - CAST ( NULL AS INTEGER ) + - 20 / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1320
SELECT - cor0.col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1320
SELECT - cor0.col0 + - CAST ( NULL AS REAL ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1321
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 67 - + tab2.col2 * col1 * - tab2.col0 AS col2 FROM tab2
----
119719
51101
5926

query I rowsort
SELECT DISTINCT - tab1.col0 * col0 + col1 * - 68 * - tab1.col0 + ( + col0 ) * col0 * - ( col1 * + col1 ) AS col0 FROM tab1
----
-1017280
-370176
-789

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1325
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col0 * - tab2.col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col2 * col2 + + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1226
-14645
-1665

onlyif mysql # use DIV operator for integer division
query I rowsort label-1328
SELECT + - col2 * ( 27 + cor0.col0 ) DIV + 75 AS col1 FROM tab2 AS cor0
----
-12
-36
-53

skipif mysql # not compatible
query I rowsort label-1328
SELECT + - col2 * ( 27 + cor0.col0 ) / + 75 AS col1 FROM tab2 AS cor0
----
-12
-36
-53

query I rowsort
SELECT - - cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col1 + - ( cor0.col2 ) * - col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL 54 * + 2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bc094bfb79720eed713b3b8a7614c0d1

query I rowsort
SELECT 71 * + col2 FROM tab2
----
1846
1917
2698

query I rowsort
SELECT 91 * 14 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to bf72c9afd2f391390603dc0dbd5b59af

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1334
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - cor0.col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1336
SELECT + col2 / col1 AS col0 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT ALL + tab0.col2 DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL + tab0.col2 / col1 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col2 FROM tab1
----
81
81
81

query I rowsort
SELECT ALL - col2 + + col1 + + col2 * + 7 AS col0 FROM tab1
----
350
352
589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col2 * 33 FROM tab2 cor0
----
-1254
-858
-891

onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT 82 DIV col1 AS col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-1342
SELECT 82 / col1 AS col1 FROM tab1 AS cor0
----
3
6
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT DISTINCT + col1 DIV + col0 + + col1 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT + col1 / + col0 + + col1 FROM tab1
----
10
13
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1344
SELECT DISTINCT + col0 + tab2.col0 DIV - col1 AS col0 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + col0 + tab2.col0 / - col1 AS col0 FROM tab2
----
7
75
77

query I rowsort
SELECT + tab0.col1 * 1 + + tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - 45 * col1 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT ALL - + ( - col2 ) * - ( + col1 ) + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - 3 + col0 AS col0 FROM tab0 AS cor0
----
21
32
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab0
----
79
79
79

query I rowsort
SELECT + 99 + col0 * 86 FROM tab2 AS cor0
----
6807
6893
701

query I rowsort
SELECT + + cor0.col0 - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1353
SELECT + col0 + + col1 DIV + ( + 14 ) FROM tab2 AS cor0
----
80
82
9

skipif mysql # not compatible
query I rowsort label-1353
SELECT + col0 + + col1 / + ( + 14 ) FROM tab2 AS cor0
----
80
82
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1354
SELECT ALL + cor0.col1 DIV col1 + col2 DIV - col1 FROM tab1 AS cor0
----
-1
-4
-6

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL + cor0.col1 / col1 + col2 / - col1 FROM tab1 AS cor0
----
-1
-4
-6

query I rowsort
SELECT DISTINCT - col1 - col0 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
312
474493
493022

onlyif mysql # use DIV operator for integer division
query I rowsort label-1356
SELECT + col0 * col2 * ( - col0 ) + + col2 DIV 54 AS col0 FROM tab1 AS cor0
----
-233471
-485
-614399

skipif mysql # not compatible
query I rowsort label-1356
SELECT + col0 * col2 * ( - col0 ) + + col2 / 54 AS col0 FROM tab1 AS cor0
----
-233471
-485
-614399

query I rowsort
SELECT col1 + col2 * ( - 35 * col0 ) AS col0 FROM tab1 cor0
----
-127670
-268787
-5644

query I rowsort
SELECT + col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + col0 * 5 AS col1 FROM tab0 AS cor0
----
120
175
445

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1360
SELECT - + col1 + CAST( col2 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

skipif mysql # not compatible
query I rowsort label-1360
SELECT - + col1 + CAST ( col2 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT - + col2 * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1362
SELECT DISTINCT - - cor0.col2 + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT - - cor0.col2 + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT cor0.col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1363
SELECT cor0.col2 / + col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + ( + col2 ) + + col2 * + 16 AS col1 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) + 65 AS col1 FROM tab2 AS cor0
----
34
48
6

query I rowsort
SELECT - + col2 + col0 * col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - 75 * 40 AS col2 FROM tab2 AS cor0
----
-3000

onlyif mysql # use DIV operator for integer division
query I rowsort label-1368
SELECT 99 * col1 DIV col1 + + col2 * col2 - + col2 FROM tab0 AS cor0
----
1155
6741
99

skipif mysql # not compatible
query I rowsort label-1368
SELECT 99 * col1 / col1 + + col2 * col2 - + col2 FROM tab0 AS cor0
----
1155
6741
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1369
SELECT - - CAST( col1 AS SIGNED ) DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1369
SELECT - - CAST ( col1 AS INTEGER ) / cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1370
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 * 79 + col2 AS col2 FROM tab2 cor0
----
2080
2160
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1372
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col1 ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1374
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + + col2 * - ( - col0 * - col2 ) + + cor0.col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + + col2 * - ( - col0 * - col2 ) + + cor0.col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - ( col2 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * + ( - col0 ) FROM tab1
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT DISTINCT + col1 * + col1 DIV - col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + col1 * + col1 / - col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL + tab2.col1 * + col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT 81 FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 - col0 * cor0.col2 col1 FROM tab2 cor0
----
-139
-1978
-2952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 - - ( cor0.col0 + - col0 ) * - col2 col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - 72 * col1 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT + - 45 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - 53 AS col1 FROM tab2 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col0 - 9 col1 FROM tab1 AS cor0
----
-1049
-649
-87

query I rowsort
SELECT + 99 FROM tab0 cor0
----
99
99
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1387
SELECT DISTINCT CAST( col0 + col1 AS SIGNED ) AS col0 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT CAST ( col0 + col1 AS INTEGER ) AS col0 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356

query I rowsort
SELECT ALL - ( tab0.col0 * col1 ) FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1390
SELECT col1 * + col2 DIV - col2 + - 64 * col0 FROM tab0
----
-1622
-2337
-5787

skipif mysql # not compatible
query I rowsort label-1390
SELECT col1 * + col2 / - col2 + - 64 * col0 FROM tab0
----
-1622
-2337
-5787

query I rowsort
SELECT - ( tab0.col2 + + col2 ) FROM tab0
----
-164
-2
-66

query I rowsort
SELECT + col1 * - col0 + - col2 + + col0 * + 74 AS col0 FROM tab2 AS cor0
----
1144
274
4465

query I rowsort
SELECT + 21 + tab2.col2 FROM tab2
----
47
48
59

query I rowsort
SELECT - col1 * + 33 AS col1 FROM tab1 AS cor0
----
-330
-429
-858

query I rowsort
SELECT + col0 * cor0.col2 + col0 * + col2 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT ALL col2 + tab1.col2 * + col2 AS col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT 23 * + col2 * col1 + + col1 FROM tab1
----
13120
28717
32318

query I rowsort
SELECT ALL 21 FROM tab0, tab0 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL + - col1 + - ( cor0.col1 ) FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + col1 * col2 + cor0.col2 - col1 FROM tab2 cor0
----
1501
667
833

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1401
SELECT ALL - - col0 + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL - - col0 + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 81 ) AS col1 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
-81

query I rowsort
SELECT - col0 * - tab2.col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col1 + 45 AS col0 FROM tab2 AS cor0
----
-14
14
28

query I rowsort
SELECT + col2 * 54 AS col2 FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT DISTINCT + - tab1.col1 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - col1 * col1 * 81 FROM tab1
----
-13689
-54756
-8100

query I rowsort
SELECT ALL - cor0.col2 * 37 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 153296776b9a13a14ef4d39f62fe3abe

query I rowsort
SELECT ALL - col1 * - col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + col0 * cor0.col2 * 66 AS col2 FROM tab0 AS cor0
----
2310
481668
52272

query I rowsort
SELECT + - col2 + 77 * - col1 AS col0 FROM tab1 AS cor0
----
-1097
-2056
-827

query I rowsort
SELECT ALL + + cor0.col0 * 99 FROM tab1 AS cor0
----
297
6336
7920

query I rowsort
SELECT ALL + cor0.col0 + col0 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + cor0.col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 46 AS col1 FROM tab2 cor0
----
46
46
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1416
SELECT + CAST( NULL AS SIGNED ) * + col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT + CAST ( NULL AS INTEGER ) * + col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 85ee76cb25486c31b8f0abeb3f8683dc

query I rowsort
SELECT + col0 * 97 + col0 AS col2 FROM tab0 AS cor0
----
2352
3430
8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT - 73 DIV col0 AS col2 FROM tab2 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT - 73 / col0 AS col2 FROM tab2 AS cor0
----
-10
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT + col0 DIV col1 + col2 * 48 AS col2 FROM tab0 AS cor0
----
1584
3936
48

skipif mysql # not compatible
query I rowsort label-1420
SELECT + col0 / col1 + col2 * 48 AS col2 FROM tab0 AS cor0
----
1584
3936
48

query I rowsort
SELECT + 79 FROM tab2, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + 50 AS col0 FROM tab0 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) + col0 * 22 col2 FROM tab1 cor0
----
1344
1680
63

query I rowsort
SELECT ALL + + 34 * + col2 AS col1 FROM tab1 AS cor0
----
1836
1938
3264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1425
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1425
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT DISTINCT 98 DIV + cor0.col0 col0 FROM tab1 AS cor0
----
1
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT 98 / + cor0.col0 col0 FROM tab1 AS cor0
----
1
32

query I rowsort
SELECT 43 + + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2021
-3352
-8056

query I rowsort
SELECT ALL - col0 * col0 - - ( ( + col2 ) ) AS col0 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL - - cor0.col2 + + col1 * cor0.col1 * col1 FROM tab2 AS cor0
----
205405
29818
4951

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col2 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1432
SELECT + - col1 * - cor0.col1 + CAST( + col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1798
5015
935

skipif mysql # not compatible
query I rowsort label-1432
SELECT + - col1 * - cor0.col1 + CAST ( + col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1798
5015
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT ALL - + col0 * col0 + 84 DIV col2 AS col2 FROM tab0 AS cor0
----
-1141
-574
-7920

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - + col0 * col0 + 84 / col2 AS col2 FROM tab0 AS cor0
----
-1141
-574
-7920

query I rowsort
SELECT + 84 * col2 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT - col2 - + tab2.col0 * + col2 * + col0 FROM tab2
----
-1350
-158210
-237196

query I rowsort
SELECT - 90 * - cor0.col1 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT DISTINCT - - col0 + - col1 * - 76 AS col0 FROM tab0 cor0
----
6560
7005
7407

query I rowsort
SELECT ALL - - col1 + - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 * - 24 col0 FROM tab1 AS cor0
----
13680
29952
33696

query I rowsort
SELECT ALL - cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + col2 + - col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72

query I rowsort
SELECT ALL 70 AS col1 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT + col0 * ( col1 ) * col2 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - - 77 * + col2 * col0 FROM tab2 AS cor0
----
14553
156156
231154

query I rowsort
SELECT ( 40 ) - cor0.col2 * cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3998d7ea03ddcc5d934f9607bcf8f93d

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) FROM tab2, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT col1 + tab1.col1 + col1 FROM tab1
----
30
39
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1451
SELECT ALL + CAST( NULL AS SIGNED ) + - tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + CAST ( NULL AS INTEGER ) + - tab2.col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT 11 - - col0 DIV col1 FROM tab2
----
11
12
15

skipif mysql # not compatible
query I rowsort label-1452
SELECT 11 - - col0 / col1 FROM tab2
----
11
12
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 52 col0 FROM tab2
----
-45
26
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1454
SELECT + CAST( NULL AS SIGNED ) + col2 * + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT + CAST ( NULL AS INTEGER ) + col2 * + tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 87 - + col1 * - col2 * + 70 AS col2 FROM tab0
----
198573
522253
6703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 8 ) * col1 col1 FROM tab0
----
-688
-728
-776

onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT ALL + 33 + - 61 DIV - cor0.col1 col0 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL + 33 + - 61 / - cor0.col1 col0 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 56 + + col0 - col0 * cor0.col2 col0 FROM tab1 AS cor0
----
-12976
-3183
-6776

query I rowsort
SELECT - col0 - + col0 * cor0.col2 AS col1 FROM tab0 cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( cor0.col2 ) + - 48 * - cor0.col0 * - cor0.col1 col2 FROM tab1 cor0
----
-2340
-30150
-48672

onlyif mysql # use DIV operator for integer division
query I rowsort label-1461
SELECT 16 + col2 DIV + col0 FROM tab1
----
16
17
34

skipif mysql # not compatible
query I rowsort label-1461
SELECT 16 + col2 / + col0 FROM tab1
----
16
17
34

query I rowsort
SELECT - col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col1 + col1 * + col2 AS col2 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - col0 + + col0 * col0 AS col1 FROM tab1
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - tab1.col0 * - col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + tab0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1470
SELECT col0 * col2 + + col1 DIV col1 + - tab0.col2 FROM tab0
----
35
7217
760

skipif mysql # not compatible
query I rowsort label-1470
SELECT col0 * col2 + + col1 / col1 + - tab0.col2 FROM tab0
----
35
7217
760

query I rowsort
SELECT - col1 * + col2 + cor0.col1 * + cor0.col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + tab1.col0 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - 61 * col0 + col1 AS col2 FROM tab0
----
-1378
-2038
-5338

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1474
SELECT DISTINCT CAST( ( col1 ) AS SIGNED ) * col0 + col2 + + col0 FROM tab2
----
1460
251
4706

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) * col0 + col2 + + col0 FROM tab2
----
1460
251
4706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 31 + - col2 col1 FROM tab0
----
127
40
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * 58 + col1 * col2 col0 FROM tab0
----
11870
4505
7246

query I rowsort
SELECT ALL - col0 + - 18 + col1 FROM tab1
----
-72
-85
5

query I rowsort
SELECT + col2 + + col1 * col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT ALL - 1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - 1 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1342
216
4601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 * col2 col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT tab0.col2 * - col0 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - 41 + - tab0.col2 FROM tab0
----
-123
-42
-74

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT 42 + col1 FROM tab0
----
128
133
139

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-1488
SELECT - col1 * col2 DIV - col0 FROM tab2 AS cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-1488
SELECT - col1 * col2 / - col0 FROM tab2 AS cor0
----
119
19
8

query I rowsort
SELECT ALL - col0 * col2 - + col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab0 AS cor0
----
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT + 18 + cor0.col1 DIV col2 AS col2 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-1493
SELECT + 18 + cor0.col1 / col2 AS col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + - col2 + - col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col0 + col0 * col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col2 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 * col0 col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab1 AS cor0
----
84

query I rowsort
SELECT - 35 + - cor0.col1 * col0 FROM tab1 cor0
----
-1075
-113
-675

query I rowsort
SELECT ALL - col0 + - cor0.col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - - col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 * col1 + - col1 * - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + col0 * + col1
----

query I rowsort
SELECT col1 * + col2 + + col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL - col1 * col2 - tab1.col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT ALL col2 / + col0 FROM tab1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 + + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + col1 * + col2 + + col1 FROM tab1
----
1261
1430
580

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( - col0 + + col0 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND col0
----

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL col1 * - col2 * col1 FROM tab0 WHERE NOT col2 NOT IN ( + col1 + + tab0.col2 )
----

query I rowsort
SELECT ALL col0 + + tab0.col0 + col2 AS col1 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + col0 * + col1 + tab1.col2 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT col0 * col2 + col1 * + col2 + col1 * col2 AS col0 FROM tab1
----
10176
2970
4788

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col2 AS col1 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT + tab2.col2 * tab2.col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 * col2 - - col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL col2 * + col1 + - col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT tab1.col1 * - col1 AS col2 FROM tab1
----
-100
-169
-676

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + col1 <= col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT + col2 DIV col0 + + col2 AS col2 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-1524
SELECT + col2 / col0 + + col2 AS col2 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT - - col1 * + col0 - cor0.col1 AS col0 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT DISTINCT + - col0 + col1 + col0 FROM tab2 AS cor0
----
17
31
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col2 / - col1 NOT BETWEEN NULL AND NULL OR NULL IN ( col0 + + cor0.col0 + col0 * col2 )
----

query I rowsort
SELECT + col2 + + col1 * - col0 * col2 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - col2 + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1533
SELECT DISTINCT - + cor0.col0 DIV + col1 - col0 * col1 col1 FROM tab2 AS cor0
----
-1347
-217
-4603

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT - + cor0.col0 / + col1 - col0 * col1 col1 FROM tab2 AS cor0
----
-1347
-217
-4603

query I rowsort
SELECT col2 * + col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT - col1 * + col0 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0, tab2, tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1537
SELECT - tab2.col1 DIV col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1537
SELECT - tab2.col1 / col1 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1538
SELECT + col1 + + col0 + col0 DIV col2 AS col2 FROM tab0
----
110
167
181

skipif mysql # not compatible
query I rowsort label-1538
SELECT + col1 + + col0 + col0 / col2 AS col2 FROM tab0
----
110
167
181

query I rowsort
SELECT col2 * - col0 + col0 * col0 + col1 * col2 AS col0 FROM tab2
----
3885
5590
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-1540
SELECT tab1.col0 + col2 DIV col0 AS col2 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-1540
SELECT tab1.col0 + col2 / col0 AS col2 FROM tab1
----
21
64
81

query I rowsort
SELECT DISTINCT tab0.col0 + + col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT col0 + col2 * col0 * + col0 FROM tab1
----
233536
489
614480

onlyif mysql # use DIV operator for integer division
query I rowsort label-1543
SELECT - col2 * cor0.col1 + col0 * - col0 DIV + col0 FROM tab0 AS cor0
----
-132
-2862
-7551

skipif mysql # not compatible
query I rowsort label-1543
SELECT - col2 * cor0.col1 + col0 * - col0 / + col0 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT + col0 DIV col1 - - col0 * col2 FROM tab1
----
162
3654
7686

skipif mysql # not compatible
query I rowsort label-1544
SELECT + col0 / col1 - - col0 * col2 FROM tab1
----
162
3654
7686

onlyif mysql # use DIV operator for integer division
query I rowsort label-1545
SELECT DISTINCT tab1.col2 DIV + col1 + - col0 AS col2 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT tab1.col2 / + col1 + - col0 AS col2 FROM tab1
----
-1
-59
-73

query I rowsort
SELECT DISTINCT col0 + - col2 * - col1 AS col2 FROM tab0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE - col1 NOT BETWEEN col2 * + col2 AND col1
----
24
35
89

query I rowsort
SELECT - col0 * col0 + col1 AS col2 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT col0 * + ( col0 ) * + col0 FROM tab0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 87 col1 FROM tab2
----
2262
2349
3306

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + - col2 + 19 FROM tab0 AS cor0
----
-14
-63
18

query I rowsort
SELECT - 10 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
100
130
260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL - col0 * - 5 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT ALL + 30 + col2 * + col1 AS col0 FROM tab2 cor0
----
1564
676
867

query I rowsort
SELECT + col2 * + ( tab2.col1 ) + + col0 * ( - 82 ) * col1 AS col0 FROM tab2
----
-109480
-16957
-375830

query I rowsort
SELECT ( + cor0.col0 ) + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1561
SELECT - CAST( NULL AS SIGNED ) * + 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT - CAST ( NULL AS INTEGER ) * + 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + ( col2 ) ) col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - - cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col0 FROM tab1
----
55
55
55

query I rowsort
SELECT - ( col0 ) + + col1 * 49 AS col2 FROM tab2 cor0
----
1512
2813
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1566
SELECT col2 + - cor0.col1 DIV col1 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1566
SELECT col2 + - cor0.col1 / col1 AS col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - col2 * + col2 + - cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT DISTINCT + - 22 * col1 AS col1 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT - + col1 - + col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - col0 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1571
SELECT - col0 * + col1 + cor0.col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-1571
SELECT - col0 * + col1 + cor0.col0 / col0 AS col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + cor0.col2 * + 7 FROM tab2 AS cor0
----
182
189
266

onlyif mysql # use DIV operator for integer division
query I rowsort label-1574
SELECT ( tab2.col0 + + col0 ) DIV 45 AS col1 FROM tab2
----
0
3
3

skipif mysql # not compatible
query I rowsort label-1574
SELECT ( tab2.col0 + + col0 ) / 45 AS col1 FROM tab2
----
0
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col0 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT - cor0.col1 * - 31 + col1 + - cor0.col1 * + ( cor0.col0 * col2 ) AS col0 FROM tab2 AS cor0
----
-117764
-4867
-50490

query I rowsort
SELECT - col2 * - ( 70 ) + + col1 + col2 * + col0 * col2 AS col1 FROM tab2 cor0
----
116753
54607
7024

query I rowsort
SELECT + col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col2 + col2 + 77 * + col0 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT DISTINCT + cor0.col1 * 51 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT DISTINCT - col1 * 8 + - 33 FROM tab0 cor0
----
-721
-761
-809

query I rowsort
SELECT - + col0 - + 97 AS col1 FROM tab2 AS cor0
----
-104
-175
-176

onlyif mysql # use DIV operator for integer division
query I rowsort label-1583
SELECT + col2 * ( - col2 ) + col1 DIV col0 AS col2 FROM tab1 cor0
----
-2908
-3249
-9216

skipif mysql # not compatible
query I rowsort label-1583
SELECT + col2 * ( - col2 ) + col1 / col0 AS col2 FROM tab1 cor0
----
-2908
-3249
-9216

query I rowsort
SELECT ALL + + col2 - - 37 FROM tab2 cor0
----
63
64
75

query I rowsort
SELECT ALL - + col2 * - ( - col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col0 * + cor0.col0 * col2 + col1 + - col2 * + col1 FROM tab2 cor0
----
-159659
-2129
-237787

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1587
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) * 66 * col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) * 66 * col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 * col1 * col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL - col1 * - col0 * col1 + + col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT + col2 * - col1 - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - - col2 + - col1 * 83 AS col2 FROM tab0 cor0
----
-7105
-7471
-8050

query I rowsort
SELECT ALL + col2 + + cor0.col1 * 86 AS col0 FROM tab1 AS cor0
----
1214
2290
917

query I rowsort
SELECT ALL - col1 * col2 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL + + col0 * - 61 * + col1 AS col2 FROM tab0 cor0
----
-125904
-207095
-494039

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + ( + cor0.col1 ) + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + - col2 * cor0.col0 + col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + col0 + + 16 + col2 FROM tab2 cor0
----
120
133
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT + col2 * - col0 * tab1.col1 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - tab1.col2 - col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - 74 * + col1 AS col2 FROM tab2 cor0
----
-1258
-2294
-4366

query I rowsort
SELECT + cor0.col1 + + col0 * - ( 18 ) AS col0 FROM tab0 cor0
----
-1511
-346
-533

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262

query I rowsort
SELECT + cor0.col2 + + 3 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 159d9e143e2429ddc26a2ea91fcb2a1d

query I rowsort
SELECT + + col0 * col2 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + cor0.col0 * - col2 * - cor0.col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + 29 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2093
3424
8128

query I rowsort
SELECT - 43 + - tab1.col2 FROM tab1
----
-100
-139
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - 73 - + 12 col2 FROM tab0
----
-539920
-604525
-686869

query I rowsort
SELECT ALL col2 + col2 * col2 + col2 AS col1 FROM tab0 AS cor0
----
1155
3
6888

query I rowsort
SELECT + 92 * - col1 FROM tab2
----
-1564
-2852
-5428

query I rowsort
SELECT - col0 - col1 AS col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT + 40 + col0 AS col1 FROM tab2
----
118
119
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT col1 + + tab0.col2 DIV col0 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-1615
SELECT col1 + + tab0.col2 / col0 FROM tab0
----
87
91
97

query I rowsort
SELECT DISTINCT - col1 * col2 + - 16 * + 69 FROM tab1 cor0
----
-1674
-2352
-2508

query I rowsort
SELECT ALL - 93 * col1 + + 83 FROM tab2 AS cor0
----
-1498
-2800
-5404

skipif mysql # not compatible
query I rowsort
SELECT ALL - ( col2 ) + - CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col0 col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + - col0 - col2 * col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT + 37 + col0 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
104
14
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 37 + col1 col1 FROM tab2 AS cor0
----
54
68
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1623
SELECT DISTINCT 0 DIV col2 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT 0 / col2 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - 54 + - col1 AS col2 FROM tab0 AS cor0
----
-140
-145
-151

query I rowsort
SELECT DISTINCT tab2.col0 + + tab2.col0 FROM tab2
----
14
156
158

query I rowsort
SELECT + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 88 * col2 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT ALL + col1 * cor0.col2 + + 39 FROM tab0 cor0
----
136
2877
7501

query I rowsort
SELECT 32 * col0 AS col2 FROM tab1 AS cor0
----
2048
2560
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT DISTINCT + col0 + col2 DIV - ( + col1 ) AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT + col0 + col2 / - ( + col1 ) AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT - - cor0.col1 + col2 * - col1 DIV cor0.col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-1631
SELECT - - cor0.col1 + col2 * - col1 / cor0.col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL cor0.col0 * 90 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8624d337b50d843925771a840f6703e1

query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 * 65 FROM tab0 AS cor0
----
134193
220676
526517

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1634
SELECT ALL + CAST( NULL AS SIGNED ) - - col1 / - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL + CAST ( NULL AS INTEGER ) - - col1 / - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT ALL + 65 + + col0 DIV col0 FROM tab2 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + 65 + + col0 / col0 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT + - 12 * - ( col0 ) + col2 FROM tab2 AS cor0
----
111
962
986

query I rowsort
SELECT DISTINCT - 42 + + 81 FROM tab0 AS cor0
----
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT DISTINCT - 96 * - col1 * col0 + + col0 DIV - col1 FROM tab1 AS cor0
----
61434
7488
99834

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT - 96 * - col1 * col0 + + col0 / - col1 FROM tab1 AS cor0
----
61434
7488
99834

query I rowsort
SELECT DISTINCT - + col2 - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL + 92 + col1 * - col2 AS col1 FROM tab1
----
-1156
-1312
-478

query I rowsort
SELECT 16 FROM tab1, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT ALL col1 * 11 + - tab0.col0 DIV - col0 FROM tab0
----
1002
1068
947

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL col1 * 11 + - tab0.col0 / - col0 FROM tab0
----
1002
1068
947

query I rowsort
SELECT DISTINCT + + 60 * 72 AS col0 FROM tab0 AS cor0
----
4320

query I rowsort
SELECT ALL col1 * - 56 + col1 AS col2 FROM tab1 cor0
----
-1430
-550
-715

query I rowsort
SELECT DISTINCT col2 + col0 * cor0.col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL col1 * + col2 * + col2 + - col2 FROM tab0 AS cor0
----
611802
93621
96

query I rowsort
SELECT ALL - + cor0.col2 + col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL - 58 AS col1 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT - 16 * col2 AS col2 FROM tab0
----
-1312
-16
-528

query I rowsort
SELECT DISTINCT + 78 * col1 + + col0 AS col0 FROM tab0
----
6732
7187
7601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT + ( col1 ) * ( col1 ) + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + tab0.col2 AS col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT ALL col2 * col0 * + ( - 39 + + col1 ) AS col0 FROM tab0
----
2030
37224
379496

query I rowsort
SELECT + + 74 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT 99 + + col0 AS col1 FROM tab0 AS cor0
----
123
134
188

query I rowsort
SELECT + - col1 * - col2 * - ( - 70 ) + col2 AS col1 FROM tab2 AS cor0
----
107406
45258
58617

query I rowsort
SELECT DISTINCT - 55 FROM tab0, tab0 cor0
----
-55

query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab0, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab2, tab0 AS cor0
----
74

query I rowsort
SELECT - 35 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT col0 * - 79 AS col0 FROM tab0
----
-1896
-2765
-7031

query I rowsort
SELECT - + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + cor0.col2 * - 96 AS col0 FROM tab2 cor0
----
-2496
-2592
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col0 AS REAL ) + - col0 * + col2 col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL ( 40 ) AS col2 FROM tab2
----
40
40
40

query I rowsort
SELECT + + col1 - cor0.col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col0 + col1 * col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT 50 + + col0 FROM tab2 AS cor0
----
128
129
57

query I rowsort
SELECT ALL + + col1 * col1 AS col2 FROM tab1 cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 87 col2 FROM tab1
----
151
167
90

query I rowsort
SELECT col2 * + tab2.col2 AS col2 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT col1 + + 79 + 8 * col2 AS col2 FROM tab0
----
184
429
826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + 52 * + 50 + col1 col0 FROM tab2
----
2634
2662
2718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 * + col2 col1 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT + - 35 + col2 AS col2 FROM tab0 cor0
----
-2
-34
47

query I rowsort
SELECT 48 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - + 39 FROM tab1, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT ALL + 39 * cor0.col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to efc2217b283224f46639c457ec6d1cec

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1683
SELECT + col0 * - CAST( NULL AS SIGNED ) + - ( + col1 ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT + col0 * - CAST ( NULL AS INTEGER ) + - ( + col1 ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + 20 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT + - col1 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT ALL - col2 + - ( - col1 ) + col0 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT + col1 - + ( col1 * + cor0.col0 ) FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL col1 * - col2 * + col0 + col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT DISTINCT + - cor0.col0 * 67 + 31 AS col1 FROM tab0 AS cor0
----
-1577
-2314
-5932

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1691
SELECT DISTINCT + col2 * - CAST( + col2 AS SIGNED ) FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT + col2 * - CAST ( + col2 AS INTEGER ) FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - 87 + + ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-8
-80
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1693
SELECT ALL - 70 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL - 70 / + col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT col2 + - 28 FROM tab1 AS cor0
----
26
29
68

query I rowsort
SELECT - + 25 + col2 AS col0 FROM tab1 AS cor0
----
29
32
71

query I rowsort
SELECT ALL - + ( 97 ) AS col2 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT + col1 + col1 + 7 AS col2 FROM tab1
----
27
33
59

query I rowsort
SELECT ALL + col2 + - 23 AS col0 FROM tab0
----
-22
10
59

query I rowsort
SELECT ALL - 45 FROM tab0, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT 88 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT - 98 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT - tab1.col1 + 76 AS col2 FROM tab1
----
50
63
66

query I rowsort
SELECT 37 AS col2 FROM tab0 cor0
----
37
37
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1704
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( col0 + + col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( col0 + + col2 ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * + cor0.col2 col0 FROM tab0 cor0
----
2409
5986
73

query I rowsort
SELECT DISTINCT + + 58 FROM tab0 AS cor0
----
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1708
SELECT + - CAST( NULL AS DECIMAL ) col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1708
SELECT + - CAST ( NULL AS REAL ) col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 26 AS col1 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT ALL - 45 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1711
SELECT ALL CAST( col2 AS SIGNED ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab2
----
26
27
38

query I rowsort
SELECT - col0 + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT col2 - col1 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab2, tab1 cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL - - cor0.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ( col1 ) * - 45 + tab2.col1 AS col0 FROM tab2
----
-1364
-2596
-748

onlyif mysql # use DIV operator for integer division
query I rowsort label-1718
SELECT col0 + - col2 DIV col1 AS col1 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-1718
SELECT col0 + - col2 / col1 AS col1 FROM tab2
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 82 col0 FROM tab2 cor0
----
-2132
-2214
-3116

query I rowsort
SELECT - col0 * ( - 31 ) + cor0.col0 FROM tab0 AS cor0
----
1120
2848
768

query I rowsort
SELECT ALL col2 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1722
SELECT col1 * CAST( NULL AS DECIMAL ) + 66 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT col1 * CAST ( NULL AS REAL ) + 66 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - col1 * + 75 FROM tab1
----
-1924
-740
-962

query I rowsort
SELECT + col2 - 14 AS col0 FROM tab1 AS cor0
----
40
43
82

query I rowsort
SELECT ALL col0 + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col2 + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + + 76 FROM tab0 AS cor0
----
-10
-15
-21

query I rowsort
SELECT DISTINCT + col1 * col0 * + col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 * col1 FROM tab1 AS cor0
----
1417
2080
670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1730
SELECT DISTINCT - + col0 * - CAST( + col1 AS SIGNED ) + col2 * ( col1 + col0 ) AS col1 FROM tab1 AS cor0
----
1644
4858
9968

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - + col0 * - CAST ( + col1 AS INTEGER ) + col2 * ( col1 + col0 ) AS col1 FROM tab1 AS cor0
----
1644
4858
9968

query I rowsort
SELECT ALL col0 + - col1 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
-29
-61
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1732
SELECT ALL col0 * CAST( + col0 * col0 AS SIGNED ) - col0 * 83 AS col2 FROM tab2 AS cor0
----
-238
468078
486482

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL col0 * CAST ( + col0 * col0 AS INTEGER ) - col0 * 83 AS col2 FROM tab2 AS cor0
----
-238
468078
486482

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT - tab1.col2 + - 51 FROM tab1
----
-105
-108
-147

onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT DISTINCT col0 DIV 93 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT col0 / 93 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 * col2 + + col1 * ( + col1 ) * col1 AS col1 FROM tab1 AS cor0
----
17738
4648
9877

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1737
SELECT DISTINCT - CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT - CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - + col2 * col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL col0 + - col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + col2 * col1 + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + + col1 * cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL 20 * + col1 AS col2 FROM tab1 AS cor0
----
200
260
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab1 AS cor0
----
25

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * - col2 AS col2 FROM tab1 cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * cor0.col2 col2 FROM tab2 AS cor0
----
2496
2592
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee

query I rowsort
SELECT ALL + + 37 * cor0.col1 FROM tab2 cor0
----
1147
2183
629

query I rowsort
SELECT ALL - 72 AS col1 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT - col0 * col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL ( cor0.col2 ) + - 14 AS col2 FROM tab2 AS cor0
----
12
13
24

query I rowsort
SELECT + - 18 * + col2 AS col0 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT - col1 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL ( col0 ) * - col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ( 8 ) FROM tab0, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548

query I rowsort
SELECT 67 * tab1.col2 + tab1.col1 * 83 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 2326ee99db226f48ce523b45137039c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1759
SELECT ALL + cor0.col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL + cor0.col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( tab0.col0 ) col0 FROM tab0
----
178
48
70

query I rowsort
SELECT + - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT DISTINCT + col1 * cor0.col1 DIV - col2 col0 FROM tab1 AS cor0
----
-1
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + col1 * cor0.col1 / - col2 col0 FROM tab1 AS cor0
----
-1
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-1763
SELECT col0 + col0 DIV - col0 + + col2 * + ( + cor0.col0 ) col1 FROM tab1 AS cor0
----
164
3711
7759

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1763
SELECT col0 + col0 / - col0 + + col2 * + ( + cor0.col0 ) col1 FROM tab1 AS cor0
----
164
3711
7759

query I rowsort
SELECT DISTINCT + + col1 * - col2 * + col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 81 col0 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT - cor0.col0 * + cor0.col1 + + col2 + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + - col2 * 1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col1 + ( - 91 * cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-2270
-3282
-8190

query I rowsort
SELECT DISTINCT + - col2 + + cor0.col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT - col1 * col1 * - col0 + col2 DIV - cor0.col1 + + 31 AS col1 FROM tab1 AS cor0
----
13544
2057
6426

skipif mysql # not compatible
query I rowsort label-1771
SELECT - col1 * col1 * - col0 + col2 / - cor0.col1 + + 31 AS col1 FROM tab1 AS cor0
----
13544
2057
6426

query I rowsort
SELECT ALL - - col1 + + 40 FROM tab0 AS cor0
----
126
131
137

query I rowsort
SELECT ( col1 ) * - col2 + + 16 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1059
-21
-374

query I rowsort
SELECT ALL 35 FROM tab1, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9

query I rowsort
SELECT + 57 FROM tab0, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT 83 FROM tab2 cor0
----
83

query I rowsort
SELECT ALL - + col1 * 61 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT - ( + 92 ) * col2 FROM tab2 AS cor0
----
-2392
-2484
-3496

query I rowsort
SELECT cor1.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT + + 28 * col1 AS col2 FROM tab1 cor0
----
280
364
728

query I rowsort
SELECT col2 * + col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT ALL 40 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT DISTINCT 76 * col0 FROM tab0 cor0
----
1824
2660
6764

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1785
SELECT ALL + + 99 + + cor0.col1 + - CAST( 90 AS SIGNED ) FROM tab1 AS cor0
----
19
22
35

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + + 99 + + cor0.col1 + - CAST ( 90 AS INTEGER ) FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT ALL - 50 * - col2 + 66 + col2 AS col1 FROM tab0 AS cor0
----
117
1749
4248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 49 * col0 * 61 col2 FROM tab0 AS cor0
----
104615
266021
71736

query I rowsort
SELECT col0 * col1 * + col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL - - col0 * + col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col0 + col0 * 57 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT ALL - 25 AS col1 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + col2 - col1 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - col2 + col2 * col2 AS col1 FROM tab2
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-1795
SELECT - col2 DIV - col2 - + col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-1795
SELECT - col2 / - col2 - + col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT - - cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL 41 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT 49 + col2 FROM tab2
----
75
76
87

query I rowsort
SELECT DISTINCT col0 * - col1 + + 15 FROM tab0
----
-2049
-3380
-8084

onlyif mysql # use DIV operator for integer division
query I rowsort label-1800
SELECT col1 * col1 + 40 DIV - col1 AS col2 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-1800
SELECT col1 * col1 + 40 / - col1 AS col2 FROM tab0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1801
SELECT + - col0 + + CAST( 29 * - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1789
-572
-906

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1801
SELECT + - col0 + + CAST ( 29 * - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1789
-572
-906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 28 col2 FROM tab0 cor0
----
-61
-7
4

query I rowsort
SELECT - col0 * cor0.col2 + 54 AS col0 FROM tab2 AS cor0
----
-135
-1974
-2948

query I rowsort
SELECT - - col2 * 82 + 92 AS col1 FROM tab1 AS cor0
----
4520
4766
7964

query I rowsort
SELECT + 17 * 2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # use DIV operator for integer division
query I rowsort label-1806
SELECT ALL 59 DIV + tab0.col0 + + tab0.col1 AS col2 FROM tab0
----
88
91
98

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL 59 / + tab0.col0 + + tab0.col1 AS col2 FROM tab0
----
88
91
98

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT + col0 DIV col1 + + col2 AS col1 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-1808
SELECT + col0 / col1 + + col2 AS col1 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT - col2 * + 87 FROM tab2
----
-2262
-2349
-3306

query I rowsort
SELECT 39 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

onlyif mysql # use DIV operator for integer division
query I rowsort label-1811
SELECT col1 DIV col2 + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1811
SELECT col1 / col2 + col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * col2 col2 FROM tab2
----
2314
2403
3382

query I rowsort
SELECT - 96 * col0 AS col0 FROM tab1
----
-288
-6144
-7680

query I rowsort
SELECT ( + 70 ) AS col1 FROM tab0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col2 FROM tab1
----
62
62
62

query I rowsort
SELECT + ( 77 ) AS col2 FROM tab2
----
77
77
77

query I rowsort
SELECT DISTINCT - tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col1 col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + + col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - ( col2 + - col1 ) FROM tab2
----
-21
33
4

query I rowsort
SELECT + cor0.col1 + 64 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to bfb30617e19fcad46b160c3739ca5da3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1824
SELECT DISTINCT - 6 + + col2 * ( col2 ) DIV col2 AS col2 FROM tab0 cor0
----
-5
27
76

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - 6 + + col2 * ( col2 ) / col2 AS col2 FROM tab0 cor0
----
-5
27
76

query I rowsort
SELECT col1 + col0 * 81 FROM tab1 AS cor0
----
269
5194
6493

query I rowsort
SELECT + 64 + + col0 * + col0 FROM tab0
----
1289
640
7985

query I rowsort
SELECT ( ( + col0 ) ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ( col0 ) * col0 - - ( col0 ) * col2 FROM tab0
----
1260
1368
15219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 - + 83 col0 FROM tab2
----
-4
-5
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1830
SELECT DISTINCT - ( col1 ) - - col1 * + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - ( col1 ) - - col1 * + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1831
SELECT DISTINCT 31 * - col1 * - col2 - - tab0.col0 DIV tab0.col1 AS col0 FROM tab0
----
231322
3007
87978

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT 31 * - col1 * - col2 - - tab0.col0 / tab0.col1 AS col0 FROM tab0
----
231322
3007
87978

query I rowsort
SELECT ALL ( col0 * - col0 ) - col2 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT + 55 + - 57 AS col1 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT 35 * - col0 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT DISTINCT + - col2 * - col2 + - ( - col2 ) FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT col0 * + col1 + + cor0.col2 AS col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col2 + col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT col0 + - cor0.col0 * ( + 9 ) FROM tab1 cor0
----
-24
-512
-640

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col1 FROM tab1 cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * col2 col0 FROM tab1 AS cor0
----
2862
3021
5088

query I rowsort
SELECT + + col2 - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + ( - tab2.col1 ) * col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col1 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * 30 col2 FROM tab0 cor0
----
1050
218940
23760

query I rowsort
SELECT + col1 * + ( col0 * col1 ) FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT + col2 + + ( + col2 ) FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + ( tab2.col0 ) FROM tab2
----
7
78
79

query I rowsort
SELECT - + cor0.col2 + - col1 * col2 * - col0 AS col2 FROM tab0 AS cor0
----
3394
664036
68079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + - col0 + col1 col2 FROM tab1 AS cor0
----
-1315
-1381
-624

query I rowsort
SELECT - 10 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT + 69 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-11
5
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1853
SELECT ALL - + CAST( NULL AS SIGNED ) * + 13 + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 13 + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( + col0 + - col0 ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + cor0.col2 * - 60 AS col2 FROM tab2 AS cor0
----
-1560
-1620
-2280

query I rowsort
SELECT DISTINCT + 9 * cor0.col2 * col2 FROM tab2 AS cor0
----
12996
6084
6561

query I rowsort
SELECT DISTINCT + 23 * - col2 * cor0.col2 FROM tab2 AS cor0
----
-15548
-16767
-33212

query I rowsort
SELECT DISTINCT + 38 + - cor0.col0 AS col0 FROM tab2 cor0
----
-40
-41
31

query I rowsort
SELECT + + 89 * - col1 AS col2 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT DISTINCT + col2 * + 28 AS col0 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT + cor0.col0 * + 82 FROM tab2 AS cor0
----
574
6396
6478

onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT ALL col0 + col1 DIV - col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL col0 + col1 / - col0 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT ALL + 45 + col2 * cor0.col2 - - col1 AS col0 FROM tab0 AS cor0
----
1220
143
6860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) * col2 + cor0.col2 col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col2 * - tab1.col0 * col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL col0 * 46 FROM tab1
----
138
2944
3680

query I rowsort
SELECT ALL + col2 + - ( - col1 ) AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - col0 * - 7 FROM tab2
----
49
546
553

query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + ( + ( - col2 ) ) + ( col2 ) AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + col2 * col0 - col2 AS col1 FROM tab2 cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT ALL + cor0.col1 DIV + col1 - - col2 DIV ( - col2 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + cor0.col1 / + col1 - - col2 / ( - col2 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * 34 - col2 FROM tab1 AS cor0
----
-1890
-1995
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 * + col1 col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - ( ( - cor1.col0 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT col1 + - col1 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - 45 * col0 FROM tab0 AS cor0
----
-1080
-1575
-4005

query I rowsort
SELECT - col0 + col1 * - 44 + + col1 * col0 FROM tab1 AS cor0
----
-1069
136
388

query I rowsort
SELECT cor0.col0 + - col1 + col2 FROM tab2 cor0
----
100
3
45

query I rowsort
SELECT col1 + + col2 * 19 AS col2 FROM tab2 AS cor0
----
544
553
739

query I rowsort
SELECT ALL - - col1 * 93 + col2 + + col0 FROM tab1 AS cor0
----
1051
1385
2475

query I rowsort
SELECT 12 FROM tab0, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL - 1 FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab2 cor2
----
243 values hashing to 33664ae2be31d755433d256b064ac76b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1885
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) - - 50 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) - - 50 AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + col0 * - col2 col0 FROM tab2 cor0
----
-2713
1453
772

query I rowsort
SELECT DISTINCT - col0 * - col0 + col1 - col1 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col2 * col0 + col2 + cor0.col2 FROM tab0 AS cor0
----
37
7462
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT - col1 DIV col0 + - cor0.col1 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-1889
SELECT - col1 / col0 + - cor0.col1 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT - 52 * tab0.col0 FROM tab0
----
-1248
-1820
-4628

query I rowsort
SELECT DISTINCT col1 + + 35 FROM tab2
----
52
66
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT + 29 DIV - col2 AS col2 FROM tab0
----
-29
0
0

skipif mysql # not compatible
query I rowsort label-1892
SELECT + 29 / - col2 AS col2 FROM tab0
----
-29
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT + 72 DIV + col1 - + col1 FROM tab2 AS cor0
----
-13
-29
-58

skipif mysql # not compatible
query I rowsort label-1893
SELECT + 72 / + col1 - + col1 FROM tab2 AS cor0
----
-13
-29
-58

query I rowsort
SELECT + col2 + col2 * + col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL col1 + + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT + 34 * col1 FROM tab0
----
2924
3094
3298

onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT col0 DIV - ( col0 ) + col0 * col1 + col2 FROM tab2
----
1380
243
4627

skipif mysql # not compatible
query I rowsort label-1897
SELECT col0 / - ( col0 ) + col0 * col1 + col2 FROM tab2
----
1380
243
4627

query I rowsort
SELECT ( - col0 ) + col1 + col0 AS col1 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT DISTINCT 42 + col0 DIV - tab0.col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT 42 + col0 / - tab0.col0 FROM tab0
----
41

query I rowsort
SELECT ALL - 7 + - 90 * - tab0.col0 AS col2 FROM tab0
----
2153
3143
8003

query I rowsort
SELECT 10 * - tab1.col1 FROM tab1
----
-100
-130
-260

query I rowsort
SELECT ALL + + col0 + col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT DISTINCT - col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT - col2 / col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + ( + col1 ) + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL col1 * col2 * col1 + + col1 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT + col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT 96 + col0 FROM tab0 AS cor0
----
120
131
185

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + + ( cor0.col0 ) * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 * - ( col2 ) * col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL + - col0 * + ( + 1 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 24 * + col1 col1 FROM tab1 cor0
----
-250
-325
-650

query I rowsort
SELECT DISTINCT + + cor0.col2 + ( 50 ) * col1 FROM tab2 AS cor0
----
1577
2976
888

query I rowsort
SELECT ALL col0 * 6 FROM tab0
----
144
210
534

onlyif mysql # use DIV operator for integer division
query I rowsort label-1915
SELECT ALL - + col0 DIV + ( - col1 + - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - + col0 / + ( - col1 + - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + ( + 63 ) AS col1 FROM tab0 cor0
----
63

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab1, tab2 AS cor0
----
42

query I rowsort
SELECT ALL - + col1 * 52 AS col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab0, tab1 AS cor0
----
36

query I rowsort
SELECT - col1 * - tab1.col1 * + col0 + col0 FROM tab1
----
13600
2031
6464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + col0 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col0 * tab1.col2 * - col2 + - col0 * col2 - col2 AS col1 FROM tab1 WHERE NOT ( col2 * - col0 ) NOT BETWEEN NULL AND ( - col1 + + col2 * col0 )
----

query I rowsort
SELECT - - col2 + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + col1 + - col2 * col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col2 * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col2 * col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col1 * col2 FROM tab2 WHERE col2 * col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 * col1 col0 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT + col1 + col1 DIV cor0.col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1931
SELECT + col1 + col1 / cor0.col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT 3 * col2 + col0 AS col1 FROM tab1
----
165
235
368

query I rowsort
SELECT DISTINCT 68 + + col2 AS col0 FROM tab1
----
122
125
164

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * - col0 col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col1 * - col1 * + tab0.col2 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT ALL col0 DIV + col2 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL col0 / + col2 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col0 col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 * col2 * col2 AS col1 FROM tab2
----
17576
19683
54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-1942
SELECT DISTINCT - col0 + - 0 DIV + 92 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT - col0 + - 0 / + 92 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT col2 * tab1.col0 + + col1 DIV + col2 AS col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1943
SELECT col2 * tab1.col0 + + col1 / + col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + 34 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL - col2 * + tab2.col2 AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - col1 - + 32 AS col2 FROM tab0
----
-118
-123
-129

query I rowsort
SELECT + col1 * col0 - col2 AS col2 FROM tab1
----
24
583
944

query I rowsort
SELECT + col1 * - col1 + tab0.col0 * col0 AS col0 FROM tab0
----
-360
-6820
-8184

query I rowsort
SELECT ALL col2 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col1 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - - col1 * - 42 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT col1 + + 70 AS col1 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT 23 * + col0 - tab0.col2 FROM tab0
----
1965
519
804

query I rowsort
SELECT DISTINCT 61 + col1 FROM tab1
----
71
74
87

query I rowsort
SELECT - col0 + tab2.col1 FROM tab2
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1956
SELECT DISTINCT - CAST( col0 AS SIGNED ) + - col1 FROM tab2
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + - col1 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + col1 * + col0 * + col0 AS col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT ( col1 ) * - tab1.col1 * 6 FROM tab1
----
-1014
-4056
-600

query I rowsort
SELECT - col0 * col0 + col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL + 44 + col0 FROM tab2
----
122
123
51

query I rowsort
SELECT - col1 + - col1 + col2 FROM tab2 AS cor0
----
-35
-92
4

query I rowsort
SELECT - col0 * - cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT cor0.col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + cor0.col2 + - col0 * col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-233415
-432
-614304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1965
SELECT + col0 * col1 + + CAST( + col2 AS SIGNED ) * col1 + - col2 FROM tab2 cor0
----
1027
1951
6110

skipif mysql # not compatible
query I rowsort label-1965
SELECT + col0 * col1 + + CAST ( + col2 AS INTEGER ) * col1 + - col2 FROM tab2 cor0
----
1027
1951
6110

query I rowsort
SELECT + - col0 * - col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 85 * - col0 - - 57 FROM tab1 AS cor0
----
-198
-5383
-6743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 10 * col2 * + col0 FROM tab1
----
1620
36480
76800

query I rowsort
SELECT ALL col1 + + col1 * ( + 30 ) AS col0 FROM tab2 AS cor0
----
1829
527
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT ALL - col0 * - col1 + - ( + cor0.col1 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - col0 * - col1 + - ( + cor0.col1 ) / + col2 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT DISTINCT cor0.col2 + - col2 DIV - 88 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT cor0.col2 + - col2 / - 88 AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1974
SELECT - + 23 + - col2 DIV 92 FROM tab1 AS cor0
----
-23
-23
-24

skipif mysql # not compatible
query I rowsort label-1974
SELECT - + 23 + - col2 / 92 FROM tab1 AS cor0
----
-23
-23
-24

query I rowsort
SELECT - 2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT - 0 * + col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1977
SELECT ALL + col1 DIV col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + col1 / col1 AS col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 * + col1 + col0 + col2 col2 FROM tab2 AS cor0
----
-10865
-25913
-90402

query I rowsort
SELECT DISTINCT + - 80 + col1 * + col2 FROM tab1 cor0
----
1168
1324
490

query I rowsort
SELECT 88 + + col0 + 12 FROM tab1 AS cor0
----
103
164
180

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to d6394df0309139ffe20e7d96c77e26ee

query I rowsort
SELECT DISTINCT 61 + + col0 FROM tab2 AS cor0
----
139
140
68

query I rowsort
SELECT col1 * + col1 + - col1 FROM tab2 cor0
----
272
3422
930

query I rowsort
SELECT ALL - + cor0.col1 + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + col0 + col1 * + cor0.col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-1986
SELECT + + col2 DIV - col0 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT + + col2 / - col0 FROM tab2 cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1987
SELECT col1 DIV ( - ( + col1 ) ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1987
SELECT col1 / ( - ( + col1 ) ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 + 6 AS col0 FROM tab2 AS cor0
----
23
37
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT + col1 DIV 62 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT + col1 / 62 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col2 col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1991
SELECT DISTINCT + col1 * ( + col1 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT + col1 * ( + col1 ) / - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - cor0.col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + 19 + + col1 * 12 FROM tab1
----
139
175
331

query I rowsort
SELECT ALL - - col2 + + col2 + col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT DISTINCT - col2 * - col0 - col1 * col1 AS col1 FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT 92 * + col0 - - col2 AS col1 FROM tab1 AS cor0
----
330
5945
7456

query I rowsort
SELECT ALL + - col2 * col1 + - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1998
SELECT DISTINCT + 43 - + col2 DIV - col1 AS col1 FROM tab0 cor0
----
43

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + 43 - + col2 / - col1 AS col1 FROM tab0 cor0
----
43

query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 + col1 - + 40 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-1972
1378
3853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2000
SELECT - CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT - CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col0 + col0 col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT 22 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4074
-6378
13

query I rowsort
SELECT DISTINCT - - 99 + col2 + + cor0.col2 * col1 FROM tab2 AS cor0
----
1659
783
963

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2005
SELECT DISTINCT + CAST( 19 AS SIGNED ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT + CAST ( 19 AS INTEGER ) FROM tab1 AS cor0
----
19

query I rowsort
SELECT ALL - - col0 * - col1 * col0 + 13 AS col1 FROM tab1 AS cor0
----
-221
-40947
-83187

query I rowsort
SELECT ALL + + 50 * - col2 FROM tab1 AS cor0
----
-2700
-2850
-4800

query I rowsort
SELECT DISTINCT col2 * - 33 AS col0 FROM tab2 AS cor0
----
-1254
-858
-891

query I rowsort
SELECT + + ( col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL ( col0 ) * - col1 + + col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2016
-3325
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT + 85 + + col1 DIV col0 FROM tab1 AS cor0
----
85
85
93

skipif mysql # not compatible
query I rowsort label-2011
SELECT + 85 + + col1 / col0 FROM tab1 AS cor0
----
85
85
93

query I rowsort
SELECT ALL + 48 * col2 FROM tab2 AS cor0
----
1248
1296
1824

query I rowsort
SELECT DISTINCT - - 22 + col1 + col1 * 69 FROM tab0 cor0
----
6042
6392
6812

query I rowsort
SELECT - + cor0.col1 + - 75 AS col2 FROM tab1 cor0
----
-101
-85
-88

query I rowsort
SELECT + 84 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
-43

query I rowsort
SELECT 76 FROM tab2, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT ALL col0 + tab2.col2 AS col0 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 11 * col0 + col1 col0 FROM tab1 AS cor0
----
59
714
893

query I rowsort
SELECT DISTINCT col1 + - cor0.col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + + 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 + ( 86 ) * col0 + col2 col1 FROM tab0 AS cor0
----
2097
3011
7736

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 59 AS REAL ) AS col0 FROM tab1 cor0
----
-59
-59
-59

query I rowsort
SELECT + - col0 * 55 - col2 AS col2 FROM tab0 AS cor0
----
-1353
-1926
-4977

query I rowsort
SELECT 41 * + col1 AS col1 FROM tab1
----
1066
410
533

query I rowsort
SELECT + - 73 AS col0 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT ALL - col2 + col1 DIV - col1 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL - col2 + col1 / - col1 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort
SELECT ALL ( + col1 ) * - col1 + - CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - 53 * - col0 + col2 FROM tab1 AS cor0
----
213
3449
4336

query I rowsort
SELECT + - 93 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT + - col2 * - 7 - col0 FROM tab0 AS cor0
----
-28
207
485

onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT DISTINCT + 17 + - col1 DIV + col0 col1 FROM tab1
----
17
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + 17 + - col1 / + col0 col1 FROM tab1
----
17
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col1 FROM tab2 cor0
----
14
156
158

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 50d2eeb0c89870917ccdbb42af2b89a3

query I rowsort
SELECT ALL - - ( - col2 ) * col0 + 60 AS col2 FROM tab0 AS cor0
----
-7238
-732
25

query I rowsort
SELECT ALL + 36 * - col1 + + col2 * ( 10 ) FROM tab1 AS cor0
----
-396
210
492

query I rowsort
SELECT col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + - cor0.col2 + + ( - col1 ) * 36 AS col2 FROM tab1 cor0
----
-417
-564
-990

query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2041
SELECT + ( + col0 ) * - CAST( col2 AS SIGNED ) + col2 AS col2 FROM tab0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-2041
SELECT + ( + col0 ) * - CAST ( col2 AS INTEGER ) + col2 AS col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab1, tab2, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col2 * cor0.col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - + col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - + col0 * col2 + + col2 - col0 AS col2 FROM tab2 cor0
----
-169
-2080
-3043

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT col0 * + ( col2 ) + - col1 + 49 FROM tab0 AS cor0
----
-13
7256
755

query I rowsort
SELECT - col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT - + col1 * ( col1 ) + cor0.col0 AS col2 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL 17 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL col2 * 47 + col1 * cor0.col2 FROM tab1 AS cor0
----
3249
3942
5760

query I rowsort
SELECT - col0 * col1 + col1 + + col1 * 54 FROM tab2 AS cor0
----
-1357
-408
1488

query I rowsort
SELECT col1 * - col0 + col0 * + col0 FROM tab1 AS cor0
----
-69
3456
5360

onlyif mysql # use DIV operator for integer division
query I rowsort label-2054
SELECT - col1 DIV + col1 + - col1 * cor0.col0 + col1 FROM tab2 AS cor0
----
-1327
-187
-4544

skipif mysql # not compatible
query I rowsort label-2054
SELECT - col1 / + col1 + - col1 * cor0.col0 + col1 FROM tab2 AS cor0
----
-1327
-187
-4544

query I rowsort
SELECT + 75 * - col2 * + col0 FROM tab0 AS cor0
----
-2625
-547350
-59400

query I rowsort
SELECT 90 + + cor0.col1 * 75 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9096ee063b54b95dd939efd032ba2779

query I rowsort
SELECT - + col1 * ( - col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - + col1 * + 56 + col2 FROM tab2 AS cor0
----
-1709
-3278
-914

query I rowsort
SELECT ALL 23 * - col2 FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT ALL - ( col0 ) * + col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - 86 + col0 FROM tab2 AS cor0
----
-7
-79
-8

query I rowsort
SELECT col0 + col2 + col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT + - col0 * col1 * col2 + - col2 + col1 AS col2 FROM tab2 cor0
----
-119619
-51055
-5855

onlyif mysql # use DIV operator for integer division
query I rowsort label-2064
SELECT col2 * + cor0.col1 + + col1 * + 34 + col1 DIV + col2 AS col1 FROM tab1 cor0
----
1690
2288
910

skipif mysql # not compatible
query I rowsort label-2064
SELECT col2 * + cor0.col1 + + col1 * + 34 + col1 / + col2 AS col1 FROM tab1 cor0
----
1690
2288
910

query I rowsort
SELECT col2 * ( - 20 ) + col1 * + ( + 9 ) + col1 AS col0 FROM tab0 AS cor0
----
-730
200
950

query I rowsort
SELECT + cor0.col1 * 59 + cor0.col0 * cor0.col2 + 47 FROM tab0 AS cor0
----
12714
5805
5913

query I rowsort
SELECT + col1 * ( col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + cor0.col0 + - 18 * col2 FROM tab1 AS cor0
----
-1648
-962
-969

query I rowsort
SELECT tab2.col2 * col1 + 79 + + 21 FROM tab2
----
1634
746
937

query I rowsort
SELECT DISTINCT ( + col0 ) - ( 23 + cor0.col2 ) FROM tab1 AS cor0
----
-16
-39
-74

query I rowsort
SELECT ALL - 58 AS col1 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - - col0 + col1 AS col0 FROM tab0 cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col0 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab0 WHERE NULL > - col2 + col0
----

query I rowsort
SELECT - - cor0.col0 + cor0.col0 * + col1 * col1 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT DISTINCT - col1 - - col2 * 12 FROM tab1 AS cor0
----
1139
622
674

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2077
SELECT col1 * col0 + - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
1978
3298
8008

skipif mysql # not compatible
query I rowsort label-2077
SELECT col1 * col0 + - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-2078
SELECT - + col2 DIV col1 + col0 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-2078
SELECT - + col2 / col1 + col0 FROM tab1 AS cor0
----
1
59
73

query III rowsort
SELECT * FROM tab0 WHERE - col1 >= NULL
----

query I rowsort
SELECT + col1 * col1 * - col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT col1 * col1 + col0 FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-2082
SELECT ALL - col2 * + col1 + col2 DIV - col0 + + tab2.col0 AS col1 FROM tab2
----
-1456
-567
-833

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL - col2 * + col1 + col2 / - col0 + + tab2.col0 AS col1 FROM tab2
----
-1456
-567
-833

query I rowsort
SELECT DISTINCT + col2 * + tab1.col2 + - col2 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT + tab0.col1 * - col2 AS col2 FROM tab0 WHERE NOT + col2 NOT IN ( - tab0.col2 * col1 + col2 * + col1 )
----

query I rowsort
SELECT - col2 + + col2 * col2 AS col1 FROM tab2 WHERE NOT col1 > NULL
----

query I rowsort
SELECT ALL ( - col0 + tab1.col1 ) FROM tab1
----
-54
-67
23

query I rowsort
SELECT + col0 + - col0 * + col2 AS col1 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT col0 * + col0 + tab0.col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT DISTINCT tab1.col0 + col0 AS col2 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2090
SELECT + col2 DIV - col1 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2090
SELECT + col2 / - col1 + col2 FROM tab0
----
1
33
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - tab1.col1 + + col1 FROM tab1
----
0

query I rowsort
SELECT col0 * - col2 + tab1.col2 AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT - cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT col1 * tab2.col2 + + col1 * tab2.col1 AS col0 FROM tab2
----
1798
5015
935

query I rowsort
SELECT DISTINCT + col0 + - col2 + + col1 FROM tab2
----
11
111
58

query I rowsort
SELECT DISTINCT col0 + - col1 + col2 FROM tab0
----
-29
-61
80

query I rowsort
SELECT + tab2.col2 + + col1 - tab2.col0 AS col2 FROM tab2
----
-24
51
7

query I rowsort
SELECT DISTINCT col1 * tab0.col0 + col1 AS col1 FROM tab0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT col1 * + tab2.col2 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL col2 * col1 + col2 + + col1 FROM tab0
----
195
2957
7635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * col2 col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col1 + tab2.col2 + col2 FROM tab2
----
-7
23
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + col2 + + tab1.col1 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * col1 col2 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT col0 * col1 * + tab2.col0 AS col2 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + col2 + - tab0.col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - tab2.col1 * + col0 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT tab0.col1 FROM tab0 WHERE col0 + + col0 >= NULL
----

query I rowsort
SELECT DISTINCT col2 * + col2 * col0 AS col1 FROM tab1 WHERE NULL NOT IN ( col2 + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT ( col0 ) DIV + col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2113
SELECT ( col0 ) / + col0 AS col1 FROM tab2
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2114
SELECT - CAST( NULL AS SIGNED ) * 44 + tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT - CAST ( NULL AS INTEGER ) * 44 + tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2115
SELECT 85 DIV + cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4

skipif mysql # not compatible
query I rowsort label-2115
SELECT 85 / + cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4

query I rowsort
SELECT DISTINCT - ( + col1 ) + col0 FROM tab0
----
-2
-62

query I rowsort
SELECT - 7 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2118
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 * + col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 * + col1 AS col0 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT + col2 DIV - 19 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2119
SELECT + col2 / - 19 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT DISTINCT - col0 * col1 + + col1 * + ( col0 * tab0.col1 + - col0 * - col2 ) FROM tab0
----
1393028
243552
329315

query I rowsort
SELECT DISTINCT - tab1.col0 + col0 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - ( cor0.col0 ) * col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - + col2 * col2 * col2 FROM tab1 cor0
----
-157464
-185193
-884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT - + col0 + col1 DIV + cor0.col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2124
SELECT - + col0 + col1 / + cor0.col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2125
SELECT DISTINCT + + 44 + + col1 DIV - col1 col0 FROM tab0 AS cor0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT + + 44 + + col1 / - col1 col0 FROM tab0 AS cor0
----
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT DISTINCT - col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - col0 / col2 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT 59 + - col1 FROM tab2 AS cor0
----
0
28
42

query I rowsort
SELECT ALL + + cor0.col2 * col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT col2 * col2 * - 52 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
-35067
-37850
-75033

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col2 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - col1 * + col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 2 * - col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - cor0.col0 * cor0.col0 + col0 * 28 FROM tab2 AS cor0
----
-3900
-4029
147

query I rowsort
SELECT DISTINCT - + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * - col2 + cor0.col2 * col2 * col1 + + col2 * 57 * col2 FROM tab2 AS cor0
----
108300
64881
79092

query I rowsort
SELECT DISTINCT + 70 - tab1.col0 * + col1 AS col0 FROM tab1
----
-570
-8
-970

query I rowsort
SELECT col1 * 19 * col0 FROM tab2
----
25517
4123
87438

query I rowsort
SELECT DISTINCT + 59 * + col0 - col0 AS col2 FROM tab1
----
174
3712
4640

query I rowsort
SELECT - 27 + col2 + + col0 * 5 AS col0 FROM tab0
----
126
149
500

query I rowsort
SELECT ALL 44 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT - - ( - col2 ) * - col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col1 + + col2 * + 36 AS col0 FROM tab2 AS cor0
----
1003
1385
995

query I rowsort
SELECT ALL - + col0 + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2144
SELECT ALL - col2 * - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - col2 * - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - col2 * - 40 FROM tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT DISTINCT + - 92 AS col2 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT + cor0.col1 * - col2 + 90 AS col1 FROM tab1 AS cor0
----
-1158
-1314
-480

query I rowsort
SELECT ALL ( col0 ) * + cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col2 + + col2 * - 28 AS col2 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT ALL cor0.col1 - 18 AS col0 FROM tab1 AS cor0
----
-5
-8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col1 + + ( + 16 ) + cor0.col2 * 81 AS col1 FROM tab2 AS cor0
----
2181
2234
3111

query I rowsort
SELECT ALL + col1 + - col2 * + col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT + col1 * 44 AS col0 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT ALL col2 + + col1 * + 68 FROM tab0 AS cor0
----
5881
6270
6597

query I rowsort
SELECT DISTINCT col0 * 77 + + 92 + cor0.col1 FROM tab1 AS cor0
----
349
5030
6265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 98 col2 FROM tab2 AS cor0
----
2548
2646
3724

query I rowsort
SELECT - col2 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col0 + 44 AS col2 FROM tab2 AS cor0
----
-34
-35
37

query I rowsort
SELECT ALL + 81 * - col1 AS col0 FROM tab2 AS cor0
----
-1377
-2511
-4779

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col2 AS REAL ) + col1 * ( + col1 ) / + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + + 55 * col0 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT DISTINCT - 94 FROM tab1 cor0
----
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT ALL col1 * + CAST( NULL AS SIGNED ) / - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) / - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) AS col1 FROM tab1, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col0 * + ( - tab2.col2 ) AS col0 FROM tab2
----
-189
-2028
-3002

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab2
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2171
SELECT DISTINCT - col1 * - col1 DIV + col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - col1 * - col1 / + col1 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + - ( col2 ) col1 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT - + col0 + - col2 * + ( + 18 ) FROM tab0 cor0
----
-1565
-53
-618

query I rowsort
SELECT DISTINCT - + 27 + - col0 FROM tab0 AS cor0
----
-116
-51
-62

query I rowsort
SELECT cor0.col2 * col0 + + col2 + col2 FROM tab2 AS cor0
----
2080
243
3078

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * cor0.col2 + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT - 27 + col2 * col0 AS col2 FROM tab1 AS cor0
----
135
3621
7653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * + ( 42 ) col2 FROM tab2 AS cor0
----
-325
-3335
-3335

query I rowsort
SELECT - col0 * + col0 + ( col0 ) AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT + + col2 * + 94 * - ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-144196
-60724
-78678

query I rowsort
SELECT - 41 * tab2.col2 + 9 FROM tab2
----
-1057
-1098
-1549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col0 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL cor0.col0 - 32 * 88 FROM tab2, tab1 AS cor0
----
9 values hashing to c3da8bbb458e22031cf010419bbff6db

query I rowsort
SELECT cor0.col0 * - 15 - col2 AS col0 FROM tab2 AS cor0
----
-1196
-1223
-132

query I rowsort
SELECT ALL col1 + + 63 FROM tab2 AS cor0
----
122
80
94

query I rowsort
SELECT + cor0.col1 + 26 AS col1 FROM tab2 AS cor0
----
43
57
85

query I rowsort
SELECT DISTINCT 99 FROM tab2 AS cor0
----
99

query I rowsort
SELECT ( + col1 ) * + cor0.col2 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT - col1 * col2 * - cor0.col1 + - col0 + col1 FROM tab1 AS cor0
----
16157
36527
5646

query I rowsort
SELECT ALL col0 * - col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2191
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col1 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + col0 - col2 * + col0 FROM tab2
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2195
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2195
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 * col1 + col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + 19 * + ( cor0.col2 ) * ( col1 ) + + col2 * ( ( col0 ) ) + 79 FROM tab2 cor0
----
15355
16171
31253

query I rowsort
SELECT cor1.col0 * - cor1.col2 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 8e23e17c36b823f4c429aaf1de1c2457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2199
SELECT CAST( NULL AS SIGNED ) + - tab2.col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT CAST ( NULL AS INTEGER ) + - tab2.col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 97 + + 80 FROM tab0
----
177
177
177

query I rowsort
SELECT 73 * col0 FROM tab1 AS cor0
----
219
4672
5840

query I rowsort
SELECT ALL col0 - + col0 * col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + + col2 - + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * col0 + 93 AS col0 FROM tab2 AS cor0
----
2121
282
3095

query I rowsort
SELECT + 35 + col0 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT - 19 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
-133
-151
-440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2207
SELECT ALL + CAST( - col1 + + col2 AS SIGNED ) FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL + CAST ( - col1 + + col2 AS INTEGER ) FROM tab1
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2208
SELECT DISTINCT CAST( + col1 AS SIGNED ) col0 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT CAST ( + col1 AS INTEGER ) col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + 41 * cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 0460cb0a4638c7341e74500318b00373

query I rowsort
SELECT col2 + - col2 + col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT - col1 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2212
SELECT - col1 / cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - col1 * col0 * + ( - 69 ) + + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
15810
319072
93313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col0 + col1 * col0 AS col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + 54 + col0 * col2 AS col2 FROM tab1
----
216
3702
7734

query I rowsort
SELECT ALL col0 + - col0 * 77 * col1 FROM tab2
----
-103332
-16702
-354276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - - 65 AS col0 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT + col0 * ( + col2 + ( col1 ) * col2 ) AS col2 FROM tab1 AS cor0
----
107520
40128
4374

query I rowsort
SELECT + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - cor0.col1 - col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT + 24 AS col1 FROM tab0, tab1 AS cor0
----
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2225
SELECT + 14 * - ( tab0.col1 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT + 14 * - ( tab0.col1 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 - col1 * + col1 AS col2 FROM tab2 cor0
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2228
SELECT - CAST( NULL AS SIGNED ) + 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT - CAST ( NULL AS INTEGER ) + 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT + col2 - - ( - col2 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col0 + + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT + + cor0.col1 + 47 FROM tab2 AS cor0
----
106
64
78

query I rowsort
SELECT - + col0 * - cor0.col2 + - col1 * col2 + col2 FROM tab0 AS cor0
----
-2013
-61
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2234
SELECT col2 - - CAST( NULL AS DECIMAL ) * - col0 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT col2 - - CAST ( NULL AS REAL ) * - col0 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col1 + - 40 * + col2 AS col1 FROM tab2 AS cor0
----
-243
-874
494

query I rowsort
SELECT - col2 * cor0.col2 + 62 * col1 * col2 FROM tab0 AS cor0
----
174867
455920
6013

query I rowsort
SELECT DISTINCT + + col2 * - 3 + col1 * + col0 FROM tab0 AS cor0
----
1965
3392
7853

query I rowsort
SELECT DISTINCT + col0 * col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col1 * 24 AS col1 FROM tab0 AS cor0
----
-2064
-2184
-2328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2240
SELECT ALL col0 + - CAST( NULL AS DECIMAL ) + + 92 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL col0 + - CAST ( NULL AS REAL ) + + 92 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2243
SELECT - - CAST( 61 AS SIGNED ) FROM tab0 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2243
SELECT - - CAST ( 61 AS INTEGER ) FROM tab0 AS cor0
----
61
61
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2244
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col2 + - cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + + ( + col2 ) * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT DISTINCT - ( - 62 ) DIV col1 FROM tab1 AS cor0
----
2
4
6

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - ( - 62 ) / col1 FROM tab1 AS cor0
----
2
4
6

query I rowsort
SELECT ALL + ( - 75 ) * + col0 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT + col2 + + col0 + + cor0.col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT ALL + - 74 * + col0 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT + col2 + col0 + col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT - - 26 AS col1 FROM tab1 AS cor0
----
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT DISTINCT - - col0 * col0 DIV 68 FROM tab1 AS cor0
----
0
60
94

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - - col0 * col0 / 68 FROM tab1 AS cor0
----
0
60
94

query I rowsort
SELECT ALL col2 + col2 * col1 * - 0 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col1 * + 45 AS col2 FROM tab1
----
1170
450
585

query I rowsort
SELECT 59 AS col2 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT - cor1.col0 * 59 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 825f14fbaed56793f9f0ee11c660b3c7

query I rowsort
SELECT DISTINCT - + 45 + + col0 AS col1 FROM tab1 AS cor0
----
-42
19
35

query I rowsort
SELECT + + col2 * ( col0 ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2260
SELECT col0 DIV + col1 + - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2260
SELECT col0 / + col1 + - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 25 * - col1 AS col0 FROM tab1
----
-250
-325
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT col0 * col2 DIV ( - col0 ) FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2262
SELECT col0 * col2 / ( - col0 ) FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2263
SELECT - + 67 DIV col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT - + 67 / col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + col1 - - tab0.col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - col0 * + 60 AS col2 FROM tab1 AS cor0
----
-180
-3840
-4800

query I rowsort
SELECT DISTINCT + col1 + col1 * 54 FROM tab0 cor0
----
4730
5005
5335

query I rowsort
SELECT DISTINCT - col2 * ( 43 ) + + col2 FROM tab0
----
-1386
-3444
-42

query I rowsort
SELECT DISTINCT col0 + + 1 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL - col1 + 45 FROM tab1
----
19
32
35

query I rowsort
SELECT - col2 * col1 * col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + 36 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL - + col1 * 62 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806

query I rowsort
SELECT ALL + - col2 * - 87 FROM tab1 cor0
----
4698
4959
8352

query I rowsort
SELECT DISTINCT cor0.col1 * col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT tab0.col2 + col2 AS col0 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL + 62 * 80 AS col2 FROM tab1
----
4960
4960
4960

query I rowsort
SELECT DISTINCT + col2 * + col1 * col2 + + 3 AS col0 FROM tab0 AS cor0
----
100
611887
93657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 + - col1 * col2 - ( col0 ) col1 FROM tab0 cor0
----
-170
-2900
-7589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 64 + col0 * col2 + + col0 * - ( + col1 ) col0 FROM tab1 AS cor0
----
148
3072
6704

query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 * - col2 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT ALL + col1 + cor0.col2 * 19 FROM tab0 AS cor0
----
116
1649
713

query I rowsort
SELECT - - 3 * col2 * - col1 FROM tab1 AS cor0
----
-1710
-3744
-4212

query I rowsort
SELECT ALL + + 31 * - col1 + - 78 AS col1 FROM tab1 AS cor0
----
-388
-481
-884

query I rowsort
SELECT ALL - 23 * + col0 + 86 FROM tab2 AS cor0
----
-1708
-1731
-75

query I rowsort
SELECT DISTINCT + - ( col1 ) * + col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col0 + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - + 42 AS col1 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT - + ( col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + - 64 * col0 AS col0 FROM tab2 AS cor0
----
-448
-4992
-5056

query I rowsort
SELECT DISTINCT + 86 * col1 + - 71 AS col2 FROM tab0 AS cor0
----
7325
7755
8271

query I rowsort
SELECT + 1 - tab1.col2 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT ALL - + col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - 14 AS col2 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ALL - - col1 * col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - - 33 FROM tab1 cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - 10 * + col0 AS col2 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT ALL + - 54 + + col2 AS col0 FROM tab0 AS cor0
----
-21
-53
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 + col1 col0 FROM tab0 AS cor0
----
159
2900
7464

query I rowsort
SELECT ALL - col0 + 99 FROM tab0
----
10
64
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2300
SELECT col0 DIV col1 + - col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-2300
SELECT col0 / col1 + - col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 + + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1567
625
841

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + col0 + col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT col1 * 59 AS col2 FROM tab0 AS cor0
----
5074
5369
5723

query I rowsort
SELECT col2 * 90 * col1 FROM tab0 AS cor0
----
255420
671580
8730

query I rowsort
SELECT DISTINCT 11 FROM tab1, tab1 AS cor0
----
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT DISTINCT + 12 DIV + 72 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + 12 / + 72 FROM tab0 cor0
----
0

query I rowsort
SELECT + ( col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT ( col1 ) * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col2 * + 49 FROM tab2 cor0
----
1274
1323
1862

onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT + + 92 DIV - col2 + col0 + - col0 AS col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT + + 92 / - col2 + col0 + - col0 AS col1 FROM tab1 cor0
----
-1
-1
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1, tab0 cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749

query I rowsort
SELECT cor0.col2 * col0 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - + 46 * + col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + ( - col0 ) - - cor0.col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL ( col0 ) + - 56 FROM tab2 AS cor0
----
-49
22
23

query I rowsort
SELECT DISTINCT - 51 + + col2 FROM tab0
----
-18
-50
31

query I rowsort
SELECT DISTINCT - + col2 * - col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - col1 * - col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-2321
SELECT - col1 DIV - cor0.col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2321
SELECT - col1 / - cor0.col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 78 + - col0 AS col0 FROM tab1 AS cor0
----
-2
14
75

query I rowsort
SELECT - 70 + + col1 AS col2 FROM tab2 AS cor0
----
-11
-39
-53

query I rowsort
SELECT ALL ( col0 ) * + cor0.col1 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col1 * col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - + col2 - 68 * col1 FROM tab1 AS cor0
----
-1822
-737
-980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + 33 col0 FROM tab2 AS cor0
----
-5
6
7

query I rowsort
SELECT DISTINCT 70 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
70

query I rowsort
SELECT ALL + col2 + 83 AS col0 FROM tab1 AS cor0
----
137
140
179

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab0, tab2 cor0
----
5

query I rowsort
SELECT DISTINCT col2 + tab2.col0 + 9 AS col0 FROM tab2
----
113
126
43

query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - - cor0.col0 * 5 - - col1 FROM tab2 AS cor0
----
412
449
66

query I rowsort
SELECT cor0.col1 + + 24 AS col2 FROM tab1 AS cor0
----
34
37
50

query I rowsort
SELECT + + col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col0 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - cor0.col2 + 26 AS col0 FROM tab0 AS cor0
----
-56
-7
25

query I rowsort
SELECT col0 * + ( 48 ) * col1 FROM tab2 cor0
----
10416
220896
64464

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT DISTINCT - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - col0 / + col0 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab2
----
66

query I rowsort
SELECT - col2 * + ( col0 ) + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + - col2 + + cor0.col1 * col2 FROM tab1 cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2346
SELECT + col2 * col0 * col1 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT + col2 * col0 * col1 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + 75 * col1 FROM tab2 AS cor0
----
1354
2332
4503

query I rowsort
SELECT DISTINCT - 2 FROM tab0, tab2 AS cor0
----
-2

query I rowsort
SELECT + 71 AS col2 FROM tab2
----
71
71
71

query I rowsort
SELECT ( - col1 * tab1.col2 ) FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 73 col1 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL tab1.col2 * - col1 * 30 AS col0 FROM tab1
----
-17100
-37440
-42120

query I rowsort
SELECT DISTINCT col0 * col1 * + col1 + 49 * + col0 AS col1 FROM tab0 AS cor0
----
178680
331030
741370

query I rowsort
SELECT col2 + - col1 * + col0 - col2 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2355
SELECT + tab0.col2 * col0 DIV col2 col0 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2355
SELECT + tab0.col2 * col0 / col2 col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - 49 + col1 FROM tab1 cor0
----
-23
-36
-39

query I rowsort
SELECT - 59 * 80 FROM tab1 AS cor0
----
-4720
-4720
-4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT - ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT 43 + col1 AS col0 FROM tab0 AS cor0
----
129
134
140

query I rowsort
SELECT ALL + 36 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT - ( col1 ) * + col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col2 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 + 38 AS col1 FROM tab0 AS cor0
----
-2026
-3357
-8061

query I rowsort
SELECT ALL - + col2 * col0 - + 39 * + 47 FROM tab0 AS cor0
----
-1868
-2625
-9131

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2366
SELECT ALL col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 90 FROM tab0, tab1 AS cor0, tab1 cor1
----
-90

query I rowsort
SELECT + col0 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col2 + + col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - col1 * col2 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT col0 + + ( + 72 ) AS col0 FROM tab2 AS cor0
----
150
151
79

query I rowsort
SELECT + col0 * col1 * + 50 FROM tab1 AS cor0
----
32000
3900
52000

query I rowsort
SELECT ALL + + ( - col2 ) * col1 + + 11 AS col1 FROM tab2 AS cor0
----
-1523
-635
-826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - cor0.col2 ) * col2 col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + + 59 * 74 FROM tab0 cor0
----
4366

query I rowsort
SELECT col0 * + col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 31 AS col1 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2379
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-2379
SELECT + - col1 / - col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * - ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT 69 + - ( + col1 ) * col0 FROM tab0 cor0
----
-1995
-3326
-8030

query I rowsort
SELECT DISTINCT - 6 AS col2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT - col2 + col2 * + col1 AS col2 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT ALL col2 * + tab2.col2 AS col0 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * 27 col2 FROM tab0
----
2322
2457
2619

query I rowsort
SELECT ALL 85 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT + 0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + col0 * + 85 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
1344
246
400

query I rowsort
SELECT ALL - 83 AS col0 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + 18 AS col2 FROM tab0 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col0 + col1 col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col2 + 43 FROM tab1 AS cor0
----
100
139
97

query I rowsort
SELECT ( - cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col0 * 95 FROM tab2 cor0
----
-665
-7410
-7505

query I rowsort
SELECT col2 + 59 AS col1 FROM tab0 AS cor0
----
141
60
92

query I rowsort
SELECT + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( tab0.col0 ) ) col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT 69 * tab1.col1 DIV tab1.col1 + 28 AS col1 FROM tab1
----
97
97
97

skipif mysql # not compatible
query I rowsort label-2399
SELECT 69 * tab1.col1 / tab1.col1 + 28 AS col1 FROM tab1
----
97
97
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2400
SELECT DISTINCT + 33 DIV - col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT + 33 / - col2 AS col1 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2401
SELECT ALL + 46 DIV - col0 + cor0.col2 + col1 FROM tab1 cor0
----
109
65
67

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + 46 / - col0 + cor0.col2 + col1 FROM tab1 cor0
----
109
65
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 66 ) * col1 col0 FROM tab0
----
5676
6006
6402

query I rowsort
SELECT - 74 * + col0 FROM tab0
----
-1776
-2590
-6586

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + col1 - col1 * ( - col1 ) FROM tab1
----
110
182
702

query I rowsort
SELECT tab1.col2 * tab1.col2 + + col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL col2 * ( + col2 ) * cor0.col0 + - col0 FROM tab1 AS cor0
----
207872
737200
8745

query I rowsort
SELECT DISTINCT - + col2 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 + 97 * - col2 FROM tab2 AS cor0
----
-2444
-2612
-3607

query I rowsort
SELECT - col0 + ( + col2 ) * - col0 * - col0 FROM tab1 AS cor0
----
233408
483
614320

query I rowsort
SELECT + col2 * 94 + col0 * col2 FROM tab1 AS cor0
----
16704
5238
9006

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2412
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + ( - col1 ) - + col1 col2 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL + col2 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT 5 * + col1 AS col0 FROM tab0
----
430
455
485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col2 FROM tab2
----
0

query I rowsort
SELECT 65 * + col0 AS col1 FROM tab1
----
195
4160
5200

query I rowsort
SELECT col0 + col0 * - 75 - + col1 AS col0 FROM tab2
----
-549
-5831
-5863

query I rowsort
SELECT col2 * 89 FROM tab1 cor0
----
4806
5073
8544

query I rowsort
SELECT ALL - - col1 * + col1 - col2 * col1 AS col1 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab2, tab0 AS cor0
----
35

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - + col1 + ( col0 * - cor0.col0 + - col2 ) FROM tab0 AS cor0
----
-1323
-695
-8094

query I rowsort
SELECT ALL - cor0.col2 + ( - col1 ) * - col1 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT DISTINCT col2 * + 49 AS col0 FROM tab0 cor0
----
1617
4018
49

query I rowsort
SELECT ALL col2 * col2 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1226
14645
1665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + col0 * - col1 col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2428
SELECT + col0 DIV + col1 - + 8 AS col0 FROM tab2 AS cor0
----
-4
-7
-8

skipif mysql # not compatible
query I rowsort label-2428
SELECT + col0 / + col1 - + 8 AS col0 FROM tab2 AS cor0
----
-4
-7
-8

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + ( col2 ) + col1 AS col1 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT ALL - col2 * - col0 * 40 + + tab2.col2 + + col1 FROM tab2
----
120135
7618
81205

query I rowsort
SELECT + col2 * - cor0.col0 * col0 + col2 FROM tab2 AS cor0
----
-1296
-158158
-237120

query I rowsort
SELECT ALL - 9 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL - col0 * ( + 21 ) FROM tab2
----
-147
-1638
-1659

query I rowsort
SELECT + col2 + + 33 + col0 AS col0 FROM tab0 AS cor0
----
204
69
90

query I rowsort
SELECT - col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col2 * cor0.col2 + col0 * 87 FROM tab0 AS cor0
----
14467
3046
3177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2438
SELECT DISTINCT - - col2 * + col1 + + CAST( col0 * col1 + - ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
15470
3395
4816

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - - col2 * + col1 + + CAST ( col0 * col1 + - ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
15470
3395
4816

query I rowsort
SELECT DISTINCT - - col1 + col2 * col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - 12 - col0 AS col2 FROM tab2 cor0
----
-19
-90
-91

query I rowsort
SELECT + + col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 65 + col2 * 70 FROM tab2 AS cor0
----
1885
1955
2725

query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab2
----
65

query I rowsort
SELECT + col2 * + col0 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL - 0 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * cor0.col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor1.col2 * cor1.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947

query I rowsort
SELECT - col1 + 44 FROM tab1 AS cor0
----
18
31
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2449
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - 42 AS col0 FROM tab1
----
-42
-42
-42

query I rowsort
SELECT 60 AS col2 FROM tab1
----
60
60
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT DISTINCT - col0 DIV - CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT - col0 / - CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col1 + - 29 * 26 FROM tab1 AS cor0
----
-764
-767
-780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2459
SELECT + col1 + 94 + col0 * + CAST( - ( + col1 ) + - ( col2 ) * - col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-3169
24252
590522

skipif mysql # not compatible
query I rowsort label-2459
SELECT + col1 + 94 + col0 * + CAST ( - ( + col1 ) + - ( col2 ) * - col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-3169
24252
590522

query I rowsort
SELECT + ( - col2 ) + col1 * 10 + - 74 FROM tab0 AS cor0
----
753
754
895

query I rowsort
SELECT - 74 + col0 + - col2 FROM tab2 AS cor0
----
-22
-33
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2462
SELECT cor0.col0 * - col2 + + col0 * CAST( - col0 AS SIGNED ) + + col0 * 98 FROM tab0 cor0
----
-6497
2170
984

skipif mysql # not compatible
query I rowsort label-2462
SELECT cor0.col0 * - col2 + + col0 * CAST ( - col0 AS INTEGER ) + + col0 * 98 FROM tab0 cor0
----
-6497
2170
984

query I rowsort
SELECT + col0 + - col2 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2847
-63
-7455

query I rowsort
SELECT col0 + + 39 AS col0 FROM tab0 cor0
----
128
63
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2465
SELECT - + cor0.col2 * col1 + - CAST( col1 * col2 AS SIGNED ) FROM tab1 AS cor0
----
-1140
-2496
-2808

skipif mysql # not compatible
query I rowsort label-2465
SELECT - + cor0.col2 * col1 + - CAST ( col1 * col2 AS INTEGER ) FROM tab1 AS cor0
----
-1140
-2496
-2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col1 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT + - col1 * - cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NOT col2 NOT BETWEEN + col2 * - col1 AND NULL
----

query I rowsort
SELECT ALL col0 * col0 * col0 + - col2 AS col2 FROM tab0
----
13791
42874
704887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + - col2 col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - col1 + + col1 * - col2 FROM tab0
----
-194
-2924
-7553

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + tab1.col0 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT IN ( col1 )
----

query I rowsort
SELECT ALL col2 + col1 * col1 * col2 AS col1 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT ALL col1 * - tab1.col2 + col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT + tab1.col0 + col2 + col0 * + col1 AS col2 FROM tab1
----
1216
135
761

onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT col0 DIV - tab0.col0 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2478
SELECT col0 / - tab0.col0 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * col0 + + col1 * col2 AS col2 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT + col0 - col0 * + col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT + tab1.col0 + + col2 - - col2 AS col1 FROM tab1
----
111
178
272

query I rowsort
SELECT col2 + + col2 * col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT tab1.col2 * - col1 + col0 * col1 AS col2 FROM tab1
----
-1326
-208
70

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE + col2 <> NULL
----

query I rowsort
SELECT ALL tab0.col2 + - tab0.col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + col1 + + col1 * - col1 AS col0 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT col1 + + col0 * tab1.col2 * + tab1.col0 FROM tab1
----
233482
512
614413

query I rowsort
SELECT ALL + col1 * col0 + + col2 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT col1 + col2 * tab0.col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT col1 * col1 + col2 AS col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT tab0.col1 + - col0 AS col0 FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE + col1 NOT BETWEEN ( col1 ) AND ( NULL )
----

query I rowsort
SELECT - col2 * - tab2.col2 AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT - col0 + - tab1.col1 * col2 AS col1 FROM tab1
----
-1328
-1407
-634

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 + col0 * + cor0.col1 )
----

query I rowsort
SELECT col2 + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - cor0.col0 - col0 * + cor0.col2 * + col1 col1 FROM tab2 AS cor0
----
-125736
-57275
-5908

onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT DISTINCT - - col0 DIV col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT - - col0 / col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - col0 * 33 AS col0 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT + cor0.col0 + - ( cor0.col2 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - cor0.col1 * ( col2 ) + - col0 + 49 AS col2 FROM tab2 AS cor0
----
-1563
-676
-795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + + cor0.col1 + - col2 col2 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT ALL - 84 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to aaabc1266a1bb4f477091ffbc243c849

query I rowsort
SELECT ALL ( - col0 ) + col2 * 65 - - col1 FROM tab1 AS cor0
----
3533
3651
6173

onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT ALL + col1 DIV - ( + col1 * + col1 ) + 94 AS col2 FROM tab2 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + col1 / - ( + col1 * + col1 ) + 94 AS col2 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT + 71 * - 21 AS col2 FROM tab1 AS cor0
----
-1491

query I rowsort
SELECT - - col0 * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT 96 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ALL - - col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2514
SELECT col0 * - col0 + CAST( - 17 AS SIGNED ) FROM tab0 AS cor0
----
-1242
-593
-7938

skipif mysql # not compatible
query I rowsort label-2514
SELECT col0 * - col0 + CAST ( - 17 AS INTEGER ) FROM tab0 AS cor0
----
-1242
-593
-7938

query I rowsort
SELECT ALL + 25 * col0 AS col1 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT col2 * col1 AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT ALL + - col2 * - cor0.col2 + - 73 DIV - col2 FROM tab0 AS cor0
----
1091
6724
74

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL + - col2 * - cor0.col2 + - 73 / - col2 FROM tab0 AS cor0
----
1091
6724
74

query I rowsort
SELECT col1 + col1 * col0 + col2 AS col1 FROM tab1
----
1149
158
707

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 = ( + col0 )
----

query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( NULL ) IN ( col1 )
----

query I rowsort
SELECT + + ( col0 ) + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - - ( - cor0.col0 ) * - col1 + 98 AS col1 FROM tab2 AS cor0
----
1441
315
4700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT ALL - + col2 + + col2 DIV - col0 FROM tab2 cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL - + col2 + + col2 / - col0 FROM tab2 cor0
----
-26
-30
-38

query I rowsort
SELECT + + ( col0 ) * cor0.col0 + 85 AS col0 FROM tab0 AS cor0
----
1310
661
8006

query I rowsort
SELECT - ( - 23 ) FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT ALL + 47 * - col0 FROM tab0 AS cor0
----
-1128
-1645
-4183

query I rowsort
SELECT col2 + col1 + col2 FROM tab1
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT 33 * col2 DIV + tab0.col0 + 94 FROM tab0
----
124
139
94

skipif mysql # not compatible
query I rowsort label-2529
SELECT 33 * col2 / + tab0.col0 + 94 FROM tab0
----
124
139
94

query I rowsort
SELECT col2 * col2 + ( col0 ) AS col1 FROM tab1
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-2531
SELECT col2 - 61 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2531
SELECT col2 - 61 / col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 + col1 col2 FROM tab1
----
49
52
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2533
SELECT ALL - col1 + - col1 DIV - ( + tab0.col1 ) FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - col1 + - col1 / - ( + tab0.col1 ) FROM tab0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT tab2.col1 + col0 * col1 + col0 AS col1 FROM tab2
----
1439
255
4739

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2535
SELECT col1 + - col2 + + CAST( - ( tab0.col2 ) AS SIGNED ) AS col0 FROM tab0
----
-73
20
95

skipif mysql # not compatible
query I rowsort label-2535
SELECT col1 + - col2 + + CAST ( - ( tab0.col2 ) AS INTEGER ) AS col0 FROM tab0
----
-73
20
95

query I rowsort
SELECT + 6 * col1 * + 55 AS col2 FROM tab1
----
3300
4290
8580

query I rowsort
SELECT ALL - col0 + - 58 FROM tab0 AS cor0
----
-147
-82
-93

query I rowsort
SELECT + + col0 * col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2539
SELECT col1 + - col0 DIV col1 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-2539
SELECT col1 + - col0 / col1 col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2540
SELECT CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 40 AS col2 FROM tab2 cor0
----
1040
1080
1520

query I rowsort
SELECT + - ( - cor0.col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col1 * + col1 * col0 AS col0 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT + col2 * cor0.col0 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT 20 * col1 AS col0 FROM tab0
----
1720
1820
1940

onlyif mysql # use DIV operator for integer division
query I rowsort label-2546
SELECT + ( col0 ) DIV + col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2546
SELECT + ( col0 ) / + col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + col0 * cor0.col1 * - ( + 68 ) - + col0 FROM tab0 AS cor0
----
-140376
-230895
-550821

query I rowsort
SELECT - col2 + col0 * col2 FROM tab1 cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 2 * + col0 col1 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2550
SELECT + col1 - - col1 DIV ( col1 ) FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2550
SELECT + col1 - - col1 / ( col1 ) FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT - col0 * col1 * col2 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + 51 * col2 AS col1 FROM tab1
----
2754
2907
4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-2553
SELECT DISTINCT col2 DIV col0 col1 FROM tab2
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT col2 / col0 col1 FROM tab2
----
0
3

query I rowsort
SELECT DISTINCT + col0 * + ( - tab2.col0 ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT cor1.col0 + - 12 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 42f8a44fab2d4947af2224be2e6a362c

query I rowsort
SELECT + ( - 42 * col1 ) FROM tab1
----
-1092
-420
-546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT - col1 * + CAST( NULL AS SIGNED ) + 68 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT - col1 * + CAST ( NULL AS INTEGER ) + 68 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 73 AS col0 FROM tab2 AS cor0
----
151
152
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2559
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2560
SELECT + col1 + + ( ( col0 ) + ( col0 ) ) DIV - col1 AS col2 FROM tab2 cor0
----
31
57
8

skipif mysql # not compatible
query I rowsort label-2560
SELECT + col1 + + ( ( col0 ) + ( col0 ) ) / - col1 AS col2 FROM tab2 cor0
----
31
57
8

query I rowsort
SELECT - + col1 * col0 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - col2 * col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT col0 * col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - col0 * - tab2.col1 + - col2 + + ( - col1 ) FROM tab2
----
1288
159
4517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - tab0.col0 + + col1 col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + 89 * + 62 FROM tab2, tab2 AS cor0
----
5518

query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
54
57
96

query I rowsort
SELECT ALL - - 29 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT col0 * + 97 AS col2 FROM tab2
----
679
7566
7663

query I rowsort
SELECT - col2 * 59 AS col2 FROM tab1 AS cor0
----
-3186
-3363
-5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( cor0.col0 ) col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 * col0 col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 21 AS REAL ) + + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 26135b9a5b3e82773d41193544dd382e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 + - 95 + col1 col1 FROM tab2 AS cor0
----
-21
-7
21

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab0 AS cor0
----
44

query I rowsort
SELECT + + 43 + col0 FROM tab1 AS cor0
----
107
123
46

query I rowsort
SELECT DISTINCT + col2 * + col0 - + cor0.col2 FROM tab1 AS cor0
----
108
3591
7584

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + cor0.col2 AS REAL ) * + col1 + + col0 * + col2 + col1 * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - tab0.col0 + - ( + col1 + col0 ) AS col1 FROM tab0
----
-134
-167
-269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2581
SELECT - col2 * + CAST( + col2 AS SIGNED ) FROM tab0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-2581
SELECT - col2 * + CAST ( + col2 AS INTEGER ) FROM tab0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2582
SELECT DISTINCT + CAST( + 21 AS SIGNED ) FROM tab2, tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT + CAST ( + 21 AS INTEGER ) FROM tab2, tab0 AS cor0
----
21

query I rowsort
SELECT col0 - - 67 AS col0 FROM tab2
----
145
146
74

query I rowsort
SELECT 54 * + col0 + + col1 FROM tab1
----
188
3466
4333

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2585
SELECT - CAST( NULL AS DECIMAL ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT - CAST ( NULL AS REAL ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2586
SELECT ALL + ( - col2 ) + + col1 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + ( - col2 ) + + col1 / col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col2 * - col2 + - cor0.col0 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT + col0 + 12 FROM tab2 AS cor0
----
19
90
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + 98 AS col0 FROM tab0
----
98
98
98

query I rowsort
SELECT + 9 * - col0 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT + 18 + cor0.col2 * - 68 FROM tab0 AS cor0
----
-2226
-50
-5558

onlyif mysql # use DIV operator for integer division
query I rowsort label-2594
SELECT + col2 * + col0 + 73 DIV + col2 FROM tab0 AS cor0
----
108
7298
794

skipif mysql # not compatible
query I rowsort label-2594
SELECT + col2 * + col0 + 73 / + col2 FROM tab0 AS cor0
----
108
7298
794

query I rowsort
SELECT - 53 * col2 AS col0 FROM tab0 AS cor0
----
-1749
-4346
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2596
SELECT ( - col2 ) DIV cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2596
SELECT ( - col2 ) / cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col2 + - ( + col0 ) * col0 + - 72 FROM tab0 AS cor0
----
-1296
-615
-7911

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + ( + col1 ) * + col0 + 0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - + col1 * + 60 + 68 * cor0.col0 FROM tab2 AS cor0
----
-1384
1764
4352

query I rowsort
SELECT tab1.col0 * col0 * - col2 + + col2 + + tab1.col1 * + col1 FROM tab1
----
-233315
-614135
244

query I rowsort
SELECT 23 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + col1 + 5 FROM tab2 AS cor0
----
22
36
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2604
SELECT ALL - col1 * CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL - col1 * CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2605
SELECT DISTINCT - - col1 * col0 + + CAST( NULL AS DECIMAL ) * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - - col1 * col0 + + CAST ( NULL AS REAL ) * + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 67 + col0 * cor0.col1 FROM tab2 AS cor0
----
1410
284
4669

query I rowsort
SELECT DISTINCT + col1 * - col2 + - 54 FROM tab2 cor0
----
-1588
-700
-891

query I rowsort
SELECT + col1 * + cor0.col1 + 94 FROM tab0 AS cor0
----
7490
8375
9503

query I rowsort
SELECT DISTINCT - + col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2610
SELECT ALL col2 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL col2 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * col0 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT - ( col1 ) AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT 46 * + col1 * + 65 FROM tab0 AS cor0
----
257140
272090
290030

query I rowsort
SELECT + 0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - tab0.col0 * 36 * + col2 FROM tab0
----
-1260
-262728
-28512

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2616
SELECT ALL - col1 + + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - col1 + + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col2 ) * - col0 + - 3 AS col0 FROM tab2 AS cor0
----
186
2025
2999

query I rowsort
SELECT DISTINCT ( + col1 ) - + col2 AS col0 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT + cor0.col0 + - col1 DIV 19 AS col0 FROM tab1 AS cor0
----
2
64
80

skipif mysql # not compatible
query I rowsort label-2619
SELECT + cor0.col0 + - col1 / 19 AS col0 FROM tab1 AS cor0
----
2
64
80

query I rowsort
SELECT ALL col0 * tab0.col0 * + col0 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT DISTINCT - col1 * 49 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT + - col1 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + - ( - cor0.col0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT 92 - - col1 AS col2 FROM tab0
----
178
183
189

query I rowsort
SELECT ALL - col1 * + cor0.col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-2626
SELECT + col1 * col2 DIV col1 col2 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2626
SELECT + col1 * col2 / col1 col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT 60 + + 51 * col2 FROM tab1 AS cor0
----
2814
2967
4956

onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT DISTINCT col0 - - ( col2 ) DIV col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT col0 - - ( col2 ) / col1 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 + tab2.col2 - tab2.col0 AS col1 FROM tab2
----
-26
-3
47

query I rowsort
SELECT 38 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT col1 + col2 + col1 FROM tab2
----
144
72
89

query I rowsort
SELECT 10 + 99 AS col2 FROM tab2
----
109
109
109

query I rowsort
SELECT ALL + col0 * - ( col1 ) * + col2 + col0 AS col0 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT + 62 - col2 * + tab2.col0 AS col0 FROM tab2
----
-127
-1966
-2940

query I rowsort
SELECT + col2 + col2 + + col0 FROM tab2
----
130
155
61

query I rowsort
SELECT + 82 * ( + col2 * + 41 ) + col0 - - col1 AS col0 FROM tab2
----
127852
87549
90812

query I rowsort
SELECT DISTINCT col0 + - 89 AS col2 FROM tab2 AS cor0
----
-10
-11
-82

query I rowsort
SELECT DISTINCT + - 83 + - col1 AS col1 FROM tab1 AS cor0
----
-109
-93
-96

query I rowsort
SELECT - - ( + cor0.col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT - col2 DIV + col0 + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-2640
SELECT - col2 / + col0 + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2641
SELECT + + CAST( NULL AS DECIMAL ) * + col0 * + col0 + - CAST( col2 AS DECIMAL ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT + + CAST ( NULL AS REAL ) * + col0 * + col0 + - CAST ( col2 AS REAL ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2642
SELECT ALL CAST( 25 AS SIGNED ) * col1 + + col2 * - 22 FROM tab2
----
-411
181
903

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL CAST ( 25 AS INTEGER ) * col1 + + col2 * - 22 FROM tab2
----
-411
181
903

query I rowsort
SELECT - cor0.col1 * + col0 + col0 AS col0 FROM tab1 cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2644
SELECT - + ( col0 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT - + ( col0 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + col2 * + col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL + + col0 * - col1 + - col2 FROM tab0 cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 * + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL + + col2 * + col0 + - col0 + + col1 FROM tab1 AS cor0
----
185
3594
7613

query I rowsort
SELECT DISTINCT - - ( 90 ) - col2 * - 73 * - col1 AS col1 FROM tab1 AS cor0
----
-102402
-41520
-91014

query I rowsort
SELECT + col0 + col1 * - col2 * - col1 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT DISTINCT - 39 * col0 - + col0 * + col1 * cor0.col1 AS col2 FROM tab2 cor0
----
-25912
-274560
-7000

query I rowsort
SELECT DISTINCT 10 + col1 AS col0 FROM tab2
----
27
41
69

query I rowsort
SELECT DISTINCT - col0 + 76 AS col1 FROM tab0
----
-13
41
52

query I rowsort
SELECT - col1 * col1 + 41 * - col1 AS col2 FROM tab0 AS cor0
----
-10922
-12012
-13386

query I rowsort
SELECT ALL + col0 * - col0 + + ( col0 ) FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT - - col2 + col1 * + 88 * - 50 + col2 FROM tab1 AS cor0
----
-114292
-43886
-57008

query I rowsort
SELECT ALL - 1 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT DISTINCT + 85 FROM tab1, tab2, tab1 AS cor0
----
85

query I rowsort
SELECT + 18 * - col0 AS col0 FROM tab2
----
-126
-1404
-1422

query I rowsort
SELECT + + col0 * col1 - ( - col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-182
-5332
-6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-2662
SELECT ALL - col2 DIV - col2 - 49 AS col1 FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - col2 / - col2 - 49 AS col1 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + 51 AS col2 FROM tab0 AS cor0
----
-38
16
27

query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - ( - 45 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT - col2 * + col1 * 9 FROM tab2
----
-13806
-5814
-7533

query I rowsort
SELECT DISTINCT + col1 * ( 87 ) * + col2 FROM tab1 AS cor0
----
108576
122148
49590

query I rowsort
SELECT col0 * - 63 AS col0 FROM tab0 AS cor0
----
-1512
-2205
-5607

query I rowsort
SELECT DISTINCT + col0 * col1 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + col2 * ( 54 ) + + col0 AS col1 FROM tab0 AS cor0
----
1806
4517
89

query I rowsort
SELECT - + col0 + + 60 * col1 FROM tab1 AS cor0
----
1557
536
700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2673
SELECT CAST( + cor0.col0 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-2673
SELECT CAST ( + cor0.col0 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col0 * col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL + - 38 * 30 FROM tab0 AS cor0
----
-1140
-1140
-1140

query I rowsort
SELECT ALL cor0.col0 * - 50 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT - + 8 AS col2 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT - 41 - ( col2 ) FROM tab1 AS cor0
----
-137
-95
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT ALL cor0.col1 DIV col1 + - col2 * + cor0.col2 FROM tab0 cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL cor0.col1 / col1 + - col2 * + cor0.col2 FROM tab0 cor0
----
-1088
-6723
0

query I rowsort
SELECT ( + col1 ) - - col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - cor0.col2 + - 90 - - col2 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT + 91 + col0 AS col2 FROM tab0 AS cor0
----
115
126
180

query I rowsort
SELECT ALL + ( + col0 ) * + col0 + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + cor0.col0 * 30 + col1 AS col1 FROM tab1 AS cor0
----
116
1930
2413

query I rowsort
SELECT DISTINCT 77 * - col0 FROM tab2 AS cor0
----
-539
-6006
-6083

query I rowsort
SELECT DISTINCT - cor0.col1 * - 94 AS col2 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT 2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2689
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 28 AS col1 FROM tab0 AS cor0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 + 34 ) col0 FROM tab1
----
114
37
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT col1 DIV col1 + - col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-2692
SELECT col1 / col1 + - col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT ALL col0 * col1 * col1 AS col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - col2 + + ( cor0.col1 ) AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL - 73 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT + + col2 * - col1 + + col2 + - col1 FROM tab1 AS cor0
----
-1165
-1376
-523

query I rowsort
SELECT + 38 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2698
SELECT + CAST( NULL AS SIGNED ) + + 1 * col2 + - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT + CAST ( NULL AS INTEGER ) + + 1 * col2 + - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 40 * - col1 FROM tab1
----
-1040
-400
-520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col0 FROM tab2
----
96
96
96

query I rowsort
SELECT 59 + + col2 + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
122
4212
6555

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2702
SELECT - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * cor0.col1 + col2 + col0 AS col1 FROM tab0 cor0
----
7453
8452
9445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 + col2 col1 FROM tab2 AS cor0
----
-16
-17
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + cor0.col0 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + 23 * + col1 + cor0.col0 + + 13 * col0 * - col2 FROM tab2 AS cor0
----
-1737
-24929
-38556

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * col1 col0 FROM tab2 AS cor0
----
1258
2294
4366

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2709
SELECT - CAST( NULL AS SIGNED ) + 82 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT - CAST ( NULL AS INTEGER ) + 82 * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 91 * col0 * ( - col2 ) + + col0 * - col1 AS col0 FROM tab1 cor0
----
-14820
-332608
-699920

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT ( 92 ) DIV + col1 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2711
SELECT ( 92 ) / + col1 AS col1 FROM tab0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT + col1 DIV 76 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2712
SELECT + col1 / 76 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT + - col0 DIV col0 + ( - col1 ) + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2713
SELECT + - col0 / col0 + ( - col1 ) + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 63 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1311
1467
633

query I rowsort
SELECT DISTINCT - tab0.col0 * col2 * + 63 FROM tab0
----
-2205
-459774
-49896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2716
SELECT ALL + CAST( + 62 AS SIGNED ) FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + CAST ( + 62 AS INTEGER ) FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT col2 * + col2 * - col2 AS col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT - col2 + 12 * + col0 AS col2 FROM tab1 cor0
----
-18
711
864

query I rowsort
SELECT ALL - - col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col2 * + 16 AS col1 FROM tab2 AS cor0
----
-416
-432
-608

query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 AS col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT 7 * + col1 + col1 + - 33 * col0 FROM tab2
----
-2102
-2471
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2723
SELECT DISTINCT + 27 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT + 27 / + col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 25 + + col1 + 76 FROM tab2
----
118
132
160

query I rowsort
SELECT col1 + col1 * - tab1.col2 AS col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT ALL - col0 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL - col0 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) + - col0 * col2 col2 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2729
SELECT ALL + CAST( - cor0.col1 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL + CAST ( - cor0.col1 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - + col1 * col0 + col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT + + 42 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT 73 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT - col2 + col2 * col0 FROM tab0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT + ( + tab1.col0 + tab1.col1 ) DIV - col1 AS col0 FROM tab1
----
-1
-7
-7

skipif mysql # not compatible
query I rowsort label-2734
SELECT + ( + tab1.col0 + tab1.col1 ) / - col1 AS col0 FROM tab1
----
-1
-7
-7

query I rowsort
SELECT - 47 AS col1 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT - - 45 + col1 + col2 * - col0 FROM tab2 AS cor0
----
-113
-1924
-2940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2737
SELECT + CAST( NULL AS DECIMAL ) * col2 * + col1 + ( col2 + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT + CAST ( NULL AS REAL ) * col2 * + col1 + ( col2 + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2738
SELECT ALL - col1 * col1 - + col2 DIV col0 AS col1 FROM tab2
----
-289
-3481
-964

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - col1 * col1 - + col2 / col0 AS col1 FROM tab2
----
-289
-3481
-964

query I rowsort
SELECT - col1 + 1 FROM tab0 AS cor0
----
-85
-90
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2740
SELECT tab2.col0 + + col0 DIV + col1 + col1 FROM tab2
----
100
138
38

skipif mysql # not compatible
query I rowsort label-2740
SELECT tab2.col0 + + col0 / + col1 + col1 FROM tab2
----
100
138
38

query I rowsort
SELECT ALL + col0 + - col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + col2 AS col2 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT col2 DIV - 40 + 80 FROM tab2
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2743
SELECT col2 / - 40 + 80 FROM tab2
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2744
SELECT DISTINCT - tab1.col0 DIV ( 91 * + col2 ) + - 44 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT - tab1.col0 / ( 91 * + col2 ) + - 44 FROM tab1
----
-44

query I rowsort
SELECT 85 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT - tab2.col2 + col0 DIV - col0 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-2746
SELECT - tab2.col2 + col0 / - col0 FROM tab2
----
-27
-28
-39

query I rowsort
SELECT ALL + cor0.col1 * 43 AS col2 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT col0 + - col1 * col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL 38 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3

query I rowsort
SELECT ALL + ( - 62 ) + col0 * - col2 FROM tab2 AS cor0
----
-2090
-251
-3064

query I rowsort
SELECT ALL + ( col2 ) * col2 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2753
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 45 * - 7 AS col2 FROM tab2 AS cor0
----
-315
-315
-315

query I rowsort
SELECT + - col0 * col0 + col0 * - 98 FROM tab0 cor0
----
-16643
-2928
-4655

query I rowsort
SELECT 20 + - 28 AS col1 FROM tab2 AS cor0
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 18 col2 FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT - + col2 * 55 + col0 AS col1 FROM tab2 AS cor0
----
-1352
-1478
-2011

query I rowsort
SELECT DISTINCT 64 * col0 + col0 * 88 FROM tab0 AS cor0
----
13528
3648
5320

query I rowsort
SELECT - col2 * - 51 * col1 - col1 * - ( col1 ) AS col2 FROM tab2
----
33235
43648
81715

query I rowsort
SELECT tab2.col0 + ( col1 + col0 ) FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2762
SELECT DISTINCT - col2 DIV 98 + + col1 + + 97 AS col2 FROM tab0 cor0
----
183
188
194

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT - col2 / 98 + + col1 + + 97 AS col2 FROM tab0 cor0
----
183
188
194

query I rowsort
SELECT ALL - 72 - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2844
3177
9144

query I rowsort
SELECT - col0 * + ( + col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2765
SELECT ALL ( ( - col2 DIV col1 DIV ( col0 ) ) ) * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL ( ( - col2 / col1 / ( col0 ) ) ) * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 61 AS col0 FROM tab2 AS cor0
----
61

query I rowsort
SELECT - + col2 + 80 FROM tab2 AS cor0
----
42
53
54

query I rowsort
SELECT - - col0 + col1 * + 68 AS col0 FROM tab0 AS cor0
----
5872
6277
6631

query I rowsort
SELECT ALL + 84 FROM tab1 cor0
----
84
84
84

query I rowsort
SELECT + 21 * + col1 AS col0 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT 88 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * - col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - 97 + + col1 * col2 FROM tab2 AS cor0
----
1437
549
740

query I rowsort
SELECT 66 AS col2 FROM tab2
----
66
66
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT DISTINCT col0 DIV col1 + 20 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT col0 / col1 + 20 FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL + - col0 * - col0 FROM tab1 cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - cor0.col2 + - ( + col2 * - col2 ) col2 FROM tab1 AS cor0
----
2888
3202
9133

onlyif mysql # use DIV operator for integer division
query I rowsort label-2779
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-2779
SELECT - cor0.col0 / - col0 col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 34 * col1 FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT DISTINCT + + 47 FROM tab0 AS cor0
----
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2782
SELECT DISTINCT - - col0 * + col2 - + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
185
2028
3002

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT - - col0 * + col2 - + col1 / col0 AS col1 FROM tab2 AS cor0
----
185
2028
3002

query I rowsort
SELECT ALL - col0 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + - cor0.col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - + col1 * - col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + 81 * col2 + - ( - col2 ) * col2 FROM tab2
----
2782
2916
4522

query I rowsort
SELECT col1 * - 25 AS col1 FROM tab1 AS cor0
----
-250
-325
-650

query I rowsort
SELECT cor0.col0 * 47 + cor0.col2 FROM tab0 cor0
----
1161
1646
4265

query I rowsort
SELECT + col1 + + ( + col0 ) * col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - + col2 * + ( - col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col1 * 22 AS col2 FROM tab2 AS cor0
----
1298
374
682

query I rowsort
SELECT DISTINCT col2 * - ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - + col1 + col1 * - 81 AS col1 FROM tab1 AS cor0
----
-1066
-2132
-820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2795
SELECT - - col2 * CAST( 62 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
3351
3598
6032

skipif mysql # not compatible
query I rowsort label-2795
SELECT - - col2 * CAST ( 62 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
3351
3598
6032

query I rowsort
SELECT col1 * col2 + + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2797
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2798
SELECT + col2 DIV - ( col0 * tab1.col1 + 65 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2798
SELECT + col2 / - ( col0 * tab1.col1 + 65 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 + ( + col1 ) * col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + - col2 * 63 FROM tab2 AS cor0
----
-1638
-1701
-2394

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2801
SELECT ALL col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( ( + col1 ) ) * col1 + col0 * col2 AS col2 FROM tab0
----
15579
8188
9444

query I rowsort
SELECT + + 22 + - col1 * cor0.col1 FROM tab0 cor0
----
-7374
-8259
-9387

query I rowsort
SELECT + 91 * + col1 AS col0 FROM tab2
----
1547
2821
5369

query I rowsort
SELECT col0 * tab2.col2 + - col2 AS col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT - col1 * - tab2.col2 * + col0 + + col0 AS col0 FROM tab2
----
119730
51113
5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + - cor0.col0 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL - ( - col2 ) + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col0 * + cor0.col1 * 37 AS col0 FROM tab0 cor0
----
125615
299663
76368

query I rowsort
SELECT ALL cor0.col0 * + col0 + col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT ALL - 0 * col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT ALL + - col1 + - col1 DIV col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + - col1 + - col1 / col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + col0 + - cor0.col1 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - - col2 + col2 - + col0 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
-36366
-4104
-99648

query I rowsort
SELECT - col1 * + 90 + col1 FROM tab2 AS cor0
----
-1513
-2759
-5251

query I rowsort
SELECT col0 * - 6 FROM tab0
----
-144
-210
-534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 1 - col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT DISTINCT + ( col1 * + col1 ) FROM tab2
----
289
3481
961

query I rowsort
SELECT ( - 1 ) * col0 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2824
SELECT + - cor0.col1 DIV col1 + col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2824
SELECT + - cor0.col1 / col1 + col1 FROM tab2 AS cor0
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT + 13 DIV col1 + + col1 col0 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2825
SELECT + 13 / col1 + + col1 col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ( - 40 ) * + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-1344
-3369
-75

query I rowsort
SELECT + col2 * - col2 * 71 AS col2 FROM tab2
----
-102524
-47996
-51759

onlyif mysql # use DIV operator for integer division
query I rowsort label-2828
SELECT DISTINCT 3 DIV cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT 3 / cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT + col0 + col1 * - ( - col1 ) AS col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT 10 * + col0 AS col0 FROM tab2
----
70
780
790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col1 FROM tab1 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # use DIV operator for integer division
query I rowsort label-2834
SELECT DISTINCT - col2 DIV - col1 + col2 - col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - col2 / - col1 + col2 - col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * + col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2836
SELECT col2 * col2 * col2 + col2 DIV col2 FROM tab1 cor0
----
157465
185194
884737

skipif mysql # not compatible
query I rowsort label-2836
SELECT col2 * col2 * col2 + col2 / col2 FROM tab1 cor0
----
157465
185194
884737

query I rowsort
SELECT DISTINCT + col2 * + col1 + + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT + col1 + - col0 * - 68 AS col0 FROM tab2 AS cor0
----
507
5363
5389

query I rowsort
SELECT - col0 * 16 - col1 FROM tab0 AS cor0
----
-1515
-470
-657

query I rowsort
SELECT DISTINCT - ( + col2 ) + ( - tab0.col0 ) AS col1 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT - tab2.col2 * + tab2.col2 * + col1 + col2 - + col0 FROM tab2
----
-22579
-24589
-39936

query I rowsort
SELECT + col1 + col2 * col2 + - col0 FROM tab0
----
1151
63
6726

query I rowsort
SELECT - col0 * col1 + - tab1.col2 + - col0 AS col0 FROM tab1
----
-1216
-135
-761

query I rowsort
SELECT ALL + col2 - col0 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT - col1 * col1 - col2 FROM tab1
----
-157
-265
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + tab2.col1 * + col1 col0 FROM tab2
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - tab1.col0 col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 * + cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - + col2 * - col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - cor0.col1 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - + col2 + cor0.col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL col0 + col0 + + col1 FROM tab2 AS cor0
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col2 - - col1 * + col0 col1 FROM tab0 AS cor0
----
15561
3492
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT cor0.col2 - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - + col1 * col2 * - col0 FROM tab1 AS cor0
----
36480
4212
99840

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) NOT BETWEEN ( + col0 * - col2 * - col1 + - col0 ) AND NULL AND ( NULL ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT + 18 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2861
SELECT + 18 / + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2862
SELECT - 77 + cor0.col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-73
-77
-77

skipif mysql # not compatible
query I rowsort label-2862
SELECT - 77 + cor0.col1 / col0 AS col0 FROM tab2 AS cor0
----
-73
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col2 FROM tab0
----
35
35
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT DISTINCT col2 DIV ( + col0 ) FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT col2 / ( + col0 ) FROM tab1
----
0
1
18

query I rowsort
SELECT ALL + 91 AS col0 FROM tab1
----
91
91
91

query I rowsort
SELECT DISTINCT 35 FROM tab1 cor0
----
35

query I rowsort
SELECT DISTINCT - col2 * col1 + cor0.col0 AS col2 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col2 * - col1 * col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT - col1 * - col1 * + col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - col1 * tab2.col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL - 68 + + col0 AS col2 FROM tab0 AS cor0
----
-33
-44
21

query I rowsort
SELECT - ( - col0 ) + + cor0.col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col1 - 61 * + col1 AS col2 FROM tab0
----
-5160
-5460
-5820

query I rowsort
SELECT ALL 22 FROM tab1, tab1 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT tab2.col1 + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT col1 + 96 FROM tab0
----
182
187
193

query I rowsort
SELECT 91 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + cor0.col0 + ( + col1 ) col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL + cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + + col1 * col1 - + 30 FROM tab2 AS cor0
----
259
3451
931

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2883
SELECT ALL + ( col0 ) + + CAST( NULL AS SIGNED ) + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + ( col0 ) + + CAST ( NULL AS INTEGER ) + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 96 - - col1 AS col2 FROM tab1 AS cor0
----
-70
-83
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2885
SELECT - cor0.col2 * + col1 + ( + ( col2 ) ) DIV 1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-2885
SELECT - cor0.col2 * + col1 + ( + ( col2 ) ) / 1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + col2 - col2 * + col0 AS col1 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT col2 * col2 + ( ( col1 ) ) FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + col0 * col0 + 1 + + col0 FROM tab0 AS cor0
----
1261
601
8011

query I rowsort
SELECT - col2 * cor0.col0 - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT col0 + + cor0.col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - 74 + col0 FROM tab1 cor0
----
-10
-71
6

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col0 * + col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 32 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
2060
221
3034

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + col2 * 21 col0 FROM tab0 AS cor0
----
118
3531
9184

query I rowsort
SELECT + col1 * - col1 - + ( col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-1922
-578
-6962

query I rowsort
SELECT ALL 56 * col2 * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
1995
408777
44376

query I rowsort
SELECT DISTINCT - + col2 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - col1 + + col2 * col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - - col1 + cor0.col0 * ( - col2 + col2 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + + 33 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + - cor0.col1 + col2 * col0 + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
347
3997
5987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col2 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT DISTINCT - col1 DIV + cor0.col2 + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1091
-6725
-98

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - col1 / + cor0.col2 + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1091
-6725
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2905
SELECT DISTINCT - col0 * - CAST( + col2 AS SIGNED ) + col2 col1 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT - col0 * - CAST ( + col2 AS INTEGER ) + col2 col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + col1 + col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - col0 + + 36 FROM tab1 cor0
----
-28
-44
33

query I rowsort
SELECT + col1 + 64 * - col1 * col2 AS col2 FROM tab0 AS cor0
----
-181546
-477477
-6111

query I rowsort
SELECT + col0 + col1 * + col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + ( cor0.col0 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2912
SELECT ALL col0 * 65 - - cor0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL col0 * 65 - - cor0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 18 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2914
SELECT tab1.col1 - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT tab1.col1 - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 96 * + col0 FROM tab0 AS cor0
----
2304
3360
8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 40 * - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-163840
-256000
-360

onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT + + 85 DIV - 97 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT + + 85 / - 97 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * 71 + col0 FROM tab0 AS cor0
----
1728
2520
6408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2921
SELECT DISTINCT - 86 + cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-85
-86

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - 86 + cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
-85
-86

query I rowsort
SELECT 21 * + 83 FROM tab1 AS cor0
----
1743
1743
1743

query I rowsort
SELECT + + ( + 83 ) FROM tab0 cor0
----
83
83
83

query I rowsort
SELECT ALL 37 AS col0 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + col2 * - tab0.col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + + ( col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT - + cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT - + cor0.col1 / + col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT ( - col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - cor0.col1 + - col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab0 AS cor0
----
72

query I rowsort
SELECT 1 * + col0 AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - ( col0 ) * + col2 + - col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - 82 * - col0 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT - ( col0 * col0 ) AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col2 * - 9 FROM tab2
----
-234
-243
-342

query I rowsort
SELECT DISTINCT - + col1 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col2 + ( col2 ) + col1 * col0 FROM tab1 AS cor0
----
1232
186
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2940
SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 * col1 + - ( col0 ) AS col0 FROM tab0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2943
SELECT + tab0.col1 / col0 + CAST( NULL AS SIGNED ) * tab0.col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2943
SELECT + tab0.col1 / col0 + CAST ( NULL AS INTEGER ) * tab0.col0 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 20 * + col2 FROM tab1
----
1106
1150
1933

query I rowsort
SELECT - col2 * - ( col2 ) - + col0 * col2 FROM tab1
----
-399
1536
2754

query I rowsort
SELECT ALL tab2.col1 + - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 * 15 + col0 AS col1 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT - + col1 * + col0 + + cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col1 * + 59 + col1 AS col2 FROM tab2 AS cor0
----
-1798
-3422
-986

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2951
SELECT col2 + + col2 DIV - col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-2951
SELECT col2 + + col2 / - col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT - - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + + col0 * - col0 - col1 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT col1 * 59 AS col1 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT + col2 - - ( + 33 + - col0 ) * col2 FROM tab1 AS cor0
----
-1710
-4416
1674

query I rowsort
SELECT cor0.col2 * 23 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to abfa7adc878b672857b09ebcf62b532b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT - col2 DIV - 26 col0 FROM tab0 AS cor0
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2958
SELECT - col2 / - 26 col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT col2 * ( + col2 ) FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2960
SELECT + - col0 DIV col1 AS col0 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2960
SELECT + - col0 / col1 AS col0 FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT + 72 + 24 * col2 FROM tab2 AS cor0
----
696
720
984

query I rowsort
SELECT DISTINCT 44 FROM tab1, tab2 cor0
----
44

query I rowsort
SELECT + cor0.col0 + 54 FROM tab1 AS cor0
----
118
134
57

query I rowsort
SELECT ALL col0 - - col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + 18 FROM tab2, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT + col2 * - col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT 88 AS col2 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT DISTINCT - ( 0 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 47 - + tab2.col2 FROM tab2, tab0 AS cor0
----
20
21
9

query I rowsort
SELECT DISTINCT 44 * - col2 FROM tab1
----
-2376
-2508
-4224

query I rowsort
SELECT 26 AS col0 FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-54
-57
-96

query I rowsort
SELECT ( 21 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - col0 * 96 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT + col1 + - 51 FROM tab2
----
-20
-34
8

query I rowsort
SELECT col1 + tab0.col1 AS col2 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT ALL tab1.col1 DIV - ( col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL tab1.col1 / - ( col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 * 71 AS col0 FROM tab1 AS cor0
----
3834
4047
6816

query I rowsort
SELECT - col2 + - ( + col1 ) FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2981
SELECT - col1 DIV ( - col2 * col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2981
SELECT - col1 / ( - col2 * col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + 72 col2 FROM tab1 AS cor0
----
3888
4104
6912

onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT - col1 DIV + col1 - col2 AS col0 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2983
SELECT - col1 / + col1 - col2 AS col0 FROM tab0
----
-2
-34
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT ( col1 ) DIV - tab2.col0 - col0 * ( col1 ) AS col2 FROM tab2
----
-1343
-221
-4602

skipif mysql # not compatible
query I rowsort label-2984
SELECT ( col1 ) / - tab2.col0 - col0 * ( col1 ) AS col2 FROM tab2
----
-1343
-221
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2985
SELECT - CAST( NULL AS SIGNED ) - + ( - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT - CAST ( NULL AS INTEGER ) - + ( - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT DISTINCT - 75 + col1 DIV col0 FROM tab1
----
-67
-75

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT - 75 + col1 / col0 FROM tab1
----
-67
-75

query I rowsort
SELECT DISTINCT + 70 + col2 * - col1 AS col0 FROM tab1
----
-1178
-1334
-500

query I rowsort
SELECT col2 * - 88 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT + 52 * + 90 * - col2 FROM tab2 AS cor0
----
-121680
-126360
-177840

query I rowsort
SELECT - 15 + col2 FROM tab1 AS cor0
----
39
42
81

query I rowsort
SELECT DISTINCT 68 + + col0 + col1 FROM tab0 AS cor0
----
178
200
248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col0 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT ALL - col1 + - col1 - + ( - col2 ) * - cor0.col2 FROM tab0 AS cor0
----
-1261
-195
-6906

query I rowsort
SELECT + col0 + col0 AS col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT ( 22 + col0 ) FROM tab0
----
111
46
57

query I rowsort
SELECT DISTINCT + col2 + + col1 + - ( 61 ) * col0 AS col1 FROM tab2 AS cor0
----
-369
-4673
-4764

query I rowsort
SELECT DISTINCT + col0 * col1 + col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT col2 * col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL - 49 FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT + col1 * - col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - 93 * col1 FROM tab2 AS cor0
----
-1581
-2883
-5487

query I rowsort
SELECT + col1 + - col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT ( 22 ) * col0 * + col2 AS col0 FROM tab2
----
4158
44616
66044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col2 * - 46 col0 FROM tab2 cor0
----
1137
1211
1731

query I rowsort
SELECT ALL + col0 * + 56 FROM tab2
----
392
4368
4424

query I rowsort
SELECT + 19 + col2 FROM tab0
----
101
20
52

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT 79 FROM tab2, tab1 cor0
----
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT - + col1 DIV 38 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3010
SELECT - + col1 / 38 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + tab2.col1 + col1 * col0 AS col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT - cor0.col0 + - 98 * - col2 AS col1 FROM tab1 AS cor0
----
5289
5522
9328

query I rowsort
SELECT col1 * 97 + - cor0.col0 FROM tab2 AS cor0
----
1570
3000
5645

query I rowsort
SELECT ALL + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + - col1 * col1 + + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3016
SELECT ALL - col1 * col0 + - col1 DIV col0 FROM tab1 cor0
----
-1040
-640
-86

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL - col1 * col0 + - col1 / col0 FROM tab1 cor0
----
-1040
-640
-86

query I rowsort
SELECT DISTINCT + + col1 + - col2 * col0 * - col0 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT - 46 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT DISTINCT - 7 FROM tab1, tab2, tab2 AS cor0
----
-7

query I rowsort
SELECT DISTINCT tab0.col1 + - tab0.col1 AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * - col0 col1 FROM tab1
----
-261
-5568
-6960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * col2 col0 FROM tab0
----
-1518
-3772
-46

query I rowsort
SELECT DISTINCT + col2 * col2 + col2 * col0 AS col0 FROM tab1
----
16896
3078
6897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 31 col0 FROM tab2
----
109
110
38

query I rowsort
SELECT DISTINCT col1 * - 28 FROM tab0
----
-2408
-2548
-2716

query I rowsort
SELECT DISTINCT + col2 * - col0 + ( col1 ) * col1 AS col2 FROM tab1 AS cor0
----
-3548
-7511
514

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3027
SELECT - col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT - col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3028
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - ( + col2 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col2 * 42 FROM tab1 AS cor0
----
2268
2394
4032

onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT ALL - cor0.col0 DIV + ( + col1 ) + + col1 * ( col2 ) col2 FROM tab2 AS cor0
----
1533
642
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - cor0.col0 / + ( + col1 ) + + col1 * ( col2 ) col2 FROM tab2 AS cor0
----
1533
642
837

query I rowsort
SELECT ALL - + col2 + 58 * + col1 * cor0.col0 FROM tab2 AS cor0
----
12559
266890
77856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3033
SELECT DISTINCT - - col2 + CAST( - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - - col2 + CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT cor0.col2 + + 22 AS col1 FROM tab0 AS cor0
----
104
23
55

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - col0 * 26 * 28 FROM tab1 AS cor0
----
-2184
-46592
-58240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3038
SELECT DISTINCT + cor0.col2 * CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT + cor0.col2 * CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3040
SELECT - - col1 DIV + cor0.col0 + + 37 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2006
2109
3552

skipif mysql # not compatible
query I rowsort label-3040
SELECT - - col1 / + cor0.col0 + + 37 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2006
2109
3552

query I rowsort
SELECT + col2 + + 84 * - 50 FROM tab0 AS cor0
----
-4118
-4167
-4199

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT DISTINCT + col1 DIV + col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + col1 / + col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
12

query I rowsort
SELECT ALL 88 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT DISTINCT ( col1 ) DIV col0 + 96 AS col1 FROM tab2 AS cor0
----
100
96

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT ( col1 ) / col0 + 96 AS col1 FROM tab2 AS cor0
----
100
96

query I rowsort
SELECT DISTINCT + + col0 + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ( col0 ) + col2 * + ( col2 ) FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3049
SELECT CAST( NULL AS SIGNED ) * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT CAST ( NULL AS INTEGER ) * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT - 15 DIV col1 + cor0.col2 FROM tab1 AS cor0
----
54
56
95

skipif mysql # not compatible
query I rowsort label-3050
SELECT - 15 / col1 + cor0.col2 FROM tab1 AS cor0
----
54
56
95

query I rowsort
SELECT + - col2 * - ( col1 ) + + 74 AS col1 FROM tab0 AS cor0
----
171
2912
7536

query I rowsort
SELECT + col1 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT + col0 DIV - col0 + + 28 AS col0 FROM tab2 cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-3053
SELECT + col0 / - col0 + + 28 AS col0 FROM tab2 cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT col2 * - cor0.col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT 76 * col2 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT DISTINCT + + 28 + - col1 AS col2 FROM tab1 AS cor0
----
15
18
2

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3059
SELECT col1 + col2 DIV col0 - - col0 * - col0 AS col1 FROM tab2 AS cor0
----
-15
-6025
-6224

skipif mysql # not compatible
query I rowsort label-3059
SELECT col1 + col2 / col0 - - col0 * - col0 AS col1 FROM tab2 AS cor0
----
-15
-6025
-6224

query I rowsort
SELECT ALL - - col1 + col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + col2 * - col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT + 84 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-84

skipif mysql # not compatible
query I rowsort label-3062
SELECT + 84 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-84

query I rowsort
SELECT + - 89 * col1 FROM tab2 cor0
----
-1513
-2759
-5251

query I rowsort
SELECT - col2 + - ( 82 ) AS col2 FROM tab1 AS cor0
----
-136
-139
-178

query I rowsort
SELECT ALL - 44 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT - cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT col2 + - 5 AS col0 FROM tab2 AS cor0
----
21
22
33

query I rowsort
SELECT ALL + col2 * col2 + + col2 + - tab0.col0 FROM tab0
----
-33
1098
6717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3069
SELECT + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT 69 DIV - 74 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT 69 / - 74 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - cor0.col1 ) * col1 + ( col2 ) AS col2 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3072
SELECT - col2 + col1 DIV - col1 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-3072
SELECT - col2 + col1 / - col1 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT - 24 * col1 * + col0 + 78 FROM tab0 AS cor0
----
-194298
-49458
-81402

query I rowsort
SELECT + - 94 + col1 FROM tab2 AS cor0
----
-35
-63
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3075
SELECT - - ( - col2 ) DIV + ( - col2 * col1 ) + - 62 * col0 * col2 AS col2 FROM tab0 AS cor0
----
-2170
-452476
-49104

skipif mysql # not compatible
query I rowsort label-3075
SELECT - - ( - col2 ) / + ( - col2 * col1 ) + - 62 * col0 * col2 AS col2 FROM tab0 AS cor0
----
-2170
-452476
-49104

query I rowsort
SELECT - 28 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 59 * 66 col2 FROM tab1 AS cor0
----
-11682
-249216
-311520

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT + + col2 DIV 47 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3080
SELECT + + col2 / 47 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - 42 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT ALL col2 * ( 16 * col0 ) FROM tab0
----
116768
12672
560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3084
SELECT - CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-3084
SELECT - CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3085
SELECT CAST( NULL AS DECIMAL ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT CAST ( NULL AS REAL ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab2 cor0, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query I rowsort
SELECT ALL - - ( - cor0.col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - ( + col0 ) * + col0 + ( col0 * col2 ) AS col0 FROM tab1 AS cor0
----
-448
1280
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col0 FROM tab0, tab0 AS cor0
----
44

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 40 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT - col0 * col1 * cor0.col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT col1 * + col1 + col1 AS col1 FROM tab0 cor0
----
7482
8372
9506

query I rowsort
SELECT - 16 * + col0 + - col1 FROM tab2 AS cor0
----
-1281
-1307
-143

query I rowsort
SELECT ALL - + ( + cor0.col2 ) * + cor0.col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3098
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2, tab0 cor3
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * col2 col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT ( + col2 ) * + col2 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col2 FROM tab0
----
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT DISTINCT + col2 DIV col0 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT + col2 / col0 AS col1 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT 75 * col0 AS col2 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT 72 * + col2 AS col0 FROM tab1
----
3888
4104
6912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3108
SELECT ALL + - col2 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + - col2 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 + col2 * 58 FROM tab2 AS cor0
----
1573
1586
2283

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT - tab2.col0 + cor0.col1 * cor0.col0 * 33 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 4bf88e3357430aff6aef71d8958ebb93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 - 76 * - col2 col1 FROM tab0
----
13694
173
5346

query I rowsort
SELECT - col2 + cor0.col1 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT 28 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT + 6 + - tab2.col2 FROM tab2
----
-20
-21
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT col0 DIV - col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3116
SELECT col0 / - col0 AS col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + + col1 + - 89 col0 FROM tab2
----
1372
646
671

onlyif mysql # use DIV operator for integer division
query I rowsort label-3118
SELECT ALL + col1 + tab0.col2 DIV + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + col1 + tab0.col2 / + col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3119
SELECT ALL cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT - col0 DIV col0 + - cor0.col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-3120
SELECT - col0 / col0 + - cor0.col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT + + col0 * - col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL + - col0 - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 21 col2 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT col1 * + 65 + 96 FROM tab0 AS cor0
----
5686
6011
6401

query I rowsort
SELECT ALL + cor0.col2 + - col2 * - col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - cor0.col1 + - col0 AS col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT cor0.col2 + - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT 79 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT ALL - 38 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT ALL - col1 + - cor0.col0 + 69 FROM tab2 AS cor0
----
-27
-68
31

query I rowsort
SELECT - - col1 * col1 + col0 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-3932
-6151
670

query I rowsort
SELECT DISTINCT + col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col2 + + cor0.col2 + col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT + - 31 + - col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-1279
-1435
-601

onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT ALL + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + col1 / + col1 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3138
SELECT - - col1 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT - - col1 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + 90 * - col0 FROM tab2 AS cor0
----
-599
-6961
-7093

onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT DISTINCT + cor0.col0 * col2 DIV col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT + cor0.col0 * col2 / col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col0 + + 85 FROM tab0 AS cor0
----
-4
50
61

query I rowsort
SELECT ALL + col0 * col2 - cor0.col0 AS col1 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT - - col2 * + 52 FROM tab2 cor0
----
1352
1404
1976

onlyif mysql # use DIV operator for integer division
query I rowsort label-3144
SELECT ALL - col1 + 52 DIV - col0 FROM tab2 AS cor0
----
-17
-38
-59

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL - col1 + 52 / - col0 FROM tab2 AS cor0
----
-17
-38
-59

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab1
----
58

query I rowsort
SELECT DISTINCT + 16 * tab0.col1 + - tab0.col1 FROM tab0
----
1290
1365
1455

query I rowsort
SELECT ALL + 34 AS col1 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL 34 * - col0 FROM tab1 AS cor0
----
-102
-2176
-2720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3150
SELECT DISTINCT CAST( - 1 AS SIGNED ) * + col0 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT CAST ( - 1 AS INTEGER ) * + col0 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - 80 * 15 - col2 FROM tab2 AS cor0
----
-1226
-1227
-1238

query I rowsort
SELECT col1 + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL + + col2 * + col1 * + col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL ( + col0 ) AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + col2 + cor0.col2 + col0 FROM tab0 cor0
----
253
37
90

query I rowsort
SELECT ALL + 86 * + col0 AS col2 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT DISTINCT + + col1 * col1 * col2 FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT ( 55 ) AS col1 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT ( col2 ) * col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 14 * - col2 - col2 * col0 AS col2 FROM tab1 AS cor0
----
-4446
-9024
-918

query I rowsort
SELECT - 66 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT + col1 * - 37 FROM tab0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL + tab0.col2 * col2 - - col2 AS col1 FROM tab0
----
1122
2
6806

query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + col1 - + 59 AS col1 FROM tab2 AS cor0
----
-28
-42
0

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort
SELECT + col2 * col0 * col1 + CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT - 58 + - tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7bf6b9c1906a85b1a4f67a824783cce9

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab1 AS cor0, tab0, tab1 cor1
----
-26
-27
-38

query I rowsort
SELECT ( + 52 ) FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - 82 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-25
-28
14

query I rowsort
SELECT ALL - 37 FROM tab0, tab1 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT + 49 AS col1 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT 20 + - cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
-1
24
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT ( + 48 ) DIV col0 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3175
SELECT ( + 48 ) / col0 AS col2 FROM tab0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3176
SELECT ALL CAST( 10 AS SIGNED ) + - col2 * ( ( col2 ) ) * + CAST( col2 * col2 AS SIGNED ) AS col1 FROM tab0
----
-1185911
-45212166
9

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL CAST ( 10 AS INTEGER ) + - col2 * ( ( col2 ) ) * + CAST ( col2 * col2 AS INTEGER ) AS col1 FROM tab0
----
-1185911
-45212166
9

query I rowsort
SELECT - ( col1 * + 23 ) FROM tab1
----
-230
-299
-598

query I rowsort
SELECT + + 58 FROM tab2 cor0
----
58
58
58

query I rowsort
SELECT col1 + col0 * + col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3180
SELECT DISTINCT - col0 + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT - col0 + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - col1 + + ( col2 ) AS col2 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT ALL - 3 + col1 FROM tab2 AS cor0
----
14
28
56

query I rowsort
SELECT ALL - 51 AS col1 FROM tab1 cor0
----
-51
-51
-51

query I rowsort
SELECT ALL + - 25 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT 73 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT - tab2.col0 + + col2 * + 2 FROM tab2
----
-26
-3
47

query I rowsort
SELECT DISTINCT - col2 + 73 * col0 FROM tab1 AS cor0
----
165
4615
5744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3188
SELECT + - col2 * + 40 * ( col1 * CAST( + 40 AS SIGNED ) ) FROM tab2 AS cor0
----
-1033600
-1339200
-2454400

skipif mysql # not compatible
query I rowsort label-3188
SELECT + - col2 * + 40 * ( col1 * CAST ( + 40 AS INTEGER ) ) FROM tab2 AS cor0
----
-1033600
-1339200
-2454400

query I rowsort
SELECT col2 + - col1 * + 79 FROM tab0 AS cor0
----
-6761
-7107
-7662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col1 + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT 35 + 82 FROM tab0 AS cor0
----
117
117
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 18 * col0 col0 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT ALL + + col2 * col1 * col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - 31 AS col2 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT 97 * - 34 AS col1 FROM tab0 AS cor0
----
-3298
-3298
-3298

query I rowsort
SELECT - + 26 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT + cor0.col2 * col2 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT col2 * + ( + col2 ) AS col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT cor0.col0 DIV 99 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT cor0.col0 / 99 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3202
SELECT - col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT - col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + cor0.col0 * + 59 FROM tab1 cor0
----
177
3776
4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col1 FROM tab0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT + 80 DIV + col1 - 23 * - 17 FROM tab1
----
394
397
399

skipif mysql # not compatible
query I rowsort label-3205
SELECT + 80 / + col1 - 23 * - 17 FROM tab1
----
394
397
399

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL col0 * ( + ( col1 ) ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + - col0 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - - col0 * 48 AS col1 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT + col0 * 65 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT DISTINCT ( + col1 * + col0 + - 29 ) FROM tab2
----
1314
188
4573

onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT 64 * ( col0 ) DIV - cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
-13
-2239
13

skipif mysql # not compatible
query I rowsort label-3212
SELECT 64 * ( col0 ) / - cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
-13
-2239
13

query I rowsort
SELECT - + ( col0 ) - + col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + ( + col1 ) * col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - 71 * + col2 + ( + col2 ) * + col2 FROM tab1 AS cor0
----
-798
-918
2400

query I rowsort
SELECT DISTINCT - cor0.col0 - - col1 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col0 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT - col2 + - col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT - col2 + - col2 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 * + col2 + col0 * + col2 FROM tab1 AS cor0
----
1188
4731
9504

query I rowsort
SELECT DISTINCT + + cor0.col2 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col2 + - tab0.col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - col0 * col1 + + col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT + + col0 DIV col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3223
SELECT + + col0 / col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 AS col2 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT 39 FROM tab1 AS cor0
----
39

query I rowsort
SELECT + cor0.col0 + col2 * col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - 76 AS col2 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL + col0 * + col0 + col1 * col2 * col2 FROM tab2 AS cor0
----
22648
30789
45968

query I rowsort
SELECT ( col2 ) * - col2 * - col1 + - col2 FROM tab0 cor0
----
611802
93621
96

query I rowsort
SELECT ALL - - col1 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - - col0 * - col0 * col1 AS col1 FROM tab0 cor0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-3232
SELECT DISTINCT + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT + col1 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + ( col1 ) + col0 * col1 AS col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT - - col1 + col0 * cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT ALL + 96 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - 66 FROM tab0 cor0
----
-66

query I rowsort
SELECT DISTINCT + col1 + col1 * col0 + + col1 FROM tab1 AS cor0
----
1066
130
660

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col1 - + col1 * + col2 * - cor0.col2 FROM tab0 cor0
----
-9312
603603
86258

query I rowsort
SELECT ALL col1 - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - col0 * col1 - col0 * - cor0.col2 FROM tab0 AS cor0
----
-1272
-3360
-801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3242
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) + col2 col1 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( + cor0.col2 ) ) col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 36 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL + cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL + 95 * - col0 AS col2 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT ALL - col2 * ( + col2 ) FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL 42 * + 32 - - col0 * col2 * + tab2.col2 AS col2 FROM tab2
----
115420
54072
6447

query I rowsort
SELECT ( 93 ) * col0 + - col1 + + col2 FROM tab2
----
647
7221
7368

query I rowsort
SELECT ALL + col0 * col2 + - cor0.col2 * col1 AS col0 FROM tab2 cor0
----
-648
2356
494

query I rowsort
SELECT ALL - + col1 * + cor0.col0 - - col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 41 ) * + col1 col2 FROM tab1
----
-1066
-410
-533

query I rowsort
SELECT + ( col0 + - col2 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT col0 * - col0 + + tab2.col1 FROM tab2
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-3258
SELECT + CAST( + 1 AS SIGNED ) * - col0 DIV col2 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT + CAST ( + 1 AS INTEGER ) * - col0 / col2 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col1 * + ( + col1 ) FROM tab2
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3261
SELECT ALL - CAST( + col1 AS SIGNED ) - + tab2.col1 * col0 AS col1 FROM tab2
----
-1360
-248
-4661

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - CAST ( + col1 AS INTEGER ) - + tab2.col1 * col0 AS col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT col1 + tab1.col2 * + col2 + col0 AS col1 FROM tab1
----
2945
3323
9309

query I rowsort
SELECT ALL 54 + - col2 - + col2 * tab0.col0 * col0 FROM tab0
----
-1172
-18987
-649550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3264
SELECT ALL + CAST( + 59 AS SIGNED ) - - col0 FROM tab2
----
137
138
66

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + CAST ( + 59 AS INTEGER ) - - col0 FROM tab2
----
137
138
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3265
SELECT DISTINCT - col1 DIV tab1.col2 - col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT - col1 / tab1.col2 - col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + 49 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3267
SELECT DISTINCT - col2 DIV col1 + + ( col2 * - col1 ) + - col2 FROM tab1 AS cor0
----
-1351
-1460
-632

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT - col2 / col1 + + ( col2 * - col1 ) + - col2 FROM tab1 AS cor0
----
-1351
-1460
-632

query I rowsort
SELECT - col2 + - 67 FROM tab0 AS cor0
----
-100
-149
-68

query I rowsort
SELECT ALL - + col0 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3270
SELECT DISTINCT - + col0 + CAST( NULL AS SIGNED ) / 73 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - + col0 + CAST ( NULL AS INTEGER ) / 73 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - tab2.col1 + - tab2.col1 AS col1 FROM tab2
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT ALL + 10 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + 10 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 + + 17 * col2 AS col0 FROM tab1 AS cor0
----
1619
892
959

query I rowsort
SELECT ALL - cor0.col2 + - col2 * col0 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL 2 AS col2 FROM tab1
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT ALL - 43 DIV + 19 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - 43 / + 19 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT + cor0.col1 * - cor0.col2 + + col1 * - 26 FROM tab1 AS cor0
----
-1586
-2080
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + col1 col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - + ( col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - ( + 95 ) + col2 FROM tab1 AS cor0
----
-38
-41
1

query I rowsort
SELECT - col0 + + cor0.col0 * + col0 FROM tab1 AS cor0
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3282
SELECT DISTINCT - col1 + col0 * col1 DIV CAST( col0 AS SIGNED ) col0 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT - col1 + col0 * col1 / CAST ( col0 AS INTEGER ) col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + - col2 * + cor0.col1 + - col1 * col0 * col0 FROM tab2 AS cor0
----
-106743
-2356
-360490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + - col1 * + ( + tab0.col1 ) col1 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT + 62 FROM tab1
----
62
62
62

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - col1 col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + 23 * - col0 AS col2 FROM tab1 AS cor0
----
-1472
-1840
-69

query I rowsort
SELECT DISTINCT + - col2 * col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col0 * + 64 + 6 * - col2 + col2 AS col2 FROM tab1 AS cor0
----
-78
3811
4640

query I rowsort
SELECT - cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col2 + 9 FROM tab0 cor0
----
10
42
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT DISTINCT - + col1 * 39 DIV - col0 + col2 col2 FROM tab0 AS cor0
----
109
121
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - + col1 * 39 / - col0 + col2 col2 FROM tab0 AS cor0
----
109
121
172

query I rowsort
SELECT - cor0.col1 - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col1 + - ( 81 ) AS col2 FROM tab1 AS cor0
----
-107
-91
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT ALL - - col2 DIV + col1 + 75 col1 FROM tab1 AS cor0
----
77
80
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL - - col2 / + col1 + 75 col1 FROM tab1 AS cor0
----
77
80
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT cor0.col0 * col1 + - 26 DIV col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3297
SELECT cor0.col0 * col1 + - 26 / col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + - col0 + col0 * col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT col2 + 93 * - cor0.col1 FROM tab1 AS cor0
----
-1113
-2364
-873

query I rowsort
SELECT ALL + col0 * 9 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT col2 + cor0.col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT 40 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL tab2.col1 * tab2.col0 * + col1 AS col2 FROM tab2
----
22831
271518
6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3304
SELECT ALL + + col1 * + CAST( - col1 AS SIGNED ) - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + + col1 * + CAST ( - col1 AS INTEGER ) - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col1 * 9 col2 FROM tab0 AS cor0
----
-18576
-30555
-72891

query I rowsort
SELECT - col1 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3307
SELECT col2 DIV 52 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT col2 / 52 AS col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT 2 * col2 + col1 DIV col2 FROM tab0 AS cor0
----
165
68
99

skipif mysql # not compatible
query I rowsort label-3308
SELECT 2 * col2 + col1 / col2 FROM tab0 AS cor0
----
165
68
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3309
SELECT - CAST( NULL AS SIGNED ) - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3309
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-3310
SELECT DISTINCT col0 DIV - CAST( 42 AS SIGNED ) FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT col0 / - CAST ( 42 AS INTEGER ) FROM tab2
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT DISTINCT + col2 + - 8 + 81 DIV col0 FROM tab0
----
-5
28
74

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + col2 + - 8 + 81 / col0 FROM tab0
----
-5
28
74

query I rowsort
SELECT - 39 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

query I rowsort
SELECT - 60 * col0 AS col0 FROM tab2 AS cor0
----
-420
-4680
-4740

query I rowsort
SELECT 29 * col2 AS col1 FROM tab0 AS cor0
----
2378
29
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3315
SELECT - col2 + col2 * + CAST( col2 * col0 AS SIGNED ) FROM tab0 AS cor0
----
26103
34
598354

skipif mysql # not compatible
query I rowsort label-3315
SELECT - col2 + col2 * + CAST ( col2 * col0 AS INTEGER ) FROM tab0 AS cor0
----
26103
34
598354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col2 FROM tab0
----
-28
-28
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-3317
SELECT col2 DIV ( - col1 ) + + col1 AS col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-3317
SELECT col2 / ( - col1 ) + + col1 AS col1 FROM tab2
----
15
31
59

query I rowsort
SELECT DISTINCT + ( - 21 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

query I rowsort
SELECT 80 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT 86 * col0 * + 50 AS col0 FROM tab2
----
30100
335400
339700

query I rowsort
SELECT DISTINCT - col1 + col0 * + ( + col2 ) * col1 FROM tab0 cor0
----
3298
664027
68026

query I rowsort
SELECT ALL col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - + 70 + - col0 FROM tab0 AS cor0
----
-105
-159
-94

query I rowsort
SELECT - col2 * + col0 + + 91 + + 65 FROM tab1 AS cor0
----
-3492
-6
-7524

query I rowsort
SELECT DISTINCT + + 0 + + col2 + col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - col0 + - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-15
-69
-96

query I rowsort
SELECT ALL + + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + ( col0 ) * col1 + 48 + - col2 AS col1 FROM tab2 cor0
----
1353
238
4624

onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT cor0.col0 + col0 DIV col1 FROM tab2 cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-3329
SELECT cor0.col0 + col0 / col1 FROM tab2 cor0
----
7
79
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3330
SELECT ALL + CAST( col2 + + col2 AS SIGNED ) AS col2 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + CAST ( col2 + + col2 AS INTEGER ) AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL - + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 80 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-42
-53
-54

query I rowsort
SELECT ALL - ( + col2 ) * + col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT 45 * + col0 AS col2 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT + - 20 AS col1 FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - 3 * + col2 FROM tab1 AS cor0
----
-162
-171
-288

query I rowsort
SELECT - 44 + - 94 + col2 AS col0 FROM tab2 AS cor0
----
-100
-111
-112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + 5 FROM tab0, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL - cor0.col1 - + 62 FROM tab1 AS cor0
----
-72
-75
-88

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d

query I rowsort
SELECT ALL ( - col0 ) * col1 - + 98 AS col2 FROM tab2
----
-1441
-315
-4700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col2 FROM tab2, tab2 AS cor0
----
83

query I rowsort
SELECT ALL 4 - col0 FROM tab1
----
-60
-76
1

query I rowsort
SELECT 29 * + col1 AS col2 FROM tab0
----
2494
2639
2813

query I rowsort
SELECT + 66 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT - - 35 * col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
1226
1929
9839

query I rowsort
SELECT + - 29 + col0 FROM tab0 AS cor0
----
-5
6
60

query I rowsort
SELECT ( ( col1 ) ) + + 84 AS col1 FROM tab1 AS cor0
----
110
94
97

query I rowsort
SELECT - 70 + cor0.col1 FROM tab1 cor0
----
-44
-57
-60

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab2 AS cor1
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

onlyif mysql # use DIV operator for integer division
query I rowsort label-3353
SELECT - 16 + tab0.col1 DIV + col0 + - 83 AS col1 FROM tab0
----
-96
-97
-98

skipif mysql # not compatible
query I rowsort label-3353
SELECT - 16 + tab0.col1 / + col0 + - 83 AS col1 FROM tab0
----
-96
-97
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col2 col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - col1 * + col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT 92 * - col0 FROM tab0 AS cor0
----
-2208
-3220
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3357
SELECT DISTINCT - CAST( col2 AS SIGNED ) * col2 FROM tab0 cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * col2 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT ALL + ( + col0 ) DIV - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL + ( + col0 ) / - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + col0 * - col0 + - ( ( + col2 ) * ( col0 ) ) FROM tab0 AS cor0
----
-1260
-1368
-15219

query I rowsort
SELECT ALL cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 * col2 + + 52 col1 FROM tab1 AS cor0
----
430
451
724

query I rowsort
SELECT ALL + tab0.col0 + + col2 * col2 * 85 FROM tab0
----
120
571629
92589

query I rowsort
SELECT + 66 + - col0 AS col0 FROM tab0 cor0
----
-23
31
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 78 * col1 + - col1 col2 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT - col1 + - cor0.col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - - 15 + col0 FROM tab2 AS cor0
----
22
93
94

query I rowsort
SELECT col0 - - col1 * ( + col0 * + col0 ) FROM tab1 cor0
----
237
41024
83280

onlyif mysql # use DIV operator for integer division
query I rowsort label-3369
SELECT ALL - col1 DIV cor0.col1 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL - col1 / cor0.col1 + col2 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3370
SELECT DISTINCT col1 + col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT col1 + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT cor0.col2 * + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

query I rowsort
SELECT + col2 + 64 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT 63 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT DISTINCT 27 FROM tab2, tab1 AS cor0
----
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3376
SELECT DISTINCT - col2 DIV ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT - col2 / ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3377
SELECT + - col2 + CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT + - col2 + CAST ( NULL AS REAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 91 * - 35 * - col0 FROM tab2 AS cor0
----
22295
248430
251615

query I rowsort
SELECT ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col0 + 27 AS col2 FROM tab2 AS cor0
----
105
106
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - - 51 - - cor0.col2 FROM tab0 cor0
----
133
52
84

query I rowsort
SELECT ALL - - col0 * + col2 + col1 + - col1 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - cor0.col2 * col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT cor0.col1 * - col2 + col2 + col2 AS col0 FROM tab2 AS cor0
----
-1482
-570
-783

query I rowsort
SELECT ALL + + col0 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col2 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT - + 72 * - col2 AS col1 FROM tab2 cor0
----
1872
1944
2736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT ALL - 22 - + col2 DIV col2 FROM tab0 cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - 22 - + col2 / col2 FROM tab0 cor0
----
-23
-23
-23

query I rowsort
SELECT ALL col2 * ( + col2 + tab2.col0 ) FROM tab2
----
2704
4446
918

query I rowsort
SELECT tab2.col0 + - col1 * + col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
26
27
38

query I rowsort
SELECT DISTINCT col2 + - tab1.col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT NULL > ( - col2 + + col2 * + col1 )
----

query I rowsort
SELECT + tab2.col0 * - col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT col2 + col2 * col2 AS col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT - tab0.col1 * + col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - col2 * col0 + col0 NOT IN ( + col1 )
----
54
57
96

query I rowsort
SELECT + col0 * col1 * tab2.col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL col1 * col0 * + col1 AS col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - col0 * + col2 + + col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT tab0.col1 + col0 * col2 * + col2 + - tab0.col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL col0 * + tab2.col2 FROM tab2
----
189
2028
3002

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col0 / + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col0 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE col2 * + col1 <= NULL
----

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT col2 * - col2 + col0 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - col1 * + col2 - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - col1 * cor0.col0 + - cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-1281
-241
-4583

onlyif mysql # use DIV operator for integer division
query I rowsort label-3415
SELECT DISTINCT - col2 DIV + cor0.col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT - col2 / + cor0.col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col2 col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT ALL - cor0.col1 DIV col2 + col0 * col2 + + cor0.col1 col1 FROM tab0 cor0
----
35
7388
876

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - cor0.col1 / col2 + col0 * col2 + + cor0.col1 col1 FROM tab0 cor0
----
35
7388
876

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT ALL + col0 DIV tab1.col1 AS col0 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + col0 / tab1.col1 AS col0 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3422
SELECT DISTINCT - + col0 * col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT - + col0 * col2 / col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - col0 * col0 + + col0 * - col0 FROM tab0 cor0
----
-1152
-15842
-2450

query I rowsort
SELECT col0 * + col1 * + col2 - + col2 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT ALL + col2 + col2 AS col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + col2 + col2 - - col0 AS col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT 84 AS col0 FROM tab2
----
84
84
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT + 85 + col1 DIV 10 FROM tab0 AS cor0
----
93
94
94

skipif mysql # not compatible
query I rowsort label-3428
SELECT + 85 + col1 / 10 FROM tab0 AS cor0
----
93
94
94

query I rowsort
SELECT 83 AS col2 FROM tab2
----
83
83
83

query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab1
----
-8

query I rowsort
SELECT 95 + col0 * ( + col0 + - col1 ) FROM tab0 AS cor0
----
-1393
-2075
-83

query I rowsort
SELECT DISTINCT + - col2 * + col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL 57 FROM tab0 cor0
----
57
57
57

query I rowsort
SELECT + - cor0.col0 + - col0 * 49 AS col2 FROM tab2 AS cor0
----
-350
-3900
-3950

query I rowsort
SELECT + + cor0.col2 * + 2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - - cor0.col1 * 46 + + cor0.col1 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT col0 * col2 + col2 * - col2 FROM tab0
----
-297
34
574

query I rowsort
SELECT DISTINCT + tab1.col2 + - col0 AS col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL + col2 + - col1 AS col2 FROM tab2 WHERE col0 * + col1 - col2 NOT IN ( tab2.col0 * col1 )
----
-33
-4
21

query I rowsort
SELECT col2 + - col0 * col0 + - col1 * col1 * + col0 FROM tab0
----
-178047
-330539
-744848

onlyif mysql # use DIV operator for integer division
query I rowsort label-3441
SELECT - col2 DIV tab1.col2 col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3441
SELECT - col2 / tab1.col2 col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 * col1 + - col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT - col1 * col1 * col0 + tab1.col0 * col0 FROM tab1
----
-2019
-2304
-7120

query I rowsort
SELECT ALL col1 + + tab2.col2 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3445
SELECT ALL + col1 DIV col0 + col1 * + col1 + + tab1.col1 AS col1 FROM tab1
----
110
182
710

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL + col1 / col0 + col1 * + col1 + + tab1.col1 AS col1 FROM tab1
----
110
182
710

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 * col0 - - col1 )
----

query I rowsort
SELECT DISTINCT col0 * + col2 + col1 + + col1 AS col1 FROM tab0
----
229
7480
964

query I rowsort
SELECT ALL - col0 * + col2 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( NULL ) >= ( NULL )
----

query I rowsort
SELECT tab0.col1 * - tab0.col0 * + col0 AS col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL col0 + col0 * tab1.col0 - + col1 FROM tab1
----
-14
4150
6467

query I rowsort
SELECT col1 * + col0 - col0 AS col1 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT ALL + col2 * + col2 + + col1 + + tab1.col2 FROM tab1
----
2996
3316
9325

query I rowsort
SELECT DISTINCT + col0 + col2 + col1 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT ALL + col2 DIV + tab2.col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + col2 / + tab2.col0 AS col0 FROM tab2
----
0
0
3

query I rowsort
SELECT ALL + col2 * - col1 AS col0 FROM tab2 WHERE NOT + col2 + col2 NOT IN ( - col2 * - col0 - + col0 )
----

query I rowsort
SELECT ALL + col0 + col2 * + col0 + col2 AS col0 FROM tab1
----
219
3769
7856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col1 + col2 * + col2 AS col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT + - col0 + cor0.col1 + + 88 AS col2 FROM tab0 AS cor0
----
150
150
90

query I rowsort
SELECT - 77 AS col2 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT col1 * col0 + - col0 AS col0 FROM tab0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * + col1 * + col0 + + col0 col0 FROM tab2
----
22910
271596
6734

query I rowsort
SELECT + tab2.col2 * - col0 + col2 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col1 + - col2 AS col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT tab1.col2 - - col2 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3467
SELECT DISTINCT + col0 + tab1.col0 DIV - col1 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT + col0 + tab1.col0 / - col1 FROM tab1
----
3
58
74

query I rowsort
SELECT + col2 * tab0.col2 + - col2 AS col1 FROM tab0
----
0
1056
6642

query I rowsort
SELECT DISTINCT col2 - - col0 * + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT - col1 + - ( 50 ) AS col0 FROM tab1
----
-60
-63
-76

query I rowsort
SELECT - col1 * - 69 + - col0 FROM tab1 AS cor0
----
1791
626
817

query I rowsort
SELECT ALL + tab0.col0 - + ( col1 ) * - col1 * + col1 AS col0 FROM tab0
----
636080
753660
912708

query I rowsort
SELECT ALL 67 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT + col2 + - col0 * col2 FROM tab0 cor0
----
-34
-7216
-759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3475
SELECT DISTINCT + col0 * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT + col0 * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + cor0.col2 + 96 AS col1 FROM tab2 AS cor0
----
122
123
134

query I rowsort
SELECT DISTINCT + col2 + col0 * + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT + col1 DIV + 7 + cor0.col2 AS col2 FROM tab2 AS cor0
----
31
34
40

skipif mysql # not compatible
query I rowsort label-3479
SELECT + col1 / + 7 + cor0.col2 AS col2 FROM tab2 AS cor0
----
31
34
40

query I rowsort
SELECT ALL col2 * + col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT DISTINCT + - ( + 10 ) * cor0.col1 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT + col2 * - 63 FROM tab1 AS cor0
----
-3402
-3591
-6048

query I rowsort
SELECT ALL - + 15 - 86 AS col0 FROM tab2 AS cor0
----
-101
-101
-101

query I rowsort
SELECT col2 * col2 + col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - - ( col1 ) * - col0 + - col2 FROM tab1 cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT + 84 * 63 - - col2 FROM tab1 AS cor0
----
5346
5349
5388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col2 col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col1 - + col2 * col0 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 + col2 * col2 FROM tab0 cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT + + col1 * + col0 DIV + cor0.col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3492
SELECT + + col1 * + col0 / + cor0.col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + ( - col1 ) * - 50 * col0 FROM tab1 AS cor0
----
32000
3900
52000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3494
SELECT DISTINCT ( col1 ) DIV col0 FROM tab2 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT ( col1 ) / col0 FROM tab2 cor0
----
0
4

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3496
SELECT ALL col0 DIV + ( + col1 ) AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL col0 / + ( + col1 ) AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT + 39 * - col1 FROM tab1
----
-1014
-390
-507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3498
SELECT 86 + - tab0.col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT 86 + - tab0.col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * - col0 col2 FROM tab1 AS cor0
----
258
5504
6880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3500
SELECT cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3500
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3501
SELECT + tab0.col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3501
SELECT + tab0.col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col2 + col0 * col2 FROM tab2 cor0
----
162
2002
2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3503
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 * CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 * + col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - + col1 * 30 AS col1 FROM tab2 cor0
----
-1770
-510
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3507
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * ( + col1 * - col0 ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT ALL - col2 * ( + col2 + col1 ) FROM tab0 cor0
----
-14186
-3927
-98

query I rowsort
SELECT DISTINCT cor0.col0 * ( + ( + col1 ) + + col0 ) AS col1 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT - - col2 * + 28 AS col2 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT ALL 89 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT + col1 * + col2 - - 40 FROM tab2
----
1574
686
877

query I rowsort
SELECT col0 + + tab2.col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT - col0 * - col0 + 66 FROM tab0
----
1291
642
7987

query I rowsort
SELECT DISTINCT + tab2.col1 * - tab2.col1 * + col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT cor2.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
10
13
26

query I rowsort
SELECT DISTINCT - col2 * - col2 * col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT DISTINCT 68 + + tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
101
150
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-3521
SELECT + col0 DIV 86 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3521
SELECT + col0 / 86 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3522
SELECT DISTINCT + col1 + + CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + col1 + + CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - cor0.col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - + col1 * + 62 FROM tab2 AS cor0
----
-1054
-1922
-3658

query I rowsort
SELECT DISTINCT + + cor0.col2 * - 13 + + col0 FROM tab1 AS cor0
----
-1168
-677
-699

query I rowsort
SELECT DISTINCT + + col1 * - ( col1 ) FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 82 + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8bb81f33f8ef108c8371a6c6cc282864

query I rowsort
SELECT DISTINCT 94 FROM tab2, tab2 AS cor0
----
94

query I rowsort
SELECT col2 * col0 + - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - + cor0.col1 + cor0.col2 * + col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + 90 + 4 AS col0 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT + col1 * col2 * + col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3534
SELECT + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3534
SELECT + col2 / + col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3536
SELECT col1 * + cor0.col0 + CAST( + col2 + cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
2130
3397
8263

skipif mysql # not compatible
query I rowsort label-3536
SELECT col1 * + cor0.col0 + CAST ( + col2 + cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
2130
3397
8263

query I rowsort
SELECT ALL + col0 + + cor0.col0 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT ALL + 51 + + col2 FROM tab1 AS cor0
----
105
108
147

query I rowsort
SELECT ALL - 48 * - col1 + + col2 FROM tab2 cor0
----
1515
2858
854

query I rowsort
SELECT - 50 * col1 FROM tab2 AS cor0
----
-1550
-2950
-850

onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT ALL + + col2 DIV col2 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL + + col2 / col2 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3542
SELECT DISTINCT ( 17 ) DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT ( 17 ) / col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 79 AS col2 FROM tab1 AS cor0
----
79

query I rowsort
SELECT ALL - col1 + 83 FROM tab1 AS cor0
----
57
70
73

query I rowsort
SELECT ALL - 87 * - col2 + + cor0.col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
1952
4689
863

query I rowsort
SELECT ALL + 5 * col0 AS col2 FROM tab1
----
15
320
400

query I rowsort
SELECT + 34 + col1 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT - 56 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1456
-560
-728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3549
SELECT - + CAST( - 59 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1534
590
767

skipif mysql # not compatible
query I rowsort label-3549
SELECT - + CAST ( - 59 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1534
590
767

onlyif mysql # use DIV operator for integer division
query I rowsort label-3550
SELECT ALL - col2 + + col1 DIV col0 col1 FROM tab1 AS cor0
----
-46
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL - col2 + + col1 / col0 col1 FROM tab1 AS cor0
----
-46
-57
-96

query I rowsort
SELECT - + 49 + col1 FROM tab1 AS cor0
----
-23
-36
-39

query I rowsort
SELECT DISTINCT ( + 36 ) AS col1 FROM tab0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * + col1 col0 FROM tab0
----
430
455
485

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to d47b3f87370e79c6978209440a41fac4

query I rowsort
SELECT - 32 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT - 75 FROM tab0
----
-75

query I rowsort
SELECT - col2 + - col1 AS col1 FROM tab2
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3558
SELECT ALL + col1 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + col1 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 42 + col1 AS col1 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT - + col0 + col0 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + + cor0.col2 + - col1 * col0 FROM tab1 AS cor0
----
2666
2892
8272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + col1 + - col2 col1 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT DISTINCT - col0 + ( col0 * - col1 ) AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + col2 + - cor0.col0 * cor0.col0 * col0 + - 40 FROM tab2 AS cor0
----
-356
-474566
-493041

onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT + col2 DIV + col0 AS col1 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3565
SELECT + col2 / + col0 AS col1 FROM tab1
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3566
SELECT DISTINCT + CAST( 14 AS SIGNED ) FROM tab2, tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT + CAST ( 14 AS INTEGER ) FROM tab2, tab0 AS cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + col1 * col2 * col2 FROM tab1
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3569
SELECT DISTINCT - tab0.col0 DIV - col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - tab0.col0 / - col1 FROM tab0
----
0

query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab1, tab2 AS cor0, tab1 cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - col1 + ( col2 + + col1 * - tab1.col0 ) FROM tab1
----
-50
-593
-957

query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - col1 * ( cor0.col2 ) FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab2, tab2 cor0
----
15

query I rowsort
SELECT ALL 15 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT + - cor0.col0 * + col1 + col0 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-16020
-2640
-4620

skipif mysql # not compatible
query I rowsort label-3576
SELECT + - cor0.col0 * + col1 + col0 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT - 63 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59

query I rowsort
SELECT DISTINCT + 27 * - 82 AS col1 FROM tab0
----
-2214

query I rowsort
SELECT 69 * + 27 AS col0 FROM tab0
----
1863
1863
1863

query I rowsort
SELECT ALL 32 * - cor0.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to e5332de97df6b86c1964b275fd53c326

query I rowsort
SELECT DISTINCT + 54 * tab2.col0 FROM tab2
----
378
4212
4266

query I rowsort
SELECT 54 AS col0 FROM tab0
----
54
54
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-3585
SELECT + + 17 + col0 DIV - cor0.col0 FROM tab2 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-3585
SELECT + + 17 + col0 / - cor0.col0 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT + col2 + col1 * + col0 + 95 AS col2 FROM tab0 AS cor0
----
2192
3491
8276

query I rowsort
SELECT - 52 + + col2 AS col1 FROM tab2 AS cor0
----
-14
-25
-26

query I rowsort
SELECT cor0.col0 * 85 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3ac5d78c93d5be586f7deedaf83ff021

query I rowsort
SELECT DISTINCT 18 + - col2 * col2 AS col0 FROM tab1
----
-2898
-3231
-9198

query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab2, tab0, tab1 AS cor0
----
-16

query I rowsort
SELECT ALL ( col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col1 + - 96 - + 67 * - col1 * + col0 FROM tab0 AS cor0
----
138278
227466
542628

query I rowsort
SELECT - col0 + 6 FROM tab1 cor0
----
-58
-74
3

query I rowsort
SELECT - col2 * col2 * col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT + - col2 * - cor0.col2 * - cor0.col0 - col2 AS col1 FROM tab0 cor0
----
-26169
-36
-598518

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT + - cor0.col1 + - CAST( NULL AS DECIMAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT + - cor0.col1 + - CAST ( NULL AS REAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 - ( col2 ) FROM tab2 AS cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 47 ) col1 FROM tab0
----
47
47
47

query I rowsort
SELECT DISTINCT - ( - tab0.col1 ) FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab0
----
78

query I rowsort
SELECT col0 * 57 * col0 FROM tab0 AS cor0
----
32832
451497
69825

query I rowsort
SELECT + 89 * 52 FROM tab1 AS cor0
----
4628
4628
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3603
SELECT + CAST( NULL AS SIGNED ) + tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT + CAST ( NULL AS INTEGER ) + tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * col0 - - 33 col2 FROM tab1 AS cor0
----
1073
111
673

query I rowsort
SELECT + - col0 * col0 + col0 * col2 + + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-2028
-237
329

query I rowsort
SELECT ALL - col1 * col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3607
SELECT DISTINCT 73 + - col1 DIV ( col0 * cor0.col0 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT 73 + - col1 / ( col0 * cor0.col0 ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT + 50 + cor0.col1 FROM tab2 AS cor0
----
109
67
81

query I rowsort
SELECT DISTINCT + col2 - col1 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 55 AS col2 FROM tab0 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + + col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 + col1 col1 FROM tab1 AS cor0
----
107
110
123

query I rowsort
SELECT DISTINCT + 53 + col2 FROM tab0 cor0
----
135
54
86

query I rowsort
SELECT ALL + col2 + + col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT col0 * + col2 + + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT tab0.col0 + col2 * ( + col0 ) FROM tab0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3618
SELECT + - col1 * CAST( NULL AS SIGNED ) + - 89 + cor0.col0 * cor0.col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT + - col1 * CAST ( NULL AS INTEGER ) + - 89 + cor0.col0 * cor0.col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3619
SELECT - - cor0.col2 * - CAST( NULL AS DECIMAL ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT - - cor0.col2 * - CAST ( NULL AS REAL ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - col1 + cor0.col1 * 88 AS col1 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT - + col0 * 80 FROM tab2 AS cor0
----
-560
-6240
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3623
SELECT DISTINCT - - col1 DIV ( + col2 ) FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT - - col1 / ( + col2 ) FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL 89 AS col2 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT 3 * + 29 * - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT - 53 AS col0 FROM tab1 cor0
----
-53
-53
-53

query I rowsort
SELECT - 45 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL + 48 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - - col1 * + 40 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT DISTINCT - ( 69 ) * col2 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT + col0 * 16 AS col2 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT - - col2 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - 43 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
308
3432
3476

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT - ( + cor0.col2 ) + col1 DIV - col2 + - col1 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-36537
-4266
-99936

skipif mysql # not compatible
query I rowsort label-3634
SELECT - ( + cor0.col2 ) + col1 / - col2 + - col1 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-36537
-4266
-99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-3635
SELECT col2 DIV 57 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT col2 / 57 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT col0 DIV - col1 + col0 * - 37 + 74 * col1 * col2 FROM tab0 cor0
----
209124
548895
5883

skipif mysql # not compatible
query I rowsort label-3636
SELECT col0 / - col1 + col0 * - 37 + 74 * col1 * col2 FROM tab0 cor0
----
209124
548895
5883

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - 87 AS REAL ) - - cor0.col1 AS col0 FROM tab1 AS cor0
----
-61
-74
-77

query I rowsort
SELECT - + ( - 99 ) AS col0 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT + col1 * - 69 FROM tab2
----
-1173
-2139
-4071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3640
SELECT ALL col2 * + CAST( NULL AS SIGNED ) + - col1 + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) + - col1 + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 78 AS col2 FROM tab2 AS cor0
----
78

query I rowsort
SELECT + col0 + 96 AS col2 FROM tab1 AS cor0
----
160
176
99

query I rowsort
SELECT ALL - 96 * + col2 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT + ( - col1 ) * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL 6 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT + cor0.col0 * 79 + - col1 FROM tab1 AS cor0
----
211
5046
6307

query I rowsort
SELECT DISTINCT ( - ( col1 ) ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + - ( col2 ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - 66 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 87 * + col2 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 + - 37 * 4 FROM tab0 AS cor0
----
-2212
-3543
-8247

query I rowsort
SELECT DISTINCT 68 * - col0 AS col0 FROM tab0 cor0
----
-1632
-2380
-6052

query I rowsort
SELECT 33 * col2 + + col2 * col0 FROM tab0
----
10004
1881
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3655
SELECT - CAST( - ( + col1 ) AS SIGNED ) FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3655
SELECT - CAST ( - ( + col1 ) AS INTEGER ) FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT ALL - - col0 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - - col0 / col1 AS col1 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT + tab2.col0 DIV col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3657
SELECT + tab2.col0 / col1 AS col1 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT ALL col0 * col1 + - 58 DIV - col0 FROM tab2 AS cor0
----
1343
225
4602

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL col0 * col1 + - 58 / - col0 FROM tab2 AS cor0
----
1343
225
4602

query I rowsort
SELECT - col0 - col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL col2 * 21 * cor0.col2 AS col1 FROM tab1 AS cor0
----
193536
61236
68229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3661
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab0
----
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3663
SELECT 70 * col2 + + CAST( 97 AS SIGNED ) - + col1 AS col2 FROM tab1
----
3851
4077
6804

skipif mysql # not compatible
query I rowsort label-3663
SELECT 70 * col2 + + CAST ( 97 AS INTEGER ) - + col1 AS col2 FROM tab1
----
3851
4077
6804

query I rowsort
SELECT ALL col2 + 22 AS col0 FROM tab1
----
118
76
79

query I rowsort
SELECT col2 * col0 + col1 AS col1 FROM tab2
----
2087
220
3019

skipif mysql # not compatible
query I rowsort
SELECT + tab2.col1 + CAST ( 42 AS REAL ) * - tab2.col1 / - col1 + - 1 FROM tab2
----
100
58
72

query I rowsort
SELECT DISTINCT - col2 * tab0.col0 + - col1 AS col1 FROM tab0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT DISTINCT + col1 + + 55 * col2 DIV + col1 FROM tab0
----
107
140
97

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT + col1 + + 55 * col2 / + col1 FROM tab0
----
107
140
97

query I rowsort
SELECT col0 + col0 + col2 * col2 * col2 AS col1 FROM tab1
----
157470
185321
884896

query I rowsort
SELECT tab2.col0 + + col0 * + ( - tab2.col2 ) * ( tab2.col0 ) FROM tab2
----
-1316
-158106
-237079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * col0 * col2 col1 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT ALL - col2 + - col0 + cor0.col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + cor0.col1 + + 63 * + col2 FROM tab0 AS cor0
----
160
2165
5257

query I rowsort
SELECT 24 + + cor1.col1 AS col0 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 6f365f14f12a269e0726b8c80d2fa00a

query I rowsort
SELECT - + col0 * 69 FROM tab0 AS cor0
----
-1656
-2415
-6141

query I rowsort
SELECT - 96 FROM tab1, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT - 59 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + col1 + - col1 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT + col0 * col2 - - col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT + + cor0.col2 DIV col1 + col0 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-3680
SELECT + + cor0.col2 / col1 + col0 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col2 * + 94 FROM tab1 cor0
----
117312
131976
53580

query I rowsort
SELECT DISTINCT - - col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL col1 * col1 - - 18 FROM tab1 AS cor0
----
118
187
694

query I rowsort
SELECT DISTINCT col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT ALL - col2 DIV - col2 + ( cor0.col2 ) FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - col2 / - col2 + ( cor0.col2 ) FROM tab1 AS cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - col0 + col0 col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT cor0.col1 - ( col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 55 * - cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
-1430
-550
-715

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT ALL - + col0 + + 87 - + col0 DIV col1 FROM tab2 AS cor0
----
4
8
80

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - + col0 + + 87 - + col0 / col1 FROM tab2 AS cor0
----
4
8
80

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT - + cor0.col0 DIV col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3692
SELECT - + cor0.col0 / col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col2 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL cor0.col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT DISTINCT - + col0 DIV + 7 + + col0 AS col0 FROM tab0 cor0
----
21
30
77

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - + col0 / + 7 + + col0 AS col0 FROM tab0 cor0
----
21
30
77

query I rowsort
SELECT cor0.col0 + 34 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
115465
275455
70200

query I rowsort
SELECT - col2 + 8 AS col1 FROM tab2 AS cor0
----
-18
-19
-30

query I rowsort
SELECT ALL - + col2 + col0 * col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT col2 + 80 FROM tab0
----
113
162
81

query I rowsort
SELECT ALL - 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT col1 + col0 * - 79 FROM tab1 cor0
----
-211
-5046
-6307

onlyif mysql # use DIV operator for integer division
query I rowsort label-3702
SELECT 46 DIV + col0 + + tab0.col2 AS col1 FROM tab0
----
2
34
82

skipif mysql # not compatible
query I rowsort label-3702
SELECT 46 / + col0 + + tab0.col2 AS col1 FROM tab0
----
2
34
82

query I rowsort
SELECT + cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 * + col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - + 47 + + col1 FROM tab0 AS cor0
----
39
44
50

query I rowsort
SELECT + 54 + col1 * col1 AS col2 FROM tab2 AS cor0
----
1015
343
3535

query I rowsort
SELECT ALL - 91 FROM tab0, tab0 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # use DIV operator for integer division
query I rowsort label-3708
SELECT DISTINCT tab2.col1 DIV - 87 + - tab2.col1 * 41 + + col1 AS col2 FROM tab2
----
-1240
-2360
-680

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT tab2.col1 / - 87 + - tab2.col1 * 41 + + col1 AS col2 FROM tab2
----
-1240
-2360
-680

query I rowsort
SELECT ALL 77 + + col1 AS col0 FROM tab0
----
163
168
174

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3710
SELECT col1 + col2 * - col1 + CAST( - ( - col0 ) AS SIGNED ) * col0 AS col2 FROM tab1
----
-1369
3536
5165

skipif mysql # not compatible
query I rowsort label-3710
SELECT col1 + col2 * - col1 + CAST ( - ( - col0 ) AS INTEGER ) * col0 AS col2 FROM tab1
----
-1369
3536
5165

query I rowsort
SELECT - 11 + - ( + col2 * col1 ) AS col0 FROM tab0
----
-108
-2849
-7473

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT col0 + col0 DIV ( 30 ) FROM tab1 AS cor0
----
3
66
82

skipif mysql # not compatible
query I rowsort label-3712
SELECT col0 + col0 / ( 30 ) FROM tab1 AS cor0
----
3
66
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3713
SELECT - col1 * col1 + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT - col1 * col1 + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 85 + col1 * - col2 FROM tab1 AS cor0
----
-1333
-1489
-655

query I rowsort
SELECT ALL + col0 + col2 * - tab2.col0 AS col1 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT + + col2 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * + col0 col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + ( + tab0.col1 ) * - col1 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3719
SELECT ALL - + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL - + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col2 + + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT col0 * + 55 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT - 78 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab2, tab1, tab0 AS cor0
----
24

query I rowsort
SELECT ( + col1 ) * 83 FROM tab0
----
7138
7553
8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + col2 col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT 10 DIV 17 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3726
SELECT 10 / 17 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL + 21 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - ( col0 + cor0.col0 ) col2 FROM tab2 AS cor0
----
2686
434
9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * - tab2.col1 col1 FROM tab2, tab1 AS cor0
----
-1240
-2360
-680

query I rowsort
SELECT DISTINCT 37 FROM tab0, tab1 AS cor0, tab1 cor1
----
37

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab1, tab0 AS cor0
----
55

query I rowsort
SELECT - 70 * col0 FROM tab1 cor0
----
-210
-4480
-5600

query I rowsort
SELECT DISTINCT - 62 + col2 FROM tab2 AS cor0
----
-24
-35
-36

query I rowsort
SELECT + + 12 + + col0 AS col0 FROM tab0 AS cor0
----
101
36
47

query I rowsort
SELECT ALL + 11 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT + 36 AS col2 FROM tab0 cor0
----
36
36
36

query I rowsort
SELECT - col1 * - 46 + + col2 FROM tab2 AS cor0
----
1453
2740
820

onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT ALL + + ( 54 ) * - col0 + 67 DIV col0 AS col0 FROM tab0 AS cor0
----
-1294
-1889
-4806

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + + ( 54 ) * - col0 + 67 / col0 AS col0 FROM tab0 AS cor0
----
-1294
-1889
-4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT - + col1 DIV + 15 AS col0 FROM tab0 cor0
----
-5
-6
-6

skipif mysql # not compatible
query I rowsort label-3739
SELECT - + col1 / + 15 AS col0 FROM tab0 cor0
----
-5
-6
-6

query I rowsort
SELECT - 51 + 65 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT col2 + col2 * + col0 * + 39 FROM tab1 AS cor0
----
142329
299616
6372

query I rowsort
SELECT DISTINCT + 51 * col2 FROM tab1 cor0
----
2754
2907
4896

query I rowsort
SELECT - - col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3744
SELECT ALL + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL + col0 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 74 + cor0.col0 + col2 FROM tab0 cor0
----
110
131
245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 81 ) + col0 * col1 col2 FROM tab0 AS cor0
----
1983
3314
8018

query I rowsort
SELECT ALL col2 + 85 + - 78 * col2 AS col0 FROM tab1
----
-4073
-4304
-7307

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT col1 + + 15 AS col2 FROM tab2
----
32
46
74

query I rowsort
SELECT DISTINCT 15 * col0 AS col0 FROM tab0
----
1335
360
525

query I rowsort
SELECT + col2 + + 1 * col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT 82 * 20 AS col0 FROM tab2
----
1640

query I rowsort
SELECT DISTINCT 94 FROM tab2, tab1 AS cor0
----
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT ALL - + col1 DIV 39 + col2 * col1 * + col2 FROM tab2 AS cor0
----
22599
24548
39883

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL - + col1 / 39 + col2 * col1 * + col2 FROM tab2 AS cor0
----
22599
24548
39883

query I rowsort
SELECT + + cor0.col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col2 * 93 + ( - col2 ) + - 83 FROM tab2 AS cor0
----
2309
2401
3413

query I rowsort
SELECT DISTINCT + col0 + + 26 FROM tab0 AS cor0
----
115
50
61

query I rowsort
SELECT ALL - col2 * - col0 + + col0 * - col0 FROM tab0 AS cor0
----
-1190
-623
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + col0 col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - col2 + - 1 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT col0 + 86 AS col2 FROM tab0 AS cor0
----
110
121
175

onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT ALL + col0 DIV - ( col1 ) AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + col0 / - ( col1 ) AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL - col0 + - 39 * - col2 FROM tab0 AS cor0
----
1263
3109
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3764
SELECT + col0 + CAST( NULL AS SIGNED ) + col0 * col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT + col0 + CAST ( NULL AS INTEGER ) + col0 * col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3765
SELECT + + col0 DIV col0 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-3765
SELECT + + col0 / col0 col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT col0 DIV + col1 + - 64 + col1 * + col2 FROM tab2 AS cor0
----
1471
586
773

skipif mysql # not compatible
query I rowsort label-3766
SELECT col0 / + col1 + - 64 + col1 * + col2 FROM tab2 AS cor0
----
1471
586
773

onlyif mysql # use DIV operator for integer division
query I rowsort label-3767
SELECT DISTINCT + col2 DIV + 63 + + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT + col2 / + 63 + + col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT tab1.col1 DIV + col1 + - col2 + col2 * ( - col0 + col0 ) AS col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3768
SELECT tab1.col1 / + col1 + - col2 + col2 * ( - col0 + col0 ) AS col2 FROM tab1
----
-53
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT - tab0.col2 DIV - ( col0 ) AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3769
SELECT - tab0.col2 / - ( col0 ) AS col1 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 56 + + col1 * - col1 * - 29 col0 FROM tab2
----
100971
27820
8404

query I rowsort
SELECT DISTINCT col1 + col1 * 8 FROM tab0
----
774
819
873

query I rowsort
SELECT tab1.col0 - + 78 * col0 AS col1 FROM tab1
----
-231
-4928
-6160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3773
SELECT ALL - col1 * - CAST( ( col0 ) AS SIGNED ) + col2 * + tab0.col2 AS col0 FROM tab0
----
14823
3153
3396

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL - col1 * - CAST ( ( col0 ) AS INTEGER ) + col2 * + tab0.col2 AS col0 FROM tab0
----
14823
3153
3396

query I rowsort
SELECT + col1 * + 3 * col1 FROM tab2
----
10443
2883
867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3775
SELECT ALL col1 * - CAST( 92 AS SIGNED ) + col1 AS col1 FROM tab2
----
-1547
-2821
-5369

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL col1 * - CAST ( 92 AS INTEGER ) + col1 AS col1 FROM tab2
----
-1547
-2821
-5369

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT + + col2 DIV + col2 + + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-3777
SELECT + + col2 / + col2 + + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT - + col2 + ( - col1 ) * col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL col1 * col2 + + 18 + col2 FROM tab2 AS cor0
----
1578
702
882

query I rowsort
SELECT ALL + col0 * + 67 + col1 AS col0 FROM tab1 cor0
----
227
4298
5373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + + col0 col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL 80 AS col1 FROM tab2 cor0
----
80
80
80

query I rowsort
SELECT DISTINCT ( 71 ) FROM tab2 AS cor0
----
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT ALL + col2 * col2 + - col1 DIV col2 FROM tab0 AS cor0
----
-96
1087
6723

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + col2 * col2 + - col1 / col2 FROM tab0 AS cor0
----
-96
1087
6723

onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT + - CAST( col0 AS SIGNED ) DIV + col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3785
SELECT + - CAST ( col0 AS INTEGER ) / + col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col1 * 43 + 63 AS col2 FROM tab2 AS cor0
----
-1301
-2533
-685

query I rowsort
SELECT ALL + ( + col2 ) + + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - - col1 * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - 63 - + col0 AS col0 FROM tab0 AS cor0
----
-152
-87
-98

query I rowsort
SELECT DISTINCT - 63 + - ( - col2 ) AS col0 FROM tab1 cor0
----
-6
-9
33

query I rowsort
SELECT ALL ( col2 ) + - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL ( + col1 ) * - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - col0 * col2 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + col2 + + 38 * col0 FROM tab2 AS cor0
----
293
2990
3040

query I rowsort
SELECT ALL tab0.col1 + - ( + 95 ) * col0 FROM tab0
----
-2194
-3228
-8364

query I rowsort
SELECT DISTINCT tab0.col2 * + 64 + col2 FROM tab0
----
2145
5330
65

query I rowsort
SELECT DISTINCT - col0 * - ( tab1.col2 ) + col1 * + col0 AS col1 FROM tab1
----
240
4288
8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT DISTINCT + 13 + 77 DIV + col0 AS col1 FROM tab2 AS cor0
----
13
24

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT + 13 + 77 / + col0 AS col1 FROM tab2 AS cor0
----
13
24

query I rowsort
SELECT + col1 * + col0 + + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + 87 * col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT DISTINCT 95 FROM tab0 AS cor0
----
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3803
SELECT 48 + + 29 DIV - col0 FROM tab1 AS cor0
----
39
48
48

skipif mysql # not compatible
query I rowsort label-3803
SELECT 48 + + 29 / - col0 FROM tab1 AS cor0
----
39
48
48

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT DISTINCT + col2 * col0 + - 35 + + col2 AS col2 FROM tab1 AS cor0
----
181
3670
7741

onlyif mysql # use DIV operator for integer division
query I rowsort label-3806
SELECT ALL - col1 * - col2 - 52 DIV + col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL - col1 * - col2 - 52 / + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - + ( col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + + col0 + cor0.col0 - ( col2 ) AS col1 FROM tab1 AS cor0
----
-48
64
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 10 col0 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT + - 81 AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 11 * cor0.col2 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT DISTINCT + - col1 DIV + col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + - col1 / + col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT + 77 * col0 FROM tab1 AS cor0
----
231
4928
6160

onlyif mysql # use DIV operator for integer division
query I rowsort label-3816
SELECT DISTINCT - CAST( 10 AS SIGNED ) DIV + col1 col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - CAST ( 10 AS INTEGER ) / + col1 col2 FROM tab2
----
0

query I rowsort
SELECT ALL - col2 + col1 + 6 FROM tab2 AS cor0
----
-15
10
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 63 * col1 - col1 * - 26 col0 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - + 39 FROM tab2 cor0
----
-39
-39
-39

query I rowsort
SELECT ALL cor0.col0 + - ( 9 ) * cor0.col0 + col0 FROM tab1 AS cor0
----
-21
-448
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 11 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT col0 * - col1 * col0 + col1 * - 19 AS col2 FROM tab2 AS cor0
----
-106420
-2108
-360077

query I rowsort
SELECT ALL - cor0.col2 * + 69 - col1 FROM tab0 cor0
----
-166
-2363
-5749

query I rowsort
SELECT - cor0.col2 * col0 + col1 * col2 * + 50 AS col2 FROM tab2 AS cor0
----
29298
41661
74672

query I rowsort
SELECT col0 + - col1 - col2 AS col0 FROM tab1
----
-29
-3
-77

query I rowsort
SELECT col1 + col2 * tab1.col0 * + col0 + col2 AS col1 FROM tab1
----
233539
566
614509

query I rowsort
SELECT col0 * - tab0.col1 + col1 * + col2 AS col2 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT ALL col2 * + col0 + col0 * col0 * - tab1.col1 + col2 AS col1 FROM tab1
----
-18
-37255
-75424

query I rowsort
SELECT col1 + - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT col1 * col1 * col1 + col0 FROM tab1 AS cor0
----
1064
17579
2277

query I rowsort
SELECT DISTINCT col2 + - tab1.col2 * - col0 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + col1 * tab0.col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + tab1.col2 * tab1.col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - col1 + col0 * col0 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT DISTINCT + col1 + - col2 * col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + col1 + + col0 + col1 FROM tab1
----
106
55
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * col2 * - col0 col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col2 * + col2 * + col0 - - col2 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT DISTINCT - + col1 * col1 * col0 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT - + col0 + + col1 AS col2 FROM tab0 AS cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT - col0 * - col1 + cor0.col0 * col2 * cor0.col1 + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
100874
37114
4290

skipif mysql # not compatible
query I rowsort label-3842
SELECT - col0 * - col1 + cor0.col0 * col2 * cor0.col1 + col0 / - col1 AS col2 FROM tab1 AS cor0
----
100874
37114
4290

onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT DISTINCT 39 DIV - tab1.col1 AS col1 FROM tab1
----
-1
-3

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT 39 / - tab1.col1 AS col1 FROM tab1
----
-1
-3

query I rowsort
SELECT 53 + tab0.col1 FROM tab0
----
139
144
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-3845
SELECT DISTINCT ( col1 ) DIV - col1 AS col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT ( col1 ) / - col1 AS col1 FROM tab1 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col0 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL + col2 * col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL - 29 + - cor0.col2 FROM tab2 AS cor0
----
-55
-56
-67

query I rowsort
SELECT + ( + col0 ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - col1 + + col0 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
-177590
-329412
-737100

query I rowsort
SELECT + 40 + + col0 AS col2 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT ALL + - col1 * + col1 * col0 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # use DIV operator for integer division
query I rowsort label-3856
SELECT - - cor0.col2 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT - - cor0.col2 / col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT tab0.col0 + + col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT col2 * - tab1.col2 + + tab1.col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT + col1 * - col1 * + col2 + col2 FROM tab2
----
-10944
-25920
-90480

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= col1
----

query I rowsort
SELECT col0 - - col2 * col2 AS col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT tab2.col2 * col1 + col1 AS col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT - col2 - - col1 * col0 FROM tab1
----
24
583
944

query I rowsort
SELECT ALL col0 * - col2 + - col1 * - tab2.col0 AS col0 FROM tab2
----
-1659
2574
28

query I rowsort
SELECT DISTINCT col2 * col0 + - col0 AS col1 FROM tab0
----
0
7209
768

query I rowsort
SELECT + + cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + 58 - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1190
-1346
-512

query I rowsort
SELECT DISTINCT + - col0 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab0.col0 col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + col0 * + col0 + col2 AS col0 FROM tab2
----
6110
6279
76

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE tab2.col0 IN ( col1 )
----

query I rowsort
SELECT col2 + + col1 + - col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 * + col1 AND ( col2 + - col2 )
----

query I rowsort
SELECT - col0 - col2 FROM tab2 WHERE + col1 NOT IN ( col0 + + col2 )
----
-104
-117
-34

query I rowsort
SELECT DISTINCT tab1.col1 + col0 AS col0 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - tab0.col0 col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT col0 + col0 * col1 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col1 + - col0 * col2 * col1 AS col2 FROM tab0
----
-3298
-664027
-68026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 col0 FROM tab2
----
-104
-117
-34

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + col1 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE ( + col2 ) <= NULL
----

query I rowsort
SELECT tab0.col1 - + col2 * tab0.col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col0 * - col2 + + col1 AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL tab1.col1 * + col2 + + col1 AS col0 FROM tab1
----
1261
1430
580

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) <> + col0 * col2 - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab0.col1 + - col1 col0 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT + - 79 * cor0.col2 + col1 + + col1 FROM tab0 AS cor0
----
-2435
-6296
115

query I rowsort
SELECT - 93 + - col0 FROM tab1 AS cor0
----
-157
-173
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 + col0 + col0 col0 FROM tab2 cor0
----
-1378
-488
-823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 * cor0.col2 + 41 * - cor0.col1 col0 FROM tab0 AS cor0
----
-1645
-3920
943

onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT DISTINCT + cor0.col0 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + cor0.col0 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3896
SELECT DISTINCT + col1 DIV ( - col0 ) - + col0 DIV + col1 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + col1 / ( - col0 ) - + col0 / + col1 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + col1 * + ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + col0 * 48 AS col0 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT + - cor0.col1 + + col2 * cor0.col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL + + col0 * + ( - 19 ) FROM tab0 AS cor0
----
-1691
-456
-665

query I rowsort
SELECT col0 + + col2 * + col0 + 89 * col1 * tab1.col2 FROM tab1
----
118832
125121
54442

query I rowsort
SELECT DISTINCT + tab2.col2 + - col0 * + col1 + + col2 * col1 FROM tab2
----
-3042
-659
647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col1 FROM tab0, tab2, tab2 cor0
----
-34

query I rowsort
SELECT DISTINCT + 44 * + col2 AS col0 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT ALL + ( + 99 ) FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT + 21 * - 21 FROM tab2 AS cor0
----
-441
-441
-441

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3907
SELECT - CAST( NULL AS DECIMAL ) * - 89 + + col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT - CAST ( NULL AS REAL ) * - 89 + + col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT + + ( 63 ) + - col1 * col1 DIV - 35 AS col1 FROM tab2 AS cor0
----
162
71
90

skipif mysql # not compatible
query I rowsort label-3908
SELECT + + ( 63 ) + - col1 * col1 / - 35 AS col1 FROM tab2 AS cor0
----
162
71
90

query I rowsort
SELECT col1 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + 8 FROM tab2 AS cor0
----
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3911
SELECT DISTINCT + + ( col1 ) DIV col0 + ( col2 ) AS col0 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + + ( col1 ) / col0 + ( col2 ) AS col0 FROM tab1 AS cor0
----
57
62
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3912
SELECT ALL + + ( col1 ) * col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + + ( col1 ) * col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 93 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2232
3255
8277

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
59

query I rowsort
SELECT col0 * 70 AS col0 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT - col0 - 34 * - col1 AS col0 FROM tab1 AS cor0
----
276
362
881

query I rowsort
SELECT col1 - 83 FROM tab0 AS cor0
----
14
3
8

query I rowsort
SELECT + + 30 + col2 * + col2 FROM tab0 AS cor0
----
1119
31
6754

query I rowsort
SELECT + col1 * 66 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT ALL col2 + 52 - - col2 AS col2 FROM tab2
----
104
106
128

onlyif mysql # use DIV operator for integer division
query I rowsort label-3922
SELECT ALL + col2 * + tab1.col0 * col0 - - ( - 94 ) DIV col1 col0 FROM tab1
----
233463
483
614393

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + col2 * + tab1.col0 * col0 - - ( - 94 ) / col1 col0 FROM tab1
----
233463
483
614393

query I rowsort
SELECT 95 + col2 * col2 AS col0 FROM tab2
----
1539
771
824

query I rowsort
SELECT ALL + 54 FROM tab0, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT ALL CAST( NULL AS SIGNED ) * + col0 - tab2.col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 - tab2.col1 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( col2 ) * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT 73 + + col1 AS col0 FROM tab1
----
83
86
99

query I rowsort
SELECT ( tab2.col2 ) AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT + cor0.col2 - + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL 46 FROM tab2 cor0
----
46
46
46

query I rowsort
SELECT ALL - + col2 * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3933
SELECT DISTINCT col2 * col0 + + cor0.col1 DIV 68 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT col2 * col0 + + cor0.col1 / 68 FROM tab0 AS cor0
----
36
7299
793

query I rowsort
SELECT col0 + col2 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-175
-1872
-2844

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab1, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749

query I rowsort
SELECT - 20 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT 6 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3938
SELECT ALL + - col0 + col0 * + CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL + - col0 + col0 * + CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 11 * col0 * + ( cor0.col1 ) col1 FROM tab0 AS cor0
----
22704
37345
89089

query I rowsort
SELECT ALL + col1 * - col2 + + 69 FROM tab1 AS cor0
----
-1179
-1335
-501

query I rowsort
SELECT + - col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + - 63 FROM tab0 AS cor0
----
-160
-2901
-7525

query I rowsort
SELECT ALL + - 20 + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1424
656
709

query I rowsort
SELECT DISTINCT - + cor0.col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col2 * col0 * - 69 - col1 FROM tab0 cor0
----
2318
503471
54562

onlyif mysql # use DIV operator for integer division
query I rowsort label-3946
SELECT ALL + - 42 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL + - 42 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
6

query I rowsort
SELECT DISTINCT - col2 * col1 * ( col1 ) FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - 1 + + col0 AS col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * col0 AS col1 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT - cor0.col0 * col2 + col0 + 91 FROM tab2 AS cor0
----
-1859
-2832
-91

query I rowsort
SELECT ALL - + 83 * col0 + - col1 FROM tab2 AS cor0
----
-612
-6533
-6574

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3952
SELECT DISTINCT - + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT ALL + - col0 DIV + cor0.col0 - 33 FROM tab0 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL + - col0 / + cor0.col0 - 33 FROM tab0 AS cor0
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col2 + + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - cor0.col2 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + col1 * - 4 AS col2 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT ALL - cor0.col2 + + ( col2 ) * + col2 - - ( 91 + col0 ) FROM tab0 AS cor0
----
1171
126
6822

query I rowsort
SELECT - col2 * col1 + 33 AS col0 FROM tab1 AS cor0
----
-1215
-1371
-537

query I rowsort
SELECT + col2 * ( - col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 97 + cor0.col0 + col2 * 23 col0 FROM tab1 AS cor0
----
10048
1536
7583

query I rowsort
SELECT col2 + 11 AS col1 FROM tab0 AS cor0
----
12
44
93

query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT ALL - col1 * col1 + cor0.col0 AS col2 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT + + col0 + col2 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3967
SELECT ALL - col1 * col1 DIV + col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - col1 * col1 / + col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - + col2 * cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3969
SELECT DISTINCT - + col0 DIV + 65 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - + col0 / + 65 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT 39 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT + 30 + - col2 AS col2 FROM tab2 AS cor0
----
-8
3
4

query I rowsort
SELECT + col2 * 56 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT DISTINCT + col1 * + ( + col0 + - col0 ) AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col0 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + cor0.col0 + cor0.col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL + col2 * + col1 + - 43 AS col0 FROM tab1
----
1205
1361
527

query I rowsort
SELECT ALL + ( 46 ) + + tab2.col1 FROM tab2, tab1 cor0
----
9 values hashing to 1467bd9e09a1c906f2eb99a4159ce1c4

query I rowsort
SELECT - col1 + - 13 - - col0 FROM tab1 AS cor0
----
-36
41
54

query I rowsort
SELECT ALL col0 * 35 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT - col0 * + ( col0 ) * - col2 + 35 * col2 * col0 FROM tab2 AS cor0
----
229164
342228
7938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + 59 col1 FROM tab1 cor0
----
33
46
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col1 col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL - + 61 * col0 FROM tab0 AS cor0
----
-1464
-2135
-5429

query I rowsort
SELECT DISTINCT - - 17 AS col0 FROM tab0 AS cor0
----
17

query I rowsort
SELECT + 46 + col2 * ( 42 ) AS col2 FROM tab2
----
1138
1180
1642

query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT 22 AS col0 FROM tab0 cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-3991
SELECT ALL col0 DIV + cor0.col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL col0 / + cor0.col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ( + col2 ) * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + 60 + col0 FROM tab0 AS cor0
----
149
84
95

query I rowsort
SELECT - - col2 * - col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 73 * + col2 + col1 FROM tab2 AS cor0
----
-1839
-1940
-2757

query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

query I rowsort
SELECT + col0 - - col2 * + col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT ALL 45 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 8 col1 FROM tab2 AS cor0
----
-70
-71
1

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab0, tab0 cor0
----
48

query I rowsort
SELECT ALL ( tab1.col0 ) * col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + ( 36 ) + - col1 * col1 FROM tab2 cor0
----
-253
-3445
-925

query I rowsort
SELECT - - 47 AS col0 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT - 1 + col1 * col1 FROM tab2 cor0
----
288
3480
960

query I rowsort
SELECT col1 + - col2 * 60 AS col0 FROM tab1 AS cor0
----
-3214
-3410
-5747

query I rowsort
SELECT ALL 91 * col2 AS col0 FROM tab2
----
2366
2457
3458

query I rowsort
SELECT 98 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 28 AS col0 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT col2 + col0 * 75 * - col1 AS col0 FROM tab0
----
-154767
-254624
-607343

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - - col2 + + ( - ( - col0 ) ) + col0 * col2 AS col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT DISTINCT - + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - col1 + + ( + tab0.col0 ) * - col0 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT + + col2 + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + + col1 + 65 FROM tab2 cor0
----
124
82
96

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 + - col1 + - col0 FROM tab0 AS cor0
----
-97
682
7118

query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4020
SELECT DISTINCT + 96 / + col2 + - col2 * CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + 96 / + col2 + - col2 * CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col1 * col0 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT col2 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - 45 * - col0 + - col1 FROM tab0 AS cor0
----
1478
3914
994

query I rowsort
SELECT ALL - 32 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT - + col0 * ( cor0.col2 ) + col0 + 90 FROM tab0 AS cor0
----
-678
-7119
90

query I rowsort
SELECT DISTINCT + 22 * - col0 FROM tab0 cor0
----
-1958
-528
-770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4027
SELECT ALL + CAST( + ( - col1 ) AS SIGNED ) * - ( 65 ) + col0 * ( + cor0.col1 * + cor0.col2 ) + + col0 col0 FROM tab0 AS cor0
----
670122
73726
9735

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + CAST ( + ( - col1 ) AS INTEGER ) * - ( 65 ) + col0 * ( + cor0.col1 * + cor0.col2 ) + + col0 col0 FROM tab0 AS cor0
----
670122
73726
9735

query I rowsort
SELECT - 74 * + col0 * - col1 + - cor0.col0 + + col0 FROM tab1 AS cor0
----
47360
5772
76960

query I rowsort
SELECT col0 * + col2 - ( tab0.col1 ) FROM tab0
----
-62
706
7207

query I rowsort
SELECT ALL + 96 + - cor0.col1 * + col1 FROM tab0 AS cor0
----
-7300
-8185
-9313

query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab0 cor0
----
-2

query I rowsort
SELECT ALL + + 23 - col2 FROM tab1 cor0
----
-31
-34
-73

query I rowsort
SELECT ALL - col0 + col0 * + col2 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4034
SELECT DISTINCT col2 + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT col2 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col0 + - 78 FROM tab0 AS cor0
----
-43
-54
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4036
SELECT ALL + - col2 * - CAST( NULL AS SIGNED ) * 85 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + - col2 * - CAST ( NULL AS INTEGER ) * 85 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col1 ) col0 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4038
SELECT ALL + - col0 DIV 89 + + cor0.col1 FROM tab0 cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + - col0 / 89 + + cor0.col1 FROM tab0 cor0
----
86
90
97

query I rowsort
SELECT - cor0.col1 * ( + col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col1 + cor0.col0 + - 71 FROM tab2 AS cor0
----
-52
-9
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 40 - 29 col1 FROM tab0 AS cor0
----
11
1291
3251

query I rowsort
SELECT cor0.col0 * 94 AS col1 FROM tab2 cor0
----
658
7332
7426

query I rowsort
SELECT ALL - + cor0.col2 + 51 * 55 FROM tab2 AS cor0
----
2767
2778
2779

query I rowsort
SELECT 6 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - cor0.col2 * + ( col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 59 * col1 AS col2 FROM tab2
----
1003
1829
3481

query I rowsort
SELECT - col0 + - 9 AS col1 FROM tab2
----
-16
-87
-88

query I rowsort
SELECT ALL + col1 * - 33 FROM tab0
----
-2838
-3003
-3201

query I rowsort
SELECT ALL ( - col1 ) + col0 FROM tab1
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4052
SELECT + CAST( + col2 AS SIGNED ) * col0 + tab1.col2 AS col2 FROM tab1
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-4052
SELECT + CAST ( + col2 AS INTEGER ) * col0 + tab1.col2 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - col1 + col0 + - col1 FROM tab2 AS cor0
----
-40
-55
45

query I rowsort
SELECT DISTINCT col1 + col1 + col2 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT ALL - + 71 AS col1 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT col0 DIV cor0.col1 col2 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4056
SELECT col0 / cor0.col1 col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - + col1 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT ALL + tab0.col1 + + tab0.col1 DIV - col2 + + ( col2 ) FROM tab0
----
1
117
172

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + tab0.col1 + + tab0.col1 / - col2 + + ( col2 ) FROM tab0
----
1
117
172

query I rowsort
SELECT - col2 * + 53 AS col2 FROM tab0
----
-1749
-4346
-53

query I rowsort
SELECT ALL - 38 FROM tab0, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT ALL + 68 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - 26 * 93 + + tab1.col2 + - col0 * col1 AS col0 FROM tab1
----
-2442
-3001
-3362

query I rowsort
SELECT DISTINCT 36 + + col2 FROM tab0
----
118
37
69

query I rowsort
SELECT - col2 + - 57 FROM tab1
----
-111
-114
-153

query I rowsort
SELECT + 62 AS col1 FROM tab1
----
62
62
62

query I rowsort
SELECT ALL + + cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL - col0 + cor0.col2 * - 15 AS col0 FROM tab0 AS cor0
----
-1319
-50
-519

query I rowsort
SELECT - 4 + + col1 FROM tab1 AS cor0
----
22
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + cor0.col1 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - - 40 AS col1 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT - - col2 + col1 DIV col2 col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4071
SELECT - - col2 + col1 / col2 col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 46 + col1 * - 86 FROM tab2 AS cor0
----
-1508
-2712
-5120

query I rowsort
SELECT - 74 + cor0.col2 * + col2 * - 82 AS col2 FROM tab1 AS cor0
----
-239186
-266492
-755786

query I rowsort
SELECT ALL - - 59 AS col1 FROM tab1 cor0
----
59
59
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT + 68 DIV cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
27
29
42

skipif mysql # not compatible
query I rowsort label-4075
SELECT + 68 / cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
27
29
42

query I rowsort
SELECT ALL ( col1 ) + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col1 * - 43 + col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4078
SELECT - 48 + col1 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2112
-3443
-8147

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 48 + col1 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2112
-3443
-8147

query I rowsort
SELECT col2 * col0 + - ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
3008
6640
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col2 col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + ( + col2 ) * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - 46 AS col1 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT ALL ( + col1 * col2 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT + col2 * - 78 * col0 FROM tab2 cor0
----
-14742
-158184
-234156

query I rowsort
SELECT DISTINCT + col1 * 7 AS col1 FROM tab1 AS cor0
----
182
70
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + cor0.col0 col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + cor0.col0 + + 17 FROM tab2, tab2 cor0
----
9 values hashing to 71545696fd85b3f83c005060e0c0169f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT DISTINCT - + col2 DIV ( + cor0.col1 ) FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT - + col2 / ( + cor0.col1 ) FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT cor0.col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4091
SELECT - col0 * + col1 + col2 * col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT - col0 * + col1 + col2 * col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * + col2 - + cor0.col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT tab1.col1 + col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT + + 8 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT ALL + 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + col0 * + ( col2 ) AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL ( 37 ) FROM tab1, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col1 + 58 * - col0 FROM tab1 AS cor0
----
-148
-3702
-4627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4101
SELECT + CAST( col2 AS SIGNED ) + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

skipif mysql # not compatible
query I rowsort label-4101
SELECT + CAST ( col2 AS INTEGER ) + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT 98 + + col0 + cor0.col1 FROM tab2 AS cor0
----
136
194
235

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4103
SELECT DISTINCT + CAST( NULL AS SIGNED ) - 2 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - 2 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 37 + col0 FROM tab1 AS cor0
----
-34
27
43

query I rowsort
SELECT - 56 + 67 + col1 * ( - cor0.col1 ) FROM tab2 cor0
----
-278
-3470
-950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + cor0.col1 + col2 col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + ( + 0 ) * col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * ( + col2 ) AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT 53 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
7
78
79

query I rowsort
SELECT ALL + 60 + + col1 FROM tab1
----
70
73
86

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + 6 * 29 AS col1 FROM tab1 AS cor0
----
174
174
174

query I rowsort
SELECT 25 * 10 + + col0 + cor0.col2 * + col0 * - col0 FROM tab1 AS cor0
----
-233
-233158
-614070

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT DISTINCT + cor0.col2 * + 91 + + cor0.col0 * col2 FROM tab0 AS cor0
----
126
14760
3795

query I rowsort
SELECT + col1 - col0 * - col2 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + - col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col2 * + col1 - + col2 AS col1 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT col2 * col2 + 16 FROM tab0
----
1105
17
6740

query I rowsort
SELECT + col1 * - ( col0 ) + + col2 + 45 FROM tab0 AS cor0
----
-1986
-3349
-7972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4123
SELECT ALL + col1 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL + col1 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * col0 * - col0 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4125
SELECT - col2 + ( + col0 * + col1 ) + CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4125
SELECT - col2 + ( + col0 * + col1 ) + CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT cor0.col2 + col0 * col2 + + col1 * + 54 AS col2 FROM tab1 AS cor0
----
1620
4245
8478

query I rowsort
SELECT DISTINCT - 19 FROM tab0, tab1 cor0
----
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4128
SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) / - ( - col2 ) + - 72 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) / - ( - col2 ) + - 72 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab0, tab2 AS cor0
----
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4130
SELECT col0 * - CAST( NULL AS SIGNED ) * - cor0.col2 + + col0 * - 42 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT col0 * - CAST ( NULL AS INTEGER ) * - cor0.col2 + + col0 * - 42 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * ( col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - 7 * tab2.col2 * - 52 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 724cbd71f4ce7bdb107909398d2a7275

query I rowsort
SELECT ALL + 83 * - col2 AS col1 FROM tab1
----
-4482
-4731
-7968

query I rowsort
SELECT 11 * + col1 + col2 FROM tab0 AS cor0
----
1068
1083
979

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT ALL tab0.col0 + + 31 FROM tab0, tab2 AS cor0
----
9 values hashing to 76ac8bfe676bfb8a81b9baff0fa3497c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4137
SELECT ALL + 83 DIV col0 + - 73 - - col1 AS col1 FROM tab1
----
-20
-59
-62

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + 83 / col0 + - 73 - - col1 AS col1 FROM tab1
----
-20
-59
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4138
SELECT 3 * - col0 * CAST( - col0 AS SIGNED ) + tab0.col2 * col2 FROM tab0
----
2817
30487
3676

skipif mysql # not compatible
query I rowsort label-4138
SELECT 3 * - col0 * CAST ( - col0 AS INTEGER ) + tab0.col2 * col2 FROM tab0
----
2817
30487
3676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4139
SELECT DISTINCT - col2 + + col2 DIV 22 FROM tab0 AS cor0
----
-1
-32
-79

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT - col2 + + col2 / 22 FROM tab0 AS cor0
----
-1
-32
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT cor0.col1 + col0 DIV col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-4140
SELECT cor0.col1 + col0 / col2 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT ALL + - 58 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT tab0.col2 + 89 - col2 DIV - col1 col2 FROM tab0
----
122
171
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4142
SELECT tab0.col2 + 89 - col2 / - col1 col2 FROM tab0
----
122
171
90

query I rowsort
SELECT DISTINCT - tab1.col0 + 62 * col1 AS col1 FROM tab1
----
1609
556
726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4144
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4145
SELECT col2 DIV ( - col0 ) + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-4145
SELECT col2 / ( - col0 ) + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT - col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col0 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT 63 + 16 FROM tab2 cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4149
SELECT ALL + cor0.col2 DIV col1 + cor0.col1 * 60 + col2 col1 FROM tab0 AS cor0
----
5193
5542
5821

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + cor0.col2 / col1 + cor0.col1 * 60 + col2 col1 FROM tab0 AS cor0
----
5193
5542
5821

query I rowsort
SELECT col0 * + 21 + + col0 FROM tab1 cor0
----
1408
1760
66

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-4152
SELECT ( col1 ) * col1 DIV col0 FROM tab1 AS cor0
----
1
2
225

skipif mysql # not compatible
query I rowsort label-4152
SELECT ( col1 ) * col1 / col0 FROM tab1 AS cor0
----
1
2
225

query I rowsort
SELECT DISTINCT col0 * + 72 AS col2 FROM tab0 AS cor0
----
1728
2520
6408

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - col2 * 20 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT + ( 5 ) AS col1 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4158
SELECT + 78 * cor0.col2 DIV - tab0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ed29707f8c616685b054333be3758b06

skipif mysql # not compatible
query I rowsort label-4158
SELECT + 78 * cor0.col2 / - tab0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ed29707f8c616685b054333be3758b06

query I rowsort
SELECT col2 * - 58 FROM tab2
----
-1508
-1566
-2204

query I rowsort
SELECT + - col1 * cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 86 + cor0.col2 col1 FROM tab0 AS cor0
----
2097
3011
7736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 * col1 col0 FROM tab0 AS cor0
----
-1204
-1274
-1358

query I rowsort
SELECT - ( ( - col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 * 82 + col0 AS col0 FROM tab0 AS cor0
----
-1944
-2835
-7209

query I rowsort
SELECT DISTINCT - + ( + col0 ) + - col0 * + col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - ( + 77 ) + col0 AS col1 FROM tab1 AS cor0
----
-13
-74
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT 30 DIV + col1 + col1 FROM tab1 AS cor0
----
13
15
27

skipif mysql # not compatible
query I rowsort label-4167
SELECT 30 / + col1 + col1 FROM tab1 AS cor0
----
13
15
27

query I rowsort
SELECT - 36 + 47 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT - 47 + col0 + col0 FROM tab0 AS cor0
----
1
131
23

query I rowsort
SELECT ALL 24 * 25 * col2 AS col1 FROM tab2
----
15600
16200
22800

onlyif mysql # use DIV operator for integer division
query I rowsort label-4171
SELECT DISTINCT + col0 * col2 DIV + cor0.col1 - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
2922
3613
9806

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT + col0 * col2 / + cor0.col1 - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
2922
3613
9806

query I rowsort
SELECT + 27 + + col0 AS col2 FROM tab0 AS cor0
----
116
51
62

query I rowsort
SELECT DISTINCT + - col1 * 83 AS col2 FROM tab2 AS cor0
----
-1411
-2573
-4897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4174
SELECT ALL + CAST( NULL AS SIGNED ) * 13 - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + CAST ( NULL AS INTEGER ) * 13 - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) + col2 - col2 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col2 * + col1 * + col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT + col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col0 + col2 - col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 20 * col0 FROM tab0
----
1780
480
700

query I rowsort
SELECT DISTINCT - ( + 49 ) FROM tab2
----
-49

query I rowsort
SELECT col1 * col1 + - col0 AS col2 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT ( col0 ) * col2 * + tab1.col1 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4184
SELECT - col1 DIV col0 col2 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4184
SELECT - col1 / col0 col2 FROM tab2 AS cor0
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT ALL + cor0.col2 + + col1 DIV + col0 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + cor0.col2 + + col1 / + col0 FROM tab1 AS cor0
----
57
62
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4186
SELECT DISTINCT - + col1 * CAST( + cor0.col1 AS SIGNED ) - + cor0.col1 FROM tab1 cor0
----
-110
-182
-702

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - + col1 * CAST ( + cor0.col1 AS INTEGER ) - + cor0.col1 FROM tab1 cor0
----
-110
-182
-702

query I rowsort
SELECT ALL - + col2 - 16 * col2 AS col2 FROM tab1 AS cor0
----
-1632
-918
-969

query I rowsort
SELECT ALL - + cor0.col2 + 64 + + col0 AS col1 FROM tab1 AS cor0
----
13
48
71

query I rowsort
SELECT - cor0.col2 * + col1 + cor0.col0 * col0 + + col1 AS col2 FROM tab1 cor0
----
-1369
3536
5165

query I rowsort
SELECT + - col1 + + 29 * + col0 AS col1 FROM tab1 AS cor0
----
1846
2307
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4191
SELECT - col2 + CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT - col2 + CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL cor0.col1 + + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col1 - col0 * 85 AS col2 FROM tab1
----
-229
-5430
-6787

query I rowsort
SELECT ALL - tab0.col2 + col2 - + col0 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4196
SELECT ALL 14 - - col0 DIV - col2 FROM tab1
----
13
14
14

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL 14 - - col0 / - col2 FROM tab1
----
13
14
14

query I rowsort
SELECT - - cor0.col1 * col1 + 15 AS col1 FROM tab2 cor0
----
304
3496
976

query I rowsort
SELECT ALL - col2 + 77 AS col2 FROM tab1
----
-19
20
23

query I rowsort
SELECT col1 * 11 * 88 + col2 FROM tab2
----
16494
30035
57138

query I rowsort
SELECT - col1 - - tab2.col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + ( 22 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4203
SELECT col1 + + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT col1 + + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 41 FROM tab0 AS cor0
----
-45
-50
-56

query I rowsort
SELECT DISTINCT + cor0.col2 + + 95 FROM tab1 AS cor0
----
149
152
191

query I rowsort
SELECT ALL cor0.col1 * - col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 * 6 FROM tab0
----
-516
-546
-582

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT 60 + cor0.col0 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3d4d99793c5c9723ac8f095a26879cba

query I rowsort
SELECT + cor0.col2 + 96 FROM tab0, tab2 AS cor0
----
9 values hashing to 3f55b7c34b506e3a248260a91842ece5

query I rowsort
SELECT DISTINCT - ( + col0 + + col1 * - col0 ) FROM tab0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4212
SELECT DISTINCT - - col2 * cor0.col1 + CAST( - 70 AS SIGNED ) * cor0.col0 FROM tab0 cor0
----
-2353
1158
1232

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT - - col2 * cor0.col1 + CAST ( - 70 AS INTEGER ) * cor0.col0 FROM tab0 cor0
----
-2353
1158
1232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - cor0.col1 col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT ALL - col0 * 0 + + 43 * col2 DIV + ( col1 + - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
0
1763
22

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL - col0 * 0 + + 43 * col2 / + ( col1 + - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
0
1763
22

query I rowsort
SELECT - - col1 * 71 FROM tab0 cor0
----
6106
6461
6887

query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - + col1 * + ( col1 ) + + cor0.col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + + cor0.col2 + col1 AS col0 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT + + col0 DIV - col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4219
SELECT + + col0 / - col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 * + 53 AS col1 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT + cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + + cor0.col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col2 * - col2 col0 FROM tab0 AS cor0
----
-1113
-36
-6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4224
SELECT DISTINCT - - col1 * col2 * col1 + CAST( col2 AS SIGNED ) * cor0.col1 + 66 AS col2 FROM tab1 cor0
----
17538
37974
6336

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT - - col1 * col2 * col1 + CAST ( col2 AS INTEGER ) * cor0.col1 + 66 AS col2 FROM tab1 cor0
----
17538
37974
6336

query I rowsort
SELECT ALL + + 40 * - col1 * col0 FROM tab0 AS cor0
----
-135800
-323960
-82560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT - 62 DIV - cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
159
87
91

skipif mysql # not compatible
query I rowsort label-4226
SELECT - 62 / - cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
159
87
91

query I rowsort
SELECT - col2 * col2 * col1 - - ( col1 + + cor0.col0 ) FROM tab0 AS cor0
----
-611704
-93544
35

query I rowsort
SELECT ALL + ( - col1 ) * cor0.col2 + - col2 * - 44 FROM tab2 AS cor0
----
-390
1026
351

query I rowsort
SELECT + - 39 + 2 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT 83 - + col0 FROM tab2 AS cor0
----
4
5
76

query I rowsort
SELECT ALL - - ( - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + 68 * 50 AS col1 FROM tab2 AS cor0
----
3400
3400
3400

query I rowsort
SELECT DISTINCT + 90 + - col2 FROM tab1 cor0
----
-6
33
36

query I rowsort
SELECT DISTINCT + + col1 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4235
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - col0 DIV col1 - 1 FROM tab2 AS cor0
----
-28
-43

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - col0 / col1 - 1 FROM tab2 AS cor0
----
-28
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 - col1 * col2 col1 FROM tab0 AS cor0
----
-2820
-7444
-79

query I rowsort
SELECT ( col1 ) + 21 FROM tab0 AS cor0
----
107
112
118

query I rowsort
SELECT + ( - col0 ) * - cor0.col0 + + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT 49 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
49

query I rowsort
SELECT - 61 + + tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 07a9210f4b2472383fa9b91e7c8c7b25

query I rowsort
SELECT - 89 + - col1 * - col1 FROM tab0 cor0
----
7307
8192
9320

query I rowsort
SELECT DISTINCT 84 * 73 + - tab1.col0 * 32 AS col0 FROM tab1
----
3572
4084
6036

query I rowsort
SELECT - 40 * + col1 FROM tab1 AS cor0
----
-1040
-400
-520

onlyif mysql # use DIV operator for integer division
query I rowsort label-4244
SELECT - col2 DIV cor0.col1 + ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-4244
SELECT - col2 / cor0.col1 + ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-81

query I rowsort
SELECT ALL - ( - tab1.col2 ) - - 47 * - tab1.col1 AS col2 FROM tab1
----
-1168
-413
-515

query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 * 32 AS col0 FROM tab1 AS cor0
----
1702
1814
3059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 + col2 col2 FROM tab0 cor0
----
-25
56
7

query I rowsort
SELECT + 66 - + col0 AS col0 FROM tab2 cor0
----
-12
-13
59

query I rowsort
SELECT DISTINCT 12 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT ALL + ( 47 * + col0 ) + col1 * 77 * + col2 + + col2 AS col1 FROM tab2
----
121810
53493
64805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + col1 col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col1 * col0 + 64 AS col1 FROM tab2 AS cor0
----
1407
281
4666

query I rowsort
SELECT ALL 66 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT ALL + - col0 * 47 - + col0 AS col0 FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT ALL + col0 * - 2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4256
SELECT - ( col0 ) * - col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-4256
SELECT - ( col0 ) * - col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 + cor0.col1 * col2 col1 FROM tab1 AS cor0
----
1211
1367
533

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0

query I rowsort
SELECT DISTINCT + col0 * + 10 * - 14 AS col2 FROM tab0
----
-12460
-3360
-4900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col2 FROM tab0, tab2 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL - 93 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT DISTINCT - col1 DIV 78 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT - col1 / 78 AS col1 FROM tab0
----
-1

query I rowsort
SELECT - 82 FROM tab1
----
-82
-82
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4265
SELECT CAST( 34 AS SIGNED ) AS col2 FROM tab1
----
34
34
34

skipif mysql # not compatible
query I rowsort label-4265
SELECT CAST ( 34 AS INTEGER ) AS col2 FROM tab1
----
34
34
34

query I rowsort
SELECT - 1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL col2 * + col0 * col0 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL + 25 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT + 31 AS col2 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - - 65 AS col0 FROM tab2 cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - col0 * - 24 FROM tab1 AS cor0
----
1536
1920
72

query I rowsort
SELECT ALL + col2 * 36 FROM tab0 AS cor0
----
1188
2952
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-4274
SELECT col0 DIV cor0.col1 + col1 col1 FROM tab2 AS cor0
----
21
31
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4274
SELECT col0 / cor0.col1 + col1 col1 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT DISTINCT 85 + - col0 FROM tab0 AS cor0
----
-4
50
61

query I rowsort
SELECT DISTINCT + 84 * - col2 AS col2 FROM tab2 cor0
----
-2184
-2268
-3192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4277
SELECT ALL + cor0.col0 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + cor0.col0 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + cor0.col0 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - ( 6 ) * col0 + + col1 FROM tab2 AS cor0
----
-11
-409
-457

query I rowsort
SELECT ALL + 7 * - 51 - + col0 * + 33 FROM tab2 AS cor0
----
-2931
-2964
-588

onlyif mysql # use DIV operator for integer division
query I rowsort label-4282
SELECT col2 - - col1 DIV 94 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4282
SELECT col2 - - col1 / 94 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - col1 - 12 FROM tab0
----
-103
-109
-98

query I rowsort
SELECT DISTINCT - col2 * - 13 * col1 + col2 * col1 FROM tab2 AS cor0
----
11718
21476
9044

query I rowsort
SELECT DISTINCT - + 11 + 94 FROM tab0 AS cor0
----
83

query I rowsort
SELECT DISTINCT - - ( col2 ) + - col1 * + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - + 83 AS col0 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ALL col1 * + 76 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT ALL + 32 AS col2 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + ( - col2 ) + + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a

query I rowsort
SELECT DISTINCT ( + 68 ) FROM tab1
----
68

query I rowsort
SELECT ALL + + col0 * - cor0.col1 + 13 AS col1 FROM tab1 AS cor0
----
-1027
-627
-65

query I rowsort
SELECT ALL + 22 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4295
SELECT col2 DIV col2 + cor0.col0 + col0 FROM tab1 AS cor0
----
129
161
7

skipif mysql # not compatible
query I rowsort label-4295
SELECT col2 / col2 + cor0.col0 + col0 FROM tab1 AS cor0
----
129
161
7

query I rowsort
SELECT + - col1 - + 39 FROM tab0 AS cor0
----
-125
-130
-136

onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT DISTINCT + + col2 DIV + CAST( - ( col0 ) + 65 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + + col2 / + CAST ( - ( col0 ) + 65 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT - 5 + + col0 AS col1 FROM tab2
----
2
73
74

query I rowsort
SELECT + col0 * ( + 6 ) * col2 AS col2 FROM tab0
----
210
43788
4752

query I rowsort
SELECT DISTINCT col1 + col1 * + col2 + - col1 * + 79 AS col0 FROM tab1
----
-210
-624
234

query I rowsort
SELECT + col1 * - ( tab1.col1 * col1 + 25 ) FROM tab1
----
-1250
-18226
-2522

query I rowsort
SELECT ALL - col1 + tab1.col0 * + 20 FROM tab1
----
1270
1587
34

query I rowsort
SELECT DISTINCT tab0.col2 + - col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col1 + tab0.col1 FROM tab0
----
0

query I rowsort
SELECT col0 + col1 - - col0 FROM tab2
----
175
215
45

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT cor0.col0 * + ( + col0 ) + col0 DIV - col0 FROM tab1 AS cor0
----
4095
6399
8

skipif mysql # not compatible
query I rowsort label-4307
SELECT cor0.col0 * + ( + col0 ) + col0 / - col0 FROM tab1 AS cor0
----
4095
6399
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + ( + col2 ) col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - col1 * - 38 FROM tab0 AS cor0
----
3268
3458
3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-4310
SELECT DISTINCT - col2 + + 0 DIV + col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT - col2 + + 0 / + col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 37 + + col2 AS col1 FROM tab1 AS cor0
----
133
91
94

query I rowsort
SELECT DISTINCT + + col1 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col0 + 93 * col2 FROM tab2 cor0
----
2496
2518
3613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + ( - col1 ) * - col0 + + col2 col1 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT ALL - col1 * ( col1 ) + + col0 AS col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + - cor0.col2 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - ( - cor0.col1 ) + + col0 * - 2 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT DISTINCT + col0 * ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT ( col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT - col0 + 20 DIV + col0 FROM tab1 AS cor0
----
-64
-80
3

skipif mysql # not compatible
query I rowsort label-4321
SELECT - col0 + 20 / + col0 FROM tab1 AS cor0
----
-64
-80
3

query I rowsort
SELECT cor0.col1 * col1 + - 41 FROM tab1 AS cor0
----
128
59
635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col1 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT - 60 + cor0.col2 AS col0 FROM tab2 cor0
----
-22
-33
-34

query I rowsort
SELECT DISTINCT 45 * + col2 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT DISTINCT - ( - col0 ) * 45 + - col2 FROM tab2 AS cor0
----
288
3484
3517

onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT ALL + 13 DIV col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
48
7298
792

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL + 13 / col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
48
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT DISTINCT 14 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT 14 / - col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * col1 col1 FROM tab0 cor0
----
-7138
-7553
-8051

query I rowsort
SELECT DISTINCT col2 + - col0 * + cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - + col2 - - col1 * col1 * col0 FROM tab0 AS cor0
----
177471
329314
736927

onlyif mysql # use DIV operator for integer division
query I rowsort label-4332
SELECT ALL + - col2 DIV + col0 + ( cor0.col2 ) DIV 86 AS col0 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + - col2 / + col0 + ( cor0.col2 ) / 86 AS col0 FROM tab2 cor0
----
-3
0
0

query I rowsort
SELECT ALL + - col1 * + 8 AS col2 FROM tab0 AS cor0
----
-688
-728
-776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT ALL - col1 * - CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - col1 * - CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col2 * col2 * - col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT - - col0 - + 56 FROM tab0 AS cor0
----
-21
-32
33

query I rowsort
SELECT ALL - cor0.col2 + 8 + col0 AS col1 FROM tab1 AS cor0
----
-43
-8
15

query I rowsort
SELECT DISTINCT - - col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col1 * 61 + - col1 AS col0 FROM tab0 cor0
----
5160
5460
5820

query I rowsort
SELECT + col1 * 16 + col0 AS col2 FROM tab1 AS cor0
----
224
288
419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col2 FROM tab1
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 - col0 col1 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT + col1 * + ( 28 ) + cor0.col0 * cor0.col2 + 74 AS col0 FROM tab1 AS cor0
----
4002
8118
964

query I rowsort
SELECT + col1 * cor0.col0 - - col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col0 - - col1 * + ( cor0.col1 ) FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + col1 * - col1 + 59 AS col2 FROM tab2 cor0
----
-230
-3422
-902

query I rowsort
SELECT + 24 + - cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a5454cafce5bb7d14e34cf4764b2d883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL - 51 FROM tab0, tab1 AS cor0, tab2 cor1, tab2, tab1 AS cor2
----
243 values hashing to 15f7205e36e26960fb37259e3dd1cdfb

query I rowsort
SELECT ALL col1 - + 97 FROM tab0 cor0
----
-11
-6
0

query I rowsort
SELECT - col2 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - 6 AS col2 FROM tab2, tab1, tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - 16 FROM tab0
----
-16
-16
-16

query I rowsort
SELECT - cor1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT + 17 FROM tab0
----
17

query I rowsort
SELECT - ( - col0 ) + + col1 * ( col1 + + col0 ) AS col2 FROM tab0 AS cor0
----
12839
16469
9484

query I rowsort
SELECT + cor0.col1 + 4 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT DISTINCT col2 * + ( - 61 ) FROM tab0
----
-2013
-5002
-61

query I rowsort
SELECT 4 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT + ( + 97 ) AS col2 FROM tab0, tab2 AS cor0
----
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4361
SELECT - - CAST( NULL AS DECIMAL ) / col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT - - CAST ( NULL AS REAL ) / col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 * ( + col2 ) FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
-1
-33
-82

query I rowsort
SELECT + + col2 + + col1 * col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT - - 81 * + 95 AS col2 FROM tab0 AS cor0
----
7695
7695
7695

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT + - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4367
SELECT ALL - CAST( col2 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL - CAST ( col2 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL - - col2 - col1 * col1 * - col0 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT col1 + 90 FROM tab2
----
107
121
149

query I rowsort
SELECT + 34 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT - + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4371
SELECT - + col2 / + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - 32 FROM tab0, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT ALL + cor1.col1 + 70 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1f731cd8b04973db00f362d5aba59a9c

query I rowsort
SELECT + ( ( + col2 ) ) FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col1 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT ALL - + col0 * col2 + 20 AS col2 FROM tab1 AS cor0
----
-142
-3628
-7660

query I rowsort
SELECT 85 + cor0.col2 * 70 AS col1 FROM tab1 cor0
----
3865
4075
6805

query I rowsort
SELECT - + 66 * - col2 AS col1 FROM tab1 cor0
----
3564
3762
6336

query I rowsort
SELECT DISTINCT - 15 + col1 AS col2 FROM tab2 cor0
----
16
2
44

query I rowsort
SELECT 54 * + col0 AS col0 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT - + col0 + col0 * 6 * - col0 FROM tab2 cor0
----
-301
-36582
-37525

query I rowsort
SELECT - col0 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab0 cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4385
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 11 * cor0.col1 AS col1 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 11 * cor0.col1 AS col1 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
NULL

query I rowsort
SELECT - + col2 * ( + cor0.col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 41 * 51 col0 FROM tab1 AS cor0
----
2011
2027
2088

query I rowsort
SELECT cor0.col2 + + ( - col0 + - col1 ) FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT DISTINCT - col0 * - col2 * col1 + col0 + - ( col1 ) * col2 FROM tab2 AS cor0
----
118196
5029
50467

query I rowsort
SELECT DISTINCT + col2 * - col0 - 69 FROM tab1 AS cor0
----
-231
-3717
-7749

query I rowsort
SELECT + - col0 + - 47 FROM tab2 AS cor0
----
-125
-126
-54

query I rowsort
SELECT col0 * 24 FROM tab2 cor0
----
168
1872
1896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 70 col1 FROM tab1 AS cor0
----
-80
-83
-96

query I rowsort
SELECT - - cor0.col1 * cor1.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to d1dd20708fd992c2b312a75e8a045ffb

query I rowsort
SELECT col2 + + 88 AS col2 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT DISTINCT 49 + col1 AS col0 FROM tab0 AS cor0
----
135
140
146

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab2, tab2 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 * 45 col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5bdb9acdb7ecc2085a3ecf005189b7d

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT DISTINCT + 83 DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT + 83 / - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 59 + - cor0.col1 FROM tab2 AS cor0
----
-118
-76
-90

query I rowsort
SELECT DISTINCT + cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT + col0 + - col2 DIV ( col2 + col2 ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4406
SELECT + col0 + - col2 / ( col2 + col2 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + 42 AS col1 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT ALL - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + + 78 * + col0 + 75 AS col2 FROM tab0 AS cor0
----
1947
2805
7017

query I rowsort
SELECT ALL - col2 - - col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - + col0 + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - - col2 + cor0.col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL + + col0 * cor0.col2 + - 79 * + 82 * col2 AS col1 FROM tab1 AS cor0
----
-349650
-365598
-614208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT DISTINCT + col0 * cor0.col1 - + ( 18 + col1 ) * + ( col2 + col1 ) * 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-4414
SELECT DISTINCT + col0 * cor0.col1 - + ( 18 + col1 ) * + ( col2 + col1 ) * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 32 * - cor0.col1 + + 63 FROM tab1 AS cor0
----
-257
-353
-769

query I rowsort
SELECT DISTINCT - col2 * ( - 61 * col1 + + ( col2 ) ) AS col1 FROM tab0 cor0
----
172029
448458
5916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 * - cor0.col2 - + col2 col1 FROM tab0 AS cor0
----
1224
18975
649440

query I rowsort
SELECT ALL - col0 * ( + ( - col0 ) ) + + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-4419
SELECT DISTINCT - col1 DIV col0 + col2 AS col0 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - col1 / col0 + col2 AS col0 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT ALL - col0 * ( - 53 ) + col2 FROM tab2 AS cor0
----
398
4160
4225

onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT - col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4421
SELECT - col1 / - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT cor0.col1 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 49 * - cor0.col2 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT CAST ( NULL AS REAL ) * + 49 * - cor0.col2 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + ( col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - + col0 * ( + col1 + + col2 ) FROM tab0 AS cor0
----
-15397
-2856
-3430

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4426
SELECT CAST( NULL AS SIGNED ) + ( cor0.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-4426
SELECT CAST ( NULL AS INTEGER ) + ( cor0.col2 ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 83 * col0 FROM tab2 AS cor0
----
-581
-6474
-6557

query I rowsort
SELECT ALL ( + col0 ) + - col0 * cor0.col0 FROM tab0 cor0
----
-1190
-552
-7832

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT ALL 79 + col0 * + col1 + 68 * col0 FROM tab2 AS cor0
----
6794
772
9985

onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT ALL - + col0 DIV + cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - + col0 / + cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - ( col2 ) + ( + 52 ) * col0 FROM tab2 AS cor0
----
337
4030
4070

query I rowsort
SELECT - 90 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4434
SELECT ALL cor0.col1 - col1 * CAST( - ( - col0 ) AS SIGNED ) * ( + 60 ) FROM tab0 cor0
----
-123754
-203603
-485849

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL cor0.col1 - col1 * CAST ( - ( - col0 ) AS INTEGER ) * ( + 60 ) FROM tab0 cor0
----
-123754
-203603
-485849

query I rowsort
SELECT DISTINCT 93 FROM tab1, tab2, tab2 AS cor0
----
93

query I rowsort
SELECT col0 * tab2.col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - col0 * + 93 + col1 FROM tab0 AS cor0
----
-2146
-3158
-8186

onlyif mysql # use DIV operator for integer division
query I rowsort label-4438
SELECT - + col0 * + col1 + + 81 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1342
-206
-4601

skipif mysql # not compatible
query I rowsort label-4438
SELECT - + col0 * + col1 + + 81 / + col0 AS col2 FROM tab2 AS cor0
----
-1342
-206
-4601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 + + col0 * + 11 col2 FROM tab1 AS cor0
----
121
792
968

query I rowsort
SELECT + col2 + - cor0.col0 * 60 AS col2 FROM tab2 AS cor0
----
-393
-4654
-4702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT DISTINCT col0 * 93 DIV + col1 FROM tab0
----
25
33
90

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT col0 * 93 / + col1 FROM tab0
----
25
33
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 + col0 + CAST ( col2 * - col0 AS REAL ) col1 FROM tab0
----
-7127
-735
1

query I rowsort
SELECT - 35 * + col2 FROM tab2
----
-1330
-910
-945

query I rowsort
SELECT DISTINCT - tab1.col1 + - tab1.col0 AS col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT col1 * col0 + 41 * col1 AS col2 FROM tab1 AS cor0
----
1050
1144
1573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + col2 * col1 col2 FROM tab2 AS cor0
----
1600
712
903

query I rowsort
SELECT ALL + ( cor1.col0 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT - 50 * col0 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT - 55 * col2 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT col1 - - 44 FROM tab1
----
54
57
70

query I rowsort
SELECT + tab2.col1 + - ( col2 ) AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT col0 - ( col1 * - col1 ) AS col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT - + cor0.col0 + + 86 AS col0 FROM tab1 AS cor0
----
22
6
83

query I rowsort
SELECT ALL + col1 + + ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + ( + ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - - 20 * col2 FROM tab0 AS cor0
----
1640
20
660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4459
SELECT ALL - CAST( - col1 AS SIGNED ) + col0 col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL - CAST ( - col1 AS INTEGER ) + col0 col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT cor0.col0 DIV ( + col2 * - col2 ) AS col1 FROM tab0 AS cor0
----
-35
0
0

skipif mysql # not compatible
query I rowsort label-4461
SELECT cor0.col0 / ( + col2 * - col2 ) AS col1 FROM tab0 AS cor0
----
-35
0
0

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT ALL + 20 * - cor0.col1 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT ALL + 23 + 12 * + col2 AS col2 FROM tab0 AS cor0
----
1007
35
419

query I rowsort
SELECT ALL - 26 * 18 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9284f8288c2e30fc6dac977f047f13d4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4466
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4467
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT cor0.col0 * - ( + col0 ) FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4469
SELECT + 69 * - col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT + 69 * - col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col0 ) + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4471
SELECT 67 DIV + cor0.col0 - + col2 FROM tab2 AS cor0
----
-18
-26
-38

skipif mysql # not compatible
query I rowsort label-4471
SELECT 67 / + cor0.col0 - + col2 FROM tab2 AS cor0
----
-18
-26
-38

query I rowsort
SELECT col0 + ( - tab0.col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT + tab2.col0 * + col1 * 80 AS col1 FROM tab2
----
107440
17360
368160

query I rowsort
SELECT col1 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - - 64 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
153
88
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4476
SELECT col2 DIV 34 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4476
SELECT col2 / 34 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT 86 FROM tab2, tab2 AS cor0
----
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4478
SELECT ALL col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 80 * col0 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT cor0.col2 * + col2 + col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - col2 * - col1 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT 0 * - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col2 FROM tab0
----
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4484
SELECT - col1 + - col2 DIV - col1 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4484
SELECT - col1 + - col2 / - col1 AS col1 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 + 46 col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT ALL + 41 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - 5 * col2 - 70 AS col2 FROM tab2 AS cor0
----
-200
-205
-260

query I rowsort
SELECT 15 * col0 FROM tab0 AS cor0
----
1335
360
525

onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT ALL + + col2 * ( - col0 ) DIV - col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL + + col2 * ( - col0 ) / - col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - col0 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4491
SELECT DISTINCT + + col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4492
SELECT - + col0 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT - + col0 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - ( + col2 ) + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL - col1 * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - cor0.col1 * col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT - col2 + - tab0.col0 + + 11 FROM tab0
----
-160
-25
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + ( - 0 * + col1 ) col0 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - 57 - 90 col1 FROM tab1
----
-36570
-4536
-59370

onlyif mysql # use DIV operator for integer division
query I rowsort label-4499
SELECT DISTINCT + col2 DIV - col1 AS col2 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + col2 / - col1 AS col2 FROM tab2
----
-2
0

query I rowsort
SELECT 1 * - col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - tab1.col1 + - 3 AS col2 FROM tab1
----
-13
-16
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT DISTINCT col0 DIV tab2.col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT col0 / tab2.col0 FROM tab2
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4503
SELECT col0 / + CAST( NULL AS SIGNED ) + 33 * - col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4503
SELECT col0 / + CAST ( NULL AS INTEGER ) + 33 * - col2 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * + col2 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL + col0 * + ( col1 ) + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT col2 * 79 FROM tab2 AS cor0
----
2054
2133
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( col2 ) * col1 col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT col2 * ( - col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - - col2 * - col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 75 * cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
-1800
-2625
-6675

onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT + - col0 * 16 + col1 DIV + ( cor0.col0 + + col1 ) AS col2 FROM tab1 AS cor0
----
-1024
-1280
-48

skipif mysql # not compatible
query I rowsort label-4511
SELECT + - col0 * 16 + col1 / + ( cor0.col0 + + col1 ) AS col2 FROM tab1 AS cor0
----
-1024
-1280
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 3 + + col2 FROM tab1
----
57
60
99

query I rowsort
SELECT + col2 * col1 + col0 * ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT 52 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-37
17
28

query I rowsort
SELECT - cor0.col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
1

query I rowsort
SELECT + 66 * - col0 + col1 FROM tab1 cor0
----
-172
-4214
-5267

onlyif mysql # use DIV operator for integer division
query I rowsort label-4519
SELECT DISTINCT col1 DIV tab0.col0 + 17 + - col0 AS col0 FROM tab0
----
-16
-4
-71

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT col1 / tab0.col0 + 17 + - col0 AS col0 FROM tab0
----
-16
-4
-71

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

onlyif mysql # use DIV operator for integer division
query I rowsort label-4521
SELECT ALL + col1 * col2 DIV 6 AS col1 FROM tab1 AS cor0
----
208
234
95

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL + col1 * col2 / 6 AS col1 FROM tab1 AS cor0
----
208
234
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col0 + - col1 * col2 col1 FROM tab2 AS cor0
----
-788
4550
5595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4523
SELECT ALL + col2 * CAST( NULL AS DECIMAL ) - + col0 * tab2.col0 * - CAST( + col1 AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL + col2 * CAST ( NULL AS REAL ) - + col0 * tab2.col0 * - CAST ( + col1 AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4524
SELECT - CAST( + 80 AS SIGNED ) - col1 col1 FROM tab1 AS cor0
----
-106
-90
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4524
SELECT - CAST ( + 80 AS INTEGER ) - col1 col1 FROM tab1 AS cor0
----
-106
-90
-93

query I rowsort
SELECT - col2 + 16 FROM tab2 AS cor0
----
-10
-11
-22

query I rowsort
SELECT ALL + col2 * + ( - tab0.col1 ) - + col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + col1 * - 56 AS col0 FROM tab0
----
-4816
-5096
-5432

query I rowsort
SELECT DISTINCT - col2 * - ( col1 ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4529
SELECT col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - + cor0.col0 + + 66 AS col1 FROM tab0 AS cor0
----
-23
31
42

query I rowsort
SELECT ALL col0 + + 70 FROM tab0 AS cor0
----
105
159
94

query I rowsort
SELECT 5 + col1 * col1 FROM tab2 AS cor0
----
294
3486
966

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-86
-91
-97

query I rowsort
SELECT ALL ( - col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( col2 AS REAL ) * col0 - col2 * col2 col0 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT ALL ( 98 ) AS col0 FROM tab1 AS cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * + col1 col1 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4539
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 48 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 48 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab2 AS cor0
----
80

query I rowsort
SELECT ALL - ( cor0.col0 ) * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - ( + col1 ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + 35 + - ( - cor0.col2 ) * + cor0.col2 FROM tab0 AS cor0
----
1124
36
6759

query I rowsort
SELECT + + col1 + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT col0 + - col0 * - col2 FROM tab1
----
165
3712
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4546
SELECT 6 - tab1.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT 6 - tab1.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 29 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT ALL - - 6 AS col0 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - 95 * col1 + ( - col1 + col2 ) FROM tab1 AS cor0
----
-1152
-2442
-903

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT - - col2 * + col1 + + col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT ALL + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 50 * - col1 + + col1 * col2 FROM tab1 AS cor0
----
104
598
70

query I rowsort
SELECT 52 * - col1 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT ALL col1 + col2 * + 38 + - col0 FROM tab1 AS cor0
----
2075
2112
3581

query I rowsort
SELECT + + 25 AS col2 FROM tab1 cor0
----
25
25
25

query I rowsort
SELECT - 21 * col0 AS col1 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT col2 * + 80 FROM tab0 AS cor0
----
2640
6560
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT DISTINCT - + col2 DIV 56 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - + col2 / 56 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + cor0.col0 * 8 FROM tab2 AS cor0
----
56
624
632

query I rowsort
SELECT ALL - - cor0.col1 * col1 + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL 77 * - col1 FROM tab2
----
-1309
-2387
-4543

query I rowsort
SELECT + col0 - - tab0.col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT 52 FROM tab0, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT + 91 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to d6f0339e9f022f317c10dc07cb55927b

query I rowsort
SELECT + - col0 * ( cor0.col0 ) * col1 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - cor0.col1 - col0 * - col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL + col0 * - cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - col0 + - ( col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL + col0 * col2 * + col1 - col2 AS col0 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT 34 + + ( + col2 ) FROM tab2 AS cor0
----
60
61
72

query I rowsort
SELECT + 63 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + col1 + cor0.col1 AS col0 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL ( col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT DISTINCT - col2 + - 97 DIV + col1 AS col0 FROM tab2
----
-27
-30
-43

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - col2 + - 97 / + col1 AS col0 FROM tab2
----
-27
-30
-43

query I rowsort
SELECT cor0.col0 + 77 FROM tab2, tab2 cor0
----
9 values hashing to 360688844eea5f423bc1c9260da26ce8

query I rowsort
SELECT col0 * - col1 + - col2 * 21 FROM tab0
----
-2757
-3416
-9821

query I rowsort
SELECT col1 * col0 + - ( - col0 ) * col0 AS col0 FROM tab1
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4579
SELECT col0 DIV + tab1.col2 + ( + col2 ) FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-4579
SELECT col0 / + tab1.col2 + ( + col2 ) FROM tab1
----
54
58
96

query I rowsort
SELECT + - cor0.col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - + col0 * + col0 + - col1 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-4163
-6509
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT DISTINCT - col0 - - cor0.col0 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT - col0 - - cor0.col0 / col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - col1 * - col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + cor0.col2 + col0 * - col2 + + 35 * + col0 FROM tab0 AS cor0
----
-4101
1191
81

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 54f94bc315b13bb4d5a30c251c64c399

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT - 81 FROM tab2, tab2 cor0
----
-81

query I rowsort
SELECT - 54 + col0 AS col1 FROM tab1 AS cor0
----
-51
10
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT - cor0.col1 + col0 DIV + col0 FROM tab0 cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4589
SELECT - cor0.col1 + col0 / + col0 FROM tab0 cor0
----
-85
-90
-96

query I rowsort
SELECT ALL ( col2 ) * col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - + 67 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT ALL - + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 34 FROM tab2, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL + tab2.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT + col2 + - CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-4595
SELECT + col2 + - CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL + 89 + 39 FROM tab1, tab1 AS cor0
----
9 values hashing to 6a9ed45ca8e49cad3cefcf18e4d680fe

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 WHERE ( NULL ) >= - cor0.col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT + cor0.col1 DIV cor0.col2 + - 64 * - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-10816
-43264
-6400

skipif mysql # not compatible
query I rowsort label-4598
SELECT + cor0.col1 / cor0.col2 + - 64 * - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-10816
-43264
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4599
SELECT - col0 * - cor0.col2 * col2 + + col1 * col1 + col2 * col2 DIV col1 FROM tab1 AS cor0
----
208360
738157
9536

skipif mysql # not compatible
query I rowsort label-4599
SELECT - col0 * - cor0.col2 * col2 + + col1 * col1 + col2 * col2 / col1 FROM tab1 AS cor0
----
208360
738157
9536

query I rowsort
SELECT + cor0.col2 * ( + col1 ) + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - 45 + - col2 * col1 FROM tab1 AS cor0
----
-1293
-1449
-615

query I rowsort
SELECT + ( + col1 ) * + col1 + 60 FROM tab1 AS cor0
----
160
229
736

query I rowsort
SELECT DISTINCT tab0.col1 * + 26 AS col0 FROM tab0
----
2236
2366
2522

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
3
64
80

query I rowsort
SELECT + col1 * + cor0.col0 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + col2 + + 32 AS col0 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT ALL + col1 * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT 54 FROM tab1 cor0
----
54

query I rowsort
SELECT + 41 + + 85 AS col2 FROM tab2 AS cor0
----
126
126
126

query I rowsort
SELECT - 4 AS col1 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT 86 * col2 + col2 AS col0 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + 13 FROM tab0, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL - + 15 + col2 * cor0.col0 FROM tab0 AS cor0
----
20
7283
777

onlyif mysql # use DIV operator for integer division
query I rowsort label-4615
SELECT DISTINCT + 99 DIV + col2 - - col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT + 99 / + col2 - - col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ( + cor0.col0 ) - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - ( 32 + - tab0.col1 ) * col1 FROM tab0
----
4644
5369
6305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 87 col0 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 90 + cor0.col1 FROM tab2 cor0
----
107
121
149

onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT ALL - 90 + + cor0.col1 DIV col1 FROM tab0 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL - 90 + + cor0.col1 / col1 FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4622
SELECT ALL - 30 DIV col0 - col1 FROM tab2 AS cor0
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - 30 / col0 - col1 FROM tab2 AS cor0
----
-17
-35
-59

query I rowsort
SELECT ( 77 ) AS col0 FROM tab0
----
77
77
77

query I rowsort
SELECT 63 + col0 FROM tab0
----
152
87
98

query I rowsort
SELECT ALL + ( + col2 ) + - col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT col2 * 85 * - col2 FROM tab0
----
-571540
-85
-92565

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4627
SELECT DISTINCT + ( col1 ) * col2 + + CAST( + col0 + col2 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT + ( col1 ) * col2 + + CAST ( + col0 + col2 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + ( tab0.col2 * col1 ) + + col1 AS col1 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-4629
SELECT col0 * + tab1.col1 + col2 DIV col0 FROM tab1
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-4629
SELECT col0 * + tab1.col1 + col2 / col0 FROM tab1
----
1041
640
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4630
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 + + col0 col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 + + col0 col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - - col1 * 31 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT + + col0 + + ( col1 ) * + col2 - col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - cor0.col1 + col0 * - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT + col2 * col2 - col0 * col0 FROM tab0 AS cor0
----
-1197
-1224
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-4635
SELECT col2 + + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-4635
SELECT col2 + + col2 / col0 AS col1 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT - cor0.col0 + 78 AS col0 FROM tab0 AS cor0
----
-11
43
54

query I rowsort
SELECT DISTINCT col0 * - ( col1 + col0 ) FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT ALL - cor0.col1 * - 13 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9484e9b7c9bf51f2da71037766f081d0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT + cor0.col2 DIV cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 29003b12992a159c9129fd3315c7b152

skipif mysql # not compatible
query I rowsort label-4639
SELECT + cor0.col2 / cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 29003b12992a159c9129fd3315c7b152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4640
SELECT ALL col2 * - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL col2 * - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4641
SELECT 50 * - tab0.col1 - - CAST( 7 * col2 AS SIGNED ) col0 FROM tab0
----
-3976
-4069
-4843

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4641
SELECT 50 * - tab0.col1 - - CAST ( 7 * col2 AS INTEGER ) col0 FROM tab0
----
-3976
-4069
-4843

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4642
SELECT DISTINCT + col1 * col2 * + CAST( col1 AS SIGNED ) FROM tab2
----
10982
25947
90506

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT + col1 * col2 * + CAST ( col1 AS INTEGER ) FROM tab2
----
10982
25947
90506

query I rowsort
SELECT col2 + 25 AS col0 FROM tab0 AS cor0
----
107
26
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4644
SELECT + + col0 DIV - 60 - + col0 FROM tab0 AS cor0
----
-24
-35
-90

skipif mysql # not compatible
query I rowsort label-4644
SELECT + + col0 / - 60 - + col0 FROM tab0 AS cor0
----
-24
-35
-90

query I rowsort
SELECT col2 - + cor0.col1 * - col0 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4646
SELECT ALL + col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT cor0.col1 DIV - CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4647
SELECT cor0.col1 / - CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + col2 * + col1 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL cor0.col0 + + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + + col0 * ( + cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4652
SELECT - - col1 + ( + ( + col0 ) ) * CAST( 78 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
577
6143
6179

skipif mysql # not compatible
query I rowsort label-4652
SELECT - - col1 + ( + ( + col0 ) ) * CAST ( 78 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
577
6143
6179

query I rowsort
SELECT - col2 * tab0.col2 + + col1 FROM tab0
----
-1003
-6633
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4654
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4654
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 + 65 * tab2.col2 - col0 * + col1 FROM tab2
----
-2834
1206
1545

query I rowsort
SELECT DISTINCT col1 * col2 + + col0 - col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( - col2 ) * + col0 col0 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4659
SELECT DISTINCT - - col0 * col2 - - col2 * col0 DIV + col0 FROM tab0 AS cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT - - col0 * col2 - - col2 * col0 / + col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - - col0 + 44 * col0 AS col2 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT + + col2 * col0 * cor0.col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - col1 + - col0 + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1247
179
4465

query I rowsort
SELECT DISTINCT - col0 + + col0 * col2 AS col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT col0 + + col1 * + col0 - - col1 AS col1 FROM tab2
----
1439
255
4739

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col2 * + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT + - col0 + cor0.col1 * 20 DIV col2 FROM tab1 AS cor0
----
-61
-78
6

skipif mysql # not compatible
query I rowsort label-4666
SELECT + - col0 + cor0.col1 * 20 / col2 FROM tab1 AS cor0
----
-61
-78
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / col2 <> NULL
----

query I rowsort
SELECT DISTINCT tab0.col2 + - col0 + col0 * col0 AS col0 FROM tab0
----
1191
585
7914

query I rowsort
SELECT ALL col1 * + col1 * + tab1.col2 AS col0 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT col2 * + tab2.col0 + tab2.col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( col2 + + col1 + col2 ) NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - col0 * col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + tab1.col0 * tab1.col2 * - col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT + + cor0.col2 + - col0 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
-114038
-5076
-52702

query I rowsort
SELECT DISTINCT 12 * cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
242
399
734

onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT 0 * - col2 DIV CAST( - col1 * - col0 AS SIGNED ) + - col1 * + col0 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-4676
SELECT 0 * - col2 / CAST ( - col1 * - col0 AS INTEGER ) + - col1 * + col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4677
SELECT ALL col1 DIV - tab2.col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL col1 / - tab2.col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT ALL 54 - 90 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT ALL - - col2 * + col2 * col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL + - col1 + - col1 * - cor0.col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + col1 * col2 * col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + + 19 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT 35 + - col0 * - col0 AS col1 FROM tab0
----
1260
611
7956

onlyif mysql # use DIV operator for integer division
query I rowsort label-4684
SELECT - + col0 * - col2 + 21 DIV cor0.col0 AS col1 FROM tab1 cor0
----
169
3648
7680

skipif mysql # not compatible
query I rowsort label-4684
SELECT - + col0 * - col2 + 21 / cor0.col0 AS col1 FROM tab1 cor0
----
169
3648
7680

query I rowsort
SELECT DISTINCT - 88 + - col2 AS col1 FROM tab1 AS cor0
----
-142
-145
-184

query I rowsort
SELECT + - col2 * - cor0.col1 + col0 * + col2 * col0 FROM tab0 AS cor0
----
1322
21846
656984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + 90 * ( cor0.col0 ) col2 FROM tab2 cor0
----
1467
7756
8554

query I rowsort
SELECT ALL 56 * + col2 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT - - col2 + + cor0.col2 FROM tab1 cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT DISTINCT - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - col0 / col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + ( col2 ) * 69 FROM tab0 cor0
----
-2277
-5658
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4692
SELECT ALL cor0.col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL cor0.col0 / col2 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 * - col2 + 58 FROM tab2 AS cor0
----
-1476
-588
-779

query I rowsort
SELECT - col1 * col2 * - 42 AS col1 FROM tab1 AS cor0
----
23940
52416
58968

query I rowsort
SELECT 42 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

query I rowsort
SELECT DISTINCT + - ( 45 ) * col2 AS col2 FROM tab0 AS cor0
----
-1485
-3690
-45

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - + 57 * col1 + col1 AS col1 FROM tab2 cor0
----
-1736
-3304
-952

query I rowsort
SELECT + cor0.col1 + 12 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 74e0471cdd5aa70daea2e37c51076f1d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4700
SELECT ALL + + col1 DIV 95 + - cor0.col0 * 14 FROM tab0 AS cor0
----
-1246
-336
-489

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + + col1 / 95 + - cor0.col0 * 14 FROM tab0 AS cor0
----
-1246
-336
-489

query I rowsort
SELECT + 38 - col1 FROM tab0 AS cor0
----
-48
-53
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 + 19 col2 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT 13 + + 49 FROM tab0, tab0 AS cor0
----
62

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4705
SELECT - - col0 + col0 DIV + 53 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-4705
SELECT - - col0 + col0 / + 53 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT 12 * - col2 FROM tab2
----
-312
-324
-456

query I rowsort
SELECT + 49 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4708
SELECT - - col1 + col0 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-4708
SELECT - - col1 + col0 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + ( - tab1.col0 ) FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 * + col1 ) + tab1.col0 col0 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + tab2.col2 ) + tab2.col1 col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT + 26 * col2 AS col1 FROM tab0
----
2132
26
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 62 col0 FROM tab2
----
140
141
69

query I rowsort
SELECT + cor0.col1 + - cor0.col1 + + col2 FROM tab1 cor0
----
54
57
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL IN ( tab0.col2 ) ) AND ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - tab1.col1 * + col1 AS col1 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT ALL - col2 DIV + col2 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - col2 / + col2 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 + col1 + + col1 * - col2 FROM tab0
----
-2719
-7289
1

query I rowsort
SELECT tab0.col1 + col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - col2 * col1 + col0 AS col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT 97 * - col2 AS col2 FROM tab2
----
-2522
-2619
-3686

query I rowsort
SELECT 63 AS col1 FROM tab1
----
63
63
63

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0
----
93

query I rowsort
SELECT 7 * col2 FROM tab1
----
378
399
672

onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT ( tab1.col1 ) DIV + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4727
SELECT ( tab1.col1 ) / + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - 73 + 95 AS col1 FROM tab0
----
22

query I rowsort
SELECT 17 AS col2 FROM tab2
----
17
17
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4730
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 FROM tab1
----
NULL

query I rowsort
SELECT - ( tab1.col1 ) * + tab1.col0 * col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT - ( - 66 ) AS col0 FROM tab2
----
66

query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + + cor0.col1 + 41 * col0 FROM tab1 AS cor0
----
149
2634
3293

onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT + + col1 + col0 DIV col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-4735
SELECT + + col1 + col0 / col2 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT ( 75 * tab2.col0 + - col0 ) AS col1 FROM tab2
----
518
5772
5846

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4737
SELECT + CAST( - col0 + col1 AS SIGNED ) * col0 col0 FROM tab2
----
-1482
-4898
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4737
SELECT + CAST ( - col0 + col1 AS INTEGER ) * col0 col0 FROM tab2
----
-1482
-4898
168

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT - 0 DIV - tab2.col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4738
SELECT - 0 / - tab2.col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( - col2 ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 38 * - 35 * - col1 FROM tab1 AS cor0
----
13300
17290
34580

query I rowsort
SELECT - - 37 + - cor0.col1 + col2 FROM tab2 AS cor0
----
33
4
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT - + 59 * + col0 + col0 DIV + col2 FROM tab1 AS cor0
----
-177
-3775
-4720

skipif mysql # not compatible
query I rowsort label-4742
SELECT - + 59 * + col0 + col0 / + col2 FROM tab1 AS cor0
----
-177
-3775
-4720

query I rowsort
SELECT + 18 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT 69 + col1 * - col0 FROM tab0 AS cor0
----
-1995
-3326
-8030

query I rowsort
SELECT - col0 * - col1 * + col2 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4746
SELECT + ( col1 ) * col0 + - col0 + col1 DIV + col0 FROM tab1 cor0
----
576
83
960

skipif mysql # not compatible
query I rowsort label-4746
SELECT + ( col1 ) * col0 + - col0 + col1 / + col0 FROM tab1 cor0
----
576
83
960

query I rowsort
SELECT - + cor0.col2 * + col0 + + col1 + col1 * + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1928
203410
29633

query I rowsort
SELECT DISTINCT col0 + 0 + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + col0 + 36 FROM tab0
----
125
60
71

query I rowsort
SELECT ( col2 ) * - col2 + col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT - col1 * - col0 + + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col1 * + col1 * col2 + - cor0.col1 * - col1 + + col1 FROM tab2 AS cor0
----
11288
26939
94046

query I rowsort
SELECT 80 * cor0.col2 AS col0 FROM tab2 AS cor0
----
2080
2160
3040

query I rowsort
SELECT - col1 * + col0 - + col2 * col2 AS col1 FROM tab0
----
-14823
-3153
-3396

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT DISTINCT + col2 DIV col0 + + col1 * + col2 + tab0.col0 * - col2 FROM tab0
----
164
2047
62

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT + col2 / col0 + + col1 * + col2 + tab0.col0 * - col2 FROM tab0
----
164
2047
62

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT - col2 - tab2.col0 FROM tab2
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4758
SELECT DISTINCT col1 + col1 DIV - col1 + col1 AS col2 FROM tab0
----
171
181
193

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT col1 + col1 / - col1 + col1 AS col2 FROM tab0
----
171
181
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * col0 col1 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + + tab2.col1 * col1 col0 FROM tab2
----
-2713
1453
772

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - - col0 * + col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col0 - + col0 / + col0 FROM tab1 WHERE NOT + col1 * col0 - - col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col0 - - col2 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4764
SELECT DISTINCT col1 DIV - tab0.col1 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT col1 / - tab0.col1 AS col0 FROM tab0
----
-1

query I rowsort
SELECT col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col1 + col0 + - cor0.col2 FROM tab1 AS cor0 WHERE ( cor0.col1 ) NOT IN ( - col2 + + col0 )
----
-25
-3
17

query I rowsort
SELECT + col0 * - col2 * col0 + - col1 FROM tab1 AS cor0
----
-233482
-512
-614413

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col1 * - col2 + col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + col1 + - tab1.col2 AS col1 FROM tab1
----
-28
-47
-83

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 >= ( NULL )
----

query I rowsort
SELECT + col1 * col0 + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT tab0.col1 + - col1 * - col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT col1 * col0 + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT col2 * - col0 + col1 * + tab0.col1 AS col0 FROM tab0
----
6604
9374
983

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 ) BETWEEN col2 * tab2.col2 + - col2 + - col1 AND ( NULL )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col1 * - tab0.col1 AS col2 FROM tab0 WHERE NOT + col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col1 + col2 + - col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 + col1 + col1 * + col1 FROM tab0
----
7515
8454
9507

query I rowsort
SELECT ALL col1 * - col2 + col2 AS col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - col0 + - col2 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE col2 * - col1 = ( NULL )
----

query I rowsort
SELECT col0 + - cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - col1 - col1 FROM tab2 WHERE ( col2 ) NOT BETWEEN col0 * + col0 / col0 AND ( tab2.col2 * + col0 ) AND ( col1 * col1 ) NOT IN ( - tab2.col0 + col1 )
----
-118
-34

query I rowsort
SELECT DISTINCT - col1 + col0 * - col2 AS col0 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL col2 - + col1 * - col0 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL col2 + + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT cor0.col0 * + cor0.col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + col1 - + cor0.col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT col0 * col1 - + tab1.col0 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT + col2 + col0 AS col2 FROM tab1 WHERE col0 * col2 + col1 BETWEEN NULL AND col2
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4795
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - ( 53 ) FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT + - col2 + 78 * col1 AS col0 FROM tab0 AS cor0
----
6675
7016
7565

query I rowsort
SELECT DISTINCT - 45 FROM tab1, tab1 AS cor0
----
-45

query I rowsort
SELECT DISTINCT - + col1 * 80 + + col0 AS col0 FROM tab1 AS cor0
----
-2077
-736
-960

query I rowsort
SELECT - col2 * - cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + + ( col2 ) * + col0 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL - 12 * + col0 + + col2 FROM tab1 AS cor0
----
-711
-864
18

query I rowsort
SELECT DISTINCT - 45 * col0 AS col2 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT + - col2 + - col1 * col1 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT DISTINCT - - col2 * col2 + + cor0.col1 * - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-201
-2746
1172

onlyif mysql # use DIV operator for integer division
query I rowsort label-4807
SELECT cor0.col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4807
SELECT cor0.col1 / - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 + 74 * - col2 FROM tab0
----
-2356
-5977
23

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4810
SELECT CAST( col2 AS SIGNED ) * tab1.col0 * + CAST( + col1 AS SIGNED ) + + col0 * ( 61 + tab1.col2 ) AS col1 FROM tab1
----
112400
44032
4557

skipif mysql # not compatible
query I rowsort label-4810
SELECT CAST ( col2 AS INTEGER ) * tab1.col0 * + CAST ( + col1 AS INTEGER ) + + col0 * ( 61 + tab1.col2 ) AS col1 FROM tab1
----
112400
44032
4557

query I rowsort
SELECT ALL - col0 + - 90 AS col1 FROM tab2 AS cor0
----
-168
-169
-97

query I rowsort
SELECT ALL + - col1 - - col0 * - col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT col0 - 94 FROM tab2 AS cor0
----
-15
-16
-87

query I rowsort
SELECT ALL col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 * col1 AS col1 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4817
SELECT + col0 + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-4817
SELECT + col0 + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col1 + ( + col2 ) * col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT DISTINCT col1 + - 80 DIV - 14 FROM tab0 AS cor0
----
102
91
96

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT col1 + - 80 / - 14 FROM tab0 AS cor0
----
102
91
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT col2 DIV 97 + + col0 * cor0.col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4820
SELECT col2 / 97 + + col0 * cor0.col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 45 * + col2 col1 FROM tab0 AS cor0
----
127710
335790
4365

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4822
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - col1 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + - col1 * col0 + + 64 * + col0 AS col2 FROM tab0 cor0
----
-1155
-2403
-528

onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT DISTINCT col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT col1 / col0 AS col2 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT ALL - col0 - - col1 AS col2 FROM tab0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4827
SELECT ALL - 25 * tab0.col1 - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - 25 * tab0.col1 - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col0 * + col0 + - cor0.col1 * 76 FROM tab0 AS cor0
----
-126197
-56072
-727727

query I rowsort
SELECT + + col2 - - cor0.col1 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL col0 * - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT tab2.col0 * col1 + - col1 - 11 * col1 AS col2 FROM tab2
----
-155
1139
3894

query I rowsort
SELECT ALL - 57 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT ALL - tab1.col1 + 82 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1b73bb00a5693deb56e15294b86360a5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4835
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - + cor0.col0 + 92 * 61 FROM tab1 AS cor0
----
5532
5548
5609

query I rowsort
SELECT DISTINCT + - col0 + + col2 FROM tab1 cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4838
SELECT ALL + col0 DIV - ( ( + col2 ) ) + col2 AS col1 FROM tab1
----
54
56
96

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + col0 / - ( ( + col2 ) ) + col2 AS col1 FROM tab1
----
54
56
96

query I rowsort
SELECT ALL ( - 97 * - tab0.col2 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to eee3505520bb2487cbcea9fcd54d0323

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT ALL - col1 * CAST( - 51 * col0 AS SIGNED ) + 88 * + tab1.col2 AS col2 FROM tab1
----
37656
61488
8730

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - col1 * CAST ( - 51 * col0 AS INTEGER ) + 88 * + tab1.col2 AS col2 FROM tab1
----
37656
61488
8730

query I rowsort
SELECT DISTINCT col0 + - tab2.col1 * col0 + col2 * col1 FROM tab2
----
-2990
-618
627

query I rowsort
SELECT - col0 + - cor0.col1 * col0 * + ( col0 ) FROM tab1 AS cor0
----
-237
-41024
-83280

query I rowsort
SELECT + col0 * + col1 + + col1 + col1 FROM tab0 AS cor0
----
2236
3589
8281

query I rowsort
SELECT - ( - col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col0 * col0 AS col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT col2 * col0 * + col0 AS col2 FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-4847
SELECT col2 DIV col0 + - col0 * - col1 FROM tab1
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-4847
SELECT col2 / col0 + - col0 * - col1 FROM tab1
----
1041
640
96

query I rowsort
SELECT col0 * - ( + tab1.col0 ) AS col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + col2 * col1 * - col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT col2 + col1 * col1 AS col0 FROM tab2
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col0 FROM tab1
----
-69
-69
-69

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a

query I rowsort
SELECT - ( - col2 ) + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + col0 * + col0 + col1 * - 25 AS col0 FROM tab1 AS cor0
----
-641
3846
6075

onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT ALL + 63 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL + 63 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL ( col0 ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + ( - 21 ) FROM tab1 cor0
----
-21
-21
-21

query I rowsort
SELECT - col1 * col1 + - 96 AS col2 FROM tab2
----
-1057
-3577
-385

query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT + cor0.col1 DIV - 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4864
SELECT + cor0.col1 / - 58 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 + + col0 * + 57 FROM tab0 AS cor0
----
1344
1960
4984

onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT col0 DIV ( col0 ) col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4866
SELECT col0 / ( col0 ) col2 FROM tab0
----
1
1
1

query I rowsort
SELECT - cor0.col0 + + col2 + 33 FROM tab1 AS cor0
----
26
49
84

query I rowsort
SELECT ALL - + 0 + + cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT DISTINCT + - col2 DIV ( ( col2 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT + - col2 / ( ( col2 ) ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * - cor0.col1 col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT col2 DIV col1 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-4871
SELECT col2 / col1 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - ( + col2 ) + + ( 30 ) FROM tab2 AS cor0
----
-8
3
4

query I rowsort
SELECT - + col2 * - col1 - + ( - 73 + - col0 ) * + ( + col2 ) * col0 AS col0 FROM tab2 AS cor0
----
15957
307762
456950

query I rowsort
SELECT ALL col1 + - col0 + col2 AS col1 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT - + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col2 + col2 AS col0 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT - cor0.col2 + - col1 FROM tab2 cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4878
SELECT - ( - col1 ) * + col0 DIV + tab2.col0 AS col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4878
SELECT - ( - col1 ) * + col0 / + tab2.col0 AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + col2 * - col0 + col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col0 * col0 + 96 AS col1 FROM tab1 AS cor0
----
-4000
-6304
87

query I rowsort
SELECT ALL + ( col0 ) + - ( + 22 ) AS col0 FROM tab2 cor0
----
-15
56
57

query I rowsort
SELECT + col1 - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + - col0 * 56 + + 40 AS col1 FROM tab2 AS cor0
----
-345
-4250
-4305

query I rowsort
SELECT ALL + col2 * col1 + 11 * col0 * col1 FROM tab1 AS cor0
----
12688
2262
7610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * + ( + cor0.col0 ) col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-4886
SELECT DISTINCT - col0 DIV + 63 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - col0 / + 63 FROM tab2 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 4 col2 FROM tab0 AS cor0
----
28
39
93

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
24
35
89

query I rowsort
SELECT - ( cor0.col2 ) + col1 * + col0 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT 38 DIV - 1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif mysql # not compatible
query I rowsort label-4890
SELECT 38 / - 1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4891
SELECT ALL col1 * + ( + col2 * + col0 + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL col1 * + ( + col2 * + col0 + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4892
SELECT ALL CAST( NULL AS DECIMAL ) * 20 FROM tab2, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL CAST ( NULL AS REAL ) * 20 FROM tab2, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4893
SELECT DISTINCT tab0.col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT tab0.col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT - ( + tab2.col2 + - tab2.col1 ) FROM tab2
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT 74 DIV + 59 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4896
SELECT 74 / + 59 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL 38 AS col2 FROM tab2, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 9124b06d33995d82062026964cce3a38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT + tab2.col0 DIV tab2.col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4899
SELECT + tab2.col0 / tab2.col0 FROM tab2
----
1
1
1

query I rowsort
SELECT + 74 FROM tab0, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT cor0.col2 + 42 AS col2 FROM tab0 AS cor0
----
124
43
75

query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
-17

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT ALL + col0 * - col1 * + col2 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - - 3 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - 1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT 21 + col2 FROM tab1
----
117
75
78

query I rowsort
SELECT ALL + col0 + + col0 + - col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - col2 - tab1.col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT 24 - - col1 AS col2 FROM tab2
----
41
55
83

query I rowsort
SELECT ALL 72 + col2 FROM tab0 AS cor0
----
105
154
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 col2 FROM tab0 cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 + col2 * ( col0 * - col0 ) AS col1 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT + tab2.col0 + col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT col0 + + ( + tab0.col1 ) FROM tab0
----
110
132
180

query I rowsort
SELECT tab2.col2 + 51 AS col2 FROM tab2
----
77
78
89

query I rowsort
SELECT ALL col0 + - col1 + + 14 FROM tab2
----
-10
33
76

query I rowsort
SELECT - + cor0.col2 * col1 + 50 AS col1 FROM tab0 AS cor0
----
-2788
-47
-7412

query I rowsort
SELECT col2 * cor0.col1 + + ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * 91 AS col2 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT ALL col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + 11 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT DISTINCT ( col0 ) + col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 46 col1 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT 52 * + col0 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT - 35 AS col0 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT - ( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 17 * + col1 AS col1 FROM tab0 AS cor0
----
1462
1547
1649

query I rowsort
SELECT DISTINCT 81 FROM tab1 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col1 FROM tab1, tab0 cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4932
SELECT ALL - col1 DIV col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL - col1 / col1 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + col0 + ( + col2 ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + - col1 * col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - 73 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + col1 * - ( - col0 ) + col2 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + + 99 col1 FROM tab2
----
137
195
236

onlyif mysql # use DIV operator for integer division
query I rowsort label-4939
SELECT + 9 + col2 DIV col0 FROM tab2
----
12
9
9

skipif mysql # not compatible
query I rowsort label-4939
SELECT + 9 + col2 / col0 FROM tab2
----
12
9
9

query I rowsort
SELECT col1 + col1 * - 16 * col2 AS col0 FROM tab0
----
-119301
-1455
-45322

query I rowsort
SELECT + col0 + - col2 * + ( + 25 ) FROM tab2
----
-572
-668
-871

query I rowsort
SELECT ALL 52 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT DISTINCT col1 + col1 DIV tab1.col1 AS col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT col1 + col1 / tab1.col1 AS col0 FROM tab1
----
11
14
27

query I rowsort
SELECT - col1 * + col0 - col1 AS col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT col2 + - tab1.col1 * 49 * + ( + col2 ) FROM tab1
----
-27873
-61056
-68742

query I rowsort
SELECT + tab0.col0 * + tab0.col0 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 3fb27a91711469131edbffaad90e6035

onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT ALL - 91 DIV col1 + 20 AS col1 FROM tab0
----
19
19
20

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - 91 / col1 + 20 AS col1 FROM tab0
----
19
19
20

query I rowsort
SELECT col0 * - col0 + ( + col2 + - col1 ) FROM tab2
----
-53
-6117
-6220

query I rowsort
SELECT DISTINCT 65 + - col2 + 41 AS col0 FROM tab2
----
68
79
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 + col1 col0 FROM tab0
----
146
151
157

query I rowsort
SELECT DISTINCT 0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 11 * - col2 * col0 AS col0 FROM tab2 cor0
----
-2079
-22308
-33022

query I rowsort
SELECT col1 + - col2 + - col2 FROM tab1 cor0
----
-104
-179
-82

query I rowsort
SELECT ALL - cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 3 * col2 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT + 80 * + col1 * - col1 FROM tab1
----
-13520
-54080
-8000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + - cor0.col2 + ( cor0.col1 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT col2 + col0 * + ( - col0 * + 3 ) + - col1 FROM tab2 AS cor0
----
-151
-18285
-18702

query I rowsort
SELECT col1 * - 14 AS col0 FROM tab0
----
-1204
-1274
-1358

skipif mysql # not compatible
query I rowsort
SELECT + col2 * - ( - ( cor0.col2 ) ) + CAST ( - col2 + + col1 AS REAL ) AS col1 FROM tab0 cor0
----
1142
6733
97

query I rowsort
SELECT ALL col1 + ( col1 ) FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4963
SELECT cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 + - col0 * - 19 AS col1 FROM tab1 AS cor0
----
1226
1533
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col2 ) col0 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4966
SELECT + col0 * + CAST( col1 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-4966
SELECT + col0 * + CAST ( col1 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4967
SELECT ALL - cor0.col2 + + col1 DIV + 14 AS col1 FROM tab0 AS cor0
----
-27
-76
5

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL - cor0.col2 + + col1 / + 14 AS col1 FROM tab0 AS cor0
----
-27
-76
5

query I rowsort
SELECT DISTINCT col0 - col1 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL + + cor0.col0 - + col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + cor0.col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT DISTINCT - col2 * - col0 + col2 DIV col1 + - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
186
2028
3004

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT - col2 * - col0 + col2 / col1 + - col2 / col0 AS col2 FROM tab2 AS cor0
----
186
2028
3004

query I rowsort
SELECT DISTINCT col0 + col2 * col0 AS col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + 22 FROM tab0, tab2 AS cor0
----
22

query I rowsort
SELECT ALL + ( col1 ) * col0 + 10 FROM tab1 AS cor0
----
1050
650
88

query I rowsort
SELECT ALL + 46 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
19
20
8

query I rowsort
SELECT ALL + col2 * - col0 + + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - 46 * + col0 - - col2 FROM tab2 cor0
----
-295
-3562
-3596

query I rowsort
SELECT DISTINCT + ( - ( col1 ) ) * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col0 + ( + col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + 54 * col1 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT DISTINCT - + ( - col1 ) * cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - - 30 + col0 AS col2 FROM tab1 AS cor0
----
110
33
94

query I rowsort
SELECT 5 - - col1 FROM tab0 AS cor0
----
102
91
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT + col2 * col2 - + 50 DIV - 83 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-4984
SELECT + col2 * col2 - + 50 / - 83 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + 65 * col1 * col2 FROM tab0 AS cor0
----
184470
485030
6305

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4986
SELECT DISTINCT - + col1 + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT - + col1 + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - 90 + col2 AS col2 FROM tab2 AS cor0
----
-52
-63
-64

query I rowsort
SELECT + ( tab2.col2 ) - - tab2.col1 AS col2 FROM tab0, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 0a66faf44289070d88fd26bbc9bf34e3

query I rowsort
SELECT col2 + + 4 * - col1 * tab1.col1 FROM tab1
----
-2650
-343
-580

query I rowsort
SELECT 62 AS col2 FROM tab2
----
62
62
62

query I rowsort
SELECT 74 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT - col0 * 18 + col2 - col0 FROM tab2
----
-106
-1456
-1463

query I rowsort
SELECT + - col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4995
SELECT + - col0 DIV col0 + + 4 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4995
SELECT + - col0 / col0 + + 4 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL + + 56 * + col1 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT DISTINCT + 56 + - col1 FROM tab1 cor0
----
30
43
46

query I rowsort
SELECT - + 6 * col1 FROM tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT ALL - col1 - - col0 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-5001
SELECT ALL + ( col0 ) DIV - col0 + - col2 AS col1 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL + ( col0 ) / - col0 + - col2 AS col1 FROM tab1
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT - col1 * tab2.col1 DIV - col0 + ( col1 ) FROM tab2
----
103
168
20

skipif mysql # not compatible
query I rowsort label-5002
SELECT - col1 * tab2.col1 / - col0 + ( col1 ) FROM tab2
----
103
168
20

query I rowsort
SELECT DISTINCT ( - tab1.col0 ) AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + 48 AS col1 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT ALL 54 AS col1 FROM tab1
----
54
54
54

query I rowsort
SELECT ALL - 49 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT DISTINCT + col2 * 35 * col1 FROM tab1
----
19950
43680
49140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - 98 * + col0 col2 FROM tab2 AS cor0
----
-679
-7566
-7663

query I rowsort
SELECT ALL + col2 * - ( - col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + 87 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL + ( col0 ) * + col1 AS col0 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5015
SELECT CAST( NULL AS SIGNED ) + 25 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5015
SELECT CAST ( NULL AS INTEGER ) + 25 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5016
SELECT DISTINCT + ( col2 ) DIV col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT + ( col2 ) / col1 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 89 ) col1 FROM tab0
----
-89
-89
-89

query I rowsort
SELECT 57 AS col2 FROM tab2
----
57
57
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5019
SELECT ALL - CAST( NULL AS SIGNED ) + - 78 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - CAST ( NULL AS INTEGER ) + - 78 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + ( + col1 ) * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + 13 - - col0 * cor0.col2 FROM tab2 AS cor0
----
202
2041
3015

query I rowsort
SELECT ALL + + col1 - - col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + - col2 + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + ( cor0.col1 ) + col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col0 FROM tab2, tab1 AS cor0
----
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT - col0 + - 24 * cor0.col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-102
-103
-31

skipif mysql # not compatible
query I rowsort label-5027
SELECT - col0 + - 24 * cor0.col1 / col1 AS col1 FROM tab2 AS cor0
----
-102
-103
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col0 col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 70 AS REAL ) FROM tab2 AS cor0
----
-70

query I rowsort
SELECT ALL 42 + - col1 FROM tab2 AS cor0
----
-17
11
25

query I rowsort
SELECT col0 + cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5032
SELECT ALL + - ( 78 ) + + col0 + + col2 DIV col1 FROM tab1 cor0
----
-73
-9
9

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL + - ( 78 ) + + col0 + + col2 / col1 FROM tab1 cor0
----
-73
-9
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5033
SELECT col0 + col2 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT col0 + col2 / + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 88 FROM tab1
----
88
88
88

query I rowsort
SELECT DISTINCT + + col1 + + col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5036
SELECT DISTINCT + + col1 * col1 + - col2 DIV col1 FROM tab2 AS cor0
----
287
3481
961

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT + + col1 * col1 + - col2 / col1 FROM tab2 AS cor0
----
287
3481
961

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + - CAST ( col0 AS REAL ) * col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT - + cor0.col0 + - ( + 58 ) * - col2 * - col0 FROM tab0 AS cor0
----
-2065
-423373
-45960

query I rowsort
SELECT ALL + col2 * 9 AS col1 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
17
31
59

query I rowsort
SELECT DISTINCT - col0 + ( ( + cor0.col1 ) ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - - col0 + - ( 73 ) AS col2 FROM tab0 AS cor0
----
-38
-49
16

query I rowsort
SELECT - col1 * - col2 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + 45 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + tab0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( tab1.col1 ) col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL tab1.col2 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5048
SELECT col2 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT col2 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - - col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5050
SELECT ALL + - col0 DIV col2 - col1 * col2 AS col0 FROM tab0 AS cor0
----
-132
-2838
-7463

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + - col0 / col2 - col1 * col2 AS col0 FROM tab0 AS cor0
----
-132
-2838
-7463

query I rowsort
SELECT DISTINCT 53 FROM tab0, tab0 cor0
----
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT ALL + tab0.col1 DIV - col2 AS col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + tab0.col1 / - col2 AS col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT + ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + col2 + + col1 * col0 + 66 * + col2 AS col2 FROM tab2 AS cor0
----
2026
3889
6344

query I rowsort
SELECT + col1 * - 8 AS col2 FROM tab0 cor0
----
-688
-728
-776

query I rowsort
SELECT ALL - col2 * - col0 * col2 - - ( + 10 ) FROM tab1
----
207946
737290
8758

query I rowsort
SELECT 86 AS col1 FROM tab1
----
86
86
86

query I rowsort
SELECT - 99 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT - - 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - 54 + + col2 * CAST ( - col2 AS REAL ) col0 FROM tab0 cor0
----
-1035
-6670
53

query I rowsort
SELECT DISTINCT ( col1 ) * - col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + 4 * - col2 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT DISTINCT + col0 + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL + - col2 * - col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL 21 * cor0.col0 AS col2 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT ( - col2 ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - - 87 * + col0 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
14640
423
9216

query I rowsort
SELECT ALL + col2 * cor0.col2 - 27 FROM tab0 AS cor0
----
-26
1062
6697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5070
SELECT cor0.col0 * + cor0.col1 - + 67 DIV col0 FROM tab1 AS cor0
----
1040
56
639

skipif mysql # not compatible
query I rowsort label-5070
SELECT cor0.col0 * + cor0.col1 - + 67 / col0 FROM tab1 AS cor0
----
1040
56
639

onlyif mysql # use DIV operator for integer division
query I rowsort label-5071
SELECT DISTINCT col1 DIV - col2 AS col1 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT col1 / - col2 AS col1 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT ALL + tab1.col2 + - col1 + tab1.col2 FROM tab1
----
104
179
82

query I rowsort
SELECT + 86 * + col2 + - col1 AS col1 FROM tab1 AS cor0
----
4618
4892
8243

onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT col2 + - col0 DIV + 24 FROM tab2 AS cor0
----
23
27
35

skipif mysql # not compatible
query I rowsort label-5074
SELECT col2 + - col0 / + 24 FROM tab2 AS cor0
----
23
27
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5075
SELECT - col1 + - col1 DIV - col2 AS col0 FROM tab0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT - col1 + - col1 / - col2 AS col0 FROM tab0
----
-84
-90
0

query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2 WHERE ( - col0 ) < ( - col1 )
----
26
38

query I rowsort
SELECT ALL col1 * col0 + col0 * col1 AS col2 FROM tab0
----
16198
4128
6790

query I rowsort
SELECT DISTINCT col1 * - col1 + - col1 AS col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT col0 * col2 * col1 AS col1 FROM tab1 WHERE + col2 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5080
SELECT ALL col0 DIV col0 + + col0 + - col2 AS col2 FROM tab2
----
-19
42
53

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL col0 / col0 + + col0 + - col2 AS col2 FROM tab2
----
-19
42
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-5081
SELECT col0 - + col0 DIV col1 AS col2 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-5081
SELECT col0 - + col0 / col1 AS col2 FROM tab1
----
3
58
74

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 + + col1 )
----

query I rowsort
SELECT DISTINCT 41 FROM tab1, tab0, tab2 cor0
----
41

query I rowsort
SELECT DISTINCT - tab2.col2 + col0 AS col1 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5085
SELECT - col0 DIV - col2 + col1 AS col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-5085
SELECT - col0 / - col2 + col1 AS col1 FROM tab1
----
11
13
26

query I rowsort
SELECT 14 * + tab2.col1 + + col2 AS col1 FROM tab2
----
276
461
852

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab0, tab2 cor0, tab0 cor1
----
-59

query I rowsort
SELECT DISTINCT + - col0 + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT 86 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL 39 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT DISTINCT 48 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
48

query I rowsort
SELECT - cor0.col1 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT col1 + - tab2.col0 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab1 WHERE NULL >= + col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) BETWEEN - col0 / col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT col2 + - tab1.col0 * - tab1.col1 AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT - col2 + tab0.col2 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2 / - col0 - tab0.col2 * col1 )
----

query I rowsort
SELECT ALL col1 * + col1 + col0 FROM tab1
----
164
249
679

query I rowsort
SELECT ALL - col1 - col0 * tab1.col1 AS col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT col2 + + col0 * + col2 AS col0 FROM tab0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col1 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5104
SELECT ALL col2 + + col2 DIV col1 AS col1 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL col2 + + col2 / col1 AS col1 FROM tab2
----
26
27
40

query I rowsort
SELECT ALL col1 - col0 AS col0 FROM tab0 WHERE NOT col2 * col1 <= NULL
----

query I rowsort
SELECT ALL + tab0.col1 * col0 * tab0.col1 + - col2 FROM tab0
----
177471
329314
736927

onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT DISTINCT + col0 * + tab1.col0 DIV col0 + - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT + col0 * + tab1.col0 / col0 + - col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5108
SELECT ALL - col0 DIV - col0 + - col2 * col0 AS col1 FROM tab1
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - col0 / - col0 + - col2 * col0 AS col1 FROM tab1
----
-161
-3647
-7679

query I rowsort
SELECT ALL - 24 FROM tab0
----
-24
-24
-24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5110
SELECT CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5110
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 83 FROM tab0, tab1 AS cor0
----
83

query I rowsort
SELECT + 82 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 660751b3166f5cb8964b7ef659605795

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5114
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

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-5116
SELECT + col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5116
SELECT + col0 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + ( + col1 ) * - col0 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT - - col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5118
SELECT - - col0 / + col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + - 18 AS col1 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - col1 + col0 * - ( col1 ) FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT - col2 - - ( - ( + col0 ) * + col2 ) FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5122
SELECT ALL + col1 * ( - 86 ) DIV col1 FROM tab0 AS cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL + col1 * ( - 86 ) / col1 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT col1 * - col1 * - 95 + - col1 FROM tab0 AS cor0
----
702534
786604
893758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col1 * + col0 + 18 FROM tab0 cor0
----
2082
3413
8117

query I rowsort
SELECT ALL + col1 + + ( 11 ) AS col1 FROM tab2 AS cor0
----
28
42
70

query I rowsort
SELECT ALL + - 99 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da

onlyif mysql # use DIV operator for integer division
query I rowsort label-5128
SELECT - + col0 DIV + 69 + col0 AS col1 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-5128
SELECT - + col0 / + 69 + col0 AS col1 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - + col0 * 58 FROM tab2 cor0
----
-406
-4524
-4582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) - col2 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - 8 * - cor0.col1 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT DISTINCT - col1 * col0 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT 75 + col2 FROM tab0
----
108
157
76

query I rowsort
SELECT DISTINCT + col1 + + 59 AS col0 FROM tab0
----
145
150
156

query I rowsort
SELECT DISTINCT 26 + 28 AS col0 FROM tab2
----
54

query I rowsort
SELECT + ( + col0 * + col0 ) AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - 67 + + tab0.col0 AS col0 FROM tab0
----
-32
-43
22

query I rowsort
SELECT DISTINCT 38 FROM tab0, tab1 cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + tab2.col2 col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL + tab2.col0 * - col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col2 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - col2 * - col1 col1 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT ( col2 ) * col2 * col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT DISTINCT - - col1 + + col0 * + col1 + + col0 * cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-655928
-65962
97

query I rowsort
SELECT ALL 4 + col1 AS col0 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT 31 AS col2 FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT + 92 * + col0 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT + cor0.col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 23 * - col1 FROM tab1 cor0
----
-230
-299
-598

query I rowsort
SELECT col1 * - 15 + - ( - col2 * + col0 ) AS col1 FROM tab0 AS cor0
----
-1420
-498
5933

query I rowsort
SELECT DISTINCT - col2 + 44 * 13 AS col2 FROM tab2
----
534
545
546

query I rowsort
SELECT 74 - col2 AS col1 FROM tab1
----
-22
17
20

query I rowsort
SELECT + col2 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT col2 * col0 + + col2 AS col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT 39 + + col2 FROM tab0 AS cor0
----
121
40
72

query I rowsort
SELECT ALL 45 FROM tab0, tab1 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # use DIV operator for integer division
query I rowsort label-5159
SELECT DISTINCT - - col2 DIV - col2 col0 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT - - col2 / - col2 col0 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT 33 DIV + col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5160
SELECT 33 / + col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT - + cor0.col1 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL col0 * col0 FROM tab1 AS cor0 WHERE NULL > NULL OR ( NULL ) <= cor0.col0 * col1 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * cor0.col1 col2 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT DISTINCT col1 DIV - col1 + - col0 * col2 + - col2 AS col0 FROM tab2
----
-2055
-217
-3041

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT col1 / - col1 + - col0 * col2 + - col2 AS col0 FROM tab2
----
-2055
-217
-3041

query I rowsort
SELECT + col1 + col0 * col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT cor0.col1 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL + col0 + col0 + col0 AS col2 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT - cor0.col2 + - col0 * col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= NULL OR ( col0 * col2 * col2 + + col0 ) < NULL
----

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - col1 * - col1 - + col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT col2 * col2 + col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
13448
2
2178

query I rowsort
SELECT ALL + - col1 + - col2 * cor0.col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col1 * - col2 + - col0 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 * + col0 + - col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5179
SELECT DISTINCT + col0 + + col0 DIV + col2 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + col0 + + col0 / + col2 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT ALL col0 * + cor0.col1 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT - col2 * - cor0.col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + cor0.col1 * + cor0.col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT tab0.col2 - + tab0.col2 * + col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL + + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + - col2 + + col1 + col2 AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT DISTINCT + col0 - - col0 DIV - cor0.col1 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT + col0 - - col0 / - cor0.col1 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT - col1 * + col0 * col0 AS col2 FROM tab2 cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT - col1 * cor0.col2 + + col1 * - col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE + tab2.col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT - 34 * col2 * col2 AS col2 FROM tab1
----
-110466
-313344
-99144

query I rowsort
SELECT DISTINCT col2 + - col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col2 * - col0 - - tab2.col0 AS col2 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col1 * + cor0.col1 + - col2 FROM tab2 cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL col2 * col0 - tab0.col2 FROM tab0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5200
SELECT ALL col1 - col2 DIV - col0 col1 FROM tab1
----
10
14
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL col1 - col2 / - col0 col1 FROM tab1
----
10
14
44

query I rowsort
SELECT - col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col2 * 68 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT - col2 + - ( + col1 ) * - col1 * col0 AS col1 FROM tab2 AS cor0
----
22793
271492
6700

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 16 FROM tab0, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT + ( + cor1.col0 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL ( - col1 + + ( - col2 ) ) AS col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT - - col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - col2 - - col0 AS col1 FROM tab2 cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5211
SELECT CAST( NULL AS SIGNED ) * col0 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT CAST ( NULL AS INTEGER ) * col0 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 46 ) FROM tab0, tab2 AS cor0
----
-46

query I rowsort
SELECT col2 + + cor0.col1 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - ( tab1.col0 ) AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - col1 + + col1 * - 95 FROM tab1 AS cor0
----
-1248
-2496
-960

query I rowsort
SELECT ALL col2 * + col1 + cor0.col1 * + col2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT + - col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - - col2 - col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT col2 * + col2 + - 36 * cor0.col2 FROM tab2 cor0
----
-243
-260
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5220
SELECT ( - col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT ( - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 12 * - 22 * + col2 FROM tab1
----
-14256
-15048
-25344

query I rowsort
SELECT DISTINCT - 56 FROM tab0, tab0 cor0
----
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5223
SELECT DISTINCT + CAST( ( col0 ) AS SIGNED ) + - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + CAST ( ( col0 ) AS INTEGER ) + - col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT tab2.col1 * + 96 + - tab2.col1 + - col1 AS col0 FROM tab2
----
1598
2914
5546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5225
SELECT + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5226
SELECT + 83 * col2 + - 48 DIV col0 AS col2 FROM tab1
----
4466
4731
7968

skipif mysql # not compatible
query I rowsort label-5226
SELECT + 83 * col2 + - 48 / col0 AS col2 FROM tab1
----
4466
4731
7968

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 ALL + col0 + - col0 - - 35 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT ALL + 9 + col1 * cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
106
611893
93663

query I rowsort
SELECT 99 AS col1 FROM tab0 cor0
----
99
99
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5231
SELECT ALL + - col2 DIV + col2 - + ( - col2 ) * + col2 col0 FROM tab1 cor0
----
2915
3248
9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + - col2 / + col2 - + ( - col2 ) * + col2 col0 FROM tab1 cor0
----
2915
3248
9215

query I rowsort
SELECT 50 + - col2 AS col1 FROM tab1 AS cor0
----
-4
-46
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 51 FROM tab0 cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5235
SELECT + col0 DIV col1 + cor0.col0 * - ( col1 ) + col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5235
SELECT + col0 / col1 + cor0.col0 * - ( col1 ) + col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - col1 + + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col2 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 92 AS col1 FROM tab2
----
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5239
SELECT DISTINCT + 65 DIV - col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT + 65 / - col1 FROM tab0
----
0

query I rowsort
SELECT cor0.col2 + - col1 * + col1 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT - tab2.col1 * + tab2.col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - 50 AS col1 FROM tab2 AS cor0
----
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5243
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5243
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col1 * - 19 AS col2 FROM tab2
----
-1121
-323
-589

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5245
SELECT cor0.col2 + CAST( NULL AS DECIMAL ) 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-5245
SELECT cor0.col2 + CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - ( col0 ) col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT + col0 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5247
SELECT + col0 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT + - col1 + - cor0.col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-5248
SELECT + - col1 + - cor0.col0 / col0 AS col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT + cor0.col2 * 1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col2 + + col1 * + col2 * 76 FROM tab2 cor0
----
116558
49058
63585

query I rowsort
SELECT 51 FROM tab1, tab0 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * - col1 col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT + col2 + col1 * col1 + - col1 DIV cor0.col1 FROM tab0 AS cor0
----
7428
8362
9409

skipif mysql # not compatible
query I rowsort label-5253
SELECT + col2 + col1 * col1 + - col1 / cor0.col1 FROM tab0 AS cor0
----
7428
8362
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5254
SELECT ALL CAST( - col0 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL CAST ( - col0 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + + ( 82 ) + - col0 FROM tab2 AS cor0
----
3
4
75

query I rowsort
SELECT DISTINCT - ( 70 ) * col1 FROM tab1 AS cor0
----
-1820
-700
-910

query I rowsort
SELECT ALL - col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL - + cor0.col2 DIV - 83 + + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - + cor0.col2 / - 83 + + col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT ALL - CAST( NULL AS SIGNED ) * - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - CAST ( NULL AS INTEGER ) * - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab2 AS cor0
----
49

query I rowsort
SELECT 47 + + col1 + + 46 FROM tab2 cor0
----
110
124
152

query I rowsort
SELECT + col1 * col0 + - col0 * + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5264
SELECT col1 DIV - col2 + cor0.col2 + + col1 AS col2 FROM tab0 cor0
----
1
117
172

skipif mysql # not compatible
query I rowsort label-5264
SELECT col1 / - col2 + cor0.col2 + + col1 AS col2 FROM tab0 cor0
----
1
117
172

query I rowsort
SELECT ALL + - 80 * - col2 FROM tab1 AS cor0
----
4320
4560
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT - cor0.col2 * + col0 + - col1 + - col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

skipif mysql # not compatible
query I rowsort label-5266
SELECT - cor0.col2 * + col0 + - col1 + - col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL 87 - 22 * + col0 FROM tab0 AS cor0
----
-1871
-441
-683

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + - col0 FROM tab1 AS cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + - col2 * - col0 col1 FROM tab1 AS cor0
----
209
3695
7727

query I rowsort
SELECT ( + col1 ) * + col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL 52 * + col0 - + col2 FROM tab2 AS cor0
----
337
4030
4070

query I rowsort
SELECT DISTINCT col0 * 75 AS col2 FROM tab2 AS cor0
----
525
5850
5925

onlyif mysql # use DIV operator for integer division
query I rowsort label-5274
SELECT ALL ( - col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL ( - col1 ) / col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT - + 21 DIV - col2 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5275
SELECT - + 21 / - col2 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - ( - ( col0 ) ) + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + - ( - 21 ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab0
----
38

query I rowsort
SELECT 48 AS col2 FROM tab0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT ALL - ( - col1 ) DIV col0 + + ( + col1 ) * + tab2.col1 FROM tab2
----
289
3481
965

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - ( - col1 ) / col0 + + ( + col1 ) * + tab2.col1 FROM tab2
----
289
3481
965

query I rowsort
SELECT ALL + 99 + col2 AS col0 FROM tab2
----
125
126
137

query I rowsort
SELECT DISTINCT - 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 28 col0 FROM tab2 AS cor0
----
-11
3
31

query I rowsort
SELECT DISTINCT - col1 * + 12 * + col0 FROM tab1 cor0
----
-12480
-7680
-936

query I rowsort
SELECT - + col0 * - col2 + + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT cor0.col2 * - 97 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ca28b071849a842598f1560055e194a4

query I rowsort
SELECT DISTINCT - + 1 * 39 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-39

query I rowsort
SELECT ALL col2 + 10 * - col1 FROM tab1
----
-206
-34
-43

query I rowsort
SELECT + col2 * - 94 - + col2 FROM tab1 AS cor0
----
-5130
-5415
-9120

query I rowsort
SELECT - col2 + - ( - col0 * col2 ) AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - col1 + - 30 FROM tab1 AS cor0
----
-40
-43
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT ALL - col2 DIV ( - col1 ) + col0 * + col1 - - col2 FROM tab0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - col2 / ( - col1 ) + col0 * + col1 - - col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT - col0 + - ( - col0 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 - 92 FROM tab2
----
-118
-119
-130

query I rowsort
SELECT + + cor0.col0 * - cor0.col0 - cor0.col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT col0 + col0 * col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + cor0.col2 * + 76 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT cor0.col2 * 69 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT + col1 * ( - col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + - col1 * - col2 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT - - ( - col2 ) * col1 * + 10 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
-12387
-14011
-5626

query I rowsort
SELECT 63 + col0 * col2 FROM tab2 cor0
----
2091
252
3065

query I rowsort
SELECT DISTINCT - 15 * col0 FROM tab1 AS cor0
----
-1200
-45
-960

query I rowsort
SELECT DISTINCT + 63 + - col2 AS col0 FROM tab2
----
25
36
37

query I rowsort
SELECT ALL - 17 * col0 + + tab0.col1 FROM tab0
----
-1422
-322
-498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( col1 ) col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL + - cor0.col2 * - col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT col0 + col2 + - col1 AS col2 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5311
SELECT ALL + col0 + - col1 DIV - cor0.col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + col0 + - col1 / - cor0.col2 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT - + ( col0 ) + col2 AS col1 FROM tab1 cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 * col0 + + col0 col1 FROM tab0 AS cor0
----
-1008
-1470
-3738

query I rowsort
SELECT DISTINCT col0 + - col1 AS col2 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT + 55 * col1 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab0 AS cor0
----
52

query I rowsort
SELECT + - 64 AS col2 FROM tab2 cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT + cor2.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT cor0.col1 + col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - cor0.col0 - + col1 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5322
SELECT ALL + + cor0.col1 DIV - 63 + 18 FROM tab0 cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL + + cor0.col1 / - 63 + 18 FROM tab0 cor0
----
17
17
17

query I rowsort
SELECT ALL + cor0.col2 * ( 78 ) FROM tab2 AS cor0
----
2028
2106
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5324
SELECT DISTINCT - + col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - + col1 / + col0 AS col1 FROM tab1 AS cor0
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - 10 col1 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT ALL - cor0.col2 + col1 * + col1 FROM tab0 cor0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT ALL + col0 DIV 95 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL + col0 / 95 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5328
SELECT DISTINCT + col0 + ( ( + col0 ) + + CAST( NULL AS SIGNED ) ) * - 32 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT + col0 + ( ( + col0 ) + + CAST ( NULL AS INTEGER ) ) * - 32 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5329
SELECT + cor0.col1 * + CAST( + 80 AS SIGNED ) + col2 * 48 AS col1 FROM tab0 AS cor0
----
11216
7808
8464

skipif mysql # not compatible
query I rowsort label-5329
SELECT + cor0.col1 * + CAST ( + 80 AS INTEGER ) + col2 * 48 AS col1 FROM tab0 AS cor0
----
11216
7808
8464

query I rowsort
SELECT 99 FROM tab2
----
99
99
99

query I rowsort
SELECT - cor0.col0 * + ( - tab1.col0 ) FROM tab1, tab2 cor0
----
9 values hashing to eb103eabe531563e672e54874d056f9f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 col1 FROM tab2
----
-24

query I rowsort
SELECT 13 * col0 - col0 FROM tab2
----
84
936
948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col0 FROM tab1
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 39 + + col1 col0 FROM tab1 cor0
----
49
52
65

query I rowsort
SELECT ALL - + col2 * - col2 + + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - 99 AS col2 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT - + 4 AS col1 FROM tab1 cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - 84 * col2 FROM tab1 AS cor0
----
-4536
-4788
-8064

query I rowsort
SELECT DISTINCT + 85 * col0 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT ALL - cor0.col1 + - ( - col2 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 59 * 52 FROM tab0 AS cor0
----
-3068
-3068
-3068

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5343
SELECT ALL CAST( NULL AS SIGNED ) * col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 19 AS col2 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + + 73 * col2 AS col0 FROM tab0 cor0
----
2409
5986
73

query I rowsort
SELECT col1 * col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 32 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL - tab2.col0 * 33 * - col0 AS col0 FROM tab2
----
1617
200772
205953

onlyif mysql # use DIV operator for integer division
query I rowsort label-5350
SELECT col1 DIV cor0.col1 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5350
SELECT col1 / cor0.col1 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col2 + - col0 * - col1 * col0 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT ALL + col2 * + 98 FROM tab0 cor0
----
3234
8036
98

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5354
SELECT + col1 * col0 + 47 DIV + col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5354
SELECT + col1 * col0 + 47 / + col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT DISTINCT col2 * CAST( + col2 AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT col2 * CAST ( + col2 AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT + col0 * + 27 * ( col2 ) FROM tab0
----
197046
21384
945

query I rowsort
SELECT col0 - - 23 AS col0 FROM tab1 AS cor0
----
103
26
87

query I rowsort
SELECT + + cor0.col0 * + 7 - cor0.col0 FROM tab0 cor0
----
144
210
534

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT DISTINCT col0 + col0 * - ( - col2 ) * - CAST( + col2 + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1474480
-17493
-415808

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT col0 + col0 * - ( - col2 ) * - CAST ( + col2 + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1474480
-17493
-415808

query I rowsort
SELECT ALL - col0 + + 39 * col2 AS col1 FROM tab0 AS cor0
----
1263
3109
4

query I rowsort
SELECT + ( col0 ) * col2 + col0 + 22 FROM tab1 cor0
----
187
3734
7782

onlyif mysql # use DIV operator for integer division
query I rowsort label-5362
SELECT + col1 + 18 DIV - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5362
SELECT + col1 + 18 / - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col1 * 80 + col1 + - col1 FROM tab1 cor0
----
-1040
-2080
-800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5364
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) / + 36 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) / + 36 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT tab2.col2 + 47 AS col0 FROM tab2
----
73
74
85

query I rowsort
SELECT col1 * - ( + col1 ) * - col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT col1 * + tab2.col1 + col2 AS col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT - + 50 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1167
-1749
-4368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5369
SELECT CAST( cor0.col2 AS SIGNED ) FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

skipif mysql # not compatible
query I rowsort label-5369
SELECT CAST ( cor0.col2 AS INTEGER ) FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5370
SELECT - + CAST( - col0 AS SIGNED ) * - col1 - + ( - col2 ) FROM tab2 AS cor0
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort label-5370
SELECT - + CAST ( - col0 AS INTEGER ) * - col1 - + ( - col2 ) FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT col2 + + ( + col0 ) + col0 AS col1 FROM tab2
----
182
196
41

query I rowsort
SELECT - col2 + - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + + cor0.col0 + + 38 AS col1 FROM tab2 AS cor0
----
116
117
45

query I rowsort
SELECT + 13 * ( col1 ) AS col1 FROM tab0
----
1118
1183
1261

onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT + cor0.col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT + cor0.col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - 36 * - cor0.col1 + + col0 FROM tab0 AS cor0
----
-3072
-3187
-3457

query I rowsort
SELECT + 93 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # use DIV operator for integer division
query I rowsort label-5379
SELECT 89 DIV + col1 - col2 FROM tab0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-5379
SELECT 89 / + col1 - col2 FROM tab0
----
-1
-32
-82

query I rowsort
SELECT 42 * + col2 * + col1 + - col0 FROM tab2 cor0
----
27053
35147
64350

query I rowsort
SELECT ALL tab1.col2 * 59 + + 91 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 99e055fb18508d641b4d26b2321c7c3a

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab0, tab1, tab0 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT 27 * - col2 AS col0 FROM tab1
----
-1458
-1539
-2592

query I rowsort
SELECT ALL + 73 * col2 AS col1 FROM tab2
----
1898
1971
2774

query I rowsort
SELECT ALL - col0 * col1 * - 1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5387
SELECT col2 DIV ( col1 ) - col2 FROM tab1 cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-5387
SELECT col2 / ( col1 ) - col2 FROM tab1 cor0
----
-52
-52
-89

query I rowsort
SELECT DISTINCT + col2 - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - 0 * - col0 + col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT col2 * col1 + - 17 * col0 + col0 FROM tab1
----
-32
-454
1356

query I rowsort
SELECT - ( - 11 ) FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # use DIV operator for integer division
query I rowsort label-5392
SELECT DISTINCT - col2 DIV + tab0.col1 - col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - col2 / + tab0.col1 - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + col2 - col1 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - 34 * + col1 + tab1.col0 - col0 FROM tab1
----
-340
-442
-884

query I rowsort
SELECT ALL - 42 + col0 * + ( + col1 ) + col2 AS col1 FROM tab2
----
1339
202
4586

query I rowsort
SELECT ALL - col1 + + col0 AS col1 FROM tab0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT 26 * - col1 + col0 DIV col0 FROM tab0 AS cor0
----
-2235
-2365
-2521

skipif mysql # not compatible
query I rowsort label-5397
SELECT 26 * - col1 + col0 / col0 FROM tab0 AS cor0
----
-2235
-2365
-2521

query I rowsort
SELECT ALL + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 48 * - col2 + 61 * cor0.col2 FROM tab0 AS cor0
----
109
3597
8938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5400
SELECT DISTINCT - col1 * CAST( - col2 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - col1 * CAST ( - col2 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5401
SELECT ALL cor0.col2 DIV 62 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-5401
SELECT ALL cor0.col2 / 62 col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col0 + 40 FROM tab2 AS cor0
----
118
119
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT + col2 DIV + col2 + col1 + col0 FROM tab1 AS cor0
----
30
75
94

skipif mysql # not compatible
query I rowsort label-5403
SELECT + col2 / + col2 + col1 + col0 FROM tab1 AS cor0
----
30
75
94

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + + cor0.col2 + col0 * col2 * col1 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT - + col2 * col1 + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + col0 * col2 + + 92 AS col1 FROM tab0 AS cor0
----
127
7390
884

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5409
SELECT - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col0 col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - + col1 * 91 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT - col0 + + col1 + col0 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 - col1 * + col2 * - col1 col2 FROM tab1
----
16212
36492
5688

query I rowsort
SELECT ALL - col1 * col2 * col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - cor0.col0 * col0 * col2 + + cor0.col0 * ( - col1 ) FROM tab2 AS cor0
----
-1540
-162786
-238501

query I rowsort
SELECT + + col2 * 94 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT - col1 * - col0 * + col2 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + 66 AS col0 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT + cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - - ( + col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + 78 * - ( - col0 ) FROM tab1 cor0
----
234
4992
6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5423
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
NULL

query I rowsort
SELECT ALL 90 + cor0.col2 FROM tab2 cor0
----
116
117
128

query I rowsort
SELECT + - ( cor0.col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - + ( - col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + ( + col1 ) - col1 * cor0.col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + col2 * - col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - - cor0.col1 - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - col1 * col1 - col2 AS col0 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL 43 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b

query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7

query I rowsort
SELECT ALL 52 AS col0 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT + - ( - col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - 19 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + col0 * - col0 + ( 93 ) FROM tab1 AS cor0
----
-4003
-6307
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5439
SELECT ALL + - col2 DIV cor0.col0 + + ( ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + - col2 / cor0.col0 + + ( ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-57
-72
-97

query I rowsort
SELECT ALL + - col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5441
SELECT ALL col1 DIV col1 + 17 * - col1 AS col1 FROM tab1 AS cor0
----
-169
-220
-441

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL col1 / col1 + 17 * - col1 AS col1 FROM tab1 AS cor0
----
-169
-220
-441

query I rowsort
SELECT DISTINCT + col1 * col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - ( + col2 ) * col0 + ( - ( col2 ) ) FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT - col0 - col2 * col1 AS col2 FROM tab0
----
-132
-2862
-7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5445
SELECT + CAST( NULL AS SIGNED ) / - col1 - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT + CAST ( NULL AS INTEGER ) / - col1 - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col0 ) + col1 * + 46 FROM tab0
----
3932
4097
4427

onlyif mysql # use DIV operator for integer division
query I rowsort label-5447
SELECT col0 * col1 DIV + tab0.col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5447
SELECT col0 * col1 / + tab0.col0 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 col0 FROM tab0 AS cor0
----
2
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5449
SELECT DISTINCT ( + cor0.col1 ) * - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT ( + cor0.col1 ) * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - + col0 + cor0.col0 * + 2 AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - col2 * - col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - - 94 AS col2 FROM tab2 AS cor0
----
94

query I rowsort
SELECT ALL + cor1.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL col1 + + col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT 65 + 56 AS col0 FROM tab2
----
121
121
121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5459
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col0 + ( col1 ) * col0 FROM tab1 AS cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * + 18 col2 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT - ( + col2 ) + col2 * - col0 * - 24 AS col0 FROM tab2 AS cor0
----
4509
48646
72010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5464
SELECT - col2 + + col0 + col2 * col0 DIV 97 AS col0 FROM tab1 AS cor0
----
-50
44
63

skipif mysql # not compatible
query I rowsort label-5464
SELECT - col2 + + col0 + col2 * col0 / 97 AS col0 FROM tab1 AS cor0
----
-50
44
63

query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 * 33 AS col0 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT ( + col0 ) + 16 * - 91 FROM tab0 cor0
----
-1367
-1421
-1432

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT ALL - cor0.col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - cor0.col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT + - 82 AS col1 FROM tab1 cor0
----
-82

query I rowsort
SELECT - 37 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

query I rowsort
SELECT ALL col1 * 94 AS col0 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT ALL - 80 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT ALL + col0 * + tab0.col0 FROM tab0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5473
SELECT col0 + CAST( - 44 * col2 AS SIGNED ) + + 13 AS col2 FROM tab1 AS cor0
----
-2360
-2431
-4131

skipif mysql # not compatible
query I rowsort label-5473
SELECT col0 + CAST ( - 44 * col2 AS INTEGER ) + + 13 AS col2 FROM tab1 AS cor0
----
-2360
-2431
-4131

query I rowsort
SELECT col1 + 23 FROM tab2 cor0
----
40
54
82

query I rowsort
SELECT + - col0 * + col2 + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 * + 22 AS col1 FROM tab1 AS cor0
----
14080
1716
22880

query I rowsort
SELECT - - cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - col2 * ( col1 ) + - col2 * col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 26 * 9 FROM tab1
----
234

query I rowsort
SELECT col2 + + col2 * - tab0.col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT ALL 32 * 8 + col2 AS col1 FROM tab1
----
310
313
352

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + 89 FROM tab0 cor0
----
89
89
89

query I rowsort
SELECT DISTINCT + + col1 * col0 * col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col1 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5486
SELECT ALL + 87 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + 87 / + col0 AS col2 FROM tab0 AS cor0
----
0
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5487
SELECT DISTINCT + + 21 DIV col2 AS col1 FROM tab0 cor0
----
0
21

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + + 21 / col2 AS col1 FROM tab0 cor0
----
0
21

query I rowsort
SELECT ALL + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + cor0.col0 + - col1 * - col0 + 97 FROM tab0 AS cor0
----
2185
3527
8285

onlyif mysql # use DIV operator for integer division
query I rowsort label-5490
SELECT - col2 + + col2 DIV 92 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5490
SELECT - col2 + + col2 / 92 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 81 * + col1 FROM tab1 AS cor0
----
-1053
-2106
-810

query I rowsort
SELECT ALL - - 42 AS col2 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT - col2 * col1 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-15561
-3492
-4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col1 FROM tab2 cor0
----
33

query I rowsort
SELECT - col2 * col0 + - col2 + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-15456
-378
-7353

query I rowsort
SELECT ALL - - cor0.col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 28 - + 45 FROM tab0
----
-17
-17
-17

query I rowsort
SELECT ALL + ( col1 ) + + col2 + - col1 FROM tab0
----
1
33
82

query I rowsort
SELECT 48 * + col1 - + ( - col1 ) FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT - 27 FROM tab1, tab0 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT - 55 + - col0 AS col0 FROM tab1 cor0
----
-119
-135
-58

query I rowsort
SELECT + 75 AS col0 FROM tab1 cor0
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT 64 DIV + col1 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5504
SELECT 64 / + col1 col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT + 13 * col1 DIV col1 FROM tab0 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-5505
SELECT + 13 * col1 / col1 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT cor0.col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT + col0 + 56 DIV + col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-5507
SELECT + col0 + 56 / + col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - col0 * + col0 + - 17 AS col2 FROM tab0 cor0
----
-1242
-593
-7938

query I rowsort
SELECT DISTINCT + + col0 + - col2 + - col1 FROM tab0 cor0
----
-63
-84
-95

query I rowsort
SELECT col1 * tab2.col2 AS col0 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort
SELECT - - col0 - CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col2 + - ( + 20 * - cor0.col0 ) - - col0 * cor0.col2 FROM tab1 cor0
----
276
4985
9376

onlyif mysql # use DIV operator for integer division
query I rowsort label-5513
SELECT + 43 DIV tab1.col1 AS col0 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-5513
SELECT + 43 / tab1.col1 AS col0 FROM tab1
----
1
3
4

query I rowsort
SELECT DISTINCT tab2.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT DISTINCT - col0 DIV col0 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT - col0 / col0 AS col2 FROM tab2
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT DISTINCT 35 DIV col0 FROM tab1
----
0
11

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT 35 / col0 FROM tab1
----
0
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT tab0.col0 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT tab0.col0 / + col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + col0 col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5520
SELECT - CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT - CAST ( NULL AS REAL ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 + 51 AS col2 FROM tab2 AS cor0
----
117
117
117

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5522
SELECT CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5522
SELECT CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( + col2 ) col1 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 92 col1 FROM tab0
----
116
127
181

query I rowsort
SELECT ALL tab0.col1 - 17 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to d4dfdabad4a8afbab4871be25439f7bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT + - ( - 43 ) FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT - 40 AS col1 FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT ALL - - cor0.col2 DIV + col0 + col2 col0 FROM tab0 cor0
----
1
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - - cor0.col2 / + col0 + col2 col0 FROM tab0 cor0
----
1
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 * + col0 col0 FROM tab0
----
-1435
-3649
-984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5531
SELECT - tab1.col0 + CAST( - col0 + col0 AS SIGNED ) AS col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5531
SELECT - tab1.col0 + CAST ( - col0 + col0 AS INTEGER ) AS col0 FROM tab1
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5532
SELECT + col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT + col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 29 FROM tab2, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + col1 * + 53 FROM tab1 cor0
----
1378
530
689

query I rowsort
SELECT 26 * cor0.col0 FROM tab2 AS cor0
----
182
2028
2054

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 DISTINCT - - col2 * + col0 * cor0.col0 AS col1 FROM tab0 cor0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5538
SELECT + CAST( NULL AS SIGNED ) * col1 + + col1 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT + CAST ( NULL AS INTEGER ) * col1 + + col1 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 10 + col2 AS col1 FROM tab2
----
36
37
48

query I rowsort
SELECT - + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - - col0 * + 0 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + ( + ( cor0.col0 ) ) + + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col2 col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT + ( - 0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 71 - + col0 AS col1 FROM tab2 AS cor0
----
-7
-8
64

query I rowsort
SELECT ALL 56 * col1 AS col0 FROM tab2 cor0
----
1736
3304
952

query I rowsort
SELECT - col0 - - col1 * + col1 * cor0.col2 FROM tab1 cor0
----
16144
36501
5636

query I rowsort
SELECT ALL - 12 * col0 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT + - 64 + col0 AS col0 FROM tab2 AS cor0
----
-57
14
15

query I rowsort
SELECT ALL col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5552
SELECT ALL - + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - + col1 / - col1 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col2 * + col0 * + 68 + + ( col0 ) FROM tab2 AS cor0
----
12859
137982
204215

query I rowsort
SELECT + - col0 * + cor0.col2 + 25 * + col1 AS col0 FROM tab0 AS cor0
----
-5023
1358
2390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 * - col0 + col1 + - col1 col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-5557
SELECT + + col2 DIV + col2 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5557
SELECT + + col2 / + col2 AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5558
SELECT DISTINCT col2 DIV + col0 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT col2 / + col0 FROM tab0 cor0
----
0
1

query I rowsort
SELECT ALL col2 * + 65 * col1 AS col1 FROM tab2 AS cor0
----
41990
54405
99710

query I rowsort
SELECT ALL + col1 * 8 FROM tab2 AS cor0
----
136
248
472

query I rowsort
SELECT - + cor0.col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT + col0 * - 45 AS col2 FROM tab0 AS cor0
----
-1080
-1575
-4005

query I rowsort
SELECT ALL - + col2 + 79 AS col1 FROM tab0 AS cor0
----
-3
46
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 54 + cor0.col1 * + col1 col0 FROM tab0 cor0
----
7536
8426
9560

query I rowsort
SELECT + col1 + 32 FROM tab0 AS cor0
----
118
123
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - 22 * col2 col0 FROM tab2 AS cor0
----
513
563
819

query I rowsort
SELECT ALL - - col1 * - col1 + - col2 AS col1 FROM tab2 cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL - - col2 + - col2 * - col0 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT + col0 * cor0.col0 + - 37 AS col2 FROM tab2 AS cor0
----
12
6047
6204

query I rowsort
SELECT ALL - col0 * col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT + - col2 * + col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - cor0.col1 * + col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT col2 + 41 * cor0.col0 FROM tab0 AS cor0
----
1017
1436
3731

query I rowsort
SELECT ALL - cor0.col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 * + ( + col2 * col1 ) FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + col2 + + col1 - col2 * col0 FROM tab2 AS cor0
----
-131
-1943
-2947

onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT DISTINCT + - col0 DIV col1 + - col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + - col0 / col1 + - col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - - col1 * ( 76 ) + col1 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT DISTINCT - + col2 - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + ( - col0 ) * - col2 col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col2 * col2 + + col1 * + cor0.col0 AS col0 FROM tab2 cor0
----
-101
-512
3926

query I rowsort
SELECT DISTINCT col0 - ( col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5583
SELECT ALL - ( - col1 ) * col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL - ( - col1 ) * col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + 77 * cor0.col0 AS col2 FROM tab1 AS cor0
----
228
4864
6080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 - - col2 * + ( + col1 + + col1 ) col2 FROM tab0 AS cor0
----
14907
177
5659

query I rowsort
SELECT ALL 56 - + col0 AS col0 FROM tab2 AS cor0
----
-22
-23
49

query I rowsort
SELECT ALL - 25 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT - cor0.col0 * cor0.col2 + - ( + col0 ) DIV + col0 AS col1 FROM tab2 AS cor0
----
-190
-2029
-3003

skipif mysql # not compatible
query I rowsort label-5588
SELECT - cor0.col0 * cor0.col2 + - ( + col0 ) / + col0 AS col1 FROM tab2 AS cor0
----
-190
-2029
-3003

query I rowsort
SELECT DISTINCT col2 * + col0 * - col0 + col1 FROM tab1 cor0
----
-233462
-460
-614387

query I rowsort
SELECT - + cor0.col0 + col1 * + ( + 41 ) AS col2 FROM tab0 AS cor0
----
3502
3642
3942

query I rowsort
SELECT ALL - 12 - col2 FROM tab1 AS cor0
----
-108
-66
-69

query I rowsort
SELECT ALL col0 + cor0.col2 * 59 FROM tab0 AS cor0
----
1971
4927
94

query I rowsort
SELECT DISTINCT col1 * tab0.col0 - + col0 * + ( + col0 ) FROM tab0
----
1488
178
2170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - col1 ) ) * col0 - - col1 col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT 96 * - ( col0 * 93 ) + col0 AS col2 FROM tab1
----
-26781
-571328
-714160

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT 40 + col1 DIV col1 AS col0 FROM tab2
----
41
41
41

skipif mysql # not compatible
query I rowsort label-5596
SELECT 40 + col1 / col1 AS col0 FROM tab2
----
41
41
41

query I rowsort
SELECT col1 * + col0 * col2 - col1 FROM tab2
----
119593
51017
5828

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT + ( - col0 ) + 75 DIV + col1 FROM tab1
----
-1
-57
-75

skipif mysql # not compatible
query I rowsort label-5598
SELECT + ( - col0 ) + 75 / + col1 FROM tab1
----
-1
-57
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT DISTINCT + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + col0 / col0 AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT 5 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT - col0 + - col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + - col0 + col0 FROM tab1 cor0
----
0

query I rowsort
SELECT tab2.col2 + tab2.col1 + - 22 AS col2 FROM tab2
----
33
36
63

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT - 84 + - tab1.col2 FROM tab1
----
-138
-141
-180

query I rowsort
SELECT ( - col1 ) * 9 + col2 FROM tab2
----
-115
-252
-505

query I rowsort
SELECT 93 * - col2 + col0 * 61 * col2 FROM tab1 AS cor0
----
217227
459552
4860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + col2 col0 FROM tab1 AS cor0
----
129
132
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 29 * + cor0.col0 * - col1 - + col1 col0 FROM tab1 AS cor0
----
18550
2236
30147

onlyif mysql # use DIV operator for integer division
query I rowsort label-5610
SELECT 75 DIV + cor0.col0 + + col2 FROM tab0 cor0
----
3
36
82

skipif mysql # not compatible
query I rowsort label-5610
SELECT 75 / + cor0.col0 + + col2 FROM tab0 cor0
----
3
36
82

query I rowsort
SELECT DISTINCT + 54 FROM tab0 cor0
----
54

query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + - col0 * col2 + + 90 * col1 - col1 FROM tab0 AS cor0
----
6862
801
8598

query I rowsort
SELECT ALL - - col2 + col2 * col0 + - 2 AS col0 FROM tab1 AS cor0
----
214
3703
7774

query I rowsort
SELECT + - cor0.col1 + col1 * - col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + 2 * + col1 - col0 AS col2 FROM tab1 AS cor0
----
-44
-54
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 80 ) col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5618
SELECT col1 * col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT col1 * col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + - tab0.col1 col2 FROM tab0
----
-180
-185
-191

query I rowsort
SELECT + + col2 * col0 + + col2 - - col1 * + 55 FROM tab1 AS cor0
----
1646
4255
8491

query I rowsort
SELECT DISTINCT + 80 * col2 - + col2 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT + - col1 + cor0.col0 * - 95 AS col2 FROM tab1 AS cor0
----
-311
-6090
-7613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col0 FROM tab1
----
-40
-40
-40

query I rowsort
SELECT 94 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 62 col0 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5627
SELECT ALL - CAST( - col1 + col1 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - CAST ( - col1 + col1 AS INTEGER ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col2 FROM tab0
----
93
93
93

query I rowsort
SELECT cor1.col2 + 59 * 88 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 10c4eb141648fea908ac4216fb240420

query I rowsort
SELECT ALL - - col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 22 * col1 FROM tab2 AS cor0
----
1298
374
682

query I rowsort
SELECT 4 + 98 AS col1 FROM tab0 cor0
----
102
102
102

query I rowsort
SELECT ALL col1 * - col0 - - col0 * + 7 * + cor0.col1 FROM tab1 AS cor0
----
3840
468
6240

query I rowsort
SELECT col0 * + col0 * - cor0.col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT 0 - + col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + col0 + col2 FROM tab2 cor0
----
-41
-52
20

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT - 71 + + col0 AS col2 FROM tab2 AS cor0
----
-64
7
8

query I rowsort
SELECT col1 * - col0 + tab0.col1 * + 35 FROM tab0
----
-4914
0
946

query I rowsort
SELECT ALL 58 * col0 FROM tab1 AS cor0
----
174
3712
4640

query I rowsort
SELECT DISTINCT 94 + col0 FROM tab2 AS cor0
----
101
172
173

query I rowsort
SELECT - + 28 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT + 83 * + col0 AS col1 FROM tab0 cor0
----
1992
2905
7387

query I rowsort
SELECT + col2 * - cor0.col0 + 59 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-700
-7157
25

query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - col2 + - col0 * ( col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
-262201
-512096
-81

query I rowsort
SELECT + + col2 * 8 + + col1 AS col1 FROM tab1 AS cor0
----
458
466
781

query I rowsort
SELECT + + cor0.col1 * col1 + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 4 col2 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT + col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5653
SELECT ALL - col1 DIV 68 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - col1 / 68 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT DISTINCT col0 DIV + 20 FROM tab0
----
1
4

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT col0 / + 20 FROM tab0
----
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT + col0 DIV 95 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT + col0 / 95 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5657
SELECT DISTINCT + - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT ALL - col1 DIV - ( col1 ) AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL - col1 / - ( col1 ) AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + 5 + col2 FROM tab0
----
38
6
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT col2 DIV 95 - - col0 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5660
SELECT col2 / 95 - - col0 AS col2 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( - tab0.col2 ) - tab0.col2 col1 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT + col2 + - 42 FROM tab1
----
12
15
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5663
SELECT DISTINCT col1 DIV - ( 46 ) FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT col1 / - ( 46 ) FROM tab2
----
-1
0

query I rowsort
SELECT - tab1.col0 - 73 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e16f2dcf5b35bdf4af12858788454aac

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 6 col1 FROM tab2
----
42
468
474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 * col1 col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL + col1 + - 49 - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1284
-1427
-609

query I rowsort
SELECT + cor0.col2 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT + 42 * + col1 - col2 FROM tab0 AS cor0
----
3579
3740
4073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - 91 * col1 + ( + col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-360
-7250
-7602

query I rowsort
SELECT ALL tab2.col1 + 33 FROM tab2
----
50
64
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT col2 DIV + col1 + col2 FROM tab2 cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-5674
SELECT col2 / + col1 + col2 FROM tab2 cor0
----
26
27
40

query I rowsort
SELECT ALL - tab1.col1 + - col0 + - col1 FROM tab1
----
-106
-55
-84

query I rowsort
SELECT 8 + + col0 * + col0 FROM tab1 AS cor0
----
17
4104
6408

query I rowsort
SELECT DISTINCT col2 + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT + col0 + + col0 + + ( col2 ) FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT ALL + ( col2 ) * ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT cor0.col1 * col2 * col1 + + col1 + - cor0.col1 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT DISTINCT - - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - - col0 / - col0 AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + ( + col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + ( col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 77 FROM tab0 cor0
----
77
77
77

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab0 AS cor0
----
27

query I rowsort
SELECT 0 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - 12 + - col0 AS col1 FROM tab2
----
-19
-90
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5690
SELECT DISTINCT tab0.col1 * col1 + + CAST( col0 AS SIGNED ) + - col2 AS col0 FROM tab0
----
7387
8288
9443

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT tab0.col1 * col1 + + CAST ( col0 AS INTEGER ) + - col2 AS col0 FROM tab0
----
7387
8288
9443

query I rowsort
SELECT DISTINCT 53 + col0 AS col1 FROM tab0
----
142
77
88

query I rowsort
SELECT - 62 * - col2 * 25 AS col2 FROM tab2
----
40300
41850
58900

query I rowsort
SELECT DISTINCT tab1.col2 + 99 AS col1 FROM tab1, tab0 AS cor0
----
153
156
195

query I rowsort
SELECT ( - col1 * - ( + col2 ) ) + + col0 AS col1 FROM tab2
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5695
SELECT ALL CAST( NULL AS DECIMAL ) * cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL CAST ( NULL AS REAL ) * cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - 65 + cor0.col1 FROM tab0, tab2, tab0 AS cor0
----
21
26
32

query I rowsort
SELECT - col2 + + col0 * tab2.col1 FROM tab2
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT DISTINCT col0 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT col0 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 32 + col0 + ( + 63 + col1 ) * - 33 FROM tab1 AS cor0
----
-2377
-2460
-2966

onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT ALL col0 DIV cor0.col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL col0 / cor0.col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT + cor0.col0 * + col0 * col1 + cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
106152
1577
359041

onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT ALL + col2 DIV ( col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL + col2 / ( col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col1 * + 77 - col2 AS col0 FROM tab1 AS cor0
----
1948
713
905

query I rowsort
SELECT ALL col0 * 98 AS col1 FROM tab2 cor0
----
686
7644
7742

query I rowsort
SELECT - - col1 * + 34 + - col0 FROM tab0 AS cor0
----
2900
3005
3263

query I rowsort
SELECT ALL + col0 * 34 AS col2 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT DISTINCT col2 - + col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - - col0 + 78 FROM tab2 AS cor0
----
156
157
85

query I rowsort
SELECT ALL col0 * 97 + col0 AS col1 FROM tab0 AS cor0
----
2352
3430
8722

query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col0 + + 71 * col0 AS col0 FROM tab2 AS cor0
----
504
5616
5688

onlyif mysql # use DIV operator for integer division
query I rowsort label-5712
SELECT - - col0 + col1 DIV - col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-5712
SELECT - - col0 + col1 / - col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT - - 57 AS col2 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT + col0 * 47 DIV - col0 FROM tab1 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-5714
SELECT + col0 * 47 / - col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT ALL ( col2 ) + - col0 * col0 * - cor0.col2 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT + col1 * cor0.col2 + + col0 * + 8 + - 3 FROM tab1 AS cor0
----
1079
1425
1885

query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT ALL - + 8 * col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL - + 8 * col1 / col1 AS col0 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5719
SELECT ALL + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 60 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-25
-36
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5721
SELECT ALL + - ( + 91 ) - + col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + - ( + 91 ) - + col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT DISTINCT + col2 DIV + 75 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT + col2 / + 75 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * + 56 + col1 * + 27 AS col2 FROM tab0 AS cor0
----
-2527
659
978

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5724
SELECT + - CAST( + col1 AS SIGNED ) + + col1 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5724
SELECT + - CAST ( + col1 AS INTEGER ) + + col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT 83 + - 21 FROM tab1 cor0
----
62

query I rowsort
SELECT ALL + 69 + + col1 - col1 * - 32 FROM tab1
----
399
498
927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT + col0 + cor0.col0 DIV - col1 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-5729
SELECT + col0 + cor0.col0 / - col1 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT - cor0.col1 + - col1 * - ( + col1 ) AS col0 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT + ( - col0 ) * col1 * col0 - col0 AS col2 FROM tab2 AS cor0
----
-106176
-1526
-359034

query I rowsort
SELECT cor0.col1 + + col2 + col1 FROM tab0 cor0
----
195
205
264

query I rowsort
SELECT DISTINCT - col0 - col1 * col1 FROM tab0
----
-7420
-8370
-9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + ( - col0 ) + - col1 col1 FROM tab0 AS cor0
----
1128
490
7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 + + col2 + - col2 * + 41 col2 FROM tab2 AS cor0
----
-243
-874
494

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col2 + + col0 * 0 * + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col2 * col0 + 85 FROM tab1 AS cor0
----
247
3733
7765

query I rowsort
SELECT + col2 * - col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT ALL + tab0.col0 DIV tab0.col2 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL + tab0.col0 / tab0.col2 AS col1 FROM tab0
----
0
1
35

query I rowsort
SELECT col0 + - 84 * col1 FROM tab0 AS cor0
----
-7200
-7555
-8113

query I rowsort
SELECT 33 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - 19 AS col2 FROM tab1 cor0
----
-19
-19
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5745
SELECT + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT + CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab0 AS cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT - - 50 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a8abd36861657db7f885523c01bc34a0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5748
SELECT DISTINCT col1 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT col1 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col0 * + cor0.col1 + 39 FROM tab0 cor0
----
-2025
-3356
-8060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 + cor0.col1 col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col2 * + cor0.col1 + + col1 AS col0 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 30 FROM tab0
----
30

query I rowsort
SELECT - 53 AS col1 FROM tab0
----
-53
-53
-53

query I rowsort
SELECT 63 AS col2 FROM tab0
----
63
63
63

query I rowsort
SELECT 85 + col1 * col0 AS col0 FROM tab0
----
2149
3480
8184

onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT ALL - 28 DIV col2 - col0 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL - 28 / col2 - col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL col0 * - col1 - col1 * col0 AS col2 FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT DISTINCT - - col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT - 78 * cor0.col1 DIV - 33 FROM tab0 AS cor0
----
203
215
229

skipif mysql # not compatible
query I rowsort label-5761
SELECT - 78 * cor0.col1 / - 33 FROM tab0 AS cor0
----
203
215
229

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab2
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( col1 ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col1 + - col2 * + col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 36 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - col0 * ( - ( col0 ) ) * - 87 AS col2 FROM tab2
----
-4263
-529308
-542967

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT DISTINCT + col0 DIV - 53 + col2 * - col1 * + col0 col2 FROM tab2
----
-119653
-51035
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + col0 / - 53 + col2 * - col1 * + col0 col2 FROM tab2
----
-119653
-51035
-5859

query I rowsort
SELECT ALL - tab0.col1 * - 78 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 15f96dfe2a92a860b54bc8bc86b7a972

query I rowsort
SELECT - cor0.col1 + col2 * col1 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT + 14 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT ALL 99 * cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to bda9dc9880143e384bf5fe3f45517e20

query I rowsort
SELECT - + cor0.col1 * - 72 + + col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-312
150
468

query I rowsort
SELECT col1 * 44 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT col1 + - 76 FROM tab1
----
-50
-63
-66

query I rowsort
SELECT + col1 * + col0 * 35 FROM tab0 cor0
----
118825
283465
72240

query I rowsort
SELECT col1 * - col2 * col0 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - tab0.col2 * tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 42bf3b8f2bb865dbe16abdf6d3d647fc

query I rowsort
SELECT DISTINCT - col2 * 28 FROM tab0
----
-2296
-28
-924

query I rowsort
SELECT - 41 + col2 FROM tab1 AS cor0
----
13
16
55

query I rowsort
SELECT 38 * col0 * col2 AS col0 FROM tab2
----
114076
7182
77064

query I rowsort
SELECT - col2 + 84 FROM tab1 AS cor0
----
-12
27
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-5782
SELECT - + col2 DIV + col0 + - col1 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-5782
SELECT - + col2 / + col0 + - col1 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT + - col0 + cor0.col0 * 16 FROM tab0 AS cor0
----
1335
360
525

onlyif mysql # use DIV operator for integer division
query I rowsort label-5784
SELECT 49 DIV - col2 - col0 * + col0 FROM tab0
----
-1274
-577
-7921

skipif mysql # not compatible
query I rowsort label-5784
SELECT 49 / - col2 - col0 * + col0 FROM tab0
----
-1274
-577
-7921

query I rowsort
SELECT - col1 + - col1 * + 76 AS col1 FROM tab2 AS cor0
----
-1309
-2387
-4543

query I rowsort
SELECT + + 36 * + col1 AS col1 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT + col2 * col2 + col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1561
763
780

query I rowsort
SELECT DISTINCT ( - col2 ) * + col0 + tab0.col2 AS col1 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT + 1 - cor0.col2 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT + - ( col0 ) * - cor0.col2 + - 83 FROM tab0 AS cor0
----
-48
709
7215

onlyif mysql # use DIV operator for integer division
query I rowsort label-5791
SELECT - CAST( + 84 AS SIGNED ) DIV col0 + + ( + col1 ) * + col1 FROM tab1 AS cor0
----
168
648
99

skipif mysql # not compatible
query I rowsort label-5791
SELECT - CAST ( + 84 AS INTEGER ) / col0 + + ( + col1 ) * + col1 FROM tab1 AS cor0
----
168
648
99

query I rowsort
SELECT DISTINCT - + col0 + + 80 * col0 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT DISTINCT col1 + 26 * - cor0.col2 FROM tab1 AS cor0
----
-1378
-1472
-2483

query I rowsort
SELECT ALL + col1 * + 38 * - cor0.col2 FROM tab1 AS cor0
----
-21660
-47424
-53352

query I rowsort
SELECT - col1 + 24 AS col0 FROM tab0
----
-62
-67
-73

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT 87 FROM tab2 cor0
----
87
87
87

query I rowsort
SELECT ALL - + 45 - - col2 AS col1 FROM tab1 cor0
----
12
51
9

query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to b1a10d0ce1bd78a97a3f25900325a81f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT DISTINCT + - col0 + cor0.col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT + - col0 + cor0.col0 / + col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5802
SELECT ALL - 62 DIV 13 - - col0 * ( - 8 ) * col0 FROM tab1 cor0
----
-32772
-51204
-76

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - 62 / 13 - - col0 * ( - 8 ) * col0 FROM tab1 cor0
----
-32772
-51204
-76

query I rowsort
SELECT ALL - col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT cor0.col0 + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col0 * - tab2.col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5807
SELECT DISTINCT - col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT - col2 / - col0 AS col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + + 21 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT + - col1 + + col2 * - col2 * col2 AS col1 FROM tab2 AS cor0
----
-17635
-19714
-54889

query I rowsort
SELECT + ( + col2 ) * + col0 + - col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT ALL ( - tab0.col0 * - col0 ) + + 89 AS col2 FROM tab0
----
1314
665
8010

query I rowsort
SELECT ALL col2 * col2 * col2 + col2 FROM tab2 AS cor0
----
17602
19710
54910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * + 64 - - 82 col2 FROM tab0 AS cor0
----
146
2194
5330

query I rowsort
SELECT + + col0 - - col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - col2 + + col0 * - 79 FROM tab0 AS cor0
----
-1929
-2766
-7113

query I rowsort
SELECT col1 - + ( - ( col0 ) * - col1 ) AS col0 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - col1 + ( col2 ) + + col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - + col2 + - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5820
SELECT col1 - CAST( NULL AS SIGNED ) * + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT col1 - CAST ( NULL AS INTEGER ) * + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + ( - col2 + col0 ) FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - tab1.col0 AS col0 FROM tab1, tab2, tab0 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5824
SELECT + col0 * + col2 DIV col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5824
SELECT + col0 * + col2 / col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT DISTINCT + ( - tab0.col0 ) DIV tab0.col1 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT + ( - tab0.col0 ) / tab0.col1 FROM tab0, tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + cor0.col1 col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - col1 + ( 5 ) * col2 FROM tab0 AS cor0
----
-92
319
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 + + cor0.col0 col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to e9bfd28e25ec5c82be7b73b70a2b8ab0

query I rowsort
SELECT col2 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5830
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5830
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL tab2.col2 - tab2.col0 AS col0 FROM tab2
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5832
SELECT + + CAST( NULL AS SIGNED ) + - 69 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT + + CAST ( NULL AS INTEGER ) + - 69 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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 col0 + - col0 * + col1 FROM tab2
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5835
SELECT DISTINCT col0 + + CAST( col2 AS SIGNED ) * - tab0.col0 FROM tab0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT col0 + + CAST ( col2 AS INTEGER ) * - tab0.col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ( + cor0.col2 ) * cor0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL col0 + + col2 * col2 AS col1 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL - - cor0.col1 * + 69 + - col0 FROM tab2 cor0
----
1094
2132
3993

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5840
SELECT + + CAST( + col2 AS SIGNED ) + - cor0.col1 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-5840
SELECT + + CAST ( + col2 AS INTEGER ) + - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT 18 - col2 AS col2 FROM tab2 AS cor0
----
-20
-8
-9

query I rowsort
SELECT ALL col2 * col1 + - col1 * - col2 FROM tab2
----
1292
1674
3068

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5843
SELECT CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5843
SELECT CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT + ( col2 ) DIV cor0.col2 + 70 FROM tab0 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-5844
SELECT + ( col2 ) / cor0.col2 + 70 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT - 20 * + col1 AS col2 FROM tab2 AS cor0
----
-1180
-340
-620

query I rowsort
SELECT ALL + - ( - col1 ) * - col1 * + col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5848
SELECT - CAST( NULL AS DECIMAL ) + col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT - CAST ( NULL AS REAL ) + col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 59 * col1 AS col0 FROM tab1 AS cor0
----
1534
590
767

query I rowsort
SELECT - - col2 - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + - ( - col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - - ( + col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + ( - col1 ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5854
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - col2 * - col2 * 16 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT - CAST ( NULL AS REAL ) - col2 * - col2 * 16 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 17 ) * - cor0.col1 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT + 13 + col0 * col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-14
-262131
-511987

query I rowsort
SELECT ALL ( - cor0.col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 * - col0 + - col0 AS col1 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT - + 62 AS col0 FROM tab2 cor0
----
-62
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5860
SELECT ALL col0 + + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL col0 + + 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 DISTINCT - + 75 col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - - col2 + cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + + col2 + + col1 + + col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT + 84 + - col2 FROM tab1 AS cor0
----
-12
27
30

query I rowsort
SELECT - col1 * + col1 * - col1 AS col1 FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT + col2 + - col1 DIV 7 FROM tab2 AS cor0
----
18
23
36

skipif mysql # not compatible
query I rowsort label-5866
SELECT + col2 + - col1 / 7 FROM tab2 AS cor0
----
18
23
36

query I rowsort
SELECT ALL - + col0 * cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 * - cor0.col0 col2 FROM tab0 AS cor0
----
-140
-356
-96

query I rowsort
SELECT DISTINCT + col0 * col2 * cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL + 95 * col2 * 17 + col1 AS col2 FROM tab1 AS cor0
----
155053
87236
92065

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5871
SELECT DISTINCT - cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT - cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5872
SELECT ALL + col2 + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL + col2 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - + col1 + - 71 FROM tab2 cor0
----
-102
-130
-88

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT + - col1 + + ( - 45 ) AS col2 FROM tab2 cor0
----
-104
-62
-76

query I rowsort
SELECT 31 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT 32 DIV col0 - ( tab0.col2 ) * col0 FROM tab0
----
-35
-7298
-791

skipif mysql # not compatible
query I rowsort label-5878
SELECT 32 / col0 - ( tab0.col2 ) * col0 FROM tab0
----
-35
-7298
-791

query I rowsort
SELECT ( 37 ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL 44 * + tab1.col2 * - col0 AS col0 FROM tab1
----
-160512
-337920
-7128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col2 * - ( - 83 + - col1 ) AS col2 FROM tab2 AS cor0
----
3078
3692
3800

query I rowsort
SELECT col0 * col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - col1 * ( + col2 ) FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab0
----
-36

query I rowsort
SELECT - - col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + ( col0 + + col2 ) * 4 AS col2 FROM tab0
----
144
228
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + cor0.col2 + + 98 + col1 FROM tab1 cor0
----
165
178
207

query I rowsort
SELECT + col1 * - col2 * 11 AS col1 FROM tab2 cor0
----
-16874
-7106
-9207

query I rowsort
SELECT - 24 * col2 AS col1 FROM tab2 AS cor0
----
-624
-648
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-5892
SELECT ALL - col1 + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - col1 + col0 / col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col0 * ( + col1 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col1 * 0 + + 19 AS col2 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT col0 - 58 AS col0 FROM tab2 AS cor0
----
-51
20
21

query I rowsort
SELECT col0 + + 41 FROM tab1 AS cor0
----
105
121
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 24 + col0 col1 FROM tab0 AS cor0
----
-2047
-552
-805

query I rowsort
SELECT ALL - col1 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT col2 * 99 FROM tab0 AS cor0
----
3267
8118
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 * col0 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - - cor0.col2 * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 + 45 * - col0 FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT DISTINCT + col2 + - col1 AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL 97 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - 69 + + col2 * - col1 + + col2 FROM tab1 cor0
----
-1221
-1419
-582

query I rowsort
SELECT - - 97 + 54 AS col2 FROM tab2 AS cor0
----
151
151
151

query I rowsort
SELECT - - 9 * 43 + col1 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
421
449
505

query I rowsort
SELECT 76 * cor0.col0 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
12366
277305
583776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5909
SELECT - 10 + - col0 - cor0.col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
-14
-75
-91

skipif mysql # not compatible
query I rowsort label-5909
SELECT - 10 + - col0 - cor0.col1 / + col1 AS col1 FROM tab1 AS cor0
----
-14
-75
-91

query I rowsort
SELECT + + col0 + col1 + col0 AS col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL - 40 * 60 AS col1 FROM tab1 AS cor0
----
-2400
-2400
-2400

query I rowsort
SELECT ALL + ( - col0 ) * col2 + - 62 + - col1 * - col1 AS col1 FROM tab0 cor0
----
6542
921
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT cor0.col2 DIV - 20 - col2 * + 80 AS col1 FROM tab1 AS cor0
----
-4322
-4562
-7684

skipif mysql # not compatible
query I rowsort label-5913
SELECT cor0.col2 / - 20 - col2 * + 80 AS col1 FROM tab1 AS cor0
----
-4322
-4562
-7684

skipif mysql # not compatible
query I rowsort
SELECT - 20 + + ( col0 ) * - CAST ( 15 AS REAL ) AS col0 FROM tab1 AS cor0
----
-1220
-65
-980

query I rowsort
SELECT DISTINCT - 36 + + col0 FROM tab2 AS cor0
----
-29
42
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT DISTINCT - 87 DIV col2 + cor0.col1 * + col0 AS col0 FROM tab0 cor0
----
2062
3308
8098

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT - 87 / col2 + cor0.col1 * + col0 AS col0 FROM tab0 cor0
----
2062
3308
8098

query I rowsort
SELECT ALL - 92 AS col0 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - 96 AS col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + col0 * + col2 + 22 * - col1 FROM tab2 AS cor0
----
-493
2628
730

query I rowsort
SELECT DISTINCT 9 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + - col0 + col1 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-5923
SELECT DISTINCT col0 DIV col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT col0 / col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT + col0 * - 51 FROM tab1
----
-153
-3264
-4080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT tab1.col1 DIV 22 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5925
SELECT tab1.col1 / 22 AS col0 FROM tab1
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT + tab0.col0 DIV 70 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5926
SELECT + tab0.col0 / 70 FROM tab0
----
0
0
1

query I rowsort
SELECT col1 * + ( - col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL - col1 * + col2 AS col2 FROM tab2
----
-1534
-646
-837

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

query I rowsort
SELECT + 32 FROM tab1, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT ( col0 ) + - 79 DIV - 14 FROM tab0
----
29
40
94

skipif mysql # not compatible
query I rowsort label-5931
SELECT ( col0 ) + - 79 / - 14 FROM tab0
----
29
40
94

query I rowsort
SELECT DISTINCT - 35 * 69 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2415

onlyif mysql # use DIV operator for integer division
query I rowsort label-5933
SELECT - 32 DIV tab0.col0 + - col1 * 56 AS col2 FROM tab0
----
-4817
-5096
-5432

skipif mysql # not compatible
query I rowsort label-5933
SELECT - 32 / tab0.col0 + - col1 * 56 AS col2 FROM tab0
----
-4817
-5096
-5432

query I rowsort
SELECT - + 18 + col2 * + col1 * - 40 AS col0 FROM tab0 AS cor0
----
-113538
-298498
-3898

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5935
SELECT col0 * + col2 / CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT col0 * + col2 / CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * + col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT ALL + cor0.col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL + cor0.col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL cor0.col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + - ( - col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL 87 AS col0 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT - tab2.col2 + col1 AS col2 FROM tab2
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5942
SELECT CAST( 37 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif mysql # not compatible
query I rowsort label-5942
SELECT CAST ( 37 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT DISTINCT - 60 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-60

query I rowsort
SELECT DISTINCT - col2 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT ALL cor0.col2 + col1 DIV + 26 AS col1 FROM tab2 cor0
----
28
28
38

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL cor0.col2 + col1 / + 26 AS col1 FROM tab2 cor0
----
28
28
38

query I rowsort
SELECT ALL + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col1 + 78 AS col1 FROM tab0 AS cor0
----
164
169
175

query I rowsort
SELECT + - col0 * col1 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT DISTINCT + col1 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT + col1 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - 23 FROM tab0, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - + ( - col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT cor0.col0 DIV - 6 AS col2 FROM tab2 AS cor0
----
-1
-13
-13

skipif mysql # not compatible
query I rowsort label-5953
SELECT cor0.col0 / - 6 AS col2 FROM tab2 AS cor0
----
-1
-13
-13

query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 7 * tab1.col2 AS col1 FROM tab1
----
-378
-399
-672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 * + col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 72 FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 92 ) col2 FROM tab2 AS cor0
----
92

query I rowsort
SELECT + ( - ( + col1 ) ) * + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT cor0.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col2 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ALL + + col1 + - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 92 AS col0 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + 59 AS col2 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT + col0 * - col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + - col2 + col1 * col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5968
SELECT - col0 + - col0 DIV - cor0.col1 FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-5968
SELECT - col0 + - col0 / - cor0.col1 FROM tab1 AS cor0
----
-3
-58
-74

query I rowsort
SELECT ALL + + cor0.col1 * col0 + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - - col0 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - - col0 + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ( - col1 ) * - tab0.col0 - col1 AS col2 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ( - cor0.col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 12 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
44

query I rowsort
SELECT - col1 + col1 * col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - ( cor0.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5978
SELECT DISTINCT + cor0.col0 DIV - 84 FROM tab1, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT + cor0.col0 / - 84 FROM tab1, tab2 AS cor0
----
0

query I rowsort
SELECT ALL + ( tab2.col0 ) FROM tab2
----
7
78
79

query I rowsort
SELECT - + tab2.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - col0 - + col1 * col1 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT col2 * - col2 * 75 - + col2 FROM tab1 cor0
----
-218754
-243732
-691296

onlyif mysql # use DIV operator for integer division
query I rowsort label-5983
SELECT 49 DIV + tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 4889e7833b369e16b41a8360c6950068

skipif mysql # not compatible
query I rowsort label-5983
SELECT 49 / + tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 4889e7833b369e16b41a8360c6950068

onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT ALL col0 DIV - tab1.col2 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL col0 / - tab1.col2 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col1 * col2 * - 35 AS col0 FROM tab0
----
-261170
-3395
-99330

query I rowsort
SELECT DISTINCT col1 + + 72 FROM tab2
----
103
131
89

query I rowsort
SELECT ALL + ( + ( col1 ) ) * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 + - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col1 AS col0 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT - ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col0 + col2 * 87 FROM tab2
----
2340
2356
3385

query I rowsort
SELECT col2 * col0 + col1 AS col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + cor0.col2 * ( 32 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 50979d93e65eb2e0eb8da5d863ba5138

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT DISTINCT + - 2 + - col0 + col0 FROM tab2 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + - col0 * + col1 col0 FROM tab1 AS cor0
----
-1097
-135
-697

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - ( - col1 ) col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col1 * - cor0.col2 + col0 * - col1 - + 37 AS col0 FROM tab2 AS cor0
----
-1091
-2026
-6173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col2 FROM tab1 cor0
----
98
98
98

query I rowsort
SELECT DISTINCT 92 + - 10 FROM tab2 AS cor0
----
82

query I rowsort
SELECT DISTINCT + 5 + 57 AS col2 FROM tab2 AS cor0
----
62

query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab0 AS cor0
----
54

query I rowsort
SELECT + - 56 * col2 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT ALL - 7 + cor0.col2 FROM tab0 AS cor0
----
-6
26
75

query I rowsort
SELECT - 6 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-103
-2844
-7468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 + - cor0.col2 col0 FROM tab1 AS cor0
----
-46
-49
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT DISTINCT - col0 + col0 DIV cor0.col2 - ( 53 ) * col0 FROM tab1 AS cor0
----
-162
-3455
-4320

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT - col0 + col0 / cor0.col2 - ( 53 ) * col0 FROM tab1 AS cor0
----
-162
-3455
-4320

query I rowsort
SELECT 26 * + col1 AS col1 FROM tab0 cor0
----
2236
2366
2522

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + col1 BETWEEN col0 AND NULL
----
64
10
57
80
13
96

query I rowsort
SELECT ALL - col2 + + tab2.col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 * + tab2.col2 AS col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + col0 col1 FROM tab0
----
-2814
-62
-7373

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + col0 NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * - col2 + + col2 col1 FROM tab2
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 * + tab2.col2 + - col1 * col1 col1 FROM tab2
----
-1659
-1716
-4098

query I rowsort
SELECT DISTINCT + col0 * - col1 - - col2 AS col2 FROM tab0 WHERE + col1 / col1 + - col0 NOT IN ( + col1 * - col0 )
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT tab2.col2 * col2 + col1 + col0 FROM tab2
----
1540
767
813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 + col2 col0 FROM tab1
----
109
67
80

query I rowsort
SELECT col2 * tab2.col1 * col2 AS col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL + col2 * - col1 AS col2 FROM tab0
----
-2838
-7462
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - col1 * - col0 * col2
----

query I rowsort
SELECT ALL + tab0.col1 * + col0 AS col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + + col0 * + col1 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT tab0.col1 * col1 - col2 * col0 FROM tab0
----
6604
9374
983

query I rowsort
SELECT col0 * col2 + - col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT ALL + tab0.col1 / col2 + col1 / - col1 FROM tab0 WHERE ( - col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 + + col1 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT + col1 + col1 AS col2 FROM tab0
----
172
182
194

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 > col2 * col1 * col0 + col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - col1 IN ( col1 )
----

query I rowsort
SELECT - col1 + col1 * + col1 * + col0 FROM tab1
----
13507
2002
6390

query I rowsort
SELECT + tab2.col1 - + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 + col1 + col1 * - col1 FROM tab0
----
-7286
-8101
-9277

query I rowsort
SELECT DISTINCT + col1 * - col2 * tab2.col1 AS col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT - col1 * + tab0.col0 * + col1 FROM tab0
----
-177504
-329315
-737009

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT IN ( col0 + + tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col2 * col0 + col0 * - col0 AS col2 FROM tab0
----
-1190
-623
216

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col1 > col1 * col0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * col1 col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT + col2 + - col1 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - + col1 + col1 * - col1 FROM tab2 AS cor0
----
-306
-3540
-992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col2 + - col0 * col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + + col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( col0 )
----

query I rowsort
SELECT ALL col0 * + col1 + - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6050
SELECT col1 DIV col0 + + col1 FROM tab2
----
17
35
59

skipif mysql # not compatible
query I rowsort label-6050
SELECT col1 / col0 + + col1 FROM tab2
----
17
35
59

query I rowsort
SELECT tab1.col1 * + col1 - + col1 FROM tab1
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6052
SELECT DISTINCT + col1 + - col1 DIV + col0 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT + col1 + - col1 / + col0 FROM tab0
----
83
90
95

query I rowsort
SELECT + cor0.col0 * col1 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT - - col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6055
SELECT - col2 * CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6055
SELECT - col2 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6056
SELECT + col0 + ( + 57 ) DIV - col1 FROM tab2 AS cor0
----
6
76
78

skipif mysql # not compatible
query I rowsort label-6056
SELECT + col0 + ( + 57 ) / - col1 FROM tab2 AS cor0
----
6
76
78

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + col0 + - col1 col1 FROM tab2 AS cor0
----
-1382
-657
-753

query I rowsort
SELECT ALL + 67 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-13
3
64

query I rowsort
SELECT DISTINCT + + ( - col2 ) * + col2 * + col1 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - - cor0.col1 * - col2 col2 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - 70 * col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT + + col2 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - cor0.col1 + 40 AS col1 FROM tab0 AS cor0
----
-46
-51
-57

query I rowsort
SELECT + col2 * - 8 * + cor0.col0 - - ( - col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
-1701
-18252
-27018

onlyif mysql # use DIV operator for integer division
query I rowsort label-6066
SELECT - col2 DIV col0 + - col0 FROM tab0 cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-6066
SELECT - col2 / col0 + - col0 FROM tab0 cor0
----
-25
-35
-89

query I rowsort
SELECT cor0.col1 * cor0.col0 + + 43 * - col2 AS col0 FROM tab2 AS cor0
----
-291
-944
3484

query I rowsort
SELECT DISTINCT col1 * + col0 * - tab2.col0 + - col1 * + tab2.col2 * - tab2.col1 FROM tab2
----
-268450
-95115
24428

query I rowsort
SELECT + col1 - - tab0.col0 * - col2 FROM tab0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6070
SELECT - col1 + - col1 DIV - col0 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-6070
SELECT - col1 + - col1 / - col0 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT 79 * col0 + col1 AS col2 FROM tab1 AS cor0
----
263
5066
6333

query I rowsort
SELECT DISTINCT - ( 48 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT ALL col1 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL col1 / + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT + + col1 + col1 * col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT col1 + + col1 * 31 AS col2 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT - col1 * + ( - col2 ) * col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT 33 * col1 FROM tab0 AS cor0
----
2838
3003
3201

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6078
SELECT DISTINCT + + CAST( col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - + col0 * + col2 + col2 + - col1 * + col2 * col2 FROM tab1 cor0
----
-127392
-36081
-75924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6080
SELECT ALL - CAST( col1 AS SIGNED ) + - col2 + - cor0.col1 FROM tab0 AS cor0
----
-195
-205
-264

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL - CAST ( col1 AS INTEGER ) + - col2 + - cor0.col1 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT 66 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL col0 * 99 FROM tab0
----
2376
3465
8811

query I rowsort
SELECT ALL col0 * 45 + - col0 AS col0 FROM tab2
----
308
3432
3476

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT col2 + col1 * col1 * - col0 FROM tab1
----
-13424
-1974
-6343

query I rowsort
SELECT ALL ( col2 ) + col1 AS col2 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 * col1 + - col0 col0 FROM tab1
----
309
56
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col2 + - col0 + col2 col1 FROM tab0 AS cor0
----
-1080
-35
-6731

query I rowsort
SELECT + 55 * cor0.col2 + - col2 * col2 FROM tab0 AS cor0
----
-2214
54
726

query I rowsort
SELECT DISTINCT - col2 * + col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 32 + + col1 col2 FROM tab2 AS cor0
----
1233
891
895

query I rowsort
SELECT ALL - col1 + - 14 FROM tab1 AS cor0
----
-24
-27
-40

query I rowsort
SELECT - - cor0.col1 * + col1 + - col2 AS col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab1 AS cor0
----
14

query I rowsort
SELECT DISTINCT col0 + - col0 * col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT ALL + + tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - tab0.col1 * - tab0.col0 + - col1 * - col2 * - tab0.col2 FROM tab0
----
-603785
-91590
3298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6098
SELECT DISTINCT col2 + col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT col2 + col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - tab2.col0 + - tab2.col1 AS col2 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT ALL - 92 * col0 + + 76 * + 43 AS col1 FROM tab0
----
-4920
1060
48

query I rowsort
SELECT - + col0 + + col2 * 58 FROM tab2 AS cor0
----
1430
1559
2125

query I rowsort
SELECT 75 + + 90 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3bead38bbc273b32c3680892faf10d6b

query I rowsort
SELECT cor0.col0 * col1 + - col1 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-741
3299
719

query I rowsort
SELECT DISTINCT - ( col1 ) + cor0.col1 * + col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT 2 + tab2.col1 AS col2 FROM tab2
----
19
33
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT 54 * + tab2.col1 + col2 DIV col0 AS col0 FROM tab2
----
1677
3186
918

skipif mysql # not compatible
query I rowsort label-6106
SELECT 54 * + tab2.col1 + col2 / col0 AS col0 FROM tab2
----
1677
3186
918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6107
SELECT DISTINCT + cor0.col2 * + CAST( NULL AS DECIMAL ) * - col2 + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT + cor0.col2 * + CAST ( NULL AS REAL ) * - col2 + - col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6108
SELECT DISTINCT - col2 * + CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab2 cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-6108
SELECT DISTINCT - col2 * + CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT - - col0 + - col2 FROM tab0 cor0
----
-9
34
7

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 ALL + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col2 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6113
SELECT - col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-6113
SELECT - col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT DISTINCT - col2 * col0 DIV - cor0.col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT - col2 * col0 / - cor0.col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + col2 * col1 - + 22 AS col2 FROM tab0 AS cor0
----
-119
-2860
-7484

query I rowsort
SELECT + + col2 * ( col2 ) + - cor0.col1 * + col1 FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT ALL - 93 * col1 FROM tab1
----
-1209
-2418
-930

query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - cor0.col1 + + ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - col0 * - 52 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT - col0 * cor0.col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col2 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col1 * 16 AS col0 FROM tab2 AS cor0
----
-272
-496
-944

query I rowsort
SELECT ALL + col2 * - col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + - col0 + col1 * - col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + col0 * + cor0.col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * - col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + cor0.col1 * - col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + - col1 * col1 - col0 FROM tab2 cor0
----
-3559
-368
-968

query I rowsort
SELECT col1 + tab2.col2 * + col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - tab1.col2 * col1 * col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT col1 + col0 * col2 AS col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + - col1 - col1 * - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL + - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col1 + - col1 + cor0.col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6138
SELECT DISTINCT - col0 DIV - cor0.col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT - col0 / - cor0.col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT 44 + - col1 * col2 AS col1 FROM tab2 cor0
----
-1490
-602
-793

onlyif mysql # use DIV operator for integer division
query I rowsort label-6140
SELECT - col2 DIV + col1 + - col1 * - col1 * col2 AS col1 FROM tab1 AS cor0
----
16217
36502
5695

skipif mysql # not compatible
query I rowsort label-6140
SELECT - col2 / + col1 + - col1 * - col1 * col2 AS col1 FROM tab1 AS cor0
----
16217
36502
5695

query I rowsort
SELECT DISTINCT + + 70 - + col2 FROM tab2 AS cor0
----
32
43
44

query I rowsort
SELECT 98 * col2 + - col2 FROM tab1 AS cor0
----
5238
5529
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + - cor0.col1 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - - 20 * col1 + col2 + - col2 FROM tab1 AS cor0
----
200
260
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT - col1 DIV + col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT - col1 / + col0 FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT - + col0 * col2 DIV col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6146
SELECT - + col0 * col2 / col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + - col1 * - cor0.col0 FROM tab1 cor0
----
1280
156
2080

query I rowsort
SELECT - - ( + col0 ) + + col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL - ( + cor0.col2 ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - + col2 + col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6151
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 * col2 - tab2.col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 * col2 - tab2.col0 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + tab1.col1 + col2 + + col2 * - col0 col2 FROM tab1
----
-3021
-6336
1296

query I rowsort
SELECT ALL + ( + col0 ) * col1 + + tab0.col2 AS col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - tab0.col2 + + col1 * tab0.col1 AS col1 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL - ( + col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT col2 * col0 + - col2 + 42 AS col2 FROM tab0 AS cor0
----
7258
76
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT - col2 + - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-6158
SELECT - col2 + - col2 / col0 AS col0 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT + 69 * - cor0.col2 FROM tab0 AS cor0
----
-2277
-5658
-69

query I rowsort
SELECT DISTINCT + col1 * + col0 - + tab2.col2 * - tab2.col1 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT + + 98 + - col0 * + 15 AS col2 FROM tab0 AS cor0
----
-1237
-262
-427

query I rowsort
SELECT ALL + + col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + col2 * col1 + + 82 + col2 AS col2 FROM tab0 AS cor0
----
180
2953
7626

query I rowsort
SELECT - + col2 + ( - col2 ) + col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - + col1 * - 46 FROM tab0 AS cor0
----
3956
4186
4462

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6166
SELECT - cor0.col2 + + CAST( + col2 AS SIGNED ) * - col2 * + col1 col1 FROM tab1 AS cor0
----
-119904
-32547
-75870

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6166
SELECT - cor0.col2 + + CAST ( + col2 AS INTEGER ) * - col2 * + col1 col1 FROM tab1 AS cor0
----
-119904
-32547
-75870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + - 28 * + cor0.col1 col1 FROM tab0 AS cor0
----
-2404
-2544
-2712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 + cor0.col0 * col2 col2 FROM tab0 AS cor0
----
55
7318
812

query I rowsort
SELECT col1 + - col1 * col2 * 42 FROM tab0 cor0
----
-119110
-313313
-3977

query I rowsort
SELECT 87 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + 70 AS col2 FROM tab2 cor0
----
70
70
70

query I rowsort
SELECT + 97 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 54 * col2 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT ALL col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + ( ( tab2.col2 ) ) FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + + cor0.col1 * cor0.col1 + - 13 AS col0 FROM tab1 AS cor0
----
156
663
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * col0 col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - col2 + + col0 * ( + col1 ) AS col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT + 77 + + col1 * + col2 AS col0 FROM tab1 cor0
----
1325
1481
647

query I rowsort
SELECT + - 82 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - ( - col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT cor0.col2 + col2 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6184
SELECT ALL + CAST( NULL AS SIGNED ) + 63 * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL + CAST ( NULL AS INTEGER ) + 63 * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 49 + - col1 * col1 FROM tab2
----
-240
-3432
-912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6186
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 + + col2 * + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 + + col2 * + col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT tab2.col2 * 42 - - col0 FROM tab2
----
1141
1170
1675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6188
SELECT - CAST( NULL AS SIGNED ) / col1 - - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT - CAST ( NULL AS INTEGER ) / col1 - - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col2 + - 72 FROM tab1
----
-15
-18
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT DISTINCT 28 DIV - col0 + cor0.col1 * cor0.col1 - + col2 * - col0 FROM tab0 AS cor0
----
15579
8187
9444

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT 28 / - col0 + cor0.col1 * cor0.col1 - + col2 * - col0 FROM tab0 AS cor0
----
15579
8187
9444

query I rowsort
SELECT - + 35 FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL - col0 * + col2 * - 13 + 60 FROM tab2 AS cor0
----
2517
26424
39086

query I rowsort
SELECT DISTINCT - 5 - + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2069
-3400
-8104

query I rowsort
SELECT 48 * col0 + col0 FROM tab1 AS cor0
----
147
3136
3920

query I rowsort
SELECT + col0 * + ( col0 ) - tab1.col1 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT - col1 + + 38 AS col2 FROM tab2 AS cor0
----
-21
21
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 66 col1 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT DISTINCT + col1 + col1 * + col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT - col1 + + col2 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7449
-8290
-9505

query I rowsort
SELECT - - col1 * 27 + 90 FROM tab0 cor0
----
2412
2547
2709

query I rowsort
SELECT - col1 * - 26 AS col2 FROM tab1 AS cor0
----
260
338
676

query I rowsort
SELECT - - col1 * 54 + - col0 FROM tab1 AS cor0
----
1401
476
622

query I rowsort
SELECT DISTINCT ( + 86 ) FROM tab1
----
86

query I rowsort
SELECT + 65 AS col2 FROM tab1
----
65
65
65

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - 86 + - col1 + + col2 FROM tab1 AS cor0
----
-3
-39
-58

query I rowsort
SELECT 22 FROM tab2, tab0 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT 94 + 91 AS col0 FROM tab2 AS cor0
----
185
185
185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6209
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * col0 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT - col2 DIV - col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6211
SELECT - col2 / - col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 * - ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6213
SELECT ALL + - col2 * - CAST( NULL AS SIGNED ) + col0 * col1 + 28 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL + - col2 * - CAST ( NULL AS INTEGER ) + col0 * col1 + 28 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + 19 FROM tab1 AS cor0
----
-190
-247
-494

query I rowsort
SELECT ALL + - col0 * - col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL col2 + - 17 FROM tab2 AS cor0
----
10
21
9

query I rowsort
SELECT 75 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT + 74 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL + tab0.col2 * + col1 * 57 + - col0 AS col0 FROM tab0
----
161742
425245
5494

query I rowsort
SELECT ALL + col0 + ( col2 ) * + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-611795
-62
-93630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT + - col2 + - col2 * col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-155
-45

skipif mysql # not compatible
query I rowsort label-6221
SELECT + - col2 + - col2 * col2 / col1 AS col2 FROM tab0 AS cor0
----
-1
-155
-45

query I rowsort
SELECT ALL - col1 + 58 FROM tab0 AS cor0
----
-28
-33
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6223
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 69 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT ALL + - 58 AS col2 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ( - 6 ) FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT - - cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col0 * 52 col1 FROM tab2 AS cor0
----
333
3997
4091

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 - cor0.col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 - + ( - 62 + col0 ) AS col1 FROM tab2 cor0
----
1326
272
4586

query I rowsort
SELECT + col1 * + col0 + - col0 * col2 * col1 FROM tab0 AS cor0
----
-656019
-66048
0

query I rowsort
SELECT ALL 50 * - col1 * + 75 + + col2 * - cor0.col0 * + 87 AS col2 FROM tab2 AS cor0
----
-132693
-324924
-397686

query I rowsort
SELECT ALL + col1 + cor0.col1 AS col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT + 31 * + col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
1467
1798
4287

query I rowsort
SELECT tab1.col0 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + col2 * + col2 + + 57 * col2 AS col2 FROM tab0 AS cor0
----
11398
2970
58

query I rowsort
SELECT ALL - 5 + col0 FROM tab2 AS cor0
----
2
73
74

query I rowsort
SELECT + tab0.col1 + - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 46 AS col2 FROM tab2 cor0
----
46
46
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6241
SELECT DISTINCT 93 + + col1 DIV col1 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT 93 + + col1 / col1 FROM tab2 AS cor0
----
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT ALL + col0 * + col1 + cor0.col1 DIV + col1 FROM tab2 AS cor0
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL + col0 * + col1 + cor0.col1 / + col1 FROM tab2 AS cor0
----
1344
218
4603

query I rowsort
SELECT ( + col2 ) + 81 * - col1 AS col0 FROM tab0 AS cor0
----
-6933
-7289
-7856

query I rowsort
SELECT ALL - tab1.col2 * col2 + 23 * col1 FROM tab1
----
-2318
-3019
-8917

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6245
SELECT ALL - col1 + col2 * - CAST( tab2.col1 AS SIGNED ) FROM tab2
----
-1593
-663
-868

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - col1 + col2 * - CAST ( tab2.col1 AS INTEGER ) FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT col1 + + tab1.col0 * - col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT - 97 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6249
SELECT ALL - + cor0.col1 DIV - 51 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-58

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL - + cor0.col1 / - 51 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-58

query I rowsort
SELECT - 9 * cor0.col2 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to f181e205afa58274719255790af26999

query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + - col2 + ( col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 95 + + col1 AS col0 FROM tab0 AS cor0
----
192
3221
7881

query I rowsort
SELECT col0 * - 82 + ( col0 + + col1 ) * col0 AS col0 FROM tab2 cor0
----
-308
1106
4290

query I rowsort
SELECT - 41 AS col1 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT ALL ( + col2 ) * col1 * 24 FROM tab2
----
15504
20088
36816

query I rowsort
SELECT ALL + col2 + - col2 * + col0 + ( col2 ) AS col0 FROM tab1
----
-3534
-54
-7488

query I rowsort
SELECT - ( 95 ) FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT col0 * 93 AS col1 FROM tab1 AS cor0
----
279
5952
7440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - col0 * col2 + ( + cor0.col1 ) FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + + cor0.col1 + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - 40 * col0 FROM tab0 AS cor0
----
-1400
-3560
-960

query I rowsort
SELECT DISTINCT col0 * col2 + ( 77 ) FROM tab2 AS cor0
----
2105
266
3079

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6267
SELECT col2 - col0 * + CAST( col2 * col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-207879
-737184
-8694

skipif mysql # not compatible
query I rowsort label-6267
SELECT col2 - col0 * + CAST ( col2 * col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-207879
-737184
-8694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6268
SELECT col0 + + cor0.col1 * CAST( cor0.col1 AS SIGNED ) + cor0.col2 FROM tab1 cor0
----
221
345
733

skipif mysql # not compatible
query I rowsort label-6268
SELECT col0 + + cor0.col1 * CAST ( cor0.col1 AS INTEGER ) + cor0.col2 FROM tab1 cor0
----
221
345
733

query I rowsort
SELECT DISTINCT + - 82 * - col1 AS col0 FROM tab2 cor0
----
1394
2542
4838

query I rowsort
SELECT ALL + col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - 26 - - col0 AS col2 FROM tab0 AS cor0
----
-2
63
9

query I rowsort
SELECT ALL ( col2 ) * + col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 49 * col2 + col2 AS col0 FROM tab2 cor0
----
-1248
-1296
-1824

query I rowsort
SELECT - col1 * + col2 * 67 AS col2 FROM tab0 AS cor0
----
-190146
-499954
-6499

skipif mysql # not compatible
query I rowsort
SELECT + - col0 + + col1 * + CAST ( col1 + col2 AS REAL ) FROM tab1 cor0
----
1337
2077
606

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab0, tab1 AS cor0
----
74

query I rowsort
SELECT ALL 71 + col2 * col1 + col2 AS col0 FROM tab1
----
1415
1529
698

query I rowsort
SELECT - col0 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT 98 * + col2 + col0 DIV 73 FROM tab2 AS cor0
----
2549
2646
3725

skipif mysql # not compatible
query I rowsort label-6279
SELECT 98 * + col2 + col0 / 73 FROM tab2 AS cor0
----
2549
2646
3725

query I rowsort
SELECT 55 - - col1 AS col2 FROM tab1 AS cor0
----
65
68
81

query I rowsort
SELECT - - col2 + - col0 * col0 FROM tab1 cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 + + col2 col2 FROM tab1
----
111
178
272

query I rowsort
SELECT - ( + col1 ) + 79 AS col2 FROM tab2 AS cor0
----
20
48
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6284
SELECT ALL col2 * CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL col2 * CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab1.col2 * - tab1.col1 FROM tab1, tab1 cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

query I rowsort
SELECT - col0 + - col1 * - 57 AS col2 FROM tab1 cor0
----
1479
506
661

query I rowsort
SELECT col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ( - col1 ) * + cor0.col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 79 + col2 * + col0 FROM tab1 AS cor0
----
241
3727
7759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col0 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL tab1.col2 * col0 * col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - col1 * - 2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - col2 * 96 AS col1 FROM tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT - + col0 + - 51 * col1 FROM tab1 cor0
----
-1329
-574
-743

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT ALL + + col1 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + + col1 / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + - 60 * col0 FROM tab0 AS cor0
----
-1440
-2100
-5340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * col2 + + col1 col2 FROM tab2 AS cor0
----
-1189
-1265
-1807

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + - 19 * + col2 FROM tab0 AS cor0
----
16
165
5740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * 65 col0 FROM tab2 AS cor0
----
1026
2008
3757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * - cor0.col2 col2 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT DISTINCT - 7 * - col1 AS col0 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT DISTINCT + col2 * - col1 * - 69 AS col1 FROM tab0 AS cor0
----
195822
514878
6693

query I rowsort
SELECT + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL 66 + - 60 AS col2 FROM tab0
----
6
6
6

query I rowsort
SELECT + - cor0.col2 * col2 + + 14 AS col0 FROM tab2 AS cor0
----
-1430
-662
-715

query I rowsort
SELECT + col1 + + 68 AS col2 FROM tab0 AS cor0
----
154
159
165

query I rowsort
SELECT + - cor0.col1 + col1 * col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + cor0.col2 + - 33 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-6
-7
5

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2, tab0 cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT ALL - - col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT cor0.col2 * 49 AS col2 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT + col2 * ( 66 ) + col0 * 45 FROM tab0 AS cor0
----
1641
3258
9417

query I rowsort
SELECT ALL - cor0.col2 * + 16 + - col1 FROM tab2 AS cor0
----
-463
-475
-625

query I rowsort
SELECT - col0 + 11 FROM tab0 AS cor0
----
-13
-24
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6316
SELECT DISTINCT col2 * CAST( - cor0.col1 AS SIGNED ) * col2 + + 73 FROM tab2 AS cor0
----
-22526
-24475
-39811

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT col2 * CAST ( - cor0.col1 AS INTEGER ) * col2 + + 73 FROM tab2 AS cor0
----
-22526
-24475
-39811

query I rowsort
SELECT ALL 58 AS col1 FROM tab1
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 45 + + 87 + col1 * - col2 col2 FROM tab2 AS cor0
----
-1065
-4114
-4957

query I rowsort
SELECT DISTINCT - col1 + ( col2 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - 13 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT ALL - 81 FROM tab1, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL col0 + + col2 + col0 * + col1 * col2 AS col0 FROM tab1
----
100016
36601
4269

query I rowsort
SELECT ALL + tab0.col0 + ( + 48 ) FROM tab0
----
137
72
83

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - ( ( + col2 ) ) col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + 70 FROM tab1
----
70
70
70

query I rowsort
SELECT + cor0.col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + 49 * col1 AS col1 FROM tab1
----
1274
490
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-6330
SELECT + tab0.col1 DIV 81 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-6330
SELECT + tab0.col1 / 81 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col2 + ( col0 * col1 ) col1 FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT col0 * + col1 + col0 * 32 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
2087
4515
8133

skipif mysql # not compatible
query I rowsort label-6332
SELECT col0 * + col1 + col0 * 32 / cor0.col2 AS col0 FROM tab0 AS cor0
----
2087
4515
8133

onlyif mysql # use DIV operator for integer division
query I rowsort label-6333
SELECT ALL col0 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL col0 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + ( + cor0.col2 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL ( - col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT cor0.col2 + - 25 + - col2 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL - 40 AS col2 FROM tab0 AS cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + 45 * - 78 FROM tab2 AS cor0
----
-3510
-3510
-3510

query I rowsort
SELECT DISTINCT 46 * col0 AS col2 FROM tab0 AS cor0
----
1104
1610
4094

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6342
SELECT - - ( col1 ) * col2 + + CAST( ( - col2 ) AS SIGNED ) + col2 * col0 FROM tab0 AS cor0
----
131
14678
3597

skipif mysql # not compatible
query I rowsort label-6342
SELECT - - ( col1 ) * col2 + + CAST ( ( - col2 ) AS INTEGER ) + col2 * col0 FROM tab0 AS cor0
----
131
14678
3597

query I rowsort
SELECT DISTINCT 96 + col2 + - col0 AS col0 FROM tab0 cor0
----
105
62
89

query I rowsort
SELECT ALL + + col2 * 79 AS col1 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT DISTINCT + col2 + 84 FROM tab0 AS cor0
----
117
166
85

query I rowsort
SELECT ALL col2 * - 90 FROM tab1 AS cor0
----
-4860
-5130
-8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT DISTINCT 65 DIV col1 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT 65 / col1 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT - ( ( col1 ) ) DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6348
SELECT - ( ( col1 ) ) / col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + col0 * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - cor0.col0 col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + 20 + + tab1.col1 * - col2 FROM tab1
----
-1228
-1384
-550

query I rowsort
SELECT 3 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT - col2 * col0 + 72 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-3519
-36
-7512

query I rowsort
SELECT DISTINCT cor0.col0 * col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + + col1 * - CAST ( col1 AS REAL ) + + col0 + - ( col0 ) col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col1 + - col0 + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
133
3574
7587

query I rowsort
SELECT - + col0 + ( + col2 ) FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - - cor0.col1 * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL 47 * - 20 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 264606a6bb3b505a7fff44e87da5f690

query I rowsort
SELECT ALL - + col2 * - 11 * + 35 + + cor0.col1 FROM tab1 AS cor0
----
20816
21955
36973

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 - + CAST ( col0 AS REAL ) FROM tab0
----
-178
-48
-70

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT tab1.col0 - CAST ( - col0 AS REAL ) FROM tab1
----
128
160
6

query I rowsort
SELECT ALL col0 - + 64 FROM tab2
----
-57
14
15

query I rowsort
SELECT + col2 * 66 * col2 FROM tab0
----
443784
66
71874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 66 ) + + col0 col1 FROM tab0 AS cor0
----
101
155
90

query I rowsort
SELECT + - col1 * - 78 + col2 AS col0 FROM tab0 AS cor0
----
6741
7180
7567

query I rowsort
SELECT DISTINCT ( + col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col1 * col0 + col0 * col0 FROM tab1 AS cor0
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6370
SELECT ALL - 97 DIV - col1 + + col1 col1 FROM tab0 cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - 97 / - col1 + + col1 col1 FROM tab0 cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT - + col2 DIV - col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-6371
SELECT - + col2 / - col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL col0 * - 77 + 80 FROM tab2
----
-459
-5926
-6003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + + col1 * 97 * + cor0.col0 + + cor0.col0 * 44 FROM tab0 AS cor0
----
201264
330855
789519

onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT ALL col1 + + tab2.col2 DIV ( - col1 ) FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL col1 + + tab2.col2 / ( - col1 ) FROM tab2
----
15
31
59

query I rowsort
SELECT ALL col0 + 9 * col1 + - col2 * col1 FROM tab0
----
-2040
-6554
811

query I rowsort
SELECT cor2.col1 FROM tab1, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT col0 + - ( - col1 ) * cor0.col0 AS col1 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT + + col0 - - col1 * - cor0.col2 * col2 FROM tab1 AS cor0
----
-119728
-32426
-75813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - col1 + col1 * + ( - col1 + col1 ) col1 FROM tab2 AS cor0
----
1364
2596
748

query I rowsort
SELECT + + 82 * col0 + + col2 FROM tab0 AS cor0
----
2001
2871
7380

query I rowsort
SELECT col0 * col2 - col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6384
SELECT CAST( 65 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif mysql # not compatible
query I rowsort label-6384
SELECT CAST ( 65 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT - col2 + + 66 DIV + col0 AS col2 FROM tab1
----
-32
-56
-96

skipif mysql # not compatible
query I rowsort label-6385
SELECT - col2 + + 66 / + col0 AS col2 FROM tab1
----
-32
-56
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6386
SELECT DISTINCT - col1 + CAST( NULL AS DECIMAL ) * col0 * col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - col1 + CAST ( NULL AS REAL ) * col0 * col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL cor1.col1 * ( 13 * cor0.col0 ) + + 32 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 52040b5ab8580a668e5ac9dafe83f794

query I rowsort
SELECT + col1 * 22 FROM tab2
----
1298
374
682

query I rowsort
SELECT ALL col2 + + 93 FROM tab2
----
119
120
131

query I rowsort
SELECT DISTINCT ( col2 ) * - col0 * col1 + col0 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT 17 * ( col0 ) FROM tab2
----
119
1326
1343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + col0 col1 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6394
SELECT ( col0 + col1 ) * + CAST( col0 + tab1.col2 AS SIGNED ) AS col2 FROM tab1
----
16368
1653
8954

skipif mysql # not compatible
query I rowsort label-6394
SELECT ( col0 + col1 ) * + CAST ( col0 + tab1.col2 AS INTEGER ) AS col2 FROM tab1
----
16368
1653
8954

query I rowsort
SELECT - tab2.col0 * + col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col2 + col2 * + 68 AS col0 FROM tab1
----
3726
3933
6624

query I rowsort
SELECT + col2 * + col2 + ( col2 ) FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2
----
46

query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab2
----
-6

query I rowsort
SELECT + 52 + tab0.col1 AS col0 FROM tab0
----
138
143
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * - col0 col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - col0 - col1 * 13 * 55 FROM tab1
----
-18593
-7214
-9375

query I rowsort
SELECT ALL 57 * + col1 FROM tab0
----
4902
5187
5529

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - ( - 61 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT + col0 * - 69 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT DISTINCT - - col1 + col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT ALL + + col0 + - ( + col1 * cor0.col0 ) + col1 FROM tab2 AS cor0
----
-1247
-179
-4465

onlyif mysql # use DIV operator for integer division
query I rowsort label-6411
SELECT DISTINCT + cor0.col1 + - col2 DIV + col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + cor0.col1 + - col2 / + col1 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT DISTINCT + + col0 * + col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col2 FROM tab1, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col0 * 59 FROM tab2 AS cor0
----
-413
-4602
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col0 + cor0.col1 * col0 * col1 + - 61 * + col0 col1 FROM tab1 AS cor0
----
-1152
1683
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT ALL - col2 - - cor0.col1 DIV 72 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-6417
SELECT ALL - col2 - - cor0.col1 / 72 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + col0 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 = + col2
----
128
160
6

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col2 AND col0
----
13
26

query I rowsort
SELECT - col1 + + tab2.col0 / + col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col0 * col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * col1 - - col2 AS col2 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * col2 col1 FROM tab1
----
2919
3313
9296

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( - col0 * tab1.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * + col0 + col2 * col0 col1 FROM tab1
----
266
4298
8733

query I rowsort
SELECT DISTINCT col1 + + col0 * tab1.col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT + col0 * col0 - - col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT + col1 - - col0 * col0 FROM tab1
----
35
4106
6413

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 + + tab2.col2 )
----

query I rowsort
SELECT col1 * cor0.col2 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
-22606
-24627
-39962

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6434
SELECT + col2 * col0 + col2 DIV - col1 FROM tab1
----
160
3643
7673

skipif mysql # not compatible
query I rowsort label-6434
SELECT + col2 * col0 + col2 / - col1 FROM tab1
----
160
3643
7673

onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT col0 DIV - col0 + - col2 FROM tab1 cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-6435
SELECT col0 / - col0 + - col2 FROM tab1 cor0
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6436
SELECT col1 DIV - col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6436
SELECT col1 / - col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - + col0 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT DISTINCT - col0 DIV - col2 + + col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT - col0 / - col2 + + col1 FROM tab1
----
11
13
26

query I rowsort
SELECT + - col1 + cor0.col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - col2 + col0 * + col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 + col2 col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT ALL - ( tab1.col1 * col1 ) + - col0 DIV col1 AS col1 FROM tab1
----
-106
-175
-676

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - ( tab1.col1 * col1 ) + - col0 / col1 AS col1 FROM tab1
----
-106
-175
-676

query I rowsort
SELECT DISTINCT + 71 FROM tab1, tab2, tab2 AS cor0
----
71

query I rowsort
SELECT - 72 + col1 FROM tab1
----
-46
-59
-62

query I rowsort
SELECT col2 * + col0 * col0 + 90 + col0 FROM tab0 AS cor0
----
1350
19122
649701

query I rowsort
SELECT + - col1 * + cor0.col1 - + ( col2 ) FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - + cor0.col0 * + col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - - ( col0 ) + + 34 AS col2 FROM tab1 AS cor0
----
114
37
98

query I rowsort
SELECT col2 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT DISTINCT - col0 * 34 + col2 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1190
-3026
-816

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - col0 * 34 + col2 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT DISTINCT cor0.col2 * ( - col0 ) + + col1 * + col0 + - ( - col2 ) FROM tab0 AS cor0
----
1305
3361
883

query I rowsort
SELECT ALL col0 - 32 * - 59 AS col0 FROM tab1 AS cor0
----
1891
1952
1968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6456
SELECT ALL col1 + CAST( NULL AS SIGNED ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 73 * - tab2.col0 * col2 AS col1 FROM tab2
----
-13797
-148044
-219146

query I rowsort
SELECT DISTINCT col1 - + col0 FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT - col0 - col0 AS col1 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT ALL + tab1.col0 + tab1.col2 - - col1 AS col0 FROM tab1
----
131
189
83

query I rowsort
SELECT col1 * + ( - col2 ) + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL col1 + + col2 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + col2 + + 95 FROM tab2 cor0
----
121
122
133

query I rowsort
SELECT DISTINCT - col0 + + 7 AS col0 FROM tab2 AS cor0
----
-71
-72
0

query I rowsort
SELECT ALL tab1.col2 + tab1.col0 FROM tab1
----
121
176
57

query I rowsort
SELECT tab1.col1 + - col2 * col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT col1 + + col0 * col0 AS col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT DISTINCT col2 + tab0.col0 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + col0 * - tab1.col2 * col0 + - col2 + + col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + col2 - col2 * - col2 AS col0 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT col1 * - col2 + + col1 FROM tab0
----
-2752
-7371
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * + col0 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT col0 * col1 NOT IN ( col0 )
----

query I rowsort
SELECT ALL col0 + col2 * col2 * - col0 AS col2 FROM tab1
----
-207872
-737200
-8745

query I rowsort
SELECT - col0 - col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL col0 * col2 + + col0 * - cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - tab0.col2 * - col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT tab1.col2 + col2 * tab1.col1 + + tab1.col2 AS col0 FROM tab1
----
1440
1512
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-6479
SELECT DISTINCT col0 + col2 DIV - col1 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT col0 + col2 / - col1 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE - col0 / - col1 < ( NULL )
----

query I rowsort
SELECT - tab1.col0 * col1 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col2 * - tab2.col2 AS col2 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + - 65 + col0 col0 FROM tab2
----
-1329
-275
-4589

query I rowsort
SELECT DISTINCT - 13 + tab2.col0 AS col0 FROM tab2
----
-6
65
66

query I rowsort
SELECT + col0 - - cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + col2 * 18 AS col1 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT + col2 - - col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL col1 * col1 + col1 AS col0 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + ( col0 ) + ( - 12 ) * col0 AS col2 FROM tab1
----
-33
-704
-880

query I rowsort
SELECT 93 * col2 AS col2 FROM tab2
----
2418
2511
3534

query I rowsort
SELECT ALL + + col0 + 56 FROM tab2 AS cor0
----
134
135
63

query I rowsort
SELECT DISTINCT - col0 + + 68 FROM tab2 AS cor0
----
-10
-11
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6493
SELECT ALL col1 DIV col1 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL col1 / col1 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT DISTINCT - col0 DIV 68 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT - col0 / 68 AS col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL - cor0.col1 + - col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6496
SELECT ALL + - col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL + - col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + 79 AS col2 FROM tab2 cor0
----
110
138
96

query I rowsort
SELECT DISTINCT + + col0 + 43 FROM tab1 AS cor0
----
107
123
46

query I rowsort
SELECT DISTINCT - col2 + + 6 FROM tab2 AS cor0
----
-20
-21
-32

query I rowsort
SELECT - + cor0.col2 * - ( + col1 ) + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col2 FROM tab0
----
83
83
83

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0, tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL + - col1 + col2 * + col0 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6504
SELECT ALL + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 21 col0 FROM tab2 AS cor0
----
-1239
-357
-651

query I rowsort
SELECT - ( 11 ) FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - ( + ( + col1 ) ) * 27 AS col2 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT ALL col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col0 * ( - col0 + col1 ) AS col1 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT DISTINCT + + 8 * cor0.col1 + + col1 + - 56 AS col0 FROM tab1 AS cor0
----
178
34
61

query I rowsort
SELECT - 23 * + col2 AS col2 FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT - + 81 * + col2 AS col1 FROM tab1 AS cor0
----
-4374
-4617
-7776

query I rowsort
SELECT DISTINCT - + 38 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT 81 FROM tab1 cor0
----
81
81
81

query I rowsort
SELECT ALL - cor0.col1 + col1 + - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT DISTINCT + - col1 DIV - col1 + 69 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + - col1 / - col1 + 69 FROM tab1 AS cor0
----
70

query I rowsort
SELECT ALL - ( col0 ) * 14 AS col1 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT ALL - + 22 AS col1 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + 74 * - col0 AS col0 FROM tab2 AS cor0
----
-518
-5772
-5846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 53 col1 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT DISTINCT + - col1 * col0 + 37 * - 72 AS col1 FROM tab2 AS cor0
----
-2881
-4007
-7266

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + cor0.col2 * col0 + + col1 * + col2 FROM tab1 AS cor0
----
10176
2970
4788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col2 FROM tab0, tab2 AS cor0
----
64

query I rowsort
SELECT - 6 + + col1 * + cor0.col1 FROM tab0 AS cor0
----
7390
8275
9403

query I rowsort
SELECT DISTINCT - - col2 * - col0 * - col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - + 61 * + col2 FROM tab0 AS cor0
----
-2013
-5002
-61

query I rowsort
SELECT + + cor0.col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - - col2 - col2 * - col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6530
SELECT - + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6530
SELECT - + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ( cor0.col0 ) * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - col2 + 65 FROM tab1 cor0
----
-31
11
8

query I rowsort
SELECT ALL - cor0.col0 + col2 * + col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT col2 + + 56 FROM tab2 AS cor0
----
82
83
94

query I rowsort
SELECT ALL 67 * + 6 + + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e2cf6d5a7ec0484a01c4f25121bdab81

query I rowsort
SELECT DISTINCT + tab1.col2 * col1 + - 5 AS col1 FROM tab1
----
1243
1399
565

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6537
SELECT - CAST( NULL AS SIGNED ) * col0 + tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT - CAST ( NULL AS INTEGER ) * col0 + tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 2 * - col2 AS col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT col2 + col1 DIV tab1.col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6539
SELECT col2 + col1 / tab1.col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + col0 * - 54 * col2 FROM tab2
----
-10206
-109512
-162108

query I rowsort
SELECT ( + col1 ) * col2 + + col0 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT 79 + 26 FROM tab1
----
105
105
105

query I rowsort
SELECT ALL - col1 * 13 + - col1 FROM tab0 AS cor0
----
-1204
-1274
-1358

query I rowsort
SELECT DISTINCT + ( - col2 ) + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - 19 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT DISTINCT 61 * - 10 AS col1 FROM tab0
----
-610

onlyif mysql # use DIV operator for integer division
query I rowsort label-6547
SELECT ALL + 54 DIV - 25 AS col2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + 54 / - 25 AS col2 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT ALL + tab0.col1 * 18 * - col1 FROM tab0
----
-133128
-149058
-169362

query I rowsort
SELECT - + cor0.col1 + 20 + col0 * ( - cor0.col1 ) FROM tab2 AS cor0
----
-1340
-228
-4641

onlyif mysql # use DIV operator for integer division
query I rowsort label-6550
SELECT + 75 + col1 + - col2 DIV + ( - col1 ) AS col0 FROM tab1 AS cor0
----
103
90
95

skipif mysql # not compatible
query I rowsort label-6550
SELECT + 75 + col1 + - col2 / + ( - col1 ) AS col0 FROM tab1 AS cor0
----
103
90
95

query I rowsort
SELECT 68 * + col2 + - col1 + + col1 FROM tab2 AS cor0
----
1768
1836
2584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col1 + + col2 col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col0 * - col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 11 ) * - col1 + - col1 col1 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT - - ( - col1 ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6556
SELECT ALL CAST( NULL AS SIGNED ) * 34 + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL CAST ( NULL AS INTEGER ) * 34 + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6557
SELECT - col0 DIV - col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6557
SELECT - col0 / - col2 FROM tab0
----
0
1
35

query I rowsort
SELECT + 61 AS col1 FROM tab0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col2 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col1 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - + col0 * - col2 + 93 * - col1 AS col1 FROM tab1 AS cor0
----
-2256
2718
6471

query I rowsort
SELECT ALL + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL 20 + + 44 + - col0 FROM tab0
----
-25
29
40

query I rowsort
SELECT DISTINCT 20 FROM tab2, tab2 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + + 56 * - col0 col1 FROM tab2
----
-175
-3081
234

query I rowsort
SELECT + col0 * - cor0.col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + ( col2 ) AS col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 * col0 col2 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 * + ( col2 ) + - col1 ) col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT col1 * 99 FROM tab2 AS cor0
----
1683
3069
5841

query I rowsort
SELECT + + col0 * - 16 AS col1 FROM tab2 AS cor0
----
-112
-1248
-1264

query I rowsort
SELECT - col1 + 95 AS col2 FROM tab0 AS cor0
----
-2
4
9

query I rowsort
SELECT - - col0 + + ( col2 ) * + col2 * 57 FROM tab0 AS cor0
----
383357
62097
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6576
SELECT + col2 * CAST( NULL AS SIGNED ) - + 30 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT + col2 * CAST ( NULL AS INTEGER ) - + 30 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col2 + - ( tab2.col2 ) * col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT col0 * + 63 FROM tab0
----
1512
2205
5607

query I rowsort
SELECT DISTINCT + col2 * 24 FROM tab0
----
1968
24
792

query I rowsort
SELECT ALL 55 + 78 FROM tab0, tab0 AS cor0
----
9 values hashing to 8f0ca4cf97de794a4b9271d695e9d991

query I rowsort
SELECT ALL + 59 + col1 FROM tab1 AS cor0
----
69
72
85

query I rowsort
SELECT DISTINCT + 61 + - col2 AS col1 FROM tab2 AS cor0
----
23
34
35

query I rowsort
SELECT 67 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-29
10
13

query I rowsort
SELECT ALL - col1 + - 84 * - col1 AS col2 FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT DISTINCT + + 80 AS col0 FROM tab2 AS cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6586
SELECT col0 - + col1 DIV - col1 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6586
SELECT col0 - + col1 / - col1 FROM tab1 cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6587
SELECT ALL + 39 * col0 - col0 DIV 78 FROM tab0 AS cor0
----
1365
3470
936

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + 39 * col0 - col0 / 78 FROM tab0 AS cor0
----
1365
3470
936

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 + - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT - ( 63 ) * - col0 + + 86 FROM tab1 AS cor0
----
275
4118
5126

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6590
SELECT ALL + CAST( NULL AS SIGNED ) * 96 + col1 - - col2 * 99 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL + CAST ( NULL AS INTEGER ) * 96 + col1 - - col2 * 99 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * - 52 + - col2 AS col0 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT - col0 + col2 * col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - ( cor0.col0 ) - + cor0.col0 AS col1 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT tab0.col1 * col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + 62 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

query I rowsort
SELECT - + 55 * col2 * + 50 FROM tab0 AS cor0
----
-225500
-2750
-90750

onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT - col1 + + cor0.col0 DIV - CAST( 61 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-11
-14
-26

skipif mysql # not compatible
query I rowsort label-6597
SELECT - col1 + + cor0.col0 / - CAST ( 61 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-11
-14
-26

query I rowsort
SELECT ALL - - 7 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6599
SELECT ALL + - 93 + + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + - 93 + + col2 / - col2 AS col1 FROM tab1 AS cor0
----
-94
-94
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT + col0 * col2 * - 67 + - col0 + - col2 DIV cor0.col1 FROM tab0 AS cor0
----
-2380
-489055
-53088

skipif mysql # not compatible
query I rowsort label-6600
SELECT + col0 * col2 * - 67 + - col0 + - col2 / cor0.col1 FROM tab0 AS cor0
----
-2380
-489055
-53088

onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT - col0 + col2 DIV 13 FROM tab2 cor0
----
-5
-76
-77

skipif mysql # not compatible
query I rowsort label-6601
SELECT - col0 + col2 / 13 FROM tab2 cor0
----
-5
-76
-77

query I rowsort
SELECT 36 FROM tab2, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL + - col1 + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT DISTINCT - col0 DIV - col0 col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - col0 / - col0 col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL 41 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1066
410
533

onlyif mysql # use DIV operator for integer division
query I rowsort label-6606
SELECT + col2 + - col0 DIV + 64 AS col1 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-6606
SELECT + col2 + - col0 / + 64 AS col1 FROM tab0 AS cor0
----
1
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT ALL + + col0 DIV col0 + ( col2 ) FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL + + col0 / col0 + ( col2 ) FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + - col2 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL 45 + + col2 FROM tab2 cor0
----
71
72
83

query I rowsort
SELECT ALL + - col1 - cor0.col0 AS col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - + col1 * + col1 + - col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7334
-8279
-9347

query I rowsort
SELECT DISTINCT ( - col1 ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ( - col2 ) + + col1 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT 59 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT - + 29 * col2 FROM tab0 AS cor0
----
-2378
-29
-957

query I rowsort
SELECT cor0.col0 + 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2eca927bf979c610b7791a6b08c56594

query I rowsort
SELECT DISTINCT col0 - col1 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT 5 + tab1.col2 FROM tab1
----
101
59
62

query I rowsort
SELECT + col2 * + col1 + - col0 + - col2 AS col1 FROM tab0
----
2781
61
7291

query I rowsort
SELECT - + 54 * col0 FROM tab2 cor0
----
-378
-4212
-4266

query I rowsort
SELECT DISTINCT - col1 + - col0 * ( - 75 ) * col1 AS col1 FROM tab0 AS cor0
----
154714
254528
607334

query I rowsort
SELECT DISTINCT + - 60 + - col1 * col2 FROM tab2 AS cor0
----
-1594
-706
-897

query I rowsort
SELECT ALL - + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT ALL col1 DIV + col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL col1 / + col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - ( tab2.col1 ) + 35 AS col1 FROM tab2
----
-24
18
4

query I rowsort
SELECT - cor0.col0 + - 73 FROM tab1, tab0 AS cor0
----
9 values hashing to 19f7a872d612dee1ef26c3c9a9502f95

query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) + col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT tab2.col2 + 88 AS col1 FROM tab2
----
114
115
126

query I rowsort
SELECT + - col2 * 44 * - 38 FROM tab2 AS cor0
----
43472
45144
63536

query I rowsort
SELECT - col2 + - 14 * col2 FROM tab1 AS cor0
----
-1440
-810
-855

onlyif mysql # use DIV operator for integer division
query I rowsort label-6631
SELECT ALL col1 * - col1 + - 45 DIV col2 FROM tab1
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL col1 * - col1 + - 45 / col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + 87 * 79 + + col0 FROM tab0 AS cor0
----
6897
6908
6962

query I rowsort
SELECT ALL + + col0 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ( col0 ) + col2 * - ( - ( col2 ) ) AS col1 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL - ( + 97 + col1 ) FROM tab2
----
-114
-128
-156

query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + - 49 - - 35 FROM tab1 AS cor0
----
-14

query I rowsort
SELECT ALL - - ( + col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + ( + 80 ) * col1 + + col2 FROM tab0 AS cor0
----
6913
7362
7761

query I rowsort
SELECT - ( - 94 ) FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ( + 57 ) FROM tab2 cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT DISTINCT - cor0.col0 DIV 80 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT - cor0.col0 / 80 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab2 cor0
----
88

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + + col1 + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - 37 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT + col2 * col2 * - col2 AS col0 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT 60 * + cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c9734eba2f2a847cabc27b2e30c79d72

query I rowsort
SELECT ALL 58 + col1 AS col1 FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT - + col1 * + col2 + col0 + 17 AS col1 FROM tab0 AS cor0
----
-2797
-45
-7356

query I rowsort
SELECT DISTINCT - 19 * + col2 * - col2 FROM tab1 AS cor0
----
175104
55404
61731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - 52 * + col0 AS col2 FROM tab0
----
-1248
-1820
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6657
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( - 66 ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - - 48 FROM tab2 cor0
----
48

query I rowsort
SELECT ( - col1 ) + col0 * - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + 82 AS col0 FROM tab1
----
82
82
82

query I rowsort
SELECT - + 63 AS col0 FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ( col1 ) * 4 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT + - col2 + col0 * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + - col2 * + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6666
SELECT - col0 + + col1 DIV 73 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6666
SELECT - col0 + + col1 / 73 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col1 + + ( 24 ) * col2 AS col2 FROM tab2 AS cor0
----
679
683
929

query I rowsort
SELECT + 53 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT - - col1 + col0 + cor0.col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT col2 + 90 * + col1 FROM tab0 AS cor0
----
7773
8272
8731

onlyif mysql # use DIV operator for integer division
query I rowsort label-6671
SELECT + ( + col2 ) + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6671
SELECT + ( + col2 ) + col2 / + col0 AS col1 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT + col1 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-6673
SELECT + col1 + - col2 DIV col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-6673
SELECT + col1 + - col2 / col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT - + ( + 71 ) AS col1 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT + tab0.col2 * + ( - tab0.col0 + col1 ) * col2 AS col1 FROM tab0
----
13448
62
67518

query I rowsort
SELECT DISTINCT + tab2.col2 + ( col0 ) AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT - + col0 + - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + col2 * col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT 71 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6680
SELECT DISTINCT + - cor0.col1 DIV - ( - col2 ) + - col0 col0 FROM tab0 AS cor0
----
-132
-26
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT + - cor0.col1 / - ( - col2 ) + - col0 col0 FROM tab0 AS cor0
----
-132
-26
-90

query I rowsort
SELECT ALL 11 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT - cor0.col0 - + col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL + + col0 + cor0.col0 * - 9 * + col0 FROM tab1 AS cor0
----
-36800
-57520
-78

query I rowsort
SELECT - + col0 + + 77 FROM tab2 AS cor0
----
-1
-2
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT + ( tab0.col2 + - ( col0 ) ) * col2 DIV 8 FROM tab0
----
-4
-71
37

skipif mysql # not compatible
query I rowsort label-6685
SELECT + ( tab0.col2 + - ( col0 ) ) * col2 / 8 FROM tab0
----
-4
-71
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6686
SELECT ( - tab0.col2 ) DIV ( col2 ) AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6686
SELECT ( - tab0.col2 ) / ( col2 ) AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 36 FROM tab0
----
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6688
SELECT - cor0.col1 - - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6688
SELECT - cor0.col1 - - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 * 66 - 81 FROM tab2 AS cor0
----
1041
1965
3813

query I rowsort
SELECT DISTINCT + - cor0.col0 + ( + col1 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT col1 + col0 * 77 * - col2 AS col0 FROM tab2 AS cor0
----
-14522
-156097
-231137

query I rowsort
SELECT + - 21 AS col0 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT - col0 + 17 FROM tab1
----
-47
-63
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 47 col2 FROM tab1
----
141
3008
3760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 97 col2 FROM tab0 AS cor0
----
-62
-73
-8

query I rowsort
SELECT + + 33 * - col2 * - col2 FROM tab2 AS cor0
----
22308
24057
47652

query I rowsort
SELECT ALL + col2 + - col0 * + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT ( ( - col1 ) ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ( - cor0.col0 ) AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6701
SELECT + + cor0.col2 DIV + col1 col0 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6701
SELECT + + cor0.col2 / + col1 col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL 10 * cor0.col2 FROM tab1 cor0
----
540
570
960

query I rowsort
SELECT DISTINCT 50 * col2 AS col0 FROM tab0 AS cor0
----
1650
4100
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * tab2.col0 * - col2 col0 FROM tab2
----
-1323
-14196
-21014

query I rowsort
SELECT DISTINCT col2 * + col1 + ( + cor0.col2 ) * + col1 FROM tab1 AS cor0
----
1140
2496
2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + col0 * 91 + col2 col2 FROM tab2 AS cor0
----
11726
8570
881

query I rowsort
SELECT ALL - col2 * col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 69 AS col2 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT 10 + - col2 FROM tab2
----
-16
-17
-28

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 90 + - col0 FROM tab1
----
10
26
87

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT DISTINCT tab0.col2 * tab0.col2 DIV - col2 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT tab0.col2 * tab0.col2 / - col2 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - tab1.col1 * col1 + col1 * 39 FROM tab1
----
290
338
338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - tab1.col2 * + col0 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT ALL - ( 13 ) + + col0 DIV col1 + col2 FROM tab0 AS cor0
----
-12
20
69

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - ( 13 ) + + col0 / col1 + col2 FROM tab0 AS cor0
----
-12
20
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6720
SELECT CAST( 98 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-6720
SELECT CAST ( 98 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6721
SELECT DISTINCT - + 70 DIV col2 - col0 AS col1 FROM tab0 AS cor0
----
-105
-26
-89

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT - + 70 / col2 - col0 AS col1 FROM tab0 AS cor0
----
-105
-26
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT ALL CAST( 74 AS SIGNED ) FROM tab1 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL CAST ( 74 AS INTEGER ) FROM tab1 AS cor0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) + col0 col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 - col1 FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT col0 * - 65 AS col1 FROM tab0
----
-1560
-2275
-5785

query I rowsort
SELECT DISTINCT col0 * + 80 FROM tab2
----
560
6240
6320

query I rowsort
SELECT - 60 FROM tab0, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6728
SELECT ALL col0 DIV + ( col1 ) + + col2 * col2 AS col2 FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL col0 / + ( col1 ) + + col2 * col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - col2 - + col1 AS col0 FROM tab0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6730
SELECT CAST( NULL AS SIGNED ) * cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT CAST ( NULL AS INTEGER ) * cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + + col1 * + col0 AS col0 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6732
SELECT DISTINCT - tab2.col1 + - col1 DIV col1 AS col2 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT - tab2.col1 + - col1 / col1 AS col2 FROM tab2
----
-18
-32
-60

query I rowsort
SELECT ALL + 63 + + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1406
280
4665

query I rowsort
SELECT DISTINCT - 39 + col2 + col1 FROM tab1 cor0
----
28
41
70

query I rowsort
SELECT ALL cor0.col2 + + 89 * - col1 FROM tab0 AS cor0
----
-7621
-8017
-8632

query I rowsort
SELECT ALL + col0 + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ( - 60 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
26
31
37

query I rowsort
SELECT DISTINCT + ( + col0 ) + + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - + col2 * col0 + - col2 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL - + 67 * 75 + - cor0.col2 FROM tab0 AS cor0
----
-5026
-5058
-5107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - + 84 col1 FROM tab2 AS cor0
----
-25
-53
-67

query I rowsort
SELECT + col1 + + 73 FROM tab1 AS cor0
----
83
86
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6743
SELECT - col0 + 34 DIV col0 AS col1 FROM tab2
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-6743
SELECT - col0 + 34 / col0 AS col1 FROM tab2
----
-3
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6744
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 * 26 AS col2 FROM tab1
----
-1664
-2080
-78

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - col1 * + ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - col1 * + 62 AS col2 FROM tab2 AS cor0
----
-1054
-1922
-3658

query I rowsort
SELECT + col2 * col0 + 38 FROM tab1 AS cor0
----
200
3686
7718

query I rowsort
SELECT ALL + col1 * + cor0.col2 - col0 * col2 FROM tab0 AS cor0
----
164
2046
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6751
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * ( + col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - - 8 * - cor0.col0 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT - - 25 AS col2 FROM tab1 cor0
----
25
25
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT ALL + col2 DIV 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL + col2 / 87 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col1 * + col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 * 77 col2 FROM tab2
----
-1309
-2387
-4543

query I rowsort
SELECT DISTINCT 20 FROM tab0 AS cor0
----
20

query I rowsort
SELECT - col1 - + col1 * + cor0.col0 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL + - col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT DISTINCT - + col0 DIV col2 AS col1 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT - + col0 / col2 AS col1 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT ALL - 82 AS col0 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT col2 + + col0 + 23 FROM tab2 AS cor0
----
127
140
57

query I rowsort
SELECT + - 47 * col1 + ( - col2 ) FROM tab0 cor0
----
-4075
-4359
-4560

query I rowsort
SELECT DISTINCT + col0 * + col2 * 90 FROM tab2 AS cor0
----
17010
182520
270180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + col0 + - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
-1200
-150
512

query I rowsort
SELECT - col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col1 col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col1 col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 + + col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + + 58 * - col2 FROM tab0 AS cor0
----
-1914
-4756
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT ALL + col1 * col2 DIV col0 FROM tab2 cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + col1 * col2 / col0 FROM tab2 cor0
----
119
19
8

query I rowsort
SELECT DISTINCT - ( - col1 ) + 60 * col0 * tab1.col1 FROM tab1
----
38410
4706
62413

query I rowsort
SELECT DISTINCT + col1 + - col2 * 34 AS col1 FROM tab2
----
-1275
-825
-887

query I rowsort
SELECT ALL 17 * - col0 FROM tab0
----
-1513
-408
-595

query I rowsort
SELECT + cor0.col1 * - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d

query I rowsort
SELECT ALL + ( col0 ) * - col1 * col0 + col1 FROM tab0
----
-118728
-49450
-720720

query I rowsort
SELECT DISTINCT 70 + col2 * - col1 + 87 AS col1 FROM tab1
----
-1091
-1247
-413

query I rowsort
SELECT + 12 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT - col0 * - ( + col2 * + cor0.col0 ) + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
237120
622080
648

query I rowsort
SELECT + col0 + 99 * + col0 FROM tab0 AS cor0
----
2400
3500
8900

query I rowsort
SELECT - col1 + 14 FROM tab0 cor0
----
-72
-77
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 61 * col0 + + cor0.col1 col1 FROM tab1 AS cor0
----
222538
468493
9908

query I rowsort
SELECT ALL + 50 AS col0 FROM tab0
----
50
50
50

query I rowsort
SELECT ALL - tab1.col0 + - cor0.col1 FROM tab1, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 66cddce1a14536ed62d25245ecdb7db6

query I rowsort
SELECT + 60 * - col0 FROM tab0
----
-1440
-2100
-5340

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6787
SELECT - CAST( NULL AS SIGNED ) + + 23 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6787
SELECT - CAST ( NULL AS INTEGER ) + + 23 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col0 + - 85 * + 71 AS col0 FROM tab1 AS cor0
----
-5955
-5971
-6032

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6789
SELECT - col1 * CAST( NULL AS SIGNED ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT - col1 * CAST ( NULL AS INTEGER ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to 87d4c8f6b827823252b140738d532e5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 97 col0 FROM tab1 AS cor0
----
291
6208
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6792
SELECT + col2 DIV - 23 col0 FROM tab0 cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6792
SELECT + col2 / - 23 col0 FROM tab0 cor0
----
-1
-3
0

query I rowsort
SELECT + tab0.col2 + + tab0.col0 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + - col1 col0 FROM tab0
----
-16
-21
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 * col1 - + cor0.col0 col0 FROM tab0 AS cor0
----
7802
8192
8792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6796
SELECT ALL - - CAST( NULL AS SIGNED ) + col0 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL - - CAST ( NULL AS INTEGER ) + col0 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 57 FROM tab1 cor0
----
57

query I rowsort
SELECT ALL + - col1 * - 34 + - col1 AS col1 FROM tab2 AS cor0
----
1023
1947
561

query I rowsort
SELECT ALL - col1 + - 32 AS col1 FROM tab0 AS cor0
----
-118
-123
-129

query I rowsort
SELECT DISTINCT 30 * - col1 - + col0 AS col1 FROM tab0 AS cor0
----
-2604
-2819
-2945

query I rowsort
SELECT 32 * + col1 + + col1 AS col2 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT DISTINCT cor0.col2 + col1 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - + 54 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT + 1 * - col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 79 + + col1 AS col0 FROM tab0 AS cor0
----
165
170
176

query I rowsort
SELECT - 67 * cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
28

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6811
SELECT + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6811
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6812
SELECT ( - 90 ) DIV col0 + 83 DIV col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6812
SELECT ( - 90 ) / col0 + 83 / col0 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL tab1.col1 * col0 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - cor0.col1 * col1 + - col0 + col0 * col1 AS col1 FROM tab2 cor0
----
-751
1043
975

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6815
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 + col1 FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 * col1 + col2 * 0 * + ( col2 + - col2 ) col0 FROM tab2 cor0
----
-1534
-442
-806

query I rowsort
SELECT + + 8 + col2 FROM tab2 AS cor0
----
34
35
46

query I rowsort
SELECT DISTINCT + cor0.col2 * 57 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
1881
4674
57

query I rowsort
SELECT ALL + col1 * col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT col2 * + col0 + col0 + - 24 FROM tab2 AS cor0
----
172
2082
3057

query I rowsort
SELECT 71 + col1 + + ( col0 ) FROM tab1 AS cor0
----
100
145
164

query I rowsort
SELECT + 7 + - col1 + + 8 AS col0 FROM tab2 AS cor0
----
-16
-2
-44

query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - col0 * - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - col1 - ( + 86 ) FROM tab2 AS cor0
----
-103
-117
-145

query I rowsort
SELECT DISTINCT + col2 * + 66 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab0
----
-90

query I rowsort
SELECT - 90 * col0 * col2 AS col0 FROM tab2
----
-17010
-182520
-270180

query I rowsort
SELECT ALL - - col1 + col2 * - col1 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT col1 * - cor0.col1 + + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * + col1 col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - col0 * - 52 + + 84 FROM tab2 cor0
----
4140
4192
448

query I rowsort
SELECT ALL - cor0.col1 * 59 AS col2 FROM tab0 AS cor0
----
-5074
-5369
-5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT DISTINCT col1 DIV - tab2.col0 AS col2 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT col1 / - tab2.col0 AS col2 FROM tab2
----
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6836
SELECT col2 * CAST( + col2 * col0 AS SIGNED ) + col1 + col1 AS col2 FROM tab2
----
114110
5165
52846

skipif mysql # not compatible
query I rowsort label-6836
SELECT col2 * CAST ( + col2 * col0 AS INTEGER ) + col1 + col1 AS col2 FROM tab2
----
114110
5165
52846

query I rowsort
SELECT + - cor0.col0 + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col2 + 75 * col1 + - col1 * + ( col0 ) * - col0 FROM tab2 AS cor0
----
107410
363407
3871

query I rowsort
SELECT col1 * - col0 + - ( col0 ) + col1 FROM tab2 AS cor0
----
-1405
-193
-4621

query I rowsort
SELECT DISTINCT + col0 + - col0 * 69 FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT ALL + + cor0.col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col1 + col0 + col2 * col2 FROM tab2 AS cor0
----
1506
695
705

onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT 0 * - col2 DIV + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6843
SELECT 0 * - col2 / + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 52 * col0 AS col0 FROM tab1 cor0
----
156
3328
4160

query I rowsort
SELECT ALL - - ( - 80 ) + col0 * - ( + col1 + col1 ) AS col2 FROM tab2 cor0
----
-2766
-514
-9284

query I rowsort
SELECT DISTINCT 50 * 17 FROM tab1 cor0
----
850

query I rowsort
SELECT - - 51 * + ( - col2 ) + + col0 FROM tab1 AS cor0
----
-2751
-2843
-4816

query I rowsort
SELECT + col2 * - 87 FROM tab1
----
-4698
-4959
-8352

onlyif mysql # use DIV operator for integer division
query I rowsort label-6849
SELECT col2 DIV + col2 - tab1.col2 AS col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-6849
SELECT col2 / + col2 - tab1.col2 AS col2 FROM tab1
----
-53
-56
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6850
SELECT DISTINCT + col1 + CAST( - col0 AS SIGNED ) FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT + col1 + CAST ( - col0 AS INTEGER ) FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT col1 * 29 AS col0 FROM tab1
----
290
377
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 * col2 + - col0 + 1 col2 FROM tab1
----
207873
737201
8746

onlyif mysql # use DIV operator for integer division
query I rowsort label-6853
SELECT DISTINCT + col1 + - col1 DIV - col0 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + col1 + - col1 / - col0 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * col0 + col0 * + col0 + - col1 col1 FROM tab1 AS cor0
----
10422
14307
280

query I rowsort
SELECT ALL + 62 * - cor0.col1 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT + + 14 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT DISTINCT + - 17 + col2 * - col2 FROM tab1 cor0
----
-2933
-3266
-9233

onlyif mysql # use DIV operator for integer division
query I rowsort label-6859
SELECT ALL + col2 DIV + col1 - - ( - col1 * - col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + col2 / + col1 - - ( - col1 * - col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + 91 + - col2 FROM tab2 AS cor0
----
53
64
65

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + col0 + col2 + - col0 * + col1 FROM tab1 cor0
----
-21
-519
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col0 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT col0 DIV + 85 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6864
SELECT col0 / + 85 AS col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6865
SELECT col0 DIV + col2 + col1 - - col2 * col0 FROM tab0
----
167
7390
878

skipif mysql # not compatible
query I rowsort label-6865
SELECT col0 / + col2 + col1 - - col2 * col0 FROM tab0
----
167
7390
878

query I rowsort
SELECT DISTINCT col1 + + tab1.col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT - - 39 + + col0 FROM tab1 AS cor0
----
103
119
42

query I rowsort
SELECT + - cor0.col0 * + col2 - - col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + col2 + col0 * 30 AS col2 FROM tab0
----
1051
2752
753

query I rowsort
SELECT + ( - tab0.col0 ) + ( - col0 ) FROM tab0
----
-178
-48
-70

query I rowsort
SELECT 28 + + tab0.col0 FROM tab0
----
117
52
63

query I rowsort
SELECT + ( + tab2.col0 ) + col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL + 19 + + col1 AS col1 FROM tab2
----
36
50
78

query I rowsort
SELECT DISTINCT + ( col2 ) * - col0 + + ( col2 ) AS col1 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT + - cor0.col2 + + col1 * col1 FROM tab2 AS cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + ( col1 + + col1 ) * + 31 col0 FROM tab2 AS cor0
----
1097
1965
3701

query I rowsort
SELECT DISTINCT + - col1 * + 65 + col1 * col1 + - 43 * col0 * - 88 AS col0 FROM tab1 AS cor0
----
10338
241626
302044

query I rowsort
SELECT DISTINCT + - ( + col2 ) * col0 - col1 * - 14 AS col0 FROM tab0 AS cor0
----
-6024
1323
412

query I rowsort
SELECT col2 + + col2 + - col2 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL + cor0.col2 * - ( col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - 73 * col1 AS col2 FROM tab2
----
-1241
-2263
-4307

query I rowsort
SELECT DISTINCT 83 * col2 - cor0.col2 AS col1 FROM tab2 cor0
----
2132
2214
3116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6883
SELECT CAST( NULL AS SIGNED ) / + col2 + + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6883
SELECT CAST ( NULL AS INTEGER ) / + col2 + + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 74 + 46 * col2 FROM tab1 cor0
----
2558
2696
4490

query I rowsort
SELECT - - 30 + cor0.col1 FROM tab0 AS cor0
----
116
121
127

query I rowsort
SELECT DISTINCT + + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col0 FROM tab2 AS cor0
----
65

query I rowsort
SELECT ALL - - col2 + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL col1 + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT DISTINCT - ( + 21 ) DIV cor0.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT - ( + 21 ) / cor0.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-1
0

query I rowsort
SELECT - col1 * + col0 + + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - 22 + - col2 * col1 - - 84 AS col0 FROM tab2 AS cor0
----
-1472
-584
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - + col1 + + col1 - - 46 AS col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT - + col1 * cor0.col0 + + ( + col1 * - col2 ) FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT ALL 84 + col0 AS col0 FROM tab0
----
108
119
173

query I rowsort
SELECT col2 + + col2 AS col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT + col0 + cor0.col1 * 31 FROM tab2 AS cor0
----
1907
606
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6900
SELECT cor0.col0 + col1 * CAST( 35 AS SIGNED ) FROM tab0 AS cor0
----
3034
3274
3430

skipif mysql # not compatible
query I rowsort label-6900
SELECT cor0.col0 + col1 * CAST ( 35 AS INTEGER ) FROM tab0 AS cor0
----
3034
3274
3430

onlyif mysql # use DIV operator for integer division
query I rowsort label-6901
SELECT ALL - + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - + col1 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 - + col0 AS col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + - col1 * + cor0.col2 + + col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col0 + + ( - cor0.col1 ) * + col1 * cor0.col0 FROM tab2 AS cor0
----
-22910
-271596
-6734

query I rowsort
SELECT ALL + col1 * - 25 AS col1 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT ALL + + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col1 * 72 AS col0 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT ALL + - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 + - ( + 29 ) FROM tab1
----
-16
-19
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6910
SELECT DISTINCT col2 DIV col0 + col2 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT col2 / col0 + col2 FROM tab0
----
1
34
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6911
SELECT col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - ( ( col1 ) ) * ( col1 ) AS col2 FROM tab0 cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL + col1 + + col1 * + 86 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT - col1 * col1 - + col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6915
SELECT DISTINCT - col1 * - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT - col1 * - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL col1 * - 90 * + col1 AS col0 FROM tab1 AS cor0
----
-15210
-60840
-9000

query I rowsort
SELECT ALL - col0 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + cor0.col2 col2 FROM tab2 AS cor0
----
64
65
76

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col1 AS REAL ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 16 + - col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-35
0
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT ALL col2 DIV 14 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL col2 / 14 FROM tab0 AS cor0
----
0
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6922
SELECT ALL - - col1 DIV + 31 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - - col1 / + 31 AS col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - ( - cor0.col2 ) - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col2 + 58 FROM tab2 AS cor0
----
84
85
96

query I rowsort
SELECT - col1 * tab1.col1 + 13 * + col1 AS col1 FROM tab1
----
-338
0
30

query I rowsort
SELECT DISTINCT col0 + + col1 * - col2 * + col1 AS col1 FROM tab2
----
-10903
-25940
-90428

query I rowsort
SELECT col0 * - ( + col1 ) * 56 FROM tab1 cor0
----
-35840
-4368
-58240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 8 * col1 + - 17 col2 FROM tab1 AS cor0
----
-9
137
6

query I rowsort
SELECT ALL col2 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - 42 + + col0 * + col1 * - 48 FROM tab0 cor0
----
-163002
-388794
-99114

query I rowsort
SELECT 72 * - ( + col2 ) - col1 AS col0 FROM tab0 AS cor0
----
-169
-2462
-5995

query I rowsort
SELECT - col2 * - col2 + 33 AS col1 FROM tab1
----
2949
3282
9249

query I rowsort
SELECT + col0 * 43 + + 16 FROM tab0
----
1048
1521
3843

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6936
SELECT - + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT - + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ( 71 ) FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT tab2.col0 * 22 AS col1 FROM tab2
----
154
1716
1738

query I rowsort
SELECT DISTINCT + ( + 6 ) * col0 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT ( - col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - 65 + - cor0.col2 + - col2 FROM tab1 AS cor0
----
-173
-179
-257

query I rowsort
SELECT ( tab2.col1 + col0 ) AS col0 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col0 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col2 FROM tab0
----
-26
-26
-26

query I rowsort
SELECT ALL col2 * - ( 68 ) FROM tab2 AS cor0
----
-1768
-1836
-2584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT + col2 DIV - 14 AS col0 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-6948
SELECT + col2 / - 14 AS col0 FROM tab0 AS cor0
----
-2
-5
0

query I rowsort
SELECT DISTINCT + col1 + + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col1 * + 52 + + col2 FROM tab0 AS cor0
----
4505
4814
5045

query I rowsort
SELECT ALL col2 * 7 AS col0 FROM tab1 AS cor0
----
378
399
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + - col1 col1 FROM tab0 AS cor0
----
1128
490
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-6953
SELECT DISTINCT col1 + col2 DIV col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT col1 + col2 / col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT ALL col0 + - 73 AS col1 FROM tab0 AS cor0
----
-38
-49
16

query I rowsort
SELECT ALL - col0 * cor0.col1 + 7 FROM tab2 AS cor0
----
-1336
-210
-4595

query I rowsort
SELECT + cor0.col0 * cor0.col1 + col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT + col0 * ( cor0.col1 ) DIV - col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6957
SELECT + col0 * ( cor0.col1 ) / - col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * col2 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - col2 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - cor0.col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6961
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + tab2.col2 - + col0 * - col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT col1 * + col2 * 68 + + col2 AS col2 FROM tab2 cor0
----
104338
43966
56943

query I rowsort
SELECT + col0 - ( - col0 ) FROM tab2
----
14
156
158

query I rowsort
SELECT + ( 27 ) FROM tab2
----
27
27
27

query I rowsort
SELECT - col2 * col0 * 3 - + 12 FROM tab2 cor0
----
-579
-6096
-9018

query I rowsort
SELECT DISTINCT 65 + col0 * + col1 FROM tab1 cor0
----
1105
143
705

query I rowsort
SELECT ALL - 67 - col2 AS col1 FROM tab0 cor0
----
-100
-149
-68

query I rowsort
SELECT ALL cor0.col2 * + 71 * + 16 FROM tab2, tab1 AS cor0
----
9 values hashing to aff86195da9022f3fcbd190ba884050e

query I rowsort
SELECT ALL col0 - + col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 + col0 col1 FROM tab0
----
-14
-3
51

query I rowsort
SELECT DISTINCT - 81 FROM tab1, tab2, tab1 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + 68 FROM tab0, tab2, tab2 AS cor0
----
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6974
SELECT ALL + col2 * col1 + - CAST( - 42 + + col1 AS SIGNED ) * - col2 FROM tab1
----
-1254
-1536
540

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL + col2 * col1 + - CAST ( - 42 + + col1 AS INTEGER ) * - col2 FROM tab1
----
-1254
-1536
540

query I rowsort
SELECT DISTINCT + col1 * col1 + col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - col0 + - col0 * + 58 * ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-211648
-445520
-9399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col1 + 6 col1 FROM tab0 cor0
----
-2832
-7456
-91

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
42

query I rowsort
SELECT + + col2 + + col2 * - col2 AS col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + tab0.col1 + + 60 AS col1 FROM tab0, tab0 AS cor0
----
146
151
157

query I rowsort
SELECT DISTINCT + col1 + + tab2.col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + col0 + col2 * + 69 AS col0 FROM tab1
----
3729
3997
6704

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-81

query I rowsort
SELECT ALL col0 * + col0 + col1 - + col2 AS col0 FROM tab1 AS cor0
----
-19
4049
6317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + + 68 col0 FROM tab0 AS cor0
----
-1996
-3327
-8031

query I rowsort
SELECT DISTINCT + col1 * + col2 + ( col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 - + cor0.col1 * 88 col2 FROM tab2 AS cor0
----
-1543
-2775
-5239

query I rowsort
SELECT + 86 * - col0 AS col0 FROM tab1 AS cor0
----
-258
-5504
-6880

query I rowsort
SELECT ALL + col2 * cor0.col0 - ( - ( col1 ) ) FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col1 col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT col1 * 93 + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
7974
8374
8986

query I rowsort
SELECT + - col1 + - col1 * col2 FROM tab1 cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6993
SELECT + col2 * + 16 + - col1 DIV - col1 col1 FROM tab1 AS cor0
----
1537
865
913

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6993
SELECT + col2 * + 16 + - col1 / - col1 col1 FROM tab1 AS cor0
----
1537
865
913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 - + 99 col2 FROM tab0 AS cor0
----
-64
693
7199

query I rowsort
SELECT DISTINCT + cor0.col2 + - ( - 66 ) AS col1 FROM tab1 AS cor0
----
120
123
162

query I rowsort
SELECT ALL - col1 * 55 - + col2 AS col1 FROM tab1 AS cor0
----
-1484
-607
-811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 + + col2 * + col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6999
SELECT ALL - - col0 + CAST( + 69 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
104
158
93

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL - - col0 + CAST ( + 69 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
104
158
93

query I rowsort
SELECT ALL + col1 + - col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT cor0.col1 + + 15 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT col0 * ( + 89 ) + - col1 * - 75 AS col1 FROM tab1 AS cor0
----
2217
6446
8095

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7004
SELECT DISTINCT - + col2 + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT - + col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 * - 19 + - col1 FROM tab1 cor0
----
180
234
468

query I rowsort
SELECT - col2 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - col2 * col0 + col1 * + col2 AS col0 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT + ( tab2.col2 ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + + tab1.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - col2 + + ( col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + 83 * cor0.col0 AS col0 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0, tab2 AS cor0
----
12

query I rowsort
SELECT DISTINCT - + col2 * - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-7015
SELECT ALL - - 17 + 92 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
18
19
22

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - - 17 + 92 / cor0.col1 AS col0 FROM tab2 AS cor0
----
18
19
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 71 * - col0 col2 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT ALL + col1 + 39 AS col2 FROM tab2 cor0
----
56
70
98

query I rowsort
SELECT ALL - cor0.col2 * 48 AS col1 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT ALL - - col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + - cor0.col2 + + col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + - col0 * + col2 * 94 FROM tab1 AS cor0
----
-15228
-342912
-721920

query I rowsort
SELECT DISTINCT + 52 * cor0.col2 + + 74 AS col2 FROM tab0 cor0
----
126
1790
4338

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT ALL + + col1 + + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - - col1 + col2 - + 68 * + 87 FROM tab0 AS cor0
----
-5743
-5797
-5818

query I rowsort
SELECT DISTINCT 98 FROM tab0 cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT - 57 - - col0 DIV 41 FROM tab0 AS cor0
----
-55
-57
-57

skipif mysql # not compatible
query I rowsort label-7028
SELECT - 57 - - col0 / 41 FROM tab0 AS cor0
----
-55
-57
-57

query I rowsort
SELECT 95 - ( + col2 ) FROM tab0
----
13
62
94

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 + - col0 AS REAL ) FROM tab0
----
2
62
62

query I rowsort
SELECT + col0 - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT cor0.col2 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + 94 - col1 * + col2 FROM tab2 AS cor0
----
-1440
-552
-743

onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT + col1 + 79 DIV col2 + - col2 * + col2 FROM tab1 AS cor0
----
-2889
-3238
-9203

skipif mysql # not compatible
query I rowsort label-7034
SELECT + col1 + 79 / col2 + - col2 * + col2 FROM tab1 AS cor0
----
-2889
-3238
-9203

query I rowsort
SELECT - 33 + col1 + - col1 AS col2 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT ( - col0 ) + col2 * - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT 21 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab0
----
89

query I rowsort
SELECT ALL + tab0.col1 + col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT 36 AS col1 FROM tab2
----
36
36
36

query I rowsort
SELECT ALL - 73 AS col1 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL 18 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT ALL ( 33 ) * col0 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT - - col0 + cor0.col2 * col2 + col2 * - 21 FROM tab2 AS cor0
----
169
208
725

query I rowsort
SELECT DISTINCT + 21 * tab0.col0 FROM tab0
----
1869
504
735

query I rowsort
SELECT - col2 * ( col0 ) * + col1 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT ( - col0 ) AS col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + 32 + col0 FROM tab1
----
112
35
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + 24 col1 FROM tab2 AS cor0
----
50
51
62

query I rowsort
SELECT DISTINCT + + col2 * 59 AS col0 FROM tab2 cor0
----
1534
1593
2242

query I rowsort
SELECT ALL - + col0 + ( + col1 ) * col0 + - col1 AS col2 FROM tab0 AS cor0
----
1954
3263
7919

query I rowsort
SELECT cor0.col1 + + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + cor0.col1 * - 76 - col0 AS col1 FROM tab1 AS cor0
----
-1068
-1979
-824

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT ALL + col2 DIV ( - col2 ) + col1 col1 FROM tab0 AS cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + col2 / ( - col2 ) + col1 col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL - col1 + 28 AS col0 FROM tab0 AS cor0
----
-58
-63
-69

query I rowsort
SELECT cor0.col0 * ( - cor0.col2 ) * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL col2 * + 29 AS col1 FROM tab0
----
2378
29
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7061
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT ALL - col2 DIV 89 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - col2 / 89 FROM tab0
----
0
0
0

query I rowsort
SELECT - - col2 + 85 AS col0 FROM tab1 cor0
----
139
142
181

query I rowsort
SELECT col0 + col1 * + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col1 * + col2 + + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT 56 FROM tab1 cor0
----
56
56
56

query I rowsort
SELECT cor0.col1 * 11 + cor0.col1 AS col2 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT + 7 * - 31 * + cor0.col0 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-19395
-5241
-7596

query I rowsort
SELECT ( col0 ) + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT cor0.col0 - + ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - 77 AS col2 FROM tab2
----
-539
-6006
-6083

query I rowsort
SELECT DISTINCT - col2 + 59 AS col1 FROM tab0 AS cor0
----
-23
26
58

query I rowsort
SELECT - 56 + - col2 FROM tab1 AS cor0
----
-110
-113
-152

query I rowsort
SELECT ALL - 93 AS col0 FROM tab2 AS cor0
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col0 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7077
SELECT + ( + col0 ) DIV - ( + 38 ) col0 FROM tab0 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7077
SELECT + ( + col0 ) / - ( + 38 ) col0 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT - cor0.col0 + col2 * ( - col2 ) + + col1 FROM tab1 AS cor0
----
-2893
-3303
-9283

onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT - col2 DIV col0 + ( col1 ) + + col2 FROM tab2 AS cor0
----
55
55
85

skipif mysql # not compatible
query I rowsort label-7079
SELECT - col2 / col0 + ( col1 ) + + col2 FROM tab2 AS cor0
----
55
55
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7080
SELECT ( col2 ) DIV - col1 + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7080
SELECT ( col2 ) / - col1 + col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1, tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + - 76 AS col2 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT cor0.col0 + col2 + + 76 AS col2 FROM tab2 AS cor0
----
110
180
193

query I rowsort
SELECT - - col0 * - 94 AS col0 FROM tab0 AS cor0
----
-2256
-3290
-8366

query I rowsort
SELECT + + cor0.col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT 4 - + 12 * tab1.col2 * 84 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 40992eb10c596bbb014635c63ae2aabc

query I rowsort
SELECT DISTINCT + - 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

query I rowsort
SELECT + 6 - - col2 * col2 AS col1 FROM tab2 AS cor0
----
1450
682
735

query I rowsort
SELECT DISTINCT col1 + col1 * + col0 * + col2 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT - + col2 + + col2 + col2 * col0 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT 81 * col0 * - cor0.col0 + - cor0.col1 FROM tab0 AS cor0
----
-46742
-641692
-99322

query I rowsort
SELECT 92 - + 69 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT 37 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT 49 + col2 + col0 AS col0 FROM tab1 AS cor0
----
106
170
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 * cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 * - col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) + col2 * - cor0.col2 col1 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - 2 - + ( col2 ) * - col1 * + col2 AS col1 FROM tab0 AS cor0
----
611882
93652
95

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT + col0 + + col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT - - 11 * col0 + + ( - col2 ) + + col0 * - 83 AS col1 FROM tab2 cor0
----
-531
-5642
-5726

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT + 3 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

onlyif mysql # use DIV operator for integer division
query I rowsort label-7105
SELECT + col1 DIV - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7105
SELECT + col1 / - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7106
SELECT col2 + + 91 DIV cor0.col1 FROM tab2 AS cor0
----
27
29
43

skipif mysql # not compatible
query I rowsort label-7106
SELECT col2 + + 91 / cor0.col1 FROM tab2 AS cor0
----
27
29
43

query I rowsort
SELECT + 12 * cor1.col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to f80e96a021b3122225d7aa4643e0ae0c

query I rowsort
SELECT DISTINCT col1 * tab0.col2 * col0 - col0 AS col0 FROM tab0
----
3360
664029
68088

query I rowsort
SELECT DISTINCT col2 - + col1 AS col0 FROM tab0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 89 col2 FROM tab1
----
-63
-76
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to eb8b36589592eb8217153525a5c8d606

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7112
SELECT - CAST( + col0 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT - CAST ( + col0 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 55 * - col2 + col2 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1806
-4517
-89

query I rowsort
SELECT ALL + col2 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col0 - + col2 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL ( 30 ) * - col0 * col2 + - 59 FROM tab0
----
-1109
-218999
-23819

query I rowsort
SELECT DISTINCT col2 + col0 * col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL - col0 * col1 * - col0 + - tab1.col1 FROM tab1
----
208
40950
83187

query I rowsort
SELECT - col2 * + ( col0 ) + ( col2 ) FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-7120
SELECT ALL + + ( 16 ) + col2 * 90 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
106
106
106

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL + + ( 16 ) + col2 * 90 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
106
106
106

query I rowsort
SELECT DISTINCT - + 85 * cor0.col1 FROM tab1 cor0
----
-1105
-2210
-850

onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT - + col0 DIV - cor0.col0 - col1 * col1 FROM tab1 AS cor0
----
-168
-675
-99

skipif mysql # not compatible
query I rowsort label-7122
SELECT - + col0 / - cor0.col0 - col1 * col1 FROM tab1 AS cor0
----
-168
-675
-99

query I rowsort
SELECT ALL - 90 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7124
SELECT DISTINCT col0 + - cor0.col2 DIV col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT col0 + - cor0.col2 / col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL - col1 * 62 * - col1 AS col2 FROM tab1 AS cor0
----
10478
41912
6200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + - col1 col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT ALL - + CAST( col2 AS SIGNED ) * col0 * - 31 AS col1 FROM tab0 AS cor0
----
1085
226238
24552

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL - + CAST ( col2 AS INTEGER ) * col0 * - 31 AS col1 FROM tab0 AS cor0
----
1085
226238
24552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7128
SELECT - CAST( 95 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-665
-7410
-7505

skipif mysql # not compatible
query I rowsort label-7128
SELECT - CAST ( 95 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-665
-7410
-7505

onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT DISTINCT 79 * col2 DIV - 38 + tab1.col1 FROM tab1
----
-108
-186
-86

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT 79 * col2 / - 38 + tab1.col1 FROM tab1
----
-108
-186
-86

query I rowsort
SELECT + col2 + - col0 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col1 FROM tab0
----
82
82
82

query I rowsort
SELECT - + cor0.col0 + - col2 * col1 * + col2 FROM tab0 AS cor0
----
-132
-611973
-93678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7135
SELECT - + 28 * col1 + + 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-7135
SELECT - + 28 * col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) + ( col2 ) AS col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT + 73 + col2 * + ( + col0 ) AS col2 FROM tab2 AS cor0
----
2101
262
3075

query I rowsort
SELECT - - col2 * + col0 * 44 FROM tab2 AS cor0
----
132088
8316
89232

query I rowsort
SELECT ALL - + col1 * - 21 + ( col1 ) AS col1 FROM tab0 AS cor0
----
1892
2002
2134

query I rowsort
SELECT - col2 * + col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + col1 * - 86 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT DISTINCT + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 + - 87 col2 FROM tab0 cor0
----
-1176
-6811
-88

query I rowsort
SELECT - col0 * 88 FROM tab0 AS cor0
----
-2112
-3080
-7832

query I rowsort
SELECT ALL - cor0.col0 + + col2 - + col1 AS col2 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT ALL - + col0 + col1 * 22 FROM tab0 AS cor0
----
1868
1913
2099

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col1 - col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL + col1 * - ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 + - 20 FROM tab2 AS cor0
----
-27
-98
-99

query I rowsort
SELECT DISTINCT - - col1 + + ( + col2 ) * + col0 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL col0 + - ( 98 * - cor0.col0 ) FROM tab2 AS cor0
----
693
7722
7821

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col2 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - - col0 * - col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + col0 * ( - col1 ) + + cor0.col1 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1054
-1121
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-7155
SELECT DISTINCT - - col1 DIV ( 47 ) + + col0 FROM tab2 cor0
----
7
79

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT - - col1 / ( 47 ) + + col0 FROM tab2 cor0
----
7
79

query I rowsort
SELECT ALL + col0 * col0 + + 98 FROM tab2 AS cor0
----
147
6182
6339

query I rowsort
SELECT + 55 * - col0 AS col2 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT DISTINCT 39 * col1 AS col1 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT - 20 FROM tab2 cor0
----
-20
-20
-20

onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT + col0 + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-7160
SELECT + col0 + col0 / col2 AS col2 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT DISTINCT + col1 * - col0 * col1 AS col0 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-7162
SELECT ALL col0 + + col0 DIV 88 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL col0 + + col0 / 88 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col2 + - col0 + + col2 * + col2 AS col0 FROM tab2
----
1403
624
749

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7164
SELECT cor0.col2 * + CAST( ( col2 ) * + col1 AS SIGNED ) FROM tab2 AS cor0
----
22599
24548
39884

skipif mysql # not compatible
query I rowsort label-7164
SELECT cor0.col2 * + CAST ( ( col2 ) * + col1 AS INTEGER ) FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT + col2 - + 3 DIV col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7165
SELECT + col2 - + 3 / col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + col2 * 34 - cor0.col2 AS col1 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT + col2 + + col1 * + col2 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT ALL col2 + - col1 * col1 FROM tab0
----
-7363
-8199
-9408

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( + col2 AS REAL ) + + cor0.col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 79 * cor0.col2 + col0 FROM tab1 AS cor0
----
-4263
-4439
-7504

onlyif mysql # use DIV operator for integer division
query I rowsort label-7171
SELECT ALL + + col1 DIV 46 + + col1 * + col0 * + col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358957

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL + + col1 / 46 + + col1 * + col0 * + col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358957

query I rowsort
SELECT ALL + 80 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT ALL - ( col0 ) * + cor0.col2 + - col2 * - col1 FROM tab1 cor0
----
-3078
-6432
1242

query I rowsort
SELECT + col1 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL col2 * col0 + + 73 FROM tab1
----
235
3721
7753

query I rowsort
SELECT ALL tab2.col0 * - 97 + col0 AS col2 FROM tab2
----
-672
-7488
-7584

query I rowsort
SELECT ALL col2 * + col2 + col1 * tab0.col0 FROM tab0
----
14823
3153
3396

query I rowsort
SELECT ALL - tab2.col1 + + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d924577a04b3a692cbbd2348e6f8e88f

query I rowsort
SELECT DISTINCT + + 73 * - ( - col0 ) FROM tab1 AS cor0
----
219
4672
5840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 20 * col1 col1 FROM tab2 cor0
----
1239
357
651

query I rowsort
SELECT ALL + + 75 AS col1 FROM tab1 cor0
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-7182
SELECT + - 16 DIV + 23 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7182
SELECT + - 16 / + 23 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT 19 * + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-145920
-3078
-69312

query I rowsort
SELECT DISTINCT + 71 * col2 FROM tab1 AS cor0
----
3834
4047
6816

query I rowsort
SELECT + - col1 + - cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - ( col1 ) + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-7188
SELECT col0 DIV + 88 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7188
SELECT col0 / + 88 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7189
SELECT - CAST( col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-7189
SELECT - CAST ( col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + tab0.col1 * - col0 * + tab0.col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab2
----
18

query I rowsort
SELECT DISTINCT - ( - ( - col0 ) ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab1
----
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7194
SELECT ALL - + CAST( - col1 AS SIGNED ) * cor0.col1 + + cor0.col1 + - 93 FROM tab0 AS cor0
----
7389
8279
9413

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL - + CAST ( - col1 AS INTEGER ) * cor0.col1 + + cor0.col1 + - 93 FROM tab0 AS cor0
----
7389
8279
9413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col0 FROM tab1
----
15
15
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7196
SELECT DISTINCT - CAST( + 33 AS SIGNED ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT - CAST ( + 33 AS INTEGER ) FROM tab1
----
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT - ( + cor0.col1 ) DIV col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7197
SELECT - ( + cor0.col1 ) / col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7198
SELECT - - cor0.col2 DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7198
SELECT - - cor0.col2 / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - col0 + ( col1 ) AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + cor0.col1 + - col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 - 47 col0 FROM tab1 AS cor0
----
1201
1357
523

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7204
SELECT ALL - col0 DIV + 17 AS col1 FROM tab2 AS cor0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - col0 / + 17 AS col1 FROM tab2 AS cor0
----
-4
-4
0

query I rowsort
SELECT - col1 * col0 + + col1 AS col0 FROM tab0 cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( + 27 ) col0 FROM tab2 AS cor0
----
44
58
86

query I rowsort
SELECT + col1 + 99 * col2 FROM tab2 AS cor0
----
2633
2704
3779

query I rowsort
SELECT col1 - + 12 FROM tab2 AS cor0
----
19
47
5

query I rowsort
SELECT + col1 + 89 FROM tab2 AS cor0
----
106
120
148

query I rowsort
SELECT ALL + 15 FROM tab2, tab1 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7211
SELECT - + CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7211
SELECT - + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 3 FROM tab0, tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 2 FROM tab2, tab1 cor0
----
2

query I rowsort
SELECT col1 * - ( + col0 ) + + col0 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7215
SELECT + - CAST( + col1 AS SIGNED ) * col0 + 51 col1 FROM tab2 AS cor0
----
-1292
-166
-4551

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7215
SELECT + - CAST ( + col1 AS INTEGER ) * col0 + 51 col1 FROM tab2 AS cor0
----
-1292
-166
-4551

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 75 AS REAL ) AS col2 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT ( col2 ) + col1 - 84 FROM tab1
----
-17
-4
25

query I rowsort
SELECT + col0 * - col0 * col0 - + col0 AS col0 FROM tab1
----
-262208
-30
-512080

query I rowsort
SELECT col1 - + tab0.col2 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT + 66 + - col1 FROM tab1
----
40
53
56

query I rowsort
SELECT + col1 * col0 + + 60 * col1 FROM tab1
----
1240
1638
1820

query I rowsort
SELECT - tab0.col0 + + tab0.col2 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7223
SELECT ALL - col2 * + 61 + - col1 DIV cor0.col2 + 59 col0 FROM tab1 AS cor0
----
-3235
-3418
-5797

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL - col2 * + 61 + - col1 / cor0.col2 + 59 col0 FROM tab1 AS cor0
----
-3235
-3418
-5797

query I rowsort
SELECT + col1 * 6 + cor0.col2 AS col1 FROM tab2 AS cor0
----
140
213
380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7225
SELECT ALL - col0 / CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL - col0 / CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 - col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col0 * ( + ( - col0 ) * col2 ) AS col2 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + - col1 * col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col0 * - 4 - - col1 FROM tab0 AS cor0
----
182
237
447

onlyif mysql # use DIV operator for integer division
query I rowsort label-7230
SELECT ALL - - col1 DIV + cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL - - col1 / + cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT - + cor0.col1 - + col0 * col2 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT + col0 * - col1 + - 40 AS col1 FROM tab1 AS cor0
----
-1080
-118
-680

query I rowsort
SELECT - cor0.col2 - ( + col0 * + col0 ) FROM tab0 AS cor0
----
-1226
-609
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-7234
SELECT + col1 DIV 88 - - col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-7234
SELECT + col1 / 88 - - col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - - col0 * - 41 + - ( - col2 ) FROM tab2 AS cor0
----
-260
-3172
-3201

query I rowsort
SELECT DISTINCT col2 + col1 * col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - - cor0.col0 + - col2 * + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - col1 * + col2 * col2 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-22788
-27550
-41912

query I rowsort
SELECT - col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7240
SELECT + CAST( ( + col2 ) AS SIGNED ) * + cor0.col2 FROM tab1 cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-7240
SELECT + CAST ( ( + col2 ) AS INTEGER ) * + cor0.col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + 41 * col2 AS col2 FROM tab2
----
1066
1107
1558

query I rowsort
SELECT ALL + cor0.col1 + + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col2 * + col1 - - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + 55 * col2 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT DISTINCT + col0 - col2 * col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL 40 * + col1 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT - col0 + col2 * col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab0 cor0
----
-20

query I rowsort
SELECT 1 * col1 FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7250
SELECT DISTINCT + col1 + + col1 DIV 90 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT + col1 + + col1 / 90 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7251
SELECT ALL col1 + cor0.col0 DIV - col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL col1 + cor0.col0 / - col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT + col0 + col1 * - col2 * - col2 AS col2 FROM tab1 cor0
----
119888
32554
75819

query I rowsort
SELECT ALL + cor0.col0 + - col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT col2 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7255
SELECT + + 52 DIV - col1 AS col1 FROM tab1 cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-7255
SELECT + + 52 / - col1 AS col1 FROM tab1 cor0
----
-2
-4
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7256
SELECT DISTINCT - col2 DIV - col2 AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT - col2 / - col2 AS col2 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL 58 FROM tab2 cor0
----
58
58
58

query I rowsort
SELECT ALL 51 * col0 FROM tab1 AS cor0
----
153
3264
4080

query I rowsort
SELECT ALL - - 62 * - col2 * col1 FROM tab0 AS cor0
----
-175956
-462644
-6014

query I rowsort
SELECT - 27 * + col0 FROM tab2 AS cor0
----
-189
-2106
-2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-7261
SELECT - 67 + + col1 DIV - 77 FROM tab1 cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-7261
SELECT - 67 + + col1 / - 77 FROM tab1 cor0
----
-67
-67
-67

query I rowsort
SELECT - 73 AS col0 FROM tab0
----
-73
-73
-73

query I rowsort
SELECT ALL + cor0.col0 * + col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7264
SELECT DISTINCT - + col2 * - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT - + col2 * - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * cor0.col0 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - ( - col1 ) + col2 * - 33 AS col2 FROM tab0
----
-1003
-2615
64

query I rowsort
SELECT DISTINCT col1 * + col0 + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT 14 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-10
-21
-75

query I rowsort
SELECT 81 * cor0.col1 FROM tab1 cor0
----
1053
2106
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7270
SELECT DISTINCT - + 4 DIV - col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT - + 4 / - col0 FROM tab0 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7271
SELECT - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 65 * col2 FROM tab1
----
3510
3705
6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-7273
SELECT + col2 + + col0 DIV col2 AS col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-7273
SELECT + col2 + + col0 / col2 AS col2 FROM tab0
----
33
36
83

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL 58 * tab1.col2 * col2 AS col2 FROM tab1
----
169128
188442
534528

query I rowsort
SELECT DISTINCT - 74 + - col2 AS col1 FROM tab2 AS cor0
----
-100
-101
-112

query I rowsort
SELECT + 76 AS col0 FROM tab1 cor0
----
76
76
76

query I rowsort
SELECT ALL + ( - col0 ) * col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL - 88 FROM tab0, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + + cor0.col2 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 6cc954a4feb629cbf113eafb4297ab2a

query I rowsort
SELECT - - col2 + + ( col0 ) * col2 + col1 FROM tab2 AS cor0
----
2113
247
3057

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + - col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + - ( col0 * + col0 + tab1.col0 ) AS col2 FROM tab1
----
-4103
-6384
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7286
SELECT ALL - col1 + CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - col1 * + col2 AS col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT - 49 + col1 DIV + col1 AS col1 FROM tab0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-7288
SELECT - 49 + col1 / + col1 AS col1 FROM tab0
----
-48
-48
-48

query I rowsort
SELECT - 88 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT DISTINCT ( ( col2 ) ) * ( + col2 ) AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 61 col1 FROM tab1
----
183
3904
4880

query I rowsort
SELECT ALL + 71 + col2 AS col0 FROM tab0
----
104
153
72

query I rowsort
SELECT ALL + col1 * col2 + + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT ALL col2 + ( col1 ) AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - 22 + + col2 AS col2 FROM tab0 AS cor0
----
-21
11
60

query I rowsort
SELECT DISTINCT - + 76 AS col2 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT ALL + 7 FROM tab0 cor0
----
7
7
7

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

query I rowsort
SELECT DISTINCT + + col2 + - col1 * 88 AS col0 FROM tab2 AS cor0
----
-1458
-2701
-5166

query I rowsort
SELECT DISTINCT - col2 + col1 - 91 FROM tab2 AS cor0
----
-112
-58
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7304
SELECT col1 * CAST( NULL AS DECIMAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT col1 * CAST ( NULL AS REAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7305
SELECT + col0 * col0 DIV col1 + col2 FROM tab0 AS cor0
----
13
169
39

skipif mysql # not compatible
query I rowsort label-7305
SELECT + col0 * col0 / col1 + col2 FROM tab0 AS cor0
----
13
169
39

query I rowsort
SELECT ALL col0 * - col2 * - col2 AS col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT ALL - + col0 + 93 AS col2 FROM tab0 AS cor0
----
4
58
69

query I rowsort
SELECT ALL cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7309
SELECT + col0 * CAST( NULL AS SIGNED ) + 39 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT + col0 * CAST ( NULL AS INTEGER ) + 39 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7310
SELECT ALL - col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - col2 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * ( - col0 ) + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + + 38 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT ALL ( - col2 ) * col0 * + 63 + - col2 FROM tab2 AS cor0
----
-11934
-127790
-189164

onlyif mysql # use DIV operator for integer division
query I rowsort label-7314
SELECT DISTINCT - ( - cor0.col1 ) DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT - ( - cor0.col1 ) / + cor0.col1 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 24 AS col0 FROM tab1 cor0
----
24
24
24

query I rowsort
SELECT col1 + cor0.col2 * - ( - col1 ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + - 81 + + cor0.col2 * 86 * + 84 + + col2 AS col1 FROM tab1 AS cor0
----
390069
411744
693519

query I rowsort
SELECT ALL + col2 + col2 * - col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 49 * col0 AS col0 FROM tab2
----
343
3822
3871

query I rowsort
SELECT col0 - col2 * - ( - col0 ) * + col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

o